SGGL_SHJ/SGGL/FineUIPro.Web/HJGL/DataImport/ocrz-app.js

81 lines
1.5 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var zye=Object.defineProperty;var sR=An=>{throw TypeError(An)};var Hye=(An,Pn,Gt)=>Pn in An?zye(An,Pn,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):An[Pn]=Gt;var Wt=(An,Pn,Gt)=>Hye(An,typeof Pn!="symbol"?Pn+"":Pn,Gt),Nw=(An,Pn,Gt)=>Pn.has(An)||sR("Cannot "+Gt);var y=(An,Pn,Gt)=>(Nw(An,Pn,"read from private field"),Gt?Gt.call(An):Pn.get(An)),se=(An,Pn,Gt)=>Pn.has(An)?sR("Cannot add the same private member more than once"):Pn instanceof WeakSet?Pn.add(An):Pn.set(An,Gt),q=(An,Pn,Gt,tr)=>(Nw(An,Pn,"write to private field"),tr?tr.call(An,Gt):Pn.set(An,Gt),Gt),oe=(An,Pn,Gt)=>(Nw(An,Pn,"access private method"),Gt);var Ha=(An,Pn,Gt,tr)=>({set _(Yt){q(An,Pn,Yt,Gt)},get _(){return y(An,Pn,tr)}});(function(){"use strict";var hl,Db,Dw,Lv,kc,Xu,Er,Ju,Nv,$v,vb,aR,$a,oR,rR,Fb,iR,Fw,Dv,Zu,Qu,Ec,lR,cR,uR,mb,gh,Fv,ya,bh,Bb,ps,Ac,Bv,os,gb,dR,yh,yo,Rs,Js,wh,vl,_h,jo,Tc,ed,Ch,td,pi,Ar,nd,Vv,zv,Sh,Hv,vi,Mc,xh,Pc,mi,yb,Rc,Wv,Ic,sd,jv,Kv,Vs,Ln,ml,ad,Uv,qv,Oc,gi,gl,Gv,Ko,gt,Vb,Bw,fR,hR,zb,pR,vR,mR,Vw,gR,zw,Hw,bR,Wa,Ul,yR,wR,Ww,_R,i2,jw,zs,bi,Tr,Eh,yi,wo,Ah,wi,no,bl,od,_i,Lc,Mr,l2,Hb,Yv,rd,Xv,Jv,Zv,Qv,em,Th,yl,id,Nc,wl,CR,SR,Kw,ld,Pr,Xn,Mh,$c,tm,cd,Zs,ud,_l,Dc,nm,dd,_o,sm,fd,Cl,Ci,Ph,Rh,Uo,hd,am,wb,Ht,Uw,om,qw,Wb,xR,kR,Gw,jb,Yw,ER,AR,TR,Xw,MR,Jw,PR,RR,IR,Zw,c2,pd,vd,Hs,_b,OR,rm,Ih,Oh,qo,LR,NR,$R,Kb,im,md,Lh,Sl,xl,wa,gd,bd,Et,ka,u2,k0,Ub,E0,DR,Qw,A0,d2,f2,e_,h2,Rr,t_,n_,s_,lm,cm,yd,um,dm,fm,hm,Nh,Fc,Nn,$h,Dh,pm,a_,nR,Bc,so,vm,mm,wd,kl,gm,bm,_d,Fh,Bh,Vc,Vh,ym,zh,Cd,wm,_m,Sd,xd,Cm,zc,Hh,El,FR,BR,o_,Co,qb,r_,VR,zR,Sb,Hc,Al,Go,T0,Gb,Tl,kb,Eb,kd,Ed,Wh,Yb,jh,Xb,Ml,Si,Kh,Uh,Pl,Ad,p2,So,Sm,i_,Wc,jc,Td,Pd,qh,Gh,xm,l_,xo,af,HR,WR,Yh,Ab,Tb,Xh,Rd,fs,Rl,Jh,km,Em,Zh,Il,Ir,Ol,Am,Ll,Tm,Id,Od,Fn,Jb,c_,jR,KR,UR,qR,Zb,Qb,u_,Mm,Pm,Rm,Im,Om,Ld,Lm,d_,Nm,$m,f_,Dm,Nd,$d,Fm,Dd,GR,h_,Or,ko,Bm,Fd,Eo,xs,YR,XR,JR,e4,Nl,t4,n4,ZR,p_,QR,Ao,Lr,Qh,e0,xi,hn,Bd,Vd,Vm,zm,t0,n0,Kc,Hm,Mb,Pb,Os,v2,eI,tI,nI,sI,aI,oI,s0,zd,Dl,Wm,To,jm,vs,Rb,rI,Km,Um,Uc,Nr,Fa,iI,s4,lI,cI,v_,qm,a0,$r,Hd,o0,Ls,Gm,r0,Ym,Xm,qc,Dr,i0,Jm,Bn,m_,g_,b_,of,uI,su,l0,Zm,Fl,Wd,c0,oo,Qm,e2,jd,Yo,Mo,Qs,u0,Bl,_a,d0,Xo,t2,an,y_,a4,dI,fI,hI,w_,rf,Jo,M0,pI,o4,m2,vI,mI,gI,bI,yI,Kd,Po,f0,Ws,Ud,qd,Gc,Yc,Xc,Gd,yn,__,C_,S_,g2,wI,r4,b2,P0,ki,js,Ks,Yd,h0,Ba,ea,Zo,Xd,Jd,Zd,p0,i4,Va,n2,s2,Ro,Ei,Ai,v0,m0,g0,ta,ql,_I,CI,SI,b0,Ib,xI,rs,na,Jc,Vl,Zc,w0,Ti,Mi,Io,_0,Cn,y2,w2,l4,x_,c4,k_,u4,kI,Qd,C0,Pi,Qc,zl,Qo,eu,S0,ef,Fr,Hl,Ca,Wl,Lt,tu,ts,EI,Oi,E_,A_,d4,Vr,o2,za,tf,Ob,AI,Ri,T_,TI,M_;var An=typeof document<"u"?document.currentScript:null;/**
* @vue/shared v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Pn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Gt={},tr=[],Yt=()=>{},P_=()=>!1,_2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),f4=e=>e.startsWith("onUpdate:"),gs=Object.assign,h4=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},MI=Object.prototype.hasOwnProperty,jt=(e,t)=>MI.call(e,t),Ae=Array.isArray,lf=e=>R0(e)==="[object Map]",C2=e=>R0(e)==="[object Set]",Gl=e=>R0(e)==="[object Date]",Ze=e=>typeof e=="function",Ye=e=>typeof e=="string",nr=e=>typeof e=="symbol",dt=e=>e!==null&&typeof e=="object",au=e=>(dt(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),R_=Object.prototype.toString,R0=e=>R_.call(e),PI=e=>R0(e).slice(8,-1),I0=e=>R0(e)==="[object Object]",S2=e=>Ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,O0=Pn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),x2=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},RI=/-\w/g,Ea=x2(e=>e.replace(RI,t=>t.slice(1).toUpperCase())),II=/\B([A-Z])/g,Li=x2(e=>e.replace(II,"-$1").toLowerCase()),L0=x2(e=>e.charAt(0).toUpperCase()+e.slice(1)),N0=x2(e=>e?`on${L0(e)}`:""),Yl=(e,t)=>!Object.is(e,t),k2=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},I_=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},p4=e=>{const t=parseFloat(e);return isNaN(t)?e:t},OI=e=>{const t=Ye(e)?Number(e):NaN;return isNaN(t)?e:t};let O_;const E2=()=>O_||(O_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qe(e){if(Ae(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],a=Ye(s)?DI(s):Qe(s);if(a)for(const o in a)t[o]=a[o]}return t}else if(Ye(e)||dt(e))return e}const LI=/;(?![^(]*\))/g,NI=/:([^]+)/,$I=/\/\*[^]*?\*\//g;function DI(e){const t={};return e.replace($I,"").split(LI).forEach(n=>{if(n){const s=n.split(NI);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function D(e){let t="";if(Ye(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(dt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ni(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ye(t)&&(e.class=D(t)),n&&(e.style=Qe(n)),e}const FI=Pn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function L_(e){return!!e||e===""}function BI(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=Gl(e),s=Gl(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=nr(e),s=nr(t),n||s)return e===t;if(n=Ae(e),s=Ae(t),n||s)return n&&s?BI(e,t):!1;if(n=dt(e),s=dt(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 N_(e,t){return e.findIndex(n=>ou(n,t))}const $_=e=>!!(e&&e.__v_isRef===!0),me=e=>Ye(e)?e:e==null?"":Ae(e)||dt(e)&&(e.toString===R_||!Ze(e.toString))?$_(e)?me(e.value):JSON.stringify(e,D_,2):String(e),D_=(e,t)=>$_(t)?D_(e,t.value):lf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,a],o)=>(n[v4(s,o)+" =>"]=a,n),{})}:C2(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>v4(n))}:nr(t)?v4(t):dt(t)&&!Ae(t)&&!I0(t)?String(t):t,v4=(e,t="")=>{var n;return nr(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 aa;class F_{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=aa,!t&&aa&&(this.index=(aa.scopes||(aa.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=aa;try{return aa=this,t()}finally{aa=n}}}on(){++this._on===1&&(this.prevScope=aa,aa=this)}off(){this._on>0&&--this._on===0&&(aa=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 VI(e){return new F_(e)}function B_(){return aa}function V_(e,t=!1){aa&&aa.cleanups.push(e)}let Hn;const m4=new WeakSet;class z_{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,aa&&aa.active&&aa.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,m4.has(this)&&(m4.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||W_(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,G_(this),j_(this);const t=Hn,n=sr;Hn=this,sr=!0;try{return this.fn()}finally{K_(this),Hn=t,sr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)w4(t);this.deps=this.depsTail=void 0,G_(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?m4.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){y4(this)&&this.run()}get dirty(){return y4(this)}}let H_=0,$0,D0;function W_(e,t=!1){if(e.flags|=8,t){e.next=D0,D0=e;return}e.next=$0,$0=e}function g4(){H_++}function b4(){if(--H_>0)return;if(D0){let t=D0;for(D0=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$0;){let t=$0;for($0=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 j_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function K_(e){let t,n=e.depsTail,s=n;for(;s;){const a=s.prevDep;s.version===-1?(s===n&&(n=a),w4(s),zI(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=a}e.deps=t,e.depsTail=n}function y4(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(U_(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function U_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===F0)||(e.globalVersion=F0,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!y4(e))))return;e.flags|=2;const t=e.dep,n=Hn,s=sr;Hn=e,sr=!0;try{j_(e);const a=e.fn(e._value);(t.version===0||Yl(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Hn=n,sr=s,K_(e),e.flags&=-3}}function w4(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)w4(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zI(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let sr=!0;const q_=[];function Hr(){q_.push(sr),sr=!1}function Wr(){const e=q_.pop();sr=e===void 0?!0:e}function G_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Hn;Hn=void 0;try{t()}finally{Hn=n}}}let F0=0;class HI{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 _4{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(!Hn||!sr||Hn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Hn)n=this.activeLink=new HI(Hn,this),Hn.deps?(n.prevDep=Hn.depsTail,Hn.depsTail.nextDep=n,Hn.depsTail=n):Hn.deps=Hn.depsTail=n,Y_(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=Hn.depsTail,n.nextDep=void 0,Hn.depsTail.nextDep=n,Hn.depsTail=n,Hn.deps===n&&(Hn.deps=s)}return n}trigger(t){this.version++,F0++,this.notify(t)}notify(t){g4();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{b4()}}}function Y_(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)Y_(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const A2=new WeakMap,ru=Symbol(""),C4=Symbol(""),B0=Symbol("");function oa(e,t,n){if(sr&&Hn){let s=A2.get(e);s||A2.set(e,s=new Map);let a=s.get(n);a||(s.set(n,a=new _4),a.map=s,a.key=n),a.track()}}function $i(e,t,n,s,a,o){const r=A2.get(e);if(!r){F0++;return}const i=l=>{l&&l.trigger()};if(g4(),t==="clear")r.forEach(i);else{const l=Ae(e),c=l&&S2(n);if(l&&n==="length"){const u=Number(s);r.forEach((d,h)=>{(h==="length"||h===B0||!nr(h)&&h>=u)&&i(d)})}else switch((n!==void 0||r.has(void 0))&&i(r.get(n)),c&&i(r.get(B0)),t){case"add":l?c&&i(r.get("length")):(i(r.get(ru)),lf(e)&&i(r.get(C4)));break;case"delete":l||(i(r.get(ru)),lf(e)&&i(r.get(C4)));break;case"set":lf(e)&&i(r.get(ru));break}}b4()}function WI(e,t){const n=A2.get(e);return n&&n.get(t)}function cf(e){const t=un(e);return t===e?t:(oa(t,"iterate",B0),ro(e)?t:t.map(ar))}function T2(e){return oa(e=un(e),"iterate",B0),e}function Xl(e,t){return Fi(e)?uf(lu(e)?ar(t):t):ar(t)}const jI={__proto__:null,[Symbol.iterator](){return S4(this,Symbol.iterator,e=>Xl(this,e))},concat(...e){return cf(this).concat(...e.map(t=>Ae(t)?cf(t):t))},entries(){return S4(this,"entries",e=>(e[1]=Xl(this,e[1]),e))},every(e,t){return Di(this,"every",e,t,void 0,arguments)},filter(e,t){return Di(this,"filter",e,t,n=>n.map(s=>Xl(this,s)),arguments)},find(e,t){return Di(this,"find",e,t,n=>Xl(this,n),arguments)},findIndex(e,t){return Di(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Di(this,"findLast",e,t,n=>Xl(this,n),arguments)},findLastIndex(e,t){return Di(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Di(this,"forEach",e,t,void 0,arguments)},includes(...e){return x4(this,"includes",e)},indexOf(...e){return x4(this,"indexOf",e)},join(e){return cf(this).join(e)},lastIndexOf(...e){return x4(this,"lastIndexOf",e)},map(e,t){return Di(this,"map",e,t,void 0,arguments)},pop(){return V0(this,"pop")},push(...e){return V0(this,"push",e)},reduce(e,...t){return X_(this,"reduce",e,t)},reduceRight(e,...t){return X_(this,"reduceRight",e,t)},shift(){return V0(this,"shift")},some(e,t){return Di(this,"some",e,t,void 0,arguments)},splice(...e){return V0(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 V0(this,"unshift",e)},values(){return S4(this,"values",e=>Xl(this,e))}};function S4(e,t,n){const s=T2(e),a=s[t]();return s!==e&&!ro(e)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=n(o.value)),o}),a}const KI=Array.prototype;function Di(e,t,n,s,a,o){const r=T2(e),i=r!==e&&!ro(e),l=r[t];if(l!==KI[t]){const d=l.apply(e,o);return i?ar(d):d}let c=n;r!==e&&(i?c=function(d,h){return n.call(this,Xl(e,d),h,e)}:n.length>2&&(c=function(d,h){return n.call(this,d,h,e)}));const u=l.call(r,c,s);return i&&a?a(u):u}function X_(e,t,n,s){const a=T2(e);let o=n;return a!==e&&(ro(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,Xl(e,i),l,e)}),a[t](o,...s)}function x4(e,t,n){const s=un(e);oa(s,"iterate",B0);const a=s[t](...n);return(a===-1||a===!1)&&L2(n[0])?(n[0]=un(n[0]),s[t](...n)):a}function V0(e,t,n=[]){Hr(),g4();const s=un(e)[t].apply(e,n);return b4(),Wr(),s}const UI=Pn("__proto__,__v_isRef,__isVue"),J_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nr));function qI(e){nr(e)||(e=String(e));const t=un(this);return oa(t,"has",e),t.hasOwnProperty(e)}class Z_{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?aC:sC:o?nC:tC).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=Ae(t);if(!a){let l;if(r&&(l=jI[n]))return l;if(n==="hasOwnProperty")return qI}const i=Reflect.get(t,n,vn(t)?t:s);if((nr(n)?J_.has(n):UI(n))||(a||oa(t,"get",n),o))return i;if(vn(i)){const l=r&&S2(n)?i:i.value;return a&&dt(l)?iu(l):l}return dt(i)?a?iu(i):Kt(i):i}}class Q_ extends Z_{constructor(t=!1){super(!1,t)}set(t,n,s,a){let o=t[n];const r=Ae(t)&&S2(n);if(!this._isShallow){const c=Fi(o);if(!ro(s)&&!Fi(s)&&(o=un(o),s=un(s)),!r&&vn(o)&&!vn(s))return c||(o.value=s),!0}const i=r?Number(n)<t.length:jt(t,n),l=Reflect.set(t,n,s,vn(t)?t:a);return t===un(a)&&(i?Yl(s,o)&&$i(t,"set",n,s):$i(t,"add",n,s)),l}deleteProperty(t,n){const s=jt(t,n);t[n];const a=Reflect.deleteProperty(t,n);return a&&s&&$i(t,"delete",n,void 0),a}has(t,n){const s=Reflect.has(t,n);return(!nr(n)||!J_.has(n))&&oa(t,"has",n),s}ownKeys(t){return oa(t,"iterate",Ae(t)?"length":ru),Reflect.ownKeys(t)}}class eC extends Z_{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const GI=new Q_,YI=new eC,XI=new Q_(!0),JI=new eC(!0),k4=e=>e,M2=e=>Reflect.getPrototypeOf(e);function ZI(e,t,n){return function(...s){const a=this.__v_raw,o=un(a),r=lf(o),i=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=a[e](...s),u=n?k4:t?uf:ar;return!t&&oa(o,"iterate",l?C4:ru),gs(Object.create(c),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:i?[u(d[0]),u(d[1])]:u(d),done:h}}})}}function P2(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function QI(e,t){const n={get(a){const o=this.__v_raw,r=un(o),i=un(a);e||(Yl(a,i)&&oa(r,"get",a),oa(r,"get",i));const{has:l}=M2(r),c=t?k4:e?uf:ar;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&&oa(un(a),"iterate",ru),a.size},has(a){const o=this.__v_raw,r=un(o),i=un(a);return e||(Yl(a,i)&&oa(r,"has",a),oa(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=un(i),c=t?k4:e?uf:ar;return!e&&oa(l,"iterate",ru),i.forEach((u,d)=>a.call(o,c(u),c(d),r))}};return gs(n,e?{add:P2("add"),set:P2("set"),delete:P2("delete"),clear:P2("clear")}:{add(a){!t&&!ro(a)&&!Fi(a)&&(a=un(a));const o=un(this);return M2(o).has.call(o,a)||(o.add(a),$i(o,"add",a,a)),this},set(a,o){!t&&!ro(o)&&!Fi(o)&&(o=un(o));const r=un(this),{has:i,get:l}=M2(r);let c=i.call(r,a);c||(a=un(a),c=i.call(r,a));const u=l.call(r,a);return r.set(a,o),c?Yl(o,u)&&$i(r,"set",a,o):$i(r,"add",a,o),this},delete(a){const o=un(this),{has:r,get:i}=M2(o);let l=r.call(o,a);l||(a=un(a),l=r.call(o,a)),i&&i.call(o,a);const c=o.delete(a);return l&&$i(o,"delete",a,void 0),c},clear(){const a=un(this),o=a.size!==0,r=a.clear();return o&&$i(a,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=ZI(a,e,t)}),n}function R2(e,t){const n=QI(e,t);return(s,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?s:Reflect.get(jt(n,a)&&a in s?n:s,a,o)}const eO={get:R2(!1,!1)},tO={get:R2(!1,!0)},nO={get:R2(!0,!1)},sO={get:R2(!0,!0)},tC=new WeakMap,nC=new WeakMap,sC=new WeakMap,aC=new WeakMap;function aO(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function oO(e){return e.__v_skip||!Object.isExtensible(e)?0:aO(PI(e))}function Kt(e){return Fi(e)?e:O2(e,!1,GI,eO,tC)}function I2(e){return O2(e,!1,XI,tO,nC)}function iu(e){return O2(e,!0,YI,nO,sC)}function jye(e){return O2(e,!0,JI,sO,aC)}function O2(e,t,n,s,a){if(!dt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=oO(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 Fi(e)?lu(e.__v_raw):!!(e&&e.__v_isReactive)}function Fi(e){return!!(e&&e.__v_isReadonly)}function ro(e){return!!(e&&e.__v_isShallow)}function L2(e){return e?!!e.__v_raw:!1}function un(e){const t=e&&e.__v_raw;return t?un(t):e}function jr(e){return!jt(e,"__v_skip")&&Object.isExtensible(e)&&I_(e,"__v_skip",!0),e}const ar=e=>dt(e)?Kt(e):e,uf=e=>dt(e)?iu(e):e;function vn(e){return e?e.__v_isRef===!0:!1}function F(e){return oC(e,!1)}function pn(e){return oC(e,!0)}function oC(e,t){return vn(e)?e:new rO(e,t)}class rO{constructor(t,n){this.dep=new _4,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:un(t),this._value=n?t:ar(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||ro(t)||Fi(t);t=s?t:un(t),Yl(t,n)&&(this._rawValue=t,this._value=s?t:ar(t),this.dep.trigger())}}function N2(e){e.dep&&e.dep.trigger()}function f(e){return vn(e)?e.value:e}const iO={get:(e,t,n)=>t==="__v_raw"?e:f(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const a=e[t];return vn(a)&&!vn(n)?(a.value=n,!0):Reflect.set(e,t,n,s)}};function rC(e){return lu(e)?e:new Proxy(e,iO)}function bs(e){const t=Ae(e)?new Array(e.length):{};for(const n in e)t[n]=iC(e,n);return t}class lO{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=un(t);let a=!0,o=t;if(!Ae(t)||!S2(String(n)))do a=!L2(o)||ro(o);while(a&&(o=o.__v_raw));this._shallow=a}get value(){let t=this._object[this._key];return this._shallow&&(t=f(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&vn(this._raw[this._key])){const n=this._object[this._key];if(vn(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return WI(this._raw,this._key)}}class cO{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 Qt(e,t,n){return vn(e)?e:Ze(e)?new cO(e):dt(e)&&arguments.length>1?iC(e,t,n):F(e)}function iC(e,t,n){return new lO(e,t,n)}class uO{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new _4(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=F0-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Hn!==this)return W_(this,!0),!0}get value(){const t=this.dep.track();return U_(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function dO(e,t,n=!1){let s,a;return Ze(e)?s=e:(s=e.get,a=e.set),new uO(s,a,n)}const $2={},D2=new WeakMap;let cu;function fO(e,t=!1,n=cu){if(n){let s=D2.get(n);s||D2.set(n,s=[]),s.push(e)}}function hO(e,t,n=Gt){const{immediate:s,deep:a,once:o,scheduler:r,augmentJob:i,call:l}=n,c=C=>a?C:ro(C)||a===!1||a===0?Bi(C,1):Bi(C);let u,d,h,p,v=!1,m=!1;if(vn(e)?(d=()=>e.value,v=ro(e)):lu(e)?(d=()=>c(e),v=!0):Ae(e)?(m=!0,v=e.some(C=>lu(C)||ro(C)),d=()=>e.map(C=>{if(vn(C))return C.value;if(lu(C))return c(C);if(Ze(C))return l?l(C,2):C()})):Ze(e)?t?d=l?()=>l(e,2):e:d=()=>{if(h){Hr();try{h()}finally{Wr()}}const C=cu;cu=u;try{return l?l(e,3,[p]):e(p)}finally{cu=C}}:d=Yt,t&&a){const C=d,x=a===!0?1/0:a;d=()=>Bi(C(),x)}const g=B_(),b=()=>{u.stop(),g&&g.active&&h4(g.effects,u)};if(o&&t){const C=t;t=(...x)=>{C(...x),b()}}let _=m?new Array(e.length).fill($2):$2;const w=C=>{if(!(!(u.flags&1)||!u.dirty&&!C))if(t){const x=u.run();if(a||v||(m?x.some((k,T)=>Yl(k,_[T])):Yl(x,_))){h&&h();const k=cu;cu=u;try{const T=[x,_===$2?void 0:m&&_[0]===$2?[]:_,p];_=x,l?l(t,3,T):t(...T)}finally{cu=k}}}else u.run()};return i&&i(w),u=new z_(d),u.scheduler=r?()=>r(w,!1):w,p=C=>fO(C,!1,u),h=u.onStop=()=>{const C=D2.get(u);if(C){if(l)l(C,4);else for(const x of C)x();D2.delete(u)}},t?s?w(!0):_=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 Bi(e,t=1/0,n){if(t<=0||!dt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,vn(e))Bi(e.value,t,n);else if(Ae(e))for(let s=0;s<e.length;s++)Bi(e[s],t,n);else if(C2(e)||lf(e))e.forEach(s=>{Bi(s,t,n)});else if(I0(e)){for(const s in e)Bi(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Bi(e[s],t,n)}return e}/**
* @vue/runtime-core v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const z0=[];let E4=!1;function Kye(e,...t){if(E4)return;E4=!0,Hr();const n=z0.length?z0[z0.length-1].component:null,s=n&&n.appContext.config.warnHandler,a=pO();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 <${pS(n,o.type)}>`).join(`
`),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push(`
`,...vO(a)),console.warn(...o)}Wr(),E4=!1}function pO(){let e=z0[z0.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 vO(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
`],...mO(n))}),t}function mO({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,a=` at <${pS(e.component,e.type,s)}`,o=">"+n;return e.props?[a,...gO(e.props),o]:[a+o]}function gO(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...lC(s,e[s]))}),n.length>3&&t.push(" ..."),t}function lC(e,t,n){return Ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:vn(t)?(t=lC(e,un(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ze(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=un(t),n?t:[`${e}=`,t])}function df(e,t,n,s){try{return s?e(...s):e()}catch(a){F2(a,t,n)}}function or(e,t,n,s){if(Ze(e)){const a=df(e,t,n,s);return a&&au(a)&&a.catch(o=>{F2(o,t,n)}),a}if(Ae(e)){const a=[];for(let o=0;o<e.length;o++)a.push(or(e[o],t,n,s));return a}}function F2(e,t,n,s=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||Gt;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 d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}i=i.parent}if(o){Hr(),df(o,null,10,[e,l,c]),Wr();return}}bO(e,n,a,s,r)}function bO(e,t,n,s=!0,a=!1){if(a)throw e;console.error(e)}const Aa=[];let Kr=-1;const ff=[];let Jl=null,hf=0;const cC=Promise.resolve();let B2=null;function Be(e){const t=B2||cC;return e?t.then(this?e.bind(this):e):t}function yO(e){let t=Kr+1,n=Aa.length;for(;t<n;){const s=t+n>>>1,a=Aa[s],o=H0(a);o<e||o===e&&a.flags&2?t=s+1:n=s}return t}function A4(e){if(!(e.flags&1)){const t=H0(e),n=Aa[Aa.length-1];!n||!(e.flags&2)&&t>=H0(n)?Aa.push(e):Aa.splice(yO(t),0,e),e.flags|=1,uC()}}function uC(){B2||(B2=cC.then(hC))}function wO(e){Ae(e)?ff.push(...e):Jl&&e.id===-1?Jl.splice(hf+1,0,e):e.flags&1||(ff.push(e),e.flags|=1),uC()}function dC(e,t,n=Kr+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 fC(e){if(ff.length){const t=[...new Set(ff)].sort((n,s)=>H0(n)-H0(s));if(ff.length=0,Jl){Jl.push(...t);return}for(Jl=t,hf=0;hf<Jl.length;hf++){const n=Jl[hf];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Jl=null,hf=0}}const H0=e=>e.id==null?e.flags&2?-1:1/0:e.id;function hC(e){try{for(Kr=0;Kr<Aa.length;Kr++){const t=Aa[Kr];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(;Kr<Aa.length;Kr++){const t=Aa[Kr];t&&(t.flags&=-2)}Kr=-1,Aa.length=0,fC(),B2=null,(Aa.length||ff.length)&&hC()}}let Us=null,pC=null;function V2(e){const t=Us;return Us=e,pC=e&&e.type.__scopeId||null,t}function X(e,t=Us,n){if(!t||e._n)return e;const s=(...a)=>{s._d&&Y2(-1);const o=V2(t);let r;try{r=e(...a)}finally{V2(o),s._d&&Y2(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function bt(e,t){if(Us===null)return e;const n=Z2(Us),s=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,r,i,l=Gt]=t[a];o&&(Ze(o)&&(o={mounted:o,updated:o}),o.deep&&Bi(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&&(Hr(),or(l,n,8,[e.el,i,e,t]),Wr())}}function Mt(e,t){if(ia){let n=ia.provides;const s=ia.parent&&ia.parent.provides;s===n&&(n=ia.provides=Object.create(s)),n[e]=t}}function We(e,t,n=!1){const s=Ct();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&&Ze(t)?t.call(s&&s.proxy):t}}const _O=Symbol.for("v-scx"),CO=()=>We(_O);function ja(e,t){return T4(e,null,t)}function ge(e,t,n){return T4(e,t,n)}function T4(e,t,n=Gt){const{immediate:s,deep:a,flush:o,once:r}=n,i=gs({},n),l=t&&s||!t&&o!=="post";let c;if(Q0){if(o==="sync"){const p=CO();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Yt,p.resume=Yt,p.pause=Yt,p}}const u=ia;i.call=(p,v,m)=>or(p,u,v,m);let d=!1;o==="post"?i.scheduler=p=>{ra(p,u&&u.suspense)}:o!=="sync"&&(d=!0,i.scheduler=(p,v)=>{v?p():A4(p)}),i.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=hO(e,t,i);return Q0&&(c?c.push(h):l&&h()),h}function SO(e,t,n){const s=this.proxy,a=Ye(e)?e.includes(".")?vC(s,e):()=>s[e]:e.bind(s,s);let o;Ze(t)?o=t:(o=t.handler,n=t);const r=Z0(this),i=T4(a,o.bind(s),n);return r(),i}function vC(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 mC=Symbol("_vte"),gC=e=>e.__isTeleport,W0=e=>e&&(e.disabled||e.disabled===""),bC=e=>e&&(e.defer||e.defer===""),yC=e=>typeof SVGElement<"u"&&e instanceof SVGElement,wC=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,M4=(e,t)=>{const n=e&&e.to;return Ye(n)?t?t(n):null:n},_C={name:"Teleport",__isTeleport:!0,process(e,t,n,s,a,o,r,i,l,c){const{mc:u,pc:d,pbc:h,o:{insert:p,querySelector:v,createText:m,createComment:g}}=c,b=W0(t.props);let{shapeFlag:_,children:w,dynamicChildren:C}=t;if(e==null){const x=t.el=m(""),k=t.anchor=m("");p(x,n,s),p(k,n,s);const T=(I,M)=>{_&16&&u(w,I,M,a,o,r,i,l)},R=()=>{const I=t.target=M4(t.props,v),M=P4(I,t,m,p);I&&(r!=="svg"&&yC(I)?r="svg":r!=="mathml"&&wC(I)&&(r="mathml"),a&&a.isCE&&(a.ce._teleportTargets||(a.ce._teleportTargets=new Set)).add(I),b||(T(I,M),H2(t,!1)))};b&&(T(n,k),H2(t,!0)),bC(t.props)?(t.el.__isMounted=!1,ra(()=>{R(),delete t.el.__isMounted},o)):R()}else{if(bC(t.props)&&e.el.__isMounted===!1){ra(()=>{_C.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=W0(e.props),I=R?n:k,M=R?x:T;if(r==="svg"||yC(k)?r="svg":(r==="mathml"||wC(k))&&(r="mathml"),C?(h(e.dynamicChildren,C,I,a,o,r,i),U4(e,t,!0)):l||d(e,t,I,M,a,o,r,i,!1),b)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):z2(t,n,x,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=M4(t.props,v);$&&z2(t,$,null,c,0)}else R&&z2(t,k,T,c,1);H2(t,b)}},remove(e,t,n,{um:s,o:{remove:a}},o){const{shapeFlag:r,children:i,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=e;if(d&&(a(c),a(u)),o&&a(l),r&16){const p=o||!W0(h);for(let v=0;v<i.length;v++){const m=i[v];s(m,t,n,p,!!m.dynamicChildren)}}},move:z2,hydrate:xO};function z2(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,d=o===2;if(d&&s(r,t,n),(!d||W0(u))&&l&16)for(let h=0;h<c.length;h++)a(c[h],t,n,2);d&&s(i,t,n)}function xO(e,t,n,s,a,o,{o:{nextSibling:r,parentNode:i,querySelector:l,insert:c,createText:u}},d){function h(g,b){let _=b;for(;_;){if(_&&_.nodeType===8){if(_.data==="teleport start anchor")t.targetStart=_;else if(_.data==="teleport anchor"){t.targetAnchor=_,g._lpa=t.targetAnchor&&r(t.targetAnchor);break}}_=r(_)}}function p(g,b){b.anchor=d(r(g),b,i(g),n,s,a,o)}const v=t.target=M4(t.props,l),m=W0(t.props);if(v){const g=v._lpa||v.firstChild;t.shapeFlag&16&&(m?(p(e,t),h(v,g),t.targetAnchor||P4(v,t,u,c,i(e)===v?e:null)):(t.anchor=r(e),h(v,g),t.targetAnchor||P4(v,t,u,c),d(g&&r(g),t,v,n,s,a,o))),H2(t,m)}else m&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=r(e));return t.anchor&&r(t.anchor)}const kO=_C;function H2(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 P4(e,t,n,s,a=null){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[mC]=r,e&&(s(o,e,a),s(r,e,a)),r}const Ur=Symbol("_leaveCb"),j0=Symbol("_enterCb");function CC(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xt(()=>{e.isMounted=!0}),Xt(()=>{e.isUnmounting=!0}),e}const Oo=[Function,Array],SC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Oo,onEnter:Oo,onAfterEnter:Oo,onEnterCancelled:Oo,onBeforeLeave:Oo,onLeave:Oo,onAfterLeave:Oo,onLeaveCancelled:Oo,onBeforeAppear:Oo,onAppear:Oo,onAfterAppear:Oo,onAppearCancelled:Oo},xC=e=>{const t=e.subTree;return t.component?xC(t.component):t},EO={name:"BaseTransition",props:SC,setup(e,{slots:t}){const n=Ct(),s=CC();return()=>{const a=t.default&&I4(t.default(),!0);if(!a||!a.length)return;const o=kC(a),r=un(e),{mode:i}=r;if(s.isLeaving)return R4(o);const l=AC(o);if(!l)return R4(o);let c=K0(l,r,s,n,d=>c=d);l.type!==qn&&du(l,c);let u=n.subTree&&AC(n.subTree);if(u&&u.type!==qn&&!pu(u,l)&&xC(n).type!==qn){let d=K0(u,r,s,n);if(du(u,d),i==="out-in"&&l.type!==qn)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},R4(o);i==="in-out"&&l.type!==qn?d.delayLeave=(h,p,v)=>{const m=EC(s,u);m[String(u.key)]=u,h[Ur]=()=>{p(),h[Ur]=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 kC(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==qn){t=n;break}}return t}const AO=EO;function EC(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 K0(e,t,n,s,a){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:g,onAppear:b,onAfterAppear:_,onAppearCancelled:w}=t,C=String(e.key),x=EC(n,e),k=(I,M)=>{I&&or(I,s,9,M)},T=(I,M)=>{const $=M[1];k(I,M),Ae(I)?I.every(O=>O.length<=1)&&$():I.length<=1&&$()},R={mode:r,persisted:i,beforeEnter(I){let M=l;if(!n.isMounted)if(o)M=g||l;else return;I[Ur]&&I[Ur](!0);const $=x[C];$&&pu(e,$)&&$.el[Ur]&&$.el[Ur](),k(M,[I])},enter(I){let M=c,$=u,O=d;if(!n.isMounted)if(o)M=b||c,$=_||u,O=w||d;else return;let B=!1;I[j0]=J=>{B||(B=!0,J?k(O,[I]):k($,[I]),R.delayedLeave&&R.delayedLeave(),I[j0]=void 0)};const U=I[j0].bind(null,!1);M?T(M,[I,U]):U()},leave(I,M){const $=String(e.key);if(I[j0]&&I[j0](!0),n.isUnmounting)return M();k(h,[I]);let O=!1;I[Ur]=U=>{O||(O=!0,M(),U?k(m,[I]):k(v,[I]),I[Ur]=void 0,x[$]===e&&delete x[$])};const B=I[Ur].bind(null,!1);x[$]=e,p?T(p,[I,B]):B()},clone(I){const M=K0(I,t,n,s,a);return a&&a(M),M}};return R}function R4(e){if(j2(e))return e=qr(e),e.children=null,e}function AC(e){if(!j2(e))return gC(e.type)&&e.children?kC(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&&Ze(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 I4(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===Ve?(r.patchFlag&128&&a++,s=s.concat(I4(r.children,t,i))):(t||r.type!==qn)&&s.push(i!=null?qr(r,{key:i}):r)}if(a>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function W(e,t){return Ze(e)?gs({name:e.name},t,{setup:e}):e}function TC(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function MC(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const W2=new WeakMap;function U0(e,t,n,s,a=!1){if(Ae(e)){e.forEach((m,g)=>U0(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&&U0(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Z2(s.component):s.el,r=a?null:o,{i,r:l}=e,c=t&&t.r,u=i.refs===Gt?i.refs={}:i.refs,d=i.setupState,h=un(d),p=d===Gt?P_:m=>MC(u,m)?!1:jt(h,m),v=(m,g)=>!(g&&MC(u,g));if(c!=null&&c!==l){if(PC(t),Ye(c))u[c]=null,p(c)&&(d[c]=null);else if(vn(c)){const m=t;v(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(Ze(l))df(l,i,12,[r,u]);else{const m=Ye(l),g=vn(l);if(m||g){const b=()=>{if(e.f){const _=m?p(l)?d[l]:u[l]:v()||!e.k?l.value:u[e.k];if(a)Ae(_)&&h4(_,o);else if(Ae(_))_.includes(o)||_.push(o);else if(m)u[l]=[o],p(l)&&(d[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)&&(d[l]=r)):g&&(v(l,e.k)&&(l.value=r),e.k&&(u[e.k]=r))};if(r){const _=()=>{b(),W2.delete(e)};_.id=-1,W2.set(e,_),ra(_,n)}else PC(e),b()}}}function PC(e){const t=W2.get(e);t&&(t.flags|=8,W2.delete(e))}E2().requestIdleCallback,E2().cancelIdleCallback;const pf=e=>!!e.type.__asyncLoader,j2=e=>e.type.__isKeepAlive;function q0(e,t){RC(e,"a",t)}function O4(e,t){RC(e,"da",t)}function RC(e,t,n=ia){const s=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(K2(t,s,n),n){let a=n.parent;for(;a&&a.parent;)j2(a.parent.vnode)&&TO(s,t,n,a),a=a.parent}}function TO(e,t,n,s){const a=K2(t,e,s,!0);fu(()=>{h4(s[t],a)},n)}function K2(e,t,n=ia,s=!1){if(n){const a=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{Hr();const i=Z0(n),l=or(t,n,e,r);return i(),Wr(),l});return s?a.unshift(o):a.push(o),o}}const Vi=e=>(t,n=ia)=>{(!Q0||e==="sp")&&K2(e,(...s)=>t(...s),n)},U2=Vi("bm"),xt=Vi("m"),L4=Vi("bu"),rr=Vi("u"),Xt=Vi("bum"),fu=Vi("um"),MO=Vi("sp"),PO=Vi("rtg"),RO=Vi("rtc");function IO(e,t=ia){K2("ec",e,t)}const N4="components",OO="directives";function qe(e,t){return D4(N4,e,!0,t)||e}const IC=Symbol.for("v-ndc");function yt(e){return Ye(e)?D4(N4,e,!1)||e:e||IC}function $4(e){return D4(OO,e)}function D4(e,t,n=!0,s=!1){const a=Us||ia;if(a){const o=a.type;if(e===N4){const i=hS(o,!1);if(i&&(i===t||i===Ea(t)||i===L0(Ea(t))))return o}const r=OC(a[e]||o[e],t)||OC(a.appContext[e],t);return!r&&s?o:r}}function OC(e,t){return e&&(e[t]||e[Ea(t)]||e[L0(Ea(t))])}function wt(e,t,n,s){let a;const o=n,r=Ae(e);if(r||Ye(e)){const i=r&&lu(e);let l=!1,c=!1;i&&(l=!ro(e),c=Fi(e),e=T2(e)),a=new Array(e.length);for(let u=0,d=e.length;u<d;u++)a[u]=t(l?c?uf(ar(e[u])):ar(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(dt(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(Us.ce||Us.parent&&pf(Us.parent)&&Us.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),S(),le(Ve,null,[j("slot",n,s&&s())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),S();const r=o&&LC(o(n)),i=n.key||r&&r.key,l=le(Ve,{key:(i&&!nr(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 LC(e){return e.some(t=>dn(t)?!(t.type===qn||t.type===Ve&&!LC(t.children)):!0)?e:null}function LO(e,t){const n={};for(const s in e)n[N0(s)]=e[s];return n}const F4=e=>e?cS(e)?Z2(e):F4(e.parent):null,G0=gs(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=>F4(e.parent),$root:e=>F4(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>BC(e),$forceUpdate:e=>e.f||(e.f=()=>{A4(e.update)}),$nextTick:e=>e.n||(e.n=Be.bind(e.proxy)),$watch:e=>SO.bind(e)}),B4=(e,t)=>e!==Gt&&!e.__isScriptSetup&&jt(e,t),NO={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(B4(s,t))return r[t]=1,s[t];if(a!==Gt&&jt(a,t))return r[t]=2,a[t];if(jt(o,t))return r[t]=3,o[t];if(n!==Gt&&jt(n,t))return r[t]=4,n[t];V4&&(r[t]=0)}}const c=G0[t];let u,d;if(c)return t==="$attrs"&&oa(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==Gt&&jt(n,t))return r[t]=4,n[t];if(d=l.config.globalProperties,jt(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:a,ctx:o}=e;return B4(a,t)?(a[t]=n,!0):s!==Gt&&jt(s,t)?(s[t]=n,!0):jt(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!==Gt&&i[0]!=="$"&&jt(e,i)||B4(t,i)||jt(o,i)||jt(s,i)||jt(G0,i)||jt(a.config.globalProperties,i)||(l=r.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:jt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Wn(){return NC().slots}function zi(){return NC().attrs}function NC(e){const t=Ct();return t.setupContext||(t.setupContext=fS(t))}function $C(e){return Ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let V4=!0;function $O(e){const t=BC(e),n=e.proxy,s=e.ctx;V4=!1,t.beforeCreate&&DC(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:r,watch:i,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:v,activated:m,deactivated:g,beforeDestroy:b,beforeUnmount:_,destroyed:w,unmounted:C,render:x,renderTracked:k,renderTriggered:T,errorCaptured:R,serverPrefetch:I,expose:M,inheritAttrs:$,components:O,directives:B,filters:U}=t;if(c&&DO(c,s,null),r)for(const N in r){const L=r[N];Ze(L)&&(s[N]=L.bind(n))}if(a){const N=a.call(n,n);dt(N)&&(e.data=Kt(N))}if(V4=!0,o)for(const N in o){const L=o[N],V=Ze(L)?L.bind(n,n):Ze(L.get)?L.get.bind(n,n):Yt,z=!Ze(L)&&Ze(L.set)?L.set.bind(n):Yt,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)FC(i[N],s,n,N);if(l){const N=Ze(l)?l.call(n):l;Reflect.ownKeys(N).forEach(L=>{Mt(L,N[L])})}u&&DC(u,e,"c");function Y(N,L){Ae(L)?L.forEach(V=>N(V.bind(n))):L&&N(L.bind(n))}if(Y(U2,d),Y(xt,h),Y(L4,p),Y(rr,v),Y(q0,m),Y(O4,g),Y(IO,R),Y(RO,k),Y(PO,T),Y(Xt,_),Y(fu,C),Y(MO,I),Ae(M))if(M.length){const N=e.exposed||(e.exposed={});M.forEach(L=>{Object.defineProperty(N,L,{get:()=>n[L],set:V=>n[L]=V,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===Yt&&(e.render=x),$!=null&&(e.inheritAttrs=$),O&&(e.components=O),B&&(e.directives=B),I&&TC(e)}function DO(e,t,n=Yt){Ae(e)&&(e=z4(e));for(const s in e){const a=e[s];let o;dt(a)?"default"in a?o=We(a.from||s,a.default,!0):o=We(a.from||s):o=We(a),vn(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function DC(e,t,n){or(Ae(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function FC(e,t,n,s){let a=s.includes(".")?vC(n,s):()=>n[s];if(Ye(e)){const o=t[e];Ze(o)&&ge(a,o)}else if(Ze(e))ge(a,e.bind(n));else if(dt(e))if(Ae(e))e.forEach(o=>FC(o,t,n,s));else{const o=Ze(e.handler)?e.handler.bind(n):t[e.handler];Ze(o)&&ge(a,o,e)}}function BC(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=>q2(l,c,r,!0)),q2(l,t,r)),dt(t)&&o.set(t,l),l}function q2(e,t,n,s=!1){const{mixins:a,extends:o}=t;o&&q2(e,o,n,!0),a&&a.forEach(r=>q2(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const i=FO[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const FO={data:VC,props:zC,emits:zC,methods:Y0,computed:Y0,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:Y0,directives:Y0,watch:VO,provide:VC,inject:BO};function VC(e,t){return t?e?function(){return gs(Ze(e)?e.call(this,this):e,Ze(t)?t.call(this,this):t)}:t:e}function BO(e,t){return Y0(z4(e),z4(t))}function z4(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 Y0(e,t){return e?gs(Object.create(null),e,t):t}function zC(e,t){return e?Ae(e)&&Ae(t)?[...new Set([...e,...t])]:gs(Object.create(null),$C(e),$C(t??{})):t}function VO(e,t){if(!e)return t;if(!t)return e;const n=gs(Object.create(null),e);for(const s in t)n[s]=Ma(e[s],t[s]);return n}function HC(){return{app:null,config:{isNativeTag:P_,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 zO=0;function HO(e,t){return function(s,a=null){Ze(s)||(s=gs({},s)),a!=null&&!dt(a)&&(a=null);const o=HC(),r=new WeakSet,i=[];let l=!1;const c=o.app={_uid:zO++,_component:s,_props:a,_container:null,_context:o,_instance:null,version:bL,get config(){return o.config},set config(u){},use(u,...d){return r.has(u)||(u&&Ze(u.install)?(r.add(u),u.install(c,...d)):Ze(u)&&(r.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,h){if(!l){const p=c._ceVNode||j(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,Z2(p.component)}},onUnmount(u){i.push(u)},unmount(){l&&(or(i,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c},runWithContext(u){const d=vf;vf=c;try{return u()}finally{vf=d}}};return c}}let vf=null;const WO=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ea(t)}Modifiers`]||e[`${Li(t)}Modifiers`];function jO(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Gt;let a=n;const o=t.startsWith("update:"),r=o&&WO(s,t.slice(7));r&&(r.trim&&(a=n.map(u=>Ye(u)?u.trim():u)),r.number&&(a=n.map(p4)));let i,l=s[i=N0(t)]||s[i=N0(Ea(t))];!l&&o&&(l=s[i=N0(Li(t))]),l&&or(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,or(c,e,6,a)}}const KO=new WeakMap;function WC(e,t,n=!1){const s=n?KO:t.emitsCache,a=s.get(e);if(a!==void 0)return a;const o=e.emits;let r={},i=!1;if(!Ze(e)){const l=c=>{const u=WC(c,t,!0);u&&(i=!0,gs(r,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(dt(e)&&s.set(e,null),null):(Ae(o)?o.forEach(l=>r[l]=null):gs(r,o),dt(e)&&s.set(e,r),r)}function G2(e,t){return!e||!_2(t)?!1:(t=t.slice(2).replace(/Once$/,""),jt(e,t[0].toLowerCase()+t.slice(1))||jt(e,Li(t))||jt(e,t))}function Uye(){}function jC(e){const{type:t,vnode:n,proxy:s,withProxy:a,propsOptions:[o],slots:r,attrs:i,emit:l,render:c,renderCache:u,props:d,data:h,setupState:p,ctx:v,inheritAttrs:m}=e,g=V2(e);let b,_;try{if(n.shapeFlag&4){const C=a||s,x=C;b=Gr(c.call(x,C,u,d,p,h,v)),_=i}else{const C=t;b=Gr(C.length>1?C(d,{attrs:i,slots:r,emit:l}):C(d,null)),_=t.props?i:UO(i)}}catch(C){X0.length=0,F2(C,e,1),b=j(qn)}let w=b;if(_&&m!==!1){const C=Object.keys(_),{shapeFlag:x}=w;C.length&&x&7&&(o&&C.some(f4)&&(_=qO(_,o)),w=qr(w,_,!1,!0))}return n.dirs&&(w=qr(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&du(w,n.transition),b=w,V2(g),b}const UO=e=>{let t;for(const n in e)(n==="class"||n==="style"||_2(n))&&((t||(t={}))[n]=e[n]);return t},qO=(e,t)=>{const n={};for(const s in e)(!f4(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function GO(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?KC(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(UC(r,s,h)&&!G2(c,h))return!0}}}else return(a||i)&&(!i||!i.$stable)?!0:s===r?!1:s?r?KC(s,r,c):!0:!!r;return!1}function KC(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(UC(t,e,o)&&!G2(n,o))return!0}return!1}function UC(e,t,n){const s=e[n],a=t[n];return n==="style"&&dt(s)&&dt(a)?!ou(s,a):s!==a}function YO({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 qC={},GC=()=>Object.create(qC),YC=e=>Object.getPrototypeOf(e)===qC;function XO(e,t,n,s=!1){const a={},o=GC();e.propsDefaults=Object.create(null),XC(e,t,a,o);for(const r in e.propsOptions[0])r in a||(a[r]=void 0);n?e.props=s?a:I2(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function JO(e,t,n,s){const{props:a,attrs:o,vnode:{patchFlag:r}}=e,i=un(a),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(G2(e.emitsOptions,h))continue;const p=t[h];if(l)if(jt(o,h))p!==o[h]&&(o[h]=p,c=!0);else{const v=Ea(h);a[v]=H4(l,i,v,p,e,!1)}else p!==o[h]&&(o[h]=p,c=!0)}}}else{XC(e,t,a,o)&&(c=!0);let u;for(const d in i)(!t||!jt(t,d)&&((u=Li(d))===d||!jt(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(a[d]=H4(l,i,d,void 0,e,!0)):delete a[d]);if(o!==i)for(const d in o)(!t||!jt(t,d))&&(delete o[d],c=!0)}c&&$i(e.attrs,"set","")}function XC(e,t,n,s){const[a,o]=e.propsOptions;let r=!1,i;if(t)for(let l in t){if(O0(l))continue;const c=t[l];let u;a&&jt(a,u=Ea(l))?!o||!o.includes(u)?n[u]=c:(i||(i={}))[u]=c:G2(e.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,r=!0)}if(o){const l=un(n),c=i||Gt;for(let u=0;u<o.length;u++){const d=o[u];n[d]=H4(a,l,d,c[d],e,!jt(c,d))}}return r}function H4(e,t,n,s,a,o){const r=e[n];if(r!=null){const i=jt(r,"default");if(i&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Ze(l)){const{propsDefaults:c}=a;if(n in c)s=c[n];else{const u=Z0(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===Li(n))&&(s=!0))}return s}const ZO=new WeakMap;function JC(e,t,n=!1){const s=n?ZO:t.propsCache,a=s.get(e);if(a)return a;const o=e.props,r={},i=[];let l=!1;if(!Ze(e)){const u=d=>{l=!0;const[h,p]=JC(d,t,!0);gs(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 dt(e)&&s.set(e,tr),tr;if(Ae(o))for(let u=0;u<o.length;u++){const d=Ea(o[u]);ZC(d)&&(r[d]=Gt)}else if(o)for(const u in o){const d=Ea(u);if(ZC(d)){const h=o[u],p=r[d]=Ae(h)||Ze(h)?{type:h}:gs({},h),v=p.type;let m=!1,g=!0;if(Ae(v))for(let b=0;b<v.length;++b){const _=v[b],w=Ze(_)&&_.name;if(w==="Boolean"){m=!0;break}else w==="String"&&(g=!1)}else m=Ze(v)&&v.name==="Boolean";p[0]=m,p[1]=g,(m||jt(p,"default"))&&i.push(d)}}const c=[r,i];return dt(e)&&s.set(e,c),c}function ZC(e){return e[0]!=="$"&&!O0(e)}const W4=e=>e==="_"||e==="_ctx"||e==="$stable",j4=e=>Ae(e)?e.map(Gr):[Gr(e)],QO=(e,t,n)=>{if(t._n)return t;const s=X((...a)=>j4(t(...a)),n);return s._c=!1,s},QC=(e,t,n)=>{const s=e._ctx;for(const a in e){if(W4(a))continue;const o=e[a];if(Ze(o))t[a]=QO(a,o,s);else if(o!=null){const r=j4(o);t[a]=()=>r}}},eS=(e,t)=>{const n=j4(t);e.slots.default=()=>n},tS=(e,t,n)=>{for(const s in t)(n||!W4(s))&&(e[s]=t[s])},eL=(e,t,n)=>{const s=e.slots=GC();if(e.vnode.shapeFlag&32){const a=t._;a?(tS(s,t,n),n&&I_(s,"_",a,!0)):QC(t,s)}else t&&eS(e,t)},tL=(e,t,n)=>{const{vnode:s,slots:a}=e;let o=!0,r=Gt;if(s.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:tS(a,t,n):(o=!t.$stable,QC(t,a)),r=t}else t&&(eS(e,t),r={default:1});if(o)for(const i in a)!W4(i)&&r[i]==null&&delete a[i]},ra=rL;function nL(e){return sL(e)}function sL(e,t){const n=E2();n.__VUE__=!0;const{insert:s,remove:a,patchProp:o,createElement:r,createText:i,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:p=Yt,insertStaticContent:v}=e,m=(H,te,de,be=null,_e=null,xe=null,Oe=void 0,De=null,Ne=!!te.dynamicChildren)=>{if(H===te)return;H&&!pu(H,te)&&(be=ne(H),Q(H,_e,xe,!0),H=null),te.patchFlag===-2&&(Ne=!1,te.dynamicChildren=null);const{type:Ce,ref:Ie,shapeFlag:Pe}=te;switch(Ce){case mf:g(H,te,de,be);break;case qn:b(H,te,de,be);break;case q4:H==null&&_(te,de,be,Oe);break;case Ve:O(H,te,de,be,_e,xe,Oe,De,Ne);break;default:Pe&1?x(H,te,de,be,_e,xe,Oe,De,Ne):Pe&6?B(H,te,de,be,_e,xe,Oe,De,Ne):(Pe&64||Pe&128)&&Ce.process(H,te,de,be,_e,xe,Oe,De,Ne,ce)}Ie!=null&&_e?U0(Ie,H&&H.ref,xe,te||H,!te):Ie==null&&H&&H.ref!=null&&U0(H.ref,null,xe,H,!0)},g=(H,te,de,be)=>{if(H==null)s(te.el=i(te.children),de,be);else{const _e=te.el=H.el;te.children!==H.children&&c(_e,te.children)}},b=(H,te,de,be)=>{H==null?s(te.el=l(te.children||""),de,be):te.el=H.el},_=(H,te,de,be)=>{[H.el,H.anchor]=v(H.children,te,de,be,H.el,H.anchor)},w=({el:H,anchor:te},de,be)=>{let _e;for(;H&&H!==te;)_e=h(H),s(H,de,be),H=_e;s(te,de,be)},C=({el:H,anchor:te})=>{let de;for(;H&&H!==te;)de=h(H),a(H),H=de;a(te)},x=(H,te,de,be,_e,xe,Oe,De,Ne)=>{if(te.type==="svg"?Oe="svg":te.type==="math"&&(Oe="mathml"),H==null)k(te,de,be,_e,xe,Oe,De,Ne);else{const Ce=H.el&&H.el._isVueCE?H.el:null;try{Ce&&Ce._beginPatch(),I(H,te,_e,xe,Oe,De,Ne)}finally{Ce&&Ce._endPatch()}}},k=(H,te,de,be,_e,xe,Oe,De)=>{let Ne,Ce;const{props:Ie,shapeFlag:Pe,transition:ze,dirs:Je}=H;if(Ne=H.el=r(H.type,xe,Ie&&Ie.is,Ie),Pe&8?u(Ne,H.children):Pe&16&&R(H.children,Ne,null,be,_e,K4(H,xe),Oe,De),Je&&uu(H,null,be,"created"),T(Ne,H,H.scopeId,Oe,be),Ie){for(const $e in Ie)$e!=="value"&&!O0($e)&&o(Ne,$e,null,Ie[$e],xe,be);"value"in Ie&&o(Ne,"value",null,Ie.value,xe),(Ce=Ie.onVnodeBeforeMount)&&Yr(Ce,be,H)}Je&&uu(H,null,be,"beforeMount");const ot=aL(_e,ze);ot&&ze.beforeEnter(Ne),s(Ne,te,de),((Ce=Ie&&Ie.onVnodeMounted)||ot||Je)&&ra(()=>{Ce&&Yr(Ce,be,H),ot&&ze.enter(Ne),Je&&uu(H,null,be,"mounted")},_e)},T=(H,te,de,be,_e)=>{if(de&&p(H,de),be)for(let xe=0;xe<be.length;xe++)p(H,be[xe]);if(_e){let xe=_e.subTree;if(te===xe||oS(xe.type)&&(xe.ssContent===te||xe.ssFallback===te)){const Oe=_e.vnode;T(H,Oe,Oe.scopeId,Oe.slotScopeIds,_e.parent)}}},R=(H,te,de,be,_e,xe,Oe,De,Ne=0)=>{for(let Ce=Ne;Ce<H.length;Ce++){const Ie=H[Ce]=De?Wi(H[Ce]):Gr(H[Ce]);m(null,Ie,te,de,be,_e,xe,Oe,De)}},I=(H,te,de,be,_e,xe,Oe)=>{const De=te.el=H.el;let{patchFlag:Ne,dynamicChildren:Ce,dirs:Ie}=te;Ne|=H.patchFlag&16;const Pe=H.props||Gt,ze=te.props||Gt;let Je;if(de&&hu(de,!1),(Je=ze.onVnodeBeforeUpdate)&&Yr(Je,de,te,H),Ie&&uu(te,H,de,"beforeUpdate"),de&&hu(de,!0),(Pe.innerHTML&&ze.innerHTML==null||Pe.textContent&&ze.textContent==null)&&u(De,""),Ce?M(H.dynamicChildren,Ce,De,de,be,K4(te,_e),xe):Oe||L(H,te,De,null,de,be,K4(te,_e),xe,!1),Ne>0){if(Ne&16)$(De,Pe,ze,de,_e);else if(Ne&2&&Pe.class!==ze.class&&o(De,"class",null,ze.class,_e),Ne&4&&o(De,"style",Pe.style,ze.style,_e),Ne&8){const ot=te.dynamicProps;for(let $e=0;$e<ot.length;$e++){const He=ot[$e],et=Pe[He],Bt=ze[He];(Bt!==et||He==="value")&&o(De,He,et,Bt,_e,de)}}Ne&1&&H.children!==te.children&&u(De,te.children)}else!Oe&&Ce==null&&$(De,Pe,ze,de,_e);((Je=ze.onVnodeUpdated)||Ie)&&ra(()=>{Je&&Yr(Je,de,te,H),Ie&&uu(te,H,de,"updated")},be)},M=(H,te,de,be,_e,xe,Oe)=>{for(let De=0;De<te.length;De++){const Ne=H[De],Ce=te[De],Ie=Ne.el&&(Ne.type===Ve||!pu(Ne,Ce)||Ne.shapeFlag&198)?d(Ne.el):de;m(Ne,Ce,Ie,null,be,_e,xe,Oe,!0)}},$=(H,te,de,be,_e)=>{if(te!==de){if(te!==Gt)for(const xe in te)!O0(xe)&&!(xe in de)&&o(H,xe,te[xe],null,_e,be);for(const xe in de){if(O0(xe))continue;const Oe=de[xe],De=te[xe];Oe!==De&&xe!=="value"&&o(H,xe,De,Oe,_e,be)}"value"in de&&o(H,"value",te.value,de.value,_e)}},O=(H,te,de,be,_e,xe,Oe,De,Ne)=>{const Ce=te.el=H?H.el:i(""),Ie=te.anchor=H?H.anchor:i("");let{patchFlag:Pe,dynamicChildren:ze,slotScopeIds:Je}=te;Je&&(De=De?De.concat(Je):Je),H==null?(s(Ce,de,be),s(Ie,de,be),R(te.children||[],de,Ie,_e,xe,Oe,De,Ne)):Pe>0&&Pe&64&&ze&&H.dynamicChildren&&H.dynamicChildren.length===ze.length?(M(H.dynamicChildren,ze,de,_e,xe,Oe,De),(te.key!=null||_e&&te===_e.subTree)&&U4(H,te,!0)):L(H,te,de,Ie,_e,xe,Oe,De,Ne)},B=(H,te,de,be,_e,xe,Oe,De,Ne)=>{te.slotScopeIds=De,H==null?te.shapeFlag&512?_e.ctx.activate(te,de,be,Oe,Ne):U(te,de,be,_e,xe,Oe,Ne):J(H,te,Ne)},U=(H,te,de,be,_e,xe,Oe)=>{const De=H.component=dL(H,be,_e);if(j2(H)&&(De.ctx.renderer=ce),fL(De,!1,Oe),De.asyncDep){if(_e&&_e.registerDep(De,Y,Oe),!H.el){const Ne=De.subTree=j(qn);b(null,Ne,te,de),H.placeholder=Ne.el}}else Y(De,H,te,de,_e,xe,Oe)},J=(H,te,de)=>{const be=te.component=H.component;if(GO(H,te,de))if(be.asyncDep&&!be.asyncResolved){N(be,te,de);return}else be.next=te,be.update();else te.el=H.el,be.vnode=te},Y=(H,te,de,be,_e,xe,Oe)=>{const De=()=>{if(H.isMounted){let{next:Pe,bu:ze,u:Je,parent:ot,vnode:$e}=H;{const st=nS(H);if(st){Pe&&(Pe.el=$e.el,N(H,Pe,Oe)),st.asyncDep.then(()=>{ra(()=>{H.isUnmounted||Ce()},_e)});return}}let He=Pe,et;hu(H,!1),Pe?(Pe.el=$e.el,N(H,Pe,Oe)):Pe=$e,ze&&k2(ze),(et=Pe.props&&Pe.props.onVnodeBeforeUpdate)&&Yr(et,ot,Pe,$e),hu(H,!0);const Bt=jC(H),qt=H.subTree;H.subTree=Bt,m(qt,Bt,d(qt.el),ne(qt),H,_e,xe),Pe.el=Bt.el,He===null&&YO(H,Bt.el),Je&&ra(Je,_e),(et=Pe.props&&Pe.props.onVnodeUpdated)&&ra(()=>Yr(et,ot,Pe,$e),_e)}else{let Pe;const{el:ze,props:Je}=te,{bm:ot,m:$e,parent:He,root:et,type:Bt}=H,qt=pf(te);hu(H,!1),ot&&k2(ot),!qt&&(Pe=Je&&Je.onVnodeBeforeMount)&&Yr(Pe,He,te),hu(H,!0);{et.ce&&et.ce._hasShadowRoot()&&et.ce._injectChildStyle(Bt);const st=H.subTree=jC(H);m(null,st,de,be,H,_e,xe),te.el=st.el}if($e&&ra($e,_e),!qt&&(Pe=Je&&Je.onVnodeMounted)){const st=te;ra(()=>Yr(Pe,He,st),_e)}(te.shapeFlag&256||He&&pf(He.vnode)&&He.vnode.shapeFlag&256)&&H.a&&ra(H.a,_e),H.isMounted=!0,te=de=be=null}};H.scope.on();const Ne=H.effect=new z_(De);H.scope.off();const Ce=H.update=Ne.run.bind(Ne),Ie=H.job=Ne.runIfDirty.bind(Ne);Ie.i=H,Ie.id=H.uid,Ne.scheduler=()=>A4(Ie),hu(H,!0),Ce()},N=(H,te,de)=>{te.component=H;const be=H.vnode.props;H.vnode=te,H.next=null,JO(H,te.props,be,de),tL(H,te.children,de),Hr(),dC(H),Wr()},L=(H,te,de,be,_e,xe,Oe,De,Ne=!1)=>{const Ce=H&&H.children,Ie=H?H.shapeFlag:0,Pe=te.children,{patchFlag:ze,shapeFlag:Je}=te;if(ze>0){if(ze&128){z(Ce,Pe,de,be,_e,xe,Oe,De,Ne);return}else if(ze&256){V(Ce,Pe,de,be,_e,xe,Oe,De,Ne);return}}Je&8?(Ie&16&&fe(Ce,_e,xe),Pe!==Ce&&u(de,Pe)):Ie&16?Je&16?z(Ce,Pe,de,be,_e,xe,Oe,De,Ne):fe(Ce,_e,xe,!0):(Ie&8&&u(de,""),Je&16&&R(Pe,de,be,_e,xe,Oe,De,Ne))},V=(H,te,de,be,_e,xe,Oe,De,Ne)=>{H=H||tr,te=te||tr;const Ce=H.length,Ie=te.length,Pe=Math.min(Ce,Ie);let ze;for(ze=0;ze<Pe;ze++){const Je=te[ze]=Ne?Wi(te[ze]):Gr(te[ze]);m(H[ze],Je,de,null,_e,xe,Oe,De,Ne)}Ce>Ie?fe(H,_e,xe,!0,!1,Pe):R(te,de,be,_e,xe,Oe,De,Ne,Pe)},z=(H,te,de,be,_e,xe,Oe,De,Ne)=>{let Ce=0;const Ie=te.length;let Pe=H.length-1,ze=Ie-1;for(;Ce<=Pe&&Ce<=ze;){const Je=H[Ce],ot=te[Ce]=Ne?Wi(te[Ce]):Gr(te[Ce]);if(pu(Je,ot))m(Je,ot,de,null,_e,xe,Oe,De,Ne);else break;Ce++}for(;Ce<=Pe&&Ce<=ze;){const Je=H[Pe],ot=te[ze]=Ne?Wi(te[ze]):Gr(te[ze]);if(pu(Je,ot))m(Je,ot,de,null,_e,xe,Oe,De,Ne);else break;Pe--,ze--}if(Ce>Pe){if(Ce<=ze){const Je=ze+1,ot=Je<Ie?te[Je].el:be;for(;Ce<=ze;)m(null,te[Ce]=Ne?Wi(te[Ce]):Gr(te[Ce]),de,ot,_e,xe,Oe,De,Ne),Ce++}}else if(Ce>ze)for(;Ce<=Pe;)Q(H[Ce],_e,xe,!0),Ce++;else{const Je=Ce,ot=Ce,$e=new Map;for(Ce=ot;Ce<=ze;Ce++){const Se=te[Ce]=Ne?Wi(te[Ce]):Gr(te[Ce]);Se.key!=null&&$e.set(Se.key,Ce)}let He,et=0;const Bt=ze-ot+1;let qt=!1,st=0;const vt=new Array(Bt);for(Ce=0;Ce<Bt;Ce++)vt[Ce]=0;for(Ce=Je;Ce<=Pe;Ce++){const Se=H[Ce];if(et>=Bt){Q(Se,_e,xe,!0);continue}let Ue;if(Se.key!=null)Ue=$e.get(Se.key);else for(He=ot;He<=ze;He++)if(vt[He-ot]===0&&pu(Se,te[He])){Ue=He;break}Ue===void 0?Q(Se,_e,xe,!0):(vt[Ue-ot]=Ce+1,Ue>=st?st=Ue:qt=!0,m(Se,te[Ue],de,null,_e,xe,Oe,De,Ne),et++)}const kt=qt?oL(vt):tr;for(He=kt.length-1,Ce=Bt-1;Ce>=0;Ce--){const Se=ot+Ce,Ue=te[Se],we=te[Se+1],Ge=Se+1<Ie?we.el||aS(we):be;vt[Ce]===0?m(null,Ue,de,Ge,_e,xe,Oe,De,Ne):qt&&(He<0||Ce!==kt[He]?G(Ue,de,Ge,2):He--)}}},G=(H,te,de,be,_e=null)=>{const{el:xe,type:Oe,transition:De,children:Ne,shapeFlag:Ce}=H;if(Ce&6){G(H.component.subTree,te,de,be);return}if(Ce&128){H.suspense.move(te,de,be);return}if(Ce&64){Oe.move(H,te,de,ce);return}if(Oe===Ve){s(xe,te,de);for(let Pe=0;Pe<Ne.length;Pe++)G(Ne[Pe],te,de,be);s(H.anchor,te,de);return}if(Oe===q4){w(H,te,de);return}if(be!==2&&Ce&1&&De)if(be===0)De.beforeEnter(xe),s(xe,te,de),ra(()=>De.enter(xe),_e);else{const{leave:Pe,delayLeave:ze,afterLeave:Je}=De,ot=()=>{H.ctx.isUnmounted?a(xe):s(xe,te,de)},$e=()=>{xe._isLeaving&&xe[Ur](!0),Pe(xe,()=>{ot(),Je&&Je()})};ze?ze(xe,ot,$e):$e()}else s(xe,te,de)},Q=(H,te,de,be=!1,_e=!1)=>{const{type:xe,props:Oe,ref:De,children:Ne,dynamicChildren:Ce,shapeFlag:Ie,patchFlag:Pe,dirs:ze,cacheIndex:Je}=H;if(Pe===-2&&(_e=!1),De!=null&&(Hr(),U0(De,null,de,H,!0),Wr()),Je!=null&&(te.renderCache[Je]=void 0),Ie&256){te.ctx.deactivate(H);return}const ot=Ie&1&&ze,$e=!pf(H);let He;if($e&&(He=Oe&&Oe.onVnodeBeforeUnmount)&&Yr(He,te,H),Ie&6)ae(H.component,de,be);else{if(Ie&128){H.suspense.unmount(de,be);return}ot&&uu(H,null,te,"beforeUnmount"),Ie&64?H.type.remove(H,te,de,ce,be):Ce&&!Ce.hasOnce&&(xe!==Ve||Pe>0&&Pe&64)?fe(Ce,te,de,!1,!0):(xe===Ve&&Pe&384||!_e&&Ie&16)&&fe(Ne,te,de),be&&K(H)}($e&&(He=Oe&&Oe.onVnodeUnmounted)||ot)&&ra(()=>{He&&Yr(He,te,H),ot&&uu(H,null,te,"unmounted")},de)},K=H=>{const{type:te,el:de,anchor:be,transition:_e}=H;if(te===Ve){ee(de,be);return}if(te===q4){C(H);return}const xe=()=>{a(de),_e&&!_e.persisted&&_e.afterLeave&&_e.afterLeave()};if(H.shapeFlag&1&&_e&&!_e.persisted){const{leave:Oe,delayLeave:De}=_e,Ne=()=>Oe(de,xe);De?De(H.el,xe,Ne):Ne()}else xe()},ee=(H,te)=>{let de;for(;H!==te;)de=h(H),a(H),H=de;a(te)},ae=(H,te,de)=>{const{bum:be,scope:_e,job:xe,subTree:Oe,um:De,m:Ne,a:Ce}=H;sS(Ne),sS(Ce),be&&k2(be),_e.stop(),xe&&(xe.flags|=8,Q(Oe,H,te,de)),De&&ra(De,te),ra(()=>{H.isUnmounted=!0},te)},fe=(H,te,de,be=!1,_e=!1,xe=0)=>{for(let Oe=xe;Oe<H.length;Oe++)Q(H[Oe],te,de,be,_e)},ne=H=>{if(H.shapeFlag&6)return ne(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const te=h(H.anchor||H.el),de=te&&te[mC];return de?h(de):te};let ve=!1;const he=(H,te,de)=>{let be;H==null?te._vnode&&(Q(te._vnode,null,null,!0),be=te._vnode.component):m(te._vnode||null,H,te,null,null,null,de),te._vnode=H,ve||(ve=!0,dC(be),fC(),ve=!1)},ce={p:m,um:Q,m:G,r:K,mt:U,mc:R,pc:L,pbc:M,n:ne,o:e};return{render:he,hydrate:void 0,createApp:HO(he)}}function K4({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 aL(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function U4(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]=Wi(a[o]),i.el=r.el),!n&&i.patchFlag!==-2&&U4(r,i)),i.type===mf&&(i.patchFlag===-1&&(i=a[o]=Wi(i)),i.el=r.el),i.type===qn&&!i.el&&(i.el=r.el)}}function oL(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 nS(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nS(t)}function sS(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function aS(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?aS(t.subTree):null}const oS=e=>e.__isSuspense;function rL(e,t){t&&t.pendingBranch?Ae(e)?t.effects.push(...e):t.effects.push(e):wO(e)}const Ve=Symbol.for("v-fgt"),mf=Symbol.for("v-txt"),qn=Symbol.for("v-cmt"),q4=Symbol.for("v-stc"),X0=[];let io=null;function S(e=!1){X0.push(io=e?null:[])}function iL(){X0.pop(),io=X0[X0.length-1]||null}let J0=1;function Y2(e,t=!1){J0+=e,e<0&&io&&t&&(io.hasOnce=!0)}function rS(e){return e.dynamicChildren=J0>0?io||tr:null,iL(),J0>0&&io&&io.push(e),e}function P(e,t,n,s,a,o){return rS(A(e,t,n,s,a,o,!0))}function le(e,t,n,s,a){return rS(j(e,t,n,s,a,!0))}function dn(e){return e?e.__v_isVNode===!0:!1}function pu(e,t){return e.type===t.type&&e.key===t.key}const iS=({key:e})=>e??null,X2=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ye(e)||vn(e)||Ze(e)?{i:Us,r:e,k:t,f:!!n}:e:null);function A(e,t=null,n=null,s=0,a=null,o=e===Ve?0:1,r=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&iS(t),ref:t&&X2(t),scopeId:pC,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:Us};return i?(G4(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Ye(n)?8:16),J0>0&&!r&&io&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&io.push(l),l}const j=lL;function lL(e,t=null,n=null,s=0,a=null,o=!1){if((!e||e===IC)&&(e=qn),dn(e)){const i=qr(e,t,!0);return n&&G4(i,n),J0>0&&!o&&io&&(i.shapeFlag&6?io[io.indexOf(e)]=i:io.push(i)),i.patchFlag=-2,i}if(gL(e)&&(e=e.__vccOpts),t){t=Hi(t);let{class:i,style:l}=t;i&&!Ye(i)&&(t.class=D(i)),dt(l)&&(L2(l)&&!Ae(l)&&(l=gs({},l)),t.style=Qe(l))}const r=Ye(e)?1:oS(e)?128:gC(e)?64:dt(e)?4:Ze(e)?2:0;return A(e,t,n,s,a,r,o,!0)}function Hi(e){return e?L2(e)||YC(e)?gs({},e):e:null}function qr(e,t,n=!1,s=!1){const{props:a,ref:o,patchFlag:r,children:i,transition:l}=e,c=t?_t(a||{},t):a,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&iS(c),ref:t&&t.ref?n&&o?Ae(o)?o.concat(X2(t)):[o,X2(t)]:X2(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!==Ve?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&&qr(e.ssContent),ssFallback:e.ssFallback&&qr(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 Ke(e=" ",t=0){return j(mf,null,e,t)}function ie(e="",t=!1){return t?(S(),le(qn,null,e)):j(qn,null,e)}function Gr(e){return e==null||typeof e=="boolean"?j(qn):Ae(e)?j(Ve,null,e.slice()):dn(e)?Wi(e):j(mf,null,String(e))}function Wi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qr(e)}function G4(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),G4(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!YC(t)?t._ctx=Us:a===3&&Us&&(Us.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ze(t)?(t={default:t,_ctx:Us},n=32):(t=String(t),s&64?(n=16,t=[Ke(t)]):n=8);e.children=t,e.shapeFlag|=n}function _t(...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=Qe([t.style,s.style]);else if(_2(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 Yr(e,t,n,s=null){or(e,t,7,[n,s])}const cL=HC();let uL=0;function dL(e,t,n){const s=e.type,a=(t?t.appContext:e.appContext)||cL,o={uid:uL++,vnode:e,type:s,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new F_(!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:JC(s,a),emitsOptions:WC(s,a),emit:null,emitted:null,propsDefaults:Gt,inheritAttrs:s.inheritAttrs,ctx:Gt,data:Gt,props:Gt,attrs:Gt,slots:Gt,refs:Gt,setupState:Gt,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=jO.bind(null,o),e.ce&&e.ce(o),o}let ia=null;const Ct=()=>ia||Us;let J2,Y4;{const e=E2(),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)}};J2=t("__VUE_INSTANCE_SETTERS__",n=>ia=n),Y4=t("__VUE_SSR_SETTERS__",n=>Q0=n)}const Z0=e=>{const t=ia;return J2(e),e.scope.on(),()=>{e.scope.off(),J2(t)}},lS=()=>{ia&&ia.scope.off(),J2(null)};function cS(e){return e.vnode.shapeFlag&4}let Q0=!1;function fL(e,t=!1,n=!1){t&&Y4(t);const{props:s,children:a}=e.vnode,o=cS(e);XO(e,s,o,t),eL(e,a,n||t);const r=o?hL(e,t):void 0;return t&&Y4(!1),r}function hL(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,NO);const{setup:s}=n;if(s){Hr();const a=e.setupContext=s.length>1?fS(e):null,o=Z0(e),r=df(s,e,0,[e.props,a]),i=au(r);if(Wr(),o(),(i||e.sp)&&!pf(e)&&TC(e),i){if(r.then(lS,lS),t)return r.then(l=>{uS(e,l)}).catch(l=>{F2(l,e,0)});e.asyncDep=r}else uS(e,r)}else dS(e)}function uS(e,t,n){Ze(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dt(t)&&(e.setupState=rC(t)),dS(e)}function dS(e,t,n){const s=e.type;e.render||(e.render=s.render||Yt);{const a=Z0(e);Hr();try{$O(e)}finally{Wr(),a()}}}const pL={get(e,t){return oa(e,"get",""),e[t]}};function fS(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,pL),slots:e.slots,emit:e.emit,expose:t}}function Z2(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(rC(jr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in G0)return G0[n](e)},has(t,n){return n in t||n in G0}})):e.proxy}const vL=/(?:^|[-_])\w/g,mL=e=>e.replace(vL,t=>t.toUpperCase()).replace(/[-_]/g,"");function hS(e,t=!0){return Ze(e)?e.displayName||e.name:e.name||t&&e.__name}function pS(e,t,n=!1){let s=hS(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?mL(s):n?"App":"Anonymous"}function gL(e){return Ze(e)&&"__vccOpts"in e}const E=(e,t)=>dO(e,t,Q0);function at(e,t,n){try{Y2(-1);const s=arguments.length;return s===2?dt(t)&&!Ae(t)?dn(t)?j(e,null,[t]):j(e,t):j(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&dn(n)&&(n=[n]),j(e,t,n))}finally{Y2(1)}}const bL="3.5.28",yL=Yt;/**
* @vue/runtime-dom v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let X4;const vS=typeof window<"u"&&window.trustedTypes;if(vS)try{X4=vS.createPolicy("vue",{createHTML:e=>e})}catch{}const mS=X4?e=>X4.createHTML(e):e=>e,wL="http://www.w3.org/2000/svg",_L="http://www.w3.org/1998/Math/MathML",ji=typeof document<"u"?document:null,gS=ji&&ji.createElement("template"),CL={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"?ji.createElementNS(wL,e):t==="mathml"?ji.createElementNS(_L,e):n?ji.createElement(e,{is:n}):ji.createElement(e);return e==="select"&&s&&s.multiple!=null&&a.setAttribute("multiple",s.multiple),a},createText:e=>ji.createTextNode(e),createComment:e=>ji.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ji.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{gS.innerHTML=mS(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=gS.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]}},Zl="transition",ep="animation",gf=Symbol("_vtc"),bS={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},yS=gs({},SC,bS),ys=(e=>(e.displayName="Transition",e.props=yS,e))((e,{slots:t})=>at(AO,_S(e),t)),vu=(e,t=[])=>{Ae(e)?e.forEach(n=>n(...t)):e&&e(...t)},wS=e=>e?Ae(e)?e.some(t=>t.length>1):e.length>1:!1;function _S(e){const t={};for(const O in e)O in bS||(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:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=SL(a),m=v&&v[0],g=v&&v[1],{onBeforeEnter:b,onEnter:_,onEnterCancelled:w,onLeave:C,onLeaveCancelled:x,onBeforeAppear:k=b,onAppear:T=_,onAppearCancelled:R=w}=t,I=(O,B,U,J)=>{O._enterCancelled=J,Ql(O,B?u:i),Ql(O,B?c:r),U&&U()},M=(O,B)=>{O._isLeaving=!1,Ql(O,d),Ql(O,p),Ql(O,h),B&&B()},$=O=>(B,U)=>{const J=O?T:_,Y=()=>I(B,O,U);vu(J,[B,Y]),CS(()=>{Ql(B,O?l:o),Xr(B,O?u:i),wS(J)||SS(B,s,m,Y)})};return gs(t,{onBeforeEnter(O){vu(b,[O]),Xr(O,o),Xr(O,r)},onBeforeAppear(O){vu(k,[O]),Xr(O,l),Xr(O,c)},onEnter:$(!1),onAppear:$(!0),onLeave(O,B){O._isLeaving=!0;const U=()=>M(O,B);Xr(O,d),O._enterCancelled?(Xr(O,h),Z4(O)):(Z4(O),Xr(O,h)),CS(()=>{O._isLeaving&&(Ql(O,d),Xr(O,p),wS(C)||SS(O,s,g,U))}),vu(C,[O,U])},onEnterCancelled(O){I(O,!1,void 0,!0),vu(w,[O])},onAppearCancelled(O){I(O,!0,void 0,!0),vu(R,[O])},onLeaveCancelled(O){M(O),vu(x,[O])}})}function SL(e){if(e==null)return null;if(dt(e))return[J4(e.enter),J4(e.leave)];{const t=J4(e);return[t,t]}}function J4(e){return OI(e)}function Xr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[gf]||(e[gf]=new Set)).add(t)}function Ql(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 CS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xL=0;function SS(e,t,n,s){const a=e._endId=++xL,o=()=>{a===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:i,propCount:l}=xS(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},i+1),e.addEventListener(c,h)}function xS(e,t){const n=window.getComputedStyle(e),s=v=>(n[v]||"").split(", "),a=s(`${Zl}Delay`),o=s(`${Zl}Duration`),r=kS(a,o),i=s(`${ep}Delay`),l=s(`${ep}Duration`),c=kS(i,l);let u=null,d=0,h=0;t===Zl?r>0&&(u=Zl,d=r,h=o.length):t===ep?c>0&&(u=ep,d=c,h=l.length):(d=Math.max(r,c),u=d>0?r>c?Zl:ep:null,h=u?u===Zl?o.length:l.length:0);const p=u===Zl&&/\b(?:transform|all)(?:,|$)/.test(s(`${Zl}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}function kS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>ES(n)+ES(e[s])))}function ES(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Z4(e){return(e?e.ownerDocument:document).body.offsetHeight}function kL(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 Q2=Symbol("_vod"),AS=Symbol("_vsh"),Vt={name:"show",beforeMount(e,{value:t},{transition:n}){e[Q2]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tp(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),tp(e,!0),s.enter(e)):s.leave(e,()=>{tp(e,!1)}):tp(e,t))},beforeUnmount(e,{value:t}){tp(e,t)}};function tp(e,t){e.style.display=t?e[Q2]:"none",e[AS]=!t}const EL=Symbol(""),AL=/(?:^|;)\s*display\s*:/;function TL(e,t,n){const s=e.style,a=Ye(n);let o=!1;if(n&&!a){if(t)if(Ye(t))for(const r of t.split(";")){const i=r.slice(0,r.indexOf(":")).trim();n[i]==null&&eg(s,i,"")}else for(const r in t)n[r]==null&&eg(s,r,"");for(const r in n)r==="display"&&(o=!0),eg(s,r,n[r])}else if(a){if(t!==n){const r=s[EL];r&&(n+=";"+r),s.cssText=n,o=AL.test(n)}}else t&&e.removeAttribute("style");Q2 in e&&(e[Q2]=o?s.display:"",e[AS]&&(s.display="none"))}const TS=/\s*!important$/;function eg(e,t,n){if(Ae(n))n.forEach(s=>eg(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ML(e,t);TS.test(n)?e.setProperty(Li(s),n.replace(TS,""),"important"):e[s]=n}}const MS=["Webkit","Moz","ms"],Q4={};function ML(e,t){const n=Q4[t];if(n)return n;let s=Ea(t);if(s!=="filter"&&s in e)return Q4[t]=s;s=L0(s);for(let a=0;a<MS.length;a++){const o=MS[a]+s;if(o in e)return Q4[t]=o}return t}const PS="http://www.w3.org/1999/xlink";function RS(e,t,n,s,a,o=FI(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(PS,t.slice(6,t.length)):e.setAttributeNS(PS,t,n):n==null||o&&!L_(n)?e.removeAttribute(t):e.setAttribute(t,o?"":nr(n)?String(n):n)}function IS(e,t,n,s,a){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?mS(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=L_(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 ec(e,t,n,s){e.addEventListener(t,n,s)}function PL(e,t,n,s){e.removeEventListener(t,n,s)}const OS=Symbol("_vei");function RL(e,t,n,s,a=null){const o=e[OS]||(e[OS]={}),r=o[t];if(s&&r)r.value=s;else{const[i,l]=IL(t);if(s){const c=o[t]=NL(s,a);ec(e,i,c,l)}else r&&(PL(e,i,r,l),o[t]=void 0)}}const LS=/(?:Once|Passive|Capture)$/;function IL(e){let t;if(LS.test(e)){t={};let s;for(;s=e.match(LS);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Li(e.slice(2)),t]}let ey=0;const OL=Promise.resolve(),LL=()=>ey||(OL.then(()=>ey=0),ey=Date.now());function NL(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;or($L(s,n.value),t,5,[s])};return n.value=e,n.attached=LL(),n}function $L(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 NS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,DL=(e,t,n,s,a,o)=>{const r=a==="svg";t==="class"?kL(e,s,r):t==="style"?TL(e,n,s):_2(t)?f4(t)||RL(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):FL(e,t,s,r))?(IS(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&RS(e,t,s,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ye(s))?IS(e,Ea(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),RS(e,t,s,r))};function FL(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&NS(t)&&Ze(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 NS(t)&&Ye(n)?!1:t in e}const $S=new WeakMap,DS=new WeakMap,tg=Symbol("_moveCb"),FS=Symbol("_enterCb"),BS=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:gs({},yS,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ct(),s=CC();let a,o;return rr(()=>{if(!a.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!HL(a[0].el,n.vnode.el,r)){a=[];return}a.forEach(BL),a.forEach(VL);const i=a.filter(zL);Z4(n.vnode.el),i.forEach(l=>{const c=l.el,u=c.style;Xr(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[tg]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[tg]=null,Ql(c,r))};c.addEventListener("transitionend",d)}),a=[]}),()=>{const r=un(e),i=_S(r);let l=r.tag||Ve;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,K0(u,i,s,n)),$S.set(u,VS(u.el)))}o=t.default?I4(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&du(u,K0(u,i,s,n))}return j(l,null,o)}}});function BL(e){const t=e.el;t[tg]&&t[tg](),t[FS]&&t[FS]()}function VL(e){DS.set(e,VS(e.el))}function zL(e){const t=$S.get(e),n=DS.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 VS(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function HL(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}=xS(s);return o.removeChild(s),r}const bf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ae(t)?n=>k2(t,n):t};function WL(e){e.target.composing=!0}function zS(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ki=Symbol("_assign");function HS(e,t,n){return t&&(e=e.trim()),n&&(e=p4(e)),e}const WS={created(e,{modifiers:{lazy:t,trim:n,number:s}},a){e[Ki]=bf(a);const o=s||a.props&&a.props.type==="number";ec(e,t?"change":"input",r=>{r.target.composing||e[Ki](HS(e.value,n,o))}),(n||o)&&ec(e,"change",()=>{e.value=HS(e.value,n,o)}),t||(ec(e,"compositionstart",WL),ec(e,"compositionend",zS),ec(e,"change",zS))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:a,number:o}},r){if(e[Ki]=bf(r),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?p4(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))}},jS={deep:!0,created(e,t,n){e[Ki]=bf(n),ec(e,"change",()=>{const s=e._modelValue,a=qS(e),o=e.checked,r=e[Ki];if(Ae(s)){const i=N_(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(C2(s)){const i=new Set(s);o?i.add(a):i.delete(a),r(i)}else r(GS(e,o))})},mounted:KS,beforeUpdate(e,t,n){e[Ki]=bf(n),KS(e,t,n)}};function KS(e,{value:t,oldValue:n},s){e._modelValue=t;let a;if(Ae(t))a=N_(t,s.props.value)>-1;else if(C2(t))a=t.has(s.props.value);else{if(t===n)return;a=ou(t,GS(e,!0))}e.checked!==a&&(e.checked=a)}const US={created(e,{value:t},n){e.checked=ou(t,n.props.value),e[Ki]=bf(n),ec(e,"change",()=>{e[Ki](qS(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ki]=bf(s),t!==n&&(e.checked=ou(t,s.props.value))}};function qS(e){return"_value"in e?e._value:e.value}function GS(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const jL=["ctrl","shift","alt","meta"],KL={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)=>jL.some(n=>e[`${n}Key`]&&!t.includes(n))},it=(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=KL[t[r]];if(i&&i(a,t))return}return e(a,...o)})},UL={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$n=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=a=>{if(!("key"in a))return;const o=Li(a.key);if(t.some(r=>r===o||UL[r]===o))return e(a)})},qL=gs({patchProp:DL},CL);let YS;function XS(){return YS||(YS=nL(qL))}const tc=(...e)=>{XS().render(...e)},JS=(...e)=>{const t=XS().createApp(...e),{mount:n}=t;return t.mount=s=>{const a=YL(s);if(!a)return;const o=t._component;!Ze(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const r=n(a,!1,GL(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),r},t};function GL(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function YL(e){return Ye(e)?document.querySelector(e):e}const XL="2.13.2",ZS=Symbol("INSTALLED_KEY"),QS=Symbol();var e5=typeof global=="object"&&global&&global.Object===Object&&global,JL=typeof self=="object"&&self&&self.Object===Object&&self,ir=e5||JL||Function("return this")(),Lo=ir.Symbol,t5=Object.prototype,ZL=t5.hasOwnProperty,QL=t5.toString,np=Lo?Lo.toStringTag:void 0;function eN(e){var t=ZL.call(e,np),n=e[np];try{e[np]=void 0;var s=!0}catch{}var a=QL.call(e);return s&&(t?e[np]=n:delete e[np]),a}var tN=Object.prototype,nN=tN.toString;function sN(e){return nN.call(e)}var aN="[object Null]",oN="[object Undefined]",n5=Lo?Lo.toStringTag:void 0;function mu(e){return e==null?e===void 0?oN:aN:n5&&n5 in Object(e)?eN(e):sN(e)}function Jr(e){return e!=null&&typeof e=="object"}var rN="[object Symbol]";function ng(e){return typeof e=="symbol"||Jr(e)&&mu(e)==rN}function ty(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,s5=Lo?Lo.prototype:void 0,a5=s5?s5.toString:void 0;function o5(e){if(typeof e=="string")return e;if(Pa(e))return ty(e,o5)+"";if(ng(e))return a5?a5.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var iN=/\s/;function lN(e){for(var t=e.length;t--&&iN.test(e.charAt(t)););return t}var cN=/^\s+/;function uN(e){return e&&e.slice(0,lN(e)+1).replace(cN,"")}function Ra(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var r5=NaN,dN=/^[-+]0x[0-9a-f]+$/i,fN=/^0b[01]+$/i,hN=/^0o[0-7]+$/i,pN=parseInt;function sp(e){if(typeof e=="number")return e;if(ng(e))return r5;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=uN(e);var n=fN.test(e);return n||hN.test(e)?pN(e.slice(2),n?2:8):dN.test(e)?r5:+e}function ny(e){return e}var vN="[object AsyncFunction]",mN="[object Function]",gN="[object GeneratorFunction]",bN="[object Proxy]";function sy(e){if(!Ra(e))return!1;var t=mu(e);return t==mN||t==gN||t==vN||t==bN}var ay=ir["__core-js_shared__"],i5=function(){var e=/[^.]+$/.exec(ay&&ay.keys&&ay.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yN(e){return!!i5&&i5 in e}var wN=Function.prototype,_N=wN.toString;function gu(e){if(e!=null){try{return _N.call(e)}catch{}try{return e+""}catch{}}return""}var CN=/[\\^$.*+?()[\]{}|]/g,SN=/^\[object .+?Constructor\]$/,xN=Function.prototype,kN=Object.prototype,EN=xN.toString,AN=kN.hasOwnProperty,TN=RegExp("^"+EN.call(AN).replace(CN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function MN(e){if(!Ra(e)||yN(e))return!1;var t=sy(e)?TN:SN;return t.test(gu(e))}function PN(e,t){return e==null?void 0:e[t]}function bu(e,t){var n=PN(e,t);return MN(n)?n:void 0}var oy=bu(ir,"WeakMap"),l5=Object.create,RN=function(){function e(){}return function(t){if(!Ra(t))return{};if(l5)return l5(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function IN(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 ON(){}function c5(e,t){var n=-1,s=e.length;for(t||(t=Array(s));++n<s;)t[n]=e[n];return t}var LN=800,NN=16,$N=Date.now;function DN(e){var t=0,n=0;return function(){var s=$N(),a=NN-(s-n);if(n=s,a>0){if(++t>=LN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function FN(e){return function(){return e}}var sg=function(){try{var e=bu(Object,"defineProperty");return e({},"",{}),e}catch{}}(),BN=sg?function(e,t){return sg(e,"toString",{configurable:!0,enumerable:!1,value:FN(t),writable:!0})}:ny,u5=DN(BN);function VN(e,t){for(var n=-1,s=e==null?0:e.length;++n<s&&t(e[n],n,e)!==!1;);return e}function d5(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 zN(e){return e!==e}function HN(e,t,n){for(var s=n-1,a=e.length;++s<a;)if(e[s]===t)return s;return-1}function WN(e,t,n){return t===t?HN(e,t,n):d5(e,zN,n)}function jN(e,t){var n=e==null?0:e.length;return!!n&&WN(e,t,0)>-1}var KN=9007199254740991,UN=/^(?:0|[1-9]\d*)$/;function ag(e,t){var n=typeof e;return t=t??KN,!!t&&(n=="number"||n!="symbol"&&UN.test(e))&&e>-1&&e%1==0&&e<t}function ry(e,t,n){t=="__proto__"&&sg?sg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ap(e,t){return e===t||e!==e&&t!==t}var qN=Object.prototype,GN=qN.hasOwnProperty;function iy(e,t,n){var s=e[t];(!(GN.call(e,t)&&ap(s,n))||n===void 0&&!(t in e))&&ry(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?ry(n,i,l):iy(n,i,l)}return n}var f5=Math.max;function h5(e,t,n){return t=f5(t===void 0?e.length-1:t,0),function(){for(var s=arguments,a=-1,o=f5(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),IN(e,this,i)}}function p5(e,t){return u5(h5(e,t,ny),e+"")}var YN=9007199254740991;function ly(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=YN}function wf(e){return e!=null&&ly(e.length)&&!sy(e)}function XN(e,t,n){if(!Ra(n))return!1;var s=typeof t;return(s=="number"?wf(n)&&ag(t,n.length):s=="string"&&t in n)?ap(n[t],e):!1}function JN(e){return p5(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&&XN(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 ZN=Object.prototype;function cy(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ZN;return e===n}function QN(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}var e$="[object Arguments]";function v5(e){return Jr(e)&&mu(e)==e$}var m5=Object.prototype,t$=m5.hasOwnProperty,n$=m5.propertyIsEnumerable,op=v5(function(){return arguments}())?v5:function(e){return Jr(e)&&t$.call(e,"callee")&&!n$.call(e,"callee")};function s$(){return!1}var g5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,b5=g5&&typeof module=="object"&&module&&!module.nodeType&&module,a$=b5&&b5.exports===g5,y5=a$?ir.Buffer:void 0,o$=y5?y5.isBuffer:void 0,rp=o$||s$,r$="[object Arguments]",i$="[object Array]",l$="[object Boolean]",c$="[object Date]",u$="[object Error]",d$="[object Function]",f$="[object Map]",h$="[object Number]",p$="[object Object]",v$="[object RegExp]",m$="[object Set]",g$="[object String]",b$="[object WeakMap]",y$="[object ArrayBuffer]",w$="[object DataView]",_$="[object Float32Array]",C$="[object Float64Array]",S$="[object Int8Array]",x$="[object Int16Array]",k$="[object Int32Array]",E$="[object Uint8Array]",A$="[object Uint8ClampedArray]",T$="[object Uint16Array]",M$="[object Uint32Array]",Gn={};Gn[_$]=Gn[C$]=Gn[S$]=Gn[x$]=Gn[k$]=Gn[E$]=Gn[A$]=Gn[T$]=Gn[M$]=!0,Gn[r$]=Gn[i$]=Gn[y$]=Gn[l$]=Gn[w$]=Gn[c$]=Gn[u$]=Gn[d$]=Gn[f$]=Gn[h$]=Gn[p$]=Gn[v$]=Gn[m$]=Gn[g$]=Gn[b$]=!1;function P$(e){return Jr(e)&&ly(e.length)&&!!Gn[mu(e)]}function uy(e){return function(t){return e(t)}}var w5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ip=w5&&typeof module=="object"&&module&&!module.nodeType&&module,R$=ip&&ip.exports===w5,dy=R$&&e5.process,_f=function(){try{var e=ip&&ip.require&&ip.require("util").types;return e||dy&&dy.binding&&dy.binding("util")}catch{}}(),_5=_f&&_f.isTypedArray,fy=_5?uy(_5):P$,I$=Object.prototype,O$=I$.hasOwnProperty;function C5(e,t){var n=Pa(e),s=!n&&op(e),a=!n&&!s&&rp(e),o=!n&&!s&&!a&&fy(e),r=n||s||a||o,i=r?QN(e.length,String):[],l=i.length;for(var c in e)(t||O$.call(e,c))&&!(r&&(c=="length"||a&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ag(c,l)))&&i.push(c);return i}function S5(e,t){return function(n){return e(t(n))}}var L$=S5(Object.keys,Object),N$=Object.prototype,$$=N$.hasOwnProperty;function D$(e){if(!cy(e))return L$(e);var t=[];for(var n in Object(e))$$.call(e,n)&&n!="constructor"&&t.push(n);return t}function lp(e){return wf(e)?C5(e):D$(e)}function F$(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var B$=Object.prototype,V$=B$.hasOwnProperty;function z$(e){if(!Ra(e))return F$(e);var t=cy(e),n=[];for(var s in e)s=="constructor"&&(t||!V$.call(e,s))||n.push(s);return n}function cp(e){return wf(e)?C5(e,!0):z$(e)}var H$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W$=/^\w*$/;function hy(e,t){if(Pa(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ng(e)?!0:W$.test(e)||!H$.test(e)||t!=null&&e in Object(t)}var up=bu(Object,"create");function j$(){this.__data__=up?up(null):{},this.size=0}function K$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var U$="__lodash_hash_undefined__",q$=Object.prototype,G$=q$.hasOwnProperty;function Y$(e){var t=this.__data__;if(up){var n=t[e];return n===U$?void 0:n}return G$.call(t,e)?t[e]:void 0}var X$=Object.prototype,J$=X$.hasOwnProperty;function Z$(e){var t=this.__data__;return up?t[e]!==void 0:J$.call(t,e)}var Q$="__lodash_hash_undefined__";function eD(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=up&&t===void 0?Q$: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=j$,yu.prototype.delete=K$,yu.prototype.get=Y$,yu.prototype.has=Z$,yu.prototype.set=eD;function tD(){this.__data__=[],this.size=0}function og(e,t){for(var n=e.length;n--;)if(ap(e[n][0],t))return n;return-1}var nD=Array.prototype,sD=nD.splice;function aD(e){var t=this.__data__,n=og(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():sD.call(t,n,1),--this.size,!0}function oD(e){var t=this.__data__,n=og(t,e);return n<0?void 0:t[n][1]}function rD(e){return og(this.__data__,e)>-1}function iD(e,t){var n=this.__data__,s=og(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}function Ui(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])}}Ui.prototype.clear=tD,Ui.prototype.delete=aD,Ui.prototype.get=oD,Ui.prototype.has=rD,Ui.prototype.set=iD;var dp=bu(ir,"Map");function lD(){this.size=0,this.__data__={hash:new yu,map:new(dp||Ui),string:new yu}}function cD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function rg(e,t){var n=e.__data__;return cD(t)?n[typeof t=="string"?"string":"hash"]:n.map}function uD(e){var t=rg(this,e).delete(e);return this.size-=t?1:0,t}function dD(e){return rg(this,e).get(e)}function fD(e){return rg(this,e).has(e)}function hD(e,t){var n=rg(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,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=lD,qi.prototype.delete=uD,qi.prototype.get=dD,qi.prototype.has=fD,qi.prototype.set=hD;var pD="Expected a function";function ig(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pD);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(ig.Cache||qi),n}ig.Cache=qi;var vD=500;function mD(e){var t=ig(e,function(s){return n.size===vD&&n.clear(),s}),n=t.cache;return t}var gD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bD=/\\(\\)?/g,yD=mD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(gD,function(n,s,a,o){t.push(a?o.replace(bD,"$1"):s||n)}),t});function wD(e){return e==null?"":o5(e)}function Cf(e,t){return Pa(e)?e:hy(e,t)?[e]:yD(wD(e))}function Sf(e){if(typeof e=="string"||ng(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function lg(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 Jn(e,t,n){var s=e==null?void 0:lg(e,t);return s===void 0?n:s}function py(e,t){for(var n=-1,s=t.length,a=e.length;++n<s;)e[a+n]=t[n];return e}var x5=Lo?Lo.isConcatSpreadable:void 0;function _D(e){return Pa(e)||op(e)||!!(x5&&e&&e[x5])}function fp(e,t,n,s,a){var o=-1,r=e.length;for(n||(n=_D),a||(a=[]);++o<r;){var i=e[o];t>0&&n(i)?t>1?fp(i,t-1,n,s,a):py(a,i):s||(a[a.length]=i)}return a}function cg(e){var t=e==null?0:e.length;return t?fp(e,1):[]}function k5(e){return u5(h5(e,void 0,cg),e+"")}var vy=S5(Object.getPrototypeOf,Object),CD="[object Object]",SD=Function.prototype,xD=Object.prototype,E5=SD.toString,kD=xD.hasOwnProperty,ED=E5.call(Object);function A5(e){if(!Jr(e)||mu(e)!=CD)return!1;var t=vy(e);if(t===null)return!0;var n=kD.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&E5.call(n)==ED}function AD(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 ks(){if(!arguments.length)return[];var e=arguments[0];return Pa(e)?e:[e]}function TD(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=sp(n),n=n===n?n:0),t!==void 0&&(t=sp(t),t=t===t?t:0),TD(sp(e),t,n)}function MD(){this.__data__=new Ui,this.size=0}function PD(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function RD(e){return this.__data__.get(e)}function ID(e){return this.__data__.has(e)}var OD=200;function LD(e,t){var n=this.__data__;if(n instanceof Ui){var s=n.__data__;if(!dp||s.length<OD-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new qi(s)}return n.set(e,t),this.size=n.size,this}function lr(e){var t=this.__data__=new Ui(e);this.size=t.size}lr.prototype.clear=MD,lr.prototype.delete=PD,lr.prototype.get=RD,lr.prototype.has=ID,lr.prototype.set=LD;function ND(e,t){return e&&yf(t,lp(t),e)}function $D(e,t){return e&&yf(t,cp(t),e)}var T5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,M5=T5&&typeof module=="object"&&module&&!module.nodeType&&module,DD=M5&&M5.exports===T5,P5=DD?ir.Buffer:void 0,R5=P5?P5.allocUnsafe:void 0;function I5(e,t){if(t)return e.slice();var n=e.length,s=R5?R5(n):new e.constructor(n);return e.copy(s),s}function FD(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 O5(){return[]}var BD=Object.prototype,VD=BD.propertyIsEnumerable,L5=Object.getOwnPropertySymbols,my=L5?function(e){return e==null?[]:(e=Object(e),FD(L5(e),function(t){return VD.call(e,t)}))}:O5;function zD(e,t){return yf(e,my(e),t)}var HD=Object.getOwnPropertySymbols,N5=HD?function(e){for(var t=[];e;)py(t,my(e)),e=vy(e);return t}:O5;function WD(e,t){return yf(e,N5(e),t)}function $5(e,t,n){var s=t(e);return Pa(e)?s:py(s,n(e))}function gy(e){return $5(e,lp,my)}function D5(e){return $5(e,cp,N5)}var by=bu(ir,"DataView"),yy=bu(ir,"Promise"),xf=bu(ir,"Set"),F5="[object Map]",jD="[object Object]",B5="[object Promise]",V5="[object Set]",z5="[object WeakMap]",H5="[object DataView]",KD=gu(by),UD=gu(dp),qD=gu(yy),GD=gu(xf),YD=gu(oy),cr=mu;(by&&cr(new by(new ArrayBuffer(1)))!=H5||dp&&cr(new dp)!=F5||yy&&cr(yy.resolve())!=B5||xf&&cr(new xf)!=V5||oy&&cr(new oy)!=z5)&&(cr=function(e){var t=mu(e),n=t==jD?e.constructor:void 0,s=n?gu(n):"";if(s)switch(s){case KD:return H5;case UD:return F5;case qD:return B5;case GD:return V5;case YD:return z5}return t});var XD=Object.prototype,JD=XD.hasOwnProperty;function ZD(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&JD.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ug=ir.Uint8Array;function wy(e){var t=new e.constructor(e.byteLength);return new ug(t).set(new ug(e)),t}function QD(e,t){var n=t?wy(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var eF=/\w*$/;function tF(e){var t=new e.constructor(e.source,eF.exec(e));return t.lastIndex=e.lastIndex,t}var W5=Lo?Lo.prototype:void 0,j5=W5?W5.valueOf:void 0;function nF(e){return j5?Object(j5.call(e)):{}}function K5(e,t){var n=t?wy(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var sF="[object Boolean]",aF="[object Date]",oF="[object Map]",rF="[object Number]",iF="[object RegExp]",lF="[object Set]",cF="[object String]",uF="[object Symbol]",dF="[object ArrayBuffer]",fF="[object DataView]",hF="[object Float32Array]",pF="[object Float64Array]",vF="[object Int8Array]",mF="[object Int16Array]",gF="[object Int32Array]",bF="[object Uint8Array]",yF="[object Uint8ClampedArray]",wF="[object Uint16Array]",_F="[object Uint32Array]";function CF(e,t,n){var s=e.constructor;switch(t){case dF:return wy(e);case sF:case aF:return new s(+e);case fF:return QD(e,n);case hF:case pF:case vF:case mF:case gF:case bF:case yF:case wF:case _F:return K5(e,n);case oF:return new s;case rF:case cF:return new s(e);case iF:return tF(e);case lF:return new s;case uF:return nF(e)}}function U5(e){return typeof e.constructor=="function"&&!cy(e)?RN(vy(e)):{}}var SF="[object Map]";function xF(e){return Jr(e)&&cr(e)==SF}var q5=_f&&_f.isMap,kF=q5?uy(q5):xF,EF="[object Set]";function AF(e){return Jr(e)&&cr(e)==EF}var G5=_f&&_f.isSet,TF=G5?uy(G5):AF,MF=1,PF=2,RF=4,Y5="[object Arguments]",IF="[object Array]",OF="[object Boolean]",LF="[object Date]",NF="[object Error]",X5="[object Function]",$F="[object GeneratorFunction]",DF="[object Map]",FF="[object Number]",J5="[object Object]",BF="[object RegExp]",VF="[object Set]",zF="[object String]",HF="[object Symbol]",WF="[object WeakMap]",jF="[object ArrayBuffer]",KF="[object DataView]",UF="[object Float32Array]",qF="[object Float64Array]",GF="[object Int8Array]",YF="[object Int16Array]",XF="[object Int32Array]",JF="[object Uint8Array]",ZF="[object Uint8ClampedArray]",QF="[object Uint16Array]",eB="[object Uint32Array]",jn={};jn[Y5]=jn[IF]=jn[jF]=jn[KF]=jn[OF]=jn[LF]=jn[UF]=jn[qF]=jn[GF]=jn[YF]=jn[XF]=jn[DF]=jn[FF]=jn[J5]=jn[BF]=jn[VF]=jn[zF]=jn[HF]=jn[JF]=jn[ZF]=jn[QF]=jn[eB]=!0,jn[NF]=jn[X5]=jn[WF]=!1;function kf(e,t,n,s,a,o){var r,i=t&MF,l=t&PF,c=t&RF;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=ZD(e),!i)return c5(e,r)}else{var d=cr(e),h=d==X5||d==$F;if(rp(e))return I5(e,i);if(d==J5||d==Y5||h&&!a){if(r=l||h?{}:U5(e),!i)return l?WD(e,$D(r,e)):zD(e,ND(r,e))}else{if(!jn[d])return a?e:{};r=CF(e,d,i)}}o||(o=new lr);var p=o.get(e);if(p)return p;o.set(e,r),TF(e)?e.forEach(function(g){r.add(kf(g,t,n,g,e,o))}):kF(e)&&e.forEach(function(g,b){r.set(b,kf(g,t,n,b,e,o))});var v=c?l?D5:gy:l?cp:lp,m=u?void 0:v(e);return VN(m||e,function(g,b){m&&(b=g,g=e[b]),iy(r,b,kf(g,t,n,b,e,o))}),r}var tB=4;function _y(e){return kf(e,tB)}var nB=1,sB=4;function dg(e){return kf(e,nB|sB)}var aB="__lodash_hash_undefined__";function oB(e){return this.__data__.set(e,aB),this}function rB(e){return this.__data__.has(e)}function hp(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new qi;++t<n;)this.add(e[t])}hp.prototype.add=hp.prototype.push=oB,hp.prototype.has=rB;function iB(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 Z5(e,t){return e.has(t)}var lB=1,cB=2;function Q5(e,t,n,s,a,o){var r=n&lB,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 d=-1,h=!0,p=n&cB?new hp:void 0;for(o.set(e,t),o.set(t,e);++d<i;){var v=e[d],m=t[d];if(s)var g=r?s(m,v,d,t,e,o):s(v,m,d,e,t,o);if(g!==void 0){if(g)continue;h=!1;break}if(p){if(!iB(t,function(b,_){if(!Z5(p,_)&&(v===b||a(v,b,n,s,o)))return p.push(_)})){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 uB(e){var t=-1,n=Array(e.size);return e.forEach(function(s,a){n[++t]=[a,s]}),n}function Cy(e){var t=-1,n=Array(e.size);return e.forEach(function(s){n[++t]=s}),n}var dB=1,fB=2,hB="[object Boolean]",pB="[object Date]",vB="[object Error]",mB="[object Map]",gB="[object Number]",bB="[object RegExp]",yB="[object Set]",wB="[object String]",_B="[object Symbol]",CB="[object ArrayBuffer]",SB="[object DataView]",ex=Lo?Lo.prototype:void 0,Sy=ex?ex.valueOf:void 0;function xB(e,t,n,s,a,o,r){switch(n){case SB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case CB:return!(e.byteLength!=t.byteLength||!o(new ug(e),new ug(t)));case hB:case pB:case gB:return ap(+e,+t);case vB:return e.name==t.name&&e.message==t.message;case bB:case wB:return e==t+"";case mB:var i=uB;case yB:var l=s&dB;if(i||(i=Cy),e.size!=t.size&&!l)return!1;var c=r.get(e);if(c)return c==t;s|=fB,r.set(e,t);var u=Q5(i(e),i(t),s,a,o,r);return r.delete(e),u;case _B:if(Sy)return Sy.call(e)==Sy.call(t)}return!1}var kB=1,EB=Object.prototype,AB=EB.hasOwnProperty;function TB(e,t,n,s,a,o){var r=n&kB,i=gy(e),l=i.length,c=gy(t),u=c.length;if(l!=u&&!r)return!1;for(var d=l;d--;){var h=i[d];if(!(r?h in t:AB.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;++d<l;){h=i[d];var b=e[h],_=t[h];if(s)var w=r?s(_,b,h,t,e,o):s(b,_,h,e,t,o);if(!(w===void 0?b===_||a(b,_,n,s,o):w)){m=!1;break}g||(g=h=="constructor")}if(m&&!g){var C=e.constructor,x=t.constructor;C!=x&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof x=="function"&&x instanceof x)&&(m=!1)}return o.delete(e),o.delete(t),m}var MB=1,tx="[object Arguments]",nx="[object Array]",fg="[object Object]",PB=Object.prototype,sx=PB.hasOwnProperty;function RB(e,t,n,s,a,o){var r=Pa(e),i=Pa(t),l=r?nx:cr(e),c=i?nx:cr(t);l=l==tx?fg:l,c=c==tx?fg:c;var u=l==fg,d=c==fg,h=l==c;if(h&&rp(e)){if(!rp(t))return!1;r=!0,u=!1}if(h&&!u)return o||(o=new lr),r||fy(e)?Q5(e,t,n,s,a,o):xB(e,t,l,n,s,a,o);if(!(n&MB)){var p=u&&sx.call(e,"__wrapped__"),v=d&&sx.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,g=v?t.value():t;return o||(o=new lr),a(m,g,n,s,o)}}return h?(o||(o=new lr),TB(e,t,n,s,a,o)):!1}function hg(e,t,n,s,a){return e===t?!0:e==null||t==null||!Jr(e)&&!Jr(t)?e!==e&&t!==t:RB(e,t,n,s,hg,a)}var IB=1,OB=2;function LB(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 lr,d;if(!(d===void 0?hg(c,l,IB|OB,s,u):d))return!1}}return!0}function ax(e){return e===e&&!Ra(e)}function NB(e){for(var t=lp(e),n=t.length;n--;){var s=t[n],a=e[s];t[n]=[s,a,ax(a)]}return t}function ox(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function $B(e){var t=NB(e);return t.length==1&&t[0][2]?ox(t[0][0],t[0][1]):function(n){return n===e||LB(n,e,t)}}function DB(e,t){return e!=null&&t in Object(e)}function rx(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&&ly(a)&&ag(r,a)&&(Pa(e)||op(e)))}function ix(e,t){return e!=null&&rx(e,t,DB)}var FB=1,BB=2;function VB(e,t){return hy(e)&&ax(t)?ox(Sf(e),t):function(n){var s=Jn(n,e);return s===void 0&&s===t?ix(n,e):hg(t,s,FB|BB)}}function zB(e){return function(t){return t==null?void 0:t[e]}}function HB(e){return function(t){return lg(t,e)}}function WB(e){return hy(e)?zB(Sf(e)):HB(e)}function lx(e){return typeof e=="function"?e:e==null?ny:typeof e=="object"?Pa(e)?VB(e[0],e[1]):$B(e):WB(e)}function jB(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 cx=jB();function KB(e,t){return e&&cx(e,t,lp)}function UB(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=UB(KB),xy=function(){return ir.Date.now()},GB="Expected a function",YB=Math.max,XB=Math.min;function Zr(e,t,n){var s,a,o,r,i,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(GB);t=sp(t)||0,Ra(n)&&(u=!!n.leading,d="maxWait"in n,o=d?YB(sp(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 d?XB(I,o-R):I}function g(k){var T=k-l,R=k-c;return l===void 0||T>=t||T<0||d&&R>=o}function b(){var k=xy();if(g(k))return _(k);i=setTimeout(b,m(k))}function _(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 C(){return i===void 0?r:_(xy())}function x(){var k=xy(),T=g(k);if(s=arguments,a=this,l=k,T){if(i===void 0)return v(l);if(d)return clearTimeout(i),i=setTimeout(b,t),p(l)}return i===void 0&&(i=setTimeout(b,t)),r}return x.cancel=w,x.flush=C,x}function ky(e,t,n){(n!==void 0&&!ap(e[t],n)||n===void 0&&!(t in e))&&ry(e,t,n)}function ux(e){return Jr(e)&&wf(e)}function Ey(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function JB(e){return yf(e,cp(e))}function ZB(e,t,n,s,a,o,r){var i=Ey(e,n),l=Ey(t,n),c=r.get(l);if(c){ky(e,n,c);return}var u=o?o(i,l,n+"",e,t,r):void 0,d=u===void 0;if(d){var h=Pa(l),p=!h&&rp(l),v=!h&&!p&&fy(l);u=l,h||p||v?Pa(i)?u=i:ux(i)?u=c5(i):p?(d=!1,u=I5(l,!0)):v?(d=!1,u=K5(l,!0)):u=[]:A5(l)||op(l)?(u=i,op(i)?u=JB(i):(!Ra(i)||sy(i))&&(u=U5(l))):d=!1}d&&(r.set(l,u),a(u,l,s,o,r),r.delete(l)),ky(e,n,u)}function dx(e,t,n,s,a){e!==t&&cx(t,function(o,r){if(a||(a=new lr),Ra(o))ZB(e,t,r,n,dx,s,a);else{var i=s?s(Ey(e,r),o,r+"",e,t,a):void 0;i===void 0&&(i=o),ky(e,r,i)}},cp)}function QB(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function fx(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var a=s-1;return d5(e,lx(t),a,!0)}function eV(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 tV(e,t){var n=Pa(e)?ty:eV;return n(e,lx(t))}function hx(e,t){return fp(tV(e,t),1)}var nV=1/0;function sV(e){var t=e==null?0:e.length;return t?fp(e,nV):[]}function pp(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 aV=Object.prototype,oV=aV.hasOwnProperty;function rV(e,t){return e!=null&&oV.call(e,t)}function iV(e,t){return e!=null&&rx(e,t,rV)}function lV(e,t){return t.length<2?e:lg(e,AD(t,0,-1))}function Dn(e,t){return hg(e,t)}function Yn(e){return e==null}function pg(e){return e===null}function cV(e){return e===void 0}var px=JN(function(e,t,n){dx(e,t,n)}),uV=Object.prototype,dV=uV.hasOwnProperty;function fV(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__"&&!dV.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=lV(e,t);return r==null||delete r[Sf(QB(t))]}function hV(e){return A5(e)?void 0:e}var pV=1,vV=2,mV=4,vp=k5(function(e,t){var n={};if(e==null)return n;var s=!1;t=ty(t,function(o){return o=Cf(o,e),s||(s=o.length>1),o}),yf(e,D5(e),n),s&&(n=kf(n,pV|vV|mV,hV));for(var a=t.length;a--;)fV(n,t[a]);return n});function vx(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:ag(t[a+1])?[]:{})}iy(i,l,c),i=i[l]}return e}function gV(e,t,n){for(var s=-1,a=t.length,o={};++s<a;){var r=t[s],i=lg(e,r);n(i,r)&&vx(o,Cf(r,e),i)}return o}function bV(e,t){return gV(e,t,function(n,s){return ix(e,s)})}var Gi=k5(function(e,t){return e==null?{}:bV(e,t)});function yV(e,t,n){return e==null?e:vx(e,t,n)}var wV="Expected a function";function nc(e,t,n){var s=!0,a=!0;if(typeof e!="function")throw new TypeError(wV);return Ra(n)&&(s="leading"in n?!!n.leading:s,a="trailing"in n?!!n.trailing:a),Zr(e,t,{leading:s,maxWait:t,trailing:a})}var _V=1/0,CV=xf&&1/Cy(new xf([,-0]))[1]==_V?function(e){return new xf(e)}:ON,SV=200;function xV(e,t,n){var s=-1,a=jN,o=e.length,r=!0,i=[],l=i;if(o>=SV){var c=CV(e);if(c)return Cy(c);r=!1,a=Z5,l=new hp}else l=i;e:for(;++s<o;){var u=e[s],d=u;if(u=u!==0?u:0,r&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;i.push(u)}else a(l,d,n)||(l!==i&&l.push(d),i.push(u))}return i}var Ay=p5(function(e){return xV(fp(e,1,ux,!0))}),kV={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 EV=e=>(t,n)=>AV(t,n,f(e)),AV=(e,t,n)=>Jn(n,e,e).replace(/\{(\w+)\}/g,(s,a)=>{var o;return`${(o=t==null?void 0:t[a])!=null?o:`{${a}}`}`}),TV=e=>({lang:E(()=>f(e).name),locale:vn(e)?e:F(e),t:EV(e)}),mx=Symbol("localeContextKey"),Ot=e=>{const t=e||We(mx,F());return TV(E(()=>t.value||kV))},mp="el",MV="is-",_u=(e,t,n,s,a)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),s&&(o+=`__${s}`),a&&(o+=`--${a}`),o},gx=Symbol("namespaceContextKey"),Ty=e=>{const t=e||(Ct()?We(gx,F(mp)):F(mp));return E(()=>f(t)||mp)},ke=(e,t)=>{const n=Ty(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?`${MV}${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}`}},Dt=e=>e===void 0,tn=e=>typeof e=="boolean",nt=e=>typeof e=="number",Ia=e=>!e&&e!==0||Ae(e)&&e.length===0||dt(e)&&!Object.keys(e).length,Ka=e=>typeof Element>"u"?!1:e instanceof Element,Ua=e=>Yn(e),PV=e=>Ye(e)?!Number.isNaN(Number(e)):!1,gp=e=>e===window;function bx(e,t){var n;const s=pn();return ja(()=>{s.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),iu(s)}function Cu(e){return B_()?(V_(e),!0):!1}function lo(e){return typeof e=="function"?e():f(e)}function RV(e){if(!vn(e))return Kt(e);const t=new Proxy({},{get(n,s,a){return f(Reflect.get(e.value,s,a))},set(n,s,a){return vn(e.value[s])&&!vn(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 Kt(t)}function IV(e){return RV(E(e))}const Ut=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const OV=e=>typeof e<"u",yx=e=>e!=null,LV=Object.prototype.toString,NV=e=>LV.call(e)==="[object Object]",wx=(e,t,n)=>Math.min(n,Math.max(t,e)),ur=()=>{},vg=$V();function $V(){var e,t;return Ut&&((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 _x(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 DV(e,t={}){let n,s,a=ur;const o=i=>{clearTimeout(i),a(),a=ur};return i=>{const l=lo(e),c=lo(t.maxWait);return n&&o(n),l<=0||c!==void 0&&c<=0?(s&&(o(s),s=null),Promise.resolve(i())):new Promise((u,d)=>{a=t.rejectOnCancel?d:u,c&&!s&&(s=setTimeout(()=>{n&&o(n),s=null,u(i())},c)),n=setTimeout(()=>{s&&o(s),s=null,u(i())},l)})}}function FV(...e){let t=0,n,s=!0,a=ur,o,r,i,l,c;!vn(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=ur)};return h=>{const p=lo(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 BV(e){return Ct()}function bp(e,t=200,n={}){return _x(DV(t,n),e)}function VV(e,t=200,n={}){const s=F(e.value),a=bp(()=>{s.value=e.value},t,n);return ge(e,()=>a()),s}function Cx(e,t=200,n=!1,s=!0,a=!1){return _x(FV(t,n,s,a),e)}function My(e,t=!0,n){BV()?xt(e,n):t?e():Be(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)},lo(t))}return s&&(a.value=!0,Ut&&l()),Cu(i),{isPending:iu(a),start:l,stop:i}}function ls(e){var t;const n=lo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const dr=Ut?window:void 0,zV=Ut?window.document:void 0;function en(...e){let t,n,s,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,a]=e,t=dr):[t,n,s,a]=e,!t)return ur;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],r=()=>{o.forEach(u=>u()),o.length=0},i=(u,d,h,p)=>(u.addEventListener(d,h,p),()=>u.removeEventListener(d,h,p)),l=ge(()=>[ls(t),lo(a)],([u,d])=>{if(r(),!u)return;const h=NV(d)?{...d}:d;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 Sx=!1;function Py(e,t,n={}){const{window:s=dr,ignore:a=[],capture:o=!0,detectIframe:r=!1}=n;if(!s)return ur;vg&&!Sx&&(Sx=!0,Array.from(s.document.body.children).forEach(h=>h.addEventListener("click",ur)),s.document.documentElement.addEventListener("click",ur));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=ls(p);return v&&(h.target===v||h.composedPath().includes(v))}}),u=[en(s,"click",h=>{const p=ls(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}),en(s,"pointerdown",h=>{const p=ls(e);i=!l(h)&&!!(p&&!h.composedPath().includes(p))},{passive:!0}),r&&en(s,"blur",h=>{setTimeout(()=>{var p;const v=ls(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 HV(){const e=F(!1),t=Ct();return t&&xt(()=>{e.value=!0},t),e}function mg(e){const t=HV();return E(()=>(t.value,!!e()))}function yp(e,t,n={}){const{window:s=dr,...a}=n;let o;const r=mg(()=>s&&"MutationObserver"in s),i=()=>{o&&(o.disconnect(),o=void 0)},l=E(()=>{const h=lo(e),p=(Array.isArray(h)?h:[h]).map(ls).filter(yx);return new Set(p)}),c=ge(()=>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(),d=()=>{i(),c()};return Cu(d),{isSupported:r,stop:d,takeRecords:u}}function WV(e={}){var t;const{window:n=dr,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&&(en(n,"blur",c=>{c.relatedTarget===null&&l()},!0),en(n,"focus",l,!0)),a&&yp(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 jV(e,t={}){const{window:n=dr}=t,s=mg(()=>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(lo(e)),"addEventListener"in a?a.addEventListener("change",r):a.addListener(r),o.value=a.matches)});return Cu(()=>{l(),i(),a=void 0}),o}function KV(e){return JSON.parse(JSON.stringify(e))}function UV(e,t,n={}){const{window:s=dr,initialValue:a="",observe:o=!1}=n,r=F(a),i=E(()=>{var c;return ls(t)||((c=s==null?void 0:s.document)==null?void 0:c.documentElement)});function l(){var c;const u=lo(e),d=lo(i);if(d&&s){const h=(c=s.getComputedStyle(d).getPropertyValue(u))==null?void 0:c.trim();r.value=h||a}}return o&&yp(i,l,{attributeFilter:["style","class"],window:s}),ge([i,()=>lo(e)],l,{immediate:!0}),ge(r,c=>{var u;(u=i.value)!=null&&u.style&&i.value.style.setProperty(lo(e),c)}),r}function qV(e={}){const{document:t=zV}=e;if(!t)return F("visible");const n=F(t.visibilityState);return en(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function _n(e,t,n={}){const{window:s=dr,...a}=n;let o;const r=mg(()=>s&&"ResizeObserver"in s),i=()=>{o&&(o.disconnect(),o=void 0)},l=E(()=>Array.isArray(e)?e.map(d=>ls(d)):[ls(e)]),c=ge(l,d=>{if(i(),r.value&&s){o=new ResizeObserver(t);for(const h of d)h&&o.observe(h,a)}},{immediate:!0,flush:"post"}),u=()=>{i(),c()};return Cu(u),{isSupported:r,stop:u}}function xx(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),d=F(0),h=F(0),p=F(0);function v(){const m=ls(e);if(!m){n&&(r.value=0,i.value=0,l.value=0,c.value=0,u.value=0,d.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,d.value=g.width,h.value=g.x,p.value=g.y}return _n(e,v),ge(()=>ls(e),m=>!m&&v()),yp(e,v,{attributeFilter:["style","class"]}),a&&en("scroll",v,{capture:!0,passive:!0}),s&&en("resize",v,{passive:!0}),My(()=>{o&&v()}),{height:r,bottom:i,left:l,right:c,top:u,width:d,x:h,y:p,update:v}}function Ry(e,t={width:0,height:0},n={}){const{window:s=dr,box:a="content-box"}=n,o=E(()=>{var d,h;return(h=(d=ls(e))==null?void 0:d.namespaceURI)==null?void 0:h.includes("svg")}),r=F(t.width),i=F(t.height),{stop:l}=_n(e,([d])=>{const h=a==="border-box"?d.borderBoxSize:a==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(s&&o.value){const p=ls(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=d.contentRect.width,i.value=d.contentRect.height},n);My(()=>{const d=ls(e);d&&(r.value="offsetWidth"in d?d.offsetWidth:t.width,i.value="offsetHeight"in d?d.offsetHeight:t.height)});const c=ge(()=>ls(e),d=>{r.value=d?t.width:0,i.value=d?t.height:0});function u(){l(),c()}return{width:r,height:i,stop:u}}function GV(e,t,n={}){const{root:s,rootMargin:a="0px",threshold:o=.1,window:r=dr,immediate:i=!0}=n,l=mg(()=>r&&"IntersectionObserver"in r),c=E(()=>{const v=lo(e);return(Array.isArray(v)?v:[v]).map(ls).filter(yx)});let u=ur;const d=F(i),h=l.value?ge(()=>[c.value,ls(s),d.value],([v,m])=>{if(u(),!d.value||!v.length)return;const g=new IntersectionObserver(t,{root:ls(m),rootMargin:a,threshold:o});v.forEach(b=>b&&g.observe(b)),u=()=>{g.disconnect(),u=ur}},{immediate:i,flush:"post"}):ur,p=()=>{u(),h(),d.value=!1};return Cu(p),{isSupported:l,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:p}}function kx(e,t,n,s={}){var a,o,r;const{clone:i=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:h}=s,p=Ct(),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):KV(w):w,b=()=>OV(e[t])?g(e[t]):d,_=w=>{h?h(w)&&v(m,w):v(m,w)};if(l){const w=b(),C=F(w);let x=!1;return ge(()=>e[t],k=>{x||(x=!0,C.value=g(k),Be(()=>x=!1))}),ge(C,k=>{!x&&(k!==e[t]||u)&&_(k)},{deep:u}),C}else return E({get(){return b()},set(w){_(w)}})}function YV(e={}){const{window:t=dr}=e;if(!t)return F(!1);const n=F(t.document.hasFocus());return en(t,"blur",()=>{n.value=!1}),en(t,"focus",()=>{n.value=!0}),n}function Iy(e={}){const{window:t=dr,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(),My(l),en("resize",l,{passive:!0}),a){const c=jV("(orientation: portrait)");ge(c,()=>l())}return{width:r,height:i}}class XV extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Zn(e,t){throw new XV(`[${e}] ${t}`)}function Xye(e,t){}const Ex={current:0},Ax=F(0),Tx=2e3,Mx=Symbol("elZIndexContextKey"),Px=Symbol("zIndexContextKey"),wp=e=>{const t=Ct()?We(Mx,Ex):Ex,n=e||(Ct()?We(Px,void 0):void 0),s=E(()=>{const r=f(n);return nt(r)?r:Tx}),a=E(()=>s.value+Ax.value),o=()=>(t.current++,Ax.value=t.current,a.value);return!Ut&&We(Mx),{initialZIndex:s,currentZIndex:a,nextZIndex:o}},Rx="__epPropKey",re=e=>e,JV=e=>dt(e)&&!!e[Rx],fr=(e,t)=>{if(!dt(e)||JV(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,d=[];if(n&&(d=Array.from(n),jt(e,"default")&&d.push(a),u||(u=d.includes(c))),r&&(u||(u=r(c))),!u&&d.length>0){const h=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");yL(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[Rx]:!0};return jt(e,"default")&&(l.default=a),l},Me=e=>pp(Object.entries(e).map(([t,n])=>[t,fr(n,t)])),hr=["","default","small","large"],cs=fr({type:String,values:hr,required:!1}),Ix=Symbol("size"),Ox=()=>{const e=We(Ix,{});return E(()=>f(e.size)||"")},Lx=Symbol("emptyValuesContextKey"),ZV=["",void 0,null],QV=void 0,Su=Me({emptyValues:Array,valueOnClear:{type:re([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Ze(e)?e():e,Ae(e)?e.every(t=>!t):!e)}}),_p=(e,t)=>{const n=Ct()?We(Lx,F({})):F({}),s=E(()=>e.emptyValues||n.value.emptyValues||ZV),a=E(()=>Ze(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Ze(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:QV),o=r=>{let i=!0;return Ae(r)?i=s.value.some(l=>Dn(r,l)):i=s.value.includes(r),i};return o(a.value),{emptyValues:s,valueOnClear:a,isEmptyValue:o}},Cp=e=>Object.keys(e),Nx=e=>Object.entries(e),Af=(e,t,n)=>({get value(){return Jn(e,t,n)},set value(s){yV(e,t,s)}}),gg=F();function Tf(e,t=void 0){const n=Ct()?We(QS,gg):gg;return e?E(()=>{var s,a;return(a=(s=n.value)==null?void 0:s[e])!=null?a:t}):n}function bg(e,t){const n=Tf(),s=ke(e,E(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||mp})),a=Ot(E(()=>{var i;return(i=n.value)==null?void 0:i.locale})),o=wp(E(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||Tx})),r=E(()=>{var i;return f(t)||((i=n.value)==null?void 0:i.size)||""});return Oy(E(()=>f(n)||{})),{ns:s,locale:a,zIndex:o,size:r}}const Oy=(e,t,n=!1)=>{var s;const a=!!Ct(),o=a?Tf():void 0,r=(s=t==null?void 0:t.provide)!=null?s:a?Mt:void 0;if(!r)return;const i=E(()=>{const l=f(e);return o!=null&&o.value?ez(o.value,l):l});return r(QS,i),r(mx,E(()=>i.value.locale)),r(gx,E(()=>i.value.namespace)),r(Px,E(()=>i.value.zIndex)),r(Ix,{size:E(()=>i.value.size||"")}),r(Lx,E(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!gg.value)&&(gg.value=i.value),i},ez=(e,t)=>{const n=[...new Set([...Cp(e),...Cp(t)])],s={};for(const a of n)s[a]=t[a]!==void 0?t[a]:e[a];return s},tz=(e=[])=>({version:XL,install:(n,s)=>{n[ZS]||(n[ZS]=!0,e.forEach(a=>n.use(a)),s&&Oy(s,n,!0))}}),Sp=Me({to:{type:re([String,Object]),required:!0},disabled:Boolean}),lt="update:modelValue",Rt="change",ns="input",nz=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:Sp.to.type,default:"body"}}),sz={scroll:({scrollTop:e,fixed:t})=>nt(e)&&tn(t),[Rt]:e=>tn(e)};var az=W({__name:"teleport",props:Sp,setup(e){return(t,n)=>t.disabled?ue(t.$slots,"default",{key:0}):(S(),le(kO,{key:1,to:t.to},[ue(t.$slots,"default")],8,["to"]))}});const ht=(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},$x=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),oz=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Tn=e=>(e.install=Yt,e),Mf=ht(az);function rz(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 Qr=e=>Ut?window.requestAnimationFrame(e):setTimeout(e,16),Yi=e=>Ut?window.cancelAnimationFrame(e):clearTimeout(e),Dx=(e="")=>e.split(" ").filter(t=>!!t.trim()),ei=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},No=(e,t)=>{!e||!t.trim()||e.classList.add(...Dx(t))},la=(e,t)=>{!e||!t.trim()||e.classList.remove(...Dx(t))},Xi=(e,t)=>{var n;if(!Ut||!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]}},Fx=(e,t,n)=>{if(!(!e||!t))if(dt(t))Nx(t).forEach(([s,a])=>Fx(e,s,a));else{const s=Ea(t);e.style[s]=n}};function Rn(e,t="px"){if(!e&&e!==0)return"";if(nt(e)||PV(e))return`${e}${t}`;if(Ye(e))return e}const iz=(e,t)=>{if(!Ut)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],s=Xi(e,n);return["scroll","auto","overlay"].some(a=>s.includes(a))},Ly=(e,t)=>{if(!Ut)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(iz(n,t))return n;n=n.parentNode}return n};let yg;const Bx=e=>{var t;if(!Ut)return 0;if(yg!==void 0)return yg;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),yg=s-o,yg};function Ny(e,t){if(!Ut)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 lz(e,t,n,s,a){const o=Date.now();let r;const i=()=>{const c=Date.now()-o,u=rz(c>s?s:c,t,n,s);gp(e)?e.scrollTo(window.pageXOffset,u):e.scrollTop=u,c<s?r=Qr(i):Ze(a)&&a()};return i(),()=>{r&&Yi(r)}}const Vx=(e,t)=>gp(t)?e.ownerDocument.documentElement:t,zx=e=>gp(e)?window.scrollY:e.scrollTop,Hx="ElAffix";var cz=W({name:Hx,__name:"affix",props:nz,emits:sz,setup(e,{expose:t,emit:n}){const s=e,a=n,o=ke("affix"),r=pn(),i=pn(),l=pn(),{height:c}=Iy(),{height:u,width:d,top:h,bottom:p,left:v,update:m}=xx(i,{windowScroll:!1}),g=xx(r),b=F(!1),_=F(0),w=F(0),C=E(()=>!s.teleported||!b.value),x=E(()=>({height:b.value?`${u.value}px`:"",width:b.value?`${d.value}px`:""})),k=E(()=>{if(!b.value)return{};const M=Rn(s.offset);return{height:`${u.value}px`,width:`${d.value}px`,top:s.position==="top"?M:"",bottom:s.position==="bottom"?M:"",left:s.teleported?`${v.value}px`:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:s.zIndex}}),T=()=>{if(!l.value)return;_.value=l.value instanceof Window?document.documentElement.scrollTop:l.value.scrollTop||0;const{position:M,target:$,offset:O}=s,B=O+u.value;if(M==="top")if($){const U=g.bottom.value-B;b.value=O>h.value&&g.bottom.value>0,w.value=U<0?U:0}else b.value=O>h.value;else if($){const U=c.value-g.top.value-B;b.value=c.value-O<p.value&&c.value>g.top.value,w.value=U<0?-U:0}else b.value=c.value-O<p.value},R=async()=>{if(!b.value){m();return}b.value=!1,await Be(),m(),b.value=!0},I=async()=>{m(),await Be(),a("scroll",{scrollTop:_.value,fixed:b.value})};return ge(b,M=>a(Rt,M)),xt(()=>{var M;s.target?(r.value=(M=document.querySelector(s.target))!=null?M:void 0,r.value||Zn(Hx,`Target does not exist: ${s.target}`)):r.value=document.documentElement,l.value=Ly(i.value,!0),m()}),q0(()=>{Be(R)}),O4(()=>{b.value=!1}),en(l,"scroll",I),ja(T),t({update:T,updateRoot:R}),(M,$)=>(S(),P("div",{ref_key:"root",ref:i,class:D(f(o).b()),style:Qe(x.value)},[j(f(Mf),{disabled:C.value,to:e.appendTo},{default:X(()=>[A("div",{class:D({[f(o).m("fixed")]:b.value}),style:Qe(k.value)},[ue(M.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}});const uz=ht(cz);/*! Element Plus Icons Vue v2.3.2 */var dz=W({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(S(),P("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"})]))}}),fz=dz,hz=W({name:"Aim",__name:"aim",setup(e){return(t,n)=>(S(),P("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"})]))}}),pz=hz,vz=W({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(S(),P("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"})]))}}),mz=vz,gz=W({name:"Apple",__name:"apple",setup(e){return(t,n)=>(S(),P("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"})]))}}),bz=gz,yz=W({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(S(),P("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"})]))}}),wz=yz,_z=W({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(S(),P("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"})]))}}),pr=_z,Cz=W({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(S(),P("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"})]))}}),Sz=Cz,xz=W({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(S(),P("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"})]))}}),$o=xz,kz=W({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(S(),P("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"})]))}}),Ez=kz,Az=W({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(S(),P("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"})]))}}),$s=Az,Tz=W({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(S(),P("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"})]))}}),Mz=Tz,Pz=W({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(S(),P("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"})]))}}),xp=Pz,Rz=W({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(S(),P("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"})]))}}),Iz=Rz,Oz=W({name:"Back",__name:"back",setup(e){return(t,n)=>(S(),P("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"})]))}}),Wx=Oz,Lz=W({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(S(),P("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"})]))}}),Nz=Lz,$z=W({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(S(),P("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"})]))}}),Dz=$z,Fz=W({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),Bz=Fz,Vz=W({name:"Bell",__name:"bell",setup(e){return(t,n)=>(S(),P("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"})]))}}),zz=Vz,Hz=W({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(S(),P("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"})]))}}),Wz=Hz,jz=W({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(S(),P("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"})]))}}),Kz=jz,Uz=W({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(S(),P("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=Uz,Gz=W({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(S(),P("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"})]))}}),Yz=Gz,Xz=W({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(S(),P("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"})]))}}),Jz=Xz,Zz=W({name:"Box",__name:"box",setup(e){return(t,n)=>(S(),P("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"})]))}}),Qz=Zz,eH=W({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),tH=eH,nH=W({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),sH=nH,aH=W({name:"Brush",__name:"brush",setup(e){return(t,n)=>(S(),P("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"})]))}}),oH=aH,rH=W({name:"Burger",__name:"burger",setup(e){return(t,n)=>(S(),P("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"})]))}}),iH=rH,lH=W({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(S(),P("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"})]))}}),jx=lH,cH=W({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),uH=cH,dH=W({name:"Camera",__name:"camera",setup(e){return(t,n)=>(S(),P("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"})]))}}),fH=dH,hH=W({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),pH=hH,vH=W({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(S(),P("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"})]))}}),mH=vH,gH=W({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),$y=gH,bH=W({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Kx=bH,yH=W({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(S(),P("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"})]))}}),wH=yH,_H=W({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(S(),P("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"})]))}}),CH=_H,SH=W({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(S(),P("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"})]))}}),xH=SH,kH=W({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(S(),P("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"})]))}}),EH=kH,AH=W({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(S(),P("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"})]))}}),TH=AH,MH=W({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(S(),P("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"})]))}}),PH=MH,RH=W({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(S(),P("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"})]))}}),IH=RH,OH=W({name:"Check",__name:"check",setup(e){return(t,n)=>(S(),P("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=OH,LH=W({name:"Checked",__name:"checked",setup(e){return(t,n)=>(S(),P("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"})]))}}),NH=LH,$H=W({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(S(),P("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"})]))}}),DH=$H,FH=W({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(S(),P("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"})]))}}),BH=FH,VH=W({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),zH=VH,HH=W({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),Ux=HH,WH=W({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(S(),P("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"})]))}}),kp=WH,jH=W({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),wg=jH,KH=W({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(S(),P("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"})]))}}),Do=KH,UH=W({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(S(),P("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=UH,GH=W({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(S(),P("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"})]))}}),YH=GH,XH=W({name:"Clock",__name:"clock",setup(e){return(t,n)=>(S(),P("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"})]))}}),Dy=XH,JH=W({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(S(),P("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"})]))}}),ZH=JH,QH=W({name:"Close",__name:"close",setup(e){return(t,n)=>(S(),P("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=QH,eW=W({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(S(),P("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"})]))}}),tW=eW,nW=W({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(S(),P("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"})]))}}),sW=nW,aW=W({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(S(),P("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"})]))}}),oW=aW,rW=W({name:"Coin",__name:"coin",setup(e){return(t,n)=>(S(),P("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"})]))}}),iW=rW,lW=W({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(S(),P("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"})]))}}),cW=lW,uW=W({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(S(),P("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"})]))}}),dW=uW,fW=W({name:"Collection",__name:"collection",setup(e){return(t,n)=>(S(),P("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"})]))}}),hW=fW,pW=W({name:"Comment",__name:"comment",setup(e){return(t,n)=>(S(),P("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"})]))}}),vW=pW,mW=W({name:"Compass",__name:"compass",setup(e){return(t,n)=>(S(),P("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"})]))}}),gW=mW,bW=W({name:"Connection",__name:"connection",setup(e){return(t,n)=>(S(),P("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"})]))}}),yW=bW,wW=W({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(S(),P("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"})]))}}),_W=wW,CW=W({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(S(),P("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"})]))}}),SW=CW,xW=W({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(S(),P("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"})]))}}),kW=xW,EW=W({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(S(),P("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"})]))}}),AW=EW,TW=W({name:"Crop",__name:"crop",setup(e){return(t,n)=>(S(),P("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"})]))}}),_g=TW,MW=W({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(S(),P("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"})]))}}),Ji=MW,PW=W({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(S(),P("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"})]))}}),Zi=PW,RW=W({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),IW=RW,OW=W({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(S(),P("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"})]))}}),LW=OW,NW=W({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(S(),P("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"})]))}}),$W=NW,DW=W({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(S(),P("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"})]))}}),FW=DW,BW=W({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),VW=BW,zW=W({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(S(),P("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"})]))}}),HW=zW,WW=W({name:"Delete",__name:"delete",setup(e){return(t,n)=>(S(),P("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"})]))}}),qx=WW,jW=W({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(S(),P("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"})]))}}),KW=jW,UW=W({name:"Discount",__name:"discount",setup(e){return(t,n)=>(S(),P("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"})]))}}),qW=UW,GW=W({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(S(),P("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"})]))}}),YW=GW,XW=W({name:"Dish",__name:"dish",setup(e){return(t,n)=>(S(),P("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"})]))}}),JW=XW,ZW=W({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(S(),P("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"})]))}}),Gx=ZW,QW=W({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(S(),P("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"})]))}}),ej=QW,tj=W({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(S(),P("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"})]))}}),nj=tj,sj=W({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(S(),P("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"})]))}}),aj=sj,oj=W({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(S(),P("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"})]))}}),rj=oj,ij=W({name:"Document",__name:"document",setup(e){return(t,n)=>(S(),P("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"})]))}}),Cg=ij,lj=W({name:"Download",__name:"download",setup(e){return(t,n)=>(S(),P("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"})]))}}),Qi=lj,cj=W({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(S(),P("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"})]))}}),uj=cj,dj=W({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(S(),P("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"})]))}}),fj=dj,hj=W({name:"Edit",__name:"edit",setup(e){return(t,n)=>(S(),P("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"})]))}}),pj=hj,vj=W({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),mj=vj,gj=W({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(S(),P("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"})]))}}),bj=gj,yj=W({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(S(),P("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"})]))}}),wj=yj,_j=W({name:"Expand",__name:"expand",setup(e){return(t,n)=>(S(),P("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"})]))}}),Cj=_j,Sj=W({name:"Failed",__name:"failed",setup(e){return(t,n)=>(S(),P("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"})]))}}),xj=Sj,kj=W({name:"Female",__name:"female",setup(e){return(t,n)=>(S(),P("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"})]))}}),Ej=kj,Aj=W({name:"Files",__name:"files",setup(e){return(t,n)=>(S(),P("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"})]))}}),Fy=Aj,Tj=W({name:"Film",__name:"film",setup(e){return(t,n)=>(S(),P("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"})]))}}),Mj=Tj,Pj=W({name:"Filter",__name:"filter",setup(e){return(t,n)=>(S(),P("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"})]))}}),Rj=Pj,Ij=W({name:"Finished",__name:"finished",setup(e){return(t,n)=>(S(),P("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"})]))}}),Yx=Ij,Oj=W({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(S(),P("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"})]))}}),Lj=Oj,Nj=W({name:"Flag",__name:"flag",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),$j=Nj,Dj=W({name:"Fold",__name:"fold",setup(e){return(t,n)=>(S(),P("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"})]))}}),Fj=Dj,Bj=W({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(S(),P("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"})]))}}),Vj=Bj,zj=W({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(S(),P("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"})]))}}),Hj=zj,Wj=W({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(S(),P("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"})]))}}),jj=Wj,Kj=W({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(S(),P("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"})]))}}),Sg=Kj,Uj=W({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(S(),P("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"})]))}}),qj=Uj,Gj=W({name:"Folder",__name:"folder",setup(e){return(t,n)=>(S(),P("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"})]))}}),Yj=Gj,Xj=W({name:"Food",__name:"food",setup(e){return(t,n)=>(S(),P("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"})]))}}),Jj=Xj,Zj=W({name:"Football",__name:"football",setup(e){return(t,n)=>(S(),P("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"})]))}}),Qj=Zj,eK=W({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(S(),P("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"})]))}}),tK=eK,nK=W({name:"Fries",__name:"fries",setup(e){return(t,n)=>(S(),P("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"})]))}}),sK=nK,aK=W({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(S(),P("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"})]))}}),By=aK,oK=W({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(S(),P("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"})]))}}),rK=oK,iK=W({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(S(),P("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"})]))}}),lK=iK,cK=W({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(S(),P("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"})]))}}),uK=cK,dK=W({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(S(),P("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"})]))}}),fK=dK,hK=W({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(S(),P("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"})]))}}),pK=hK,vK=W({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),mK=vK,gK=W({name:"Goods",__name:"goods",setup(e){return(t,n)=>(S(),P("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"})]))}}),bK=gK,yK=W({name:"Grape",__name:"grape",setup(e){return(t,n)=>(S(),P("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"})]))}}),wK=yK,_K=W({name:"Grid",__name:"grid",setup(e){return(t,n)=>(S(),P("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"})]))}}),Xx=_K,CK=W({name:"Guide",__name:"guide",setup(e){return(t,n)=>(S(),P("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"})]))}}),SK=CK,xK=W({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(S(),P("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"})]))}}),kK=xK,EK=W({name:"Headset",__name:"headset",setup(e){return(t,n)=>(S(),P("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"})]))}}),AK=EK,TK=W({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),MK=TK,PK=W({name:"Help",__name:"help",setup(e){return(t,n)=>(S(),P("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"})]))}}),RK=PK,IK=W({name:"Hide",__name:"hide",setup(e){return(t,n)=>(S(),P("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"})]))}}),Jx=IK,OK=W({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),LK=OK,NK=W({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),$K=NK,DK=W({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(S(),P("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"})]))}}),FK=DK,BK=W({name:"House",__name:"house",setup(e){return(t,n)=>(S(),P("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"})]))}}),VK=BK,zK=W({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(S(),P("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"})]))}}),HK=zK,WK=W({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(S(),P("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"})]))}}),jK=WK,KK=W({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(S(),P("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"})]))}}),UK=KK,qK=W({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(S(),P("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"})]))}}),GK=qK,YK=W({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(S(),P("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"})]))}}),XK=YK,JK=W({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(S(),P("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=JK,ZK=W({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(S(),P("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"})]))}}),QK=ZK,eU=W({name:"Key",__name:"key",setup(e){return(t,n)=>(S(),P("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"})]))}}),tU=eU,nU=W({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(S(),P("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"})]))}}),sU=nU,aU=W({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(S(),P("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"})]))}}),oU=aU,rU=W({name:"Link",__name:"link",setup(e){return(t,n)=>(S(),P("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"})]))}}),iU=rU,lU=W({name:"List",__name:"list",setup(e){return(t,n)=>(S(),P("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"})]))}}),Zx=lU,cU=W({name:"Loading",__name:"loading",setup(e){return(t,n)=>(S(),P("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"})]))}}),Ds=cU,uU=W({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),dU=uU,fU=W({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(S(),P("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"})]))}}),hU=fU,pU=W({name:"Location",__name:"location",setup(e){return(t,n)=>(S(),P("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"})]))}}),vU=pU,mU=W({name:"Lock",__name:"lock",setup(e){return(t,n)=>(S(),P("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"})]))}}),gU=mU,bU=W({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(S(),P("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"})]))}}),yU=bU,wU=W({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(S(),P("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"})]))}}),_U=wU,CU=W({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(S(),P("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"})]))}}),SU=CU,xU=W({name:"Male",__name:"male",setup(e){return(t,n)=>(S(),P("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"})]))}}),kU=xU,EU=W({name:"Management",__name:"management",setup(e){return(t,n)=>(S(),P("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"})]))}}),AU=EU,TU=W({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(S(),P("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"})]))}}),MU=TU,PU=W({name:"Medal",__name:"medal",setup(e){return(t,n)=>(S(),P("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"})]))}}),RU=PU,IU=W({name:"Memo",__name:"memo",setup(e){return(t,n)=>(S(),P("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"})]))}}),OU=IU,LU=W({name:"Menu",__name:"menu",setup(e){return(t,n)=>(S(),P("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"})]))}}),NU=LU,$U=W({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(S(),P("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"})]))}}),DU=$U,FU=W({name:"Message",__name:"message",setup(e){return(t,n)=>(S(),P("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"})]))}}),BU=FU,VU=W({name:"Mic",__name:"mic",setup(e){return(t,n)=>(S(),P("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"})]))}}),zU=VU,HU=W({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(S(),P("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"})]))}}),WU=HU,jU=W({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(S(),P("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"})]))}}),KU=jU,UU=W({name:"Minus",__name:"minus",setup(e){return(t,n)=>(S(),P("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"})]))}}),Qx=UU,qU=W({name:"Money",__name:"money",setup(e){return(t,n)=>(S(),P("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"})]))}}),GU=qU,YU=W({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(S(),P("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"})]))}}),XU=YU,JU=W({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(S(),P("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"})]))}}),ZU=JU,QU=W({name:"Moon",__name:"moon",setup(e){return(t,n)=>(S(),P("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"})]))}}),eq=QU,tq=W({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),Vy=tq,nq=W({name:"More",__name:"more",setup(e){return(t,n)=>(S(),P("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"})]))}}),e9=nq,sq=W({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(S(),P("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"})]))}}),aq=sq,oq=W({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(S(),P("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"})]))}}),rq=oq,iq=W({name:"Mug",__name:"mug",setup(e){return(t,n)=>(S(),P("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"})]))}}),lq=iq,cq=W({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(S(),P("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"})]))}}),uq=cq,dq=W({name:"Mute",__name:"mute",setup(e){return(t,n)=>(S(),P("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"})]))}}),fq=dq,hq=W({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(S(),P("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"})]))}}),pq=hq,vq=W({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(S(),P("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"})]))}}),mq=vq,gq=W({name:"Notification",__name:"notification",setup(e){return(t,n)=>(S(),P("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"})]))}}),bq=gq,yq=W({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(S(),P("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"})]))}}),wq=yq,_q=W({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(S(),P("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"})]))}}),Cq=_q,Sq=W({name:"Open",__name:"open",setup(e){return(t,n)=>(S(),P("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"})]))}}),xq=Sq,kq=W({name:"Operation",__name:"operation",setup(e){return(t,n)=>(S(),P("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"})]))}}),Eq=kq,Aq=W({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(S(),P("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"})]))}}),Tq=Aq,Mq=W({name:"Orange",__name:"orange",setup(e){return(t,n)=>(S(),P("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"})]))}}),Pq=Mq,Rq=W({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(S(),P("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"})]))}}),Iq=Rq,Oq=W({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(S(),P("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"})]))}}),Lq=Oq,Nq=W({name:"Pear",__name:"pear",setup(e){return(t,n)=>(S(),P("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"})]))}}),$q=Nq,Dq=W({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),Fq=Dq,Bq=W({name:"Phone",__name:"phone",setup(e){return(t,n)=>(S(),P("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"})]))}}),Vq=Bq,zq=W({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),t9=zq,Hq=W({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(S(),P("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"})]))}}),Wq=Hq,jq=W({name:"Picture",__name:"picture",setup(e){return(t,n)=>(S(),P("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"})]))}}),Kq=jq,Uq=W({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(S(),P("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"})]))}}),qq=Uq,Gq=W({name:"Place",__name:"place",setup(e){return(t,n)=>(S(),P("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"})]))}}),Yq=Gq,Xq=W({name:"Platform",__name:"platform",setup(e){return(t,n)=>(S(),P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[A("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),Jq=Xq,Zq=W({name:"Plus",__name:"plus",setup(e){return(t,n)=>(S(),P("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"})]))}}),zy=Zq,Qq=W({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(S(),P("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"})]))}}),eG=Qq,tG=W({name:"Position",__name:"position",setup(e){return(t,n)=>(S(),P("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"})]))}}),nG=tG,sG=W({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(S(),P("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"})]))}}),aG=sG,oG=W({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(S(),P("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"})]))}}),rG=oG,iG=W({name:"Present",__name:"present",setup(e){return(t,n)=>(S(),P("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"})]))}}),lG=iG,cG=W({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(S(),P("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"})]))}}),uG=cG,dG=W({name:"Printer",__name:"printer",setup(e){return(t,n)=>(S(),P("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"})]))}}),fG=dG,hG=W({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(S(),P("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"})]))}}),n9=hG,pG=W({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(S(),P("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"})]))}}),vG=pG,mG=W({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),s9=mG,gG=W({name:"Rank",__name:"rank",setup(e){return(t,n)=>(S(),P("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"})]))}}),a9=gG,bG=W({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(S(),P("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"})]))}}),yG=bG,wG=W({name:"Reading",__name:"reading",setup(e){return(t,n)=>(S(),P("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"})]))}}),_G=wG,CG=W({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(S(),P("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"})]))}}),xg=CG,SG=W({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(S(),P("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"})]))}}),o9=SG,xG=W({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(S(),P("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"})]))}}),kG=xG,EG=W({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(S(),P("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"})]))}}),AG=EG,TG=W({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),MG=TG,PG=W({name:"Remove",__name:"remove",setup(e){return(t,n)=>(S(),P("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"})]))}}),RG=PG,IG=W({name:"Right",__name:"right",setup(e){return(t,n)=>(S(),P("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"})]))}}),OG=IG,LG=W({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(S(),P("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"})]))}}),r9=LG,NG=W({name:"School",__name:"school",setup(e){return(t,n)=>(S(),P("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"})]))}}),$G=NG,DG=W({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(S(),P("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"})]))}}),FG=DG,BG=W({name:"Search",__name:"search",setup(e){return(t,n)=>(S(),P("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"})]))}}),i9=BG,VG=W({name:"Select",__name:"select",setup(e){return(t,n)=>(S(),P("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"})]))}}),zG=VG,HG=W({name:"Sell",__name:"sell",setup(e){return(t,n)=>(S(),P("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"})]))}}),WG=HG,jG=W({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(S(),P("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"})]))}}),KG=jG,UG=W({name:"Service",__name:"service",setup(e){return(t,n)=>(S(),P("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"})]))}}),qG=UG,GG=W({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(S(),P("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"})]))}}),YG=GG,XG=W({name:"Setting",__name:"setting",setup(e){return(t,n)=>(S(),P("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"})]))}}),JG=XG,ZG=W({name:"Share",__name:"share",setup(e){return(t,n)=>(S(),P("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"})]))}}),QG=ZG,eY=W({name:"Ship",__name:"ship",setup(e){return(t,n)=>(S(),P("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"})]))}}),tY=eY,nY=W({name:"Shop",__name:"shop",setup(e){return(t,n)=>(S(),P("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"})]))}}),sY=nY,aY=W({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(S(),P("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"})]))}}),oY=aY,rY=W({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(S(),P("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"})]))}}),iY=rY,lY=W({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(S(),P("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"})]))}}),cY=lY,uY=W({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(S(),P("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"})]))}}),dY=uY,fY=W({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(S(),P("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"})]))}}),hY=fY,pY=W({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(S(),P("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"})]))}}),vY=pY,mY=W({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(S(),P("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"})]))}}),gY=mY,bY=W({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(S(),P("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"})]))}}),l9=bY,yY=W({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(S(),P("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"})]))}}),c9=yY,wY=W({name:"Sort",__name:"sort",setup(e){return(t,n)=>(S(),P("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"})]))}}),_Y=wY,CY=W({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(S(),P("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"})]))}}),SY=CY,xY=W({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),Ep=xY,kY=W({name:"Star",__name:"star",setup(e){return(t,n)=>(S(),P("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"})]))}}),u9=kY,EY=W({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(S(),P("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"})]))}}),AY=EY,TY=W({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),Hy=TY,MY=W({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(S(),P("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"})]))}}),PY=MY,RY=W({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(S(),P("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"})]))}}),IY=RY,OY=W({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(S(),P("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"})]))}}),LY=OY,NY=W({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(S(),P("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"})]))}}),$Y=NY,DY=W({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(S(),P("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"})]))}}),FY=DY,BY=W({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(S(),P("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"})]))}}),VY=BY,zY=W({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(S(),P("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"})]))}}),HY=zY,WY=W({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),jY=WY,KY=W({name:"Switch",__name:"switch",setup(e){return(t,n)=>(S(),P("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"})]))}}),UY=KY,qY=W({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(S(),P("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"})]))}}),GY=qY,YY=W({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(S(),P("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"})]))}}),XY=YY,JY=W({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(S(),P("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"})]))}}),ZY=JY,QY=W({name:"Timer",__name:"timer",setup(e){return(t,n)=>(S(),P("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"})]))}}),eX=QY,tX=W({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(S(),P("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"})]))}}),nX=tX,sX=W({name:"Tools",__name:"tools",setup(e){return(t,n)=>(S(),P("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"})]))}}),aX=sX,oX=W({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(S(),P("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"})]))}}),rX=oX,iX=W({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(S(),P("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"})]))}}),lX=iX,cX=W({name:"Top",__name:"top",setup(e){return(t,n)=>(S(),P("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"})]))}}),uX=cX,dX=W({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(S(),P("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"})]))}}),fX=dX,hX=W({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(S(),P("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"})]))}}),pX=hX,vX=W({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(S(),P("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"})]))}}),mX=vX,gX=W({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(S(),P("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"})]))}}),bX=gX,yX=W({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(S(),P("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"})]))}}),wX=yX,_X=W({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(S(),P("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"})]))}}),CX=_X,SX=W({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),xX=SX,kX=W({name:"Upload",__name:"upload",setup(e){return(t,n)=>(S(),P("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"})]))}}),d9=kX,EX=W({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),AX=EX,TX=W({name:"User",__name:"user",setup(e){return(t,n)=>(S(),P("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"})]))}}),MX=TX,PX=W({name:"Van",__name:"van",setup(e){return(t,n)=>(S(),P("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"})]))}}),RX=PX,IX=W({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),OX=IX,LX=W({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(S(),P("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"})]))}}),NX=LX,$X=W({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(S(),P("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"})]))}}),DX=$X,FX=W({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(S(),P("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"})]))}}),BX=FX,VX=W({name:"View",__name:"view",setup(e){return(t,n)=>(S(),P("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"})]))}}),Wy=VX,zX=W({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),HX=zX,WX=W({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(S(),P("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"})]))}}),jX=WX,KX=W({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),UX=KX,qX=W({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(S(),P("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"})]))}}),Ap=qX,GX=W({name:"Warning",__name:"warning",setup(e){return(t,n)=>(S(),P("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"})]))}}),YX=GX,XX=W({name:"Watch",__name:"watch",setup(e){return(t,n)=>(S(),P("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"})]))}}),JX=XX,ZX=W({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(S(),P("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"})]))}}),QX=ZX,eJ=W({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(S(),P("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"})]))}}),tJ=eJ,nJ=W({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(S(),P("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"})]))}}),kg=nJ,sJ=W({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(S(),P("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"})]))}}),jy=sJ;const aJ=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:fz,Aim:pz,AlarmClock:mz,Apple:bz,ArrowDown:pr,ArrowDownBold:wz,ArrowLeft:$o,ArrowLeftBold:Sz,ArrowRight:$s,ArrowRightBold:Ez,ArrowUp:xp,ArrowUpBold:Mz,Avatar:Iz,Back:Wx,Baseball:Nz,Basketball:Dz,Bell:zz,BellFilled:Bz,Bicycle:Wz,Bottom:Yz,BottomLeft:Kz,BottomRight:qz,Bowl:Jz,Box:Qz,Briefcase:tH,Brush:oH,BrushFilled:sH,Burger:iH,Calendar:jx,Camera:fH,CameraFilled:uH,CaretBottom:pH,CaretLeft:mH,CaretRight:$y,CaretTop:Kx,Cellphone:wH,ChatDotRound:CH,ChatDotSquare:xH,ChatLineRound:EH,ChatLineSquare:TH,ChatRound:PH,ChatSquare:IH,Check:Pf,Checked:NH,Cherry:DH,Chicken:BH,ChromeFilled:zH,CircleCheck:kp,CircleCheckFilled:Ux,CircleClose:Do,CircleCloseFilled:wg,CirclePlus:YH,CirclePlusFilled:qH,Clock:Dy,Close:qa,CloseBold:ZH,Cloudy:tW,Coffee:oW,CoffeeCup:sW,Coin:iW,ColdDrink:cW,Collection:hW,CollectionTag:dW,Comment:vW,Compass:gW,Connection:yW,Coordinate:_W,CopyDocument:SW,Cpu:kW,CreditCard:AW,Crop:_g,DArrowLeft:Ji,DArrowRight:Zi,DCaret:IW,DataAnalysis:LW,DataBoard:$W,DataLine:FW,Delete:qx,DeleteFilled:VW,DeleteLocation:HW,Dessert:KW,Discount:qW,Dish:JW,DishDot:YW,Document:Cg,DocumentAdd:Gx,DocumentChecked:ej,DocumentCopy:nj,DocumentDelete:aj,DocumentRemove:rj,Download:Qi,Drizzling:uj,Edit:pj,EditPen:fj,Eleme:bj,ElemeFilled:mj,ElementPlus:wj,Expand:Cj,Failed:xj,Female:Ej,Files:Fy,Film:Mj,Filter:Rj,Finished:Yx,FirstAidKit:Lj,Flag:$j,Fold:Fj,Folder:Yj,FolderAdd:Vj,FolderChecked:Hj,FolderDelete:jj,FolderOpened:Sg,FolderRemove:qj,Food:Jj,Football:Qj,ForkSpoon:tK,Fries:sK,FullScreen:By,Goblet:fK,GobletFull:rK,GobletSquare:uK,GobletSquareFull:lK,GoldMedal:pK,Goods:bK,GoodsFilled:mK,Grape:wK,Grid:Xx,Guide:SK,Handbag:kK,Headset:AK,Help:RK,HelpFilled:MK,Hide:Jx,Histogram:LK,HomeFilled:$K,HotWater:FK,House:VK,IceCream:UK,IceCreamRound:HK,IceCreamSquare:jK,IceDrink:GK,IceTea:XK,InfoFilled:Rf,Iphone:QK,Key:tU,KnifeFork:sU,Lightning:oU,Link:iU,List:Zx,Loading:Ds,Location:vU,LocationFilled:dU,LocationInformation:hU,Lock:gU,Lollipop:yU,MagicStick:_U,Magnet:SU,Male:kU,Management:AU,MapLocation:MU,Medal:RU,Memo:OU,Menu:NU,Message:BU,MessageBox:DU,Mic:zU,Microphone:WU,MilkTea:KU,Minus:Qx,Money:GU,Monitor:XU,Moon:eq,MoonNight:ZU,More:e9,MoreFilled:Vy,MostlyCloudy:aq,Mouse:rq,Mug:lq,Mute:fq,MuteNotification:uq,NoSmoking:pq,Notebook:mq,Notification:bq,Odometer:wq,OfficeBuilding:Cq,Open:xq,Operation:Eq,Opportunity:Tq,Orange:Pq,Paperclip:Iq,PartlyCloudy:Lq,Pear:$q,Phone:Vq,PhoneFilled:Fq,Picture:Kq,PictureFilled:t9,PictureRounded:Wq,PieChart:qq,Place:Yq,Platform:Jq,Plus:zy,Pointer:eG,Position:nG,Postcard:aG,Pouring:rG,Present:lG,PriceTag:uG,Printer:fG,Promotion:n9,QuartzWatch:vG,QuestionFilled:s9,Rank:a9,Reading:_G,ReadingLamp:yG,Refresh:kG,RefreshLeft:xg,RefreshRight:o9,Refrigerator:AG,Remove:RG,RemoveFilled:MG,Right:OG,ScaleToOriginal:r9,School:$G,Scissor:FG,Search:i9,Select:zG,Sell:WG,SemiSelect:KG,Service:qG,SetUp:YG,Setting:JG,Share:QG,Ship:tY,Shop:sY,ShoppingBag:oY,ShoppingCart:cY,ShoppingCartFull:iY,ShoppingTrolley:dY,Smoking:hY,Soccer:vY,SoldOut:gY,Sort:_Y,SortDown:l9,SortUp:c9,Stamp:SY,Star:u9,StarFilled:Ep,Stopwatch:AY,SuccessFilled:Hy,Sugar:PY,Suitcase:LY,SuitcaseLine:IY,Sunny:$Y,Sunrise:FY,Sunset:VY,Switch:UY,SwitchButton:HY,SwitchFilled:jY,TakeawayBox:GY,Ticket:XY,Tickets:ZY,Timer:eX,ToiletPaper:nX,Tools:aX,Top:uX,TopLeft:rX,TopRight:lX,TrendCharts:fX,Trophy:mX,TrophyBase:pX,TurnOff:bX,Umbrella:wX,Unlock:CX,Upload:d9,UploadFilled:xX,User:MX,UserFilled:AX,Van:RX,VideoCamera:NX,VideoCameraFilled:OX,VideoPause:DX,VideoPlay:BX,View:Wy,Wallet:jX,WalletFilled:HX,WarnTriangleFilled:UX,Warning:YX,WarningFilled:Ap,Watch:JX,Watermelon:QX,WindPower:tJ,ZoomIn:kg,ZoomOut:jy},Symbol.toStringTag,{value:"Module"})),nn=re([String,Object,Function]),f9={Close:qa},Ky={Close:qa,SuccessFilled:Hy,InfoFilled:Rf,WarningFilled:Ap,CircleCloseFilled:wg},sc={primary:Rf,success:Hy,warning:Ap,error:wg,info:Rf},Eg={validating:Ds,success:kp,error:Do},oJ=["light","dark"],rJ=Me({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Cp(sc),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:oJ,default:"light"}}),iJ={close:e=>e instanceof MouseEvent},lJ=Me({size:{type:re([Number,String])},color:{type:String}});var cJ=W({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:lJ,setup(e){const t=e,n=ke("icon"),s=E(()=>{const{size:a,color:o}=t,r=Rn(a);return!r&&!o?{}:{fontSize:r,"--color":o}});return(a,o)=>(S(),P("i",_t({class:f(n).b(),style:s.value},a.$attrs),[ue(a.$slots,"default")],16))}});const Xe=ht(cJ);var Fo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Fo||{});function Uy(e){return dn(e)&&e.type===Ve}function h9(e){return dn(e)&&e.type===qn}function uJ(e){return dn(e)&&!Uy(e)&&!h9(e)}const dJ=e=>{if(!dn(e))return{};const t=e.props||{},n=(dn(e.type)?e.type.props:void 0)||{},s={};return Object.keys(n).forEach(a=>{jt(n[a],"default")&&(s[a]=n[a].default)}),Object.keys(t).forEach(a=>{s[Ea(a)]=t[a]}),s},co=e=>{const t=Ae(e)?e:[e],n=[];return t.forEach(s=>{var a;Ae(s)?n.push(...co(s)):dn(s)&&((a=s.component)!=null&&a.subTree)?n.push(s,...co(s.component.subTree)):dn(s)&&Ae(s.children)?n.push(...co(s.children)):dn(s)&&s.shapeFlag===2?n.push(...co(s.type())):n.push(s)}),n};var fJ=W({name:"ElAlert",__name:"alert",props:rJ,emits:iJ,setup(e,{emit:t}){const{Close:n}=Ky,s=e,a=t,o=Wn(),r=ke("alert"),i=F(!0),l=E(()=>sc[s.type]),c=E(()=>{var d;if(s.description)return!0;const h=(d=o.default)==null?void 0:d.call(o);return h?co(h).some(v=>!h9(v)):!1}),u=d=>{i.value=!1,a("close",d)};return(d,h)=>(S(),le(ys,{name:f(r).b("fade"),persisted:""},{default:X(()=>[bt(A("div",{class:D([f(r).b(),f(r).m(e.type),f(r).is("center",e.center),f(r).is(e.effect)]),role:"alert"},[e.showIcon&&(d.$slots.icon||l.value)?(S(),le(f(Xe),{key:0,class:D([f(r).e("icon"),f(r).is("big",c.value)])},{default:X(()=>[ue(d.$slots,"icon",{},()=>[(S(),le(yt(l.value)))])]),_:3},8,["class"])):ie("v-if",!0),A("div",{class:D(f(r).e("content"))},[e.title||d.$slots.title?(S(),P("span",{key:0,class:D([f(r).e("title"),{"with-description":c.value}])},[ue(d.$slots,"title",{},()=>[Ke(me(e.title),1)])],2)):ie("v-if",!0),c.value?(S(),P("p",{key:1,class:D(f(r).e("description"))},[ue(d.$slots,"default",{},()=>[Ke(me(e.description),1)])],2)):ie("v-if",!0),e.closable?(S(),P(Ve,{key:2},[e.closeText?(S(),P("div",{key:0,class:D([f(r).e("close-btn"),f(r).is("customed")]),onClick:u},me(e.closeText),3)):(S(),le(f(Xe),{key:1,class:D(f(r).e("close-btn")),onClick:u},{default:X(()=>[j(f(n))]),_:1},8,["class"]))],64)):ie("v-if",!0)],2)],2),[[Vt,i.value]])]),_:3},8,["name"]))}});const hJ=ht(fJ);var Ga="top",Bo="bottom",Vo="right",Ya="left",qy="auto",Tp=[Ga,Bo,Vo,Ya],If="start",Mp="end",pJ="clippingParents",p9="viewport",Pp="popper",vJ="reference",v9=Tp.reduce(function(e,t){return e.concat([t+"-"+If,t+"-"+Mp])},[]),ti=[].concat(Tp,[qy]).reduce(function(e,t){return e.concat([t,t+"-"+If,t+"-"+Mp])},[]),mJ="beforeRead",gJ="read",bJ="afterRead",yJ="beforeMain",wJ="main",_J="afterMain",CJ="beforeWrite",SJ="write",xJ="afterWrite",kJ=[mJ,gJ,bJ,yJ,wJ,_J,CJ,SJ,xJ];function ni(e){return e?(e.nodeName||"").toLowerCase():null}function uo(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=uo(e).Element;return e instanceof t||e instanceof Element}function zo(e){var t=uo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gy(e){if(typeof ShadowRoot>"u")return!1;var t=uo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function EJ(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];!zo(o)||!ni(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 AJ(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},{});!zo(a)||!ni(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}var m9={name:"applyStyles",enabled:!0,phase:"write",fn:EJ,effect:AJ,requires:["computeStyles"]};function si(e){return e.split("-")[0]}var ku=Math.max,Ag=Math.min,Of=Math.round;function Yy(){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 g9(){return!/^((?!chrome|android).)*safari/i.test(Yy())}function Lf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),a=1,o=1;t&&zo(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)?uo(e):window,i=r.visualViewport,l=!g9()&&n,c=(s.left+(l&&i?i.offsetLeft:0))/a,u=(s.top+(l&&i?i.offsetTop:0))/o,d=s.width/a,h=s.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function Xy(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 b9(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gy(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function el(e){return uo(e).getComputedStyle(e)}function TJ(e){return["table","td","th"].indexOf(ni(e))>=0}function ac(e){return((xu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tg(e){return ni(e)==="html"?e:e.assignedSlot||e.parentNode||(Gy(e)?e.host:null)||ac(e)}function y9(e){return!zo(e)||el(e).position==="fixed"?null:e.offsetParent}function MJ(e){var t=/firefox/i.test(Yy()),n=/Trident/i.test(Yy());if(n&&zo(e)){var s=el(e);if(s.position==="fixed")return null}var a=Tg(e);for(Gy(a)&&(a=a.host);zo(a)&&["html","body"].indexOf(ni(a))<0;){var o=el(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 Rp(e){for(var t=uo(e),n=y9(e);n&&TJ(n)&&el(n).position==="static";)n=y9(n);return n&&(ni(n)==="html"||ni(n)==="body"&&el(n).position==="static")?t:n||MJ(e)||t}function Jy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ip(e,t,n){return ku(e,Ag(t,n))}function PJ(e,t,n){var s=Ip(e,t,n);return s>n?n:s}function w9(){return{top:0,right:0,bottom:0,left:0}}function _9(e){return Object.assign({},w9(),e)}function C9(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var RJ=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,_9(typeof e!="number"?e:C9(e,Tp))};function IJ(e){var t,n=e.state,s=e.name,a=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,i=si(n.placement),l=Jy(i),c=[Ya,Vo].indexOf(i)>=0,u=c?"height":"width";if(!(!o||!r)){var d=RJ(a.padding,n),h=Xy(o),p=l==="y"?Ga:Ya,v=l==="y"?Bo:Vo,m=n.rects.reference[u]+n.rects.reference[l]-r[l]-n.rects.popper[u],g=r[l]-n.rects.reference[l],b=Rp(o),_=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=m/2-g/2,C=d[p],x=_-h[u]-d[v],k=_/2-h[u]/2+w,T=Ip(C,k,x),R=l;n.modifiersData[s]=(t={},t[R]=T,t.centerOffset=T-k,t)}}function OJ(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)||b9(t.elements.popper,a)&&(t.elements.arrow=a))}var LJ={name:"arrow",enabled:!0,phase:"main",fn:IJ,effect:OJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nf(e){return e.split("-")[1]}var NJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $J(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 S9(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,d=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"),_=r.hasOwnProperty("y"),w=Ya,C=Ga,x=window;if(c){var k=Rp(n),T="clientHeight",R="clientWidth";if(k===uo(n)&&(k=ac(n),el(k).position!=="static"&&i==="absolute"&&(T="scrollHeight",R="scrollWidth")),k=k,a===Ga||(a===Ya||a===Vo)&&o===Mp){C=Bo;var I=d&&k===x&&x.visualViewport?x.visualViewport.height:k[T];m-=I-s.height,m*=l?1:-1}if(a===Ya||(a===Ga||a===Bo)&&o===Mp){w=Vo;var M=d&&k===x&&x.visualViewport?x.visualViewport.width:k[R];p-=M-s.width,p*=l?1:-1}}var $=Object.assign({position:i},c&&NJ),O=u===!0?$J({x:p,y:m},uo(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 DJ(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:si(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,S9(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,S9(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 x9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:DJ,data:{}},Mg={passive:!0};function FJ(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=uo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Mg)}),i&&l.addEventListener("resize",n.update,Mg),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Mg)}),i&&l.removeEventListener("resize",n.update,Mg)}}var k9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:FJ,data:{}},BJ={left:"right",right:"left",bottom:"top",top:"bottom"};function Pg(e){return e.replace(/left|right|bottom|top/g,function(t){return BJ[t]})}var VJ={start:"end",end:"start"};function E9(e){return e.replace(/start|end/g,function(t){return VJ[t]})}function Zy(e){var t=uo(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function Qy(e){return Lf(ac(e)).left+Zy(e).scrollLeft}function zJ(e,t){var n=uo(e),s=ac(e),a=n.visualViewport,o=s.clientWidth,r=s.clientHeight,i=0,l=0;if(a){o=a.width,r=a.height;var c=g9();(c||!c&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:r,x:i+Qy(e),y:l}}function HJ(e){var t,n=ac(e),s=Zy(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+Qy(e),l=-s.scrollTop;return el(a||n).direction==="rtl"&&(i+=ku(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:r,x:i,y:l}}function e3(e){var t=el(e),n=t.overflow,s=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+s)}function A9(e){return["html","body","#document"].indexOf(ni(e))>=0?e.ownerDocument.body:zo(e)&&e3(e)?e:A9(Tg(e))}function Op(e,t){var n;t===void 0&&(t=[]);var s=A9(e),a=s===((n=e.ownerDocument)==null?void 0:n.body),o=uo(s),r=a?[o].concat(o.visualViewport||[],e3(s)?s:[]):s,i=t.concat(r);return a?i:i.concat(Op(Tg(r)))}function t3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function WJ(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 T9(e,t,n){return t===p9?t3(zJ(e,n)):xu(t)?WJ(t,n):t3(HJ(ac(e)))}function jJ(e){var t=Op(Tg(e)),n=["absolute","fixed"].indexOf(el(e).position)>=0,s=n&&zo(e)?Rp(e):e;return xu(s)?t.filter(function(a){return xu(a)&&b9(a,s)&&ni(a)!=="body"}):[]}function KJ(e,t,n,s){var a=t==="clippingParents"?jJ(e):[].concat(t),o=[].concat(a,[n]),r=o[0],i=o.reduce(function(l,c){var u=T9(e,c,s);return l.top=ku(u.top,l.top),l.right=Ag(u.right,l.right),l.bottom=Ag(u.bottom,l.bottom),l.left=ku(u.left,l.left),l},T9(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 M9(e){var t=e.reference,n=e.element,s=e.placement,a=s?si(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 Bo:l={x:r,y:t.y+t.height};break;case Vo: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?Jy(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 Mp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Lp(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?pJ:i,c=n.rootBoundary,u=c===void 0?p9:c,d=n.elementContext,h=d===void 0?Pp:d,p=n.altBoundary,v=p===void 0?!1:p,m=n.padding,g=m===void 0?0:m,b=_9(typeof g!="number"?g:C9(g,Tp)),_=h===Pp?vJ:Pp,w=e.rects.popper,C=e.elements[v?_:h],x=KJ(xu(C)?C:C.contextElement||ac(e.elements.popper),l,u,r),k=Lf(e.elements.reference),T=M9({reference:k,element:w,placement:a}),R=t3(Object.assign({},w,T)),I=h===Pp?R:k,M={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===Pp&&$){var O=$[a];Object.keys(M).forEach(function(B){var U=[Vo,Bo].indexOf(B)>=0?1:-1,J=[Ga,Bo].indexOf(B)>=0?"y":"x";M[B]+=O[J]*U})}return M}function UJ(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?ti:l,u=Nf(s),d=u?i?v9:v9.filter(function(v){return Nf(v)===u}):Tp,h=d.filter(function(v){return c.indexOf(v)>=0});h.length===0&&(h=d);var p=h.reduce(function(v,m){return v[m]=Lp(e,{placement:m,boundary:a,rootBoundary:o,padding:r})[si(m)],v},{});return Object.keys(p).sort(function(v,m){return p[v]-p[m]})}function qJ(e){if(si(e)===qy)return[];var t=Pg(e);return[E9(e),t,E9(t)]}function GJ(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,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,m=n.allowedAutoPlacements,g=t.options.placement,b=si(g),_=b===g,w=l||(_||!v?[Pg(g)]:qJ(g)),C=[g].concat(w).reduce(function(ee,ae){return ee.concat(si(ae)===qy?UJ(t,{placement:ae,boundary:u,rootBoundary:d,padding:c,flipVariations:v,allowedAutoPlacements:m}):ae)},[]),x=t.rects.reference,k=t.rects.popper,T=new Map,R=!0,I=C[0],M=0;M<C.length;M++){var $=C[M],O=si($),B=Nf($)===If,U=[Ga,Bo].indexOf(O)>=0,J=U?"width":"height",Y=Lp(t,{placement:$,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=U?B?Vo:Ya:B?Bo:Ga;x[J]>k[J]&&(N=Pg(N));var L=Pg(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 ae=C.find(function(fe){var ne=T.get(fe);if(ne)return ne.slice(0,ee).every(function(ve){return ve})});if(ae)return I=ae,"break"},Q=z;Q>0;Q--){var K=G(Q);if(K==="break")break}t.placement!==I&&(t.modifiersData[s]._skip=!0,t.placement=I,t.reset=!0)}}var YJ={name:"flip",enabled:!0,phase:"main",fn:GJ,requiresIfExists:["offset"],data:{_skip:!1}};function P9(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 R9(e){return[Ga,Vo,Bo,Ya].some(function(t){return e[t]>=0})}function XJ(e){var t=e.state,n=e.name,s=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,r=Lp(t,{elementContext:"reference"}),i=Lp(t,{altBoundary:!0}),l=P9(r,s),c=P9(i,a,o),u=R9(l),d=R9(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var JJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XJ};function ZJ(e,t,n){var s=si(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,Vo].indexOf(s)>=0?{x:i,y:r}:{x:r,y:i}}function QJ(e){var t=e.state,n=e.options,s=e.name,a=n.offset,o=a===void 0?[0,0]:a,r=ti.reduce(function(u,d){return u[d]=ZJ(d,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 eZ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:QJ};function tZ(e){var t=e.state,n=e.name;t.modifiersData[n]=M9({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var I9={name:"popperOffsets",enabled:!0,phase:"read",fn:tZ,data:{}};function nZ(e){return e==="x"?"y":"x"}function sZ(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,d=n.padding,h=n.tether,p=h===void 0?!0:h,v=n.tetherOffset,m=v===void 0?0:v,g=Lp(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=si(t.placement),_=Nf(t.placement),w=!_,C=Jy(b),x=nZ(C),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,M=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,U=C==="y"?Ga:Ya,J=C==="y"?Bo:Vo,Y=C==="y"?"height":"width",N=k[C],L=N+g[U],V=N-g[J],z=p?-R[Y]/2:0,G=_===If?T[Y]:R[Y],Q=_===If?-R[Y]:-T[Y],K=t.elements.arrow,ee=p&&K?Xy(K):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:w9(),fe=ae[U],ne=ae[J],ve=Ip(0,T[Y],ee[Y]),he=w?T[Y]/2-z-ve-fe-M.mainAxis:G-ve-fe-M.mainAxis,ce=w?-T[Y]/2+z+ve+ne+M.mainAxis:Q+ve+ne+M.mainAxis,Z=t.elements.arrow&&Rp(t.elements.arrow),H=Z?C==="y"?Z.clientTop||0:Z.clientLeft||0:0,te=(B=$==null?void 0:$[C])!=null?B:0,de=N+he-te-H,be=N+ce-te,_e=Ip(p?Ag(L,de):L,N,p?ku(V,be):V);k[C]=_e,O[C]=_e-N}if(i){var xe,Oe=C==="x"?Ga:Ya,De=C==="x"?Bo:Vo,Ne=k[x],Ce=x==="y"?"height":"width",Ie=Ne+g[Oe],Pe=Ne-g[De],ze=[Ga,Ya].indexOf(b)!==-1,Je=(xe=$==null?void 0:$[x])!=null?xe:0,ot=ze?Ie:Ne-T[Ce]-R[Ce]-Je+M.altAxis,$e=ze?Ne+T[Ce]+R[Ce]-Je-M.altAxis:Pe,He=p&&ze?PJ(ot,Ne,$e):Ip(p?ot:Ie,Ne,p?$e:Pe);k[x]=He,O[x]=He-Ne}t.modifiersData[s]=O}}var aZ={name:"preventOverflow",enabled:!0,phase:"main",fn:sZ,requiresIfExists:["offset"]};function oZ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rZ(e){return e===uo(e)||!zo(e)?Zy(e):oZ(e)}function iZ(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 lZ(e,t,n){n===void 0&&(n=!1);var s=zo(t),a=zo(t)&&iZ(t),o=ac(t),r=Lf(e,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((ni(t)!=="body"||e3(o))&&(i=rZ(t)),zo(t)?(l=Lf(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Qy(o))),{x:r.left+i.scrollLeft-l.x,y:r.top+i.scrollTop-l.y,width:r.width,height:r.height}}function cZ(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 uZ(e){var t=cZ(e);return kJ.reduce(function(n,s){return n.concat(t.filter(function(a){return a.phase===s}))},[])}function dZ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fZ(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 O9={placement:"bottom",modifiers:[],strategy:"absolute"};function L9(){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 n3(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,s=n===void 0?[]:n,a=t.defaultOptions,o=a===void 0?O9:a;return function(r,i,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},O9,o),modifiersData:{},elements:{reference:r,popper:i},attributes:{},styles:{}},u=[],d=!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)?Op(r):r.contextElement?Op(r.contextElement):[],popper:Op(i)};var b=uZ(fZ([].concat(s,c.options.modifiers)));return c.orderedModifiers=b.filter(function(_){return _.enabled}),p(),h.update()},forceUpdate:function(){if(!d){var m=c.elements,g=m.reference,b=m.popper;if(L9(g,b)){c.rects={reference:lZ(g,Rp(b),c.options.strategy==="fixed"),popper:Xy(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 _=0;_<c.orderedModifiers.length;_++){if(c.reset===!0){c.reset=!1,_=-1;continue}var w=c.orderedModifiers[_],C=w.fn,x=w.options,k=x===void 0?{}:x,T=w.name;typeof C=="function"&&(c=C({state:c,options:k,name:T,instance:h})||c)}}}},update:dZ(function(){return new Promise(function(m){h.forceUpdate(),m(c)})}),destroy:function(){v(),d=!0}};if(!L9(r,i))return h;h.setOptions(l).then(function(m){!d&&l.onFirstUpdate&&l.onFirstUpdate(m)});function p(){c.orderedModifiers.forEach(function(m){var g=m.name,b=m.options,_=b===void 0?{}:b,w=m.effect;if(typeof w=="function"){var C=w({state:c,name:g,instance:h,options:_}),x=function(){};u.push(C||x)}})}function v(){u.forEach(function(m){return m()}),u=[]}return h}}n3();var hZ=[k9,I9,x9,m9];n3({defaultModifiers:hZ});var pZ=[k9,I9,x9,m9,eZ,YJ,aZ,LJ,JJ],vZ=n3({defaultModifiers:pZ});const N9=Me({arrowOffset:{type:Number,default:5}}),mZ=Me({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ca=e=>Gi(mZ,e),gZ=["fixed","absolute"],bZ=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:ti,default:"bottom"},popperOptions:{type:re(Object),default:()=>({})},strategy:{type:String,values:gZ,default:"absolute"}}),$9=Me({...bZ,...N9,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,...ca(["ariaLabel"]),loop:Boolean}),yZ={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0};function D9(){let e;const t=(s,a)=>{n(),e=window.setTimeout(s,a)},n=()=>window.clearTimeout(e);return Cu(()=>n()),{registerTimeout:t,cancelTimeout:n}}const wZ=Me({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),_Z=({showAfter:e,hideAfter:t,autoClose:n,open:s,close:a})=>{const{registerTimeout:o}=D9(),{registerTimeout:r,cancelTimeout:i}=D9();return{onOpen:(u,d=f(e))=>{o(()=>{s(u);const h=f(n);nt(h)&&h>0&&r(()=>{a(u)},h)},d)},onClose:(u,d=f(t))=>{i(),o(()=>{a(u)},d)}}},sn=Me({...wZ,...$9,appendTo:{type:Sp.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,...ca(["ariaLabel"])}),In=e=>e,Np=Me({id:{type:String,default:void 0},size:cs,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:nn,default:Do},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:nn},prefixIcon:{type:nn},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:re([Object,Array,String]),default:()=>In({})},autofocus:Boolean,rows:{type:Number,default:2},...ca(["ariaLabel"]),inputmode:{type:re(String),default:void 0},name:String}),CZ={[lt]:e=>Ye(e),input:e=>Ye(e),change:(e,t)=>Ye(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};jr(Do);const SZ=Me({...Np,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:Yt},popperClass:sn.popperClass,popperStyle:sn.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:sn.teleported,appendTo:sn.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),xZ={[lt]:e=>Ye(e)||nt(e),[ns]:e=>Ye(e)||nt(e),[Rt]:e=>Ye(e)||nt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>dt(e)},s3=()=>Ut&&/firefox/i.test(window.navigator.userAgent),F9=()=>Ut&&/android/i.test(window.navigator.userAgent);let Xa;const kZ={height:"0",visibility:"hidden",overflow:s3()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},EZ=["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"],B9=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function AZ(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:EZ.map(r=>[r,t.getPropertyValue(r)]),paddingSize:s,borderSize:a,boxSizing:n}}function V9(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}=AZ(e);l.forEach(([h,p])=>Xa==null?void 0:Xa.style.setProperty(h,p)),Object.entries(kZ).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 d=Xa.scrollHeight-o;if(nt(t)){let h=d*t;i==="border-box"&&(h=h+o+r),c=Math.max(h,c),u.minHeight=`${h}px`}if(nt(n)){let h=d*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 TZ=["class","style"],MZ=/^on[A-Z]/,Rg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,s=E(()=>((n==null?void 0:n.value)||[]).concat(TZ)),a=Ct();return E(a?()=>{var o;return pp(Object.entries((o=a.proxy)==null?void 0:o.$attrs).filter(([r])=>!s.value.includes(r)&&!(t&&MZ.test(r))))}:()=>({}))},z9=e=>{const t=Ct();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"),ai=Symbol("formItemContextKey"),ss=(e,t={})=>{const n=F(void 0),s=t.prop?n:z9("size"),a=t.global?n:Ox(),o=t.form?{size:void 0}:We(Eu,void 0),r=t.formItem?{size:void 0}:We(ai,void 0);return E(()=>s.value||f(e)||(r==null?void 0:r.size)||(o==null?void 0:o.size)||a.value||"")},On=e=>{const t=z9("disabled"),n=We(Eu,void 0);return E(()=>{var s,a,o;return(o=(a=(s=t.value)!=null?s:f(e))!=null?a:n==null?void 0:n.disabled)!=null?o:!1})},PZ='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',H9=e=>typeof Element>"u"?!1:e instanceof Element,RZ=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,W9=e=>Array.from(e.querySelectorAll(PZ)).filter(t=>$p(t)&&RZ(t)),$p=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}},Ig=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},j9=e=>!e.getAttribute("aria-owns"),K9=(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},Dp=(e,t)=>{if(!e||!e.focus)return;let n=!1;H9(e)&&!$p(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),H9(e)&&n&&e.removeAttribute("tabindex")},Og=e=>{e&&(Dp(e),!j9(e)&&e.click())};function tl(e,{disabled:t,beforeFocus:n,afterFocus:s,beforeBlur:a,afterBlur:o}={}){const r=Ct(),{emit:i}=r,l=pn(),c=F(!1),u=p=>{const v=Ze(n)?n(p):!1;f(t)||c.value||v||(c.value=!0,i("focus",p),s==null||s())},d=p=>{var v;const m=Ze(a)?a(p):!1;f(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;f(t)||$p(p.target)||(v=l.value)!=null&&v.contains(document.activeElement)&&l.value!==document.activeElement||(m=e.value)==null||m.focus()};return ge([l,()=>f(t)],([p,v])=>{p&&(v?p.removeAttribute("tabindex"):p.setAttribute("tabindex","-1"))}),en(l,"focus",u,!0),en(l,"blur",d,!0),en(l,"click",h,!0),{isFocused:c,wrapperRef:l,handleFocus:u,handleBlur:d}}const U9={prefix:Math.floor(Math.random()*1e4),current:0},IZ=Symbol("elIdInjection"),a3=()=>Ct()?We(IZ,U9):U9,Fs=e=>{const t=a3(),n=Ty();return bx(()=>f(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Es=()=>{const e=We(Eu,void 0),t=We(ai,void 0);return{form:e,formItem:t}},fo=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:s})=>{n||(n=F(!1)),s||(s=F(!1));const a=Ct(),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 xt(()=>{i=ge([Qt(e,"id"),n],([c,u])=>{const d=c??(u?void 0:Fs().value);d!==r.value&&(t!=null&&t.removeInputId&&!o()&&(r.value&&t.removeInputId(r.value),!(s!=null&&s.value)&&!u&&d&&t.addInputId(d)),r.value=d)},{immediate:!0})}),fu(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:l,inputId:r}},OZ=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function Fp({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=!OZ(u)},o=i=>{t==null||t("compositionend",i),n.value&&(n.value=!1,Be(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?o(i):a(i)},handleCompositionStart:s,handleCompositionUpdate:a,handleCompositionEnd:o}}function LZ(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 NZ=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],$Z=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role"];var DZ=W({name:"ElInput",inheritAttrs:!1,__name:"input",props:Np,emits:CZ,setup(e,{expose:t,emit:n}){const s=e,a=n,o=zi(),r=Rg(),i=Wn(),l=E(()=>[s.type==="textarea"?g.b():m.b(),m.m(p.value),m.is("disabled",v.value),m.is("exceed",K.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:d}=Es(),{inputId:h}=fo(s,{formItemContext:d}),p=ss(),v=On(),m=ke("input"),g=ke("textarea"),b=pn(),_=pn(),w=F(!1),C=F(!1),x=F(),k=pn(s.inputStyle),T=E(()=>b.value||_.value),{wrapperRef:R,isFocused:I,handleFocus:M,handleBlur:$}=tl(T,{disabled:v,afterBlur(){var $e;s.validateEvent&&(($e=d==null?void 0:d.validate)==null||$e.call(d,"blur").catch(He=>void 0))}}),O=E(()=>{var $e;return($e=u==null?void 0:u.statusIcon)!=null?$e:!1}),B=E(()=>(d==null?void 0:d.validateState)||""),U=E(()=>B.value&&Eg[B.value]),J=E(()=>C.value?Wy:Jx),Y=E(()=>[o.style]),N=E(()=>[s.inputStyle,k.value,{resize:s.resize}]),L=E(()=>Yn(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),K=E(()=>!!G.value&&Q.value>Number(s.maxlength)),ee=E(()=>!!i.suffix||!!s.suffixIcon||V.value||s.showPassword||G.value||!!B.value&&O.value),ae=E(()=>!!Object.keys(s.modelModifiers).length),[fe,ne]=LZ(b);_n(_,$e=>{if(ce(),!G.value||s.resize!=="both"&&s.resize!=="horizontal")return;const He=$e[0],{width:et}=He.contentRect;x.value={right:`calc(100% - ${et+22-10}px)`}});const ve=()=>{const{type:$e,autosize:He}=s;if(!(!Ut||$e!=="textarea"||!_.value))if(He){const et=dt(He)?He.minRows:void 0,Bt=dt(He)?He.maxRows:void 0,qt=V9(_.value,et,Bt);k.value={overflowY:"hidden",...qt},Be(()=>{_.value.offsetHeight,k.value=qt})}else k.value={minHeight:V9(_.value).minHeight}},ce=($e=>{let He=!1;return()=>{var et;if(He||!s.autosize)return;((et=_.value)==null?void 0:et.offsetParent)===null||(setTimeout($e),He=!0)}})(ve),Z=()=>{const $e=T.value,He=s.formatter?s.formatter(L.value):L.value;!$e||$e.value===He||s.type==="file"||($e.value=He)},H=$e=>{const{trim:He,number:et}=s.modelModifiers;return He&&($e=$e.trim()),et&&($e=`${B9($e)}`),s.formatter&&s.parser&&($e=s.parser($e)),$e},te=async $e=>{if(be.value)return;const{lazy:He}=s.modelModifiers;let{value:et}=$e.target;if(He){a(ns,et);return}if(et=H(et),String(et)===L.value){s.formatter&&Z();return}fe(),a(lt,et),a(ns,et),await Be(),(s.formatter&&s.parser||!ae.value)&&Z(),ne()},de=async $e=>{let{value:He}=$e.target;He=H(He),s.modelModifiers.lazy&&a(lt,He),a(Rt,He,$e),await Be(),Z()},{isComposing:be,handleCompositionStart:_e,handleCompositionUpdate:xe,handleCompositionEnd:Oe}=Fp({emit:a,afterComposition:te}),De=()=>{C.value=!C.value},Ne=()=>{var $e;return($e=T.value)==null?void 0:$e.focus()},Ce=()=>{var $e;return($e=T.value)==null?void 0:$e.blur()},Ie=$e=>{w.value=!1,a("mouseleave",$e)},Pe=$e=>{w.value=!0,a("mouseenter",$e)},ze=$e=>{a("keydown",$e)},Je=()=>{var $e;($e=T.value)==null||$e.select()},ot=()=>{a(lt,""),a(Rt,""),a("clear"),a(ns,"")};return ge(()=>s.modelValue,()=>{var $e;Be(()=>ve()),s.validateEvent&&(($e=d==null?void 0:d.validate)==null||$e.call(d,"change").catch(He=>void 0))}),ge(L,$e=>{if(!T.value)return;const{trim:He,number:et}=s.modelModifiers,Bt=T.value.value,qt=(et||s.type==="number")&&!/^0\d/.test(Bt)?`${B9(Bt)}`:Bt;qt!==$e&&(document.activeElement===T.value&&T.value.type!=="range"&&He&&qt.trim()===$e||Z())}),ge(()=>s.type,async()=>{await Be(),Z(),ve()}),xt(()=>{!s.formatter&&s.parser,Z(),Be(ve)}),t({input:b,textarea:_,ref:T,textareaStyle:N,autosize:Qt(s,"autosize"),isComposing:be,focus:Ne,blur:Ce,select:Je,clear:ot,resizeTextarea:ve}),($e,He)=>(S(),P("div",{class:D([l.value,{[f(m).bm("group","append")]:$e.$slots.append,[f(m).bm("group","prepend")]:$e.$slots.prepend}]),style:Qe(Y.value),onMouseenter:Pe,onMouseleave:Ie},[ie(" input "),e.type!=="textarea"?(S(),P(Ve,{key:0},[ie(" prepend slot "),$e.$slots.prepend?(S(),P("div",{key:0,class:D(f(m).be("group","prepend"))},[ue($e.$slots,"prepend")],2)):ie("v-if",!0),A("div",{ref_key:"wrapperRef",ref:R,class:D(c.value)},[ie(" prefix slot "),$e.$slots.prefix||e.prefixIcon?(S(),P("span",{key:0,class:D(f(m).e("prefix"))},[A("span",{class:D(f(m).e("prefix-inner"))},[ue($e.$slots,"prefix"),e.prefixIcon?(S(),le(f(Xe),{key:0,class:D(f(m).e("icon"))},{default:X(()=>[(S(),le(yt(e.prefixIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)):ie("v-if",!0),A("input",_t({id:f(h),ref_key:"input",ref:b,class:f(m).e("inner")},f(r),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?C.value?"text":"password":e.type,disabled:f(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:He[0]||(He[0]=(...et)=>f(_e)&&f(_e)(...et)),onCompositionupdate:He[1]||(He[1]=(...et)=>f(xe)&&f(xe)(...et)),onCompositionend:He[2]||(He[2]=(...et)=>f(Oe)&&f(Oe)(...et)),onInput:te,onChange:de,onKeydown:ze}),null,16,NZ),ie(" suffix slot "),ee.value?(S(),P("span",{key:1,class:D(f(m).e("suffix"))},[A("span",{class:D(f(m).e("suffix-inner"))},[!V.value||!z.value||!G.value?(S(),P(Ve,{key:0},[ue($e.$slots,"suffix"),e.suffixIcon?(S(),le(f(Xe),{key:0,class:D(f(m).e("icon"))},{default:X(()=>[(S(),le(yt(e.suffixIcon)))]),_:1},8,["class"])):ie("v-if",!0)],64)):ie("v-if",!0),V.value?(S(),le(f(Xe),{key:1,class:D([f(m).e("icon"),f(m).e("clear")]),onMousedown:it(f(Yt),["prevent"]),onClick:ot},{default:X(()=>[(S(),le(yt(e.clearIcon)))]),_:1},8,["class","onMousedown"])):ie("v-if",!0),z.value?(S(),le(f(Xe),{key:2,class:D([f(m).e("icon"),f(m).e("password")]),onClick:De,onMousedown:it(f(Yt),["prevent"]),onMouseup:it(f(Yt),["prevent"])},{default:X(()=>[(S(),le(yt(J.value)))]),_:1},8,["class","onMousedown","onMouseup"])):ie("v-if",!0),G.value?(S(),P("span",{key:3,class:D([f(m).e("count"),f(m).is("outside",e.wordLimitPosition==="outside")])},[A("span",{class:D(f(m).e("count-inner"))},me(Q.value)+" / "+me(e.maxlength),3)],2)):ie("v-if",!0),B.value&&U.value&&O.value?(S(),le(f(Xe),{key:4,class:D([f(m).e("icon"),f(m).e("validateIcon"),f(m).is("loading",B.value==="validating")])},{default:X(()=>[(S(),le(yt(U.value)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)):ie("v-if",!0)],2),ie(" append slot "),$e.$slots.append?(S(),P("div",{key:1,class:D(f(m).be("group","append"))},[ue($e.$slots,"append")],2)):ie("v-if",!0)],64)):(S(),P(Ve,{key:1},[ie(" textarea "),A("textarea",_t({id:f(h),ref_key:"textarea",ref:_,class:[f(g).e("inner"),f(m).is("focus",f(I))]},f(r),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:f(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:He[3]||(He[3]=(...et)=>f(_e)&&f(_e)(...et)),onCompositionupdate:He[4]||(He[4]=(...et)=>f(xe)&&f(xe)(...et)),onCompositionend:He[5]||(He[5]=(...et)=>f(Oe)&&f(Oe)(...et)),onInput:te,onFocus:He[6]||(He[6]=(...et)=>f(M)&&f(M)(...et)),onBlur:He[7]||(He[7]=(...et)=>f($)&&f($)(...et)),onChange:de,onKeydown:ze}),null,16,$Z),G.value?(S(),P("span",{key:0,style:Qe(x.value),class:D([f(m).e("count"),f(m).is("outside",e.wordLimitPosition==="outside")])},me(Q.value)+" / "+me(e.maxlength),7)):ie("v-if",!0)],64))],38))}});const ua=ht(DZ),FZ=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,...ca(["ariaLabel","ariaOrientation"])}),q9={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(nt)},BZ=Me({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),$f=4,G9={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"}},VZ=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),zZ=Me({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),o3=Symbol("scrollbarContextKey"),HZ="Thumb";var Y9=W({__name:"thumb",props:zZ,setup(e){const t=e,n=We(o3),s=ke("scrollbar");n||Zn(HZ,"can not inject scrollbar context");const a=F(),o=F(),r=F({}),i=F(!1);let l=!1,c=!1,u=0,d=0,h=Ut?document.onselectstart:null;const p=E(()=>G9[t.vertical?"vertical":"horizontal"]),v=E(()=>VZ({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(),_(R);const M=R.currentTarget;M&&(r.value[p.value.axis]=M[p.value.offset]-(R[p.value.client]-M.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]),M=o.value[p.value.offset]/2,$=(I-M)*100*m.value/a.value[p.value.offset];n.wrapElement[p.value.scroll]=$*n.wrapElement[p.value.scrollSize]/100},_=R=>{R.stopImmediatePropagation(),l=!0,u=n.wrapElement.scrollHeight,d=n.wrapElement.scrollWidth,document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),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 M=(a.value.getBoundingClientRect()[p.value.direction]-R[p.value.client])*-1,$=o.value[p.value.offset]-I,O=(M-$)*100*m.value/a.value[p.value.offset];p.value.scroll==="scrollLeft"?n.wrapElement[p.value.scroll]=O*d/100:n.wrapElement[p.value.scroll]=O*u/100},C=()=>{l=!1,r.value[p.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),T(),c&&(i.value=!1)},x=()=>{c=!1,i.value=!!t.size},k=()=>{c=!0,i.value=l};Xt(()=>{T(),document.removeEventListener("mouseup",C)});const T=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return en(Qt(n,"scrollbarElement"),"mousemove",x),en(Qt(n,"scrollbarElement"),"mouseleave",k),(R,I)=>(S(),le(ys,{name:f(s).b("fade"),persisted:""},{default:X(()=>[bt(A("div",{ref_key:"instance",ref:a,class:D([f(s).e("bar"),f(s).is(p.value.key)]),onMousedown:b,onClick:I[0]||(I[0]=it(()=>{},["stop"]))},[A("div",{ref_key:"thumb",ref:o,class:D(f(s).e("thumb")),style:Qe(v.value),onMousedown:g},null,38)],34),[[Vt,e.always||i.value]])]),_:1},8,["name"]))}}),WZ=W({__name:"bar",props:BZ,setup(e,{expose:t}){const n=e,s=We(o3),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),_=Math.max(g,n.minSize);l.value=m/(p-m)/(b/(p-b)),c.value=g/(v-g)/(_/(v-_)),i.value=b+$f<p?`${b}px`:"",r.value=_+$f<v?`${_}px`:""}}),(h,p)=>(S(),P(Ve,null,[j(Y9,{move:a.value,ratio:c.value,size:r.value,always:e.always},null,8,["move","ratio","size","always"]),j(Y9,{move:o.value,ratio:l.value,size:i.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}});const jZ=["tabindex"];var KZ=W({name:"ElScrollbar",__name:"scrollbar",props:FZ,emits:q9,setup(e,{expose:t,emit:n}){const s=e,a=n,o=ke("scrollbar");let r,i,l,c=0,u=0,d="";const h={bottom:!1,top:!1,right:!1,left:!1},p=F(),v=F(),m=F(),g=F(),b=E(()=>{const O={},B=Rn(s.height),U=Rn(s.maxHeight);return B&&(O.height=B),U&&(O.maxHeight=U),[s.wrapStyle,O]}),_=E(()=>[s.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!s.native}]),w=E(()=>[o.e("view"),s.viewClass]),C=O=>{var B;return(B=h[O])!=null?B:!1},x={top:"bottom",bottom:"top",left:"right",right:"left"},k=O=>{const B=x[d];if(!B)return;const U=O[d],J=O[B];U&&!h[d]&&(h[d]=!0),!J&&h[B]&&(h[B]=!1)},T=()=>{var O;if(v.value){(O=g.value)==null||O.handleScroll(v.value);const B=c,U=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&&U!==u,left:u<=s.distance&&U!==0};if(a("scroll",{scrollTop:c,scrollLeft:u}),B!==c&&(d=c>B?"bottom":"top"),U!==u&&(d=u>U?"right":"left"),s.distance>0){if(C(d))return;k(J)}J[d]&&a("end-reached",d)}};function R(O,B){dt(O)?v.value.scrollTo(O):nt(O)&&nt(B)&&v.value.scrollTo(O,B)}const I=O=>{nt(O)&&(v.value.scrollTop=O)},M=O=>{nt(O)&&(v.value.scrollLeft=O)},$=()=>{var O;(O=g.value)==null||O.update(),h[d]=!1};return ge(()=>s.noresize,O=>{O?(r==null||r(),i==null||i(),l==null||l()):({stop:r}=_n(m,$),{stop:i}=_n(v,$),l=en("resize",$))},{immediate:!0}),ge(()=>[s.maxHeight,s.height],()=>{s.native||Be(()=>{var O;$(),v.value&&((O=g.value)==null||O.handleScroll(v.value))})}),Mt(o3,Kt({scrollbarElement:p,wrapElement:v})),q0(()=>{v.value&&(v.value.scrollTop=c,v.value.scrollLeft=u)}),xt(()=>{s.native||Be(()=>{$()})}),rr(()=>$()),t({wrapRef:v,update:$,scrollTo:R,setScrollTop:I,setScrollLeft:M,handleScroll:T}),(O,B)=>(S(),P("div",{ref_key:"scrollbarRef",ref:p,class:D(f(o).b())},[A("div",{ref_key:"wrapRef",ref:v,class:D(_.value),style:Qe(b.value),tabindex:e.tabindex,onScroll:T},[(S(),le(yt(e.tag),{id:e.id,ref_key:"resizeRef",ref:m,class:D(w.value),style:Qe(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,jZ),e.native?ie("v-if",!0):(S(),le(WZ,{key:0,ref_key:"barRef",ref:g,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});const vr=ht(KZ),X9=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"},oi=Me({...X9,disabled:Boolean,trigger:{type:re([String,Array]),default:"hover"},triggerKeys:{type:re(Array),default:()=>[Te.enter,Te.numpadEnter,Te.space]},focusOnTarget:Boolean}),UZ=fr({type:re(Boolean),default:null}),qZ=fr({type:re(Function)}),GZ=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,s=[t],a={[e]:UZ,[n]:qZ};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:c,onShow:u,onHide:d})=>{const h=Ct(),{emit:p}=h,v=h.props,m=E(()=>Ze(v[n])),g=E(()=>v[e]===null),b=T=>{r.value!==!0&&(r.value=!0,i&&(i.value=T),Ze(u)&&u(T))},_=T=>{r.value!==!1&&(r.value=!1,i&&(i.value=T),Ze(d)&&d(T))},w=T=>{if(v.disabled===!0||Ze(c)&&!c())return;const R=m.value&&Ut;R&&p(t,!0),(g.value||!R)&&b(T)},C=T=>{if(v.disabled===!0||!Ut)return;const R=m.value&&Ut;R&&p(t,!1),(g.value||!R)&&_(T)},x=T=>{tn(T)&&(v.disabled&&T?m.value&&p(t,!1):r.value!==T&&(T?b():_()))},k=()=>{r.value?C():w()};return ge(()=>v[e],x),l&&h.appContext.config.globalProperties.$route!==void 0&&ge(()=>({...h.proxy.$route}),()=>{l.value&&r.value&&C()}),xt(()=>{x(v[e])}),{hide:C,show:w,toggle:k,hasUpdateHandler:m}},useModelToggleProps:a,useModelToggleEmits:s}},J9=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Z9=Me({role:{type:String,values:J9,default:"tooltip"}}),{useModelToggleProps:YZ,useModelToggleEmits:XZ,useModelToggle:JZ}=GZ("visible"),ZZ=Me({...Z9,...YZ,...sn,...oi,...N9,showArrow:{type:Boolean,default:!0}}),QZ=[...XZ,"before-show","before-hide","show","hide","open","close"],r3=Symbol("popper"),Q9=Symbol("popperContent");var eQ=W({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:Z9,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),Mt(r3,l),(c,u)=>ue(c.$slots,"default")}}),tQ=W({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=ke("popper"),{arrowRef:s,arrowStyle:a}=We(Q9,void 0);return Xt(()=>{s.value=void 0}),t({arrowRef:s}),(o,r)=>(S(),P("span",{ref_key:"arrowRef",ref:s,class:D(f(n).e("arrow")),style:Qe(f(a)),"data-popper-arrow":""},null,6))}});const ek=Symbol("elForwardRef"),nQ=e=>{Mt(ek,{setForwardRef:n=>{e.value=n}})},sQ=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),tk=W({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var s;const a=We(ek),o=sQ((s=a==null?void 0:a.setForwardRef)!=null?s:Yt);return()=>{var r;const i=(r=t.default)==null?void 0:r.call(t,n);if(!i)return null;const[l,c]=nk(i);return l?bt(qr(l,n),[[o]]):null}}});function nk(e){if(!e)return[null,0];const t=e,n=t.filter(s=>s.type!==qn).length;for(const s of t){if(dt(s))switch(s.type){case qn:continue;case mf:case"svg":return[sk(s),n];case Ve:return nk(s.children);default:return[s,n]}return[sk(s),n]}return[null,0]}function sk(e){const t=ke("only-child");return j("span",{class:t.e("content")},[e])}var aQ=W({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:X9,setup(e,{expose:t}){const n=e,{role:s,triggerRef:a}=We(r3,void 0);nQ(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 xt(()=>{ge(()=>n.virtualRef,d=>{d&&(a.value=ls(d))},{immediate:!0}),ge(a,(d,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(d)&&(u.forEach(p=>{const v=n[p];v&&d.addEventListener(p.slice(2).toLowerCase(),v,["onFocus","onBlur"].includes(p))}),$p(d)&&(c=ge([o,r,i,l],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,m)=>{Yn(p[m])?d.removeAttribute(v):d.setAttribute(v,p[m])})},{immediate:!0}))),Ka(h)&&$p(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>h.removeAttribute(p))},{immediate:!0})}),Xt(()=>{if(c==null||c(),c=void 0,a.value&&Ka(a.value)){const d=a.value;u.forEach(h=>{const p=n[h];p&&d.removeEventListener(h.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(h))}),a.value=void 0}}),t({triggerRef:a}),(d,h)=>e.virtualTriggering?ie("v-if",!0):(S(),le(f(tk),_t({key:0},d.$attrs,{"aria-controls":o.value,"aria-describedby":r.value,"aria-expanded":l.value,"aria-haspopup":i.value}),{default:X(()=>[ue(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});const i3="focus-trap.focus-after-trapped",l3="focus-trap.focus-after-released",oQ="focus-trap.focusout-prevented",ak={cancelable:!0,bubbles:!1},rQ={cancelable:!0,bubbles:!1},ok="focusAfterTrapped",rk="focusAfterReleased",ik=Symbol("elFocusTrap"),c3=F(),Lg=F(0),u3=F(0);let Ng=0;const lk=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},ck=(e,t)=>{for(const n of e)if(!iQ(n,t))return n},iQ=(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},lQ=e=>{const t=lk(e),n=ck(t,e),s=ck(t.reverse(),e);return[n,s]},cQ=e=>e instanceof HTMLInputElement&&"select"in e,oc=(e,t)=>{if(e){const n=document.activeElement;Dp(e,{preventScroll:!0}),u3.value=window.performance.now(),e!==n&&cQ(e)&&t&&e.select()}};function uk(e,t){const n=[...e],s=e.indexOf(t);return s!==-1&&n.splice(s,1),n}const uQ=()=>{let e=[];return{push:s=>{const a=e[0];a&&s!==a&&a.pause(),e=uk(e,s),e.unshift(s)},remove:s=>{var a,o;e=uk(e,s),(o=(a=e[0])==null?void 0:a.resume)==null||o.call(a)}}},dQ=(e,t=!1)=>{const n=document.activeElement;for(const s of e)if(oc(s,t),document.activeElement!==n)return},dk=uQ(),fQ=()=>Lg.value>u3.value,$g=()=>{c3.value="pointer",Lg.value=window.performance.now()},fk=()=>{c3.value="keyboard",Lg.value=window.performance.now()},hQ=()=>(xt(()=>{Ng===0&&(document.addEventListener("mousedown",$g),document.addEventListener("touchstart",$g),document.addEventListener("keydown",fk)),Ng++}),Xt(()=>{Ng--,Ng<=0&&(document.removeEventListener("mousedown",$g),document.removeEventListener("touchstart",$g),document.removeEventListener("keydown",fk))}),{focusReason:c3,lastUserFocusTimestamp:Lg,lastAutomatedFocusTimestamp:u3}),Dg=e=>new CustomEvent(oQ,{...rQ,detail:e}),ws=(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)},hk=e=>t=>t.pointerType==="mouse"?e(t):void 0,on=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=pk(e);if(t){if(Object.values(Te).includes(t))return t;switch(t){case" ":return Te.space;default:return""}}return""},pk=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&F9()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t};let Df=[];const vk=e=>{on(e)===Te.esc&&Df.forEach(n=>n(e))},pQ=e=>{xt(()=>{Df.length===0&&document.addEventListener("keydown",vk),Ut&&Df.push(e)}),Xt(()=>{Df=Df.filter(t=>t!==e),Df.length===0&&Ut&&document.removeEventListener("keydown",vk)})};var vQ=W({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ok,rk,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=F();let s,a;const{focusReason:o}=hQ();pQ(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:_,shiftKey:w}=v,{loop:C}=e,k=on(v)===Te.tab&&!m&&!g&&!b,T=document.activeElement;if(k&&T){const R=_,[I,M]=lQ(R);if(I&&M){if(!w&&T===M){const O=Dg({focusReason:o.value});t("focusout-prevented",O),O.defaultPrevented||(v.preventDefault(),C&&oc(I,!0))}else if(w&&[I,R].includes(T)){const O=Dg({focusReason:o.value});t("focusout-prevented",O),O.defaultPrevented||(v.preventDefault(),C&&oc(M,!0))}}else if(T===R){const O=Dg({focusReason:o.value});t("focusout-prevented",O),O.defaultPrevented||v.preventDefault()}}};Mt(ik,{focusTrapRef:n,onKeydown:i}),ge(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),ge([n],([v],[m])=>{v&&(v.addEventListener("keydown",i),v.addEventListener("focusin",u),v.addEventListener("focusout",d)),m&&(m.removeEventListener("keydown",i),m.removeEventListener("focusin",u),m.removeEventListener("focusout",d))});const l=v=>{t(ok,v)},c=v=>t(rk,v),u=v=>{const m=f(n);if(!m)return;const g=v.target,b=v.relatedTarget,_=g&&m.contains(g);e.trapped||b&&m.contains(b)||(s=b),_&&t("focusin",v),!r.paused&&e.trapped&&(_?a=g:oc(a,!0))},d=v=>{const m=f(n);if(!(r.paused||!m))if(e.trapped){const g=v.relatedTarget;!Yn(g)&&!m.contains(g)&&setTimeout(()=>{if(!r.paused&&e.trapped){const b=Dg({focusReason:o.value});t("focusout-prevented",b),b.defaultPrevented||oc(a,!0)}},0)}else{const g=v.target;g&&m.contains(g)||t("focusout",v)}};async function h(){await Be();const v=f(n);if(v){dk.push(r);const m=v.contains(document.activeElement)?s:document.activeElement;if(s=m,!v.contains(m)){const b=new Event(i3,ak);v.addEventListener(i3,l),v.dispatchEvent(b),b.defaultPrevented||Be(()=>{let _=e.focusStartEl;Ye(_)||(oc(_),document.activeElement!==_&&(_="first")),_==="first"&&dQ(lk(v),!0),(document.activeElement===m||_==="container")&&oc(v)})}}}function p(){const v=f(n);if(v){v.removeEventListener(i3,l);const m=new CustomEvent(l3,{...ak,detail:{focusReason:o.value}});v.addEventListener(l3,c),v.dispatchEvent(m),!m.defaultPrevented&&(o.value=="keyboard"||!fQ()||v.contains(document.activeElement))&&oc(s??document.body),v.removeEventListener(l3,c),dk.remove(r),s=null,a=null}}return xt(()=>{e.trapped&&h(),ge(()=>e.trapped,v=>{v?h():p()})}),Xt(()=>{e.trapped&&p(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",u),n.value.removeEventListener("focusout",d),n.value=void 0),s=null,a=null}),{onKeydown:i}}}),us=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n};function mQ(e,t,n,s,a,o){return ue(e.$slots,"default",{handleKeydown:e.onKeydown})}var Ff=us(vQ,[["render",mQ]]);const gQ=(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 Xt(()=>{s.value=void 0}),{focusStartRef:s,trapped:n,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:r,onFocusoutPrevented:i,onReleaseRequested:l}},bQ=(e,t=[])=>{const{placement:n,strategy:s,popperOptions:a}=e,o={placement:n,strategy:s,...a,modifiers:[...wQ(e),...t]};return _Q(o,a==null?void 0:a.modifiers),o},yQ=e=>{if(Ut)return ls(e)};function wQ(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 _Q(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const CQ=(e,t,n={})=>{const s={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const c=SQ(l);Object.assign(r.value,c)},requires:["computeStyles"]},a=E(()=>{const{onFirstUpdate:l,placement:c,strategy:u,modifiers:d}=f(n);return{onFirstUpdate:l,placement:c||"bottom",strategy:u||"absolute",modifiers:[...d||[],s,{name:"applyStyles",enabled:!1}]}}),o=pn(),r=F({styles:{popper:{position:f(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return ge(a,l=>{const c=f(o);c&&c.setOptions(l)},{deep:!0}),ge([e,t],([l,c])=>{i(),!(!l||!c)&&(o.value=vZ(l,c,f(a)))}),Xt(()=>{i()}),{state:E(()=>{var l;return{...((l=f(o))==null?void 0:l.state)||{}}}),styles:E(()=>f(r).styles),attributes:E(()=>f(r).attributes),update:()=>{var l;return(l=f(o))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=f(o))==null?void 0:l.forceUpdate()},instanceRef:E(()=>f(o))}};function SQ(e){const t=Object.keys(e.elements),n=pp(t.map(a=>[a,e.styles[a]||{}])),s=pp(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:s}}const xQ=0,kQ=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:s,role:a}=We(r3,void 0),o=F(),r=E(()=>e.arrowOffset),i=E(()=>({name:"eventListeners",enabled:!!e.visible})),l=E(()=>{var b;const _=f(o),w=(b=f(r))!=null?b:xQ;return{name:"arrow",enabled:!cV(_),options:{element:_,padding:w}}}),c=E(()=>({onFirstUpdate:()=>{v()},...bQ(e,[f(l),f(i)])})),u=E(()=>yQ(e.referenceEl)||f(s)),{attributes:d,state:h,styles:p,update:v,forceUpdate:m,instanceRef:g}=CQ(u,n,c);return ge(g,b=>t.value=b,{flush:"sync"}),xt(()=>{ge(()=>{var b,_;return(_=(b=f(u))==null?void 0:b.getBoundingClientRect)==null?void 0:_.call(b)},()=>{v()})}),Xt(()=>{t.value=void 0}),{attributes:d,arrowRef:o,contentRef:n,instanceRef:g,state:h,styles:p,role:a,forceUpdate:m,update:v}},EQ=(e,{attributes:t,styles:n,role:s})=>{const{nextZIndex:a}=wp(),o=ke("popper"),r=E(()=>f(t).popper),i=F(nt(e.zIndex)?e.zIndex:a()),l=E(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),c=E(()=>[{zIndex:f(i)},f(n).popper,e.popperStyle||{}]),u=E(()=>s.value==="dialog"?"false":void 0),d=E(()=>f(n).arrow||{});return{ariaModal:u,arrowStyle:d,contentAttrs:r,contentClass:l,contentStyle:c,contentZIndex:i,updateZIndex:()=>{i.value=nt(e.zIndex)?e.zIndex:a()}}};var AQ=W({name:"ElPopperContent",__name:"content",props:$9,emits:yZ,setup(e,{expose:t,emit:n}){const s=n,a=e,{focusStartRef:o,trapped:r,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:d}=gQ(a,s),{attributes:h,arrowRef:p,contentRef:v,styles:m,instanceRef:g,role:b,update:_}=kQ(a),{ariaModal:w,arrowStyle:C,contentAttrs:x,contentClass:k,contentStyle:T,updateZIndex:R}=EQ(a,{styles:m,attributes:h,role:b}),I=We(ai,void 0);Mt(Q9,{arrowStyle:C,arrowRef:p}),I&&Mt(ai,{...I,addInputId:Yt,removeInputId:Yt});let M;const $=(B=!0)=>{_(),B&&R()},O=()=>{$(!1),a.visible&&a.focusOnShow?r.value=!0:a.visible===!1&&(r.value=!1)};return xt(()=>{ge(()=>a.triggerTargetEl,(B,U)=>{M==null||M(),M=void 0;const J=f(B||v.value),Y=f(U||v.value);Ka(J)&&(M=ge([b,()=>a.ariaLabel,w,()=>a.id],N=>{["role","aria-label","aria-modal","id"].forEach((L,V)=>{Yn(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}),ge(()=>a.visible,O,{immediate:!0})}),Xt(()=>{M==null||M(),M=void 0,v.value=void 0}),t({popperContentRef:v,popperInstanceRef:g,updatePopper:$,contentStyle:T}),(B,U)=>(S(),P("div",_t({ref_key:"contentRef",ref:v},f(x),{style:f(T),class:f(k),tabindex:"-1",onMouseenter:U[0]||(U[0]=J=>B.$emit("mouseenter",J)),onMouseleave:U[1]||(U[1]=J=>B.$emit("mouseleave",J))}),[j(f(Ff),{loop:e.loop,trapped:f(r),"trap-on-focus-in":!0,"focus-trap-el":f(v),"focus-start-el":f(o),onFocusAfterTrapped:f(l),onFocusAfterReleased:f(i),onFocusin:f(c),onFocusoutPrevented:f(u),onReleaseRequested:f(d)},{default:X(()=>[ue(B.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});const mk=ht(eQ),d3=Symbol("elTooltip"),f3=(e,t)=>Ae(e)?e.includes(t):e===t,Bf=(e,t,n)=>s=>{f3(f(e),t)&&n(s)};var TQ=W({name:"ElTooltipTrigger",__name:"trigger",props:oi,setup(e,{expose:t}){const n=e,s=ke("tooltip"),{controlled:a,id:o,open:r,onOpen:i,onClose:l,onToggle:c}=We(d3,void 0),u=F(null),d=()=>{if(f(a)||n.disabled)return!0},h=Qt(n,"trigger"),p=ws(d,Bf(h,"hover",C=>{i(C),n.focusOnTarget&&C.target&&Be(()=>{Dp(C.target,{preventScroll:!0})})})),v=ws(d,Bf(h,"hover",l)),m=ws(d,Bf(h,"click",C=>{C.button===0&&c(C)})),g=ws(d,Bf(h,"focus",i)),b=ws(d,Bf(h,"focus",l)),_=ws(d,Bf(h,"contextmenu",C=>{C.preventDefault(),c(C)})),w=ws(d,C=>{const x=on(C);n.triggerKeys.includes(x)&&(C.preventDefault(),c(C))});return t({triggerRef:u}),(C,x)=>(S(),le(f(aQ),{id:f(o),"virtual-ref":e.virtualRef,open:f(r),"virtual-triggering":e.virtualTriggering,class:D(f(s).e("trigger")),onBlur:f(b),onClick:f(m),onContextmenu:f(_),onFocus:f(g),onMouseenter:f(p),onMouseleave:f(v),onKeydown:f(w)},{default:X(()=>[ue(C.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});const gk=()=>{const e=Ty(),t=a3(),n=E(()=>`${e.value}-popper-container-${t.prefix}`),s=E(()=>`#${n.value}`);return{id:n,selector:s}},MQ=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},PQ=()=>{const{id:e,selector:t}=gk();return U2(()=>{Ut&&(document.body.querySelector(t.value)||MQ(e.value))}),{id:e,selector:t}},bk=e=>[...new Set(e)],Bp=e=>Ae(e)?e[0]:e,da=e=>!e&&e!==0?[]:Ae(e)?e:[e];var RQ=W({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:sn,setup(e,{expose:t}){const n=e,{selector:s}=gk(),a=ke("tooltip"),o=F(),r=bx(()=>{var L;return(L=o.value)==null?void 0:L.popperContentRef});let i;const{controlled:l,id:c,open:u,trigger:d,onClose:h,onOpen:p,onShow:v,onHide:m,onBeforeShow:g,onBeforeHide:b}=We(d3,void 0),_=E(()=>n.transition||`${a.namespace.value}-fade-in-linear`),w=E(()=>n.persistent);Xt(()=>{i==null||i()});const C=E(()=>f(w)?!0:f(u)),x=E(()=>n.disabled?!1:f(u)),k=E(()=>n.appendTo||s.value),T=E(()=>{var L;return(L=n.style)!=null?L:{}}),R=F(!0),I=()=>{m(),N()&&Dp(document.body,{preventScroll:!0}),R.value=!0},M=()=>{if(f(l))return!0},$=ws(M,()=>{n.enterable&&f3(f(d),"hover")&&p()}),O=ws(M,()=>{f3(f(d),"hover")&&h()}),B=()=>{var L,V;(V=(L=o.value)==null?void 0:L.updatePopper)==null||V.call(L),g==null||g()},U=()=>{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 ge(()=>f(u),L=>{L?(R.value=!1,i=Py(r,()=>{if(f(l))return;da(f(d)).every(z=>z!=="hover"&&z!=="focus")&&h()},{detectIframe:!0})):i==null||i()},{flush:"post"}),ge(()=>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(),le(f(Mf),{disabled:!e.teleported,to:k.value},{default:X(()=>[C.value||!R.value?(S(),le(ys,{key:0,name:_.value,appear:!w.value,onAfterLeave:I,onBeforeEnter:B,onAfterEnter:J,onBeforeLeave:U,persisted:""},{default:X(()=>[bt(j(f(AQ),_t({id:f(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:f($),onMouseleave:f(O),onBlur:Y,onClose:f(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"]),[[Vt,x.value]])]),_:3},8,["name","appear"])):ie("v-if",!0)]),_:3},8,["disabled","to"]))}});const IQ=["innerHTML"],OQ={key:1};var LQ=W({name:"ElTooltip",__name:"tooltip",props:ZZ,emits:QZ,setup(e,{expose:t,emit:n}){const s=e,a=n;PQ();const o=ke("tooltip"),r=Fs(),i=F(),l=F(),c=()=>{var C;const x=f(i);x&&((C=x.popperInstanceRef)==null||C.update())},u=F(!1),d=F(),{show:h,hide:p,hasUpdateHandler:v}=JZ({indicator:u,toggleReason:d}),{onOpen:m,onClose:g}=_Z({showAfter:Qt(s,"showAfter"),hideAfter:Qt(s,"hideAfter"),autoClose:Qt(s,"autoClose"),open:h,close:p}),b=E(()=>tn(s.visible)&&!v.value),_=E(()=>[o.b(),s.popperClass]);Mt(d3,{controlled:b,id:r,open:iu(u),trigger:Qt(s,"trigger"),onOpen:m,onClose:g,onToggle:C=>{f(u)?g(C):m(C)},onShow:()=>{a("show",d.value)},onHide:()=>{a("hide",d.value)},onBeforeShow:()=>{a("before-show",d.value)},onBeforeHide:()=>{a("before-hide",d.value)},updatePopper:c}),ge(()=>s.disabled,C=>{C&&u.value&&(u.value=!1)});const w=C=>{var x;return(x=l.value)==null?void 0:x.isFocusInsideContent(C)};return O4(()=>u.value&&p()),Xt(()=>{d.value=void 0}),t({popperRef:i,contentRef:l,isFocusInsideContent:w,updatePopper:c,onOpen:m,onClose:g,hide:p}),(C,x)=>(S(),le(f(mk),{ref_key:"popperRef",ref:i,role:e.role},{default:X(()=>[j(TQ,{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(()=>[C.$slots.default?ue(C.$slots,"default",{key:0}):ie("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),j(RQ,{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":_.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(C.$slots,"content",{},()=>[e.rawContent?(S(),P("span",{key:0,innerHTML:e.content},null,8,IQ)):(S(),P("span",OQ,me(e.content),1))]),e.showArrow?(S(),le(f(tQ),{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 As=ht(LQ),NQ=["aria-expanded","aria-owns"],$Q={key:0},DQ=["id","aria-selected","onClick"],yk="ElAutocomplete";var FQ=W({name:yk,inheritAttrs:!1,__name:"autocomplete",props:SZ,emits:xZ,setup(e,{expose:t,emit:n}){const s=e,a=n,o=E(()=>Gi(s,Object.keys(Np))),r=zi(),i=On(),l=ke("autocomplete"),c=F(),u=F(),d=F(),h=F();let p=!1,v=!1;const m=F([]),g=F(-1),b=F(""),_=F(!1),w=F(!1),C=F(!1),x=Fs(),k=E(()=>r.style),T=E(()=>(m.value.length>0||C.value)&&_.value),R=E(()=>!s.hideLoading&&C.value),I=E(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),M=()=>{T.value&&(b.value=`${c.value.$el.offsetWidth}px`)},$=()=>{g.value=-1},O=async Z=>{if(w.value)return;const H=te=>{C.value=!1,!w.value&&(Ae(te)?(m.value=te,g.value=s.highlightFirstItem?0:-1):Zn(yk,"autocomplete suggestions must be an array"))};if(C.value=!0,Ae(s.fetchSuggestions))H(s.fetchSuggestions);else{const te=await s.fetchSuggestions(Z,H);Ae(te)&&H(te)}},B=E(()=>s.debounce),U=bp(O,B),J=Z=>{const H=!!Z;if(a(ns,Z),a(lt,Z),w.value=!1,_.value||(_.value=H),!s.triggerOnFocus&&!Z){w.value=!0,m.value=[];return}U(Z)},Y=Z=>{var H;i.value||(((H=Z.target)==null?void 0:H.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(_.value=!0)},N=Z=>{a(Rt,Z)},L=Z=>{var H;if(v)v=!1;else{_.value=!0,a("focus",Z);const te=(H=s.modelValue)!=null?H:"";s.triggerOnFocus&&!p&&U(String(te))}},V=Z=>{setTimeout(()=>{var H;if((H=d.value)!=null&&H.isFocusInsideContent()){v=!0;return}_.value&&K(),a("blur",Z)})},z=()=>{_.value=!1,a(lt,""),a("clear")},G=async()=>{var Z;(Z=c.value)!=null&&Z.isComposing||(T.value&&g.value>=0&&g.value<m.value.length?fe(m.value[g.value]):(s.selectWhenUnmatched&&(a("select",{value:s.modelValue}),m.value=[],g.value=-1),_.value=!0,U(String(s.modelValue))))},Q=Z=>{T.value&&(Z.preventDefault(),Z.stopPropagation(),K())},K=()=>{_.value=!1},ee=()=>{var Z;(Z=c.value)==null||Z.focus()},ae=()=>{var Z;(Z=c.value)==null||Z.blur()},fe=async Z=>{a(ns,Z[s.valueKey]),a(lt,Z[s.valueKey]),a("select",Z),m.value=[],g.value=-1},ne=Z=>{var H,te;if(!T.value||C.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[de,be]=ve(),_e=be[Z],xe=de.scrollTop,{offsetTop:Oe,scrollHeight:De}=_e;Oe+De>xe+de.clientHeight&&(de.scrollTop=Oe+De-de.clientHeight),Oe<xe&&(de.scrollTop=Oe),g.value=Z,(te=(H=c.value)==null?void 0:H.ref)==null||te.setAttribute("aria-activedescendant",`${x.value}-item-${g.value}`)},ve=()=>{const Z=u.value.querySelector(`.${l.be("suggestion","wrap")}`),H=Z.querySelectorAll(`.${l.be("suggestion","list")} li`);return[Z,H]},he=Py(h,()=>{var Z;(Z=d.value)!=null&&Z.isFocusInsideContent()||T.value&&K()}),ce=Z=>{switch(on(Z)){case Te.up:Z.preventDefault(),ne(g.value-1);break;case Te.down:Z.preventDefault(),ne(g.value+1);break;case Te.enter:case Te.numpadEnter:Z.preventDefault(),G();break;case Te.tab:K();break;case Te.esc:Q(Z);break;case Te.home:Z.preventDefault(),ne(0);break;case Te.end:Z.preventDefault(),ne(m.value.length-1);break;case Te.pageUp:Z.preventDefault(),ne(Math.max(0,g.value-10));break;case Te.pageDown:Z.preventDefault(),ne(Math.min(m.value.length-1,g.value+10));break}};return Xt(()=>{he==null||he()}),xt(()=>{var Z;const H=(Z=c.value)==null?void 0:Z.ref;H&&([{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:te,value:de})=>H.setAttribute(te,de)),p=H.hasAttribute("readonly"))}),t({highlightedIndex:g,activated:_,loading:C,inputRef:c,popperRef:d,suggestions:m,handleSelect:fe,handleKeyEnter:G,focus:ee,blur:ae,close:K,highlight:ne,getData:O}),(Z,H)=>(S(),le(f(As),{ref_key:"popperRef",ref:d,visible:T.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[f(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:`${f(l).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:M,onHide:$},{content:X(()=>[A("div",{ref_key:"regionRef",ref:u,class:D([f(l).b("suggestion"),f(l).is("loading",R.value)]),style:Qe({[e.fitInputWidth?"width":"minWidth"]:b.value,outline:"none"}),role:"region"},[Z.$slots.header?(S(),P("div",{key:0,class:D(f(l).be("suggestion","header")),onClick:H[0]||(H[0]=it(()=>{},["stop"]))},[ue(Z.$slots,"header")],2)):ie("v-if",!0),j(f(vr),{id:f(x),tag:"ul","wrap-class":f(l).be("suggestion","wrap"),"view-class":f(l).be("suggestion","list"),role:"listbox"},{default:X(()=>[R.value?(S(),P("li",$Q,[ue(Z.$slots,"loading",{},()=>[j(f(Xe),{class:D(f(l).is("loading"))},{default:X(()=>[j(f(Ds))]),_:1},8,["class"])])])):(S(!0),P(Ve,{key:1},wt(m.value,(te,de)=>(S(),P("li",{id:`${f(x)}-item-${de}`,key:de,class:D({highlighted:g.value===de}),role:"option","aria-selected":g.value===de,onClick:be=>fe(te)},[ue(Z.$slots,"default",{item:te},()=>[Ke(me(te[e.valueKey]),1)])],10,DQ))),128))]),_:3},8,["id","wrap-class","view-class"]),Z.$slots.footer?(S(),P("div",{key:1,class:D(f(l).be("suggestion","footer")),onClick:H[1]||(H[1]=it(()=>{},["stop"]))},[ue(Z.$slots,"footer")],2)):ie("v-if",!0)],6)]),default:X(()=>[A("div",{ref_key:"listboxRef",ref:h,class:D([f(l).b(),Z.$attrs.class]),style:Qe(k.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":T.value,"aria-owns":f(x)},[j(f(ua),_t({ref_key:"inputRef",ref:c},_t(o.value,Z.$attrs),{"model-value":e.modelValue,disabled:f(i),onInput:J,onChange:N,onFocus:L,onBlur:V,onClear:z,onKeydown:ce,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,NQ)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}});const BQ=ht(FQ),VQ=Me({size:{type:[Number,String],values:hr,validator:e=>nt(e)},shape:{type:String,values:["circle","square"]},icon:{type:nn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:re(String),default:"cover"}}),zQ={error:e=>e instanceof Event},wk=Symbol("avatarGroupContextKey"),HQ=["src","alt","srcset"];var _k=W({name:"ElAvatar",__name:"avatar",props:VQ,emits:zQ,setup(e,{emit:t}){const n=e,s=t,a=We(wk,void 0),o=ke("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 Ye(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(()=>nt(i.value)?o.cssVarBlock({size:Rn(i.value)}):void 0),d=E(()=>({objectFit:n.fit}));ge(()=>[n.src,n.srcSet],()=>r.value=!1);function h(p){r.value=!0,s("error",p)}return(p,v)=>(S(),P("span",{class:D(c.value),style:Qe(u.value)},[(e.src||e.srcSet)&&!r.value?(S(),P("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:Qe(d.value),onError:h},null,44,HQ)):e.icon?(S(),le(f(Xe),{key:1},{default:X(()=>[(S(),le(yt(e.icon)))]),_:1})):ue(p.$slots,"default",{key:2})],6))}});const WQ={size:{type:re([Number,String]),values:hr,validator:e=>nt(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:ti,default:"top"},popperClass:sn.popperClass,popperStyle:sn.popperStyle,collapseClass:String,collapseStyle:{type:re([String,Array,Object])}};var Ck=W({name:"ElAvatarGroup",props:WQ,setup(e,{slots:t}){const n=ke("avatar-group");return Mt(wk,Kt({size:Qt(e,"size"),shape:Qt(e,"shape")})),()=>{var s,a;const o=co((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(j(As,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>j(_k,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[Ke("+ "),l.length]}),content:()=>j("div",{class:n.e("collapse-avatars")},[l.map((c,u)=>{var d;return dn(c)?qr(c,{key:(d=c.key)!=null?d:u}):c})])}))}return j("div",{class:n.b()},[r])}}});const jQ=ht(_k,{AvatarGroup:Ck}),KQ=Tn(Ck),UQ={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},qQ={click:e=>e instanceof MouseEvent},GQ=(e,t,n)=>{const s=pn(),a=pn(),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=Cx(r,300,!0);return en(a,"scroll",l),xt(()=>{var c;a.value=document,s.value=document.documentElement,e.target&&(s.value=(c=document.querySelector(e.target))!=null?c:void 0,s.value||Zn(n,`target does not exist: ${e.target}`),a.value=s.value),r()}),{visible:o,handleClick:i}},Sk="ElBacktop";var YQ=W({name:Sk,__name:"backtop",props:UQ,emits:qQ,setup(e,{emit:t}){const n=e,s=t,a=ke("backtop"),{handleClick:o,visible:r}=GQ(n,s,Sk),i=E(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(l,c)=>(S(),le(ys,{name:`${f(a).namespace.value}-fade-in`},{default:X(()=>[f(r)?(S(),P("div",{key:0,style:Qe(i.value),class:D(f(a).b()),onClick:c[0]||(c[0]=it((...u)=>f(o)&&f(o)(...u),["stop"]))},[ue(l.$slots,"default",{},()=>[j(f(Xe),{class:D(f(a).e("icon"))},{default:X(()=>[j(f(Kx))]),_:1},8,["class"])])],6)):ie("v-if",!0)]),_:3},8,["name"]))}});const XQ=ht(YQ),JQ=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 ZQ=W({name:"ElBadge",__name:"badge",props:JQ,setup(e,{expose:t}){const n=e,s=ke("badge"),a=E(()=>n.isDot?"":nt(n.value)&&nt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),o=E(()=>{var r;return[{backgroundColor:n.color,marginRight:Rn(-n.offset[0]),marginTop:Rn(n.offset[1])},(r=n.badgeStyle)!=null?r:{}]});return t({content:a}),(r,i)=>(S(),P("div",{class:D(f(s).b())},[ue(r.$slots,"default"),j(ys,{name:`${f(s).namespace.value}-zoom-in-center`,persisted:""},{default:X(()=>[bt(A("sup",{class:D([f(s).e("content"),f(s).em("content",e.type),f(s).is("fixed",!!r.$slots.default),f(s).is("dot",e.isDot),f(s).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:Qe(o.value)},[ue(r.$slots,"content",{value:a.value},()=>[Ke(me(a.value),1)])],6),[[Vt,!e.hidden&&(a.value||e.isDot||r.$slots.content)]])]),_:3},8,["name"])],2))}});const xk=ht(ZQ),QQ=Me({separator:{type:String,default:"/"},separatorIcon:{type:nn}}),kk=Symbol("breadcrumbKey"),eee=["aria-label"];var tee=W({name:"ElBreadcrumb",__name:"breadcrumb",props:QQ,setup(e){const{t}=Ot(),n=e,s=ke("breadcrumb"),a=F();return Mt(kk,n),xt(()=>{const o=a.value.querySelectorAll(`.${s.e("item")}`);o.length&&o[o.length-1].setAttribute("aria-current","page")}),(o,r)=>(S(),P("div",{ref_key:"breadcrumb",ref:a,class:D(f(s).b()),"aria-label":f(t)("el.breadcrumb.label"),role:"navigation"},[ue(o.$slots,"default")],10,eee))}});const nee=Me({to:{type:re([String,Object]),default:""},replace:Boolean});var Ek=W({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:nee,setup(e){const t=e,n=Ct(),s=We(kk,void 0),a=ke("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(),P("span",{class:D(f(a).e("item"))},[A("span",{class:D([f(a).e("inner"),f(a).is("link",!!e.to)]),role:"link",onClick:r},[ue(i.$slots,"default")],2),(c=f(s))!=null&&c.separatorIcon?(S(),le(f(Xe),{key:0,class:D(f(a).e("separator"))},{default:X(()=>[(S(),le(yt(f(s).separatorIcon)))]),_:1},8,["class"])):(S(),P("span",{key:1,class:D(f(a).e("separator")),role:"presentation"},me((u=f(s))==null?void 0:u.separator),3))],2)}}});const see=ht(tee,{BreadcrumbItem:Ek}),aee=Tn(Ek),h3=["default","primary","success","warning","info","danger","text",""],p3=Me({size:cs,disabled:{type:Boolean,default:void 0},type:{type:String,values:h3,default:""},icon:{type:nn},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:nn,default:()=>Ds},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"}}),oee={click:e=>e instanceof MouseEvent},Ak=Symbol("buttonGroupContextKey"),ri=({from:e,replacement:t,scope:n,version:s,ref:a,type:o="API"},r)=>{ge(()=>f(r),i=>{},{immediate:!0})},ree=(e,t)=>{ri({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=We(Ak,void 0),s=Tf("button"),{form:a}=Es(),o=ss(E(()=>n==null?void 0:n.size)),r=On(),i=F(),l=Wn(),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,_,w;return(w=(_=e.autoInsertSpace)!=null?_:(b=s.value)==null?void 0:b.autoInsertSpace)!=null?w:!1}),d=E(()=>{var b,_,w;return(w=(_=e.plain)!=null?_:(b=s.value)==null?void 0:b.plain)!=null?w:!1}),h=E(()=>{var b,_,w;return(w=(_=e.round)!=null?_:(b=s.value)==null?void 0:b.round)!=null?w:!1}),p=E(()=>{var b,_,w;return(w=(_=e.text)!=null?_:(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 _=(b=l.default)==null?void 0:b.call(l);if(u.value&&(_==null?void 0:_.length)===1){const w=_[0];if((w==null?void 0:w.type)===mf){const C=w.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(C.trim())}}return!1});return{_disabled:r,_size:o,_type:c,_ref:i,_props:v,_plain:d,_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 qs(e,t){iee(e)&&(e="100%");var n=lee(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 Fg(e){return Math.min(1,Math.max(0,e))}function iee(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function lee(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Tk(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bg(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Au(e){return e.length===1?"0"+e:String(e)}function cee(e,t,n){return{r:qs(e,255)*255,g:qs(t,255)*255,b:qs(n,255)*255}}function Mk(e,t,n){e=qs(e,255),t=qs(t,255),n=qs(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 v3(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 uee(e,t,n){var s,a,o;if(e=qs(e,360),t=qs(t,100),n=qs(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=v3(i,r,e+1/3),a=v3(i,r,e),o=v3(i,r,e-1/3)}return{r:s*255,g:a*255,b:o*255}}function Pk(e,t,n){e=qs(e,255),t=qs(t,255),n=qs(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 dee(e,t,n){e=qs(e,360)*6,t=qs(t,100),n=qs(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],d=[o,o,i,n,n,r][l];return{r:c*255,g:u*255,b:d*255}}function Rk(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 fee(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(hee(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 hee(e){return Math.round(parseFloat(e)*255).toString(16)}function Ik(e){return ho(e)/255}function ho(e){return parseInt(e,16)}function pee(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var m3={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 vee(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=bee(e)),typeof e=="object"&&(nl(e.r)&&nl(e.g)&&nl(e.b)?(t=cee(e.r,e.g,e.b),r=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):nl(e.h)&&nl(e.s)&&nl(e.v)?(s=Bg(e.s),a=Bg(e.v),t=dee(e.h,s,a),r=!0,i="hsv"):nl(e.h)&&nl(e.s)&&nl(e.l)&&(s=Bg(e.s),o=Bg(e.l),t=uee(e.h,s,o),r=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Tk(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 mee="[-\\+]?\\d+%?",gee="[-\\+]?\\d*\\.\\d+%?",rc="(?:".concat(gee,")|(?:").concat(mee,")"),g3="[\\s|\\(]+(".concat(rc,")[,|\\s]+(").concat(rc,")[,|\\s]+(").concat(rc,")\\s*\\)?"),b3="[\\s|\\(]+(".concat(rc,")[,|\\s]+(").concat(rc,")[,|\\s]+(").concat(rc,")[,|\\s]+(").concat(rc,")\\s*\\)?"),mr={CSS_UNIT:new RegExp(rc),rgb:new RegExp("rgb"+g3),rgba:new RegExp("rgba"+b3),hsl:new RegExp("hsl"+g3),hsla:new RegExp("hsla"+b3),hsv:new RegExp("hsv"+g3),hsva:new RegExp("hsva"+b3),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 bee(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(m3[e])e=m3[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=mr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=mr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=mr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=mr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=mr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=mr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=mr.hex8.exec(e),n?{r:ho(n[1]),g:ho(n[2]),b:ho(n[3]),a:Ik(n[4]),format:t?"name":"hex8"}:(n=mr.hex6.exec(e),n?{r:ho(n[1]),g:ho(n[2]),b:ho(n[3]),format:t?"name":"hex"}:(n=mr.hex4.exec(e),n?{r:ho(n[1]+n[1]),g:ho(n[2]+n[2]),b:ho(n[3]+n[3]),a:Ik(n[4]+n[4]),format:t?"name":"hex8"}:(n=mr.hex3.exec(e),n?{r:ho(n[1]+n[1]),g:ho(n[2]+n[2]),b:ho(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function nl(e){return!!mr.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=pee(t)),this.originalInput=t;var a=vee(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=Tk(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Pk(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Pk(this.r,this.g,this.b),n=Math.round(t.h*360),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=Mk(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=Mk(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),Rk(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),fee(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(qs(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(qs(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="#"+Rk(this.r,this.g,this.b,!1),n=0,s=Object.entries(m3);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=Fg(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=Fg(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=Fg(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=Fg(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 ic(e,t=20){return e.mix("#141414",t).toString()}function yee(e){const t=On(),n=ke("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():ic(r,20);if(e.plain)s=n.cssVarBlock({"bg-color":e.dark?ic(r,90):r.tint(90).toString(),"text-color":a,"border-color":e.dark?ic(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?ic(r,90):r.tint(90).toString(),s[n.cssVarBlockName("disabled-text-color")]=e.dark?ic(r,50):r.tint(50).toString(),s[n.cssVarBlockName("disabled-border-color")]=e.dark?ic(r,80):r.tint(80).toString());else{const l=e.dark?ic(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?ic(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 wee=W({name:"ElButton",__name:"button",props:p3,emits:oee,setup(e,{expose:t,emit:n}){const s=e,a=n,o=yee(s),r=ke("button"),{_ref:i,_size:l,_type:c,_disabled:u,_props:d,_plain:h,_round:p,_text:v,shouldAddSpace:m,handleClick:g}=ree(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}),(_,w)=>(S(),le(yt(e.tag),_t({ref_key:"_ref",ref:i},f(d),{class:b.value,style:f(o),onClick:f(g)}),{default:X(()=>[e.loading?(S(),P(Ve,{key:0},[_.$slots.loading?ue(_.$slots,"loading",{key:0}):(S(),le(f(Xe),{key:1,class:D(f(r).is("loading"))},{default:X(()=>[(S(),le(yt(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||_.$slots.icon?(S(),le(f(Xe),{key:1},{default:X(()=>[e.icon?(S(),le(yt(e.icon),{key:0})):ue(_.$slots,"icon",{key:1})]),_:3})):ie("v-if",!0),_.$slots.default?(S(),P("span",{key:2,class:D({[f(r).em("text","expand")]:f(m)})},[ue(_.$slots,"default")],2)):ie("v-if",!0)]),_:3},16,["class","style","onClick"]))}});const _ee={size:p3.size,type:p3.type,direction:{type:re(String),values:["horizontal","vertical"],default:"horizontal"}};var Ok=W({name:"ElButtonGroup",__name:"button-group",props:_ee,setup(e){const t=e;Mt(Ak,Kt({size:Qt(t,"size"),type:Qt(t,"type")}));const n=ke("button");return(s,a)=>(S(),P("div",{class:D([f(n).b("group"),f(n).bm("group",t.direction)])},[ue(s.$slots,"default")],2))}});const _s=ht(wee,{ButtonGroup:Ok}),Lk=Tn(Ok),Cee=e=>Ae(e)&&e.length===2&&e.every(t=>Gl(t)),See=Me({modelValue:{type:Date},range:{type:re(Array),validator:Cee},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:re(Function)}}),xee={[lt]:e=>Gl(e),[ns]:e=>Gl(e)};var sl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nk={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){var n=1e3,s=6e4,a=36e5,o="millisecond",r="second",i="minute",l="hour",c="day",u="week",d="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,_={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(U){var J=["th","st","nd","rd"],Y=U%100;return"["+U+(J[(Y-20)%10]||J[Y]||J[0])+"]"}},w=function(U,J,Y){var N=String(U);return!N||N.length>=J?U:""+Array(J+1-N.length).join(Y)+U},C={s:w,z:function(U){var J=-U.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 U(J,Y){if(J.date()<Y.date())return-U(Y,J);var N=12*(Y.year()-J.year())+(Y.month()-J.month()),L=J.clone().add(N,d),V=Y-L<0,z=J.clone().add(N+(V?-1:1),d);return+(-(N+(Y-L)/(V?L-z:z-L))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:d,y:p,w:u,d:c,D:v,h:l,m:i,s:r,ms:o,Q:h}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},x="en",k={};k[x]=_;var T="$isDayjsObject",R=function(U){return U instanceof O||!(!U||!U[T])},I=function U(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 U(z[0])}else{var G=J.name;k[G]=J,L=G}return!N&&L&&(x=L),L||!N&&x},M=function(U,J){if(R(U))return U.clone();var Y=typeof J=="object"?J:{};return Y.date=U,Y.args=arguments,new O(Y)},$=C;$.l=I,$.i=R,$.w=function(U,J){return M(U,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var O=function(){function U(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[T]=!0}var J=U.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=M(Y);return this.startOf(N)<=L&&L<=this.endOf(N)},J.isAfter=function(Y,N){return M(Y)<this.startOf(N)},J.isBefore=function(Y,N){return this.endOf(N)<M(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,ce){var Z=$.w(L.$u?Date.UTC(L.$y,ce,he):new Date(L.$y,ce,he),L);return V?Z:Z.endOf(c)},Q=function(he,ce){return $.w(L.toDate()[he].apply(L.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(ce)),L)},K=this.$W,ee=this.$M,ae=this.$D,fe="set"+(this.$u?"UTC":"");switch(z){case p:return V?G(1,0):G(31,11);case d:return V?G(1,ee):G(0,ee+1);case u:var ne=this.$locale().weekStart||0,ve=(K<ne?K+7:K)-ne;return G(V?ae-ve:ae+(6-ve),ee);case c:case v:return Q(fe+"Hours",0);case l:return Q(fe+"Minutes",1);case i:return Q(fe+"Seconds",2);case r:return Q(fe+"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[d]=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===d||V===p){var K=this.clone().set(v,1);K.$d[G](Q),K.init(),this.$d=K.set(v,Math.min(this.$D,K.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 ae=M(V);return $.w(ae.date(ae.date()+Math.round(ee*Y)),V)};if(z===d)return this.set(d,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,K=this.$d.getTime()+Y*Q;return $.w(K,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,K=this.$M,ee=L.weekdays,ae=L.months,fe=L.meridiem,ne=function(ce,Z,H,te){return ce&&(ce[Z]||ce(N,V))||H[Z].slice(0,te)},ve=function(ce){return $.s(G%12||12,ce,"0")},he=fe||function(ce,Z,H){var te=ce<12?"AM":"PM";return H?te.toLowerCase():te};return V.replace(b,function(ce,Z){return Z||function(H){switch(H){case"YY":return String(N.$y).slice(-2);case"YYYY":return $.s(N.$y,4,"0");case"M":return K+1;case"MM":return $.s(K+1,2,"0");case"MMM":return ne(L.monthsShort,K,ae,3);case"MMMM":return ne(ae,K);case"D":return N.$D;case"DD":return $.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return ne(L.weekdaysMin,N.$W,ee,2);case"ddd":return ne(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 ve(1);case"hh":return ve(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}(ce)||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=M(Y),K=(Q.utcOffset()-this.utcOffset())*s,ee=this-Q,ae=function(){return $.m(z,Q)};switch(G){case p:V=ae()/12;break;case d:V=ae();break;case h:V=ae()/3;break;case u:V=(ee-K)/6048e5;break;case c:V=(ee-K)/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(d).$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()},U}(),B=O.prototype;return M.prototype=B,[["$ms",o],["$s",r],["$m",i],["$H",l],["$W",c],["$M",d],["$y",p],["$D",v]].forEach(function(U){B[U[1]]=function(J){return this.$g(J,U[0],U[1])}}),M.extend=function(U,J){return U.$i||(U(J,O,M),U.$i=!0),M},M.locale=I,M.isDayjs=R,M.unix=function(U){return M(1e3*U)},M.en=k[x],M.Ls=k,M.p={},M})})(Nk);var kee=Nk.exports;const pt=al(kee),y3=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],lc=e=>Array.from(Array.from({length:e}).keys()),$k=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Dk=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Fk=function(e,t){const n=Gl(e),s=Gl(t);return n&&s?e.getTime()===t.getTime():!n&&!s?e===t:!1},Bk=function(e,t){const n=Ae(e),s=Ae(t);return n&&s?e.length!==t.length?!1:e.every((a,o)=>Fk(a,t[o])):!n&&!s?Fk(e,t):!1},Vk=function(e,t,n){const s=Ia(t)||t==="x"?pt(e).locale(n):pt(e,t).locale(n);return s.isValid()?s:void 0},zk=function(e,t,n){return Ia(t)?e:t==="x"?+e:pt(e).locale(n).format(t)},w3=(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},Vg=e=>Ae(e)?e.map(t=>t.toDate()):e.toDate(),Eee=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return lc(t).map((s,a)=>n-(t-a-1))},Aee=e=>{const t=e.daysInMonth();return lc(t).map((n,s)=>s+1)},Tee=e=>lc(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Mee=Me({selectedDay:{type:re(Object)},range:{type:re(Array)},date:{type:re(Object),required:!0},hideHeader:{type:Boolean}}),Pee={pick:e=>dt(e)};var Hk={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){return function(n,s,a){var o=s.prototype,r=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,p,v,m){var g=d.name?d:d.$locale(),b=r(g[h]),_=r(g[p]),w=b||_.map(function(x){return x.slice(0,v)});if(!m)return w;var C=g.weekStart;return w.map(function(x,k){return w[(k+(C||0))%7]})},l=function(){return a.Ls[a.locale()]},c=function(d,h){return d.formats[h]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,m,g){return m||g.slice(1)})}(d.formats[h.toUpperCase()])},u=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return u.bind(this)()},a.localeData=function(){var d=l();return{firstDayOfWeek:function(){return d.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(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return i(l(),"months")},a.monthsShort=function(){return i(l(),"monthsShort","months",3)},a.weekdays=function(d){return i(l(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(l(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(l(),"weekdaysMin","weekdays",2,d)}}})})(Hk);var Ree=Hk.exports;const Wk=al(Ree),Iee=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],_3=["sun","mon","tue","wed","thu","fri","sat"],Oee=(e,t)=>{pt.extend(Wk);const n=pt.localeData().firstDayOfWeek(),{t:s,lang:a}=Ot(),o=pt().locale(a.value),r=E(()=>!!e.range&&!!e.range.length),i=E(()=>{let h=[];if(r.value){const[p,v]=e.range,m=lc(v.date()-p.date()+1).map(_=>({text:p.date()+_,type:"current"}));let g=m.length%7;g=g===0?0:7-g;const b=lc(g).map((_,w)=>({text:w+1,type:"next"}));h=m.concat(b)}else{const p=e.date.startOf("month").day(),v=Eee(e.date,(p-n+7)%7).map(_=>({text:_,type:"prev"})),m=Aee(e.date).map(_=>({text:_,type:"current"}));h=[...v,...m];const g=7-(h.length%7||7),b=lc(g).map((_,w)=>({text:w+1,type:"next"}));h=h.concat(b)}return Tee(h)}),l=E(()=>{const h=n;return h===0?_3.map(p=>s(`el.datepicker.weeks.${p}`)):_3.slice(h).concat(_3.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()}}}},Lee={key:0},Nee=["onClick"];var jk=W({name:"DateTable",__name:"date-table",props:Mee,emits:Pee,setup(e,{expose:t,emit:n}){const s=e,a=n,{isInRange:o,now:r,rows:i,weekDays:l,getFormattedDate:c,handlePickDay:u,getSlotData:d}=Oee(s,a),h=ke("calendar-table"),p=ke("calendar-day"),v=({text:m,type:g})=>{const b=[g];if(g==="current"){const _=c(m,g);_.isSame(s.selectedDay,"day")&&b.push(p.is("selected")),_.isSame(r,"day")&&b.push(p.is("today"))}return b};return t({getFormattedDate:c}),(m,g)=>(S(),P("table",{class:D([f(h).b(),f(h).is("range",f(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?ie("v-if",!0):(S(),P("thead",Lee,[A("tr",null,[(S(!0),P(Ve,null,wt(f(l),b=>(S(),P("th",{key:b,scope:"col"},me(b),1))),128))])])),A("tbody",null,[(S(!0),P(Ve,null,wt(f(i),(b,_)=>(S(),P("tr",{key:_,class:D({[f(h).e("row")]:!0,[f(h).em("row","hide-border")]:_===0&&e.hideHeader})},[(S(!0),P(Ve,null,wt(b,(w,C)=>(S(),P("td",{key:C,class:D(v(w)),onClick:x=>f(u)(w)},[A("div",{class:D(f(p).b())},[ue(m.$slots,"date-cell",{data:f(d)(w)},()=>[A("span",null,me(w.text),1)])],2)],10,Nee))),128))],2))),128))])],2))}});const $ee=(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]]},Dee=(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]]},Fee=(e,t,n)=>{const{lang:s}=Ot(),a=F(),o=pt().locale(s.value),r=E({get(){return e.modelValue?l.value:a.value},set(b){if(!b)return;a.value=b;const _=b.toDate();t(ns,_),t(lt,_)}}),i=E(()=>{if(!e.range||!Ae(e.range)||e.range.length!==2||e.range.some(C=>!Gl(C)))return[];const b=e.range.map(C=>pt(C).locale(s.value)),[_,w]=b;return _.isAfter(w)?[]:_.isSame(w,"month")?p(_,w):_.add(1,"month").month()!==w.month()?[]:p(_,w)}),l=E(()=>e.modelValue?pt(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)),d=E(()=>l.value.subtract(1,"year").date(1)),h=E(()=>l.value.add(1,"year").date(1)),p=(b,_)=>{const w=b.startOf("week"),C=_.endOf("week"),x=w.get("month"),k=C.get("month");return x===k?[[w,C]]:(x+1)%12===k?$ee(w,C):x+2===k||(x+1)%11===k?Dee(w,C):[]},v=b=>{r.value=b},m=b=>{const w={"prev-month":c.value,"next-month":u.value,"prev-year":d.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)}}},Bee=Me({date:{type:re(Object),required:!0},formatter:{type:re(Function)}}),Vee={"date-change":e=>dt(e)||Ye(e)},ol=Me({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:hr},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),zee={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Hee=["aria-label"],Wee=["aria-label"];var jee=W({name:"ElTag",__name:"tag",props:ol,emits:zee,setup(e,{emit:t}){const n=e,s=t,a=ss(),{t:o}=Ot(),r=ke("tag"),i=E(()=>{const{type:d,hit:h,effect:p,closable:v,round:m}=n;return[r.b(),r.is("closable",v),r.m(d||"primary"),r.m(a.value),r.m(p),r.is("hit",h),r.is("round",m)]}),l=d=>{s("close",d)},c=d=>{s("click",d)},u=d=>{var h,p,v;(v=(p=(h=d==null?void 0:d.component)==null?void 0:h.subTree)==null?void 0:p.component)!=null&&v.bum&&(d.component.subTree.component.bum=null)};return(d,h)=>e.disableTransitions?(S(),P("span",{key:0,class:D(i.value),style:Qe({backgroundColor:e.color}),onClick:c},[A("span",{class:D(f(r).e("content"))},[ue(d.$slots,"default")],2),e.closable?(S(),P("button",{key:0,"aria-label":f(o)("el.tag.close"),class:D(f(r).e("close")),type:"button",onClick:it(l,["stop"])},[j(f(Xe),null,{default:X(()=>[j(f(qa))]),_:1})],10,Hee)):ie("v-if",!0)],6)):(S(),le(ys,{key:1,name:`${f(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:u},{default:X(()=>[A("span",{class:D(i.value),style:Qe({backgroundColor:e.color}),onClick:c},[A("span",{class:D(f(r).e("content"))},[ue(d.$slots,"default")],2),e.closable?(S(),P("button",{key:0,"aria-label":f(o)("el.tag.close"),class:D(f(r).e("close")),type:"button",onClick:it(l,["stop"])},[j(f(Xe),null,{default:X(()=>[j(f(qa))]),_:1})],10,Wee)):ie("v-if",!0)],6)]),_:3},8,["name"]))}});const rl=ht(jee),zg={label:"label",value:"value",disabled:"disabled",options:"options"};function Vp(e){const t=F({...zg,...e.props});let n={...e.props};return ge(()=>e.props,i=>{Dn(i,n)||(t.value={...zg,...i},n={...i})},{deep:!0}),{aliasProps:t,getLabel:i=>Jn(i,t.value.label),getValue:i=>Jn(i,t.value.value),getDisabled:i=>Jn(i,t.value.disabled),getOptions:i=>Jn(i,t.value.options)}}const Kk=Symbol("ElSelectGroup"),zp=Symbol("ElSelect"),C3="ElOption",Kee=Me({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),S3=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),cc=e=>L0(e);function Uee(e,t){const n=We(zp);n||Zn(C3,"usage: <el-select><el-option /></el-select/>");const s=We(Kk,{disabled:!1}),a=E(()=>u(ks(n.props.modelValue),e.value)),o=E(()=>{var p;if(n.props.multiple){const v=ks((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:dt(e.value)?"":e.value}),i=E(()=>e.value||e.label||""),l=E(()=>e.disabled||t.groupDisabled||o.value),c=Ct(),u=(p=[],v)=>{if(dt(e.value)){const m=n.props.valueKey;return p&&p.some(g=>un(Jn(g,m))===Jn(v,m))}else return p&&p.includes(v)},d=()=>{l.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=p=>{const v=new RegExp(S3(p),"i");t.visible=v.test(String(r.value))||e.created};return ge(()=>r.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ge(()=>e.value,(p,v)=>{const{remote:m,valueKey:g}=n.props;if((m?p!==v:!Dn(p,v))&&(n.onOptionDestroy(v,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!m){if(g&&dt(p)&&dt(v)&&p[g]===v[g])return;n.setSelected()}}),ge(()=>s.disabled,()=>{t.groupDisabled=s.disabled},{immediate:!0}),{select:n,currentLabel:r,currentValue:i,itemSelected:a,isDisabled:l,hoverItem:d,updateOption:h}}var qee=W({name:C3,componentName:C3,props:Kee,setup(e){const t=ke("select"),n=Fs(),s=E(()=>[t.be("dropdown","item"),t.is("disabled",f(i)),t.is("selected",f(r)),t.is("hovering",f(h))]),a=Kt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:r,isDisabled:i,select:l,hoverItem:c,updateOption:u}=Uee(e,a),{visible:d,hover:h}=bs(a),p=Ct().proxy;l.onOptionCreate(p),Xt(()=>{const m=p.value;Be(()=>{const{selected:g}=l.states,b=g.some(_=>_.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:d,hover:h,states:a,hoverItem:c,updateOption:u,selectOptionClick:v}}});const Gee=["id","aria-disabled","aria-selected"];function Yee(e,t,n,s,a,o){return bt((S(),P("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]=it((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ue(e.$slots,"default",{},()=>[A("span",null,me(e.currentLabel),1)])],42,Gee)),[[Vt,e.visible]])}var x3=us(qee,[["render",Yee]]);const Hg=11,Uk=2;var Xee=W({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=We(zp),t=ke("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-Uk}px`:o.value=""}return xt(()=>{r(),_n(e.selectRef,r)}),{ns:t,minWidth:o,popperClass:n,isMultiple:s,isFitInputWidth:a}}});function Jee(e,t,n,s,a,o){return S(),P("div",{class:D([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Qe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(S(),P("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(),P("div",{key:1,class:D(e.ns.be("dropdown","footer"))},[ue(e.$slots,"footer")],2)):ie("v-if",!0)],6)}var Zee=us(Xee,[["render",Jee]]);const Qee=(e,t)=>{const{t:n}=Ot(),s=Wn(),a=Fs(),o=ke("select"),r=ke("input"),i=Kt({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(),d=F(),h=F(),p=F(),v=F(),m=F(),g=F(),b=F(),_=F(),w=F(!1),C=F(),x=F(!1),{form:k,formItem:T}=Es(),{inputId:R}=fo(e,{formItemContext:T}),{valueOnClear:I,isEmptyValue:M}=_p(e),{isComposing:$,handleCompositionStart:O,handleCompositionUpdate:B,handleCompositionEnd:U}=Fp({afterComposition:Re=>Bt(Re)}),J=On(),{wrapperRef:Y,isFocused:N,handleBlur:L}=tl(h,{disabled:J,afterFocus(){e.automaticDropdown&&!w.value&&(w.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(Re){var ct,Ft;return((ct=u.value)==null?void 0:ct.isFocusInsideContent(Re))||((Ft=d.value)==null?void 0:Ft.isFocusInsideContent(Re))},afterBlur(){var Re;w.value=!1,i.menuVisibleOnFocus=!1,e.validateEvent&&((Re=T==null?void 0:T.validate)==null||Re.call(T,"blur").catch(ct=>void 0))}}),V=E(()=>Ae(e.modelValue)?e.modelValue.length>0:!M(e.modelValue)),z=E(()=>{var Re;return(Re=k==null?void 0:k.statusIcon)!=null?Re:!1}),G=E(()=>e.clearable&&!J.value&&V.value&&(N.value||i.inputHovering)),Q=E(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),K=E(()=>o.is("reverse",!!(Q.value&&w.value))),ee=E(()=>(T==null?void 0:T.validateState)||""),ae=E(()=>ee.value&&Eg[ee.value]),fe=E(()=>e.remote?e.debounce:0),ne=E(()=>e.remote&&!i.inputValue&&i.options.size===0),ve=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(()=>ce.value.filter(Re=>Re.visible).length),ce=E(()=>{const Re=Array.from(i.options.values()),ct=[];return i.optionValues.forEach(Ft=>{const En=Re.findIndex(Un=>Un.value===Ft);En>-1&&ct.push(Re[En])}),ct.length>=Re.length?ct:Re}),Z=E(()=>Array.from(i.cachedOptions.values())),H=E(()=>{const Re=ce.value.filter(ct=>!ct.created).some(ct=>ct.currentLabel===i.inputValue);return e.filterable&&e.allowCreate&&i.inputValue!==""&&!Re}),te=()=>{e.filterable&&Ze(e.filterMethod)||e.filterable&&e.remote&&Ze(e.remoteMethod)||ce.value.forEach(Re=>{var ct;(ct=Re.updateOption)==null||ct.call(Re,i.inputValue)})},de=ss(),be=E(()=>["small"].includes(de.value)?"small":"default"),_e=E({get(){return w.value&&(e.loading||!ne.value||e.remote&&!!s.empty)&&(!x.value||!Ia(i.previousQuery))},set(Re){w.value=Re}}),xe=E(()=>{if(e.multiple&&!Dt(e.modelValue))return ks(e.modelValue).length===0&&!i.inputValue;const Re=Ae(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Dt(Re)?!i.inputValue:!0}),Oe=E(()=>{var Re;const ct=(Re=e.placeholder)!=null?Re:n("el.select.placeholder");return e.multiple||!V.value?ct:i.selectedLabel}),De=E(()=>vg?null:"mouseenter");ge(()=>e.modelValue,(Re,ct)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(i.inputValue="",Ne("")),Ie(),!Dn(Re,ct)&&e.validateEvent&&(T==null||T.validate("change").catch(Ft=>void 0))},{flush:"post",deep:!0}),ge(()=>w.value,Re=>{Re?Ne(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0,i.menuVisibleOnFocus=!1)}),ge(()=>i.options.entries(),()=>{Ut&&(Ie(),e.defaultFirstOption&&(e.filterable||e.remote)&&he.value&&Ce())},{flush:"post"}),ge([()=>i.hoveringIndex,ce],([Re])=>{nt(Re)&&Re>-1?C.value=ce.value[Re]||{}:C.value={},ce.value.forEach(ct=>{ct.hover=C.value===ct})}),ja(()=>{i.isBeforeHide||te()});const Ne=Re=>{i.previousQuery===Re||$.value||(i.previousQuery=Re,e.filterable&&Ze(e.filterMethod)?e.filterMethod(Re):e.filterable&&e.remote&&Ze(e.remoteMethod)&&e.remoteMethod(Re),e.defaultFirstOption&&(e.filterable||e.remote)&&he.value?Be(Ce):Be(ze))},Ce=()=>{const Re=ce.value.filter(Un=>Un.visible&&!Un.disabled&&!Un.states.groupDisabled),ct=Re.find(Un=>Un.created),Ft=Re[0],En=ce.value.map(Un=>Un.value);i.hoveringIndex=Ge(En,ct||Ft)},Ie=()=>{if(e.multiple)i.selectedLabel="";else{const ct=Ae(e.modelValue)?e.modelValue[0]:e.modelValue,Ft=Pe(ct);i.selectedLabel=Ft.currentLabel,i.selected=[Ft];return}const Re=[];Dt(e.modelValue)||ks(e.modelValue).forEach(ct=>{Re.push(Pe(ct))}),i.selected=Re},Pe=Re=>{let ct;const Ft=I0(Re);for(let xa=i.cachedOptions.size-1;xa>=0;xa--){const sa=Z.value[xa];if(Ft?Jn(sa.value,e.valueKey)===Jn(Re,e.valueKey):sa.value===Re){ct={index:ce.value.filter(Kl=>!Kl.created).indexOf(sa),value:Re,currentLabel:sa.currentLabel,get isDisabled(){return sa.isDisabled}};break}}if(ct)return ct;const En=Ft?Re.label:Re??"";return{index:-1,value:Re,currentLabel:En}},ze=()=>{const Re=i.selected.length;if(Re>0){const ct=i.selected[Re-1];i.hoveringIndex=ce.value.findIndex(Ft=>rt(ct)===rt(Ft))}else i.hoveringIndex=-1},Je=()=>{i.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},ot=()=>{i.collapseItemWidth=b.value.getBoundingClientRect().width},$e=()=>{var Re,ct;(ct=(Re=u.value)==null?void 0:Re.updatePopper)==null||ct.call(Re)},He=()=>{var Re,ct;(ct=(Re=d.value)==null?void 0:Re.updatePopper)==null||ct.call(Re)},et=()=>{i.inputValue.length>0&&!w.value&&(w.value=!0),Ne(i.inputValue)},Bt=Re=>{if(i.inputValue=Re.target.value,e.remote)x.value=!0,qt();else return et()},qt=bp(()=>{et(),x.value=!1},fe),st=Re=>{Dn(e.modelValue,Re)||t(Rt,Re)},vt=Re=>fx(Re,ct=>{const Ft=i.cachedOptions.get(ct);return!(Ft!=null&&Ft.disabled)&&!(Ft!=null&&Ft.states.groupDisabled)}),kt=Re=>{const ct=on(Re);if(e.multiple&&ct!==Te.delete&&Re.target.value.length<=0){const Ft=ks(e.modelValue).slice(),En=vt(Ft);if(En<0)return;const Un=Ft[En];Ft.splice(En,1),t(lt,Ft),st(Ft),t("remove-tag",Un)}},Se=(Re,ct)=>{const Ft=i.selected.indexOf(ct);if(Ft>-1&&!J.value){const En=ks(e.modelValue).slice();En.splice(Ft,1),t(lt,En),st(En),t("remove-tag",ct.value)}Re.stopPropagation(),tt()},Ue=Re=>{Re.stopPropagation();const ct=e.multiple?[]:I.value;if(e.multiple)for(const Ft of i.selected)Ft.isDisabled&&ct.push(Ft.value);t(lt,ct),st(ct),i.hoveringIndex=-1,w.value=!1,t("clear"),tt()},we=Re=>{var ct;if(e.multiple){const Ft=ks((ct=e.modelValue)!=null?ct:[]).slice(),En=Ge(Ft,Re);En>-1?Ft.splice(En,1):(e.multipleLimit<=0||Ft.length<e.multipleLimit)&&Ft.push(Re.value),t(lt,Ft),st(Ft),Re.created&&Ne(""),e.filterable&&!e.reserveKeyword&&(i.inputValue="")}else!Dn(e.modelValue,Re.value)&&t(lt,Re.value),st(Re.value),w.value=!1;tt(),!w.value&&Be(()=>{St(Re)})},Ge=(Re,ct)=>Dt(ct)?-1:dt(ct.value)?Re.findIndex(Ft=>Dn(Jn(Ft,e.valueKey),rt(ct))):Re.indexOf(ct.value),St=Re=>{var ct,Ft,En,Un,xa;const sa=Ae(Re)?Re[Re.length-1]:Re;let Ii=null;if(!Yn(sa==null?void 0:sa.value)){const Kl=ce.value.filter(x0=>x0.value===sa.value);Kl.length>0&&(Ii=Kl[0].$el)}if(u.value&&Ii){const Kl=(Un=(En=(Ft=(ct=u.value)==null?void 0:ct.popperRef)==null?void 0:Ft.contentRef)==null?void 0:En.querySelector)==null?void 0:Un.call(En,`.${o.be("dropdown","wrap")}`);Kl&&Ny(Kl,Ii)}(xa=_.value)==null||xa.handleScroll()},Zt=Re=>{i.options.set(Re.value,Re),i.cachedOptions.set(Re.value,Re)},Sn=(Re,ct)=>{i.options.get(Re)===ct&&i.options.delete(Re)},kn=E(()=>{var Re,ct;return(ct=(Re=u.value)==null?void 0:Re.popperRef)==null?void 0:ct.contentRef}),Fe=()=>{i.isBeforeHide=!1,Be(()=>{var Re;(Re=_.value)==null||Re.update(),St(i.selected)})},tt=()=>{var Re;(Re=h.value)==null||Re.focus()},ft=()=>{var Re;if(w.value){w.value=!1,Be(()=>{var ct;return(ct=h.value)==null?void 0:ct.blur()});return}(Re=h.value)==null||Re.blur()},wn=Re=>{Ue(Re)},Ee=Re=>{if(w.value=!1,N.value){const ct=new FocusEvent("blur",Re);Be(()=>L(ct))}},pe=()=>{i.inputValue.length>0?i.inputValue="":w.value=!1},ye=Re=>{var ct;J.value||e.filterable&&w.value&&Re&&!((ct=v.value)!=null&&ct.contains(Re.target))||(vg&&(i.inputHovering=!0),i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:w.value=!w.value)},je=()=>{if(!w.value)ye();else{const Re=ce.value[i.hoveringIndex];Re&&!Re.isDisabled&&we(Re)}},rt=Re=>dt(Re.value)?Jn(Re.value,e.valueKey):Re.value,mt=E(()=>ce.value.filter(Re=>Re.visible).every(Re=>Re.isDisabled)),zt=E(()=>e.multiple?e.collapseTags?i.selected.slice(0,e.maxCollapseTags):i.selected:[]),Vn=E(()=>e.multiple?e.collapseTags?i.selected.slice(e.maxCollapseTags):[]:[]),bn=Re=>{if(!w.value){w.value=!0;return}if(!(i.options.size===0||he.value===0||$.value)&&!mt.value){Re==="next"?(i.hoveringIndex++,i.hoveringIndex===i.options.size&&(i.hoveringIndex=0)):Re==="prev"&&(i.hoveringIndex--,i.hoveringIndex<0&&(i.hoveringIndex=i.options.size-1));const ct=ce.value[i.hoveringIndex];(ct.isDisabled||!ct.visible)&&bn(Re),Be(()=>St(C.value))}},It=(Re,ct,Ft,En)=>{for(let Un=ct;Un>=0&&Un<En;Un+=Ft){const xa=Re[Un];if(!(xa!=null&&xa.isDisabled)&&(xa!=null&&xa.visible))return Un}return null},is=(Re,ct)=>{var Ft;const En=i.options.size;if(En===0)return;const Un=wu(Re,0,En-1),xa=ce.value,sa=ct==="up"?-1:1,Ii=(Ft=It(xa,Un,sa,En))!=null?Ft:It(xa,Un-sa,-sa,En);Ii!=null&&(i.hoveringIndex=Ii,Be(()=>St(C.value)))},ms=Re=>{const ct=on(Re);let Ft=!0;switch(ct){case Te.up:bn("prev");break;case Te.down:bn("next");break;case Te.enter:case Te.numpadEnter:$.value||je();break;case Te.esc:pe();break;case Te.backspace:Ft=!1,kt(Re);return;case Te.home:if(!w.value)return;is(0,"down");break;case Te.end:if(!w.value)return;is(i.options.size-1,"up");break;case Te.pageUp:if(!w.value)return;is(i.hoveringIndex-10,"up");break;case Te.pageDown:if(!w.value)return;is(i.hoveringIndex+10,"down");break;default:Ft=!1;break}Ft&&(Re.preventDefault(),Re.stopPropagation())},jl=()=>{if(!c.value)return 0;const Re=window.getComputedStyle(c.value);return Number.parseFloat(Re.gap||"6px")},nu=E(()=>{const Re=jl(),ct=e.filterable?Re+Hg:0;return{maxWidth:`${b.value&&e.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-Re-ct:i.selectionWidth-ct}px`}}),nf=E(()=>({maxWidth:`${i.selectionWidth}px`})),sf=Re=>{t("popup-scroll",Re)};_n(c,Je),_n(Y,$e),_n(g,He),_n(b,ot);let zr;return ge(()=>_e.value,Re=>{Re?zr=_n(m,$e).stop:(zr==null||zr(),zr=void 0),t("visible-change",Re)}),xt(()=>{Ie()}),{inputId:R,contentId:a,nsSelect:o,nsInput:r,states:i,isFocused:N,expanded:w,optionsArray:ce,hoverOption:C,selectSize:de,filteredOptionsCount:he,updateTooltip:$e,updateTagTooltip:He,debouncedOnInputChange:qt,onInput:Bt,deletePrevTag:kt,deleteTag:Se,deleteSelected:Ue,handleOptionSelect:we,scrollToOption:St,hasModelValue:V,shouldShowPlaceholder:xe,currentPlaceholder:Oe,mouseEnterEventName:De,needStatusIcon:z,showClearBtn:G,iconComponent:Q,iconReverse:K,validateState:ee,validateIcon:ae,showNewOption:H,updateOptions:te,collapseTagSize:be,setSelected:Ie,selectDisabled:J,emptyText:ve,handleCompositionStart:O,handleCompositionUpdate:B,handleCompositionEnd:U,handleKeydown:ms,onOptionCreate:Zt,onOptionDestroy:Sn,handleMenuEnter:Fe,focus:tt,blur:ft,handleClearClick:wn,handleClickOutside:Ee,handleEsc:pe,toggleMenu:ye,selectOption:je,getValueKey:rt,navigateOptions:bn,dropdownMenuVisible:_e,showTagList:zt,collapseTagList:Vn,popupScroll:sf,getOption:Pe,tagStyle:nu,collapseTagStyle:nf,popperRef:kn,inputRef:h,tooltipRef:u,tagTooltipRef:d,prefixRef:p,suffixRef:v,selectRef:l,wrapperRef:Y,selectionRef:c,scrollbarRef:_,menuRef:m,tagMenuRef:g,collapseItemRef:b}};var ete=W({name:"ElOptions",setup(e,{slots:t}){const n=We(zp);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 d,h,p,v;const m=(d=(u==null?void 0:u.type)||{})==null?void 0:d.name;m==="ElOptionGroup"?l(!Ye(u.children)&&!Ae(u.children)&&Ze((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),Dn(i,s)||(s=i,n&&(n.states.optionValues=i)),r}}});const qk=Me({name:String,id:String,modelValue:{type:re([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:cs,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:sn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:nn,default:Do},fitInputWidth:Boolean,suffixIcon:{type:nn,default:pr},tagType:{...ol.type,default:"info"},tagEffect:{...ol.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:re(String),values:ti,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:sn.appendTo,options:{type:re(Array)},props:{type:re(Object),default:()=>zg},...Su,...ca(["ariaLabel"])});q9.scroll;var tte=W({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=ke("select"),n=F(),s=Ct(),a=F([]);Mt(Kk,Kt({...bs(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=ks(c),d=[];return u.forEach(h=>{var p;dn(h)&&(r(h)?d.push(h.component.proxy):Ae(h.children)&&h.children.length?d.push(...i(h.children)):(p=h.component)!=null&&p.subTree&&d.push(...i(h.component.subTree)))}),d},l=()=>{a.value=i(s.subTree)};return xt(()=>{l()}),yp(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function nte(e,t,n,s,a,o){return bt((S(),P("ul",{ref:"groupRef",class:D(e.ns.be("group","wrap"))},[A("li",{class:D(e.ns.be("group","title"))},me(e.label),3),A("li",null,[A("ul",{class:D(e.ns.b("group"))},[ue(e.$slots,"default")],2)])],2)),[[Vt,e.visible]])}var k3=us(tte,[["render",nte]]);const uc=new Map;if(Ut){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of uc.values())for(const{documentHandler:s}of n)s(t,e);e=void 0}})}function Gk(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),d=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||d||h||p||t.value(s,a)}}const dc={beforeMount(e,t){uc.has(e)||uc.set(e,[]),uc.get(e).push({documentHandler:Gk(e,t),bindingFn:t.value})},updated(e,t){uc.has(e)||uc.set(e,[]);const n=uc.get(e),s=n.findIndex(o=>o.bindingFn===t.oldValue),a={documentHandler:Gk(e,t),bindingFn:t.value};s>=0?n.splice(s,1,a):n.push(a)},unmounted(e){uc.delete(e)}};function E3(){const e=pn(),t=F(0),n=E(()=>({minWidth:`${Math.max(t.value,Hg)}px`}));return _n(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 Yk="ElSelect",Hp=new WeakMap,ste=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=Hp.get(e))==null?void 0:s.originalWarnHandler;if(o){o(...t);return}console.warn(...t)},ate=e=>{let t=Hp.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:ste(e),count:0},Hp.set(e,t)),t};var ote=W({name:Yk,componentName:Yk,components:{ElSelectMenu:Zee,ElOption:x3,ElOptions:ete,ElOptionGroup:k3,ElTag:rl,ElScrollbar:vr,ElTooltip:As,ElIcon:Xe},directives:{ClickOutside:dc},props:qk,emits:[lt,Rt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const s=Ct(),a=ate(s.appContext);a.count+=1,s.appContext.config.warnHandler=a.handler;const o=E(()=>{const{modelValue:_,multiple:w}=e,C=w?[]:void 0;return Ae(_)?w?_:C:w?C:_}),r=Kt({...bs(e),modelValue:o}),i=Qee(r,t),{calculatorRef:l,inputStyle:c}=E3(),{getLabel:u,getValue:d,getOptions:h,getDisabled:p}=Vp(e),v=_=>({label:u(_),value:d(_),disabled:p(_)}),m=_=>_.reduce((w,C)=>(w.push(C),C.children&&C.children.length>0&&w.push(...m(C.children)),w),[]),g=_=>{co(_||[]).forEach(C=>{var x;if(dt(C)&&(C.type.name==="ElOption"||C.type.name==="ElTree")){const k=C.type.name;if(k==="ElTree"){const T=((x=C.props)==null?void 0:x.data)||[];m(T).forEach(I=>{I.currentLabel=I.label||(dt(I.value)?"":I.value),i.onOptionCreate(I)})}else if(k==="ElOption"){const T={...C.props};T.currentLabel=T.label||(dt(T.value)?"":T.value),i.onOptionCreate(T)}}})};ge(()=>{var _;return[(_=n.default)==null?void 0:_.call(n),o.value]},()=>{var _;e.persistent||i.expanded.value||(i.states.options.clear(),g((_=n.default)==null?void 0:_.call(n)))},{immediate:!0}),Mt(zp,Kt({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(_=>_.currentLabel):i.states.selectedLabel);return Xt(()=>{const _=Hp.get(s.appContext);_&&(_.count-=1,_.count<=0&&(s.appContext.config.warnHandler=_.originalWarnHandler,Hp.delete(s.appContext)))}),{...i,modelValue:o,selectedLabel:b,calculatorRef:l,inputStyle:c,getLabel:u,getValue:d,getOptions:h,getDisabled:p,getOptionProps:v}}});const rte=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],ite=["textContent"],lte={key:1};function cte(e,t,n,s,a,o){const r=qe("el-tag"),i=qe("el-tooltip"),l=qe("el-icon"),c=qe("el-option"),u=qe("el-option-group"),d=qe("el-options"),h=qe("el-scrollbar"),p=qe("el-select-menu"),v=$4("click-outside");return bt((S(),P("div",_t({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[N0(e.mouseEnterEventName)]:t[10]||(t[10]=m=>e.states.inputHovering=!0)},{onMouseleave:t[11]||(t[11]=m=>e.states.inputHovering=!1)}),[j(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]=it((...g)=>e.toggleMenu&&e.toggleMenu(...g),["prevent"]))},[e.$slots.prefix?(S(),P("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),P(Ve,null,wt(e.showTagList,g=>(S(),P("div",{key:e.getValueKey(g),class:D(e.nsSelect.e("selected-item"))},[j(r,{closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Qe(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},()=>[Ke(me(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(S(),le(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"))},[j(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Qe(e.collapseTagStyle)},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))}," + "+me(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),P(Ve,null,wt(e.collapseTagList,g=>(S(),P("div",{key:e.getValueKey(g),class:D(e.nsSelect.e("selected-item"))},[j(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},()=>[Ke(me(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:Qe(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]=it((...g)=>e.toggleMenu&&e.toggleMenu(...g),["stop"]))},null,46,rte),e.filterable?(S(),P("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:D(e.nsSelect.e("input-calculator")),textContent:me(e.states.inputValue)},null,10,ite)):ie("v-if",!0)],2),e.shouldShowPlaceholder?(S(),P("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,me(e.currentPlaceholder),1)]):(S(),P("span",lte,me(e.currentPlaceholder),1))],2)):ie("v-if",!0)],2),A("div",{ref:"suffixRef",class:D(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(S(),le(l,{key:0,class:D([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:X(()=>[(S(),le(yt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),e.showClearBtn&&e.clearIcon?(S(),le(l,{key:1,class:D([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:X(()=>[(S(),le(yt(e.clearIcon)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(S(),le(l,{key:2,class:D([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:X(()=>[(S(),le(yt(e.validateIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)]}),content:X(()=>[j(p,{ref:"menuRef"},{default:X(()=>[e.$slots.header?(S(),P("div",{key:0,class:D(e.nsSelect.be("dropdown","header")),onClick:t[7]||(t[7]=it(()=>{},["stop"]))},[ue(e.$slots,"header")],2)):ie("v-if",!0),bt(j(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(),le(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):ie("v-if",!0),j(d,null,{default:X(()=>[ue(e.$slots,"default",{},()=>[(S(!0),P(Ve,null,wt(e.options,(m,g)=>{var b;return S(),P(Ve,{key:g},[(b=e.getOptions(m))!=null&&b.length?(S(),le(u,{key:0,label:e.getLabel(m),disabled:e.getDisabled(m)},{default:X(()=>[(S(!0),P(Ve,null,wt(e.getOptions(m),_=>(S(),le(c,_t({key:e.getValue(_)},{ref_for:!0},e.getOptionProps(_)),null,16))),128))]),_:2},1032,["label","disabled"])):(S(),le(c,_t({key:1,ref_for:!0},e.getOptionProps(m)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[Vt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(S(),P("div",{key:1,class:D(e.nsSelect.be("dropdown","loading"))},[ue(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(S(),P("div",{key:2,class:D(e.nsSelect.be("dropdown","empty"))},[ue(e.$slots,"empty",{},()=>[A("span",null,me(e.emptyText),1)])],2)):ie("v-if",!0),e.$slots.footer?(S(),P("div",{key:3,class:D(e.nsSelect.be("dropdown","footer")),onClick:t[8]||(t[8]=it(()=>{},["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 ute=us(ote,[["render",cte]]);const fc=ht(ute,{Option:x3,OptionGroup:k3}),Wg=Tn(x3),dte=Tn(k3);var fte=W({name:"SelectController",__name:"select-controller",props:Bee,emits:Vee,setup(e,{emit:t}){const n=e,s=t,a=ke("calendar-select"),{t:o,lang:r}=Ot(),i=Array.from({length:12},(v,m)=>{const g=m+1,b=Ze(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=Ze(n.formatter)?n.formatter(g,"year"):g;v.push({value:g,label:b})}}return v}),d=v=>{s("date-change",pt(new Date(v,c.value-1,1)).locale(r.value))},h=v=>{s("date-change",pt(new Date(l.value,v-1,1)).locale(r.value))},p=()=>{s("date-change","today")};return(v,m)=>(S(),P(Ve,null,[j(f(fc),{"model-value":l.value,size:"small",class:D(f(a).e("year")),"validate-event":!1,options:u.value,onChange:d},null,8,["model-value","class","options"]),j(f(fc),{"model-value":c.value,size:"small",class:D(f(a).e("month")),"validate-event":!1,options:f(i),onChange:h},null,8,["model-value","class","options"]),j(f(_s),{size:"small",onClick:p},{default:X(()=>[Ke(me(f(o)("el.datepicker.today")),1)]),_:1})],64))}}),hte=W({name:"ElCalendar",__name:"calendar",props:See,emits:xee,setup(e,{expose:t,emit:n}){const s=ke("calendar"),a=e,o=n,{calculateValidatedDateRange:r,date:i,pickDay:l,realSelectedDay:c,selectDate:u,validatedRange:d,handleDateChange:h}=Fee(a,o),{t:p}=Ot(),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(),P("div",{class:D(f(s).b())},[A("div",{class:D(f(s).e("header"))},[ue(m.$slots,"header",{date:v.value},()=>[A("div",{class:D(f(s).e("title"))},me(v.value),3),f(d).length===0&&e.controllerType==="button"?(S(),P("div",{key:0,class:D(f(s).e("button-group"))},[j(f(Lk),null,{default:X(()=>[j(f(_s),{size:"small",onClick:g[0]||(g[0]=b=>f(u)("prev-month"))},{default:X(()=>[Ke(me(f(p)("el.datepicker.prevMonth")),1)]),_:1}),j(f(_s),{size:"small",onClick:g[1]||(g[1]=b=>f(u)("today"))},{default:X(()=>[Ke(me(f(p)("el.datepicker.today")),1)]),_:1}),j(f(_s),{size:"small",onClick:g[2]||(g[2]=b=>f(u)("next-month"))},{default:X(()=>[Ke(me(f(p)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):f(d).length===0&&e.controllerType==="select"?(S(),P("div",{key:1,class:D(f(s).e("select-controller"))},[j(fte,{date:f(i),formatter:e.formatter,onDateChange:f(h)},null,8,["date","formatter","onDateChange"])],2)):ie("v-if",!0)])],2),f(d).length===0?(S(),P("div",{key:0,class:D(f(s).e("body"))},[j(jk,{date:f(i),"selected-day":f(c),onPick:f(l)},Ta({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:X(b=>[ue(m.$slots,"date-cell",Ni(Hi(b)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(S(),P("div",{key:1,class:D(f(s).e("body"))},[(S(!0),P(Ve,null,wt(f(d),(b,_)=>(S(),le(jk,{key:_,date:b[0],"selected-day":f(c),range:b,"hide-header":_!==0,onPick:f(l)},Ta({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:X(w=>[ue(m.$slots,"date-cell",_t({ref_for:!0},w))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});const pte=ht(hte),vte=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 mte=W({name:"ElCard",__name:"card",props:vte,setup(e){const t=Tf("card"),n=ke("card");return(s,a)=>{var o;return S(),P("div",{class:D([f(n).b(),f(n).is(`${e.shadow||((o=f(t))==null?void 0:o.shadow)||"always"}-shadow`)])},[s.$slots.header||e.header?(S(),P("div",{key:0,class:D([f(n).e("header"),e.headerClass])},[ue(s.$slots,"header",{},()=>[Ke(me(e.header),1)])],2)):ie("v-if",!0),A("div",{class:D([f(n).e("body"),e.bodyClass]),style:Qe(e.bodyStyle)},[ue(s.$slots,"default")],6),s.$slots.footer||e.footer?(S(),P("div",{key:1,class:D([f(n).e("footer"),e.footerClass])},[ue(s.$slots,"footer",{},()=>[Ke(me(e.footer),1)])],2)):ie("v-if",!0)],2)}}});const gte=ht(mte),bte=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}),yte={change:(e,t)=>[e,t].every(nt)},Xk=Symbol("carouselContextKey"),A3="ElCarouselItem",wte=(e,t,n)=>co(e.subTree).filter(o=>{var r;return dn(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=pn({}),s=pn([]),a=new WeakMap,o=u=>{n.value[u.uid]=u,N2(n),xt(()=>{const d=u.getVnode().el,h=d.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)&&N2(n),p(v,m))}a.get(h).push(d)})},r=u=>{delete n.value[u.uid],N2(n);const d=u.getVnode().el,h=d.parentNode,p=a.get(h),v=p.indexOf(d);p.splice(v,1)},i=()=>{s.value=wte(e,t,n.value)},l=u=>u.render();return{children:s,addChild:o,removeChild:r,ChildrenSorter:W({setup(u,{slots:d}){return()=>(i(),d.default?at(l,{render:d.default}):null)}})}},Jk=300,_te=(e,t,n)=>{const{children:s,addChild:a,removeChild:o,ChildrenSorter:r}=jg(Ct(),A3),i=Wn(),l=F(-1),c=F(null),u=F(!1),d=F(),h=F(0),p=F(!0),v=E(()=>e.arrow!=="never"&&!f(b)),m=E(()=>s.value.some(ae=>ae.props.label.toString().length>0)),g=E(()=>e.type==="card"),b=E(()=>e.direction==="vertical"),_=E(()=>e.height!=="auto"?{height:e.height}:{height:`${h.value}px`,overflow:"hidden"}),w=nc(ae=>{I(ae)},Jk,{trailing:!0}),C=nc(ae=>{N(ae)},Jk),x=ae=>p.value?l.value<=1?ae<=1:ae>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(ae){if(Ye(ae)){const ve=s.value.filter(he=>he.props.name===ae);ve.length>0&&(ae=s.value.indexOf(ve[0]))}if(ae=Number(ae),Number.isNaN(ae)||ae!==Math.floor(ae))return;const fe=s.value.length,ne=l.value;ae<0?l.value=e.loop?fe-1:0:ae>=fe?l.value=e.loop?0:fe-1:l.value=ae,ne===l.value&&M(ne),z()}function M(ae){s.value.forEach((fe,ne)=>{fe.translateItem(ne,l.value,ae)})}function $(ae,fe){var ne,ve,he,ce;const Z=f(s),H=Z.length;if(H===0||!ae.states.inStage)return!1;const te=fe+1,de=fe-1,be=H-1,_e=Z[be].states.active,xe=Z[0].states.active,Oe=(ve=(ne=Z[te])==null?void 0:ne.states)==null?void 0:ve.active,De=(ce=(he=Z[de])==null?void 0:he.states)==null?void 0:ce.active;return fe===be&&xe||Oe?"left":fe===0&&_e||De?"right":!1}function O(){u.value=!0,e.pauseOnHover&&k()}function B(){u.value=!1,T()}function U(ae){f(b)||s.value.forEach((fe,ne)=>{ae===$(fe,ne)&&(fe.states.hover=!0)})}function J(){f(b)||s.value.forEach(ae=>{ae.states.hover=!1})}function Y(ae){l.value=ae}function N(ae){e.trigger==="hover"&&ae!==l.value&&(l.value=ae)}function L(){I(l.value-1)}function V(){I(l.value+1)}function z(){k(),e.pauseOnHover||T()}function G(ae){e.height==="auto"&&(h.value=ae)}function Q(){var ae;const fe=(ae=i.default)==null?void 0:ae.call(i);if(!fe)return null;const ve=co(fe).filter(he=>dn(he)&&he.type.name===A3);return(ve==null?void 0:ve.length)===2&&e.loop&&!g.value?(p.value=!0,ve):(p.value=!1,null)}ge(()=>l.value,(ae,fe)=>{M(fe),p.value&&(ae=ae%2,fe=fe%2),fe>-1&&t(Rt,ae,fe)});const K=E({get:()=>p.value?l.value%2:l.value,set:ae=>l.value=ae});ge(()=>e.autoplay,ae=>{ae?T():k()}),ge(()=>e.loop,()=>{I(l.value)}),ge(()=>e.interval,()=>{z()});const ee=pn();return xt(()=>{ge(()=>s.value,()=>{s.value.length>0&&I(e.initialIndex)},{immediate:!0}),ee.value=_n(d.value,()=>{M()}),T()}),Xt(()=>{k(),d.value&&ee.value&&ee.value.stop()}),Mt(Xk,{root:d,isCardType:g,isVertical:b,items:s,loop:e.loop,cardScale:e.cardScale,addItem:a,removeItem:o,setActiveItem:I,setContainerHeight:G}),{root:d,activeIndex:l,exposeActiveIndex:K,arrowDisplay:v,hasLabel:m,hover:u,isCardType:g,items:s,isVertical:b,containerStyle:_,isItemsTwoLength:p,handleButtonEnter:U,handleButtonLeave:J,handleIndicatorClick:Y,handleMouseEnter:O,handleMouseLeave:B,setActiveItem:I,prev:L,next:V,PlaceholderItem:Q,isTwoLengthShow:x,ItemsSorter:r,throttledArrowClick:w,throttledIndicatorHover:C}},Cte=["aria-label"],Ste=["aria-label"],xte=["onMouseenter","onClick"],kte=["aria-label"],Ete={key:0},Ate={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}};var Tte=W({name:"ElCarousel",__name:"carousel",props:bte,emits:yte,setup(e,{expose:t,emit:n}){const s=e,a=n,{root:o,activeIndex:r,exposeActiveIndex:i,arrowDisplay:l,hasLabel:c,hover:u,isCardType:d,items:h,isVertical:p,containerStyle:v,handleButtonEnter:m,handleButtonLeave:g,handleIndicatorClick:b,handleMouseEnter:_,handleMouseLeave:w,setActiveItem:C,prev:x,next:k,PlaceholderItem:T,isTwoLengthShow:R,ItemsSorter:I,throttledArrowClick:M,throttledIndicatorHover:$}=_te(s,a),O=ke("carousel"),{t:B}=Ot(),U=E(()=>{const L=[O.b(),O.m(s.direction)];return f(d)&&L.push(O.m("card")),L}),J=E(()=>{const L=[O.e("indicators"),O.em("indicators",s.direction)];return f(c)&&L.push(O.em("indicators","labels")),s.indicatorPosition==="outside"&&L.push(O.em("indicators","outside")),f(p)&&L.push(O.em("indicators","right")),L});function Y(L){if(!s.motionBlur)return;const V=f(p)?`${O.namespace.value}-transitioning-vertical`:`${O.namespace.value}-transitioning`;L.currentTarget.classList.add(V)}function N(L){if(!s.motionBlur)return;const V=f(p)?`${O.namespace.value}-transitioning-vertical`:`${O.namespace.value}-transitioning`;L.currentTarget.classList.remove(V)}return t({activeIndex:i,setActiveItem:C,prev:x,next:k}),(L,V)=>(S(),P("div",{ref_key:"root",ref:o,class:D(U.value),onMouseenter:V[6]||(V[6]=it((...z)=>f(_)&&f(_)(...z),["stop"])),onMouseleave:V[7]||(V[7]=it((...z)=>f(w)&&f(w)(...z),["stop"]))},[f(l)?(S(),le(ys,{key:0,name:"carousel-arrow-left",persisted:""},{default:X(()=>[bt(A("button",{type:"button",class:D([f(O).e("arrow"),f(O).em("arrow","left")]),"aria-label":f(B)("el.carousel.leftArrow"),onMouseenter:V[0]||(V[0]=z=>f(m)("left")),onMouseleave:V[1]||(V[1]=(...z)=>f(g)&&f(g)(...z)),onClick:V[2]||(V[2]=it(z=>f(M)(f(r)-1),["stop"]))},[j(f(Xe),null,{default:X(()=>[j(f($o))]),_:1})],42,Cte),[[Vt,(e.arrow==="always"||f(u))&&(e.loop||f(r)>0)]])]),_:1})):ie("v-if",!0),f(l)?(S(),le(ys,{key:1,name:"carousel-arrow-right",persisted:""},{default:X(()=>[bt(A("button",{type:"button",class:D([f(O).e("arrow"),f(O).em("arrow","right")]),"aria-label":f(B)("el.carousel.rightArrow"),onMouseenter:V[3]||(V[3]=z=>f(m)("right")),onMouseleave:V[4]||(V[4]=(...z)=>f(g)&&f(g)(...z)),onClick:V[5]||(V[5]=it(z=>f(M)(f(r)+1),["stop"]))},[j(f(Xe),null,{default:X(()=>[j(f($s))]),_:1})],42,Ste),[[Vt,(e.arrow==="always"||f(u))&&(e.loop||f(r)<f(h).length-1)]])]),_:1})):ie("v-if",!0),A("div",{class:D(f(O).e("container")),style:Qe(f(v)),onTransitionstart:Y,onTransitionend:N},[j(f(T)),ue(L.$slots,"default")],38),j(f(I),null,{default:X(()=>[e.indicatorPosition!=="none"?(S(),P("ul",{key:0,class:D(J.value)},[(S(!0),P(Ve,null,wt(f(h),(z,G)=>bt((S(),P("li",{key:G,class:D([f(O).e("indicator"),f(O).em("indicator",e.direction),f(O).is("active",G===f(r))]),onMouseenter:Q=>f($)(G),onClick:it(Q=>f(b)(G),["stop"])},[A("button",{class:D(f(O).e("button")),"aria-label":f(B)("el.carousel.indicator",{index:G+1})},[f(c)?(S(),P("span",Ete,me(z.props.label),1)):ie("v-if",!0)],10,kte)],42,xte)),[[Vt,f(R)(G)]])),128))],2)):ie("v-if",!0)]),_:1}),e.motionBlur?(S(),P("svg",Ate,[...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 Mte=Me({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Pte=e=>{const t=We(Xk),n=Ct(),s=F(),a=F(!1),o=F(0),r=F(1),i=F(!1),l=F(!1),c=F(!1),u=F(!1),{isCardType:d,isVertical:h,cardScale:p}=t;function v(C,x,k){const T=k-1,R=x-1,I=x+1,M=k/2;return x===0&&C===T?-1:x===T&&C===0?k:C<R&&x-C>=M?k+1:C>I&&C-x>=M?-2:C}function m(C,x){var k,T;const R=f(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)*(C-x)+1)/4:C<x?-(1+p)*R/4:(3+p)*R/4}function g(C,x,k){const T=t.root.value;return T?((k?T.offsetHeight:T.offsetWidth)||0)*(C-x):0}const b=(C,x,k)=>{var T;const R=f(d),I=(T=t.items.value.length)!=null?T:Number.NaN,M=C===x;!R&&!Dt(k)&&(u.value=M||C===k),!M&&I>2&&t.loop&&(C=v(C,x,I));const $=f(h);i.value=M,R?(c.value=Math.round(Math.abs(C-x))<=1,o.value=m(C,x),r.value=f(i)?1:p):o.value=g(C,x,$),l.value=!0,M&&s.value&&t.setContainerHeight(s.value.offsetHeight)};function _(){if(t&&f(d)){const C=t.items.value.findIndex(({uid:x})=>x===n.uid);t.setActiveItem(C)}}const w={props:e,states:Kt({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),Xt(()=>{t.removeItem(w)}),{carouselItemRef:s,active:i,animating:u,hover:a,inStage:c,isVertical:h,translate:o,isCardType:d,scale:r,ready:l,handleItemClick:_}};var Zk=W({name:A3,__name:"carousel-item",props:Mte,setup(e){const t=e,n=ke("carousel"),{carouselItemRef:s,active:a,animating:o,hover:r,inStage:i,isVertical:l,translate:c,isCardType:u,scale:d,ready:h,handleItemClick:p}=Pte(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${f(l)?"Y":"X"}`}(${f(c)}px)`,_=`scale(${f(d)})`;return{transform:[b,_].join(" ")}});return(g,b)=>bt((S(),P("div",{ref_key:"carouselItemRef",ref:s,class:D(v.value),style:Qe(m.value),onClick:b[0]||(b[0]=(..._)=>f(p)&&f(p)(..._))},[f(u)?bt((S(),P("div",{key:0,class:D(f(n).e("mask"))},null,2)),[[Vt,!f(a)]]):ie("v-if",!0),ue(g.$slots,"default")],6)),[[Vt,f(h)]])}});const Rte=ht(Tte,{CarouselItem:Zk}),Ite=Tn(Zk),Qk=Me({modelValue:{type:re([Number,String,Array,Object])},options:{type:re(Array),default:()=>[]},props:{type:re(Object),default:()=>({})}}),Ote={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Yt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},Lte=Me({...Qk,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),eE=e=>!0,Nte={[lt]:eE,[Rt]:eE,close:()=>!0,"expand-change":e=>e},$te=e=>E(()=>({...Ote,...e.props})),Dte=Me({...Qk,size:cs,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:nn,default:Do},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:ti,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:sn.popperClass,popperStyle:sn.popperStyle,teleported:sn.teleported,effect:{type:re(String),default:"light"},tagType:{...ol.type,default:"info"},tagEffect:{...ol.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...Su}),tE=e=>!0,Fte={[lt]:tE,[Rt]:tE,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>tn(e),expandChange:e=>!!e,removeTag:e=>!!e},nE={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:cs,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ca(["ariaControls"])},sE={[lt]:e=>Ye(e)||nt(e)||tn(e),change:e=>Ye(e)||nt(e)||tn(e)},zf=Symbol("checkboxGroupContextKey"),Bte=({model:e,isChecked:t})=>{const n=We(zf,void 0),s=We(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!Dt(l)&&e.value.length>=l&&!t.value||!Dt(c)&&e.value.length<=c&&t.value});return{isDisabled:On(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}},Vte=(e,{model:t,isLimitExceeded:n,hasOwnLabel:s,isDisabled:a,isLabeledByFormItem:o})=>{const r=We(zf,void 0),{formItem:i}=Es(),{emit:l}=Ct();function c(v){var m,g,b,_;return[!0,e.trueValue,e.trueLabel].includes(v)?(g=(m=e.trueValue)!=null?m:e.trueLabel)!=null?g:!0:(_=(b=e.falseValue)!=null?b:e.falseLabel)!=null?_:!1}function u(v,m){l(Rt,c(v),m)}function d(v){if(n.value)return;const m=v.target;l(Rt,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 Be(),u(t.value,v)))}const p=E(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return ge(()=>e.modelValue,()=>{p.value&&(i==null||i.validate("change").catch(v=>void 0))}),{handleChange:d,onClickRoot:h}},zte=e=>{const t=F(!1),{emit:n}=Ct(),s=We(zf,void 0),a=E(()=>Dt(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(lt,i),t.value=i)}});return{model:r,isGroup:a,isLimitExceeded:o}},Hte=(e,t,{model:n})=>{const s=We(zf,void 0),a=F(!1),o=E(()=>Ua(e.value)?e.label:e.value),r=E(()=>{const u=n.value;return tn(u)?u:Ae(u)?dt(o.value)?u.map(un).some(d=>Dn(d,o.value)):u.map(un).includes(o.value):u!=null?u===e.trueValue||u===e.trueLabel:!!u}),i=ss(E(()=>{var u;return(u=s==null?void 0:s.size)==null?void 0:u.value}),{prop:!0}),l=ss(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}},aE=(e,t)=>{const{formItem:n}=Es(),{model:s,isGroup:a,isLimitExceeded:o}=zte(e),{isFocused:r,isChecked:i,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,actualValue:d}=Hte(e,t,{model:s}),{isDisabled:h}=Bte({model:s,isChecked:i}),{inputId:p,isLabeledByFormItem:v}=fo(e,{formItemContext:n,disableIdGeneration:u,disableIdManagement:a}),{handleChange:m,onClickRoot:g}=Vte(e,{model:s,isLimitExceeded:o,hasOwnLabel:u,isDisabled:h,isLabeledByFormItem:v});return(()=>{function _(){var w,C;Ae(s.value)&&!s.value.includes(d.value)?s.value.push(d.value):s.value=(C=(w=e.trueValue)!=null?w:e.trueLabel)!=null?C:!0}e.checked&&_()})(),ri({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))),ri({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)),ri({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:d,handleChange:m,onClickRoot:g}},Wte=["id","indeterminate","name","tabindex","disabled"];var oE=W({name:"ElCheckbox",__name:"checkbox",props:nE,emits:sE,setup(e){const t=e,n=Wn(),{inputId:s,isLabeledByFormItem:a,isChecked:o,isDisabled:r,isFocused:i,checkboxSize:l,hasOwnLabel:c,model:u,actualValue:d,handleChange:h,onClickRoot:p}=aE(t,n),v=E(()=>{var _,w,C,x;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(w=(_=t.trueValue)!=null?_:t.trueLabel)!=null?w:!0,"false-value":(x=(C=t.falseValue)!=null?C:t.falseLabel)!=null?x:!1}:{value:d.value}}),m=ke("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(_,w)=>(S(),le(yt(!f(c)&&f(a)?"span":"label"),{for:!f(c)&&f(a)?null:f(s),class:D(g.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:f(p)},{default:X(()=>[A("span",{class:D(b.value)},[bt(A("input",_t({id:f(s),"onUpdate:modelValue":w[0]||(w[0]=C=>vn(u)?u.value=C:null),class:f(m).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:f(r)},v.value,{onChange:w[1]||(w[1]=(...C)=>f(h)&&f(h)(...C)),onFocus:w[2]||(w[2]=C=>i.value=!0),onBlur:w[3]||(w[3]=C=>i.value=!1),onClick:w[4]||(w[4]=it(()=>{},["stop"]))}),null,16,Wte),[[jS,f(u)]]),A("span",{class:D(f(m).e("inner"))},null,2)],2),f(c)?(S(),P("span",{key:0,class:D(f(m).e("label"))},[ue(_.$slots,"default"),_.$slots.default?ie("v-if",!0):(S(),P(Ve,{key:0},[Ke(me(e.label),1)],64))],2)):ie("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}});const jte=["name","tabindex","disabled"];var T3=W({name:"ElCheckboxButton",__name:"checkbox-button",props:nE,emits:sE,setup(e){const t=e,n=Wn(),{isFocused:s,isChecked:a,isDisabled:o,checkboxButtonSize:r,model:i,actualValue:l,handleChange:c}=aE(t,n),u=E(()=>{var m,g,b,_;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(g=(m=t.trueValue)!=null?m:t.trueLabel)!=null?g:!0,"false-value":(_=(b=t.falseValue)!=null?b:t.falseLabel)!=null?_:!1}:{value:l.value}}),d=We(zf,void 0),h=ke("checkbox"),p=E(()=>{var m,g,b,_;const w=(g=(m=d==null?void 0:d.fill)==null?void 0:m.value)!=null?g:"";return{backgroundColor:w,borderColor:w,color:(_=(b=d==null?void 0:d.textColor)==null?void 0:b.value)!=null?_:"",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(),P("label",{class:D(v.value)},[bt(A("input",_t({"onUpdate:modelValue":g[0]||(g[0]=b=>vn(i)?i.value=b:null),class:f(h).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:f(o)},u.value,{onChange:g[1]||(g[1]=(...b)=>f(c)&&f(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]=it(()=>{},["stop"]))}),null,16,jte),[[jS,f(i)]]),m.$slots.default||e.label?(S(),P("span",{key:0,class:D(f(h).be("button","inner")),style:Qe(f(a)?p.value:void 0)},[ue(m.$slots,"default",{},()=>[Ke(me(e.label),1)])],6)):ie("v-if",!0)],2))}});const Kte=Me({modelValue:{type:re(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:cs,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:re(Array)},props:{type:re(Object),default:()=>rE},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ca(["ariaLabel"])}),Ute={[lt]:e=>Ae(e),change:e=>Ae(e)},rE={label:"label",value:"value",disabled:"disabled"};var iE=W({name:"ElCheckboxGroup",__name:"checkbox-group",props:Kte,emits:Ute,setup(e,{emit:t}){const n=e,s=t,a=ke("checkbox"),o=On(),{formItem:r}=Es(),{inputId:i,isLabeledByFormItem:l}=fo(n,{formItemContext:r}),c=async v=>{s(lt,v),await Be(),s(Rt,v)},u=E({get(){return n.modelValue},set(v){c(v)}}),d=E(()=>({...rE,...n.props})),h=v=>{const{label:m,value:g,disabled:b}=d.value,_={label:v[m],value:v[g],disabled:v[b]};return{...vp(v,[m,g,b]),..._}},p=E(()=>n.type==="button"?T3:oE);return Mt(zf,{...Gi(bs(n),["size","min","max","validateEvent","fill","textColor"]),disabled:o,modelValue:u,changeEvent:c}),ge(()=>n.modelValue,(v,m)=>{n.validateEvent&&!Dn(v,m)&&(r==null||r.validate("change").catch(g=>void 0))}),(v,m)=>{var g;return S(),le(yt(e.tag),{id:f(i),class:D(f(a).b("group")),role:"group","aria-label":f(l)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":f(l)?(g=f(r))==null?void 0:g.labelId:void 0},{default:X(()=>[ue(v.$slots,"default",{},()=>[(S(!0),P(Ve,null,wt(e.options,(b,_)=>(S(),le(yt(p.value),_t({key:_},{ref_for:!0},h(b)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});const gr=ht(oE,{CheckboxButton:T3,CheckboxGroup:iE}),qte=Tn(T3),M3=Tn(iE),lE=Me({modelValue:{type:[String,Number,Boolean],default:void 0},size:cs,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}}),Gte=Me({...lE,border:Boolean}),cE={[lt]:e=>Ye(e)||nt(e)||tn(e),[Rt]:e=>Ye(e)||nt(e)||tn(e)},uE=Symbol("radioGroupKey"),dE=(e,t)=>{const n=F(),s=We(uE,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(d){a.value?s.changeEvent(d):t&&t(lt,d),n.value.checked=e.modelValue===o.value}}),i=ss(E(()=>s==null?void 0:s.size)),l=On(E(()=>s==null?void 0:s.disabled)),c=F(!1),u=E(()=>l.value||a.value&&r.value!==o.value?-1:0);return ri({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}},Yte=["value","name","disabled","checked"];var fE=W({name:"ElRadio",__name:"radio",props:Gte,emits:cE,setup(e,{emit:t}){const n=e,s=t,a=ke("radio"),{radioRef:o,radioGroup:r,focus:i,size:l,disabled:c,modelValue:u,actualValue:d}=dE(n,s);function h(){Be(()=>s(Rt,u.value))}return(p,v)=>{var m;return S(),P("label",{class:D([f(a).b(),f(a).is("disabled",f(c)),f(a).is("focus",f(i)),f(a).is("bordered",e.border),f(a).is("checked",f(u)===f(d)),f(a).m(f(l))])},[A("span",{class:D([f(a).e("input"),f(a).is("disabled",f(c)),f(a).is("checked",f(u)===f(d))])},[bt(A("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":v[0]||(v[0]=g=>vn(u)?u.value=g:null),class:D(f(a).e("original")),value:f(d),name:e.name||((m=f(r))==null?void 0:m.name),disabled:f(c),checked:f(u)===f(d),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]=it(()=>{},["stop"]))},null,42,Yte),[[US,f(u)]]),A("span",{class:D(f(a).e("inner"))},null,2)],2),A("span",{class:D(f(a).e("label")),onKeydown:v[4]||(v[4]=it(()=>{},["stop"]))},[ue(p.$slots,"default",{},()=>[Ke(me(e.label),1)])],34)],2)}}});const Xte=Me({...lE}),Jte=["value","name","disabled"];var P3=W({name:"ElRadioButton",__name:"radio-button",props:Xte,setup(e){const t=e,n=ke("radio"),{radioRef:s,focus:a,size:o,disabled:r,modelValue:i,radioGroup:l,actualValue:c}=dE(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(d,h)=>{var p;return S(),P("label",{class:D([f(n).b("button"),f(n).is("active",f(i)===f(c)),f(n).is("disabled",f(r)),f(n).is("focus",f(a)),f(n).bm("button",f(o))])},[bt(A("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":h[0]||(h[0]=v=>vn(i)?i.value=v:null),class:D(f(n).be("button","original-radio")),value:f(c),type:"radio",name:e.name||((p=f(l))==null?void 0:p.name),disabled:f(r),onFocus:h[1]||(h[1]=v=>a.value=!0),onBlur:h[2]||(h[2]=v=>a.value=!1),onClick:h[3]||(h[3]=it(()=>{},["stop"]))},null,42,Jte),[[US,f(i)]]),A("span",{class:D(f(n).be("button","inner")),style:Qe(f(i)===f(c)?u.value:{}),onKeydown:h[4]||(h[4]=it(()=>{},["stop"]))},[ue(d.$slots,"default",{},()=>[Ke(me(e.label),1)])],38)],2)}}});const hE={label:"label",value:"value",disabled:"disabled"},Zte=Me({id:{type:String,default:void 0},size:cs,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:()=>hE},type:{type:String,values:["radio","button"],default:"radio"},...ca(["ariaLabel"])}),Qte=cE,ene=["id","aria-label","aria-labelledby"];var pE=W({name:"ElRadioGroup",__name:"radio-group",props:Zte,emits:Qte,setup(e,{emit:t}){const n=e,s=t,a=ke("radio"),o=Fs(),r=F(),{formItem:i}=Es(),{inputId:l,isLabeledByFormItem:c}=fo(n,{formItemContext:i}),u=m=>{s(lt,m),Be(()=>s(Rt,m))};xt(()=>{const m=r.value.querySelectorAll("[type=radio]"),g=m[0];!Array.from(m).some(b=>b.checked)&&g&&(g.tabIndex=0)});const d=E(()=>n.name||o.value),h=E(()=>({...hE,...n.props})),p=m=>{const{label:g,value:b,disabled:_}=h.value,w={label:m[g],value:m[b],disabled:m[_]};return{...vp(m,[g,b,_]),...w}},v=E(()=>n.type==="button"?P3:fE);return Mt(uE,Kt({...bs(n),changeEvent:u,name:d})),ge(()=>n.modelValue,(m,g)=>{n.validateEvent&&!Dn(m,g)&&(i==null||i.validate("change").catch(b=>void 0))}),(m,g)=>(S(),P("div",{id:f(l),ref_key:"radioGroupRef",ref:r,class:D(f(a).b("group")),role:"radiogroup","aria-label":f(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":f(c)?f(i).labelId:void 0},[ue(m.$slots,"default",{},()=>[(S(!0),P(Ve,null,wt(e.options,(b,_)=>(S(),le(yt(v.value),_t({key:_},{ref_for:!0},p(b)),null,16))),128))])],10,ene))}});const vE=ht(fE,{RadioButton:P3,RadioGroup:pE}),tne=Tn(pE),nne=Tn(P3),Kg=Symbol();function sne(e){return!!(Ae(e)?e.every(({type:t})=>t===qn):(e==null?void 0:e.type)===qn)}var ane=W({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=ke("cascader-node"),{renderLabelFn:n}=We(Kg),{node:s}=e,{data:a,label:o}=s,r=()=>{const i=n==null?void 0:n({node:s,data:a});return sne(i)?o:i??o};return()=>j("span",{class:t.e("label")},[r()])}});const one=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var rne=W({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,s=t,a=We(Kg),o=ke("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}),d=E(()=>n.node.isDisabled),h=E(()=>n.node.isLeaf),p=E(()=>l.value&&!h.value||!d.value),v=E(()=>g(a.expandingNode)),m=E(()=>l.value&&a.checkedNodes.some(g)),g=I=>{var M;const{level:$,uid:O}=n.node;return((M=I==null?void 0:I.pathNodes[$-1])==null?void 0:M.uid)===O},b=()=>{v.value||a.expandNode(n.node)},_=I=>{const{node:M}=n;I!==M.checked&&a.handleCheckChange(M,I)},w=()=>{a.lazyLoad(n.node,()=>{h.value||b()})},C=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&&!d.value&&!l.value&&!i.value?R(!0):(a.config.checkOnClickNode&&(i.value||l.value)||h.value&&a.config.checkOnClickLeaf)&&!d.value?T(!n.node.checked):r.value||x()},T=I=>{l.value?(_(I),n.node.loaded&&b()):R(I)},R=I=>{n.node.loaded?(_(I),!l.value&&b()):w()};return(I,M)=>(S(),P("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([f(o).b(),f(o).is("selectable",l.value),f(o).is("active",e.node.checked),f(o).is("disabled",!p.value),v.value&&"in-active-path",m.value&&"in-checked-path"]),onMouseenter:C,onFocus:C,onClick:k},[ie(" prefix "),i.value&&c.value?(S(),le(f(gr),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:d.value,onClick:M[0]||(M[0]=it(()=>{},["stop"])),"onUpdate:modelValue":T},null,8,["model-value","indeterminate","disabled"])):l.value&&c.value?(S(),le(f(vE),{key:1,"model-value":u.value,label:e.node.uid,disabled:d.value,"onUpdate:modelValue":T,onClick:M[1]||(M[1]=it(()=>{},["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
`),M[2]||(M[2]=A("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(S(),le(f(Xe),{key:2,class:D(f(o).e("prefix"))},{default:X(()=>[j(f(Pf))]),_:1},8,["class"])):ie("v-if",!0),ie(" content "),j(f(ane),{node:e.node},null,8,["node"]),ie(" postfix "),h.value?ie("v-if",!0):(S(),P(Ve,{key:3},[e.node.loading?(S(),le(f(Xe),{key:0,class:D([f(o).is("loading"),f(o).e("postfix")])},{default:X(()=>[j(f(Ds))]),_:1},8,["class"])):(S(),le(f(Xe),{key:1,class:D(["arrow-right",f(o).e("postfix")])},{default:X(()=>[j(f($s))]),_:1},8,["class"]))],64))],42,one))}}),ine=W({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=Ct(),s=ke("cascader-menu"),{t:a}=Ot(),o=Fs();let r,i;const l=We(Kg),c=F(),u=E(()=>!t.nodes.length),d=E(()=>!l.initialLoaded),h=E(()=>`${o.value}-${t.index}`),p=b=>{r=b.target},v=b=>{var _;if(!(!l.isHoverMenu||!r||!c.value))if(r.contains(b.target)){m();const w=n.vnode.el,{left:C}=w.getBoundingClientRect(),{offsetWidth:x,offsetHeight:k}=w,T=b.clientX-C,R=r.offsetTop,I=R+r.offsetHeight,M=((_=w.querySelector(`.${s.e("wrap")}`))==null?void 0:_.scrollTop)||0;c.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${R} L${x} ${M} V${R} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${I} L${x} ${k+M} 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,_)=>(S(),le(f(vr),{key:h.value,tag:"ul",role:"menu",class:D(f(s).b()),"wrap-class":f(s).e("wrap"),"view-class":[f(s).e("list"),f(s).is("empty",u.value)],onMousemove:v,onMouseleave:g},{default:X(()=>{var w;return[(S(!0),P(Ve,null,wt(e.nodes,C=>(S(),le(rne,{key:C.uid,node:C,"menu-id":h.value,onExpand:p},null,8,["node","menu-id"]))),128)),d.value?(S(),P("div",{key:0,class:D(f(s).e("empty-text"))},[j(f(Xe),{size:"14",class:D(f(s).is("loading"))},{default:X(()=>[j(f(Ds))]),_:1},8,["class"]),Ke(" "+me(f(a)("el.cascader.loading")),1)],2)):u.value?(S(),P("div",{key:1,class:D(f(s).e("empty-text"))},[ue(b.$slots,"empty",{},()=>[Ke(me(f(a)("el.cascader.noData")),1)])],2)):(w=f(l))!=null&&w.isHoverMenu?(S(),P(Ve,{key:2},[ie(" eslint-disable vue/html-self-closing "),(S(),P("svg",{ref_key:"hoverZone",ref:c,class:D(f(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"]))}}),lne=Object.defineProperty,cne=(e,t,n)=>t in e?lne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ja=(e,t,n)=>cne(e,typeof t!="symbol"?t+"":t,n);let une=0;const dne=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let R3=class $w{constructor(t,n,s,a=!1){this.data=t,this.config=n,this.parent=s,this.root=a,Ja(this,"uid",une++),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=dne(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 $w(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(Ze(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=Ze(r)?r(t,this):t[r];return Dt(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 $w(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 fne=Object.defineProperty,hne=(e,t,n)=>t in e?fne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I3=(e,t,n)=>hne(e,typeof t!="symbol"?t+"":t,n);const O3=(e,t)=>e.reduce((n,s)=>(s.isLeaf?n.push(s):(!t&&n.push(s),n=n.concat(O3(s.children,t))),n),[]);class mE{constructor(t,n){this.config=n,I3(this,"nodes"),I3(this,"allNodes"),I3(this,"leafNodes");const s=(t||[]).map(a=>new R3(a,this.config));this.nodes=s,this.allNodes=O3(s,!1),this.leafNodes=O3(s,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const s=n?n.appendChild(t):new R3(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=>Dn(a.value,t)||Dn(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:s,level:a})=>Dn(t.value,s)&&t.level===a)||null}}const gE=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},pne=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():j9(e)&&e.click()},vne=(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 mne=W({name:"ElCascaderPanel",__name:"index",props:Lte,emits:Nte,setup(e,{expose:t,emit:n}){const s=e,a=n;let o=!1;const r=ke("cascader"),i=$te(s),l=Wn();let c;const u=F(!0),d=F(!1),h=F([]),p=F(),v=F([]),m=F(),g=F([]),b=E(()=>i.value.expandTrigger==="hover"),_=E(()=>s.renderLabel||l.default),w=()=>{const{options:N}=s,L=i.value;o=!1,c=new mE(N,L),v.value=[c.getNodes()],L.lazy&&Ia(s.options)?(u.value=!1,C(void 0,V=>{V&&(c=new mE(V,L),v.value=[c.getNodes()]),u.value=!0,O(!1,!0)})):O(!1,!0)},C=(N,L)=>{const V=i.value;N=N||new R3({},V,void 0,!0),N.loading=!0;const z=Q=>{const K=N,ee=K.root?null:K;K.loading=!1,K.loaded=!0,K.childrenData=K.childrenData||[],Q&&(c==null||c.appendNodes(Q,ee)),Q&&(L==null||L(Q)),N.level===0&&(d.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)},M=()=>{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=vne(z,G),K=Q.map(ee=>ee.valueByOption);g.value=Q,p.value=V?K:(N=K[0])!=null?N:null},O=(N=!1,L=!1)=>{const{modelValue:V}=s,{lazy:z,multiple:G,checkStrictly:Q}=i.value,K=!Q;if(!(!u.value||o||!L&&Dn(V,p.value)))if(z&&!N){const ae=bk(sV(da(V))).map(fe=>c==null?void 0:c.getNodeByValue(fe)).filter(fe=>!!fe&&!fe.loaded&&!fe.loading);ae.length?ae.forEach(fe=>{C(fe,()=>O(!1,L))}):O(!0,L)}else{const ee=G?da(V):[V],ae=bk(ee.map(fe=>c==null?void 0:c.getNodeByValue(fe,K)));B(ae,L),p.value=dg(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),K=L&&Q||G[0];K?K.pathNodes.forEach(ee=>x(ee,!0)):m.value=void 0,z.forEach(ee=>ee.doCheck(!1)),Kt(G).forEach(ee=>ee.doCheck(!0)),g.value=G,Be(U)},U=()=>{Ut&&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]}Ny(V,z)}})},J=N=>{const L=N.target,V=on(N);switch(V){case Te.up:case Te.down:{N.preventDefault();const z=V===Te.up?-1:1;Og(K9(L,z,`.${r.b("node")}[tabindex="-1"]`));break}case Te.left:{N.preventDefault();const z=h.value[gE(L)-1],G=z==null?void 0:z.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);Og(G);break}case Te.right:{N.preventDefault();const z=h.value[gE(L)+1],G=z==null?void 0:z.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);Og(G);break}case Te.enter:case Te.numpadEnter:pne(L);break}};Mt(Kg,Kt({config:i,expandingNode:m,checkedNodes:g,isHoverMenu:b,initialLoaded:u,renderLabelFn:_,lazyLoad:C,expandNode:x,handleCheckChange:k})),ge(i,(N,L)=>{Dn(N,L)||w()},{immediate:!0}),ge(()=>s.options,w,{deep:!0}),ge(()=>s.modelValue,()=>{o=!1,O()},{deep:!0}),ge(()=>p.value,N=>{Dn(N,s.modelValue)||(a(lt,N),a(Rt,N))});const Y=()=>{d.value||w()};return L4(()=>h.value=[]),xt(()=>!Ia(s.modelValue)&&O()),t({menuList:h,menus:v,checkedNodes:g,handleKeyDown:J,handleCheckChange:k,getFlattedNodes:R,getCheckedNodes:I,clearCheckedNodes:M,calculateCheckedValue:$,scrollToExpandingNode:U,loadLazyRootNodes:Y}),(N,L)=>(S(),P("div",{class:D([f(r).b("panel"),f(r).is("bordered",e.border)]),onKeydown:J},[(S(!0),P(Ve,null,wt(v.value,(V,z)=>(S(),le(ine,{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 bE=ht(mne),gne=["placeholder"],bne=["onClick"];var yne=W({name:"ElCascader",__name:"cascader",props:Dte,emits:Fte,setup(e,{expose:t,emit:n}){const s={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Fe})=>{const{modifiersData:tt,placement:ft}=Fe;["right","left","bottom","top"].includes(ft)||tt.arrow&&(tt.arrow.x=35)},requires:["arrow"]}]},a=e,o=n,r=zi(),i=Wn();let l=0,c=0;const u=ke("cascader"),d=ke("input"),h={small:7,default:11,large:15},{t:p}=Ot(),{formItem:v}=Es(),m=On(),{valueOnClear:g}=_p(a),{isComposing:b,handleComposition:_}=Fp({afterComposition(Fe){var tt;const ft=(tt=Fe.target)==null?void 0:tt.value;St(ft)}}),w=F(),C=F(),x=F(),k=F(),T=F(),R=F(),I=F(!1),M=F(!1),$=F(!1),O=F(""),B=F(""),U=F([]),J=F([]),Y=E(()=>a.props.multiple?a.collapseTags?U.value.slice(0,a.maxCollapseTags):U.value:[]),N=E(()=>a.props.multiple?a.collapseTags?U.value.slice(a.maxCollapseTags):[]:[]),L=E(()=>r.style),V=E(()=>{var Fe;return(Fe=a.placeholder)!=null?Fe:p("el.cascader.placeholder")}),z=E(()=>B.value||U.value.length>0||b.value?"":V.value),G=ss(),Q=E(()=>G.value==="small"?"small":"default"),K=E(()=>!!a.props.multiple),ee=E(()=>!a.filterable||K.value),ae=E(()=>K.value?B.value:O.value),fe=E(()=>{var Fe;return((Fe=T.value)==null?void 0:Fe.checkedNodes)||[]}),{wrapperRef:ne,isFocused:ve,handleBlur:he}=tl(x,{disabled:m,beforeBlur(Fe){var tt,ft;return((tt=w.value)==null?void 0:tt.isFocusInsideContent(Fe))||((ft=C.value)==null?void 0:ft.isFocusInsideContent(Fe))},afterBlur(){var Fe;a.validateEvent&&((Fe=v==null?void 0:v.validate)==null||Fe.call(v,"blur").catch(tt=>void 0))}}),ce=E(()=>!a.clearable||m.value||$.value||!M.value&&!ve.value?!1:!!fe.value.length),Z=E(()=>{const{showAllLevels:Fe,separator:tt}=a,ft=fe.value;return ft.length?K.value?"":ft[0].calcText(Fe,tt):""}),H=E(()=>(v==null?void 0:v.validateState)||""),te=E({get(){return dg(a.modelValue)},set(Fe){const tt=Fe??g.value;o(lt,tt),o(Rt,tt),a.validateEvent&&(v==null||v.validate("change").catch(ft=>void 0))}}),de=E(()=>[u.b(),u.m(G.value),u.is("disabled",m.value),r.class]),be=E(()=>[d.e("icon"),"icon-arrow-down",u.is("reverse",I.value)]),_e=E(()=>u.is("focus",ve.value)),xe=E(()=>{var Fe,tt;return(tt=(Fe=w.value)==null?void 0:Fe.popperRef)==null?void 0:tt.contentRef}),Oe=Fe=>{if(ve.value){const tt=new FocusEvent("blur",Fe);he(tt)}De(!1)},De=Fe=>{var tt,ft;m.value||(Fe=Fe??!I.value,Fe!==I.value&&(I.value=Fe,(ft=(tt=x.value)==null?void 0:tt.input)==null||ft.setAttribute("aria-expanded",`${Fe}`),Fe?(Ne(),T.value&&Be(T.value.scrollToExpandingNode)):a.filterable&&vt(),o("visibleChange",Fe)))},Ne=()=>{Be(()=>{var Fe;(Fe=w.value)==null||Fe.updatePopper()})},Ce=()=>{$.value=!1},Ie=Fe=>{const{showAllLevels:tt,separator:ft}=a;return{node:Fe,key:Fe.uid,text:Fe.calcText(tt,ft),hitState:!1,closable:!m.value&&!Fe.isDisabled}},Pe=Fe=>{var tt;const ft=Fe.node;ft.doCheck(!1),(tt=T.value)==null||tt.calculateCheckedValue(),o("removeTag",ft.valueByOption)},ze=()=>{switch(a.showCheckedStrategy){case"child":return fe.value;case"parent":{const Fe=et(!1),tt=Fe.map(wn=>wn.value);return Fe.filter(wn=>!wn.parent||!tt.includes(wn.parent.value))}default:return[]}},Je=()=>{if(!K.value)return;const Fe=ze(),tt=[];Fe.forEach(ft=>tt.push(Ie(ft))),U.value=tt},ot=()=>{var Fe,tt;const{filterMethod:ft,showAllLevels:wn,separator:Ee}=a,pe=(tt=(Fe=T.value)==null?void 0:Fe.getFlattedNodes(!a.props.checkStrictly))==null?void 0:tt.filter(ye=>ye.isDisabled?!1:(ye.calcText(wn,Ee),ft(ye,ae.value)));K.value&&U.value.forEach(ye=>{ye.hitState=!1}),$.value=!0,J.value=pe,Ne()},$e=()=>{var Fe;let tt;$.value&&R.value?tt=R.value.$el.querySelector(`.${u.e("suggestion-item")}`):tt=(Fe=T.value)==null?void 0:Fe.$el.querySelector(`.${u.b("node")}[tabindex="-1"]`),tt&&(tt.focus(),!$.value&&tt.click())},He=()=>{var Fe,tt,ft;const wn=(Fe=x.value)==null?void 0:Fe.input,Ee=k.value,pe=(tt=R.value)==null?void 0:tt.$el;if(!(!Ut||!wn)){if(pe){const ye=pe.querySelector(`.${u.e("suggestion-list")}`);ye.style.minWidth=`${wn.offsetWidth}px`}if(Ee){const{offsetHeight:ye}=Ee,je=U.value.length>0?`${Math.max(ye,l)-2}px`:`${l}px`;if(wn.style.height=je,i.prefix){const rt=(ft=x.value)==null?void 0:ft.$el.querySelector(`.${d.e("prefix")}`);let mt=0;rt&&(mt=rt.offsetWidth,mt>0&&(mt+=h[G.value||"default"])),Ee.style.left=`${mt}px`}else Ee.style.left="0";Ne()}}},et=Fe=>{var tt;return(tt=T.value)==null?void 0:tt.getCheckedNodes(Fe)},Bt=Fe=>{Ne(),o("expandChange",Fe)},qt=Fe=>{if(b.value)return;switch(on(Fe)){case Te.enter:case Te.numpadEnter:De();break;case Te.down:De(!0),Be($e),Fe.preventDefault();break;case Te.esc:I.value===!0&&(Fe.preventDefault(),Fe.stopPropagation(),De(!1));break;case Te.tab:De(!1);break}},st=()=>{var Fe;(Fe=T.value)==null||Fe.clearCheckedNodes(),!I.value&&a.filterable&&vt(),De(!1),o("clear")},vt=()=>{const{value:Fe}=Z;O.value=Fe,B.value=Fe},kt=Fe=>{var tt,ft;const{checked:wn}=Fe;K.value?(tt=T.value)==null||tt.handleCheckChange(Fe,!wn,!1):(!wn&&((ft=T.value)==null||ft.handleCheckChange(Fe,!0,!1)),De(!1))},Se=Fe=>{const tt=Fe.target,ft=on(Fe);switch(ft){case Te.up:case Te.down:{Fe.preventDefault();const wn=ft===Te.up?-1:1;Og(K9(tt,wn,`.${u.e("suggestion-item")}[tabindex="-1"]`));break}case Te.enter:case Te.numpadEnter:tt.click();break}},Ue=()=>{const Fe=U.value[U.value.length-1];c=B.value?0:c+1,!(!Fe||!c||a.collapseTags&&U.value.length>1)&&(Fe.hitState?Pe(Fe):Fe.hitState=!0)},we=E(()=>a.debounce),Ge=bp(()=>{const{value:Fe}=ae;if(!Fe)return;const tt=a.beforeFilter(Fe);au(tt)?tt.then(ot).catch(()=>{}):tt!==!1?ot():Ce()},we),St=(Fe,tt)=>{!I.value&&De(!0),!(tt!=null&&tt.isComposing)&&(Fe?Ge():Ce())},Zt=Fe=>Number.parseFloat(UV(d.cssVarName("input-height"),Fe).value)-2,Sn=()=>{var Fe;(Fe=x.value)==null||Fe.focus()},kn=()=>{var Fe;(Fe=x.value)==null||Fe.blur()};return ge($,Ne),ge([fe,m,()=>a.collapseTags,()=>a.maxCollapseTags],Je),ge(U,()=>{Be(()=>He())}),ge(G,async()=>{await Be();const Fe=x.value.input;l=Zt(Fe)||l,He()}),ge(Z,vt,{immediate:!0}),ge(()=>I.value,Fe=>{var tt;Fe&&a.props.lazy&&a.props.lazyLoad&&((tt=T.value)==null||tt.loadLazyRootNodes())}),xt(()=>{const Fe=x.value.input,tt=Zt(Fe);l=Fe.offsetHeight||tt,_n(Fe,He)}),t({getCheckedNodes:et,cascaderPanelRef:T,togglePopperVisible:De,contentRef:xe,presentText:Z,focus:Sn,blur:kn}),(Fe,tt)=>(S(),le(f(As),{ref_key:"tooltipRef",ref:w,visible:I.value,teleported:e.teleported,"popper-class":[f(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:`${f(u).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:Ce},{default:X(()=>[bt((S(),P("div",{ref_key:"wrapperRef",ref:ne,class:D(de.value),style:Qe(L.value),onClick:tt[8]||(tt[8]=()=>De(ee.value?void 0:!0)),onKeydown:qt,onMouseenter:tt[9]||(tt[9]=ft=>M.value=!0),onMouseleave:tt[10]||(tt[10]=ft=>M.value=!1)},[j(f(ua),{ref_key:"inputRef",ref:x,modelValue:O.value,"onUpdate:modelValue":tt[1]||(tt[1]=ft=>O.value=ft),placeholder:z.value,readonly:ee.value,disabled:f(m),"validate-event":!1,size:f(G),class:D(_e.value),tabindex:K.value&&e.filterable&&!f(m)?-1:void 0,onCompositionstart:f(_),onCompositionupdate:f(_),onCompositionend:f(_),onInput:St},Ta({suffix:X(()=>[ce.value?(S(),le(f(Xe),{key:"clear",class:D([f(d).e("icon"),"icon-circle-close"]),onClick:it(st,["stop"])},{default:X(()=>[(S(),le(yt(e.clearIcon)))]),_:1},8,["class"])):(S(),le(f(Xe),{key:"arrow-down",class:D(be.value),onClick:tt[0]||(tt[0]=it(ft=>De(),["stop"]))},{default:X(()=>[j(f(pr))]),_:1},8,["class"]))]),_:2},[Fe.$slots.prefix?{name:"prefix",fn:X(()=>[ue(Fe.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),K.value?(S(),P("div",{key:0,ref_key:"tagWrapper",ref:k,class:D([f(u).e("tags"),f(u).is("validate",!!H.value)])},[ue(Fe.$slots,"tag",{data:U.value,deleteTag:Pe},()=>[(S(!0),P(Ve,null,wt(Y.value,ft=>(S(),le(f(rl),{key:ft.key,type:e.tagType,size:Q.value,effect:e.tagEffect,hit:ft.hitState,closable:ft.closable,"disable-transitions":"",onClose:wn=>Pe(ft)},{default:X(()=>[A("span",null,me(ft.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&U.value.length>e.maxCollapseTags?(S(),le(f(As),{key:0,ref_key:"tagTooltipRef",ref:C,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(()=>[j(f(rl),{closable:!1,size:Q.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:X(()=>[A("span",{class:D(f(u).e("tags-text"))}," + "+me(U.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:X(()=>[j(f(vr),{"max-height":e.maxCollapseTagsTooltipHeight},{default:X(()=>[A("div",{class:D(f(u).e("collapse-tags"))},[(S(!0),P(Ve,null,wt(N.value,(ft,wn)=>(S(),P("div",{key:wn,class:D(f(u).e("collapse-tag"))},[(S(),le(f(rl),{key:ft.key,class:"in-tooltip",type:e.tagType,size:Q.value,effect:e.tagEffect,hit:ft.hitState,closable:ft.closable,"disable-transitions":"",onClose:Ee=>Pe(ft)},{default:X(()=>[A("span",null,me(ft.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&&!f(m)?bt((S(),P("input",{key:1,"onUpdate:modelValue":tt[2]||(tt[2]=ft=>B.value=ft),type:"text",class:D(f(u).e("search-input")),placeholder:Z.value?"":V.value,onInput:tt[3]||(tt[3]=ft=>St(B.value,ft)),onClick:tt[4]||(tt[4]=it(ft=>De(!0),["stop"])),onKeydown:$n(Ue,["delete"]),onCompositionstart:tt[5]||(tt[5]=(...ft)=>f(_)&&f(_)(...ft)),onCompositionupdate:tt[6]||(tt[6]=(...ft)=>f(_)&&f(_)(...ft)),onCompositionend:tt[7]||(tt[7]=(...ft)=>f(_)&&f(_)(...ft))},null,42,gne)),[[WS,B.value]]):ie("v-if",!0)],2)):ie("v-if",!0)],38)),[[f(dc),Oe,xe.value]])]),content:X(()=>[Fe.$slots.header?(S(),P("div",{key:0,class:D(f(u).e("header")),onClick:tt[11]||(tt[11]=it(()=>{},["stop"]))},[ue(Fe.$slots,"header")],2)):ie("v-if",!0),bt(j(f(bE),{ref_key:"cascaderPanelRef",ref:T,modelValue:te.value,"onUpdate:modelValue":tt[12]||(tt[12]=ft=>te.value=ft),options:e.options,props:a.props,border:!1,"render-label":Fe.$slots.default,onExpandChange:Bt,onClose:tt[13]||(tt[13]=ft=>Fe.$nextTick(()=>De(!1)))},{empty:X(()=>[ue(Fe.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[Vt,!$.value]]),e.filterable?bt((S(),le(f(vr),{key:1,ref_key:"suggestionPanel",ref:R,tag:"ul",class:D(f(u).e("suggestion-panel")),"view-class":f(u).e("suggestion-list"),onKeydown:Se},{default:X(()=>[J.value.length?(S(!0),P(Ve,{key:0},wt(J.value,ft=>(S(),P("li",{key:ft.uid,class:D([f(u).e("suggestion-item"),f(u).is("checked",ft.checked)]),tabindex:-1,onClick:wn=>kt(ft)},[ue(Fe.$slots,"suggestion-item",{item:ft},()=>[A("span",null,me(ft.text),1),ft.checked?(S(),le(f(Xe),{key:0},{default:X(()=>[j(f(Pf))]),_:1})):ie("v-if",!0)])],10,bne))),128)):ue(Fe.$slots,"empty",{key:1},()=>[A("li",{class:D(f(u).e("empty-text"))},me(f(p)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Vt,$.value]]):ie("v-if",!0),Fe.$slots.footer?(S(),P("div",{key:2,class:D(f(u).e("footer")),onClick:tt[14]||(tt[14]=it(()=>{},["stop"]))},[ue(Fe.$slots,"footer")],2)):ie("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}});const wne=ht(yne),_ne=Me({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),Cne={"update:checked":e=>tn(e),[Rt]:e=>tn(e)};var Sne=W({name:"ElCheckTag",__name:"check-tag",props:_ne,emits:Cne,setup(e,{emit:t}){const n=e,s=t,a=ke("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(Rt,i),s("update:checked",i)};return(i,l)=>(S(),P("span",{class:D(o.value),onClick:r},[ue(i.$slots,"default")],2))}});const xne=ht(Sne),kne=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:()=>In({})},sm:{type:re([Number,Object]),default:()=>In({})},md:{type:re([Number,Object]),default:()=>In({})},lg:{type:re([Number,Object]),default:()=>In({})},xl:{type:re([Number,Object]),default:()=>In({})}}),yE=Symbol("rowContextKey");var Ene=W({name:"ElCol",__name:"col",props:kne,setup(e){const t=e,{gutter:n}=We(yE,{gutter:E(()=>0)}),s=ke("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];nt(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=>{nt(t[c])?r.push(s.b(`${c}-${t[c]}`)):dt(t[c])&&Object.entries(t[c]).forEach(([u,d])=>{r.push(u!=="span"?s.b(`${c}-${u}-${d}`):s.b(`${c}-${d}`))})}),n.value&&r.push(s.is("guttered")),[s.b(),r]});return(r,i)=>(S(),le(yt(e.tag),{class:D(o.value),style:Qe(a.value)},{default:X(()=>[ue(r.$slots,"default")]),_:3},8,["class","style"]))}});const Ane=ht(Ene),wE=e=>nt(e)||Ye(e)||Ae(e),Tne=Me({accordion:Boolean,modelValue:{type:re([Array,String,Number]),default:()=>In([])},expandIconPosition:{type:re([String]),default:"right"},beforeCollapse:{type:re(Function)}}),Mne={[lt]:wE,[Rt]:wE},_E=Symbol("collapseContextKey"),Pne="ElCollapse",Rne=(e,t)=>{const n=F(ks(e.modelValue)),s=r=>{n.value=r;const i=e.accordion?n.value[0]:n.value;t(lt,i),t(Rt,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),tn(l)].includes(!0)||Zn(Pne,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),au(l)?l.then(u=>{u!==!1&&a(r)}).catch(u=>{}):l&&a(r)};return ge(()=>e.modelValue,()=>n.value=ks(e.modelValue),{deep:!0}),Mt(_E,{activeNames:n,handleItemClick:o}),{activeNames:n,setActiveNames:s}},Ine=e=>{const t=ke("collapse");return{rootKls:E(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var One=W({name:"ElCollapse",__name:"collapse",props:Tne,emits:Mne,setup(e,{expose:t,emit:n}){const s=e,a=n,{activeNames:o,setActiveNames:r}=Rne(s,a),{rootKls:i}=Ine(s);return t({activeNames:o,setActiveNames:r}),(l,c)=>(S(),P("div",{class:D(f(i))},[ue(l.$slots,"default")],2))}});const Lne=Me({title:{type:String,default:""},name:{type:re([String,Number]),default:void 0},icon:{type:nn,default:$s},disabled:Boolean});var Nne=W({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=ke("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(),le(ys,_t({name:f(t).b()},LO(s)),{default:X(()=>[ue(a.$slots,"default")]),_:3},16,["name"]))}});const Ug=ht(Nne),$ne=e=>{const t=We(_E),{namespace:n}=ke("collapse"),s=F(!1),a=F(!1),o=a3(),r=E(()=>o.current++),i=E(()=>{var h;return(h=e.name)!=null?h:`${n.value}-id-${o.prefix}-${f(r)}`}),l=E(()=>t==null?void 0:t.activeNames.value.includes(f(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(f(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(f(i)))}}},Dne=(e,{focusing:t,isActive:n,id:s})=>{const a=ke("collapse"),o=E(()=>[a.b("item"),a.is("active",f(n)),a.is("disabled",e.disabled)]),r=E(()=>[a.be("item","header"),a.is("active",f(n)),{focusing:f(t)&&!e.disabled}]),i=E(()=>[a.be("item","arrow"),a.is("active",f(n))]),l=E(()=>[a.be("item","title")]),c=E(()=>a.be("item","wrap")),u=E(()=>a.be("item","content")),d=E(()=>a.b(`content-${f(s)}`)),h=E(()=>a.b(`head-${f(s)}`));return{itemTitleKls:l,arrowKls:i,headKls:r,rootKls:o,itemWrapperKls:c,itemContentKls:u,scopedContentId:d,scopedHeadId:h}},Fne=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],Bne=["id","aria-hidden","aria-labelledby"];var CE=W({name:"ElCollapseItem",__name:"collapse-item",props:Lne,setup(e,{expose:t}){const n=e,{focusing:s,id:a,isActive:o,handleFocus:r,handleHeaderClick:i,handleEnterClick:l}=$ne(n),{arrowKls:c,headKls:u,rootKls:d,itemTitleKls:h,itemWrapperKls:p,itemContentKls:v,scopedContentId:m,scopedHeadId:g}=Dne(n,{focusing:s,isActive:o,id:a});return t({isActive:o}),(b,_)=>(S(),P("div",{class:D(f(d))},[A("div",{id:f(g),class:D(f(u)),"aria-expanded":f(o),"aria-controls":f(m),"aria-describedby":f(m),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:_[0]||(_[0]=(...w)=>f(i)&&f(i)(...w)),onKeydown:_[1]||(_[1]=$n(it((...w)=>f(l)&&f(l)(...w),["stop"]),["space","enter"])),onFocus:_[2]||(_[2]=(...w)=>f(r)&&f(r)(...w)),onBlur:_[3]||(_[3]=w=>s.value=!1)},[A("span",{class:D(f(h))},[ue(b.$slots,"title",{isActive:f(o)},()=>[Ke(me(e.title),1)])],2),ue(b.$slots,"icon",{isActive:f(o)},()=>[j(f(Xe),{class:D(f(c))},{default:X(()=>[(S(),le(yt(e.icon)))]),_:1},8,["class"])])],42,Fne),j(f(Ug),null,{default:X(()=>[bt(A("div",{id:f(m),role:"region",class:D(f(p)),"aria-hidden":!f(o),"aria-labelledby":f(g)},[A("div",{class:D(f(v))},[ue(b.$slots,"default")],2)],10,Bne),[[Vt,f(o)]])]),_:3})],2))}});const Vne=ht(One,{CollapseItem:CE}),zne=Tn(CE),SE=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}}),Hne={[lt]:e=>Ye(e)||Yn(e)},xE=Symbol("colorCommonPickerKey"),kE=Symbol("colorPickerPanelContextKey"),EE=Me({color:{type:re(Object),required:!0},vertical:Boolean,disabled:Boolean}),Wne=EE;let L3=!1;function N3(e,t){if(!Ut)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,L3=!1,(r=t.end)==null||r.call(t,o)},a=function(o){var r;L3||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",s),document.addEventListener("touchmove",n),document.addEventListener("touchend",s),L3=!0,(r=t.start)==null||r.call(t,o))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a,{passive:!1})}const AE=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},$3=(e,t)=>Math.abs(AE(e)-AE(t)),TE=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}},ME=(e,{key:t,minValue:n,maxValue:s})=>{const a=Ct(),o=pn(),r=pn(),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}=TE(h);let b;if(e.vertical){let _=g-v.top;_=Math.max(o.value.offsetHeight/2,_),_=Math.min(_,v.height-o.value.offsetHeight/2),b=Math.round((_-o.value.offsetHeight/2)/(v.height-o.value.offsetHeight)*s)}else{let _=m-v.left;_=Math.max(o.value.offsetWidth/2,_),_=Math.min(_,v.width-o.value.offsetWidth/2),b=Math.round((_-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=on(h),m=p?10:1,g=t==="hue"?-1:1;let b=!0;switch(v){case Te.left:case Te.down:d(-m*g);break;case Te.right:case Te.up:d(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:d(-4*g);break;case Te.pageUp:d(4*g);break;default:b=!1;break}b&&h.preventDefault()}function d(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}},PE=(e,{namespace:t,maxValue:n,bar:s,thumb:a,currentValue:o,handleDrag:r,getBackground:i})=>{const l=Ct(),c=ke(t),u=F(0),d=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(),d.value=v(),h.value=i==null?void 0:i()}xt(()=>{if(!s.value||!a.value)return;const x={drag:k=>{r(k)},end:k=>{r(k)}};N3(s.value,x),N3(a.value,x),m()}),ge(o,()=>m()),ge(()=>e.color.value,()=>m());const g=E(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),b=E(()=>c.e("bar")),_=E(()=>c.e("thumb")),w=E(()=>({background:h.value})),C=E(()=>({left:Rn(u.value),top:Rn(d.value)}));return{rootKls:g,barKls:b,barStyle:w,thumbKls:_,thumbStyle:C,thumbLeft:u,thumbTop:d,update:m}},jne=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],RE=0,D3=100;var Kne=W({name:"ElColorAlphaSlider",__name:"alpha-slider",props:EE,setup(e,{expose:t}){const n=e,{currentValue:s,bar:a,thumb:o,handleDrag:r,handleClick:i,handleKeydown:l}=ME(n,{key:"alpha",minValue:RE,maxValue:D3}),{rootKls:c,barKls:u,barStyle:d,thumbKls:h,thumbStyle:p,update:v}=PE(n,{namespace:"color-alpha-slider",maxValue:D3,currentValue:s,bar:a,thumb:o,handleDrag:r,getBackground:_}),{t:m}=Ot(),g=E(()=>m("el.colorpicker.alphaLabel")),b=E(()=>m("el.colorpicker.alphaDescription",{alpha:s.value,color:n.color.value}));function _(){if(n.color&&n.color.value){const{r:w,g:C,b:x}=n.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${C}, ${x}, 0) 0%, rgba(${w}, ${C}, ${x}, 1) 100%)`}return""}return t({update:v,bar:a,thumb:o}),(w,C)=>(S(),P("div",{class:D(f(c))},[A("div",{ref_key:"bar",ref:a,class:D(f(u)),style:Qe(f(d)),onClick:C[0]||(C[0]=(...x)=>f(i)&&f(i)(...x))},null,6),A("div",{ref_key:"thumb",ref:o,class:D(f(h)),style:Qe(f(p)),"aria-label":g.value,"aria-valuenow":f(s),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":RE,"aria-valuemax":D3,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:C[1]||(C[1]=(...x)=>f(l)&&f(l)(...x))},null,46,jne)],2))}});const Une=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],IE=0,F3=360;var qne=W({name:"ElColorHueSlider",__name:"hue-slider",props:Wne,setup(e,{expose:t}){const n=e,{currentValue:s,bar:a,thumb:o,handleDrag:r,handleClick:i,handleKeydown:l}=ME(n,{key:"hue",minValue:IE,maxValue:F3}),{rootKls:c,barKls:u,thumbKls:d,thumbStyle:h,thumbTop:p,update:v}=PE(n,{namespace:"color-hue-slider",maxValue:F3,currentValue:s,bar:a,thumb:o,handleDrag:r}),{t:m}=Ot(),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}),(_,w)=>(S(),P("div",{class:D(f(c))},[A("div",{ref_key:"bar",ref:a,class:D(f(u)),onClick:w[0]||(w[0]=(...C)=>f(i)&&f(i)(...C))},null,2),A("div",{ref_key:"thumb",ref:o,class:D(f(d)),style:Qe(f(h)),"aria-label":g.value,"aria-valuenow":f(s),"aria-valuetext":b.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":IE,"aria-valuemax":F3,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:w[1]||(w[1]=(...C)=>f(l)&&f(l)(...C))},null,46,Une)],2))}});const Gne=Me({colors:{type:re(Array),required:!0},color:{type:re(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var Yne=Object.defineProperty,Xne=(e,t,n)=>t in e?Yne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ii=(e,t,n)=>Xne(e,typeof t!="symbol"?t+"":t,n);class qg{constructor(t={}){ii(this,"_hue",0),ii(this,"_saturation",100),ii(this,"_value",100),ii(this,"_alpha",100),ii(this,"_tiny",new Vf),ii(this,"_isValid",!1),ii(this,"enableAlpha",!1),ii(this,"format",""),ii(this,"value",""),ii(this,"selected");for(const n in t)jt(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)jt(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 Jne=e=>{const{currentColor:t}=We(kE),n=F(a(e.colors,e.color));ge(()=>t.value,o=>{const r=new qg({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 qg({value:i,enableAlpha:e.enableAlpha});return l.selected=l.compare(r),l})}return{rgbaColors:n,handleSelect:s}},Zne=e=>{const t=ke("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}},Qne=["disabled","aria-label","onClick"];var ese=W({name:"ElColorPredefine",__name:"predefine",props:Gne,setup(e){const t=e,{rgbaColors:n,handleSelect:s}=Jne(t),{rootKls:a,colorsKls:o,colorSelectorKls:r}=Zne(t),{t:i}=Ot(),l=c=>i("el.colorpicker.predefineDescription",{value:c});return(c,u)=>(S(),P("div",{class:D(f(a))},[A("div",{class:D(f(o))},[(S(!0),P(Ve,null,wt(f(n),(d,h)=>(S(),P("button",{key:e.colors[h],type:"button",disabled:e.disabled,"aria-label":l(d.value),class:D(f(r)(d)),onClick:p=>f(s)(h)},[A("div",{style:Qe({backgroundColor:d.value})},null,4)],10,Qne))),128))],2)],2))}});const tse=Me({color:{type:re(Object),required:!0},disabled:Boolean}),nse=e=>{const t=Ct(),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:_}=TE(v);let w=b-g.left,C=_-g.top;w=Math.max(0,w),w=Math.min(w,g.width),C=Math.max(0,C),C=Math.min(C,g.height),a.value=w,s.value=C,e.color.set({saturation:w/g.width*100,value:100-C/g.height*100})}function d(v){if(e.disabled)return;const{shiftKey:m}=v,g=on(v),b=m?10:1;let _=!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:_=!1;break}_&&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:d}},sse=(e,{cursorTop:t,cursorLeft:n,background:s,handleDrag:a})=>{const o=Ct(),r=ke("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%)`}xt(()=>{N3(o.vnode.el,{drag:h=>{a(h)},end:h=>{a(h)}}),i()}),ge([()=>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})),d=E(()=>({top:Rn(t.value),left:Rn(n.value)}));return{rootKls:l,cursorKls:c,rootStyle:u,cursorStyle:d,update:i}},ase=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var ose=W({name:"ElSvPanel",__name:"sv-panel",props:tse,setup(e,{expose:t}){const n=e,{cursorRef:s,cursorTop:a,cursorLeft:o,background:r,saturation:i,brightness:l,handleClick:c,handleDrag:u,handleKeydown:d}=nse(n),{rootKls:h,cursorKls:p,rootStyle:v,cursorStyle:m,update:g}=sse(n,{cursorTop:a,cursorLeft:o,background:r,handleDrag:u}),{t:b}=Ot(),_=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}),(C,x)=>(S(),P("div",{class:D(f(h)),style:Qe(f(v)),onClick:x[1]||(x[1]=(...k)=>f(c)&&f(c)(...k))},[A("div",{ref_key:"cursorRef",ref:s,class:D(f(p)),style:Qe(f(m)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":_.value,"aria-valuenow":`${f(i)},${f(l)}`,"aria-valuetext":w.value,onKeydown:x[0]||(x[0]=(...k)=>f(d)&&f(d)(...k))},null,46,ase)],6))}});const OE=(e,t)=>{const n=Kt(new qg({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return ge(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(lt,n.value)}),{color:n}};var rse=W({name:"ElColorPickerPanel",__name:"color-picker-panel",props:SE,emits:Hne,setup(e,{expose:t,emit:n}){const s=e,a=n,o=ke("color-picker-panel"),{formItem:r}=Es(),i=On(),l=F(),c=F(),u=F(),d=F(),h=F(""),{color:p}=We(xE,()=>OE(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(_=>void 0))}function g(){var b,_,w;(b=l.value)==null||b.update(),(_=c.value)==null||_.update(),(w=u.value)==null||w.update()}return xt(()=>{s.modelValue&&(h.value=p.value),Be(g)}),ge(()=>s.modelValue,b=>{b!==p.value&&(b?p.fromString(b):p.clear())}),ge(()=>p.value,b=>{a(lt,b),h.value=b,s.validateEvent&&(r==null||r.validate("change").catch(_=>void 0))}),Mt(kE,{currentColor:E(()=>p.value)}),t({color:p,inputRef:d,update:g}),(b,_)=>(S(),P("div",{class:D([f(o).b(),f(o).is("disabled",f(i)),f(o).is("border",e.border)]),onFocusout:m},[A("div",{class:D(f(o).e("wrapper"))},[j(qne,{ref_key:"hueRef",ref:l,class:"hue-slider",color:f(p),vertical:"",disabled:f(i)},null,8,["color","disabled"]),j(ose,{ref_key:"svRef",ref:c,color:f(p),disabled:f(i)},null,8,["color","disabled"])],2),e.showAlpha?(S(),le(Kne,{key:0,ref_key:"alphaRef",ref:u,color:f(p),disabled:f(i)},null,8,["color","disabled"])):ie("v-if",!0),e.predefine?(S(),le(ese,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:f(p),colors:e.predefine,disabled:f(i)},null,8,["enable-alpha","color","colors","disabled"])):ie("v-if",!0),A("div",{class:D(f(o).e("footer"))},[j(f(ua),{ref_key:"inputRef",ref:d,modelValue:h.value,"onUpdate:modelValue":_[0]||(_[0]=w=>h.value=w),"validate-event":!1,size:"small",disabled:f(i),onChange:v},null,8,["modelValue","disabled"]),ue(b.$slots,"footer")],2)],34))}});const LE=ht(rse),ise=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:cs,popperClass:sn.popperClass,popperStyle:sn.popperStyle,tabindex:{type:[String,Number],default:0},teleported:sn.teleported,appendTo:sn.appendTo,predefine:{type:re(Array)},validateEvent:{type:Boolean,default:!0},...Su,...ca(["ariaLabel"])}),lse={[lt]:e=>Ye(e)||Yn(e),[Rt]:e=>Ye(e)||Yn(e),activeChange:e=>Ye(e)||Yn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},cse=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var use=W({name:"ElColorPicker",__name:"color-picker",props:ise,emits:lse,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Ot(),r=ke("color"),{formItem:i}=Es(),l=ss(),c=On(),{valueOnClear:u,isEmptyValue:d}=_p(s,null),h=OE(s,a),{inputId:p,isLabeledByFormItem:v}=fo(s,{formItemContext:i}),m=F(),g=F(),b=F(),_=F(!1),w=F(!1);let C=!0;const{isFocused:x,handleFocus:k,handleBlur:T}=tl(g,{disabled:c,beforeBlur(ce){var Z;return(Z=m.value)==null?void 0:Z.isFocusInsideContent(ce)},afterBlur(){var ce;Y(!1),z(),s.validateEvent&&((ce=i==null?void 0:i.validate)==null||ce.call(i,"blur").catch(Z=>void 0))}}),R=IV(()=>{var ce,Z;return(Z=(ce=b.value)==null?void 0:ce.color)!=null?Z:h.color}),I=E(()=>Gi(s,Object.keys(SE))),M=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),U=E(()=>[r.b("picker"),r.is("disabled",c.value),r.bm("picker",l.value),r.is("focused",x.value)]);function J(ce,Z){const{r:H,g:te,b:de,a:be}=ce.toRgb();return Z?`rgba(${H}, ${te}, ${de}, ${be})`:`rgb(${H}, ${te}, ${de})`}function Y(ce){_.value=ce}const N=Zr(Y,100,{leading:!0});function L(){c.value||Y(!0)}function V(){N(!1),z()}function z(){Be(()=>{s.modelValue?R.fromString(s.modelValue):(R.value="",Be(()=>{w.value=!1}))})}function G(){c.value||(_.value&&z(),N(!_.value))}function Q(){const ce=d(R.value)?u.value:R.value;a(lt,ce),a(Rt,ce),s.validateEvent&&(i==null||i.validate("change").catch(Z=>void 0)),N(!1),Be(()=>{const Z=new qg({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue});R.compare(Z)||z()})}function K(){N(!1),a(lt,u.value),a(Rt,u.value),s.modelValue!==u.value&&s.validateEvent&&(i==null||i.validate("change").catch(ce=>void 0)),z(),a("clear")}function ee(){var ce,Z;(Z=(ce=b==null?void 0:b.value)==null?void 0:ce.inputRef)==null||Z.focus()}function ae(){_.value&&(V(),x.value&&ve())}function fe(ce){ce.preventDefault(),ce.stopPropagation(),Y(!1),z()}function ne(ce){switch(on(ce)){case Te.enter:case Te.numpadEnter:case Te.space:ce.preventDefault(),ce.stopPropagation(),L();break;case Te.esc:fe(ce);break}}function ve(){g.value.focus()}function he(){g.value.blur()}return ge(()=>$.value,ce=>{C&&a("activeChange",ce),C=!0}),ge(()=>R.value,()=>{!s.modelValue&&!w.value&&(w.value=!0)}),ge(()=>s.modelValue,ce=>{ce?ce&&ce!==R.value&&(C=!1,R.fromString(ce)):w.value=!1}),ge(()=>_.value,()=>{b.value&&Be(b.value.update)}),Mt(xE,h),t({color:R,show:L,hide:V,focus:ve,blur:he}),(ce,Z)=>(S(),le(f(As),{ref_key:"popper",ref:m,visible:_.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[f(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:`${f(r).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:ee,onHide:Z[2]||(Z[2]=H=>Y(!1))},{content:X(()=>[bt((S(),le(f(LE),_t({ref_key:"pickerPanelRef",ref:b},I.value,{border:!1,"validate-event":!1,onKeydown:$n(fe,["esc"])}),{footer:X(()=>[A("div",null,[e.clearable?(S(),le(f(_s),{key:0,class:D(f(r).be("footer","link-btn")),text:"",size:"small",onClick:K},{default:X(()=>[Ke(me(f(o)("el.colorpicker.clear")),1)]),_:1},8,["class"])):ie("v-if",!0),j(f(_s),{plain:"",size:"small",class:D(f(r).be("footer","btn")),onClick:Q},{default:X(()=>[Ke(me(f(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[f(dc),ae,g.value]])]),default:X(()=>[A("div",_t({id:f(p),ref_key:"triggerRef",ref:g},ce.$attrs,{class:U.value,role:"button","aria-label":O.value,"aria-labelledby":B.value,"aria-description":f(o)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":f(c),tabindex:f(c)?void 0:e.tabindex,onKeydown:ne,onFocus:Z[0]||(Z[0]=(...H)=>f(k)&&f(k)(...H)),onBlur:Z[1]||(Z[1]=(...H)=>f(T)&&f(T)(...H))}),[A("div",{class:D(f(r).be("picker","trigger")),onClick:G},[A("span",{class:D([f(r).be("picker","color"),f(r).is("alpha",e.showAlpha)])},[A("span",{class:D(f(r).be("picker","color-inner")),style:Qe({backgroundColor:M.value})},[bt(j(f(Xe),{class:D([f(r).be("picker","icon"),f(r).is("icon-arrow-down")])},{default:X(()=>[j(f(pr))]),_:1},8,["class"]),[[Vt,e.modelValue||w.value]]),bt(j(f(Xe),{class:D([f(r).be("picker","empty"),f(r).is("icon-close")])},{default:X(()=>[j(f(qa))]),_:1},8,["class"]),[[Vt,!e.modelValue&&!w.value]])],6)],2)],2)],16,cse)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}});const dse=ht(use),fse=Me({a11y:{type:Boolean,default:!0},locale:{type:re(Object)},size:cs,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}),fa={placement:"top"},hse=ht(W({name:"ElConfigProvider",props:fse,setup(e,{slots:t}){const n=Oy(e);return ge(()=>e.message,s=>{var a,o;Object.assign(fa,(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 pse=W({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=Wn(),s=ke("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(),P("section",{class:D([f(s).b(),f(s).is("vertical",a.value)])},[ue(o.$slots,"default")],2))}}),NE=W({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ke("aside"),s=E(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,o)=>(S(),P("aside",{class:D(f(n).b()),style:Qe(s.value)},[ue(a.$slots,"default")],6))}}),$E=W({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ke("footer"),s=E(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(S(),P("footer",{class:D(f(n).b()),style:Qe(s.value)},[ue(a.$slots,"default")],6))}}),DE=W({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ke("header"),s=E(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(S(),P("header",{class:D(f(n).b()),style:Qe(s.value)},[ue(a.$slots,"default")],6))}}),FE=W({name:"ElMain",__name:"main",setup(e){const t=ke("main");return(n,s)=>(S(),P("main",{class:D(f(t).b())},[ue(n.$slots,"default")],2))}});const vse=ht(pse,{Aside:NE,Footer:$E,Header:DE,Main:FE}),mse=Tn(NE),gse=Tn($E),bse=Tn(DE),yse=Tn(FE);var BE={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,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}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var _=b.match(/([+-]|\d\d)/g),w=60*_[1]+(+_[2]||0);return w===0?0:_[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 _,w=l.meridiem;if(w){for(var C=1;C<=24;C+=1)if(g.indexOf(w(C,0,b))>-1){_=C>12;break}}else _=g===(b?"pm":"PM");return _},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,_=g.match(/\d+/);if(this.day=_[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"),_=(h("monthsShort")||b.map(function(w){return w.slice(0,3)})).indexOf(g)+1;if(_<1)throw new Error;this.month=_%12||_}],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:d,ZZ:d};function m(g){var b,_;b=g,_=l&&l.formats;for(var w=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,$,O){var B=O&&O.toUpperCase();return $||_[O]||n[O]||_[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(U,J,Y){return J||Y.slice(1)})})).match(s),C=w.length,x=0;x<C;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(M){for(var $={},O=0,B=0;O<C;O+=1){var U=w[O];if(typeof U=="string")B+=U.length;else{var J=U.regex,Y=U.parser,N=M.slice(B),L=J.exec(N)[0];Y.call($,L),M=M.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,_){_.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var w=b.prototype,C=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 M=R[2]===!0,$=R[3]===!0,O=M||$,B=R[2];$&&(B=R[2]),l=this.$locale(),!M&&B&&(l=_.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,K=G.month,ee=G.day,ae=G.hours,fe=G.minutes,ne=G.seconds,ve=G.milliseconds,he=G.zone,ce=G.week,Z=new Date,H=ee||(Q||K?1:Z.getDate()),te=Q||Z.getFullYear(),de=0;Q&&!K||(de=K>0?K-1:Z.getMonth());var be,_e=ae||0,xe=fe||0,Oe=ne||0,De=ve||0;return he?new Date(Date.UTC(te,de,H,_e,xe,Oe,De+60*he.offset*1e3)):V?new Date(Date.UTC(te,de,H,_e,xe,Oe,De)):(be=new Date(te,de,H,_e,xe,Oe,De),ce&&(be=z(be).week(ce).toDate()),be)}catch{return new Date("")}}(k,I,T,_),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 U=I.length,J=1;J<=U;J+=1){R[1]=I[J-1];var Y=_.apply(this,R);if(Y.isValid()){this.$d=Y.$d,this.$L=Y.$L,this.init();break}J===U&&(this.$d=new Date(""))}else C.call(this,x)}}})})(BE);var wse=BE.exports;const B3=al(wse),VE=["hours","minutes","seconds"],br="EP_PICKER_BASE",V3="ElPopperOptions",zE=Symbol("commonPickerContextKey"),Hf="HH:mm:ss",hc="YYYY-MM-DD",_se={date:hc,dates:hc,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${hc} ${Hf}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:hc,datetimerange:`${hc} ${Hf}`},HE=(e,t)=>{const{lang:n}=Ot(),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(!Bk(e.modelValue,v)){let m;Ae(v)?m=v.map(b=>zk(b,e.valueFormat,n.value)):v&&(m=zk(v,e.valueFormat,n.value)),t(lt,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=>Vk(g,e.valueFormat,n.value)):m=Vk((v=e.modelValue)!=null?v:"",e.valueFormat,n.value),c.value.getRangeAvailableTime){const g=c.value.getRangeAvailableTime(m);Dn(g,m)||(m=g,r.value||i(Vg(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}}},z3=Me({disabledHours:{type:re(Function)},disabledMinutes:{type:re(Function)},disabledSeconds:{type:re(Function)}}),WE=Me({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),H3=Me({automaticDropdown:{type:Boolean,default:!0},id:{type:re([Array,String])},name:{type:re([Array,String])},popperClass:sn.popperClass,popperStyle:sn.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:re([String,Object]),default:Do},editable:{type:Boolean,default:!0},prefixIcon:{type:re([String,Object]),default:""},size:cs,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,...z3,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:ti,default:"bottom"},fallbackPlacements:{type:re(Array),default:["bottom","top","right","left"]},...Su,...ca(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),Cse=Me({id:{type:re(Array)},name:{type:re(Array)},modelValue:{type:re([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),Sse=["id","name","placeholder","value","disabled"],xse=["id","name","placeholder","value","disabled"];var kse=W({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:Cse,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const s=e,a=n,{formItem:o}=Es(),{inputId:r}=fo(Kt({id:E(()=>{var R;return(R=s.id)==null?void 0:R[0]})}),{formItemContext:o}),i=Rg(),l=ke("date"),c=ke("range"),u=F(),d=F(),{wrapperRef:h,isFocused:p}=tl(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)},_=R=>{a("startInput",R)},w=R=>{a("endInput",R)},C=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=d.value)==null||I.blur()}}),(R,I)=>(S(),P("div",{ref_key:"wrapperRef",ref:h,class:D([f(l).is("active",f(p)),R.$attrs.class]),style:Qe(R.$attrs.style),onClick:v,onMouseenter:m,onMouseleave:g,onTouchstartPassive:b},[ue(R.$slots,"prefix"),A("input",_t(f(i),{id:f(r),ref_key:"inputRef",ref:u,name:R.name&&R.name[0],placeholder:R.startPlaceholder,value:R.modelValue&&R.modelValue[0],class:f(c).b("input"),disabled:R.disabled,onInput:_,onChange:C}),null,16,Sse),ue(R.$slots,"range-separator"),A("input",_t(f(i),{id:R.id&&R.id[1],ref_key:"endInputRef",ref:d,name:R.name&&R.name[1],placeholder:R.endPlaceholder,value:R.modelValue&&R.modelValue[1],class:f(c).b("input"),disabled:R.disabled,onInput:w,onChange:x}),null,16,xse),ue(R.$slots,"suffix")],38))}}),jE=W({name:"Picker",__name:"picker",props:H3,emits:[lt,Rt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const s=e,a=n,o=zi(),r=ke("date"),i=ke("input"),l=ke("range"),{formItem:c}=Es(),u=We(V3,{}),d=_p(s,null),h=F(),p=F(),v=F(null);let m=!1;const g=On(),b=HE(s,a),{parsedValue:_,pickerActualVisible:w,userInput:C,pickerVisible:x,pickerOptions:k,valueIsEmpty:T,emitInput:R,onPick:I,onSetPickerOption:M,onCalendarChange:$,onPanelChange:O}=b,{isFocused:B,handleFocus:U,handleBlur:J}=tl(p,{disabled:g,beforeFocus(){return s.readonly},afterFocus(){s.automaticDropdown&&(x.value=!0)},beforeBlur(we){var Ge;return!m&&((Ge=h.value)==null?void 0:Ge.isFocusInsideContent(we))},afterBlur(){Je(),x.value=!1,m=!1,s.validateEvent&&(c==null||c.validate("blur").catch(we=>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"),be.value?"":l.em("close-icon","hidden")]);ge(x,we=>{we?Be(()=>{we&&(v.value=s.modelValue)}):(C.value=null,Be(()=>{V(s.modelValue)}))});const V=(we,Ge)=>{(Ge||!Bk(we,v.value))&&(a(Rt,we),Ge&&(v.value=we),s.validateEvent&&(c==null||c.validate("change").catch(St=>void 0)))},z=we=>{a("keydown",we)},G=E(()=>p.value?Array.from(p.value.$el.querySelectorAll("input")):[]),Q=(we,Ge,St)=>{const Zt=G.value;Zt.length&&(!St||St==="min"?(Zt[0].setSelectionRange(we,Ge),Zt[0].focus()):St==="max"&&(Zt[1].setSelectionRange(we,Ge),Zt[1].focus()))},K=()=>{w.value=!0},ee=()=>{a("visible-change",!0)},ae=()=>{w.value=!1,x.value=!1,a("visible-change",!1)},fe=()=>{x.value=!0},ne=()=>{x.value=!1},ve=E(()=>{const we=$e(_.value);return Ae(C.value)?[C.value[0]||we&&we[0]||"",C.value[1]||we&&we[1]||""]:C.value!==null?C.value:!ce.value&&T.value||!x.value&&T.value?"":we?Z.value||H.value||te.value?we.join(", "):we:""}),he=E(()=>s.type.includes("time")),ce=E(()=>s.type.startsWith("time")),Z=E(()=>s.type==="dates"),H=E(()=>s.type==="months"),te=E(()=>s.type==="years"),de=E(()=>s.prefixIcon||(he.value?Dy:jx)),be=E(()=>s.clearable&&!g.value&&!s.readonly&&!T.value&&(Y.value||B.value)),_e=we=>{s.readonly||g.value||(be.value&&(we==null||we.stopPropagation(),k.value.handleClear?k.value.handleClear():R(d.valueOnClear.value),V(d.valueOnClear.value,!0),ae()),a("clear"))},xe=async we=>{var Ge;s.readonly||g.value||(((Ge=we.target)==null?void 0:Ge.tagName)!=="INPUT"||B.value||!s.automaticDropdown)&&(x.value=!0)},Oe=()=>{s.readonly||g.value||!T.value&&s.clearable&&(Y.value=!0)},De=()=>{Y.value=!1},Ne=we=>{var Ge;s.readonly||g.value||(((Ge=we.touches[0].target)==null?void 0:Ge.tagName)!=="INPUT"||B.value||!s.automaticDropdown)&&(x.value=!0)},Ce=E(()=>s.type.includes("range")),Ie=ss(),Pe=E(()=>{var we,Ge;return(Ge=(we=f(h))==null?void 0:we.popperRef)==null?void 0:Ge.contentRef}),ze=Py(p,we=>{const Ge=f(Pe),St=ls(p);Ge&&(we.target===Ge||we.composedPath().includes(Ge))||we.target===St||St&&we.composedPath().includes(St)||(x.value=!1)});Xt(()=>{ze==null||ze()});const Je=()=>{if(C.value){const we=ot(ve.value);we&&(He(we)&&R(Vg(we)),C.value=null)}C.value===""&&(R(d.valueOnClear.value),V(d.valueOnClear.value,!0),C.value=null)},ot=we=>we?k.value.parseUserInput(we):null,$e=we=>we?Ae(we)?we.map(St=>St.format(s.format)):we.format(s.format):null,He=we=>k.value.isValidValue(we),et=async we=>{if(s.readonly||g.value)return;const Ge=on(we);if(z(we),Ge===Te.esc){x.value===!0&&(x.value=!1,we.preventDefault(),we.stopPropagation());return}if(Ge===Te.down&&(k.value.handleFocusPicker&&(we.preventDefault(),we.stopPropagation()),x.value===!1&&(x.value=!0,await Be()),k.value.handleFocusPicker)){k.value.handleFocusPicker();return}if(Ge===Te.tab){m=!0;return}if(Ge===Te.enter||Ge===Te.numpadEnter){x.value?(C.value===null||C.value===""||He(ot(ve.value)))&&(Je(),x.value=!1):x.value=!0,we.preventDefault(),we.stopPropagation();return}if(C.value){we.stopPropagation();return}k.value.handleKeydownInput&&k.value.handleKeydownInput(we)},Bt=we=>{C.value=we,x.value||(x.value=!0)},qt=we=>{const Ge=we.target;C.value?C.value=[Ge.value,C.value[1]]:C.value=[Ge.value,null]},st=we=>{const Ge=we.target;C.value?C.value=[C.value[0],Ge.value]:C.value=[null,Ge.value]},vt=()=>{var we;const Ge=C.value,St=ot(Ge&&Ge[0]),Zt=f(_);if(St&&St.isValid()){C.value=[$e(St),((we=ve.value)==null?void 0:we[1])||null];const Sn=[St,Zt&&(Zt[1]||null)];He(Sn)&&(R(Vg(Sn)),C.value=null)}},kt=()=>{var we;const Ge=f(C),St=ot(Ge&&Ge[1]),Zt=f(_);if(St&&St.isValid()){C.value=[((we=f(ve))==null?void 0:we[0])||null,$e(St)];const Sn=[Zt&&Zt[0],St];He(Sn)&&(R(Vg(Sn)),C.value=null)}},Se=()=>{var we;(we=p.value)==null||we.focus()},Ue=()=>{var we;(we=p.value)==null||we.blur()};return Mt(br,{props:s,emptyValues:d}),Mt(zE,b),t({focus:Se,blur:Ue,handleOpen:fe,handleClose:ne,onPick:I}),(we,Ge)=>(S(),le(f(As),_t({ref_key:"refPopper",ref:h,visible:f(x),effect:"light",pure:"",trigger:"click"},we.$attrs,{role:"dialog",teleported:"",transition:`${f(r).namespace.value}-zoom-in-top`,"popper-class":[`${f(r).namespace.value}-picker__popper`,we.popperClass],"popper-style":we.popperStyle,"popper-options":f(u),"fallback-placements":we.fallbackPlacements,"gpu-acceleration":!1,placement:we.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:K,onShow:ee,onHide:ae}),{default:X(()=>[Ce.value?(S(),le(kse,{key:1,id:we.id,ref_key:"inputRef",ref:p,"model-value":ve.value,name:we.name,disabled:f(g),readonly:!we.editable||we.readonly,"start-placeholder":we.startPlaceholder,"end-placeholder":we.endPlaceholder,class:D(N.value),style:Qe(we.$attrs.style),"aria-label":we.ariaLabel,tabindex:we.tabindex,autocomplete:"off",role:"combobox",onClick:xe,onFocus:f(U),onBlur:f(J),onStartInput:qt,onStartChange:vt,onEndInput:st,onEndChange:kt,onMousedown:xe,onMouseenter:Oe,onMouseleave:De,onTouchstartPassive:Ne,onKeydown:et},{prefix:X(()=>[de.value?(S(),le(f(Xe),{key:0,class:D([f(i).e("icon"),f(l).e("icon")])},{default:X(()=>[(S(),le(yt(de.value)))]),_:1},8,["class"])):ie("v-if",!0)]),"range-separator":X(()=>[ue(we.$slots,"range-separator",{},()=>[A("span",{class:D(f(l).b("separator"))},me(we.rangeSeparator),3)])]),suffix:X(()=>[we.clearIcon?(S(),le(f(Xe),{key:0,class:D(L.value),onMousedown:it(f(Yt),["prevent"]),onClick:_e},{default:X(()=>[(S(),le(yt(we.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(),le(f(ua),{key:0,id:we.id,ref_key:"inputRef",ref:p,"container-role":"combobox","model-value":ve.value,name:we.name,size:f(Ie),disabled:f(g),placeholder:we.placeholder,class:D([f(r).b("editor"),f(r).bm("editor",we.type),f(r).is("focus",f(x)),we.$attrs.class]),style:Qe(we.$attrs.style),readonly:!we.editable||we.readonly||Z.value||H.value||te.value||we.type==="week","aria-label":we.ariaLabel,tabindex:we.tabindex,"validate-event":!1,onInput:Bt,onFocus:f(U),onBlur:f(J),onKeydown:et,onChange:Je,onMousedown:xe,onMouseenter:Oe,onMouseleave:De,onTouchstartPassive:Ne,onClick:Ge[0]||(Ge[0]=it(()=>{},["stop"]))},{prefix:X(()=>[de.value?(S(),le(f(Xe),{key:0,class:D(f(i).e("icon")),onMousedown:it(xe,["prevent"]),onTouchstartPassive:Ne},{default:X(()=>[(S(),le(yt(de.value)))]),_:1},8,["class"])):ie("v-if",!0)]),suffix:X(()=>[be.value&&we.clearIcon?(S(),le(f(Xe),{key:0,class:D(`${f(i).e("icon")} clear-icon`),onMousedown:it(f(Yt),["prevent"]),onClick:_e},{default:X(()=>[(S(),le(yt(we.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(we.$slots,"default",{visible:f(x),actualVisible:f(w),parsedValue:f(_),format:we.format,dateFormat:we.dateFormat,timeFormat:we.timeFormat,unlinkPanels:we.unlinkPanels,type:we.type,defaultValue:we.defaultValue,showNow:we.showNow,showConfirm:we.showConfirm,showFooter:we.showFooter,showWeekNumber:we.showWeekNumber,onPick:Ge[1]||(Ge[1]=(...St)=>f(I)&&f(I)(...St)),onSelectRange:Q,onSetPickerOption:Ge[2]||(Ge[2]=(...St)=>f(M)&&f(M)(...St)),onCalendarChange:Ge[3]||(Ge[3]=(...St)=>f($)&&f($)(...St)),onClear:_e,onPanelChange:Ge[4]||(Ge[4]=(...St)=>f(O)&&f(O)(...St)),onMousedown:Ge[5]||(Ge[5]=it(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}});const Ese=Me({...WE,datetimeRole:String,parsedValue:{type:re(Object)}}),KE=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const s=(r,i,l,c)=>{const u={hour:e,minute:t,second:n};let d=r;return["hour","minute","second"].forEach(h=>{if(u[h]){let p;const v=u[h];switch(h){case"minute":{p=v(d.hour(),i,c);break}case"second":{p=v(d.hour(),d.minute(),i,c);break}default:{p=v(i,c);break}}if(p!=null&&p.length&&!p.includes(d[h]())){const m=l?0:p.length-1;d=d[h](p[m])}}}),d},a={};return{timePickerOptions:a,getAvailableTime:s,onSetOption:([r,i])=>{a[r]=i}}},W3=e=>{const t=(s,a)=>s||a,n=s=>s!==!0;return e.map(t).filter(n)},UE=(e,t,n)=>({getHoursList:(r,i)=>w3(24,e&&(()=>e==null?void 0:e(r,i))),getMinutesList:(r,i,l)=>w3(60,t&&(()=>t==null?void 0:t(r,i,l))),getSecondsList:(r,i,l,c)=>w3(60,n&&(()=>n==null?void 0:n(r,i,l,c)))}),qE=(e,t,n)=>{const{getHoursList:s,getMinutesList:a,getSecondsList:o}=UE(e,t,n);return{getAvailableHours:(c,u)=>W3(s(c,u)),getAvailableMinutes:(c,u,d)=>W3(a(c,u,d)),getAvailableSeconds:(c,u,d,h)=>W3(o(c,u,d,h))}},GE=e=>{const t=F(e.parsedValue);return ge(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Ase=Me({role:{type:String,required:!0},spinnerDate:{type:re(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:re(String),default:""},...z3}),Tse=100,Mse=600,Gg="_RepeatClick",Yg={beforeMount(e,t){const n=t.value,{interval:s=Tse,delay:a=Mse}=Ze(n)?{}:n;let o,r;const i=()=>Ze(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[Gg]={start:c,clear:l},e.addEventListener("mousedown",c)},unmounted(e){if(!e[Gg])return;const{start:t,clear:n}=e[Gg];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[Gg]=null}},Pse=["onClick"],Rse=["onMouseenter"];var j3=W({__name:"basic-time-spinner",props:Ase,emits:[Rt,"select-range","set-option"],setup(e,{emit:t}){const n=e,s=We(br),{isRange:a,format:o}=s.props,r=t,i=ke("time"),{getHoursList:l,getMinutesList:c,getSecondsList:u}=UE(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let d=!1;const h=F(),g={hours:F(),minutes:F(),seconds:F()},b=E(()=>n.showSeconds?VE:VE.slice(0,2)),_=E(()=>{const{spinnerDate:K}=n,ee=K.hour(),ae=K.minute(),fe=K.second();return{hours:ee,minutes:ae,seconds:fe}}),w=E(()=>{const{hours:K,minutes:ee}=f(_),{role:ae,spinnerDate:fe}=n,ne=a?void 0:fe;return{hours:l(ae,ne),minutes:c(K,ae,ne),seconds:u(K,ee,ae,ne)}}),C=E(()=>{const{hours:K,minutes:ee,seconds:ae}=f(_);return{hours:y3(K,23),minutes:y3(ee,59),seconds:y3(ae,59)}}),x=Zr(K=>{d=!1,R(K)},200),k=K=>{if(!!!n.amPmMode)return"";const ae=n.amPmMode==="A";let fe=K<12?" am":" pm";return ae&&(fe=fe.toUpperCase()),fe},T=K=>{let ee=[0,0];const ae=o||Hf,fe=ae.indexOf("HH"),ne=ae.indexOf("mm"),ve=ae.indexOf("ss");switch(K){case"hours":fe!==-1&&(ee=[fe,fe+2]);break;case"minutes":ne!==-1&&(ee=[ne,ne+2]);break;case"seconds":ve!==-1&&(ee=[ve,ve+2]);break}const[he,ce]=ee;r("select-range",he,ce),h.value=K},R=K=>{$(K,f(_)[K])},I=()=>{R("hours"),R("minutes"),R("seconds")},M=K=>K.querySelector(`.${i.namespace.value}-scrollbar__wrap`),$=(K,ee)=>{if(n.arrowControl)return;const ae=f(g[K]);ae&&ae.$el&&(M(ae.$el).scrollTop=Math.max(0,ee*O(K)))},O=K=>{const ee=f(g[K]),ae=ee==null?void 0:ee.$el.querySelector("li");return ae&&Number.parseFloat(Xi(ae,"height"))||0},B=()=>{J(1)},U=()=>{J(-1)},J=K=>{h.value||T("hours");const ee=h.value,ae=f(_)[ee],fe=h.value==="hours"?24:60,ne=Y(ee,ae,K,fe);N(ee,ne),$(ee,ne),Be(()=>T(ee))},Y=(K,ee,ae,fe)=>{let ne=(ee+ae+fe)%fe;const ve=f(w)[K];for(;ve[ne]&&ne!==ee;)ne=(ne+ae+fe)%fe;return ne},N=(K,ee)=>{if(f(w)[K][ee])return;const{hours:ne,minutes:ve,seconds:he}=f(_);let ce;switch(K){case"hours":ce=n.spinnerDate.hour(ee).minute(ve).second(he);break;case"minutes":ce=n.spinnerDate.hour(ne).minute(ee).second(he);break;case"seconds":ce=n.spinnerDate.hour(ne).minute(ve).second(ee);break}r(Rt,ce)},L=(K,{value:ee,disabled:ae})=>{ae||(N(K,ee),T(K),$(K,ee))},V=K=>{const ee=f(g[K]);if(!ee)return;d=!0,x(K);const ae=Math.min(Math.round((M(ee.$el).scrollTop-(z(K)*.5-10)/O(K)+3)/O(K)),K==="hours"?23:59);N(K,ae)},z=K=>f(g[K]).$el.offsetHeight,G=()=>{const K=ee=>{const ae=f(g[ee]);ae&&ae.$el&&(M(ae.$el).onscroll=()=>{V(ee)})};K("hours"),K("minutes"),K("seconds")};xt(()=>{Be(()=>{!n.arrowControl&&G(),I(),n.role==="start"&&T("hours")})});const Q=(K,ee)=>{g[ee].value=K??void 0};return r("set-option",[`${n.role}_scrollDown`,J]),r("set-option",[`${n.role}_emitSelectRange`,T]),ge(()=>n.spinnerDate,()=>{d||I()}),(K,ee)=>(S(),P("div",{class:D([f(i).b("spinner"),{"has-seconds":K.showSeconds}])},[K.arrowControl?ie("v-if",!0):(S(!0),P(Ve,{key:0},wt(b.value,ae=>(S(),le(f(vr),{key:ae,ref_for:!0,ref:fe=>Q(fe,ae),class:D(f(i).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":f(i).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:fe=>T(ae),onMousemove:fe=>R(ae)},{default:X(()=>[(S(!0),P(Ve,null,wt(w.value[ae],(fe,ne)=>(S(),P("li",{key:ne,class:D([f(i).be("spinner","item"),f(i).is("active",ne===_.value[ae]),f(i).is("disabled",fe)]),onClick:ve=>L(ae,{value:ne,disabled:fe})},[ae==="hours"?(S(),P(Ve,{key:0},[Ke(me(("0"+(K.amPmMode?ne%12||12:ne)).slice(-2))+me(k(ne)),1)],64)):(S(),P(Ve,{key:1},[Ke(me(("0"+ne).slice(-2)),1)],64))],10,Pse))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),K.arrowControl?(S(!0),P(Ve,{key:1},wt(b.value,ae=>(S(),P("div",{key:ae,class:D([f(i).be("spinner","wrapper"),f(i).is("arrow")]),onMouseenter:fe=>T(ae)},[bt((S(),le(f(Xe),{class:D(["arrow-up",f(i).be("spinner","arrow")])},{default:X(()=>[j(f(xp))]),_:1},8,["class"])),[[f(Yg),U]]),bt((S(),le(f(Xe),{class:D(["arrow-down",f(i).be("spinner","arrow")])},{default:X(()=>[j(f(pr))]),_:1},8,["class"])),[[f(Yg),B]]),A("ul",{class:D(f(i).be("spinner","list"))},[(S(!0),P(Ve,null,wt(C.value[ae],(fe,ne)=>(S(),P("li",{key:ne,class:D([f(i).be("spinner","item"),f(i).is("active",fe===_.value[ae]),f(i).is("disabled",w.value[ae][fe])])},[f(nt)(fe)?(S(),P(Ve,{key:0},[ae==="hours"?(S(),P(Ve,{key:0},[Ke(me(("0"+(K.amPmMode?fe%12||12:fe)).slice(-2))+me(k(fe)),1)],64)):(S(),P(Ve,{key:1},[Ke(me(("0"+fe).slice(-2)),1)],64))],64)):ie("v-if",!0)],2))),128))],2)],42,Rse))),128)):ie("v-if",!0)],2))}}),Xg=W({__name:"panel-time-pick",props:Ese,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=t,a=We(br),{arrowControl:o,disabledHours:r,disabledMinutes:i,disabledSeconds:l,defaultValue:c}=a.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:h}=qE(r,i,l),p=ke("time"),{t:v,lang:m}=Ot(),g=F([0,2]),b=GE(n),_=E(()=>Dt(n.actualVisible)?`${p.namespace.value}-zoom-in-top`:""),w=E(()=>n.format.includes("ss")),C=E(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),x=L=>{const V=pt(L).locale(m.value),z=J(V);return V.isSame(z)},k=()=>{const L=b.value;s("pick",L,!1),Be(()=>{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]},M=L=>{const V=n.format,z=V.indexOf("HH"),G=V.indexOf("mm"),Q=V.indexOf("ss"),K=[],ee=[];z!==-1&&(K.push(z),ee.push("hours")),G!==-1&&(K.push(G),ee.push("minutes")),Q!==-1&&w.value&&(K.push(Q),ee.push("seconds"));const fe=(K.indexOf(g.value[0])+L+K.length)%K.length;O.start_emitSelectRange(ee[fe])},$=L=>{const V=on(L),{left:z,right:G,up:Q,down:K}=Te;if([z,G].includes(V)){M(V===z?-1:1),L.preventDefault();return}if([Q,K].includes(V)){const ee=V===Q?-1:1;O.start_scrollDown(ee),L.preventDefault();return}},{timePickerOptions:O,onSetOption:B,getAvailableTime:U}=KE({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:h}),J=L=>U(L,n.datetimeRole||"",!0),Y=L=>L?pt(L,n.format).locale(m.value):null,N=()=>pt(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(),le(ys,{name:_.value},{default:X(()=>[L.actualVisible||L.visible?(S(),P("div",{key:0,class:D(f(p).b("panel"))},[A("div",{class:D([f(p).be("panel","content"),{"has-seconds":w.value}])},[j(j3,{ref:"spinner",role:L.datetimeRole||"start","arrow-control":f(o),"show-seconds":w.value,"am-pm-mode":C.value,"spinner-date":L.parsedValue,"disabled-hours":f(r),"disabled-minutes":f(i),"disabled-seconds":f(l),onChange:R,onSetOption:f(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(f(p).be("panel","footer"))},[A("button",{type:"button",class:D([f(p).be("panel","btn"),"cancel"]),onClick:k},me(f(v)("el.datepicker.cancel")),3),A("button",{type:"button",class:D([f(p).be("panel","btn"),"confirm"]),onClick:V[0]||(V[0]=z=>T())},me(f(v)("el.datepicker.confirm")),3)],2)],2)):ie("v-if",!0)]),_:1},8,["name"]))}});const Ise=Me({...WE,parsedValue:{type:re(Array)}}),Ose=["disabled"];var Lse=W({__name:"panel-time-range",props:Ise,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=t,a=(Z,H)=>{const te=[];for(let de=Z;de<=H;de++)te.push(de);return te},{t:o,lang:r}=Ot(),i=ke("time"),l=ke("picker"),c=We(br),{arrowControl:u,disabledHours:d,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]),_=E(()=>n.parsedValue[1]),w=GE(n),C=()=>{const Z=w.value;s("pick",Z,!1),Be(()=>{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,_.value],Z)},R=Z=>{$(Z.millisecond(0),_.value)},I=Z=>{$(b.value,Z.millisecond(0))},M=Z=>{const H=Z.map(de=>pt(de).locale(r.value)),te=Q(H);return H[0].isSame(te[0])&&H[1].isSame(te[1])},$=(Z,H)=>{n.visible&&s("pick",[Z,H],!0)},O=E(()=>b.value>_.value),B=F([0,2]),U=(Z,H)=>{s("select-range",Z,H,"min"),B.value=[Z,H]},J=E(()=>x.value?11:8),Y=(Z,H)=>{s("select-range",Z,H,"max");const te=f(J);B.value=[Z+te,H+te]},N=Z=>{const H=x.value?[0,3,6,11,14,17]:[0,3,8,11],te=["hours","minutes"].concat(x.value?["seconds"]:[]),be=(H.indexOf(B.value[0])+Z+H.length)%H.length,_e=H.length/2;be<_e?fe.start_emitSelectRange(te[be]):fe.end_emitSelectRange(te[be-_e])},L=Z=>{const H=on(Z),{left:te,right:de,up:be,down:_e}=Te;if([te,de].includes(H)){N(H===te?-1:1),Z.preventDefault();return}if([be,_e].includes(H)){const xe=H===be?-1:1,Oe=B.value[0]<J.value?"start":"end";fe[`${Oe}_scrollDown`](xe),Z.preventDefault();return}},V=(Z,H)=>{const te=d?d(Z):[],de=Z==="start",_e=(H||(de?_.value:b.value)).hour(),xe=de?a(_e+1,23):a(0,_e-1);return Ay(te,xe)},z=(Z,H,te)=>{const de=h?h(Z,H):[],be=H==="start",_e=te||(be?_.value:b.value),xe=_e.hour();if(Z!==xe)return de;const Oe=_e.minute(),De=be?a(Oe+1,59):a(0,Oe-1);return Ay(de,De)},G=(Z,H,te,de)=>{const be=p?p(Z,H,te):[],_e=te==="start",xe=de||(_e?_.value:b.value),Oe=xe.hour(),De=xe.minute();if(Z!==Oe||H!==De)return be;const Ne=xe.second(),Ce=_e?a(Ne+1,59):a(0,Ne-1);return Ay(be,Ce)},Q=([Z,H])=>[ne(Z,"start",!0,H),ne(H,"end",!1,Z)],{getAvailableHours:K,getAvailableMinutes:ee,getAvailableSeconds:ae}=qE(V,z,G),{timePickerOptions:fe,getAvailableTime:ne,onSetOption:ve}=KE({getAvailableHours:K,getAvailableMinutes:ee,getAvailableSeconds:ae}),he=Z=>Z?Ae(Z)?Z.map(H=>pt(H,n.format).locale(r.value)):pt(Z,n.format).locale(r.value):null,ce=()=>{if(Ae(v))return v.map(H=>pt(H).locale(r.value));const Z=pt(v).locale(r.value);return[Z,Z.add(60,"m")]};return s("set-picker-option",["parseUserInput",he]),s("set-picker-option",["isValidValue",M]),s("set-picker-option",["handleKeydownInput",L]),s("set-picker-option",["getDefaultValue",ce]),s("set-picker-option",["getRangeAvailableTime",Q]),(Z,H)=>Z.actualVisible?(S(),P("div",{key:0,class:D([f(i).b("range-picker"),f(l).b("panel")])},[A("div",{class:D(f(i).be("range-picker","content"))},[A("div",{class:D(f(i).be("range-picker","cell"))},[A("div",{class:D(f(i).be("range-picker","header"))},me(f(o)("el.datepicker.startTime")),3),A("div",{class:D(m.value)},[j(j3,{ref:"minSpinner",role:"start","show-seconds":x.value,"am-pm-mode":k.value,"arrow-control":f(u),"spinner-date":b.value,"disabled-hours":V,"disabled-minutes":z,"disabled-seconds":G,onChange:R,onSetOption:f(ve),onSelectRange:U},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),A("div",{class:D(f(i).be("range-picker","cell"))},[A("div",{class:D(f(i).be("range-picker","header"))},me(f(o)("el.datepicker.endTime")),3),A("div",{class:D(g.value)},[j(j3,{ref:"maxSpinner",role:"end","show-seconds":x.value,"am-pm-mode":k.value,"arrow-control":f(u),"spinner-date":_.value,"disabled-hours":V,"disabled-minutes":z,"disabled-seconds":G,onChange:I,onSetOption:f(ve),onSelectRange:Y},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),A("div",{class:D(f(i).be("panel","footer"))},[A("button",{type:"button",class:D([f(i).be("panel","btn"),"cancel"]),onClick:H[0]||(H[0]=te=>C())},me(f(o)("el.datepicker.cancel")),3),A("button",{type:"button",class:D([f(i).be("panel","btn"),"confirm"]),disabled:O.value,onClick:H[1]||(H[1]=te=>T())},me(f(o)("el.datepicker.confirm")),11,Ose)],2)],2)):ie("v-if",!0)}});pt.extend(B3);var Nse=W({name:"ElTimePicker",install:null,props:{...H3,isRange:Boolean},emits:[lt],setup(e,t){const n=F(),[s,a]=e.isRange?["timerange",Lse]:["time",Xg],o=r=>t.emit(lt,r);return Mt(V3,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 j(jE,_t(e,{ref:n,type:s,format:i,"onUpdate:modelValue":o}),{default:l=>j(a,l,null)})}}});const $se=ht(Nse);var YE={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,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(d){switch(d){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(),d==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),d==="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 d}});return o.bind(this)(u)}}})})(YE);var Dse=YE.exports;const Fse=al(Dse);var XE={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,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),d=r(this).endOf(n);if(u.isBefore(d))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)}}})})(XE);var Bse=XE.exports;const Vse=al(Bse);var JE={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,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}}})})(JE);var zse=JE.exports;const Hse=al(zse);var ZE={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,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")}}})})(ZE);var Wse=ZE.exports;const jse=al(Wse);var QE={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){return function(n,s){s.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}})})(QE);var Kse=QE.exports;const Use=al(Kse);var eA={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(sl,function(){return function(n,s){s.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}})})(eA);var qse=eA.exports;const Gse=al(qse),Yse=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,...z3,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}}),K3=Symbol("rootPickerContextKey"),Wp="ElIsDefaultFormat",Xse=["date","dates","year","years","month","months","week","range"],U3=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}),tA=Me({type:{type:re(String),required:!0,values:Iee},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}}),q3=Me({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:re(Array)}}),G3=e=>({type:String,values:Xse,default:e}),Jse=Me({...tA,parsedValue:{type:re([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),jp=e=>{if(!Ae(e))return!1;const[t,n]=e;return pt.isDayjs(t)&&pt.isDayjs(n)&&pt(t).isValid()&&pt(n).isValid()&&t.isSameOrBefore(n)},Jg=(e,{lang:t,step:n=1,unit:s,unlinkPanels:a})=>{let o;if(Ae(e)){let[r,i]=e.map(l=>pt(l).locale(t));return a||(i=r.add(n,s)),[r,i]}else e?o=pt(e):o=pt();return o=o.locale(t),[o,o.add(n,s)]},Zse=(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 d=t[u];for(let h=0;h<e.column;h++){let p=d[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}),d[h+n]=p}c==null||c(d)}},Zg=(e,t,n,s)=>{const a=pt().locale(s).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second()),o=a.daysInMonth();return lc(o).map(r=>a.add(r,"day").toDate())},Wf=(e,t,n,s,a)=>{const o=pt().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),r=Zg(e,t,n,s).find(i=>!(a!=null&&a(i)));return r?pt(r).locale(s):o.locale(s)},Qg=(e,t,n)=>{const s=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const a=e.month();if(!Zg(e,s,a,t).every(n))return Wf(e,s,a,t,n);for(let o=0;o<12;o++)if(!Zg(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(Ye(e)){const a=s!=null&&s.value?pt(e):pt(e,t);if(!a.isValid())return a}return pt(e,t).locale(n)},Qse=Me({...U3,showWeekNumber:Boolean,selectionMode:G3("date")}),eae=["changerange","pick","select"],e1=(e="")=>["normal","today"].includes(e),tae=(e,t)=>{const{lang:n}=Ot(),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()),d=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(()=>cg(f(C)).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"?da(e.parsedValue):[]),b=(V,{count:z,rowIndex:G,columnIndex:Q})=>{const{startOfMonthDay:K,dateCountOfMonth:ee,dateCountOfLastMonth:ae}=f(m),fe=f(d);if(G>=0&&G<=1){const ne=K+fe<0?7+K+fe:K+fe;if(Q+G*7>=ne)return V.text=z,!0;V.text=ae-(ne-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},_=(V,{columnIndex:z,rowIndex:G},Q)=>{const{disabledDate:K,cellClassName:ee}=e,ae=f(g),fe=b(V,{count:Q,rowIndex:G,columnIndex:z}),ne=V.dayjs.toDate();return V.selected=ae.find(ve=>ve.isSame(V.dayjs,"day")),V.isSelected=!!V.selected,V.isCurrent=k(V),V.disabled=K==null?void 0:K(ne),V.customClass=ee==null?void 0:ee(ne),fe},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}},C=E(()=>{const{minDate:V,maxDate:z,rangeState:G,showWeekNumber:Q}=e,K=f(d),ee=f(i),ae="day";let fe=1;if(Zse({row:6,column:7},ee,{startDate:V,columnIndexOffset:Q?1:0,nextEndDate:G.endDate||z||G.selecting&&V||null,now:pt().locale(f(n)).startOf(ae),unit:ae,relativeDateGetter:ne=>f(h).add(ne-K,ae),setCellMetadata:(...ne)=>{_(...ne,fe)&&(fe+=1)},setRowMetadata:w}),Q)for(let ne=0;ne<6;ne++)ee[ne][1].dayjs&&(ee[ne][0]={type:"week",text:ee[ne][1].dayjs.week()});return ee});ge(()=>e.date,async()=>{var V;(V=f(s))!=null&&V.contains(document.activeElement)&&(await Be(),await x())});const x=async()=>{var V;return(V=f(a))==null?void 0:V.focus()},k=V=>e.selectionMode==="date"&&e1(V.type)&&T(V,e.parsedValue),T=(V,z)=>z?pt(z).locale(f(n)).isSame(e.date.date(Number(V.text)),"day"):!1,R=(V,z)=>{const G=f(m).startOfMonthDay,Q=f(d),K=G+Q<0?7+G+Q:G+Q,ee=V*7+(z-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(K,"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,K=G.cellIndex;f(C)[Q][K].disabled||(Q!==f(o)||K!==f(r))&&(o.value=Q,r.value=K,t("changerange",{selecting:!0,endDate:R(Q,K)}))},M=V=>!f(v)&&(V==null?void 0:V.text)===1&&e1(V.type)||V.isCurrent,$=V=>{l||f(v)||e.selectionMode!=="date"||N(V,!0)},O=V=>{V.target.closest("td")&&(l=!0)},B=V=>{V.target.closest("td")&&(l=!1)},U=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?da(e.parsedValue).filter(Q=>(Q==null?void 0:Q.valueOf())!==V.valueOf()):da(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,K=G.cellIndex,ee=f(C)[Q][K];if(ee.disabled||ee.type==="week")return;const ae=R(Q,K);switch(e.selectionMode){case"range":{U(ae);break}case"date":{t("pick",ae,z);break}case"week":{J(ae);break}case"dates":{Y(ae,!!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:C,tbodyRef:s,currentCellRef:a,focus:x,isCurrent:k,isWeekActive:L,isSelectedCell:M,handlePickDate:N,handleMouseUp:B,handleMouseDown:O,handleMouseMove:I,handleFocus:$}},nae=(e,{isCurrent:t,isWeekActive:n})=>{const s=ke("date-table"),{t:a}=Ot(),o=E(()=>[s.b(),s.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),r=E(()=>a("el.datepicker.dateTablePrompt")),i=c=>{const u=[];return e1(c.type)&&!c.disabled?(u.push("available"),c.type==="today"&&u.push("today")):u.push(c.type),t(c)&&u.push("current"),c.inRange&&(e1(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}},sae=Me({cell:{type:re(Object)}});var Y3=W({name:"ElDatePickerCell",props:sae,setup(e){const t=ke("date-table-cell"),{slots:n}=We(K3);return()=>{const{cell:s}=e;return ue(n,"default",{...s},()=>{var a;return[j("div",{class:t.b()},[j("span",{class:t.e("text")},[(a=s==null?void 0:s.renderText)!=null?a:s==null?void 0:s.text])])]})}}});const aae=["aria-label"],oae=["aria-label"],rae=["aria-current","aria-selected","tabindex","aria-disabled"];var X3=W({__name:"basic-date-table",props:Qse,emits:eae,setup(e,{expose:t,emit:n}){const s=e,a=n,{WEEKS:o,rows:r,tbodyRef:i,currentCellRef:l,focus:c,isCurrent:u,isWeekActive:d,isSelectedCell:h,handlePickDate:p,handleMouseUp:v,handleMouseDown:m,handleMouseMove:g,handleFocus:b}=tae(s,a),{tableLabel:_,tableKls:w,getCellClasses:C,getRowKls:x,weekHeaderClass:k,t:T}=nae(s,{isCurrent:u,isWeekActive:d});let R=!1;return Xt(()=>{R=!0}),t({focus:c}),(I,M)=>(S(),P("table",{"aria-label":f(_),class:D(f(w)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:M[1]||(M[1]=(...$)=>f(p)&&f(p)(...$)),onMousemove:M[2]||(M[2]=(...$)=>f(g)&&f(g)(...$)),onMousedown:M[3]||(M[3]=(...$)=>f(m)&&f(m)(...$)),onMouseup:M[4]||(M[4]=(...$)=>f(v)&&f(v)(...$))},[A("tbody",{ref_key:"tbodyRef",ref:i},[A("tr",null,[I.showWeekNumber?(S(),P("th",{key:0,scope:"col",class:D(f(k))},null,2)):ie("v-if",!0),(S(!0),P(Ve,null,wt(f(o),($,O)=>(S(),P("th",{key:O,"aria-label":f(T)("el.datepicker.weeksFull."+$),scope:"col"},me(f(T)("el.datepicker.weeks."+$)),9,oae))),128))]),(S(!0),P(Ve,null,wt(f(r),($,O)=>(S(),P("tr",{key:O,class:D(f(x)(I.showWeekNumber?$[2]:$[1]))},[(S(!0),P(Ve,null,wt($,(B,U)=>(S(),P("td",{key:`${O}.${U}`,ref_for:!0,ref:J=>!f(R)&&f(h)(B)&&(l.value=J),class:D(f(C)(B)),"aria-current":B.isCurrent?"date":void 0,"aria-selected":B.isCurrent,tabindex:I.disabled?void 0:f(h)(B)?0:-1,"aria-disabled":I.disabled,onFocus:M[0]||(M[0]=(...J)=>f(b)&&f(b)(...J))},[j(f(Y3),{cell:B},null,8,["cell"])],42,rae))),128))],2))),128))],512)],42,aae))}});const iae=Me({...U3,selectionMode:G3("month")}),lae=["aria-label"],cae=["aria-selected","aria-label","tabindex","onKeydown"];var Kp=W({__name:"basic-month-table",props:iae,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=e,a=n,o=ke("month-table"),{t:r,lang:i}=Ot(),l=F(),c=F(),u=F(s.date.locale("en").localeData().monthsShort().map(C=>C.toLowerCase())),d=F([[],[],[]]),h=F(),p=F(),v=E(()=>{var C,x,k;const T=d.value,R=pt().locale(i.value).startOf("month");for(let I=0;I<3;I++){const M=T[I];for(let $=0;$<4;$++){const O=M[$]||(M[$]={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+$,U=s.date.startOf("year").month(B),J=s.rangeState.endDate||s.maxDate||s.rangeState.selecting&&s.minDate||null;O.inRange=!!(s.minDate&&U.isSameOrAfter(s.minDate,"month")&&J&&U.isSameOrBefore(J,"month"))||!!(s.minDate&&U.isSameOrBefore(s.minDate,"month")&&J&&U.isSameOrAfter(J,"month")),(C=s.minDate)!=null&&C.isSameOrAfter(J)?(O.start=!!(J&&U.isSame(J,"month")),O.end=s.minDate&&U.isSame(s.minDate,"month")):(O.start=!!(s.minDate&&U.isSame(s.minDate,"month")),O.end=!!(J&&U.isSame(J,"month"))),R.isSame(U)&&(O.type="today");const N=U.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=U,O.timestamp=U.valueOf(),O.isSelected=b(O)}}return T}),m=()=>{var C;(C=c.value)==null||C.focus()},g=C=>{const x={},k=s.date.year(),T=new Date,R=C.text;return x.disabled=s.disabled||(s.disabledDate?Zg(s.date,k,R,i.value).every(s.disabledDate):!1),x.current=da(s.parsedValue).some(I=>pt.isDayjs(I)&&I.year()===k&&I.month()===R),x.today=T.getFullYear()===k&&T.getMonth()===R,C.customClass&&(x[C.customClass]=!0),C.inRange&&(x["in-range"]=!0,C.start&&(x["start-date"]=!0),C.end&&(x["end-date"]=!0)),x},b=C=>{const x=s.date.year(),k=C.text;return da(s.date).some(T=>T.year()===x&&T.month()===k)},_=C=>{var x;if(!s.rangeState.selecting)return;let k=C.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=C=>{var x;if(s.disabled)return;const k=(x=C.target)==null?void 0:x.closest("td");if((k==null?void 0:k.tagName)!=="TD"||ei(k,"disabled"))return;const T=k.cellIndex,I=k.parentNode.rowIndex*4+T,M=s.date.startOf("year").month(I);if(s.selectionMode==="months"){if(C.type==="keydown"){a("pick",da(s.parsedValue),!1);return}const $=Wf(s.date,s.date.year(),I,i.value,s.disabledDate),O=ei(k,"current")?da(s.parsedValue).filter(B=>(B==null?void 0:B.year())!==$.year()||(B==null?void 0:B.month())!==$.month()):da(s.parsedValue).concat([pt($)]);a("pick",O)}else s.selectionMode==="range"?s.rangeState.selecting?(s.minDate&&M>=s.minDate?a("pick",{minDate:s.minDate,maxDate:M}):a("pick",{minDate:M,maxDate:s.minDate}),a("select",!1)):(a("pick",{minDate:M,maxDate:null}),a("select",!0)):a("pick",I)};return ge(()=>s.date,async()=>{var C,x;(C=l.value)!=null&&C.contains(document.activeElement)&&(await Be(),(x=c.value)==null||x.focus())}),t({focus:m}),(C,x)=>(S(),P("table",{role:"grid","aria-label":f(r)("el.datepicker.monthTablePrompt"),class:D(f(o).b()),onClick:w,onMousemove:_},[A("tbody",{ref_key:"tbodyRef",ref:l},[(S(!0),P(Ve,null,wt(v.value,(k,T)=>(S(),P("tr",{key:T},[(S(!0),P(Ve,null,wt(k,(R,I)=>(S(),P("td",{key:I,ref_for:!0,ref:M=>R.isSelected&&(c.value=M),class:D(g(R)),"aria-selected":!!R.isSelected,"aria-label":f(r)(`el.datepicker.month${+R.text+1}`),tabindex:R.isSelected?0:-1,onKeydown:[$n(it(w,["prevent","stop"]),["space"]),$n(it(w,["prevent","stop"]),["enter"])]},[j(f(Y3),{cell:{...R,renderText:f(r)("el.datepicker.months."+u.value[R.text])}},null,8,["cell"])],42,cae))),128))]))),128))],512)],42,lae))}});const uae=Me({...U3,selectionMode:G3("year")}),dae=["aria-label"],fae=["aria-selected","aria-label","tabindex","onKeydown"];var Up=W({__name:"basic-year-table",props:uae,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=(x,k)=>{const T=pt(String(x)).locale(k).startOf("year"),I=T.endOf("year").dayOfYear();return lc(I).map(M=>T.add(M,"day").toDate())},a=e,o=n,r=ke("year-table"),{t:i,lang:l}=Ot(),c=F(),u=F(),d=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=pt().locale(l.value).startOf("year");for(let M=0;M<3;M++){const $=R[M];for(let O=0;O<4&&!(M*4+O>=10);O++){let B=$[O];B||(B={row:M,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 U=M*4+O+d.value,J=pt().year(U),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=U;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=_(B),$[O]=B}}return R}),g=()=>{var x;(x=u.value)==null||x.focus()},b=x=>{const k={},T=pt().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=da(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},_=x=>{const k=x.text;return da(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||ei(T,"disabled"))return;const R=T.cellIndex,M=T.parentNode.rowIndex*4+R+d.value,$=pt().year(M);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",da(a.parsedValue),!1);return}const O=Qg($.startOf("year"),l.value,a.disabledDate),B=ei(T,"current")?da(a.parsedValue).filter(U=>(U==null?void 0:U.year())!==M):da(a.parsedValue).concat([O]);o("pick",B)}else o("pick",M)},C=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:pt().year(d.value).add(R*4+I,"year")}))};return ge(()=>a.date,async()=>{var x,k;(x=c.value)!=null&&x.contains(document.activeElement)&&(await Be(),(k=u.value)==null||k.focus())}),t({focus:g}),(x,k)=>(S(),P("table",{role:"grid","aria-label":f(i)("el.datepicker.yearTablePrompt"),class:D(f(r).b()),onClick:w,onMousemove:C},[A("tbody",{ref_key:"tbodyRef",ref:c},[(S(!0),P(Ve,null,wt(m.value,(T,R)=>(S(),P("tr",{key:R},[(S(!0),P(Ve,null,wt(T,(I,M)=>(S(),P("td",{key:`${R}_${M}`,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:[$n(it(w,["prevent","stop"]),["space"]),$n(it(w,["prevent","stop"]),["enter"])]},[j(f(Y3),{cell:I},null,8,["cell"])],42,fae))),128))]))),128))],512)],42,dae))}});const hae=["disabled","onClick"],pae=["aria-label","disabled"],vae=["aria-label","disabled"],mae=["tabindex","aria-disabled"],gae=["tabindex","aria-disabled"],bae=["aria-label","disabled"],yae=["aria-label","disabled"];var wae=W({__name:"panel-date-pick",props:Jse,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(Se,Ue,we)=>!0,s=e,a=t,o=ke("picker-panel"),r=ke("date-picker"),i=zi(),l=Wn(),{t:c,lang:u}=Ot(),d=We(br),h=We(Wp,void 0),{shortcuts:p,disabledDate:v,cellClassName:m,defaultTime:g}=d.props,b=Qt(d.props,"defaultValue"),_=F(),w=F(pt().locale(u.value)),C=F(!1);let x=!1;const k=E(()=>pt(g).locale(u.value)),T=E(()=>w.value.month()),R=E(()=>w.value.year()),I=F([]),M=F(null),$=F(null),O=Se=>I.value.length>0?n(Se,I.value,s.format||"HH:mm:ss"):!0,B=Se=>g&&!Oe.value&&!C.value&&!x?k.value.year(Se.year()).month(Se.month()).date(Se.date()):he.value?Se.millisecond(0):Se.startOf("day"),U=(Se,...Ue)=>{if(!Se)a("pick",Se,...Ue);else if(Ae(Se)){const we=Se.map(B);a("pick",we,...Ue)}else a("pick",B(Se),...Ue);M.value=null,$.value=null,C.value=!1,x=!1},J=async(Se,Ue)=>{if(G.value==="date"&&pt.isDayjs(Se)){const we=Bp(s.parsedValue);let Ge=we?we.year(Se.year()).month(Se.month()).date(Se.date()):Se;O(Ge),w.value=Ge,U(Ge,he.value||Ue)}else G.value==="week"?U(Se.date):G.value==="dates"&&U(Se,!0)},Y=Se=>{const Ue=Se?"add":"subtract";w.value=w.value[Ue](1,"month"),kt("month")},N=Se=>{const Ue=w.value,we=Se?"add":"subtract";w.value=L.value==="year"?Ue[we](10,"year"):Ue[we](1,"year"),kt("year")},L=F("date"),V=E(()=>{const Se=c("el.datepicker.year");if(L.value==="year"){const Ue=Math.floor(R.value/10)*10;return Se?`${Ue} ${Se} - ${Ue+9} ${Se}`:`${Ue} - ${Ue+9}`}return`${R.value} ${Se}`}),z=Se=>{const Ue=Ze(Se.value)?Se.value():Se.value;if(Ue){x=!0,U(pt(Ue).locale(u.value));return}Se.onClick&&Se.onClick({attrs:i,slots:l,emit:a})},G=E(()=>{const{type:Se}=s;return["week","month","months","year","years","dates"].includes(Se)?Se:"date"}),Q=E(()=>G.value==="dates"||G.value==="months"||G.value==="years"),K=E(()=>G.value==="date"?L.value:G.value),ee=E(()=>!!p.length),ae=async(Se,Ue)=>{G.value==="month"?(w.value=Wf(w.value,w.value.year(),Se,u.value,v),U(w.value,!1)):G.value==="months"?U(Se,Ue??!0):(w.value=Wf(w.value,w.value.year(),Se,u.value,v),L.value="date",["month","year","date","week"].includes(G.value)&&(U(w.value,!0),await Be(),Bt())),kt("month")},fe=async(Se,Ue)=>{if(G.value==="year"){const we=w.value.startOf("year").year(Se);w.value=Qg(we,u.value,v),U(w.value,!1)}else if(G.value==="years")U(Se,Ue??!0);else{const we=w.value.year(Se);w.value=Qg(we,u.value,v),L.value="month",["month","year","date","week"].includes(G.value)&&(U(w.value,!0),await Be(),Bt())}kt("year")},ne=On(),ve=async Se=>{ne.value||(L.value=Se,await Be(),Bt())},he=E(()=>s.type==="datetime"||s.type==="datetimerange"),ce=E(()=>{const Se=he.value||G.value==="dates",Ue=G.value==="years",we=G.value==="months",Ge=L.value==="date",St=L.value==="year",Zt=L.value==="month";return Se&&Ge||Ue&&St||we&&Zt}),Z=E(()=>!Q.value&&s.showNow||s.showConfirm),H=E(()=>v?s.parsedValue?Ae(s.parsedValue)?v(s.parsedValue[0].toDate()):v(s.parsedValue.toDate()):!0:!1),te=()=>{if(Q.value)U(s.parsedValue);else{let Se=Bp(s.parsedValue);if(!Se){const Ue=pt(g).locale(u.value),we=et();Se=Ue.year(we.year()).month(we.month()).date(we.date())}w.value=Se,U(Se)}},de=E(()=>v?v(pt().locale(u.value).toDate()):!1),be=()=>{const Ue=pt().locale(u.value).toDate();C.value=!0,(!v||!v(Ue))&&O(Ue)&&(w.value=pt().locale(u.value),U(w.value))},_e=E(()=>s.timeFormat||Dk(s.format)||Hf),xe=E(()=>s.dateFormat||$k(s.format)||hc),Oe=E(()=>$.value?$.value:!s.parsedValue&&!b.value?void 0:(Bp(s.parsedValue)||w.value).format(_e.value)),De=E(()=>M.value?M.value:!s.parsedValue&&!b.value?void 0:(Bp(s.parsedValue)||w.value).format(xe.value)),Ne=F(!1),Ce=()=>{Ne.value=!0},Ie=()=>{Ne.value=!1},Pe=Se=>({hour:Se.hour(),minute:Se.minute(),second:Se.second(),year:Se.year(),month:Se.month(),date:Se.date()}),ze=(Se,Ue,we)=>{const{hour:Ge,minute:St,second:Zt}=Pe(Se),Sn=Bp(s.parsedValue),kn=Sn?Sn.hour(Ge).minute(St).second(Zt):Se;w.value=kn,U(w.value,!0),we||(Ne.value=Ue)},Je=Se=>{const Ue=pt(Se,_e.value).locale(u.value);if(Ue.isValid()&&O(Ue)){const{year:we,month:Ge,date:St}=Pe(w.value);w.value=Ue.year(we).month(Ge).date(St),$.value=null,Ne.value=!1,U(w.value,!0)}},ot=Se=>{const Ue=jf(Se,xe.value,u.value,h);if(Ue.isValid()){if(v&&v(Ue.toDate()))return;const{hour:we,minute:Ge,second:St}=Pe(w.value);w.value=Ue.hour(we).minute(Ge).second(St),M.value=null,U(w.value,!0)}},$e=Se=>pt.isDayjs(Se)&&Se.isValid()&&(v?!v(Se.toDate()):!0),He=Se=>jf(Se,s.format,u.value,h),et=()=>{const Se=pt(b.value).locale(u.value);if(!b.value){const Ue=k.value;return pt().hour(Ue.hour()).minute(Ue.minute()).second(Ue.second()).locale(u.value)}return Se},Bt=()=>{var Se;["week","month","year","date"].includes(G.value)&&((Se=_.value)==null||Se.focus())},qt=()=>{Bt(),G.value==="week"&&vt(Te.down)},st=Se=>{const Ue=on(Se);[Te.up,Te.down,Te.left,Te.right,Te.home,Te.end,Te.pageUp,Te.pageDown].includes(Ue)&&(vt(Ue),Se.stopPropagation(),Se.preventDefault()),[Te.enter,Te.space,Te.numpadEnter].includes(Ue)&&M.value===null&&$.value===null&&(Se.preventDefault(),U(w.value,!1))},vt=Se=>{var Ue;const{up:we,down:Ge,left:St,right:Zt,home:Sn,end:kn,pageUp:Fe,pageDown:tt}=Te,ft={year:{[we]:-4,[Ge]:4,[St]:-1,[Zt]:1,offset:(Ee,pe)=>Ee.setFullYear(Ee.getFullYear()+pe)},month:{[we]:-4,[Ge]:4,[St]:-1,[Zt]:1,offset:(Ee,pe)=>Ee.setMonth(Ee.getMonth()+pe)},week:{[we]:-1,[Ge]:1,[St]:-1,[Zt]:1,offset:(Ee,pe)=>Ee.setDate(Ee.getDate()+pe*7)},date:{[we]:-7,[Ge]:7,[St]:-1,[Zt]:1,[Sn]:Ee=>-Ee.getDay(),[kn]:Ee=>-Ee.getDay()+6,[Fe]:Ee=>-new Date(Ee.getFullYear(),Ee.getMonth(),0).getDate(),[tt]:Ee=>new Date(Ee.getFullYear(),Ee.getMonth()+1,0).getDate(),offset:(Ee,pe)=>Ee.setDate(Ee.getDate()+pe)}},wn=w.value.toDate();for(;Math.abs(w.value.diff(wn,"year",!0))<1;){const Ee=ft[K.value];if(!Ee)return;if(Ee.offset(wn,Ze(Ee[Se])?Ee[Se](wn):(Ue=Ee[Se])!=null?Ue:0),v&&v(wn))break;const pe=pt(wn).locale(u.value);w.value=pe,a("pick",pe,!0);break}},kt=Se=>{a("panel-change",w.value.toDate(),Se,L.value)};return ge(()=>G.value,Se=>{if(["month","year"].includes(Se)){L.value=Se;return}else if(Se==="years"){L.value="year";return}else if(Se==="months"){L.value="month";return}L.value="date"},{immediate:!0}),ge(()=>b.value,Se=>{Se&&(w.value=et())},{immediate:!0}),ge(()=>s.parsedValue,Se=>{if(Se){if(Q.value||Ae(Se))return;w.value=Se}else w.value=et()},{immediate:!0}),a("set-picker-option",["isValidValue",$e]),a("set-picker-option",["parseUserInput",He]),a("set-picker-option",["handleFocusPicker",qt]),(Se,Ue)=>(S(),P("div",{class:D([f(o).b(),f(r).b(),f(o).is("border",Se.border),f(o).is("disabled",f(ne)),{"has-sidebar":Se.$slots.sidebar||ee.value,"has-time":he.value}])},[A("div",{class:D(f(o).e("body-wrapper"))},[ue(Se.$slots,"sidebar",{class:D(f(o).e("sidebar"))}),ee.value?(S(),P("div",{key:0,class:D(f(o).e("sidebar"))},[(S(!0),P(Ve,null,wt(f(p),(we,Ge)=>(S(),P("button",{key:Ge,type:"button",disabled:f(ne),class:D(f(o).e("shortcut")),onClick:St=>z(we)},me(we.text),11,hae))),128))],2)):ie("v-if",!0),A("div",{class:D(f(o).e("body"))},[he.value?(S(),P("div",{key:0,class:D(f(r).e("time-header"))},[A("span",{class:D(f(r).e("editor-wrap"))},[j(f(ua),{placeholder:f(c)("el.datepicker.selectDate"),"model-value":De.value,size:"small","validate-event":!1,disabled:f(ne),readonly:!Se.editable,onInput:Ue[0]||(Ue[0]=we=>M.value=we),onChange:ot},null,8,["placeholder","model-value","disabled","readonly"])],2),bt((S(),P("span",{class:D(f(r).e("editor-wrap"))},[j(f(ua),{placeholder:f(c)("el.datepicker.selectTime"),"model-value":Oe.value,size:"small","validate-event":!1,disabled:f(ne),readonly:!Se.editable,onFocus:Ce,onInput:Ue[1]||(Ue[1]=we=>$.value=we),onChange:Je},null,8,["placeholder","model-value","disabled","readonly"]),j(f(Xg),{visible:Ne.value,format:_e.value,"parsed-value":w.value,onPick:ze},null,8,["visible","format","parsed-value"])],2)),[[f(dc),Ie]])],2)):ie("v-if",!0),bt(A("div",{class:D([f(r).e("header"),(L.value==="year"||L.value==="month")&&f(r).em("header","bordered")])},[A("span",{class:D(f(r).e("prev-btn"))},[A("button",{type:"button","aria-label":f(c)("el.datepicker.prevYear"),class:D(["d-arrow-left",f(o).e("icon-btn")]),disabled:f(ne),onClick:Ue[2]||(Ue[2]=we=>N(!1))},[ue(Se.$slots,"prev-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Ji))]),_:1})])],10,pae),bt(A("button",{type:"button","aria-label":f(c)("el.datepicker.prevMonth"),class:D([f(o).e("icon-btn"),"arrow-left"]),disabled:f(ne),onClick:Ue[3]||(Ue[3]=we=>Y(!1))},[ue(Se.$slots,"prev-month",{},()=>[j(f(Xe),null,{default:X(()=>[j(f($o))]),_:1})])],10,vae),[[Vt,L.value==="date"]])],2),A("span",{role:"button",class:D(f(r).e("header-label")),"aria-live":"polite",tabindex:Se.disabled?void 0:0,"aria-disabled":Se.disabled,onKeydown:Ue[4]||(Ue[4]=$n(we=>ve("year"),["enter"])),onClick:Ue[5]||(Ue[5]=we=>ve("year"))},me(V.value),43,mae),bt(A("span",{role:"button","aria-live":"polite",tabindex:Se.disabled?void 0:0,"aria-disabled":Se.disabled,class:D([f(r).e("header-label"),{active:L.value==="month"}]),onKeydown:Ue[6]||(Ue[6]=$n(we=>ve("month"),["enter"])),onClick:Ue[7]||(Ue[7]=we=>ve("month"))},me(f(c)(`el.datepicker.month${T.value+1}`)),43,gae),[[Vt,L.value==="date"]]),A("span",{class:D(f(r).e("next-btn"))},[bt(A("button",{type:"button","aria-label":f(c)("el.datepicker.nextMonth"),class:D([f(o).e("icon-btn"),"arrow-right"]),disabled:f(ne),onClick:Ue[8]||(Ue[8]=we=>Y(!0))},[ue(Se.$slots,"next-month",{},()=>[j(f(Xe),null,{default:X(()=>[j(f($s))]),_:1})])],10,bae),[[Vt,L.value==="date"]]),A("button",{type:"button","aria-label":f(c)("el.datepicker.nextYear"),class:D([f(o).e("icon-btn"),"d-arrow-right"]),disabled:f(ne),onClick:Ue[9]||(Ue[9]=we=>N(!0))},[ue(Se.$slots,"next-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Zi))]),_:1})])],10,yae)],2)],2),[[Vt,L.value!=="time"]]),A("div",{class:D(f(o).e("content")),onKeydown:st},[L.value==="date"?(S(),le(X3,{key:0,ref_key:"currentViewRef",ref:_,"selection-mode":G.value,date:w.value,"parsed-value":Se.parsedValue,"disabled-date":f(v),disabled:f(ne),"cell-class-name":f(m),"show-week-number":Se.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(),le(Up,{key:1,ref_key:"currentViewRef",ref:_,"selection-mode":G.value,date:w.value,"disabled-date":f(v),disabled:f(ne),"parsed-value":Se.parsedValue,"cell-class-name":f(m),onPick:fe},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):ie("v-if",!0),L.value==="month"?(S(),le(Kp,{key:2,ref_key:"currentViewRef",ref:_,"selection-mode":G.value,date:w.value,"parsed-value":Se.parsedValue,"disabled-date":f(v),disabled:f(ne),"cell-class-name":f(m),onPick:ae},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):ie("v-if",!0)],34)],2)],2),Se.showFooter&&ce.value&&Z.value?(S(),P("div",{key:0,class:D(f(o).e("footer"))},[bt(j(f(_s),{text:"",size:"small",class:D(f(o).e("link-btn")),disabled:de.value,onClick:be},{default:X(()=>[Ke(me(f(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Vt,!Q.value&&Se.showNow]]),Se.showConfirm?(S(),le(f(_s),{key:0,plain:"",size:"small",class:D(f(o).e("link-btn")),disabled:H.value,onClick:te},{default:X(()=>[Ke(me(f(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):ie("v-if",!0)],2)):ie("v-if",!0)],2))}});const _ae=Me({...tA,...q3}),Cae=e=>{const{emit:t}=Ct(),n=zi(),s=Wn();return o=>{const r=Ze(o.value)?o.value():o.value;if(r){t("pick",[pt(r[0]).locale(e.value),pt(r[1]).locale(e.value)]);return}o.onClick&&o.onClick({attrs:n,slots:s,emit:t})}},J3=(e,{defaultValue:t,defaultTime:n,leftDate:s,rightDate:a,step:o,unit:r,sortDates:i})=>{const{emit:l}=Ct(),{pickerNs:c}=We(K3),u=ke("date-range-picker"),{t:d,lang:h}=Ot(),p=Cae(h),v=F(),m=F(),g=F({endDate:null,selecting:!1}),b=k=>{g.value=k},_=(k=!1)=>{const T=f(v),R=f(m);jp([T,R])&&l("pick",[T,R],k)},w=k=>{g.value.selecting=k,k||(g.value.endDate=null)},C=k=>{if(Ae(k)&&k.length===2){const[T,R]=k;v.value=T,s.value=T,m.value=R,i(f(v),f(m))}else x()},x=()=>{let[k,T]=Jg(f(t),{lang:f(h),step:o,unit:r,unlinkPanels:e.unlinkPanels});const R=M=>M.diff(M.startOf("d"),"ms"),I=f(n);if(I){let M=0,$=0;if(Ae(I)){const[O,B]=I.map(pt);M=R(O),$=R(B)}else{const O=R(pt(I));M=O,$=O}k=k.startOf("d").add(M,"ms"),T=T.startOf("d").add($,"ms")}v.value=void 0,m.value=void 0,s.value=k,a.value=T};return ge(t,k=>{k&&x()},{immediate:!0}),ge(()=>e.parsedValue,k=>{(!(k!=null&&k.length)||!Dn(k,[v.value,m.value]))&&C(k)},{immediate:!0}),ge(()=>e.visible,()=>{e.visible&&C(e.parsedValue)},{immediate:!0}),{minDate:v,maxDate:m,rangeState:g,lang:h,ppNs:c,drpNs:u,handleChangeRange:b,handleRangeConfirm:_,handleShortcutClick:p,onSelect:w,parseValue:C,t:d}},Sae=(e,t,n,s)=>{const a=F("date"),o=F(),r=F("date"),i=F(),l=We(br),{disabledDate:c}=l.props,{t:u,lang:d}=Ot(),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 _(k,T){if(e.disabled)return;const R=k==="left"?a:r,I=k==="left"?o:i;R.value=T,await Be(),b(I.value)}async function w(k,T,R){if(e.disabled)return;const I=T==="left",M=I?n:s,$=I?s:n,O=I?a:r,B=I?o:i;if(k==="year"){const U=M.value.year(R);M.value=Qg(U,d.value,c)}k==="month"&&(M.value=Wf(M.value,M.value.year(),R,d.value,c)),e.unlinkPanels||($.value=T==="left"?M.value.add(1,"month"):M.value.subtract(1,"month")),O.value=k==="year"?"month":"date",await Be(),b(B.value),C(k)}function C(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=>_("left",k),showRightPicker:k=>_("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:C,adjustDateByView:x}},xae=["disabled","onClick"],kae=["aria-label","disabled"],Eae=["aria-label","disabled"],Aae=["disabled","aria-label"],Tae=["disabled","aria-label"],Mae=["tabindex","aria-disabled"],Pae=["tabindex","aria-disabled"],Rae=["disabled","aria-label"],Iae=["disabled","aria-label"],Oae=["aria-label","disabled"],Lae=["disabled","aria-label"],Nae=["tabindex","aria-disabled"],$ae=["tabindex","aria-disabled"],t1="month";var Dae=W({__name:"panel-date-range",props:_ae,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,s=t,a=We(br),o=We(Wp,void 0),{disabledDate:r,cellClassName:i,defaultTime:l,clearable:c}=a.props,u=Qt(a.props,"format"),d=Qt(a.props,"shortcuts"),h=Qt(a.props,"defaultValue"),{lang:p}=Ot(),v=F(pt().locale(p.value)),m=F(pt().locale(p.value).add(1,t1)),{minDate:g,maxDate:b,rangeState:_,ppNs:w,drpNs:C,handleChangeRange:x,handleRangeConfirm:k,handleShortcutClick:T,onSelect:R,parseValue:I,t:M}=J3(n,{defaultValue:h,defaultTime:l,leftDate:v,rightDate:m,unit:t1,sortDates:Ee});ge(()=>n.visible,pe=>{!pe&&_.value.selecting&&(I(n.parsedValue),R(!1))});const $=F({min:null,max:null}),O=F({min:null,max:null}),{leftCurrentView:B,rightCurrentView:U,leftCurrentViewRef:J,rightCurrentViewRef:Y,leftYear:N,rightYear:L,leftMonth:V,rightMonth:z,leftYearLabel:G,rightYearLabel:Q,showLeftPicker:K,showRightPicker:ee,handleLeftYearPick:ae,handleRightYearPick:fe,handleLeftMonthPick:ne,handleRightMonthPick:ve,handlePanelChange:he,adjustDateByView:ce}=Sae(n,s,v,m),Z=E(()=>!!d.value.length),H=E(()=>$.value.min!==null?$.value.min:g.value?g.value.format(xe.value):""),te=E(()=>$.value.max!==null?$.value.max:b.value||g.value?(b.value||g.value).format(xe.value):""),de=E(()=>O.value.min!==null?O.value.min:g.value?g.value.format(_e.value):""),be=E(()=>O.value.max!==null?O.value.max:b.value||g.value?(b.value||g.value).format(_e.value):""),_e=E(()=>n.timeFormat||Dk(u.value||"")||Hf),xe=E(()=>n.dateFormat||$k(u.value||"")||hc),Oe=pe=>jp(pe)&&(r?!r(pe[0].toDate())&&!r(pe[1].toDate()):!0),De=()=>{v.value=ce(B.value,v.value,!1),n.unlinkPanels||(m.value=v.value.add(1,"month")),he("year")},Ne=()=>{v.value=v.value.subtract(1,"month"),n.unlinkPanels||(m.value=v.value.add(1,"month")),he("month")},Ce=()=>{n.unlinkPanels?m.value=ce(U.value,m.value,!0):(v.value=ce(U.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")},Pe=()=>{v.value=ce(B.value,v.value,!0),he("year")},ze=()=>{v.value=v.value.add(1,"month"),he("month")},Je=()=>{m.value=ce(U.value,m.value,!1),he("year")},ot=()=>{m.value=m.value.subtract(1,"month"),he("month")},$e=E(()=>{const pe=(V.value+1)%12,ye=V.value+1>=12?1:0;return n.unlinkPanels&&new Date(N.value+ye,pe)<new Date(L.value,z.value)}),He=E(()=>n.unlinkPanels&&L.value*12+z.value-(N.value*12+V.value+1)>=12),et=On(),Bt=E(()=>!(g.value&&b.value&&!_.value.selecting&&jp([g.value,b.value])&&!et.value)),qt=E(()=>n.type==="datetime"||n.type==="datetimerange"),st=(pe,ye)=>{if(pe)return l?pt(l[ye]||l).locale(p.value).year(pe.year()).month(pe.month()).date(pe.date()):pe},vt=(pe,ye=!0)=>{const je=pe.minDate,rt=pe.maxDate,mt=st(je,0),zt=st(rt,1);b.value===zt&&g.value===mt||(s("calendar-change",[je.toDate(),rt&&rt.toDate()]),b.value=zt,g.value=mt,!qt.value&&ye&&(ye=!mt||!zt),k(ye))},kt=F(!1),Se=F(!1),Ue=()=>{kt.value=!1},we=()=>{Se.value=!1},Ge=(pe,ye)=>{$.value[ye]=pe;const je=pt(pe,xe.value).locale(p.value);if(je.isValid()){if(r&&r(je.toDate()))return;ye==="min"?(v.value=je,g.value=(g.value||v.value).year(je.year()).month(je.month()).date(je.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(g.value))&&(m.value=je.add(1,"month"),b.value=g.value.add(1,"month"))):(m.value=je,b.value=(b.value||m.value).year(je.year()).month(je.month()).date(je.date()),!n.unlinkPanels&&(!g.value||g.value.isAfter(b.value))&&(v.value=je.subtract(1,"month"),g.value=b.value.subtract(1,"month"))),Ee(g.value,b.value),k(!0)}},St=(pe,ye)=>{$.value[ye]=null},Zt=(pe,ye)=>{O.value[ye]=pe;const je=pt(pe,_e.value).locale(p.value);je.isValid()&&(ye==="min"?(kt.value=!0,g.value=(g.value||v.value).hour(je.hour()).minute(je.minute()).second(je.second()),v.value=g.value):(Se.value=!0,b.value=(b.value||m.value).hour(je.hour()).minute(je.minute()).second(je.second()),m.value=b.value))},Sn=(pe,ye)=>{O.value[ye]=null,ye==="min"?(v.value=g.value,kt.value=!1,(!b.value||b.value.isBefore(g.value))&&(b.value=g.value)):(m.value=b.value,Se.value=!1,b.value&&b.value.isBefore(g.value)&&(g.value=b.value)),k(!0)},kn=(pe,ye,je)=>{O.value.min||(pe&&(g.value=(g.value||v.value).hour(pe.hour()).minute(pe.minute()).second(pe.second())),je||(kt.value=ye),(!b.value||b.value.isBefore(g.value))&&(b.value=g.value,m.value=pe,Be(()=>{I(n.parsedValue)})),k(!0))},Fe=(pe,ye,je)=>{O.value.max||(pe&&(b.value=(b.value||m.value).hour(pe.hour()).minute(pe.minute()).second(pe.second())),je||(Se.value=ye),b.value&&b.value.isBefore(g.value)&&(g.value=b.value),k(!0))},tt=()=>{ft(),s("clear")},ft=()=>{let pe=null;a!=null&&a.emptyValues&&(pe=a.emptyValues.valueOnClear.value),v.value=Jg(f(h),{lang:f(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",pe)},wn=pe=>jf(pe,u.value||"",p.value,o);function Ee(pe,ye){if(n.unlinkPanels&&ye){const je=(pe==null?void 0:pe.year())||0,rt=(pe==null?void 0:pe.month())||0,mt=ye.year(),zt=ye.month();m.value=je===mt&&rt===zt?ye.add(1,t1):ye}else m.value=v.value.add(1,t1),ye&&(m.value=m.value.hour(ye.hour()).minute(ye.minute()).second(ye.second()))}return s("set-picker-option",["isValidValue",Oe]),s("set-picker-option",["parseUserInput",wn]),s("set-picker-option",["handleClear",ft]),(pe,ye)=>(S(),P("div",{class:D([f(w).b(),f(C).b(),f(w).is("border",pe.border),f(w).is("disabled",f(et)),{"has-sidebar":pe.$slots.sidebar||Z.value,"has-time":qt.value}])},[A("div",{class:D(f(w).e("body-wrapper"))},[ue(pe.$slots,"sidebar",{class:D(f(w).e("sidebar"))}),Z.value?(S(),P("div",{key:0,class:D(f(w).e("sidebar"))},[(S(!0),P(Ve,null,wt(d.value,(je,rt)=>(S(),P("button",{key:rt,type:"button",disabled:f(et),class:D(f(w).e("shortcut")),onClick:mt=>f(T)(je)},me(je.text),11,xae))),128))],2)):ie("v-if",!0),A("div",{class:D(f(w).e("body"))},[qt.value?(S(),P("div",{key:0,class:D(f(C).e("time-header"))},[A("span",{class:D(f(C).e("editors-wrap"))},[A("span",{class:D(f(C).e("time-picker-wrap"))},[j(f(ua),{size:"small",disabled:f(_).selecting||f(et),placeholder:f(M)("el.datepicker.startDate"),class:D(f(C).e("editor")),"model-value":H.value,"validate-event":!1,readonly:!pe.editable,onInput:ye[0]||(ye[0]=je=>Ge(je,"min")),onChange:ye[1]||(ye[1]=je=>St(je,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),bt((S(),P("span",{class:D(f(C).e("time-picker-wrap"))},[j(f(ua),{size:"small",class:D(f(C).e("editor")),disabled:f(_).selecting||f(et),placeholder:f(M)("el.datepicker.startTime"),"model-value":de.value,"validate-event":!1,readonly:!pe.editable,onFocus:ye[2]||(ye[2]=je=>kt.value=!0),onInput:ye[3]||(ye[3]=je=>Zt(je,"min")),onChange:ye[4]||(ye[4]=je=>Sn(je,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),j(f(Xg),{visible:kt.value,format:_e.value,"datetime-role":"start","parsed-value":f(g)||v.value,onPick:kn},null,8,["visible","format","parsed-value"])],2)),[[f(dc),Ue]])],2),A("span",null,[j(f(Xe),null,{default:X(()=>[j(f($s))]),_:1})]),A("span",{class:D([f(C).e("editors-wrap"),"is-right"])},[A("span",{class:D(f(C).e("time-picker-wrap"))},[j(f(ua),{size:"small",class:D(f(C).e("editor")),disabled:f(_).selecting||f(et),placeholder:f(M)("el.datepicker.endDate"),"model-value":te.value,readonly:!f(g)||!pe.editable,"validate-event":!1,onInput:ye[5]||(ye[5]=je=>Ge(je,"max")),onChange:ye[6]||(ye[6]=je=>St(je,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),bt((S(),P("span",{class:D(f(C).e("time-picker-wrap"))},[j(f(ua),{size:"small",class:D(f(C).e("editor")),disabled:f(_).selecting||f(et),placeholder:f(M)("el.datepicker.endTime"),"model-value":be.value,readonly:!f(g)||!pe.editable,"validate-event":!1,onFocus:ye[7]||(ye[7]=je=>f(g)&&(Se.value=!0)),onInput:ye[8]||(ye[8]=je=>Zt(je,"max")),onChange:ye[9]||(ye[9]=je=>Sn(je,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),j(f(Xg),{"datetime-role":"end",visible:Se.value,format:_e.value,"parsed-value":f(b)||m.value,onPick:Fe},null,8,["visible","format","parsed-value"])],2)),[[f(dc),we]])],2)],2)):ie("v-if",!0),A("div",{class:D([[f(w).e("content"),f(C).e("content")],"is-left"])},[A("div",{class:D(f(C).e("header"))},[A("button",{type:"button",class:D([f(w).e("icon-btn"),"d-arrow-left"]),"aria-label":f(M)("el.datepicker.prevYear"),disabled:f(et),onClick:De},[ue(pe.$slots,"prev-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Ji))]),_:1})])],10,kae),bt(A("button",{type:"button",class:D([f(w).e("icon-btn"),"arrow-left"]),"aria-label":f(M)("el.datepicker.prevMonth"),disabled:f(et),onClick:Ne},[ue(pe.$slots,"prev-month",{},()=>[j(f(Xe),null,{default:X(()=>[j(f($o))]),_:1})])],10,Eae),[[Vt,f(B)==="date"]]),pe.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!He.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!He.value||f(et))],"d-arrow-right"]),"aria-label":f(M)("el.datepicker.nextYear"),onClick:Pe},[ue(pe.$slots,"next-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Zi))]),_:1})])],10,Aae)):ie("v-if",!0),pe.unlinkPanels&&f(B)==="date"?(S(),P("button",{key:1,type:"button",disabled:!$e.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!$e.value||f(et))],"arrow-right"]),"aria-label":f(M)("el.datepicker.nextMonth"),onClick:ze},[ue(pe.$slots,"next-month",{},()=>[j(f(Xe),null,{default:X(()=>[j(f($s))]),_:1})])],10,Tae)):ie("v-if",!0),A("div",null,[A("span",{role:"button",class:D(f(C).e("header-label")),"aria-live":"polite",tabindex:pe.disabled?void 0:0,"aria-disabled":pe.disabled,onKeydown:ye[10]||(ye[10]=$n(je=>f(K)("year"),["enter"])),onClick:ye[11]||(ye[11]=je=>f(K)("year"))},me(f(G)),43,Mae),bt(A("span",{role:"button","aria-live":"polite",tabindex:pe.disabled?void 0:0,"aria-disabled":pe.disabled,class:D([f(C).e("header-label"),{active:f(B)==="month"}]),onKeydown:ye[12]||(ye[12]=$n(je=>f(K)("month"),["enter"])),onClick:ye[13]||(ye[13]=je=>f(K)("month"))},me(f(M)(`el.datepicker.month${v.value.month()+1}`)),43,Pae),[[Vt,f(B)==="date"]])])],2),f(B)==="date"?(S(),le(X3,{key:0,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"range",date:v.value,"min-date":f(g),"max-date":f(b),"range-state":f(_),"disabled-date":f(r),"cell-class-name":f(i),"show-week-number":pe.showWeekNumber,disabled:f(et),onChangerange:f(x),onPick:vt,onSelect:f(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),f(B)==="year"?(S(),le(Up,{key:1,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"year",date:v.value,"disabled-date":f(r),"parsed-value":pe.parsedValue,disabled:f(et),onPick:f(ae)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):ie("v-if",!0),f(B)==="month"?(S(),le(Kp,{key:2,ref_key:"leftCurrentViewRef",ref:J,"selection-mode":"month",date:v.value,"parsed-value":pe.parsedValue,"disabled-date":f(r),disabled:f(et),onPick:f(ne)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):ie("v-if",!0)],2),A("div",{class:D([[f(w).e("content"),f(C).e("content")],"is-right"])},[A("div",{class:D(f(C).e("header"))},[pe.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!He.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!He.value||f(et))],"d-arrow-left"]),"aria-label":f(M)("el.datepicker.prevYear"),onClick:Je},[ue(pe.$slots,"prev-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Ji))]),_:1})])],10,Rae)):ie("v-if",!0),pe.unlinkPanels&&f(U)==="date"?(S(),P("button",{key:1,type:"button",disabled:!$e.value||f(et),class:D([[f(w).e("icon-btn"),f(w).is("disabled",!$e.value||f(et))],"arrow-left"]),"aria-label":f(M)("el.datepicker.prevMonth"),onClick:ot},[ue(pe.$slots,"prev-month",{},()=>[j(f(Xe),null,{default:X(()=>[j(f($o))]),_:1})])],10,Iae)):ie("v-if",!0),A("button",{type:"button","aria-label":f(M)("el.datepicker.nextYear"),class:D([f(w).e("icon-btn"),"d-arrow-right"]),disabled:f(et),onClick:Ce},[ue(pe.$slots,"next-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Zi))]),_:1})])],10,Oae),bt(A("button",{type:"button",class:D([f(w).e("icon-btn"),"arrow-right"]),disabled:f(et),"aria-label":f(M)("el.datepicker.nextMonth"),onClick:Ie},[ue(pe.$slots,"next-month",{},()=>[j(f(Xe),null,{default:X(()=>[j(f($s))]),_:1})])],10,Lae),[[Vt,f(U)==="date"]]),A("div",null,[A("span",{role:"button",class:D(f(C).e("header-label")),"aria-live":"polite",tabindex:pe.disabled?void 0:0,"aria-disabled":pe.disabled,onKeydown:ye[14]||(ye[14]=$n(je=>f(ee)("year"),["enter"])),onClick:ye[15]||(ye[15]=je=>f(ee)("year"))},me(f(Q)),43,Nae),bt(A("span",{role:"button","aria-live":"polite",tabindex:pe.disabled?void 0:0,"aria-disabled":pe.disabled,class:D([f(C).e("header-label"),{active:f(U)==="month"}]),onKeydown:ye[16]||(ye[16]=$n(je=>f(ee)("month"),["enter"])),onClick:ye[17]||(ye[17]=je=>f(ee)("month"))},me(f(M)(`el.datepicker.month${m.value.month()+1}`)),43,$ae),[[Vt,f(U)==="date"]])])],2),f(U)==="date"?(S(),le(X3,{key:0,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"range",date:m.value,"min-date":f(g),"max-date":f(b),"range-state":f(_),"disabled-date":f(r),"cell-class-name":f(i),"show-week-number":pe.showWeekNumber,disabled:f(et),onChangerange:f(x),onPick:vt,onSelect:f(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),f(U)==="year"?(S(),le(Up,{key:1,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"year",date:m.value,"disabled-date":f(r),"parsed-value":pe.parsedValue,disabled:f(et),onPick:f(fe)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):ie("v-if",!0),f(U)==="month"?(S(),le(Kp,{key:2,ref_key:"rightCurrentViewRef",ref:Y,"selection-mode":"month",date:m.value,"parsed-value":pe.parsedValue,"disabled-date":f(r),disabled:f(et),onPick:f(ve)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):ie("v-if",!0)],2)],2)],2),pe.showFooter&&qt.value&&(pe.showConfirm||f(c))?(S(),P("div",{key:0,class:D(f(w).e("footer"))},[f(c)?(S(),le(f(_s),{key:0,text:"",size:"small",class:D(f(w).e("link-btn")),onClick:tt},{default:X(()=>[Ke(me(f(M)("el.datepicker.clear")),1)]),_:1},8,["class"])):ie("v-if",!0),pe.showConfirm?(S(),le(f(_s),{key:1,plain:"",size:"small",class:D(f(w).e("link-btn")),disabled:Bt.value,onClick:ye[18]||(ye[18]=je=>f(k)(!1))},{default:X(()=>[Ke(me(f(M)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):ie("v-if",!0)],2)):ie("v-if",!0)],2))}});const Fae=Me({...q3}),Bae=["pick","set-picker-option","calendar-change"],Vae=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:s}=Ot(),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()),d=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:d}},zae=["disabled","onClick"],Hae=["disabled"],Wae=["disabled"],jae=["disabled"],Kae=["disabled"],n1="year";var Uae=W({name:"DatePickerMonthRange",__name:"panel-month-range",props:Fae,emits:Bae,setup(e,{emit:t}){const n=e,s=t,{lang:a}=Ot(),o=We(br),r=We(Wp,void 0),{shortcuts:i,disabledDate:l,cellClassName:c}=o.props,u=Qt(o.props,"format"),d=Qt(o.props,"defaultValue"),h=F(pt().locale(a.value)),p=F(pt().locale(a.value).add(1,n1)),{minDate:v,maxDate:m,rangeState:g,ppNs:b,drpNs:_,handleChangeRange:w,handleRangeConfirm:C,handleShortcutClick:x,onSelect:k,parseValue:T}=J3(n,{defaultValue:d,leftDate:h,rightDate:p,unit:n1,sortDates:G}),R=E(()=>!!i.length),{leftPrevYear:I,rightNextYear:M,leftNextYear:$,rightPrevYear:O,leftLabel:B,rightLabel:U,leftYear:J,rightYear:Y}=Vae({unlinkPanels:Qt(n,"unlinkPanels"),leftDate:h,rightDate:p}),N=E(()=>n.unlinkPanels&&Y.value>J.value+1),L=(K,ee=!0)=>{const ae=K.minDate,fe=K.maxDate;m.value===fe&&v.value===ae||(s("calendar-change",[ae.toDate(),fe&&fe.toDate()]),m.value=fe,v.value=ae,ee&&C())},V=()=>{let K=null;o!=null&&o.emptyValues&&(K=o.emptyValues.valueOnClear.value),h.value=Jg(f(d),{lang:f(a),unit:"year",unlinkPanels:n.unlinkPanels})[0],p.value=h.value.add(1,"year"),s("pick",K)},z=K=>jf(K,u.value,a.value,r);function G(K,ee){if(n.unlinkPanels&&ee){const ae=(K==null?void 0:K.year())||0,fe=ee.year();p.value=ae===fe?ee.add(1,n1):ee}else p.value=h.value.add(1,n1)}const Q=On();return ge(()=>n.visible,K=>{!K&&g.value.selecting&&(T(n.parsedValue),k(!1))}),s("set-picker-option",["isValidValue",jp]),s("set-picker-option",["parseUserInput",z]),s("set-picker-option",["handleClear",V]),(K,ee)=>(S(),P("div",{class:D([f(b).b(),f(_).b(),f(b).is("border",K.border),f(b).is("disabled",f(Q)),{"has-sidebar":!!K.$slots.sidebar||R.value}])},[A("div",{class:D(f(b).e("body-wrapper"))},[ue(K.$slots,"sidebar",{class:D(f(b).e("sidebar"))}),R.value?(S(),P("div",{key:0,class:D(f(b).e("sidebar"))},[(S(!0),P(Ve,null,wt(f(i),(ae,fe)=>(S(),P("button",{key:fe,type:"button",class:D(f(b).e("shortcut")),disabled:f(Q),onClick:ne=>f(x)(ae)},me(ae.text),11,zae))),128))],2)):ie("v-if",!0),A("div",{class:D(f(b).e("body"))},[A("div",{class:D([[f(b).e("content"),f(_).e("content")],"is-left"])},[A("div",{class:D(f(_).e("header"))},[A("button",{type:"button",class:D([f(b).e("icon-btn"),"d-arrow-left"]),disabled:f(Q),onClick:ee[0]||(ee[0]=(...ae)=>f(I)&&f(I)(...ae))},[ue(K.$slots,"prev-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Ji))]),_:1})])],10,Hae),K.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!N.value||f(Q),class:D([[f(b).e("icon-btn"),f(b).is("disabled",!N.value||f(Q))],"d-arrow-right"]),onClick:ee[1]||(ee[1]=(...ae)=>f($)&&f($)(...ae))},[ue(K.$slots,"next-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Zi))]),_:1})])],10,Wae)):ie("v-if",!0),A("div",null,me(f(B)),1)],2),j(Kp,{"selection-mode":"range",date:h.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(l),disabled:f(Q),"cell-class-name":f(c),onChangerange:f(w),onPick:L,onSelect:f(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),A("div",{class:D([[f(b).e("content"),f(_).e("content")],"is-right"])},[A("div",{class:D(f(_).e("header"))},[K.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!N.value||f(Q),class:D([[f(b).e("icon-btn"),f(b).is("disabled",!N.value||f(Q))],"d-arrow-left"]),onClick:ee[2]||(ee[2]=(...ae)=>f(O)&&f(O)(...ae))},[ue(K.$slots,"prev-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Ji))]),_:1})])],10,jae)):ie("v-if",!0),A("button",{type:"button",class:D([f(b).e("icon-btn"),"d-arrow-right"]),disabled:f(Q),onClick:ee[3]||(ee[3]=(...ae)=>f(M)&&f(M)(...ae))},[ue(K.$slots,"next-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Zi))]),_:1})])],10,Kae),A("div",null,me(f(U)),1)],2),j(Kp,{"selection-mode":"range",date:p.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(l),disabled:f(Q),"cell-class-name":f(c),onChangerange:f(w),onPick:L,onSelect:f(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});const qae=Me({...q3}),Gae=["pick","set-picker-option","calendar-change"],Yae=({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 d=Math.floor(t.value.year()/10)*10;return`${d}-${d+9}`}),l=E(()=>{const d=Math.floor(n.value.year()/10)*10;return`${d}-${d+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}},Xae=["disabled","onClick"],Jae=["disabled"],Zae=["disabled"],Qae=["disabled"],eoe=["disabled"],Kf=10,qp="year";var toe=W({name:"DatePickerYearRange",__name:"panel-year-range",props:qae,emits:Gae,setup(e,{emit:t}){const n=e,s=t,{lang:a}=Ot(),o=F(pt().locale(a.value)),r=F(pt().locale(a.value).add(Kf,qp)),i=We(Wp,void 0),l=We(br),{shortcuts:c,disabledDate:u,cellClassName:d}=l.props,h=Qt(l.props,"format"),p=Qt(l.props,"defaultValue"),{minDate:v,maxDate:m,rangeState:g,ppNs:b,drpNs:_,handleChangeRange:w,handleRangeConfirm:C,handleShortcutClick:x,onSelect:k,parseValue:T}=J3(n,{defaultValue:p,leftDate:o,rightDate:r,step:Kf,unit:qp,sortDates:fe}),{leftPrevYear:R,rightNextYear:I,leftNextYear:M,rightPrevYear:$,leftLabel:O,rightLabel:B,leftYear:U,rightYear:J}=Yae({unlinkPanels:Qt(n,"unlinkPanels"),leftDate:o,rightDate:r}),Y=On(),N=E(()=>!!c.length),L=E(()=>[b.b(),_.b(),b.is("border",n.border),b.is("disabled",Y.value),{"has-sidebar":!!Wn().sidebar||N.value}]),V=E(()=>({content:[b.e("content"),_.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"),_.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>U.value+1),Q=(ne,ve=!0)=>{const he=ne.minDate,ce=ne.maxDate;m.value===ce&&v.value===he||(s("calendar-change",[he.toDate(),ce&&ce.toDate()]),m.value=ce,v.value=he,ve&&C())},K=ne=>jf(ne,h.value,a.value,i),ee=ne=>jp(ne)&&(u?!u(ne[0].toDate())&&!u(ne[1].toDate()):!0),ae=()=>{let ne=null;l!=null&&l.emptyValues&&(ne=l.emptyValues.valueOnClear.value);const ve=Jg(f(p),{lang:f(a),step:Kf,unit:qp,unlinkPanels:n.unlinkPanels});o.value=ve[0],r.value=ve[1],s("pick",ne)};function fe(ne,ve){if(n.unlinkPanels&&ve){const he=(ne==null?void 0:ne.year())||0,ce=ve.year();r.value=he+Kf>ce?ve.add(Kf,qp):ve}else r.value=o.value.add(Kf,qp)}return ge(()=>n.visible,ne=>{!ne&&g.value.selecting&&(T(n.parsedValue),k(!1))}),s("set-picker-option",["isValidValue",ee]),s("set-picker-option",["parseUserInput",K]),s("set-picker-option",["handleClear",ae]),(ne,ve)=>(S(),P("div",{class:D(L.value)},[A("div",{class:D(f(b).e("body-wrapper"))},[ue(ne.$slots,"sidebar",{class:D(f(b).e("sidebar"))}),N.value?(S(),P("div",{key:0,class:D(f(b).e("sidebar"))},[(S(!0),P(Ve,null,wt(f(c),(he,ce)=>(S(),P("button",{key:ce,type:"button",class:D(f(b).e("shortcut")),disabled:f(Y),onClick:Z=>f(x)(he)},me(he.text),11,Xae))),128))],2)):ie("v-if",!0),A("div",{class:D(f(b).e("body"))},[A("div",{class:D(V.value.content)},[A("div",{class:D(f(_).e("header"))},[A("button",{type:"button",class:D(V.value.arrowLeftBtn),disabled:f(Y),onClick:ve[0]||(ve[0]=(...he)=>f(R)&&f(R)(...he))},[ue(ne.$slots,"prev-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Ji))]),_:1})])],10,Jae),ne.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!G.value||f(Y),class:D(V.value.arrowRightBtn),onClick:ve[1]||(ve[1]=(...he)=>f(M)&&f(M)(...he))},[ue(ne.$slots,"next-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Zi))]),_:1})])],10,Zae)):ie("v-if",!0),A("div",null,me(f(O)),1)],2),j(Up,{"selection-mode":"range",date:o.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(u),disabled:f(Y),"cell-class-name":f(d),onChangerange:f(w),onPick:Q,onSelect:f(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(f(_).e("header"))},[ne.unlinkPanels?(S(),P("button",{key:0,type:"button",disabled:!G.value||f(Y),class:D(z.value.arrowLeftBtn),onClick:ve[2]||(ve[2]=(...he)=>f($)&&f($)(...he))},[ue(ne.$slots,"prev-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Ji))]),_:1})])],10,Qae)):ie("v-if",!0),A("button",{type:"button",class:D(z.value.arrowRightBtn),disabled:f(Y),onClick:ve[3]||(ve[3]=(...he)=>f(I)&&f(I)(...he))},[ue(ne.$slots,"next-year",{},()=>[j(f(Xe),null,{default:X(()=>[j(f(Zi))]),_:1})])],10,eoe),A("div",null,me(f(B)),1)],2),j(Up,{"selection-mode":"range",date:r.value,"min-date":f(v),"max-date":f(m),"range-state":f(g),"disabled-date":f(u),disabled:f(Y),"cell-class-name":f(d),onChangerange:f(w),onPick:Q,onSelect:f(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});const noe=function(e){switch(e){case"daterange":case"datetimerange":return Dae;case"monthrange":return Uae;case"yearrange":return toe;default:return wae}};function soe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!dn(e)}pt.extend(Wk),pt.extend(Fse),pt.extend(B3),pt.extend(Vse),pt.extend(Hse),pt.extend(jse),pt.extend(Use),pt.extend(Gse);var aoe=W({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:Yse,emits:[lt,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:s}){const a=ke("picker-panel"),o=We(br,void 0);if(Dt(o)){const d=Kt({...bs(e)});Mt(br,{props:d})}Mt(K3,{slots:t,pickerNs:a});const{parsedValue:r,onCalendarChange:i,onPanelChange:l,onSetPickerOption:c,onPick:u}=We(zE,()=>HE(e,n),!0);return()=>{const d=noe(e.type);return j(d,_t(vp(s,"onPick"),e,{parsedValue:r.value,"onSet-picker-option":c,"onCalendar-change":i,"onPanel-change":l,onClear:()=>n("clear"),onPick:u}),soe(t)?t:{default:()=>[t]})}}});const nA=ht(aoe),ooe=Me({...H3,type:{type:re(String),default:"date"}});function roe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!dn(e)}var ioe=W({name:"ElDatePicker",install:null,props:ooe,emits:[lt],setup(e,{expose:t,emit:n,slots:s}){const a=E(()=>!e.format);Mt(Wp,a),Mt(V3,Kt(Qt(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(lt,l)};return()=>{var l;const c=(l=e.format)!=null?l:_se[e.type]||hc;return j(jE,_t(e,{format:c,type:e.type,ref:o,"onUpdate:modelValue":i}),{default:u=>j(nA,_t({disabled:e.disabled,editable:e.editable,border:!1},u),roe(s)?s:{default:()=>[s]}),"range-separator":s["range-separator"]})}}});const loe=ht(ioe),coe=Me({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:cs,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),uoe=Me({row:{type:re(Array),default:()=>[]}}),Z3=Symbol("elDescriptions");var Gp=W({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:We(Z3,{})}},render(){var e,t,n,s;const a=dJ(this.cell),o=(((e=this.cell)==null?void 0:e.dirs)||[]).map(C=>{const{dir:x,arg:k,modifiers:T,value:R}=C;return[x,R,k,T]}),{border:r,direction:i}=this.descriptions,l=i==="vertical",c=()=>{var C,x,k;return((k=(x=(C=this.cell)==null?void 0:C.children)==null?void 0:x.label)==null?void 0:k.call(x))||a.label},u=()=>{var C,x,k;return(k=(x=(C=this.cell)==null?void 0:C.children)==null?void 0:x.default)==null?void 0:k.call(x)},d=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,_={width:Rn(b),minWidth:Rn(a.minWidth)},w=ke("descriptions");switch(this.type){case"label":return bt(at(this.tag,{style:_,class:[w.e("cell"),w.e("label"),w.is("bordered-label",r),w.is("vertical-label",l),v,g],colSpan:l?d:1,rowspan:l?1:h},c()),o);case"content":return bt(at(this.tag,{style:_,class:[w.e("cell"),w.e("content"),w.is("bordered-content",r),w.is("vertical-content",l),p,m],colSpan:l?d:d*2-1,rowspan:l?h*2-1:h},u()),o);default:{const C=c(),x={},k=Rn((s=a.labelWidth)!=null?s:this.descriptions.labelWidth);return k&&(x.width=k,x.display="inline-block"),bt(at("td",{style:_,class:[w.e("cell"),p],colSpan:d,rowspan:h},[Yn(C)?void 0:at("span",{style:x,class:[w.e("label"),g]},C),at("span",{class:[w.e("content"),m]},u())]),o)}}}});const doe={key:1};var foe=W({name:"ElDescriptionsRow",__name:"descriptions-row",props:uoe,setup(e){const t=We(Z3,{});return(n,s)=>f(t).direction==="vertical"?(S(),P(Ve,{key:0},[A("tr",null,[(S(!0),P(Ve,null,wt(e.row,(a,o)=>(S(),le(f(Gp),{key:`tr1-${o}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),A("tr",null,[(S(!0),P(Ve,null,wt(e.row,(a,o)=>(S(),le(f(Gp),{key:`tr2-${o}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(S(),P("tr",doe,[(S(!0),P(Ve,null,wt(e.row,(a,o)=>(S(),P(Ve,{key:`tr3-${o}`},[f(t).border?(S(),P(Ve,{key:0},[j(f(Gp),{cell:a,tag:"td",type:"label"},null,8,["cell"]),j(f(Gp),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(S(),le(f(Gp),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});const sA="ElDescriptionsItem";var hoe=W({name:"ElDescriptions",__name:"description",props:coe,setup(e){const t=e,n=ke("descriptions"),s=ss(),a=Wn();Mt(Z3,t);const o=E(()=>[n.b(),n.m(s.value)]),r=(l,c,u,d=!1)=>(l.props||(l.props={}),c>u&&(l.props.span=u),d&&(l.props.span=c),l),i=()=>{if(!a.default)return[];const l=co(a.default()).filter(v=>{var m;return((m=v==null?void 0:v.type)==null?void 0:m.name)===sA}),c=[];let u=[],d=t.column,h=0;const p=[];return l.forEach((v,m)=>{var g,b,_;const w=((g=v.props)==null?void 0:g.span)||1,C=((b=v.props)==null?void 0:b.rowspan)||1,x=c.length;if(p[x]||(p[x]=0),C>1)for(let k=1;k<C;k++)p[_=x+k]||(p[_]=0),p[x+k]++,h++;if(p[x]>0&&(d-=p[x],p[x]=0),m<l.length-1&&(h+=w>d?d:w),m===l.length-1){const k=t.column-h%t.column;u.push(r(v,k,d,!0)),c.push(u);return}w<d?(d-=w,u.push(v)):(u.push(r(v,w,d)),c.push(u),d=t.column,u=[])}),c};return(l,c)=>(S(),P("div",{class:D(o.value)},[e.title||e.extra||l.$slots.title||l.$slots.extra?(S(),P("div",{key:0,class:D(f(n).e("header"))},[A("div",{class:D(f(n).e("title"))},[ue(l.$slots,"title",{},()=>[Ke(me(e.title),1)])],2),A("div",{class:D(f(n).e("extra"))},[ue(l.$slots,"extra",{},()=>[Ke(me(e.extra),1)])],2)],2)):ie("v-if",!0),A("div",{class:D(f(n).e("body"))},[A("table",{class:D([f(n).e("table"),f(n).is("bordered",e.border)])},[A("tbody",null,[(S(!0),P(Ve,null,wt(i(),(u,d)=>(S(),le(foe,{key:d,row:u},null,8,["row"]))),128))])],2)],2)],2))}});const aA=["left","center","right"],poe=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:aA,default:"left"},labelAlign:{type:String,values:aA},className:{type:String,default:""},labelClassName:{type:String,default:""}}),oA=W({name:sA,props:poe}),voe=ht(hoe,{DescriptionsItem:oA}),moe=Tn(oA),rA=Me({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:nn},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"}}),goe={close:()=>!0},iA=Me({...rA,appendToBody:Boolean,appendTo:{type:Sp.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}}),lA={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[lt]:e=>tn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Q3=e=>{if(!e)return{onClick:Yt,onMousedown:Yt,onMouseup:Yt};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}}},boe=Me({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:re([String,Array,Object])},zIndex:{type:re([String,Number])}}),yoe={click:e=>e instanceof MouseEvent},woe="overlay";var _oe=W({name:"ElOverlay",props:boe,emits:yoe,setup(e,{slots:t,emit:n}){const s=ke(woe),a=l=>{n("click",l)},{onClick:o,onMousedown:r,onMouseup:i}=Q3(e.customMaskEvent?void 0:a);return()=>e.mask?j("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:r,onMouseup:i},[ue(t,"default")],Fo.STYLE|Fo.CLASS|Fo.PROPS,["onClick","onMouseup","onMousedown"]):at("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ue(t,"default")])}});const e6=_oe,cA=Symbol("dialogInjectionKey"),uA="dialog-fade",t6=(...e)=>t=>{e.forEach(n=>{n.value=t})},dA=(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,_=g.top,w=g.width,C=g.height,x=document.documentElement.clientWidth,k=document.documentElement.clientHeight,T=-b+v,R=-_+m,I=x-b-w+v,M=k-_-(C<k?C:0)+m;s!=null&&s.value||(h=Math.min(Math.max(h,T),I),p=Math.min(Math.max(p,R),M)),a.offsetX=h,a.offsetY=p,e.value.style.transform=`translate(${Rn(h)}, ${Rn(p)})`}},i=h=>{const p=h.clientX,v=h.clientY,{offsetX:m,offsetY:g}=a,b=w=>{o.value||(o.value=!0);const C=m+w.clientX-p,x=g+w.clientY-v;r(C,x)},_=()=>{o.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",_)},l=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",i),window.addEventListener("resize",d))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",i),window.removeEventListener("resize",d))},u=()=>{a.offsetX=0,a.offsetY=0,e.value&&(e.value.style.transform="")},d=()=>{const{offsetX:h,offsetY:p}=a;r(h,p)};return xt(()=>{ja(()=>{n.value?l():c()})}),Xt(()=>{c()}),{isDragging:o,resetPosition:u,updatePosition:d}},Coe=["aria-level"],Soe=["aria-label"],xoe=["id"];var koe=W({name:"ElDialogContent",__name:"dialog-content",props:rA,emits:goe,setup(e,{expose:t}){const{t:n}=Ot(),{Close:s}=f9,a=e,{dialogRef:o,headerRef:r,bodyId:i,ns:l,style:c}=We(cA),{focusTrapRef:u}=We(ik),d=t6(u,o),h=E(()=>!!a.draggable),p=E(()=>!!a.overflow),{resetPosition:v,updatePosition:m,isDragging:g}=dA(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}),(_,w)=>(S(),P("div",{ref:f(d),class:D(b.value),style:Qe(f(c)),tabindex:"-1"},[A("header",{ref_key:"headerRef",ref:r,class:D([f(l).e("header"),e.headerClass,{"show-close":e.showClose}])},[ue(_.$slots,"header",{},()=>[A("span",{role:"heading","aria-level":e.ariaLevel,class:D(f(l).e("title"))},me(e.title),11,Coe)]),e.showClose?(S(),P("button",{key:0,"aria-label":f(n)("el.dialog.close"),class:D(f(l).e("headerbtn")),type:"button",onClick:w[0]||(w[0]=C=>_.$emit("close"))},[j(f(Xe),{class:D(f(l).e("close"))},{default:X(()=>[(S(),le(yt(e.closeIcon||f(s))))]),_:1},8,["class"])],10,Soe)):ie("v-if",!0)],2),A("div",{id:f(i),class:D([f(l).e("body"),e.bodyClass])},[ue(_.$slots,"default")],10,xoe),_.$slots.footer?(S(),P("footer",{key:0,class:D([f(l).e("footer"),e.footerClass])},[ue(_.$slots,"footer")],2)):ie("v-if",!0)],6))}});const s1=(e,t={})=>{vn(e)||Zn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ke("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,la(document.body,s.value))},200))};ge(e,c=>{if(!c){l();return}i=!1,o=!ei(document.body,s.value),o&&(r=document.body.style.width,No(document.body,s.value)),a=Bx(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,d=Xi(document.body,"overflowY");a>0&&(u||d==="scroll")&&o&&(document.body.style.width=`calc(100% - ${a}px)`)}),V_(()=>l())},fA=(e,t)=>{var n;const a=Ct().emit,{nextZIndex:o}=wp();let r="";const i=Fs(),l=Fs(),c=F(!1),u=F(!1),d=F(!1),h=F((n=e.zIndex)!=null?n:o()),p=F(!1);let v,m;const g=Tf(),b=E(()=>{var Q,K;return(K=(Q=g.value)==null?void 0:Q.namespace)!=null?K:mp}),_=E(()=>{var Q;return(Q=g.value)==null?void 0:Q.dialog}),w=E(()=>{const Q={},K=`--${b.value}-dialog`;if(!e.fullscreen){e.top&&(Q[`${K}-margin-top`]=e.top);const ee=Rn(e.width);ee&&(Q[`${K}-width`]=ee)}return Q}),C=E(()=>{var Q,K,ee;return((ee=(K=e.draggable)!=null?K:(Q=_.value)==null?void 0:Q.draggable)!=null?ee:!1)&&!e.fullscreen}),x=E(()=>{var Q,K,ee;return(ee=(K=e.alignCenter)!=null?K:(Q=_.value)==null?void 0:Q.alignCenter)!=null?ee:!1}),k=E(()=>{var Q,K,ee;return(ee=(K=e.overflow)!=null?K:(Q=_.value)==null?void 0:Q.overflow)!=null?ee:!1}),T=E(()=>x.value?{display:"flex"}:{}),R=E(()=>{var Q,K,ee;const ae=(ee=(K=e.transition)!=null?K:(Q=_.value)==null?void 0:Q.transition)!=null?ee:uA,fe={name:ae,onAfterEnter:I,onBeforeLeave:$,onAfterLeave:M};if(dt(ae)){const ne={...ae},ve=(he,ce)=>Z=>{Ae(he)?he.forEach(H=>{Ze(H)&&H(Z)}):Ze(he)&&he(Z),ce()};return ne.onAfterEnter=ve(ne.onAfterEnter,I),ne.onBeforeLeave=ve(ne.onBeforeLeave,$),ne.onAfterLeave=ve(ne.onAfterLeave,M),ne.name||(ne.name=uA),ne}return fe});function I(){a("opened")}function M(){a("closed"),a(lt,!1),e.destroyOnClose&&(d.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 U(){function Q(K){K||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(Q):B()}function J(){e.closeOnClickModal&&U()}function Y(){Ut&&(c.value=!0)}function N(){c.value=!1}function L(){a("openAutoFocus")}function V(){a("closeAutoFocus")}function z(Q){var K;((K=Q.detail)==null?void 0:K.focusReason)==="pointer"&&Q.preventDefault()}e.lockScroll&&s1(c);function G(){e.closeOnPressEscape&&U()}return ge(()=>e.zIndex,()=>{var Q;h.value=(Q=e.zIndex)!=null?Q:o()}),ge(()=>e.modelValue,Q=>{var K;Q?(u.value=!1,p.value=!1,O(),d.value=!0,h.value=(K=e.zIndex)!=null?K:o(),Be(()=>{a("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):c.value&&B()}),ge(()=>e.fullscreen,Q=>{t.value&&(Q?(r=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=r)}),xt(()=>{e.modelValue&&(c.value=!0,d.value=!0,O())}),{afterEnter:I,afterLeave:M,beforeLeave:$,handleClose:U,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:d,visible:c,zIndex:h,transitionConfig:R,_draggable:C,_alignCenter:x,_overflow:k,closing:p}},Eoe=["aria-label","aria-labelledby","aria-describedby"];var Aoe=W({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:iA,emits:lA,setup(e,{expose:t}){const n=e,s=Wn();ri({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=ke("dialog"),o=F(),r=F(),i=F(),{visible:l,titleId:c,bodyId:u,style:d,overlayDialogStyle:h,rendered:p,transitionConfig:v,zIndex:m,_draggable:g,_alignCenter:b,_overflow:_,handleClose:w,onModalClick:C,onOpenAutoFocus:x,onCloseAutoFocus:k,onCloseRequested:T,onFocusoutPrevented:R,closing:I}=fA(n,o);Mt(cA,{dialogRef:o,headerRef:r,bodyId:u,ns:a,rendered:p,style:d});const M=Q3(C),$=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,U)=>(S(),le(f(Mf),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:X(()=>[j(ys,_t(f(v),{persisted:""}),{default:X(()=>{var J;return[bt(j(f(e6),{"custom-mask-event":"",mask:e.modal,"overlay-class":[(J=e.modalClass)!=null?J:"",`${f(a).namespace.value}-modal-dialog`,f(a).is("penetrable",$.value)],"z-index":f(m)},{default:X(()=>[A("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:f(c),"aria-describedby":f(u),class:D([`${f(a).namespace.value}-overlay-dialog`,f(a).is("closing",f(I))]),style:Qe(f(h)),onClick:U[0]||(U[0]=(...Y)=>f(M).onClick&&f(M).onClick(...Y)),onMousedown:U[1]||(U[1]=(...Y)=>f(M).onMousedown&&f(M).onMousedown(...Y)),onMouseup:U[2]||(U[2]=(...Y)=>f(M).onMouseup&&f(M).onMouseup(...Y))},[j(f(Ff),{loop:"",trapped:f(l),"focus-start-el":"container",onFocusAfterTrapped:f(x),onFocusAfterReleased:f(k),onFocusoutPrevented:f(R),onReleaseRequested:f(T)},{default:X(()=>[f(p)?(S(),le(koe,_t({key:0,ref_key:"dialogContentRef",ref:i},B.$attrs,{center:e.center,"align-center":f(b),"close-icon":e.closeIcon,draggable:f(g),overflow:f(_),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:f(w)}),Ta({header:X(()=>[B.$slots.title?ue(B.$slots,"title",{key:1}):ue(B.$slots,"header",{key:0,close:f(w),titleId:f(c),titleClass:f(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,Eoe)]),_:3},8,["mask","overlay-class","z-index"]),[[Vt,f(l)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});const Toe=ht(Aoe),Moe=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 Poe=W({name:"ElDivider",__name:"divider",props:Moe,setup(e){const t=e,n=ke("divider"),s=E(()=>n.cssVar({"border-style":t.borderStyle}));return(a,o)=>(S(),P("div",{class:D([f(n).b(),f(n).m(e.direction)]),style:Qe(s.value),role:"separator"},[a.$slots.default&&e.direction!=="vertical"?(S(),P("div",{key:0,class:D([f(n).e("text"),f(n).is(e.contentPosition)])},[ue(a.$slots,"default")],2)):ie("v-if",!0)],6))}});const hA=ht(Poe),Roe=Me({...iA,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"}}),Ioe={...lA,"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 Ooe(e,t,n){const{width:s,height:a}=Iy(),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(()=>wx(c.value+r.value*u.value,4,i.value)),c=F(0),u=F(0),d=F(!1),h=F(!1);let p=[],v=[];const m=()=>{var C;const x=(C=t.value)==null?void 0:C.closest('[aria-modal="true"]');return x?o.value?x.offsetWidth:x.offsetHeight:100};ge(()=>[e.size,e.resizable],()=>{h.value=!1,c.value=0,u.value=0,_()});const g=C=>{e.resizable&&(h.value||(c.value=m(),h.value=!0),p=[C.pageX,C.pageY],d.value=!0,n("resize-start",C,c.value),v.push(en(window,"mouseup",_),en(window,"mousemove",b)))},b=C=>{const{pageX:x,pageY:k}=C,T=x-p[0],R=k-p[1];u.value=o.value?T:R,n("resize",C,l.value)},_=C=>{d.value&&(p=[],c.value=l.value,u.value=0,d.value=!1,v.forEach(x=>x==null?void 0:x()),v=[],C&&n("resize-end",C,c.value))},w=en(t,"mousedown",g);return Xt(()=>{w(),_()}),{size:E(()=>h.value?`${l.value}px`:Rn(e.size)),isResizing:d,isHorizontal:o}}const Loe=["aria-label","aria-labelledby","aria-describedby"],Noe=["id","aria-level"],$oe=["aria-label"],Doe=["id"];var Foe=W({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:Roe,emits:Ioe,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Wn();ri({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=ke("drawer"),{t:u}=Ot(),{afterEnter:d,afterLeave:h,beforeLeave:p,visible:v,rendered:m,titleId:g,bodyId:b,zIndex:_,onModalClick:w,onOpenAutoFocus:C,onCloseAutoFocus:x,onFocusoutPrevented:k,onCloseRequested:T,handleClose:R}=fA(s,r),{isHorizontal:I,size:M,isResizing:$}=Ooe(s,l,a),O=E(()=>s.modalPenetrable&&!s.modal);return t({handleClose:R,afterEnter:d,afterLeave:h}),(B,U)=>(S(),le(f(Mf),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:X(()=>[j(ys,{name:f(c).b("fade"),onAfterEnter:f(d),onAfterLeave:f(h),onBeforeLeave:f(p),persisted:""},{default:X(()=>{var J;return[bt(j(f(e6),{mask:e.modal,"overlay-class":[f(c).is("drawer"),(J=e.modalClass)!=null?J:"",`${f(c).namespace.value}-modal-drawer`,f(c).is("penetrable",O.value)],"z-index":f(_),onClick:f(w)},{default:X(()=>[j(f(Ff),{loop:"",trapped:f(v),"focus-trap-el":r.value,"focus-start-el":i.value,onFocusAfterTrapped:f(C),onFocusAfterReleased:f(x),onFocusoutPrevented:f(k),onReleaseRequested:f(T)},{default:X(()=>[A("div",_t({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:f(g),"aria-describedby":f(b)},B.$attrs,{class:[f(c).b(),e.direction,f(v)&&"open",f(c).is("dragging",f($))],style:{[f(I)?"width":"height"]:f(M)},role:"dialog",onClick:U[1]||(U[1]=it(()=>{},["stop"]))}),[A("span",{ref_key:"focusStartRef",ref:i,class:D(f(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(S(),P("header",{key:0,class:D([f(c).e("header"),e.headerClass])},[B.$slots.title?ue(B.$slots,"title",{key:1},()=>[ie(" DEPRECATED SLOT ")]):ue(B.$slots,"header",{key:0,close:f(R),titleId:f(g),titleClass:f(c).e("title")},()=>[A("span",{id:f(g),role:"heading","aria-level":e.headerAriaLevel,class:D(f(c).e("title"))},me(e.title),11,Noe)]),e.showClose?(S(),P("button",{key:2,"aria-label":f(u)("el.drawer.close"),class:D(f(c).e("close-btn")),type:"button",onClick:U[0]||(U[0]=(...Y)=>f(R)&&f(R)(...Y))},[j(f(Xe),{class:D(f(c).e("close"))},{default:X(()=>[j(f(qa))]),_:1},8,["class"])],10,$oe)):ie("v-if",!0)],2)):ie("v-if",!0),f(m)?(S(),P("div",{key:1,id:f(b),class:D([f(c).e("body"),e.bodyClass])},[ue(B.$slots,"default")],10,Doe)):ie("v-if",!0),B.$slots.footer?(S(),P("div",{key:2,class:D([f(c).e("footer"),e.footerClass])},[ue(B.$slots,"footer")],2)):ie("v-if",!0),e.resizable?(S(),P("div",{key:3,ref_key:"draggerRef",ref:l,style:Qe({zIndex:f(_)}),class:D(f(c).e("dragger"))},null,6)):ie("v-if",!0)],16,Loe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Vt,f(v)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});const Boe=ht(Foe);var Voe=W({inheritAttrs:!1});function zoe(e,t,n,s,a,o){return ue(e.$slots,"default")}var Hoe=us(Voe,[["render",zoe]]),Woe=W({name:"ElCollectionItem",inheritAttrs:!1});function joe(e,t,n,s,a,o){return ue(e.$slots,"default")}var Koe=us(Woe,[["render",joe]]);const pA="data-el-collection-item",Uoe=e=>{const t=`El${e}Collection`,n=`${t}Item`,s=Symbol(t),a=Symbol(n),o=Object.assign({},Hoe,{name:t,setup(){const i=F(),l=new Map;Mt(s,{itemMap:l,getItems:()=>{const u=f(i);if(!u)return[];const d=Array.from(u.querySelectorAll(`[${pA}]`));return[...l.values()].sort((p,v)=>d.indexOf(p.ref)-d.indexOf(v.ref))},collectionRef:i})}}),r=Object.assign({},Koe,{name:n,setup(i,{attrs:l}){const c=F(),u=We(s,void 0);Mt(a,{collectionItemRef:c}),xt(()=>{const d=f(c);d&&u.itemMap.set(d,{ref:d,...l})}),Xt(()=>{const d=f(c);u.itemMap.delete(d)})}});return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:o,ElCollectionItem:r}},qoe=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:Goe,ElCollectionItem:Yoe,COLLECTION_INJECTION_KEY:vA,COLLECTION_ITEM_INJECTION_KEY:Xoe}=Uoe("RovingFocusGroup"),n6=Symbol("elRovingFocusGroup"),mA=Symbol("elRovingFocusGroupItem"),Joe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Zoe=(e,t)=>e,Qoe=(e,t,n)=>{const s=on(e),a=Zoe(s);return Joe[a]},ere=(e,t)=>e.map((n,s)=>e[(s+t)%e.length]),gA=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},bA="currentTabIdChange",yA="rovingFocusGroup.entryFocus",tre={bubbles:!1,cancelable:!0};var nre=W({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:qoe,emits:[bA,"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}=We(vA,void 0),l=E(()=>[{outline:"none"},e.style]),c=g=>{t(bA,g)},u=()=>{a.value=!0},d=ws(g=>{var b;(b=e.onMousedown)==null||b.call(e,g)},()=>{o.value=!0}),h=ws(g=>{var b;(b=e.onFocus)==null||b.call(e,g)},g=>{const b=!f(o),{target:_,currentTarget:w}=g;if(_===w&&b&&!f(a)){const C=new Event(yA,tre);if(w==null||w.dispatchEvent(C),!C.defaultPrevented){const x=i().filter(M=>M.focusable),k=x.find(M=>M.active),T=x.find(M=>M.id===f(s)),I=[k,T,...x].filter(Boolean).map(M=>M.ref);gA(I)}}o.value=!1}),p=ws(g=>{var b;(b=e.onBlur)==null||b.call(e,g)},()=>{a.value=!1}),v=(...g)=>{t("entryFocus",...g)},m=g=>{const b=Qoe(g);if(b){g.preventDefault();let w=i().filter(C=>C.focusable).map(C=>C.ref);switch(b){case"last":{w.reverse();break}case"prev":case"next":{b==="prev"&&w.reverse();const C=w.indexOf(g.currentTarget);w=e.loop?ere(w,C+1):w.slice(C+1);break}}Be(()=>{gA(w)})}};Mt(n6,{currentTabbedId:iu(s),loop:Qt(e,"loop"),tabIndex:E(()=>f(a)?-1:0),rovingFocusGroupRef:r,rovingFocusGroupRootStyle:l,orientation:Qt(e,"orientation"),dir:Qt(e,"dir"),onItemFocus:c,onItemShiftTab:u,onBlur:p,onFocus:h,onMousedown:d,onKeydown:m}),ge(()=>e.currentTabId,g=>{s.value=g??null}),en(r,yA,v)}});function sre(e,t,n,s,a,o){return ue(e.$slots,"default")}var are=us(nre,[["render",sre]]),ore=W({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Goe,ElRovingFocusGroupImpl:are}});function rre(e,t,n,s,a,o){const r=qe("el-roving-focus-group-impl"),i=qe("el-focus-group-collection");return S(),le(i,null,{default:X(()=>[j(r,Ni(Hi(e.$attrs)),{default:X(()=>[ue(e.$slots,"default")]),_:3},16)]),_:3})}var ire=us(ore,[["render",rre]]);const a1=Me({trigger:{...oi.trigger,type:re([String,Array])},triggerKeys:{type:re(Array),default:()=>[Te.enter,Te.numpadEnter,Te.space,Te.down]},virtualTriggering:oi.virtualTriggering,virtualRef:oi.virtualRef,effect:{...sn.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:sn.popperClass,popperStyle:sn.popperStyle,disabled:Boolean,role:{type:String,values:J9,default:"menu"},buttonProps:{type:re(Object)},teleported:sn.teleported,appendTo:sn.appendTo,persistent:{type:Boolean,default:!0}}),wA=Me({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:nn}}),lre=Me({onKeydown:{type:re(Function)}}),o1=Symbol("elDropdown"),_A="elDropdown",{ButtonGroup:cre}=_s;var ure=W({name:"ElDropdown",components:{ElButton:_s,ElButtonGroup:cre,ElScrollbar:vr,ElTooltip:As,ElRovingFocusGroup:ire,ElOnlyChild:tk,ElIcon:Xe,ArrowDown:pr},props:a1,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Ct(),s=ke("dropdown"),{t:a}=Ot(),o=F(),r=F(),i=F(),l=F(),c=F(null),u=F(null),d=F(!1),h=E(()=>({maxHeight:Rn(e.maxHeight)})),p=E(()=>[s.m(C.value)]),v=E(()=>ks(e.trigger)),m=Fs().value,g=E(()=>e.id||m);function b(){var B;(B=i.value)==null||B.onClose(void 0,0)}function _(){var B;(B=i.value)==null||B.onClose()}function w(){var B;(B=i.value)==null||B.onOpen()}const C=ss();function x(...B){t("command",...B)}function k(){}function T(){const B=f(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 M(B){var U;d.value=(B==null?void 0:B.type)==="keydown",(U=l.value)==null||U.focus()}function $(){t("visible-change",!1)}return Mt(o1,{contentRef:l,role:E(()=>e.role),triggerId:g,isUsingKeyboard:d,onItemEnter:k,onItemLeave:T,handleClose:_}),Mt(_A,{instance:n,dropdownSize:C,handleClick:b,commandHandler:x,trigger:Qt(e,"trigger"),hideOnClick:Qt(e,"hideOnClick")}),{t:a,ns:s,scrollbar:c,wrapStyle:h,dropdownTriggerKls:p,dropdownSize:C,triggerId:g,currentTabId:u,handleCurrentTabIdChange:R,handlerMainButtonClick:B=>{t("click",B)},handleClose:_,handleOpen:w,handleBeforeShowTooltip:I,handleShowTooltip:M,handleBeforeHideTooltip:$,popperRef:i,contentRef:l,triggeringElementRef:o,referenceElementRef:r}}});function dre(e,t,n,s,a,o){var r;const i=qe("el-roving-focus-group"),l=qe("el-scrollbar"),c=qe("el-only-child"),u=qe("el-tooltip"),d=qe("el-button"),h=qe("arrow-down"),p=qe("el-icon"),v=qe("el-button-group");return S(),P("div",{class:D([e.ns.b(),e.ns.is("disabled",e.disabled)])},[j(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(()=>[j(l,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:X(()=>[j(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(()=>[j(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(),le(v,{key:0},{default:X(()=>[j(d,_t({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"]),j(d,_t({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(()=>[j(p,{class:D(e.ns.e("icon"))},{default:X(()=>[j(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ie("v-if",!0)],2)}var fre=us(ure,[["render",dre]]),hre=W({components:{ElRovingFocusCollectionItem:Yoe},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}=We(n6,void 0),r=Fs(),i=F(),l=ws(h=>{t("mousedown",h)},h=>{e.focusable?s(f(r)):h.preventDefault()}),c=ws(h=>{t("focus",h)},()=>{s(f(r))}),u=ws(h=>{t("keydown",h)},h=>{const{shiftKey:p,target:v,currentTarget:m}=h;if(on(h)===Te.tab&&p){a();return}v===m&&o(h)}),d=E(()=>n.value===f(r));return Mt(mA,{rovingFocusGroupItemRef:i,tabIndex:E(()=>f(d)?0:-1),handleMousedown:l,handleFocus:c,handleKeydown:u}),{id:r,handleKeydown:u,handleFocus:c,handleMousedown:l}}});function pre(e,t,n,s,a,o){const r=qe("el-roving-focus-collection-item");return S(),le(r,{id:e.id,focusable:e.focusable,active:e.active},{default:X(()=>[ue(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var vre=us(hre,[["render",pre]]),mre=W({name:"DropdownItemImpl",components:{ElIcon:Xe},props:wA,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ke("dropdown"),{role:s}=We(o1,void 0),{collectionItemRef:a}=We(Xoe,void 0),{rovingFocusGroupItemRef:o,tabIndex:r,handleFocus:i,handleKeydown:l,handleMousedown:c}=We(mA,void 0),u=t6(a,o),d=E(()=>s.value==="menu"?"menuitem":s.value==="navigation"?"link":"button"),h=ws(p=>{const v=on(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:{[pA]:""},role:d,tabIndex:r,handleFocus:i,handleKeydown:h,handleMousedown:c}}});const gre=["aria-disabled","tabindex","role"];function bre(e,t,n,s,a,o){const r=qe("el-icon");return S(),P(Ve,null,[e.divided?(S(),P("li",{key:0,role:"separator",class:D(e.ns.bem("menu","item","divided"))},null,2)):ie("v-if",!0),A("li",_t({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]=it((...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(),le(r,{key:0},{default:X(()=>[ue(e.$slots,"icon",{},()=>[(S(),le(yt(e.icon)))])]),_:3})):ie("v-if",!0),ue(e.$slots,"default")],16,gre)],64)}var yre=us(mre,[["render",bre]]);const CA=()=>{const e=We(_A,{}),t=E(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}};var wre=W({name:"ElDropdownItem",components:{ElRovingFocusItem:vre,ElDropdownItemImpl:yre},inheritAttrs:!1,props:wA,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:s}=CA(),a=Ct(),{onItemEnter:o,onItemLeave:r}=We(o1,void 0),i=ws(d=>(t("pointermove",d),d.defaultPrevented),hk(d=>{if(e.disabled){r(d);return}const h=d.currentTarget;h===document.activeElement||h.contains(document.activeElement)||(o(d),d.defaultPrevented||h==null||h.focus({preventScroll:!0}))})),l=ws(d=>(t("pointerleave",d),d.defaultPrevented),hk(r)),c=ws(d=>{if(!e.disabled)return t("click",d),d.type!=="keydown"&&d.defaultPrevented},d=>{var h,p,v;if(e.disabled){d.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,d)}),u=E(()=>({...e,...n}));return{handleClick:c,handlePointerMove:i,handlePointerLeave:l,propsAndAttrs:u}}});function _re(e,t,n,s,a,o){const r=qe("el-dropdown-item-impl"),i=qe("el-roving-focus-item");return S(),le(i,{focusable:!e.disabled},{default:X(()=>[j(r,_t(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 SA=us(wre,[["render",_re]]),Cre=W({name:"ElDropdownMenu",props:lre,setup(e){const t=ke("dropdown"),{_elDropdownSize:n}=CA(),s=n.value,{contentRef:a,role:o,triggerId:r,isUsingKeyboard:i,handleClose:l}=We(o1,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:u,onBlur:d,onFocus:h,onKeydown:p,onMousedown:v}=We(n6,void 0),{collectionRef:m}=We(vA,void 0),g=E(()=>[t.b("menu"),t.bm("menu",s==null?void 0:s.value)]),b=t6(a,c,m),_=ws(C=>{var x;(x=e.onKeydown)==null||x.call(e,C)},C=>{const{currentTarget:x,target:k}=C,T=on(C);if(x.contains(k),Te.tab===T)return l();p(C)});function w(C){i.value&&h(C)}return{size:s,rovingFocusGroupRootStyle:u,dropdownKls:g,role:o,triggerId:r,dropdownListWrapperRef:b,handleKeydown:_,onBlur:d,handleFocus:w,onMousedown:v}}});const Sre=["role","aria-labelledby"];function xre(e,t,n,s,a,o){return S(),P("ul",{ref:e.dropdownListWrapperRef,class:D(e.dropdownKls),style:Qe(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]=it((...r)=>e.handleKeydown&&e.handleKeydown(...r),["self"])),onMousedown:t[3]||(t[3]=it((...r)=>e.onMousedown&&e.onMousedown(...r),["self"]))},[ue(e.$slots,"default")],46,Sre)}var xA=us(Cre,[["render",xre]]);const kre=ht(fre,{DropdownItem:SA,DropdownMenu:xA}),Ere=Tn(SA),Are=Tn(xA),Tre=Me({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Mre={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Pre=["id"],Rre=["stop-color"],Ire=["stop-color"],Ore=["id"],Lre=["stop-color"],Nre=["stop-color"],$re=["id"],Dre={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Fre={transform:"translate(-1268.000000, -535.000000)"},Bre={transform:"translate(1268.000000, 535.000000)"},Vre=["fill"],zre=["fill"],Hre={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},Wre=["fill"],jre=["fill"],Kre=["fill"],Ure=["fill"],qre=["fill"],Gre={transform:"translate(53.000000, 45.000000)"},Yre=["fill","xlink:href"],Xre=["fill","mask"],Jre=["fill"];var Zre=W({name:"ImgEmpty",__name:"img-empty",setup(e){const t=ke("empty"),n=Fs();return(s,a)=>(S(),P("svg",Mre,[A("defs",null,[A("linearGradient",{id:`linearGradient-1-${f(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Rre),A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,Ire)],8,Pre),A("linearGradient",{id:`linearGradient-2-${f(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Lre),A("stop",{"stop-color":`var(${f(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,Nre)],8,Ore),A("rect",{id:`path-3-${f(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,$re)]),A("g",Dre,[A("g",Fre,[A("g",Bre,[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(${f(t).cssVarBlockName("fill-color-3")})`},null,8,Vre),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,zre),A("g",Hre,[A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,Wre),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,jre),A("rect",{fill:`url(#linearGradient-1-${f(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,Kre),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,Ure)]),A("rect",{fill:`url(#linearGradient-2-${f(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,qre),A("g",Gre,[A("use",{fill:`var(${f(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${f(n)}`},null,8,Yre),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${f(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,Xre)]),A("polygon",{fill:`var(${f(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,Jre)])])])]))}});const Qre=["src"],eie={key:1};var tie=W({name:"ElEmpty",__name:"empty",props:Tre,setup(e){const t=e,{t:n}=Ot(),s=ke("empty"),a=E(()=>t.description||n("el.table.emptyText")),o=E(()=>({width:Rn(t.imageSize)}));return(r,i)=>(S(),P("div",{class:D(f(s).b())},[A("div",{class:D(f(s).e("image")),style:Qe(o.value)},[e.image?(S(),P("img",{key:0,src:e.image,ondragstart:"return false"},null,8,Qre)):ue(r.$slots,"image",{key:1},()=>[j(Zre)])],6),A("div",{class:D(f(s).e("description"))},[r.$slots.description?ue(r.$slots,"description",{key:0}):(S(),P("p",eie,me(a.value),1))],2),r.$slots.default?(S(),P("div",{key:0,class:D(f(s).e("bottom"))},[ue(r.$slots,"default")],2)):ie("v-if",!0)],2))}});const kA=ht(tie),nie=Me({size:{type:String,values:hr},disabled:Boolean}),sie=Me({...nie,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}}),aie={validate:(e,t,n)=>(Ae(e)||Ye(e))&&tn(t)&&Ye(n)};function oie(){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 r1=(e,t)=>{const n=ks(t).map(s=>Ae(s)?s.join("."):s);return n.length>0?e.filter(s=>s.propString&&n.includes(s.propString)):e};var rie=W({name:"ElForm",__name:"form",props:sie,emits:aie,setup(e,{expose:t,emit:n}){const s=e,a=n,o=F(),r=Kt([]),i=ss(),l=ke("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=>r1(r,[k])[0],d=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&&iV(k,T.prop)){const R=Af(k,T.prop).value;T.setInitialValue(R)}})},v=(k=[])=>{s.model&&r1(r,k).forEach(T=>T.resetField())},m=(k=[])=>{r1(r,k).forEach(T=>T.clearValidate())},g=E(()=>!!s.model),b=k=>{if(r.length===0)return[];const T=r1(r,k);return T.length?T:[]},_=async k=>C(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(M){R={...R,...M}}return Object.keys(R).length===0?!0:Promise.reject(R)},C=async(k=[],T)=>{let R=!1;const I=!Ze(T);try{return R=await w(k),R===!0&&await(T==null?void 0:T(R)),R}catch(M){if(M instanceof Error)throw M;const $=M;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 ge(()=>s.rules,()=>{s.validateOnRuleChange&&_().catch(k=>void 0)},{deep:!0,flush:"post"}),Mt(Eu,Kt({...bs(s),emit:a,resetFields:v,clearValidate:m,validateField:C,getField:u,addField:d,removeField:h,setInitialValues:p,...oie()})),t({validate:_,validateField:C,resetFields:v,clearValidate:m,scrollToField:x,getField:u,fields:r,setInitialValues:p}),(k,T)=>(S(),P("form",{ref_key:"formRef",ref:o,class:D(c.value)},[ue(k.$slots,"default")],2))}});const iie=["","error","validating","success"],lie=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:iie},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:hr}});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 cie(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yp(e,t)}function s6(e){return s6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},s6(e)}function Yp(e,t){return Yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},Yp(e,t)}function uie(){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 i1(e,t,n){return uie()?i1=Reflect.construct.bind():i1=function(a,o,r){var i=[null];i.push.apply(i,o);var l=Function.bind.apply(a,i),c=new l;return r&&Yp(c,r.prototype),c},i1.apply(null,arguments)}function die(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function a6(e){var t=typeof Map=="function"?new Map:void 0;return a6=function(s){if(s===null||!die(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 i1(s,arguments,s6(this).constructor)}return a.prototype=Object.create(s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Yp(a,s)},a6(e)}var fie=/%[sdj%]/g,hie=function(){};function o6(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 po(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(fie,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 pie(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ts(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||pie(t)&&typeof e=="string"&&!e)}function vie(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 EA(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 mie(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var AA=function(e){cie(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}(a6(Error));function gie(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 AA(b,o6(b))):h(a)},m=mie(e);EA(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=[],d=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 AA(u,o6(u))):h(a)};i.length||(s(u),h(a)),i.forEach(function(m){var g=e[m];r.indexOf(m)!==-1?EA(g,n,v):vie(g,n,v)})});return d.catch(function(h){return h}),d}function bie(e){return!!(e&&e.message!==void 0)}function yie(e,t){for(var n=e,s=0;s<t.length;s++){if(n==null)return n;n=n[t[s]]}return n}function TA(e,t){return function(n){var s;return e.fullFields?s=yie(t,e.fullFields):s=t[n.field||e.fullField],bie(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 MA(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 PA=function(t,n,s,a,o,r){t.required&&(!s.hasOwnProperty(t.field)||Ts(n,r||t.type))&&a.push(po(o.messages.required,t.fullField))},wie=function(t,n,s,a,o){(/^\s+$/.test(n)||n==="")&&a.push(po(o.messages.whitespace,t.fullField))},l1,_ie=function(){if(l1)return l1;var e="[a-fA-F\\d:]",t=function(C){return C&&C.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(C){return C&&C.exact?o:new RegExp("(?:"+t(C)+n+t(C)+")|(?:"+t(C)+a+t(C)+")","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*)?@)?",d=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+"|www\\.)"+u+"(?:localhost|"+d+"|"+h+"|"+p+v+m+")"+g+b;return l1=new RegExp("(?:^"+_+"$)","i"),l1},RA={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},Xp={integer:function(t){return Xp.number(t)&&parseInt(t,10)===t},float:function(t){return Xp.number(t)&&!Xp.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"&&!Xp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(RA.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(_ie())},hex:function(t){return typeof t=="string"&&!!t.match(RA.hex)}},Cie=function(t,n,s,a,o){if(t.required&&n===void 0){PA(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?Xp[i](n)||a.push(po(o.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&a.push(po(o.messages.types[i],t.fullField,t.type))},Sie=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,d=null,h=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(h?d="number":p?d="string":v&&(d="array"),!d)return!1;v&&(u=n.length),p&&(u=n.replace(c,"_").length),r?u!==t.len&&a.push(po(o.messages[d].len,t.fullField,t.len)):i&&!l&&u<t.min?a.push(po(o.messages[d].min,t.fullField,t.min)):l&&!i&&u>t.max?a.push(po(o.messages[d].max,t.fullField,t.max)):i&&l&&(u<t.min||u>t.max)&&a.push(po(o.messages[d].range,t.fullField,t.min,t.max))},Uf="enum",xie=function(t,n,s,a,o){t[Uf]=Array.isArray(t[Uf])?t[Uf]:[],t[Uf].indexOf(n)===-1&&a.push(po(o.messages[Uf],t.fullField,t[Uf].join(", ")))},kie=function(t,n,s,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(po(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(po(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},mn={required:PA,whitespace:wie,type:Cie,range:Sie,enum:xie,pattern:kie},Eie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n,"string")&&!t.required)return s();mn.required(t,n,a,r,o,"string"),Ts(n,"string")||(mn.type(t,n,a,r,o),mn.range(t,n,a,r,o),mn.pattern(t,n,a,r,o),t.whitespace===!0&&mn.whitespace(t,n,a,r,o))}s(r)},Aie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();mn.required(t,n,a,r,o),n!==void 0&&mn.type(t,n,a,r,o)}s(r)},Tie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(n===""&&(n=void 0),Ts(n)&&!t.required)return s();mn.required(t,n,a,r,o),n!==void 0&&(mn.type(t,n,a,r,o),mn.range(t,n,a,r,o))}s(r)},Mie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();mn.required(t,n,a,r,o),n!==void 0&&mn.type(t,n,a,r,o)}s(r)},Pie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();mn.required(t,n,a,r,o),Ts(n)||mn.type(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(Ts(n)&&!t.required)return s();mn.required(t,n,a,r,o),n!==void 0&&(mn.type(t,n,a,r,o),mn.range(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(Ts(n)&&!t.required)return s();mn.required(t,n,a,r,o),n!==void 0&&(mn.type(t,n,a,r,o),mn.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(n==null&&!t.required)return s();mn.required(t,n,a,r,o,"array"),n!=null&&(mn.type(t,n,a,r,o),mn.range(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(Ts(n)&&!t.required)return s();mn.required(t,n,a,r,o),n!==void 0&&mn.type(t,n,a,r,o)}s(r)},Nie="enum",$ie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();mn.required(t,n,a,r,o),n!==void 0&&mn[Nie](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(Ts(n,"string")&&!t.required)return s();mn.required(t,n,a,r,o),Ts(n,"string")||mn.pattern(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(Ts(n,"date")&&!t.required)return s();if(mn.required(t,n,a,r,o),!Ts(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),mn.type(t,l,a,r,o),l&&mn.range(t,l.getTime(),a,r,o)}}s(r)},Bie=function(t,n,s,a,o){var r=[],i=Array.isArray(n)?"array":typeof n;mn.required(t,n,a,r,o,i),s(r)},r6=function(t,n,s,a,o){var r=t.type,i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ts(n,r)&&!t.required)return s();mn.required(t,n,a,i,o,r),Ts(n,r)||mn.type(t,n,a,i,o)}s(i)},Vie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();mn.required(t,n,a,r,o)}s(r)},Jp={string:Eie,method:Aie,number:Tie,boolean:Mie,regexp:Pie,integer:Rie,float:Iie,array:Oie,object:Lie,enum:$ie,pattern:Die,date:Fie,url:r6,hex:r6,email:r6,required:Bie,any:Vie};function i6(){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 l6=i6(),Zp=function(){function e(n){this.rules=null,this._messages=l6,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=MA(i6(),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(C)){var x;g=(x=g).concat.apply(x,C)}else g.push(C)}for(var w=0;w<m.length;w++)_(m[w]);g.length?(b=o6(g),c(g,b)):c(null,i)}if(l.messages){var d=this.messages();d===l6&&(d=i6()),MA(d,l.messages),l.messages=d}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(_){var w=_;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 gie(h,l,function(m,g){var b=m.rule,_=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");_=_&&(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 C(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(TA(b,i));if(l.first&&R.length)return v[b.field]=1,g(R);if(!_)g(R);else{if(b.required&&!m.value)return b.message!==void 0?R=[].concat(b.message).map(TA(b,i)):l.error&&(R=[l.error(b,po(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 M={};Object.keys(I).forEach(function(O){var B=I[O],U=Array.isArray(B)?B:[B];M[O]=U.map(w.bind(null,O))});var $=new e(M);$.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,C,m.source,l);else if(b.validator){try{x=b.validator(b,m.value,C,m.source,l)}catch(k){console.error==null||console.error(k),l.suppressValidatorError||setTimeout(function(){throw k},0),C(k.message)}x===!0?C():x===!1?C(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):x instanceof Array?C(x):x instanceof Error&&C(x.message)}x&&x.then&&x.then(function(){return C()},function(k){return C(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&&!Jp.hasOwnProperty(s.type))throw new Error(po("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"?Jp.required:Jp[this.getType(s)]||void 0},e}();Zp.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Jp[t]=n},Zp.warning=hie,Zp.messages=l6,Zp.validators=Jp;const IA="ElLabelWrap";var zie=W({name:IA,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=We(Eu,void 0),s=We(ai);s||Zn(IA,"usage: <el-form-item><label-wrap /></el-form-item>");const a=ke("form"),o=F(),r=F(0),i=()=>{var u;if((u=o.value)!=null&&u.firstElementChild){const d=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},l=(u="update")=>{Be(()=>{t.default&&e.isAutoWidth&&(u==="update"?r.value=i():u==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>l("update");return xt(()=>{c()}),Xt(()=>{l("remove")}),rr(()=>c()),ge(r,(u,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(u,d))}),_n(E(()=>{var u,d;return(d=(u=o.value)==null?void 0:u.firstElementChild)!=null?d:null}),c),()=>{var u,d;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),_=(s.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";g&&(m[_]=`${g}px`)}return j("div",{ref:o,class:[a.be("item","label-wrap")],style:m},[(u=t.default)==null?void 0:u.call(t)])}else return j(Ve,{ref:o},[(d=t.default)==null?void 0:d.call(t)])}}});const Hie=["role","aria-labelledby"];var OA=W({name:"ElFormItem",__name:"form-item",props:lie,setup(e,{expose:t}){const n=e,s=Wn(),a=We(Eu,void 0),o=We(ai,void 0),r=ss(void 0,{formItem:!1}),i=ke("form-item"),l=Fs().value,c=F([]),u=F(""),d=VV(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:Rn((he=n.labelWidth)!=null?he:a==null?void 0:a.labelWidth)}}),_=E(()=>{var he;if(g.value==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&M)return{};const ce=Rn((he=n.labelWidth)!=null?he:a==null?void 0:a.labelWidth);return!n.label&&!s.label?{marginLeft:ce}:{}}),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}]),C=E(()=>tn(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),x=E(()=>[i.e("error"),{[i.em("error","inline")]:C.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),M=!!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,ce=[];n.rules&&ce.push(...ks(n.rules));const Z=a==null?void 0:a.rules;if(Z&&n.prop){const H=Af(Z,n.prop).value;H&&ce.push(...ks(H))}if(he!==void 0){const H=ce.map((te,de)=>[te,de]).filter(([te])=>"required"in te);if(H.length>0)for(const[te,de]of H)te.required!==he&&(ce[de]={...te,required:he});else ce.push({required:he})}return ce}),B=E(()=>O.value.length>0),U=he=>O.value.filter(Z=>!Z.trigger||!he?!0:Ae(Z.trigger)?Z.trigger.includes(he):Z.trigger===he).map(({trigger:Z,...H})=>H),J=E(()=>O.value.some(he=>he.required)),Y=E(()=>{var he;return d.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 ce,Z;const{errors:H,fields:te}=he;(!H||!te)&&console.error(he),L("error"),h.value=H?(Z=(ce=H==null?void 0:H[0])==null?void 0:ce.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 ce=k.value;return new Zp({[ce]:he}).validate({[ce]:$.value},{firstFields:!0}).then(()=>(z(),!0)).catch(H=>(V(H),Promise.reject(H)))},Q=async(he,ce)=>{if(m||!n.prop)return!1;const Z=Ze(ce);if(!B.value)return ce==null||ce(!1),!1;const H=U(he);return H.length===0?(ce==null||ce(!0),!0):(L("validating"),G(H).then(()=>(ce==null||ce(!0),!0)).catch(te=>{const{fields:de}=te;return ce==null||ce(!1,de),Z?!1:Promise.reject(de)}))},K=()=>{L(""),h.value="",m=!1},ee=async()=>{const he=a==null?void 0:a.model;if(!he||!n.prop)return;const ce=Af(he,n.prop);m=!0,ce.value=_y(v),await Be(),K(),m=!1},ae=he=>{c.value.includes(he)||c.value.push(he)},fe=he=>{c.value=c.value.filter(ce=>ce!==he)},ne=he=>{v=_y(he)};ge(()=>n.error,he=>{h.value=he||"",L(he?"error":"")},{immediate:!0}),ge(()=>n.validateStatus,he=>L(he||""));const ve=Kt({...bs(n),$el:p,size:r,validateMessage:h,validateState:u,labelId:l,inputIds:c,isGroup:I,hasLabel:T,fieldValue:$,addInputId:ae,removeInputId:fe,resetField:ee,clearValidate:K,validate:Q,propString:k,setInitialValue:ne});return Mt(ai,ve),xt(()=>{n.prop&&(a==null||a.addField(ve),v=_y($.value))}),Xt(()=>{a==null||a.removeField(ve)}),t({size:r,validateMessage:h,validateState:u,validate:Q,clearValidate:K,resetField:ee,setInitialValue:ne}),(he,ce)=>{var Z;return S(),P("div",{ref_key:"formItemRef",ref:p,class:D(w.value),role:I.value?"group":void 0,"aria-labelledby":I.value?f(l):void 0},[j(f(zie),{"is-auto-width":b.value.width==="auto","update-all":((Z=f(a))==null?void 0:Z.labelWidth)==="auto"},{default:X(()=>[e.label||he.$slots.label?(S(),le(yt(R.value?"label":"div"),{key:0,id:f(l),for:R.value,class:D(f(i).e("label")),style:Qe(b.value)},{default:X(()=>[ue(he.$slots,"label",{label:N.value},()=>[Ke(me(N.value),1)])]),_:3},8,["id","for","class","style"])):ie("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),A("div",{class:D(f(i).e("content")),style:Qe(_.value)},[ue(he.$slots,"default"),j(BS,{name:`${f(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)},me(h.value),3)]):ie("v-if",!0)]),_:3},8,["name"])],6)],10,Hie)}}});const Wie=ht(rie,{FormItem:OA}),jie=Tn(OA),Kie=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:()=>In([])},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)}}),Uie={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>nt(e),close:()=>!0,show:()=>!0},qie=Me({urlList:{type:re(Array),default:()=>In([])},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)}}),Gie={close:()=>!0,error:e=>e instanceof Event,switch:e=>nt(e),rotate:e=>nt(e)},Yie=["src","crossorigin"];var Xie=W({name:"ElImageViewer",__name:"image-viewer",props:qie,emits:Gie,setup(e,{expose:t,emit:n}){var s;const a={CONTAIN:{name:"contain",icon:jr(By)},ORIGINAL:{name:"original",icon:jr(r9)}},o=e,r=n;let i;const{t:l}=Ot(),c=ke("image-viewer"),{nextZIndex:u}=wp(),d=F(),h=F(),p=VI(),v=E(()=>{const{scale:ce,minScale:Z,maxScale:H}=o;return wx(ce,Z,H)}),m=F(!0),g=F(!1),b=F(!1),_=F(o.initialIndex),w=pn(a.CONTAIN),C=F({scale:v.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),x=F((s=o.zIndex)!=null?s:u());s1(b,{ns:c});const k=E(()=>{const{urlList:ce}=o;return ce.length<=1}),T=E(()=>_.value===0),R=E(()=>_.value===o.urlList.length-1),I=E(()=>o.urlList[_.value]),M=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:ce,deg:Z,offsetX:H,offsetY:te,enableTransition:de}=C.value;let be=H/ce,_e=te/ce;const xe=Z*Math.PI/180,Oe=Math.cos(xe),De=Math.sin(xe);be=be*Oe+_e*De,_e=_e*Oe-H/ce*De;const Ne={transform:`scale(${ce}) rotate(${Z}deg) translate(${be}px, ${_e}px)`,transition:de?"transform .3s":""};return w.value.name===a.CONTAIN.name&&(Ne.maxWidth=Ne.maxHeight="100%"),Ne}),B=E(()=>`${_.value+1} / ${o.urlList.length}`);function U(){Y(),i==null||i(),b.value=!1,r("close")}function J(){const ce=nc(H=>{switch(on(H)){case Te.esc:o.closeOnPressEscape&&U();break;case Te.space:Q();break;case Te.left:ee();break;case Te.up:fe("zoomIn");break;case Te.right:ae();break;case Te.down:fe("zoomOut");break}}),Z=nc(H=>{const te=H.deltaY||H.deltaX;fe(te<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});p.run(()=>{en(document,"keydown",ce),en(d,"wheel",Z)})}function Y(){p.stop()}function N(){m.value=!1}function L(ce){g.value=!0,m.value=!1,r("error",ce),ce.target.alt=l("el.image.error")}function V(ce){if(m.value||ce.button!==0||!d.value)return;C.value.enableTransition=!1;const{offsetX:Z,offsetY:H}=C.value,te=ce.pageX,de=ce.pageY,be=nc(Oe=>{C.value={...C.value,offsetX:Z+Oe.pageX-te,offsetY:H+Oe.pageY-de}}),_e=en(document,"mousemove",be),xe=en(document,"mouseup",()=>{_e(),xe()});ce.preventDefault()}function z(ce){if(m.value||!d.value||ce.touches.length!==1)return;C.value.enableTransition=!1;const{offsetX:Z,offsetY:H}=C.value,{pageX:te,pageY:de}=ce.touches[0],be=nc(Oe=>{const De=Oe.touches[0];C.value={...C.value,offsetX:Z+De.pageX-te,offsetY:H+De.pageY-de}}),_e=en(document,"touchmove",be),xe=en(document,"touchend",()=>{_e(),xe()});ce.preventDefault()}function G(){C.value={scale:v.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function Q(){if(m.value||g.value)return;const ce=Cp(a),Z=Object.values(a),H=w.value.name,de=(Z.findIndex(be=>be.name===H)+1)%ce.length;w.value=a[ce[de]],G()}function K(ce){g.value=!1;const Z=o.urlList.length;_.value=(ce+Z)%Z}function ee(){T.value&&!o.infinite||K(_.value-1)}function ae(){R.value&&!o.infinite||K(_.value+1)}function fe(ce,Z={}){if(m.value||g.value)return;const{minScale:H,maxScale:te}=o,{zoomRate:de,rotateDeg:be,enableTransition:_e}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Z};switch(ce){case"zoomOut":C.value.scale>H&&(C.value.scale=Number.parseFloat((C.value.scale/de).toFixed(3)));break;case"zoomIn":C.value.scale<te&&(C.value.scale=Number.parseFloat((C.value.scale*de).toFixed(3)));break;case"clockwise":C.value.deg+=be,r("rotate",C.value.deg);break;case"anticlockwise":C.value.deg-=be,r("rotate",C.value.deg);break}C.value.enableTransition=_e}function ne(ce){var Z;((Z=ce.detail)==null?void 0:Z.focusReason)==="pointer"&&ce.preventDefault()}function ve(){o.closeOnPressEscape&&U()}function he(ce){if(ce.ctrlKey){if(ce.deltaY<0)return ce.preventDefault(),!1;if(ce.deltaY>0)return ce.preventDefault(),!1}}return ge(()=>v.value,ce=>{C.value.scale=ce}),ge(I,()=>{Be(()=>{const ce=h.value;ce!=null&&ce.complete||(m.value=!0)})}),ge(_,ce=>{G(),r("switch",ce)}),xt(()=>{b.value=!0,J(),i=en("wheel",he,{passive:!1})}),t({setActiveItem:K}),(ce,Z)=>(S(),le(f(Mf),{to:"body",disabled:!e.teleported},{default:X(()=>[j(ys,{name:"viewer-fade",appear:""},{default:X(()=>[A("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:D(f(c).e("wrapper")),style:Qe({zIndex:x.value})},[j(f(Ff),{loop:"",trapped:"","focus-trap-el":d.value,"focus-start-el":"container",onFocusoutPrevented:ne,onReleaseRequested:ve},{default:X(()=>[A("div",{class:D(f(c).e("mask")),onClick:Z[0]||(Z[0]=it(H=>e.hideOnClickModal&&U(),["self"]))},null,2),ie(" CLOSE "),A("span",{class:D([f(c).e("btn"),f(c).e("close")]),onClick:U},[j(f(Xe),null,{default:X(()=>[j(f(qa))]),_:1})],2),ie(" ARROW "),k.value?ie("v-if",!0):(S(),P(Ve,{key:0},[A("span",{class:D(M.value),onClick:ee},[j(f(Xe),null,{default:X(()=>[j(f($o))]),_:1})],2),A("span",{class:D($.value),onClick:ae},[j(f(Xe),null,{default:X(()=>[j(f($s))]),_:1})],2)],64)),ce.$slots.progress||e.showProgress?(S(),P("div",{key:1,class:D([f(c).e("btn"),f(c).e("progress")])},[ue(ce.$slots,"progress",{activeIndex:_.value,total:e.urlList.length},()=>[Ke(me(B.value),1)])],2)):ie("v-if",!0),ie(" ACTIONS "),A("div",{class:D([f(c).e("btn"),f(c).e("actions")])},[A("div",{class:D(f(c).e("actions__inner"))},[ue(ce.$slots,"toolbar",{actions:fe,prev:ee,next:ae,reset:Q,activeIndex:_.value,setActiveItem:K},()=>[j(f(Xe),{onClick:Z[1]||(Z[1]=H=>fe("zoomOut"))},{default:X(()=>[j(f(jy))]),_:1}),j(f(Xe),{onClick:Z[2]||(Z[2]=H=>fe("zoomIn"))},{default:X(()=>[j(f(kg))]),_:1}),A("i",{class:D(f(c).e("actions__divider"))},null,2),j(f(Xe),{onClick:Q},{default:X(()=>[(S(),le(yt(w.value.icon)))]),_:1}),A("i",{class:D(f(c).e("actions__divider"))},null,2),j(f(Xe),{onClick:Z[3]||(Z[3]=H=>fe("anticlockwise"))},{default:X(()=>[j(f(xg))]),_:1}),j(f(Xe),{onClick:Z[4]||(Z[4]=H=>fe("clockwise"))},{default:X(()=>[j(f(o9))]),_:1})])],2)],2),ie(" CANVAS "),A("div",{class:D(f(c).e("canvas"))},[g.value&&ce.$slots["viewer-error"]?ue(ce.$slots,"viewer-error",{key:0,activeIndex:_.value,src:I.value}):(S(),P("img",{ref_key:"imgRef",ref:h,key:I.value,src:I.value,style:Qe(O.value),class:D(f(c).e("img")),crossorigin:e.crossorigin,onLoad:N,onError:L,onMousedown:V,onTouchstart:z},null,46,Yie))],2),ue(ce.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});const LA=ht(Xie),Jie=["src","loading","crossorigin"],Zie={key:0};var Qie=W({name:"ElImage",inheritAttrs:!1,__name:"image",props:Kie,emits:Uie,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Ot(),r=ke("image"),i=zi(),l=E(()=>pp(Object.entries(i).filter(([N])=>/^(data-|on[A-Z])/i.test(N)||["id","style"].includes(N)))),c=Rg({excludeListeners:!0,excludeKeys:E(()=>Object.keys(l.value))}),u=F(),d=F(!1),h=F(!0),p=F(!1),v=F(),m=F(),g=Ut&&"loading"in HTMLImageElement.prototype;let b;const _=E(()=>[r.e("inner"),C.value&&r.e("preview"),h.value&&r.is("loading")]),w=E(()=>{const{fit:N}=s;return Ut&&N?{objectFit:N}:{}}),C=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=()=>{Ut&&(h.value=!0,d.value=!1,u.value=s.src)};function R(N){h.value=!1,d.value=!1,a("load",N)}function I(N){h.value=!1,d.value=!0,a("error",N)}function M(N){N&&(T(),B())}const $=Cx(M,200,!0);async function O(){var N;if(!Ut)return;await Be();const{scrollContainer:L}=s;if(Ka(L))m.value=L;else if(Ye(L)&&L!=="")m.value=(N=document.querySelector(L))!=null?N:void 0;else if(v.value){const z=Ly(v.value);m.value=gp(z)?void 0:z}const{stop:V}=GV(v,([z])=>{$(z.isIntersecting)},{root:m});b=V}function B(){!Ut||!$||(b==null||b(),m.value=void 0,b=void 0)}function U(){C.value&&(p.value=!0,a("show"))}function J(){p.value=!1,a("close")}function Y(N){a("switch",N)}return ge(()=>s.src,()=>{k.value?(h.value=!0,d.value=!1,B(),O()):T()}),xt(()=>{k.value?O():T()}),t({showPreview:U}),(N,L)=>(S(),P("div",_t({ref_key:"container",ref:v},l.value,{class:[f(r).b(),N.$attrs.class]}),[d.value?ue(N.$slots,"error",{key:0},()=>[A("div",{class:D(f(r).e("error"))},me(f(o)("el.image.error")),3)]):(S(),P(Ve,{key:1},[u.value!==void 0?(S(),P("img",_t({key:0},f(c),{src:u.value,loading:e.loading,style:w.value,class:_.value,crossorigin:e.crossorigin,onClick:U,onLoad:R,onError:I}),null,16,Jie)):ie("v-if",!0),h.value?(S(),P("div",{key:1,class:D(f(r).e("wrapper"))},[ue(N.$slots,"placeholder",{},()=>[A("div",{class:D(f(r).e("placeholder"))},null,2)])],2)):ie("v-if",!0)],64)),C.value?(S(),P(Ve,{key:2},[p.value?(S(),le(f(LA),{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",Ni(Hi(V)))]),default:X(()=>[N.$slots.viewer?(S(),P("div",Zie,[ue(N.$slots,"viewer")])):ie("v-if",!0)]),_:2},[N.$slots.progress?{name:"progress",fn:X(V=>[ue(N.$slots,"progress",Ni(Hi(V)))]),key:"0"}:void 0,N.$slots["viewer-error"]?{name:"viewer-error",fn:X(V=>[ue(N.$slots,"viewer-error",Ni(Hi(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 ele=ht(Qie),tle=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:cs,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:re([String,Number,null]),validator:e=>e===null||nt(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},...ca(["ariaLabel"]),inputmode:{type:re(String),default:void 0},align:{type:re(String),default:"center"},disabledScientific:Boolean}),nle={[Rt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[ns]:e=>nt(e)||Yn(e),[lt]:e=>nt(e)||Yn(e)},sle=["aria-label"],ale=["aria-label"];var ole=W({name:"ElInputNumber",__name:"input-number",props:tle,emits:nle,setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Ot(),r=ke("input-number"),i=F(),l=Kt({currentValue:s.modelValue,userInput:null}),{formItem:c}=Es(),u=E(()=>nt(s.modelValue)&&s.modelValue<=s.min),d=E(()=>nt(s.modelValue)&&s.modelValue>=s.max),h=E(()=>{const N=_(s.step);return Dt(s.precision)?Math.max(_(s.modelValue),N):(N>s.precision,s.precision)}),p=E(()=>s.controls&&s.controlsPosition==="right"),v=ss(),m=On(),g=E(()=>{if(l.userInput!==null)return l.userInput;let N=l.currentValue;if(Yn(N))return"";if(nt(N)){if(Number.isNaN(N))return"";Dt(s.precision)||(N=N.toFixed(s.precision))}return N}),b=(N,L)=>{if(Dt(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 K=V.length;return V.charAt(K-1)==="5"&&(V=`${V.slice(0,Math.max(0,K-1))}6`),Number.parseFloat(Number(V).toFixed(L))},_=N=>{if(Yn(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)=>nt(N)?N>=Number.MAX_SAFE_INTEGER&&L===1||N<=Number.MIN_SAFE_INTEGER&&L===-1?N:b(N+s.step*L):l.currentValue,C=N=>{const L=on(N),V=pk(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||d.value)return;const N=Number(g.value)||0,L=w(N);R(L),a(ns,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(ns,l.currentValue),J()},T=(N,L)=>{const{max:V,min:z,step:G,precision:Q,stepStrictly:K,valueOnClear:ee}=s;V<z&&Zn("InputNumber","min should not be greater than max.");let ae=Number(N);if(Yn(N)||Number.isNaN(ae))return null;if(N===""){if(ee===null)return null;ae=Ye(ee)?{min:z,max:V}[ee]:ee}return K&&(ae=b(Math.round(b(ae/G))*G,Q),ae!==N&&L&&a(lt,ae)),Dt(Q)||(ae=b(ae,Q)),(ae>V||ae<z)&&(ae=ae>V?V:z,L&&a(lt,ae)),ae},R=(N,L=!0)=>{var V;const z=l.currentValue,G=T(N);if(!L){a(lt,G);return}l.userInput=null,!(z===G&&N)&&(a(lt,G),z!==G&&a(Rt,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(ns,L),R(L,!1)},M=N=>{const L=N!==""?Number(N):"";(nt(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)},U=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 ge(()=>s.modelValue,(N,L)=>{const V=T(N,!0);l.userInput===null&&V!==L&&(l.currentValue=V)},{immediate:!0}),ge(()=>s.precision,()=>{l.currentValue=T(s.modelValue)}),xt(()=>{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)),!nt(z)&&z!=null){let Q=Number(z);Number.isNaN(Q)&&(Q=null),a(lt,Q)}G.addEventListener("wheel",Y,{passive:!1})}),rr(()=>{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(),P("div",{class:D([f(r).b(),f(r).m(f(v)),f(r).is("disabled",f(m)),f(r).is("without-controls",!e.controls),f(r).is("controls-right",p.value),f(r).is(e.align,!!e.align)]),onDragstart:L[0]||(L[0]=it(()=>{},["prevent"]))},[e.controls?bt((S(),P("span",{key:0,role:"button","aria-label":f(o)("el.inputNumber.decrease"),class:D([f(r).e("decrease"),f(r).is("disabled",u.value)]),onKeydown:$n(k,["enter"])},[ue(N.$slots,"decrease-icon",{},()=>[j(f(Xe),null,{default:X(()=>[p.value?(S(),le(f(pr),{key:0})):(S(),le(f(Qx),{key:1}))]),_:1})])],42,sle)),[[f(Yg),k]]):ie("v-if",!0),e.controls?bt((S(),P("span",{key:1,role:"button","aria-label":f(o)("el.inputNumber.increase"),class:D([f(r).e("increase"),f(r).is("disabled",d.value)]),onKeydown:$n(x,["enter"])},[ue(N.$slots,"increase-icon",{},()=>[j(f(Xe),null,{default:X(()=>[p.value?(S(),le(f(xp),{key:0})):(S(),le(f(zy),{key:1}))]),_:1})])],42,ale)),[[f(Yg),x]]):ie("v-if",!0),j(f(ua),{id:e.id,ref_key:"input",ref:i,type:"number",step:e.step,"model-value":g.value,placeholder:e.placeholder,readonly:e.readonly,disabled:f(m),size:f(v),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:C,onBlur:U,onFocus:B,onInput:I,onChange:M},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 NA=ht(ole),rle=Me({modelValue:{type:re(Array)},max:Number,tagType:{...ol.type,default:"info"},tagEffect:ol.effect,effect:{type:re(String),default:"light"},trigger:{type:re(String),default:Te.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:cs,clearable:Boolean,clearIcon:{type:nn,default:Do},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}),ile={[lt]:e=>Ae(e)||Dt(e),[Rt]:e=>Ae(e)||Dt(e),[ns]:e=>Ye(e),"add-tag":e=>Ye(e)||Ae(e),"remove-tag":(e,t)=>Ye(e)&&nt(t),"drag-tag":(e,t,n)=>nt(e)&&nt(t)&&Ye(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function lle({props:e,emit:t,formItem:n}){const s=On(),a=ss(),o=pn(),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)),d=E(()=>{var J,Y;return Dt(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:[],...ks(J)];t(lt,N),t(Rt,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(d.value){r.value=void 0;return}if(!$.value){if(e.delimiter&&r.value){const Y=m(r.value);Y.length&&v(Y)}t(ns,J.target.value)}},b=J=>{var Y;if($.value)return;switch(on(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(),C(e.modelValue.length-1));break}},_=J=>{if($.value||!F9())return;switch(on(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||d.value||v(Y)},C=J=>{var Y;const N=((Y=e.modelValue)!=null?Y:[]).slice(),[L]=N.splice(J,1);t(lt,N),t(Rt,N),t("remove-tag",L,J)},x=()=>{r.value=void 0,t(lt,void 0),t(Rt,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(lt,V),t(Rt,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:M}=tl(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:U}=Fp({afterComposition:g});return ge(()=>e.modelValue,()=>{var J;e.validateEvent&&((J=n==null?void 0:n.validate)==null||J.call(n,Rt).catch(Y=>void 0))}),{inputRef:o,wrapperRef:I,tagTooltipRef:i,isFocused:M,isComposing:$,inputValue:r,size:a,tagSize:l,placeholder:c,closable:u,disabled:s,inputLimit:d,showTagList:h,collapseTagList:p,handleDragged:k,handleInput:g,handleKeydown:b,handleKeyup:_,handleAddTag:w,handleRemoveTag:C,handleClear:x,handleCompositionStart:O,handleCompositionUpdate:B,handleCompositionEnd:U,focus:T,blur:R}}function cle(){const e=F(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function ule({wrapperRef:e,handleDragged:t,afterDragged:n}){const s=ke("input-tag"),a=pn(),o=F(!1);let r,i,l,c;function u(v){return`.${s.e("inner")} .${s.namespace.value}-tag:nth-child(${v+1})`}function d(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",Dt(r)||r===m){o.value=!1;return}const g=e.value.querySelector(u(m)).getBoundingClientRect(),b=r+1!==m,_=r-1!==m,w=v.clientX-g.left,C=b?_?.5:1:-1,x=_?b?.5:0:1;w<=g.width*C?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(Xi(k,"gap"))/2,I=g.top-T.top;let M=-9999;if(c==="before")M=Math.max(g.left-T.left-R,Math.floor(-R/2));else if(c==="after"){const $=g.right-T.left;M=$+(T.width===$?Math.floor(R/2):R)}Fx(a.value,{top:`${I}px`,left:`${M}px`}),o.value=!!c}function p(v){v.preventDefault(),i&&(i.style.opacity=""),c&&!Dt(r)&&!Dt(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:d,handleDragOver:h,handleDragEnd:p}}function dle({props:e,isFocused:t,hovering:n,disabled:s,inputValue:a,size:o,validateState:r,validateIcon:i,needStatusIcon:l}){const c=zi(),u=Wn(),d=ke("input-tag"),h=ke("input"),p=F(),v=F(),m=E(()=>[d.b(),d.is("focused",t.value),d.is("hovering",n.value),d.is("disabled",s.value),d.m(o.value),d.e("wrapper"),c.class]),g=E(()=>[c.style]),b=E(()=>{var I,M;return[d.e("inner"),d.is("draggable",e.draggable),d.is("left-space",!((I=e.modelValue)!=null&&I.length)&&!u.prefix),d.is("right-space",!((M=e.modelValue)!=null&&M.length)&&!w.value)]}),_=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||_.value||r.value&&i.value&&l.value),C=Kt({innerWidth:0,collapseItemWidth:0}),x=()=>{if(!v.value)return 0;const I=window.getComputedStyle(v.value);return Number.parseFloat(I.gap||"6px")},k=()=>{C.innerWidth=Number.parseFloat(window.getComputedStyle(v.value).width)},T=()=>{C.collapseItemWidth=p.value.getBoundingClientRect().width},R=E(()=>{if(!e.collapseTags)return{};const I=x(),M=I+Hg,$=p.value&&e.maxCollapseTags===1?C.innerWidth-C.collapseItemWidth-I-M:C.innerWidth-M;return{maxWidth:`${Math.max($,0)}px`}});return _n(v,k),_n(p,T),{ns:d,nsInput:h,containerKls:m,containerStyle:g,innerKls:b,showClear:_,showSuffix:w,tagStyle:R,collapseItemRef:p,innerRef:v}}const fle=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],hle=["textContent"];var ple=W({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:rle,emits:ile,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Rg(),r=Wn(),{form:i,formItem:l}=Es(),{inputId:c}=fo(s,{formItemContext:l}),u=E(()=>{var Ne;return(Ne=i==null?void 0:i.statusIcon)!=null?Ne:!1}),d=E(()=>(l==null?void 0:l.validateState)||""),h=E(()=>d.value&&Eg[d.value]),{inputRef:p,wrapperRef:v,tagTooltipRef:m,isFocused:g,inputValue:b,size:_,tagSize:w,placeholder:C,closable:x,disabled:k,showTagList:T,collapseTagList:R,handleDragged:I,handleInput:M,handleKeydown:$,handleKeyup:O,handleRemoveTag:B,handleClear:U,handleCompositionStart:J,handleCompositionUpdate:Y,handleCompositionEnd:N,focus:L,blur:V}=lle({props:s,emit:a,formItem:l}),{hovering:z,handleMouseEnter:G,handleMouseLeave:Q}=cle(),{calculatorRef:K,inputStyle:ee}=E3(),{dropIndicatorRef:ae,showDropIndicator:fe,handleDragStart:ne,handleDragOver:ve,handleDragEnd:he}=ule({wrapperRef:v,handleDragged:I,afterDragged:L}),{ns:ce,nsInput:Z,containerKls:H,containerStyle:te,innerKls:de,showClear:be,showSuffix:_e,tagStyle:xe,collapseItemRef:Oe,innerRef:De}=dle({props:s,hovering:z,isFocused:g,inputValue:b,disabled:k,size:_,validateState:d,validateIcon:h,needStatusIcon:u});return t({focus:L,blur:V}),(Ne,Ce)=>(S(),P("div",{ref_key:"wrapperRef",ref:v,class:D(f(H)),style:Qe(f(te)),onMouseenter:Ce[8]||(Ce[8]=(...Ie)=>f(G)&&f(G)(...Ie)),onMouseleave:Ce[9]||(Ce[9]=(...Ie)=>f(Q)&&f(Q)(...Ie))},[f(r).prefix?(S(),P("div",{key:0,class:D(f(ce).e("prefix"))},[ue(Ne.$slots,"prefix")],2)):ie("v-if",!0),A("div",{ref_key:"innerRef",ref:De,class:D(f(de))},[(S(!0),P(Ve,null,wt(f(T),(Ie,Pe)=>(S(),le(f(rl),{key:Pe,size:f(w),closable:f(x),type:e.tagType,effect:e.tagEffect,draggable:f(x)&&e.draggable,style:Qe(f(xe)),"disable-transitions":"",onClose:ze=>f(B)(Pe),onDragstart:ze=>f(ne)(ze,Pe),onDragover:ze=>f(ve)(ze,Pe),onDragend:f(he),onDrop:Ce[0]||(Ce[0]=it(()=>{},["stop"]))},{default:X(()=>[ue(Ne.$slots,"tag",{value:Ie,index:Pe},()=>[Ke(me(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(),le(f(As),{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(f(ce).e("collapse-tag"))},[j(f(rl),{closable:!1,size:f(w),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:X(()=>[Ke(" + "+me(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:X(()=>[A("div",{class:D(f(ce).e("input-tag-list"))},[(S(!0),P(Ve,null,wt(f(R),(Ie,Pe)=>(S(),le(f(rl),{key:Pe,size:f(w),closable:f(x),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:ze=>f(B)(Pe+e.maxCollapseTags)},{default:X(()=>[ue(Ne.$slots,"tag",{value:Ie,index:Pe+e.maxCollapseTags},()=>[Ke(me(Ie),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):ie("v-if",!0),A("div",{class:D(f(ce).e("input-wrapper"))},[bt(A("input",_t({id:f(c),ref_key:"inputRef",ref:p,"onUpdate:modelValue":Ce[1]||(Ce[1]=Ie=>vn(b)?b.value=Ie:null)},f(o),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:f(k),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:f(C),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:f(ce).e("input"),style:f(ee),onCompositionstart:Ce[2]||(Ce[2]=(...Ie)=>f(J)&&f(J)(...Ie)),onCompositionupdate:Ce[3]||(Ce[3]=(...Ie)=>f(Y)&&f(Y)(...Ie)),onCompositionend:Ce[4]||(Ce[4]=(...Ie)=>f(N)&&f(N)(...Ie)),onInput:Ce[5]||(Ce[5]=(...Ie)=>f(M)&&f(M)(...Ie)),onKeydown:Ce[6]||(Ce[6]=(...Ie)=>f($)&&f($)(...Ie)),onKeyup:Ce[7]||(Ce[7]=(...Ie)=>f(O)&&f(O)(...Ie))}),null,16,fle),[[WS,f(b)]]),A("span",{ref_key:"calculatorRef",ref:K,"aria-hidden":"true",class:D(f(ce).e("input-calculator")),textContent:me(f(b))},null,10,hle)],2),bt(A("div",{ref_key:"dropIndicatorRef",ref:ae,class:D(f(ce).e("drop-indicator"))},null,2),[[Vt,f(fe)]])],2),f(_e)?(S(),P("div",{key:1,class:D(f(ce).e("suffix"))},[ue(Ne.$slots,"suffix"),f(be)?(S(),le(f(Xe),{key:0,class:D([f(ce).e("icon"),f(ce).e("clear")]),onMousedown:it(f(Yt),["prevent"]),onClick:f(U)},{default:X(()=>[(S(),le(yt(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):ie("v-if",!0),d.value&&h.value&&u.value?(S(),le(f(Xe),{key:1,class:D([f(Z).e("icon"),f(Z).e("validateIcon"),f(Z).is("loading",d.value==="validating")])},{default:X(()=>[(S(),le(yt(h.value)))]),_:1},8,["class"])):ie("v-if",!0)],2)):ie("v-if",!0)],38))}});const vle=ht(ple),mle=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:nn}}),gle={click:e=>e instanceof MouseEvent},ble=["href","target"];var yle=W({name:"ElLink",__name:"link",props:mle,emits:gle,setup(e,{emit:t}){const n=e,s=t,a=Tf("link");ri({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(()=>tn(n.underline)));const o=ke("link"),r=E(()=>{var c,u,d;return[o.b(),o.m((d=(u=n.type)!=null?u:(c=a.value)==null?void 0:c.type)!=null?d:"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,d;return tn(n.underline)?n.underline?"hover":"never":(d=(u=n.underline)!=null?u:(c=a.value)==null?void 0:c.underline)!=null?d:"hover"});function l(c){n.disabled||s("click",c)}return(c,u)=>(S(),P("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(),le(f(Xe),{key:0},{default:X(()=>[(S(),le(yt(e.icon)))]),_:1})):ie("v-if",!0),c.$slots.default?(S(),P("span",{key:1,class:D(f(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,ble))}});const wle=ht(yle);var _le=Object.defineProperty,Cle=(e,t,n)=>t in e?_le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$A=(e,t,n)=>Cle(e,typeof t!="symbol"?t+"":t,n);let Sle=class{constructor(t,n){this.parent=t,this.domNode=n,$A(this,"subMenuItems"),$A(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=on(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:{Ig(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 xle=Object.defineProperty,kle=(e,t,n)=>t in e?xle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ele=(e,t,n)=>kle(e,t+"",n);class Ale{constructor(t,n){this.domNode=t,Ele(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 Sle(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{const n=on(t);let s=!1;switch(n){case Te.down:{Ig(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),s=!0;break}case Te.up:{Ig(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),s=!0;break}case Te.tab:{Ig(t.currentTarget,"mouseleave");break}case Te.enter:case Te.numpadEnter:case Te.space:{s=!0,t.currentTarget.click();break}}s&&t.preventDefault()})}}let Tle=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 Ale(s,t)})}};var Mle=W({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=ke("menu"),n={onBeforeEnter:s=>s.style.opacity="0.2",onEnter(s,a){No(s,`${t.namespace.value}-opacity-transition`),s.style.opacity="1",a()},onAfterEnter(s){la(s,`${t.namespace.value}-opacity-transition`),s.style.opacity=""},onBeforeLeave(s){s.dataset||(s.dataset={}),ei(s,t.m("collapse"))?(la(s,t.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),No(s,t.m("collapse"))):(No(s,t.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),la(s,t.m("collapse"))),s.style.width=`${s.scrollWidth}px`,s.style.overflow="hidden"},onLeave(s){No(s,"horizontal-collapse-transition"),s.style.width=`${s.dataset.scrollWidth}px`}};return(s,a)=>(S(),le(ys,_t({mode:"out-in"},n),{default:X(()=>[ue(s.$slots,"default")]),_:3},16))}});function DA(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 Ple(e){return E(()=>{const n=e.backgroundColor;return n?new Vf(n).shade(20).toString():""})}const FA=(e,t)=>{const n=ke("menu");return E(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Ple(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},c6="rootMenu",c1="subMenu:",Rle=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:nn},expandOpenIcon:{type:nn},collapseCloseIcon:{type:nn},collapseOpenIcon:{type:nn}}),u6="ElSubMenu";var d6=W({name:u6,props:Rle,setup(e,{slots:t,expose:n}){const s=Ct(),{indexPath:a,parentMenu:o}=DA(s,E(()=>e.index)),r=ke("menu"),i=ke("sub-menu"),l=We(c6);l||Zn(u6,"can not inject root menu");const c=We(`${c1}${o.value.uid}`);c||Zn(u6,"can not inject sub menu");const u=F({}),d=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"),_=E(()=>R.value==="horizontal"&&g.value||R.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?k.value?e.expandOpenIcon:e.expandCloseIcon:pr:e.collapseCloseIcon&&e.collapseOpenIcon?k.value?e.collapseOpenIcon:e.collapseCloseIcon:$s),w=E(()=>{const Q=e.teleported;return Dt(Q)?g.value:Q}),C=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(d.value)].some(({active:Q})=>Q)),R=E(()=>l.props.mode),I=E(()=>l.props.persistent),M=Kt({index:e.index,indexPath:a,active:T}),$=FA(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}),U=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,K,ee;return(ee=(K=(Q=m.value)==null?void 0:Q.popperRef)==null?void 0:K.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,K=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)},K),w.value&&((ee=o.value.vnode.el)==null||ee.dispatchEvent(new MouseEvent("mouseenter"))),Q.type==="mouseenter"&&Q.target&&Be(()=>{Dp(Q.target,{preventScroll:!0})})}},G=(Q=!1)=>{var K;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&&((K=c.handleMouseleave)==null||K.call(c,!0))};ge(()=>l.props.collapse,Q=>L(!!Q));{const Q=ee=>{d.value[ee.index]=ee},K=ee=>{delete d.value[ee.index]};Mt(`${c1}${s.uid}`,{addSubMenu:Q,removeSubMenu:K,handleMouseleave:G,mouseInChild:p,level:c.level+1})}return n({opened:k}),xt(()=>{l.addSubMenu(M),c.addSubMenu(M)}),Xt(()=>{c.removeSubMenu(M),l.removeSubMenu(M)}),()=>{var Q;const K=[(Q=t.title)==null?void 0:Q.call(t),at(Xe,{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:()=>Ye(_.value)?at(s.appContext.components[_.value]):at(_.value)})],ee=l.isMenuPopup?at(As,{ref:m,visible:k.value,effect:"light",pure:!0,offset:O.value,showArrow:!1,persistent:I.value,popperClass:B.value,popperStyle:U.value,placement:b.value,teleported:w.value,fallbackPlacements:x.value,transition:C.value,gpuAcceleration:!1},{content:()=>{var ae;return at("div",{class:[r.m(R.value),r.m("popup-container"),B.value],onMouseenter:fe=>z(fe,100),onMouseleave:()=>G(!0),onFocus:fe=>z(fe,100)},[at("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${b.value}`)],style:$.value},[(ae=t.default)==null?void 0:ae.call(t)])])},default:()=>at("div",{class:i.e("title"),onClick:V},K)}):at(Ve,{},[at("div",{class:i.e("title"),ref:v,onClick:V},K),at(Ug,{},{default:()=>{var ae;return bt(at("ul",{role:"menu",class:[r.b(),r.m("inline")],style:$.value},[(ae=t.default)==null?void 0:ae.call(t)]),[[Vt,k.value]])}})]);return at("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 Ile=Me({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:re(Array),default:()=>In([])},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:nn,default:()=>e9},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}}),f6=e=>Ae(e)&&e.every(t=>Ye(t)),Ole={close:(e,t)=>Ye(e)&&f6(t),open:(e,t)=>Ye(e)&&f6(t),select:(e,t,n,s)=>Ye(e)&&f6(t)&&dt(n)&&(Dt(s)||s instanceof Promise)},BA=64;var Lle=W({name:"ElMenu",props:Ile,emits:Ole,setup(e,{emit:t,slots:n,expose:s}){const a=Ct(),o=a.appContext.config.globalProperties.$router,r=F(),i=F(),l=ke("menu"),c=ke("sub-menu");let u=BA;const d=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&&_(V,z.indexPath)})},_=(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)},C=(N,L)=>{w(N),t("close",N,L)},x=({index:N,indexPath:L})=>{h.value.includes(N)?C(N,L):_(N,L)},k=N=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:L,indexPath:V}=N;if(!(Yn(L)||Yn(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,K=0;return N.forEach((ee,ae)=>{Q+=R(ee),Q<=G-u&&(K=ae+1)}),K===N.length?-1:K},M=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=ls(i);if(N&&(u=R(N)||BA),d.value===I())return;const L=()=>{d.value=-1,Be(()=>{d.value=I()})};O?L():$(L)(),O=!1};ge(()=>e.defaultActive,N=>{v.value[N]||(p.value=""),T(N)}),ge(()=>e.collapse,N=>{N&&(h.value=[])}),ge(v.value,b);let U;ja(()=>{e.mode==="horizontal"&&e.ellipsis?U=_n(r,B).stop:U==null||U()});const J=F(!1);{const N=G=>{m.value[G.index]=G},L=G=>{delete m.value[G.index]};Mt(c6,Kt({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:_,closeMenu:C,handleMenuItemClick:k,handleSubMenuClick:x})),Mt(`${c1}${a.uid}`,{addSubMenu:N,removeSubMenu:L,mouseInChild:J,level:0})}xt(()=>{e.mode==="horizontal"&&new Tle(a.vnode.el,l.namespace.value)}),s({open:L=>{const{indexPath:V}=m.value[L];V.forEach(z=>_(z,V))},close:w,updateActiveIndex:T,handleResize:B});const Y=FA(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 K=co(V).filter(fe=>(fe==null?void 0:fe.shapeFlag)!==8),ee=d.value===-1?K:K.slice(0,d.value),ae=d.value===-1?[]:K.slice(d.value);ae!=null&&ae.length&&e.ellipsis&&(V=ee,z.push(at(d6,{ref:i,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>at(Xe,{class:c.e("icon-more")},{default:()=>at(e.ellipsisIcon)}),default:()=>ae})))}const G=e.closeOnClickOutside?[[dc,()=>{h.value.length&&(J.value||(h.value.forEach(K=>t("close",K,M(K))),h.value=[]))}]]:[],Q=bt(at("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"?at(Mle,()=>Q):Q}}});const Nle=Me({index:{type:re([String,null]),default:null},route:{type:re([String,Object])},disabled:Boolean}),$le={click:e=>Ye(e.index)&&Ae(e.indexPath)},h6="ElMenuItem";var VA=W({name:h6,__name:"menu-item",props:Nle,emits:$le,setup(e,{expose:t,emit:n}){const s=e,a=n;Ua(s.index)&&void 0;const o=Ct(),r=We(c6),i=ke("menu"),l=ke("menu-item");r||Zn(h6,"can not inject root menu");const{parentMenu:c,indexPath:u}=DA(o,Qt(s,"index")),d=We(`${c1}${c.value.uid}`);d||Zn(h6,"can not inject sub menu");const h=E(()=>s.index===r.activeIndex),p=Kt({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 xt(()=>{d.addSubMenu(p),r.addMenuItem(p)}),Xt(()=>{d.removeSubMenu(p),r.removeMenuItem(p)}),t({parentMenu:c,rootMenu:r,active:h,nsMenu:i,nsMenuItem:l,handleClick:v}),(m,g)=>(S(),P("li",{class:D([f(l).b(),f(l).is("active",h.value),f(l).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:v},[f(c).type.name==="ElMenu"&&f(r).props.collapse&&m.$slots.title?(S(),le(f(As),{key:0,effect:f(r).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":f(r).props.popperClass,"popper-style":f(r).props.popperStyle,persistent:f(r).props.persistent,"focus-on-target":""},{content:X(()=>[ue(m.$slots,"title")]),default:X(()=>[A("div",{class:D(f(i).be("tooltip","trigger"))},[ue(m.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(S(),P(Ve,{key:1},[ue(m.$slots,"default"),ue(m.$slots,"title")],64))],2))}}),zA=W({name:"ElMenuItemGroup",__name:"menu-item-group",props:{title:String},setup(e){const t=ke("menu-item-group");return(n,s)=>(S(),P("li",{class:D(f(t).b())},[A("div",{class:D(f(t).e("title"))},[n.$slots.title?ue(n.$slots,"title",{key:1}):(S(),P(Ve,{key:0},[Ke(me(e.title),1)],64))],2),A("ul",null,[ue(n.$slots,"default")])],2))}});const Dle=ht(Lle,{MenuItem:VA,MenuItemGroup:zA,SubMenu:d6}),Fle=Tn(VA),Ble=Tn(zA),Vle=Tn(d6),zle=Me({icon:{type:nn,default:()=>Wx},title:String,content:{type:String,default:""}}),Hle={back:()=>!0},Wle=["aria-label"];var jle=W({name:"ElPageHeader",__name:"page-header",props:zle,emits:Hle,setup(e,{emit:t}){const n=t,{t:s}=Ot(),a=ke("page-header");function o(){n("back")}return(r,i)=>(S(),P("div",{class:D([f(a).b(),f(a).is("contentful",!!r.$slots.default),{[f(a).m("has-breadcrumb")]:!!r.$slots.breadcrumb,[f(a).m("has-extra")]:!!r.$slots.extra}])},[r.$slots.breadcrumb?(S(),P("div",{key:0,class:D(f(a).e("breadcrumb"))},[ue(r.$slots,"breadcrumb")],2)):ie("v-if",!0),A("div",{class:D(f(a).e("header"))},[A("div",{class:D(f(a).e("left"))},[A("div",{class:D(f(a).e("back")),role:"button",tabindex:"0",onClick:o},[e.icon||r.$slots.icon?(S(),P("div",{key:0,"aria-label":e.title||f(s)("el.pageHeader.title"),class:D(f(a).e("icon"))},[ue(r.$slots,"icon",{},()=>[e.icon?(S(),le(f(Xe),{key:0},{default:X(()=>[(S(),le(yt(e.icon)))]),_:1})):ie("v-if",!0)])],10,Wle)):ie("v-if",!0),A("div",{class:D(f(a).e("title"))},[ue(r.$slots,"title",{},()=>[Ke(me(e.title||f(s)("el.pageHeader.title")),1)])],2)],2),j(f(hA),{direction:"vertical"}),A("div",{class:D(f(a).e("content"))},[ue(r.$slots,"content",{},()=>[Ke(me(e.content),1)])],2)],2),r.$slots.extra?(S(),P("div",{key:0,class:D(f(a).e("extra"))},[ue(r.$slots,"extra")],2)):ie("v-if",!0)],2),r.$slots.default?(S(),P("div",{key:1,class:D(f(a).e("main"))},[ue(r.$slots,"default")],2)):ie("v-if",!0)],2))}});const Kle=ht(jle),HA=Symbol("elPaginationKey"),Ule=Me({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:nn}}),qle={click:e=>e instanceof MouseEvent},Gle=["disabled","aria-label","aria-disabled"],Yle={key:0};var Xle=W({name:"ElPaginationPrev",__name:"prev",props:Ule,emits:qle,setup(e){const t=e,{t:n}=Ot(),s=E(()=>t.disabled||t.currentPage<=1);return(a,o)=>(S(),P("button",{type:"button",class:"btn-prev",disabled:s.value,"aria-label":a.prevText||f(n)("el.pagination.prev"),"aria-disabled":s.value,onClick:o[0]||(o[0]=r=>a.$emit("click",r))},[a.prevText?(S(),P("span",Yle,me(a.prevText),1)):(S(),le(f(Xe),{key:1},{default:X(()=>[(S(),le(yt(a.prevIcon)))]),_:1}))],8,Gle))}});const Jle=Me({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:nn}}),Zle=["disabled","aria-label","aria-disabled"],Qle={key:0};var ece=W({name:"ElPaginationNext",__name:"next",props:Jle,emits:["click"],setup(e){const t=e,{t:n}=Ot(),s=E(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,o)=>(S(),P("button",{type:"button",class:"btn-next",disabled:s.value,"aria-label":a.nextText||f(n)("el.pagination.next"),"aria-disabled":s.value,onClick:o[0]||(o[0]=r=>a.$emit("click",r))},[a.nextText?(S(),P("span",Qle,me(a.nextText),1)):(S(),le(f(Xe),{key:1},{default:X(()=>[(S(),le(yt(a.nextIcon)))]),_:1}))],8,Zle))}});const p6=()=>We(HA,{}),tce=Me({pageSize:{type:Number,required:!0},pageSizes:{type:re(Array),default:()=>In([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:re([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:hr},appendSizeTo:String});var nce=W({name:"ElPaginationSizes",__name:"sizes",props:tce,emits:["page-size-change"],setup(e,{emit:t}){const n=e,s=t,{t:a}=Ot(),o=ke("pagination"),r=p6(),i=F(n.pageSize);ge(()=>n.pageSizes,(u,d)=>{if(!Dn(u,d)&&Ae(u)){const h=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];s("page-size-change",h)}}),ge(()=>n.pageSize,u=>{i.value=u});const l=E(()=>n.pageSizes);function c(u){var d;u!==i.value&&(i.value=u,(d=r.handleSizeChange)==null||d.call(r,Number(u)))}return(u,d)=>(S(),P("span",{class:D(f(o).e("sizes"))},[j(f(fc),{"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),P(Ve,null,wt(l.value,h=>(S(),le(f(Wg),{key:h,value:h,label:h+f(a)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}});const sce=Me({size:{type:String,values:hr}}),ace=["disabled"];var oce=W({name:"ElPaginationJumper",__name:"jumper",props:sce,setup(e){const{t}=Ot(),n=ke("pagination"),{pageCount:s,disabled:a,currentPage:o,changeEvent:r}=p6(),i=F(),l=E(()=>{var d;return(d=i.value)!=null?d:o==null?void 0:o.value});function c(d){i.value=d?+d:""}function u(d){d=Math.trunc(+d),r==null||r(d),i.value=void 0}return(d,h)=>(S(),P("span",{class:D(f(n).e("jump")),disabled:f(a)},[A("span",{class:D([f(n).e("goto")])},me(f(t)("el.pagination.goto")),3),j(f(ua),{size:d.size,class:D([f(n).e("editor"),f(n).is("in-pagination")]),min:1,max:f(s),disabled:f(a),"model-value":l.value,"validate-event":!1,"aria-label":f(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([f(n).e("classifier")])},me(f(t)("el.pagination.pageClassifier")),3)],10,ace))}});const rce=Me({total:{type:Number,default:1e3}}),ice=["disabled"];var lce=W({name:"ElPaginationTotal",__name:"total",props:rce,setup(e){const{t}=Ot(),n=ke("pagination"),{disabled:s}=p6();return(a,o)=>(S(),P("span",{class:D(f(n).e("total")),disabled:f(s)},me(f(t)("el.pagination.total",{total:a.total})),11,ice))}});const cce=Me({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),uce=["aria-current","aria-label","tabindex"],dce=["tabindex","aria-label"],fce=["aria-current","aria-label","tabindex"],hce=["tabindex","aria-label"],pce=["aria-current","aria-label","tabindex"];var vce=W({name:"ElPaginationPager",__name:"pager",props:cce,emits:[Rt],setup(e,{emit:t}){const n=e,s=t,a=ke("pager"),o=ke("icon"),{t:r}=Ot(),i=F(!1),l=F(!1),c=F(!1),u=F(!1),d=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,M=!1;R>x&&(T>x-k&&(I=!0),T<R-k&&(M=!0));const $=[];if(I&&!M){const O=R-(x-2);for(let B=O;B<R;B++)$.push(B)}else if(!I&&M)for(let O=2;O<x;O++)$.push(O);else if(I&&M){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);ge(()=>[n.pageCount,n.pagerCount,n.currentPage],([x,k,T])=>{const R=(k-1)/2;let I=!1,M=!1;x>k&&(I=T>k-R,M=T<x-R),c.value&&(c.value=I),u.value&&(u.value=M),i.value=I,l.value=M},{immediate:!0});function b(x=!1){n.disabled||(x?c.value=!0:u.value=!0)}function _(x=!1){x?d.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(Rt,T)}else k.tagName.toLowerCase()==="li"&&Array.from(k.classList).includes("more")&&C(x)}function C(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,M=n.pagerCount-2;k.className.includes("more")&&(k.className.includes("quickprev")?T=I-M:k.className.includes("quicknext")&&(T=I+M)),Number.isNaN(+T)||(T<1&&(T=1),T>R&&(T=R)),T!==I&&s(Rt,T)}return(x,k)=>(S(),P("ul",{class:D(f(a).b()),onClick:C,onKeyup:$n(w,["enter"])},[x.pageCount>0?(S(),P("li",{key:0,class:D([[f(a).is("active",x.currentPage===1),f(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===1,"aria-label":f(r)("el.pagination.currentPage",{pager:1}),tabindex:g.value}," 1 ",10,uce)):ie("v-if",!0),i.value?(S(),P("li",{key:1,class:D(v.value),tabindex:g.value,"aria-label":f(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=>_(!0)),onBlur:k[3]||(k[3]=T=>d.value=!1)},[(c.value||d.value)&&!x.disabled?(S(),le(f(Ji),{key:0})):(S(),le(f(Vy),{key:1}))],42,dce)):ie("v-if",!0),(S(!0),P(Ve,null,wt(p.value,T=>(S(),P("li",{key:T,class:D([[f(a).is("active",x.currentPage===T),f(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===T,"aria-label":f(r)("el.pagination.currentPage",{pager:T}),tabindex:g.value},me(T),11,fce))),128)),l.value?(S(),P("li",{key:2,class:D(m.value),tabindex:g.value,"aria-label":f(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=>_()),onBlur:k[7]||(k[7]=T=>h.value=!1)},[(u.value||h.value)&&!x.disabled?(S(),le(f(Zi),{key:0})):(S(),le(f(Vy),{key:1}))],42,hce)):ie("v-if",!0),x.pageCount>1?(S(),P("li",{key:3,class:D([[f(a).is("active",x.currentPage===x.pageCount),f(a).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===x.pageCount,"aria-label":f(r)("el.pagination.currentPage",{pager:x.pageCount}),tabindex:g.value},me(x.pageCount),11,pce)):ie("v-if",!0)],34))}});const Oa=e=>typeof e!="number",mce=Me({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>nt(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:()=>In([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:re([String,Object])},prevText:{type:String,default:""},prevIcon:{type:nn,default:()=>$o},nextText:{type:String,default:""},nextIcon:{type:nn,default:()=>$s},teleported:{type:Boolean,default:!0},small:Boolean,size:cs,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),gce={"update:current-page":e=>nt(e),"update:page-size":e=>nt(e),"size-change":e=>nt(e),change:(e,t)=>nt(e)&&nt(t),"current-change":e=>nt(e),"prev-click":e=>nt(e),"next-click":e=>nt(e)},WA="ElPagination";var bce=W({name:WA,props:mce,emits:gce,setup(e,{emit:t,slots:n}){const{t:s}=Ot(),a=ke("pagination"),o=Ct().vnode.props||{},r=Ox(),i=E(()=>{var x;return e.small?"small":(x=e.size)!=null?x:r.value});ri({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}),d=F(Oa(e.defaultPageSize)?10:e.defaultPageSize),h=F(Oa(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=E({get(){return Oa(e.pageSize)?d.value:e.pageSize},set(x){Oa(e.pageSize)&&(d.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))}});ge(v,x=>{m.value>x&&(m.value=x)}),ge([m,p],x=>{t(Rt,...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 _(){e.disabled||(m.value-=1,t("prev-click",m.value))}function w(){e.disabled||(m.value+=1,t("next-click",m.value))}function C(x,k){x&&(x.props||(x.props={}),x.props.class=[x.props.class,k].join(" "))}return Mt(HA,{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=at("div",{class:a.e("rightwrapper")},R),M={prev:at(Xle,{disabled:e.disabled,currentPage:m.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:_}),jumper:at(oce,{size:i.value}),pager:at(vce,{currentPage:m.value,pageCount:v.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:at(ece,{disabled:e.disabled,currentPage:m.value,pageCount:v.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:at(nce,{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:at(lce,{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(M[B]):T.push(M[B])}),C(T[0],a.is("first")),C(T[T.length-1],a.is("last")),O&&R.length>0&&(C(R[0],a.is("first")),C(R[R.length-1],a.is("last")),T.push(I)),at("div",{class:[a.b(),a.is("background",e.background),a.m(i.value)]},T)}}});const yce=ht(bce),wce=Me({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:h3,default:"primary"},cancelButtonType:{type:String,values:h3,default:"text"},icon:{type:nn,default:()=>s9},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...sn.effect,default:"light"},teleported:sn.teleported,persistent:sn.persistent,width:{type:[String,Number],default:150},virtualTriggering:oi.virtualTriggering,virtualRef:oi.virtualRef});var _ce=W({name:"ElPopconfirm",__name:"popconfirm",props:wce,emits:{confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},setup(e,{expose:t,emit:n}){const s=e,a=n,{t:o}=Ot(),r=ke("popconfirm"),i=F(),l=F(),c=E(()=>{var b;return(b=f(i))==null?void 0:b.popperRef}),u=()=>{var b,_;(_=(b=l.value)==null?void 0:b.focus)==null||_.call(b)},d=()=>{var b,_;(_=(b=i.value)==null?void 0:b.onClose)==null||_.call(b)},h=E(()=>({width:Rn(s.width)})),p=b=>{a("confirm",b),d()},v=b=>{a("cancel",b),d()},m=E(()=>s.confirmButtonText||o("el.popconfirm.confirmButtonText")),g=E(()=>s.cancelButtonText||o("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:d}),(b,_)=>(S(),le(f(As),_t({ref_key:"tooltipRef",ref:i,trigger:"click",effect:e.effect},b.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${f(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(f(r).b())},[A("div",{class:D(f(r).e("main"))},[!e.hideIcon&&e.icon?(S(),le(f(Xe),{key:0,class:D(f(r).e("icon")),style:Qe({color:e.iconColor})},{default:X(()=>[(S(),le(yt(e.icon)))]),_:1},8,["class","style"])):ie("v-if",!0),Ke(" "+me(e.title),1)],2),A("div",{class:D(f(r).e("action"))},[ue(b.$slots,"actions",{confirm:p,cancel:v},()=>[j(f(_s),{size:"small",type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",onClick:v},{default:X(()=>[Ke(me(g.value),1)]),_:1},8,["type","text"]),j(f(_s),{size:"small",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",onClick:p},{default:X(()=>[Ke(me(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 Cce=ht(_ce),Sce=Me({trigger:oi.trigger,triggerKeys:oi.triggerKeys,placement:a1.placement,disabled:oi.disabled,visible:sn.visible,transition:sn.transition,popperOptions:a1.popperOptions,tabindex:a1.tabindex,content:sn.content,popperStyle:sn.popperStyle,popperClass:sn.popperClass,enterable:{...sn.enterable,default:!0},effect:{...sn.effect,default:"light"},teleported:sn.teleported,appendTo:sn.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}}),xce={"update:visible":e=>tn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},kce="onUpdate:visible";var Ece=W({name:"ElPopover",__name:"popover",props:Sce,emits:xce,setup(e,{expose:t,emit:n}){const s=e,a=n,o=E(()=>s[kce]),r=ke("popover"),i=F(),l=E(()=>{var b;return(b=f(i))==null?void 0:b.popperRef}),c=E(()=>[{width:Rn(s.width)},s.popperStyle]),u=E(()=>[r.b(),s.popperClass,{[r.m("plain")]:!!s.content}]),d=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,_)=>(S(),le(f(As),_t({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":d.value,"onUpdate:visible":o.value,onBeforeShow:p,onBeforeHide:v,onShow:m,onHide:g}),{content:X(()=>[e.title?(S(),P("div",{key:0,class:D(f(r).e("title")),role:"title"},me(e.title),3)):ie("v-if",!0),ue(b.$slots,"default",{},()=>[Ke(me(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 jA=(e,t)=>{const n=t.arg||t.value,s=n==null?void 0:n.popperRef;s&&(s.triggerRef=e)};var Ace={mounted(e,t){jA(e,t)},updated(e,t){jA(e,t)}};const KA=oz(Ace,"popover"),Tce=ht(Ece,{directive:KA}),Mce=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}%`}}),Pce=["aria-valuenow"],Rce={viewBox:"0 0 100 100"},Ice=["d","stroke","stroke-linecap","stroke-width"],Oce=["d","stroke","opacity","stroke-linecap","stroke-width"],Lce={key:0};var Nce=W({name:"ElProgress",__name:"progress",props:Mce,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,s=ke("progress"),a=E(()=>{const w={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},C=_(n.percentage);return C.includes("gradient")?w.background=C:w.backgroundColor=C,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,C=n.type==="dashboard";return`
M 50 50
m 0 ${C?"":"-"}${w}
a ${w} ${w} 0 1 1 0 ${C?"-":""}${w*2}
a ${w} ${w} 0 1 1 0 ${C?"":"-"}${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`),d=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=_(n.percentage):w=t[n.status]||t.default,w}),v=E(()=>n.status==="warning"?Ap:n.type==="line"?n.status==="success"?kp:Do: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 C=100/w.length;return w.map((k,T)=>Ye(k)?{color:k,percentage:(T+1)*C}:k).sort((k,T)=>k.percentage-T.percentage)}const _=w=>{var C;const{color:x}=n;if(Ze(x))return x(w);if(Ye(x))return x;{const k=b(x);for(const T of k)if(T.percentage>w)return T.color;return(C=k[k.length-1])==null?void 0:C.color}};return(w,C)=>(S(),P("div",{class:D([f(s).b(),f(s).m(e.type),f(s).is(e.status),{[f(s).m("without-text")]:!e.showText,[f(s).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(S(),P("div",{key:0,class:D(f(s).b("bar"))},[A("div",{class:D(f(s).be("bar","outer")),style:Qe({height:`${e.strokeWidth}px`})},[A("div",{class:D([f(s).be("bar","inner"),{[f(s).bem("bar","inner","indeterminate")]:e.indeterminate},{[f(s).bem("bar","inner","striped")]:e.striped},{[f(s).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:Qe(a.value)},[(e.showText||w.$slots.default)&&e.textInside?(S(),P("div",{key:0,class:D(f(s).be("bar","innerText"))},[ue(w.$slots,"default",{percentage:e.percentage},()=>[A("span",null,me(g.value),1)])],2)):ie("v-if",!0)],6)],6)],2)):(S(),P("div",{key:1,class:D(f(s).b("circle")),style:Qe({height:`${e.width}px`,width:`${e.width}px`})},[(S(),P("svg",Rce,[A("path",{class:D(f(s).be("circle","track")),d:i.value,stroke:`var(${f(s).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,fill:"none",style:Qe(d.value)},null,14,Ice),A("path",{class:D(f(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:Qe(h.value)},null,14,Oce)]))],6)),(e.showText||w.$slots.default)&&!e.textInside?(S(),P("div",{key:2,class:D(f(s).e("text")),style:Qe({fontSize:`${m.value}px`})},[ue(w.$slots,"default",{percentage:e.percentage},()=>[e.status?(S(),le(f(Xe),{key:1},{default:X(()=>[(S(),le(yt(v.value)))]),_:1})):(S(),P("span",Lce,me(g.value),1))])],6)):ie("v-if",!0)],10,Pce))}});const UA=ht(Nce),$ce=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:()=>In(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:re([Array,Object]),default:()=>[Ep,Ep,Ep]},voidIcon:{type:nn,default:()=>u9},disabledVoidIcon:{type:nn,default:()=>Ep},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:re(Array),default:()=>In(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:cs,clearable:Boolean,...ca(["ariaLabel"])}),Dce={[Rt]:e=>nt(e),[lt]:e=>nt(e)},Fce=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Bce=["onMousemove","onClick"];var Vce=W({name:"ElRate",__name:"rate",props:$ce,emits:Dce,setup(e,{expose:t,emit:n}){function s(L,V){const z=K=>dt(K),G=Object.keys(V).map(K=>+K).filter(K=>{const ee=V[K];return(z(ee)?ee.excluded:!1)?L<K:L<=K}).sort((K,ee)=>K-ee),Q=V[G[0]];return z(Q)&&Q.value||Q}const a=e,o=n,r=We(ai,void 0),i=ss(),l=ke("rate"),{inputId:c,isLabeledByFormItem:u}=fo(a,{formItemContext:r}),d=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=On(),_=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}`:`${d.value}`):a.showText&&(L=a.texts[Math.ceil(d.value)-1]),L}),C=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(d.value,x.value);return dt(L)?"":L}),T=E(()=>{let L="";return b.value?L=`${C.value}%`:a.allowHalf&&(L="50%"),{color:k.value,width:L}}),R=E(()=>{let L=Ae(a.icons)?[...a.icons]:{...a.icons};return L=jr(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)),M=E(()=>b.value?Ye(a.disabledVoidIcon)?a.disabledVoidIcon:jr(a.disabledVoidIcon):Ye(a.voidIcon)?a.voidIcon:jr(a.voidIcon)),$=E(()=>s(d.value,R.value));function O(L){const V=b.value&&C.value>0&&L-1<a.modelValue&&L>a.modelValue,z=a.allowHalf&&p.value&&L-.5<=d.value&&L>d.value;return V||z}function B(L){a.clearable&&L===a.modelValue&&(L=0),o(lt,L),a.modelValue!==L&&o(Rt,L)}function U(L){b.value||(a.allowHalf&&p.value?B(d.value):B(L))}function J(L){if(b.value)return;const V=on(L),z=a.allowHalf?.5:1;let G=d.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!==d.value)return L.stopPropagation(),L.preventDefault(),o(lt,G),o(Rt,G),G}function Y(L,V){b.value||(a.allowHalf&&V?(p.value=V.offsetX*2<=m.value[L-1],d.value=p.value?L-.5:L):d.value=L,h.value=L)}function N(){b.value||(a.allowHalf&&(p.value=a.modelValue!==Math.floor(a.modelValue)),d.value=wu(a.modelValue,0,a.max),h.value=-1)}return ge(()=>a.modelValue,L=>{d.value=wu(L,0,a.max),p.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||o(lt,0),t({setCurrentValue:Y,resetCurrentValue:N}),(L,V)=>{var z;return S(),P("div",{id:f(c),class:D([g.value,f(l).is("disabled",f(b))]),role:"slider","aria-label":f(u)?void 0:e.ariaLabel||"rating","aria-labelledby":f(u)?(z=f(r))==null?void 0:z.labelId:void 0,"aria-valuenow":d.value,"aria-valuetext":w.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0",style:Qe(_.value),onKeydown:J},[(S(!0),P(Ve,null,wt(e.max,(G,Q)=>(S(),P("span",{key:Q,class:D(f(l).e("item")),onMousemove:K=>Y(G,K),onMouseleave:N,onClick:K=>U(G)},[j(f(Xe),{ref_for:!0,ref_key:"iconRefs",ref:v,class:D([f(l).e("icon"),{hover:h.value===G},f(l).is("active",G<=d.value),f(l).is("focus-visible",G===Math.ceil(d.value||1))])},{default:X(()=>[bt((S(),le(yt($.value),null,null,512)),[[Vt,!O(G)&&G<=d.value]]),bt((S(),le(yt(M.value),null,null,512)),[[Vt,!O(G)&&G>d.value]]),bt((S(),le(yt(M.value),{class:D([f(l).em("decimal","box")])},null,8,["class"])),[[Vt,O(G)]]),bt(j(f(Xe),{style:Qe(T.value),class:D([f(l).e("icon"),f(l).e("decimal")])},{default:X(()=>[(S(),le(yt(I.value)))]),_:1},8,["style","class"]),[[Vt,O(G)]])]),_:2},1032,["class"])],42,Bce))),128)),e.showText||e.showScore?(S(),P("span",{key:0,class:D(f(l).e("text")),style:Qe({color:e.textColor})},me(w.value),7)):ie("v-if",!0)],46,Fce)}}});const zce=ht(Vce),Mu={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},qA={[Mu.primary]:Rf,[Mu.success]:Ux,[Mu.warning]:Ap,[Mu.error]:wg,[Mu.info]:Rf},Hce=Me({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var Wce=W({name:"ElResult",__name:"result",props:Hce,setup(e){const t=e,n=ke("result"),s=E(()=>{const a=t.icon,o=a&&Mu[a]?Mu[a]:"icon-info",r=qA[o]||qA["icon-info"];return{class:o,component:r}});return(a,o)=>(S(),P("div",{class:D(f(n).b())},[A("div",{class:D(f(n).e("icon"))},[ue(a.$slots,"icon",{},()=>[s.value.component?(S(),le(yt(s.value.component),{key:0,class:D(s.value.class)},null,8,["class"])):ie("v-if",!0)])],2),e.title||a.$slots.title?(S(),P("div",{key:0,class:D(f(n).e("title"))},[ue(a.$slots,"title",{},()=>[A("p",null,me(e.title),1)])],2)):ie("v-if",!0),e.subTitle||a.$slots["sub-title"]?(S(),P("div",{key:1,class:D(f(n).e("subtitle"))},[ue(a.$slots,"sub-title",{},()=>[A("p",null,me(e.subTitle),1)])],2)):ie("v-if",!0),a.$slots.extra?(S(),P("div",{key:2,class:D(f(n).e("extra"))},[ue(a.$slots,"extra")],2)):ie("v-if",!0)],2))}});const jce=ht(Wce),Kce=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 Uce=W({name:"ElRow",__name:"row",props:Kce,setup(e){const t=e,n=ke("row"),s=E(()=>t.gutter);Mt(yE,{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(),le(yt(e.tag),{class:D(o.value),style:Qe(a.value)},{default:X(()=>[ue(r.$slots,"default")]),_:3},8,["class","style"]))}});const qce=ht(Uce);var Gce=W({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:ke("select")}}});function Yce(e,t,n,s,a,o){return S(),P("div",{class:D(e.ns.be("group","title")),style:Qe({...e.style,lineHeight:`${e.height}px`})},me(e.item.label),7)}var Xce=us(Gce,[["render",Yce]]);function Jce(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const Zce=Me({allowCreate:Boolean,autocomplete:{type:re(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:nn,default:Do},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:sn.teleported,persistent:{type:Boolean,default:!0},popperClass:sn.popperClass,popperStyle:sn.popperStyle,popperOptions:{type:re(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:cs,props:{type:re(Object),default:()=>zg},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:ti,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","top-start","right","left"]},tagType:{...ol.type,default:"info"},tagEffect:{...ol.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:sn.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return tn(e)||nt(e)}},suffixIcon:{type:nn,default:pr},...Su,...ca(["ariaLabel"])}),Qce=Me({data:Array,disabled:Boolean,hovering:Boolean,item:{type:re(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),eue={[lt]:e=>!0,[Rt]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},tue={hover:e=>nt(e),select:(e,t)=>!0},v6=Symbol("ElSelectV2Injection");var nue=W({props:Qce,emits:tue,setup(e,{emit:t}){const n=We(v6),s=ke("select"),{hoverItem:a,selectOptionClick:o}=Jce(e,{emit:t}),{getLabel:r}=Vp(n.props),i=n.contentId;return{ns:s,contentId:i,hoverItem:a,selectOptionClick:o,getLabel:r}}});const sue=["id","aria-selected","aria-disabled"];function aue(e,t,n,s,a,o){return S(),P("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:Qe(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]=it((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ue(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[A("span",null,me(e.getLabel(e.item)),1)])],46,sue)}var oue=us(nue,[["render",aue]]),GA=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function rue(e,t){return!!(e===t||GA(e)&&GA(t))}function iue(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!rue(e[n],t[n]))return!1;return!0}function lue(e,t){t===void 0&&(t=iue);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 YA=()=>{const t=Ct().proxy.$props;return E(()=>{const n=(s,a,o)=>({});return t.perfMode?ig(n):lue(n)})},m6=50,u1="itemRendered",d1="scroll",qf="forward",f1="backward",Ho="auto",h1="smart",Qp="start",li="center",ev="end",Gf="horizontal",XA="vertical",cue="ltr",Yf="rtl",tv="negative",g6="positive-ascending",b6="positive-descending",uue={[Gf]:"left",[XA]:"top"},due=20,JA=({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=>{Yi(a);let{deltaX:c,deltaY:u}=l;l.shiftKey&&u!==0&&(c=u,u=0);const d=n.value===Gf?c:u;r(d)||(o+=d,!s3()&&d!==0&&l.preventDefault(),a=Qr(()=>{s(o),o=0}))}}},y6=fr({type:re([Number,Function]),required:!0}),w6=fr({type:Number}),_6=fr({type:Number,default:2}),fue=fr({type:String,values:["ltr","rtl"],default:"ltr"}),C6=fr({type:Number,default:0}),p1=fr({type:Number,required:!0}),ZA=fr({type:String,values:["horizontal","vertical"],default:XA}),QA=Me({className:{type:String,default:""},containerElement:{type:re([String,Object]),default:"div"},data:{type:re(Array),default:()=>In([])},direction:fue,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}),eT=Me({cache:_6,estimatedItemSize:w6,layout:ZA,initScrollOffset:C6,total:p1,itemSize:y6,...QA}),S6={type:Number,default:6},tT={type:Number,default:0},nT={type:Number,default:2},Pu=Me({columnCache:_6,columnWidth:y6,estimatedColumnWidth:w6,estimatedRowHeight:w6,initScrollLeft:C6,initScrollTop:C6,itemKey:{type:re(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:_6,rowHeight:y6,totalColumn:p1,totalRow:p1,hScrollbarSize:S6,vScrollbarSize:S6,scrollbarStartGap:tT,scrollbarEndGap:nT,role:String,...QA}),sT=Me({alwaysOn:Boolean,class:String,layout:ZA,total:p1,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:S6,startGap:tT,endGap:nT,visible:Boolean}),Ru=(e,t)=>e<t?qf:f1,nv=e=>e===cue||e===Yf||e===Gf,aT=e=>e===Yf;let Xf=null;function v1(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=b6:(t.scrollLeft=1,t.scrollLeft===0?Xf=tv:Xf=g6),document.body.removeChild(t),Xf}return Xf}function hue({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 x6=W({name:"ElVirtualScrollBar",props:sT,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=E(()=>e.startGap+e.endGap),s=ke("virtual-scrollbar"),a=ke("scrollbar"),o=F(),r=F();let i=null,l=null;const c=Kt({isDragging:!1,traveled:0}),u=E(()=>G9[e.layout]),d=E(()=>e.clientSize-f(n)),h=E(()=>({position:"absolute",width:`${Gf===e.layout?d.value:e.scrollbarSize}px`,height:`${Gf===e.layout?e.scrollbarSize:d.value}px`,[uue[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*d.value/100;const T=d.value/3;return Math.floor(Math.min(Math.max(k*d.value/100,due),T))}),v=E(()=>{if(!Number.isFinite(p.value))return{display:"none"};const k=`${p.value}px`;return hue({bar:u.value,size:k,move:c.traveled},e.layout)}),m=E(()=>Math.ceil(e.clientSize-p.value-f(n))),g=()=>{window.addEventListener("mousemove",C),window.addEventListener("mouseup",w);const k=f(r);k&&(l=document.onselectstart,document.onselectstart=()=>!1,k.addEventListener("touchmove",C,{passive:!0}),k.addEventListener("touchend",w))},b=()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",w),document.onselectstart=l,l=null;const k=f(r);k&&(k.removeEventListener("touchmove",C),k.removeEventListener("touchend",w))},_=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()},C=k=>{const{isDragging:T}=c;if(!T||!r.value||!o.value)return;const R=c[u.value.axis];if(!R)return;Yi(i);const I=(o.value.getBoundingClientRect()[u.value.direction]-k[u.value.client])*-1,M=r.value[u.value.offset]-R,$=I-M;i=Qr(()=>{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 ge(()=>e.scrollFrom,k=>{c.isDragging||(c.traveled=Math.ceil(k*m.value))}),Xt(()=>{b()}),()=>at("div",{role:"presentation",ref:o,class:[s.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:it(x,["stop","prevent"]),onTouchstartPrevent:_},at("div",{ref:r,class:a.e("thumb"),style:v.value,onMousedown:_},[]))}}),oT=({name:e,getOffset:t,getItemSize:n,getItemOffset:s,getEstimatedTotalSize:a,getStartIndexForOffset:o,getStopIndexForStartIndex:r,initCache:i,clearCache:l,validateProps:c})=>W({name:e??"ElVirtualList",props:eT,emits:[u1,d1],setup(u,{emit:d,expose:h}){c(u);const p=Ct(),v=ke("vl"),m=F(i(u,p)),g=YA(),b=F(),_=F(),w=F(),C=F({isScrolling:!1,scrollDir:"forward",scrollOffset:nt(u.initScrollOffset)?u.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:u.scrollbarAlwaysOn}),x=E(()=>{const{total:K,cache:ee}=u,{isScrolling:ae,scrollDir:fe,scrollOffset:ne}=f(C);if(K===0)return[0,0,0,0];const ve=o(u,ne,f(m)),he=r(u,ve,ne,f(m)),ce=!ae||fe===f1?Math.max(1,ee):1,Z=!ae||fe===qf?Math.max(1,ee):1;return[Math.max(0,ve-ce),Math.max(0,Math.min(K-1,he+Z)),ve,he]}),k=E(()=>a(u,f(m))),T=E(()=>nv(u.layout)),R=E(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:u.direction,height:nt(u.height)?`${u.height}px`:u.height,width:nt(u.width)?`${u.width}px`:u.width},u.style]),I=E(()=>{const K=f(k),ee=f(T);return{height:ee?"100%":`${K}px`,pointerEvents:f(C).isScrolling?"none":void 0,width:ee?`${K}px`:"100%",margin:0,boxSizing:"border-box"}}),M=E(()=>T.value?u.width:u.height),{onWheel:$}=JA({atStartEdge:E(()=>C.value.scrollOffset<=0),atEndEdge:E(()=>C.value.scrollOffset>=k.value),layout:E(()=>u.layout)},K=>{var ee,ae;(ae=(ee=w.value).onMouseUp)==null||ae.call(ee),N(Math.min(C.value.scrollOffset+K,k.value-M.value))});en(b,"wheel",$,{passive:!1});const O=()=>{const{total:K}=u;if(K>0){const[ne,ve,he,ce]=f(x);d(u1,ne,ve,he,ce)}const{scrollDir:ee,scrollOffset:ae,updateRequested:fe}=f(C);d(d1,ee,ae,fe)},B=K=>{const{clientHeight:ee,scrollHeight:ae,scrollTop:fe}=K.currentTarget,ne=f(C);if(ne.scrollOffset===fe)return;const ve=Math.max(0,Math.min(fe,ae-ee));C.value={...ne,isScrolling:!0,scrollDir:Ru(ne.scrollOffset,ve),scrollOffset:ve,updateRequested:!1},Be(z)},U=K=>{const{clientWidth:ee,scrollLeft:ae,scrollWidth:fe}=K.currentTarget,ne=f(C);if(ne.scrollOffset===ae)return;const{direction:ve}=u;let he=ae;if(ve===Yf)switch(v1()){case tv:{he=-ae;break}case b6:{he=fe-ee-ae;break}}he=Math.max(0,Math.min(he,fe-ee)),C.value={...ne,isScrolling:!0,scrollDir:Ru(ne.scrollOffset,he),scrollOffset:he,updateRequested:!1},Be(z)},J=K=>{f(T)?U(K):B(K),O()},Y=(K,ee)=>{const ae=(k.value-M.value)/ee*K;N(Math.min(k.value-M.value,ae))},N=K=>{K=Math.max(K,0),K!==f(C).scrollOffset&&(C.value={...f(C),scrollOffset:K,scrollDir:Ru(f(C).scrollOffset,K),updateRequested:!0},Be(z))},L=(K,ee=Ho)=>{const{scrollOffset:ae}=f(C);K=Math.max(0,Math.min(K,u.total-1)),N(t(u,K,ee,ae,f(m)))},V=K=>{const{direction:ee,itemSize:ae,layout:fe}=u,ne=g.value(l&&ae,l&&fe,l&&ee);let ve;if(jt(ne,String(K)))ve=ne[K];else{const he=s(u,K,f(m)),ce=n(u,K,f(m)),Z=f(T),H=ee===Yf,te=Z?he:0;ne[K]=ve={position:"absolute",left:H?void 0:`${te}px`,right:H?`${te}px`:void 0,top:Z?0:`${he}px`,height:Z?"100%":`${ce}px`,width:Z?`${ce}px`:"100%"}}return ve},z=()=>{C.value.isScrolling=!1,Be(()=>{g.value(-1,null,null)})},G=()=>{const K=b.value;K&&(K.scrollTop=0)};xt(()=>{if(!Ut)return;const{initScrollOffset:K}=u,ee=f(b);nt(K)&&ee&&(f(T)?ee.scrollLeft=K:ee.scrollTop=K),O()}),rr(()=>{const{direction:K,layout:ee}=u,{scrollOffset:ae,updateRequested:fe}=f(C),ne=f(b);if(fe&&ne)if(ee===Gf)if(K===Yf)switch(v1()){case tv:{ne.scrollLeft=-ae;break}case g6:{ne.scrollLeft=ae;break}default:{const{clientWidth:ve,scrollWidth:he}=ne;ne.scrollLeft=he-ve-ae;break}}else ne.scrollLeft=ae;else ne.scrollTop=ae}),q0(()=>{f(b).scrollTop=f(C).scrollOffset});const Q={ns:v,clientSize:M,estimatedTotalSize:k,windowStyle:R,windowRef:b,innerRef:_,innerStyle:I,itemsToRender:x,scrollbarRef:w,states:C,getItemStyle:V,onScroll:J,onScrollbarScroll:Y,onWheel:$,scrollTo:N,scrollToItem:L,resetScrollTop:G};return h({windowRef:b,innerRef:_,getItemStyleCache:g,scrollTo:N,scrollToItem:L,resetScrollTop:G,states:C}),Q},render(u){var d;const{$slots:h,className:p,clientSize:v,containerElement:m,data:g,getItemStyle:b,innerElement:_,itemsToRender:w,innerStyle:C,layout:x,total:k,onScroll:T,onScrollbarScroll:R,states:I,useIsScrolling:M,windowStyle:$,ns:O}=u,[B,U]=w,J=yt(m),Y=yt(_),N=[];if(k>0)for(let G=B;G<=U;G++)N.push(at(Ve,{key:G},(d=h.default)==null?void 0:d.call(h,{data:g,index:G,isScrolling:M?I.isScrolling:void 0,style:b(G)})));const L=[at(Y,_t(u.innerProps,{style:C,ref:"innerRef"}),Ye(Y)?N:{default:()=>N})],V=at(x6,{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=at(J,{class:[O.e("window"),p],style:$,onScroll:T,ref:"windowRef",key:0},Ye(J)?[L]:{default:()=>[L]});return at("div",{key:0,class:[O.e("wrapper"),I.scrollbarAlwaysOn?"always-on":""]},[z,V])}}),rT=oT({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=nv(s)?a:e,c=Math.max(0,t*n-l),u=Math.min(c,o*n),d=Math.max(0,(o+1)*n-l);switch(r===h1&&(i>=d-l&&i<=u+l?r=Ho:r=li),r){case Qp:return u;case ev:return d;case li:{const h=Math.round(d+(u-d)/2);return h<Math.ceil(l/2)?0:h>c+Math.floor(l/2)?c:h}case Ho:default:return i>=d&&i<=u?i:i<d?d: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=nv(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]},pue=(e,t,n)=>{const{items:s,lastVisitedIndex:a}=t;return(a>0?s[a].offset:0)>=n?iT(e,t,0,a,n):vue(e,t,Math.max(0,a),n)},iT=(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)},vue=(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 iT(e,t,Math.floor(n/2),Math.min(n,a-1),s)},lT=({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},mue=oT({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Jf(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:lT,getOffset:(e,t,n,s,a)=>{const{height:o,layout:r,width:i}=e,l=nv(r)?i:o,c=Jf(e,t,a),u=lT(e,a),d=Math.max(0,Math.min(u-l,c.offset)),h=Math.max(0,c.offset-l+c.size);switch(n===h1&&(s>=h-l&&s<=d+l?n=Ho:n=li),n){case Qp:return d;case ev:return h;case li:return Math.round(h+(d-h)/2);case Ho:default:return s>=h&&s<=d?s:s<h?h:d}},getStartIndexForOffset:(e,t,n)=>pue(e,n,t),getStopIndexForStartIndex:(e,t,n,s)=>{const{height:a,total:o,layout:r,width:i}=e,l=nv(r)?i:a,c=Jf(e,t,s),u=n+l;let d=c.offset+c.size,h=t;for(;h<o-1&&d<u;)h++,d+=Jf(e,h,s).size;return h},initCache({estimatedItemSize:e=m6},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 gue=W({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=We(v6),a=ke("select"),{getLabel:o,getValue:r,getDisabled:i}=Vp(s.props),l=F([]),c=F(),u=E(()=>e.data.length);ge(()=>u.value,()=>{var $,O;(O=($=s.tooltipRef.value)==null?void 0:$.updatePopper)==null||O.call($)});const d=E(()=>Dt(s.props.estimatedOptionHeight)),h=E(()=>d.value?{itemSize:s.props.itemHeight}:{estimatedSize:s.props.estimatedOptionHeight,itemSize:$=>l.value[$]}),p=($=[],O)=>{const{props:{valueKey:B}}=s;return dt(O)?$&&$.some(U=>un(Jn(U,B))===Jn(O,B)):$.includes(O)},v=($,O)=>{if(dt(O)){const{valueKey:B}=s.props;return Jn($,B)===Jn(O,B)}else return $===O},m=($,O)=>s.props.multiple?p($,r(O)):v($,r(O)),g=($,O)=>{const{disabled:B,multiple:U,multipleLimit:J}=s.props;return B||!O&&(U?J>0&&$.length>=J:!1)},b=$=>e.hoveringIndex===$;n({listRef:c,isSized:d,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:U}=$,J=f(d),{itemSize:Y,estimatedSize:N}=f(h),{modelValue:L}=s.props,{onSelect:V,onHover:z}=s,G=B[O];if(G.type==="Group")return j(Xce,{item:G,style:U,height:J?Y:N},null);const Q=m(L,G),K=g(L,Q),ee=b(O);return j(oue,_t($,{selected:Q,disabled:i(G)||K,created:!!G.created,hovering:ee,item:G,onSelect:V,onHover:z}),{default:ae=>{var fe;return((fe=t.default)==null?void 0:fe.call(t,ae))||j("span",null,[o(G)])}})},{onKeyboardNavigate:k,onKeyboardSelect:T}=s,R=()=>{k("forward")},I=()=>{k("backward")},M=$=>{const O=on($),{tab:B,esc:U,down:J,up:Y,enter:N,numpadEnter:L}=Te;switch([U,J,Y,N,L].includes(O)&&($.preventDefault(),$.stopPropagation()),O){case B:case U:break;case J:R();break;case Y:I();break;case N:case L:T();break}};return()=>{var $,O,B,U;const{data:J,width:Y}=e,{height:N,multiple:L,scrollbarAlwaysOn:V}=s.props,z=E(()=>vg?!0:V),G=f(d)?rT:mue;return j("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))||j(G,_t({ref:c},f(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:M}),{default:Q=>j(x,Q,null)}),(U=t.footer)==null?void 0:U.call(t)])}}});function bue(e,t){const{aliasProps:n,getLabel:s,getValue:a}=Vp(e),o=F(0),r=F(),i=E(()=>e.allowCreate&&e.filterable);ge(()=>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 d(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:d,selectNewOption:c,clearAllNewOption:h}}const yue=(e,t)=>{const{t:n}=Ot(),s=Wn(),a=ke("select"),o=ke("input"),{form:r,formItem:i}=Es(),{inputId:l}=fo(e,{formItemContext:i}),{aliasProps:c,getLabel:u,getValue:d,getDisabled:h,getOptions:p}=Vp(e),{valueOnClear:v,isEmptyValue:m}=_p(e),g=Kt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=F(-1),_=F(!1),w=F(),C=F(),x=F(),k=F(),T=F(),R=F(),I=F(),M=F(),$=F(),O=F(),{isComposing:B,handleCompositionStart:U,handleCompositionEnd:J,handleCompositionUpdate:Y}=Fp({afterComposition:Le=>En(Le)}),N=On(),{wrapperRef:L,isFocused:V,handleBlur:z}=tl(T,{disabled:N,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,g.menuVisibleOnFocus=!0)},beforeBlur(Le){var ut,Tt;return((ut=x.value)==null?void 0:ut.isFocusInsideContent(Le))||((Tt=k.value)==null?void 0:Tt.isFocusInsideContent(Le))},afterBlur(){var Le;ee.value=!1,g.menuVisibleOnFocus=!1,e.validateEvent&&((Le=i==null?void 0:i.validate)==null||Le.call(i,"blur").catch(ut=>void 0))}}),G=E(()=>Oe("")),Q=E(()=>e.loading?!1:e.options.length>0||g.createdOptions.length>0),K=F([]),ee=F(!1),ae=E(()=>{var Le;return(Le=r==null?void 0:r.statusIcon)!=null?Le:!1}),fe=E(()=>{const Le=K.value.length*e.itemHeight;return Le>e.height?e.height:Le}),ne=E(()=>e.multiple?Ae(e.modelValue)&&e.modelValue.length>0:!m(e.modelValue)),ve=E(()=>e.clearable&&!N.value&&ne.value&&(V.value||g.inputHovering)),he=E(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),ce=E(()=>he.value&&a.is("reverse",ee.value)),Z=E(()=>(i==null?void 0:i.validateState)||""),H=E(()=>{if(Z.value)return Eg[Z.value]}),te=E(()=>e.remote?e.debounce:0),de=E(()=>e.remote&&!g.inputValue&&!Q.value),be=E(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&g.inputValue&&Q.value&&K.value.length===0?e.noMatchText||n("el.select.noMatch"):Q.value?null:e.noDataText||n("el.select.noData")),_e=E(()=>e.filterable&&Ze(e.filterMethod)),xe=E(()=>e.filterable&&e.remote&&Ze(e.remoteMethod)),Oe=Le=>{const ut=new RegExp(S3(Le),"i"),Tt=Nt=>_e.value||xe.value?!0:Le?ut.test(u(Nt)||""):!0;return e.loading?[]:[...g.createdOptions,...e.options].reduce((Nt,Ns)=>{const er=p(Ns);if(Ae(er)){const r2=er.filter(Tt);r2.length>0&&Nt.push({label:u(Ns),type:"Group"},...r2)}else(e.remote||Tt(Ns))&&Nt.push(Ns);return Nt},[])},De=()=>{K.value=Oe(g.inputValue)},Ne=E(()=>{const Le=new Map;return G.value.forEach((ut,Tt)=>{Le.set(ye(d(ut)),{option:ut,index:Tt})}),Le}),Ce=E(()=>{const Le=new Map;return K.value.forEach((ut,Tt)=>{Le.set(ye(d(ut)),{option:ut,index:Tt})}),Le}),Ie=E(()=>K.value.every(Le=>h(Le))),Pe=ss(),ze=E(()=>Pe.value==="small"?"small":"default"),Je=()=>{var Le;if(nt(e.fitInputWidth)){b.value=e.fitInputWidth;return}const ut=((Le=w.value)==null?void 0:Le.offsetWidth)||200;!e.fitInputWidth&&Q.value?Be(()=>{b.value=Math.max(ut,ot())}):b.value=ut},ot=()=>{var Le,ut;const Nt=document.createElement("canvas").getContext("2d"),Ns=a.be("dropdown","item"),r2=(((ut=(Le=M.value)==null?void 0:Le.listRef)==null?void 0:ut.innerRef)||document).querySelector(`.${Ns}`);if(r2===null||Nt===null)return 0;const Nb=getComputedStyle(r2),Dye=Number.parseFloat(Nb.paddingLeft)+Number.parseFloat(Nb.paddingRight);return Nt.font=`bold ${Nb.font.replace(new RegExp(`\\b${Nb.fontWeight}\\b`),"")}`,K.value.reduce((Fye,Bye)=>{const Vye=Nt.measureText(u(Bye));return Math.max(Vye.width,Fye)},0)+Dye},$e=()=>{if(!C.value)return 0;const Le=window.getComputedStyle(C.value);return Number.parseFloat(Le.gap||"6px")},He=E(()=>{const Le=$e(),ut=e.filterable?Le+Hg:0;return{maxWidth:`${O.value&&e.maxCollapseTags===1?g.selectionWidth-g.collapseItemWidth-Le-ut:g.selectionWidth-ut}px`}}),et=E(()=>({maxWidth:`${g.selectionWidth}px`})),Bt=E(()=>Ae(e.modelValue)?e.modelValue.length===0&&!g.inputValue:e.filterable?!g.inputValue:!0),qt=E(()=>{var Le;const ut=(Le=e.placeholder)!=null?Le:n("el.select.placeholder");return e.multiple||!ne.value?ut:g.selectedLabel}),st=E(()=>{var Le,ut;return(ut=(Le=x.value)==null?void 0:Le.popperRef)==null?void 0:ut.contentRef}),vt=E(()=>{if(e.multiple){const Le=e.modelValue.length;if(Le>0&&Ce.value.has(e.modelValue[Le-1])){const{index:ut}=Ce.value.get(e.modelValue[Le-1]);return ut}}else if(!m(e.modelValue)&&Ce.value.has(e.modelValue)){const{index:Le}=Ce.value.get(e.modelValue);return Le}return-1}),kt=E({get(){return ee.value&&(e.loading||!de.value||e.remote&&!!s.empty)&&(!_.value||!Ia(g.previousQuery))},set(Le){ee.value=Le}}),Se=E(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(0,e.maxCollapseTags):g.cachedOptions:[]),Ue=E(()=>e.multiple?e.collapseTags?g.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:we,removeNewOption:Ge,selectNewOption:St,clearAllNewOption:Zt}=bue(e,g),Sn=Le=>{var ut;N.value||e.filterable&&ee.value&&Le&&!((ut=I.value)!=null&&ut.contains(Le.target))||(g.menuVisibleOnFocus?g.menuVisibleOnFocus=!1:ee.value=!ee.value)},kn=()=>{g.inputValue.length>0&&!ee.value&&(ee.value=!0),we(g.inputValue),Be(()=>{tt(g.inputValue)})},Fe=bp(()=>{kn(),_.value=!1},te),tt=Le=>{g.previousQuery===Le||B.value||(g.previousQuery=Le,e.filterable&&Ze(e.filterMethod)?e.filterMethod(Le):e.filterable&&e.remote&&Ze(e.remoteMethod)&&e.remoteMethod(Le),e.defaultFirstOption&&(e.filterable||e.remote)&&K.value.length?Be(ft):Be(Ft))},ft=()=>{const Le=K.value.filter(Nt=>!Nt.disabled&&Nt.type!=="Group"),ut=Le.find(Nt=>Nt.created),Tt=Le[0];g.hoveringIndex=pe(K.value,ut||Tt)},wn=Le=>{Dn(e.modelValue,Le)||t(Rt,Le)},Ee=Le=>{t(lt,Le),wn(Le),g.previousValue=e.multiple?String(Le):Le,Be(()=>{if(e.multiple&&Ae(e.modelValue)){const ut=g.cachedOptions.slice(),Tt=e.modelValue.map(Nt=>Ii(Nt,ut));Dn(g.cachedOptions,Tt)||(g.cachedOptions=Tt)}else x0(!0)})},pe=(Le=[],ut)=>{if(!dt(ut))return Le.indexOf(ut);const Tt=e.valueKey;let Nt=-1;return Le.some((Ns,er)=>Jn(Ns,Tt)===Jn(ut,Tt)?(Nt=er,!0):!1),Nt},ye=Le=>dt(Le)?Jn(Le,e.valueKey):Le,je=()=>{Je()},rt=()=>{g.selectionWidth=Number.parseFloat(window.getComputedStyle(C.value).width)},mt=()=>{g.collapseItemWidth=O.value.getBoundingClientRect().width},zt=()=>{var Le,ut;(ut=(Le=x.value)==null?void 0:Le.updatePopper)==null||ut.call(Le)},Vn=()=>{var Le,ut;(ut=(Le=k.value)==null?void 0:Le.updatePopper)==null||ut.call(Le)},bn=Le=>{const ut=d(Le);if(e.multiple){let Tt=e.modelValue.slice();const Nt=pe(Tt,ut);Nt>-1?(Tt=[...Tt.slice(0,Nt),...Tt.slice(Nt+1)],g.cachedOptions.splice(Nt,1),Ge(Le)):(e.multipleLimit<=0||Tt.length<e.multipleLimit)&&(Tt=[...Tt,ut],g.cachedOptions.push(Le),St(Le)),Ee(Tt),Le.created&&tt(""),e.filterable&&!e.reserveKeyword&&(g.inputValue="")}else g.selectedLabel=u(Le),!Dn(e.modelValue,ut)&&Ee(ut),ee.value=!1,St(Le),Le.created||Zt();is()},It=(Le,ut)=>{let Tt=e.modelValue.slice();const Nt=pe(Tt,d(ut));Nt>-1&&!N.value&&(Tt=[...e.modelValue.slice(0,Nt),...e.modelValue.slice(Nt+1)],g.cachedOptions.splice(Nt,1),Ee(Tt),t("remove-tag",d(ut)),Ge(ut)),Le.stopPropagation(),is()},is=()=>{var Le;(Le=T.value)==null||Le.focus()},ms=()=>{var Le;if(ee.value){ee.value=!1,Be(()=>{var ut;return(ut=T.value)==null?void 0:ut.blur()});return}(Le=T.value)==null||Le.blur()},jl=()=>{g.inputValue.length>0?g.inputValue="":ee.value=!1},nu=Le=>fx(Le,ut=>!g.cachedOptions.some(Tt=>d(Tt)===ut&&h(Tt))),nf=Le=>{const ut=on(Le);if(e.multiple&&ut!==Te.delete&&g.inputValue.length===0){Le.preventDefault();const Tt=e.modelValue.slice(),Nt=nu(Tt);if(Nt<0)return;const Ns=Tt[Nt];Tt.splice(Nt,1);const er=g.cachedOptions[Nt];g.cachedOptions.splice(Nt,1),Ge(er),Ee(Tt),t("remove-tag",Ns)}},sf=()=>{let Le;Ae(e.modelValue)?Le=[]:Le=v.value,g.selectedLabel="",ee.value=!1,Ee(Le),t("clear"),Zt(),is()},zr=(Le,ut=void 0)=>{const Tt=K.value;if(!["forward","backward"].includes(Le)||N.value||Tt.length<=0||Ie.value||B.value)return;if(!ee.value)return Sn();Dt(ut)&&(ut=g.hoveringIndex);let Nt=-1;Le==="forward"?(Nt=ut+1,Nt>=Tt.length&&(Nt=0)):Le==="backward"&&(Nt=ut-1,(Nt<0||Nt>=Tt.length)&&(Nt=Tt.length-1));const Ns=Tt[Nt];if(h(Ns)||Ns.type==="Group")return zr(Le,Nt);g.hoveringIndex=Nt,sa(Nt)},Re=()=>{if(ee.value)~g.hoveringIndex&&K.value[g.hoveringIndex]&&bn(K.value[g.hoveringIndex]);else return Sn()},ct=Le=>{g.hoveringIndex=Le??-1},Ft=()=>{if(!e.multiple)g.hoveringIndex=K.value.findIndex(Le=>ye(d(Le))===ye(e.modelValue));else{const Le=e.modelValue.length;if(Le>0){const ut=e.modelValue[Le-1];g.hoveringIndex=K.value.findIndex(Tt=>ye(ut)===ye(d(Tt)))}else g.hoveringIndex=-1}},En=Le=>{if(g.inputValue=Le.target.value,e.remote)_.value=!0,Fe();else return kn()},Un=Le=>{if(ee.value=!1,V.value){const ut=new FocusEvent("blur",Le);z(ut)}},xa=()=>(g.isBeforeHide=!1,Be(()=>{~vt.value&&sa(vt.value)})),sa=Le=>{M.value.scrollToItem(Le)},Ii=(Le,ut)=>{const Tt=ye(Le);if(Ne.value.has(Tt)){const{option:Nt}=Ne.value.get(Tt);return Nt}if(ut&&ut.length){const Nt=ut.find(Ns=>ye(d(Ns))===Tt);if(Nt)return Nt}return{[c.value.value]:Le,[c.value.label]:Le}},Kl=Le=>{var ut,Tt;return(Tt=(ut=Ne.value.get(d(Le)))==null?void 0:ut.index)!=null?Tt:-1},x0=(Le=!1)=>{if(e.multiple)if(e.modelValue.length>0){const ut=g.cachedOptions.slice();g.cachedOptions.length=0,g.previousValue=e.modelValue.toString();for(const Tt of e.modelValue){const Nt=Ii(Tt,ut);g.cachedOptions.push(Nt)}}else g.cachedOptions=[],g.previousValue=void 0;else if(ne.value){g.previousValue=e.modelValue;const ut=K.value,Tt=ut.findIndex(Nt=>ye(d(Nt))===ye(e.modelValue));~Tt?g.selectedLabel=u(ut[Tt]):(!g.selectedLabel||Le)&&(g.selectedLabel=ye(e.modelValue))}else g.selectedLabel="",g.previousValue=void 0;Zt(),Je()};ge(()=>e.fitInputWidth,()=>{Je()}),ge(ee,Le=>{Le?(e.persistent||Je(),tt("")):(g.inputValue="",g.previousQuery=null,g.isBeforeHide=!0,g.menuVisibleOnFocus=!1,we(""))}),ge(()=>e.modelValue,(Le,ut)=>{var Tt;(!Le||Ae(Le)&&Le.length===0||e.multiple&&!Dn(Le.toString(),g.previousValue)||!e.multiple&&ye(Le)!==ye(g.previousValue))&&x0(!0),!Dn(Le,ut)&&e.validateEvent&&((Tt=i==null?void 0:i.validate)==null||Tt.call(i,"change").catch(Ns=>void 0))},{deep:!0}),ge(()=>e.options,()=>{const Le=T.value;(!Le||Le&&document.activeElement!==Le)&&x0()},{deep:!0,flush:"post"}),ge(()=>K.value,()=>(Je(),M.value&&Be(M.value.resetScrollTop))),ja(()=>{g.isBeforeHide||De()}),ja(()=>{const{valueKey:Le,options:ut}=e,Tt=new Map;for(const Nt of ut){const Ns=d(Nt);let er=Ns;if(dt(er)&&(er=Jn(Ns,Le)),Tt.get(er))break;Tt.set(er,!0)}}),xt(()=>{x0()}),_n(w,je),_n(C,rt),_n(L,zt),_n($,Vn),_n(O,mt);let Lb;return ge(()=>kt.value,Le=>{Le?Lb=_n(M,zt).stop:(Lb==null||Lb(),Lb=void 0),t("visible-change",Le)}),{inputId:l,collapseTagSize:ze,currentPlaceholder:qt,expanded:ee,emptyText:be,popupHeight:fe,debounce:te,allOptions:G,allOptionsValueMap:Ne,filteredOptions:K,iconComponent:he,iconReverse:ce,tagStyle:He,collapseTagStyle:et,popperSize:b,dropdownMenuVisible:kt,hasModelValue:ne,shouldShowPlaceholder:Bt,selectDisabled:N,selectSize:Pe,needStatusIcon:ae,showClearBtn:ve,states:g,isFocused:V,nsSelect:a,nsInput:o,inputRef:T,menuRef:M,tagMenuRef:$,tooltipRef:x,tagTooltipRef:k,selectRef:w,wrapperRef:L,selectionRef:C,prefixRef:R,suffixRef:I,collapseItemRef:O,popperRef:st,validateState:Z,validateIcon:H,showTagList:Se,collapseTagList:Ue,debouncedOnInputChange:Fe,deleteTag:It,getLabel:u,getValue:d,getDisabled:h,getValueKey:ye,getIndex:Kl,handleClear:sf,handleClickOutside:Un,handleDel:nf,handleEsc:jl,focus:is,blur:ms,handleMenuEnter:xa,handleResize:je,resetSelectionWidth:rt,updateTooltip:zt,updateTagTooltip:Vn,updateOptions:De,toggleMenu:Sn,scrollTo:sa,onInput:En,onKeyboardNavigate:zr,onKeyboardSelect:Re,onSelect:bn,onHover:ct,handleCompositionStart:U,handleCompositionEnd:J,handleCompositionUpdate:Y}};var wue=W({name:"ElSelectV2",components:{ElSelectMenu:gue,ElTag:rl,ElTooltip:As,ElIcon:Xe},directives:{ClickOutside:dc},props:Zce,emits:eue,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=yue(Kt({...bs(e),modelValue:n}),t),{calculatorRef:a,inputStyle:o}=E3(),r=Fs();Mt(v6,{props:Kt({...bs(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:Uk}}});const _ue=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],Cue=["textContent"],Sue={key:1};function xue(e,t,n,s,a,o){const r=qe("el-tag"),i=qe("el-tooltip"),l=qe("el-icon"),c=qe("el-select-menu"),u=$4("click-outside");return bt((S(),P("div",{ref:"selectRef",class:D([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=d=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=d=>e.states.inputHovering=!1)},[j(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]=d=>e.states.isBeforeHide=!1)},{default:X(()=>{var d,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]=it((...p)=>e.toggleMenu&&e.toggleMenu(...p),["prevent"]))},[e.$slots.prefix?(S(),P("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),P(Ve,null,wt(e.showTagList,p=>(S(),P("div",{key:e.getValueKey(e.getValue(p)),class:D(e.nsSelect.e("selected-item"))},[j(r,{closable:!e.selectDisabled&&!e.getDisabled(p),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Qe(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)},()=>[Ke(me(e.getLabel(p)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(S(),le(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"))},[j(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Qe(e.collapseTagStyle),"disable-transitions":""},{default:X(()=>[A("span",{class:D(e.nsSelect.e("tags-text"))}," + "+me(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),P(Ve,null,wt(e.collapseTagList,p=>(S(),P("div",{key:e.getValueKey(e.getValue(p)),class:D(e.nsSelect.e("selected-item"))},[j(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)},()=>[Ke(me(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:Qe(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]=$n(it(p=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[5]||(t[5]=$n(it(p=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[6]||(t[6]=$n(it((...p)=>e.onKeyboardSelect&&e.onKeyboardSelect(...p),["stop","prevent"]),["enter"])),t[7]||(t[7]=$n(it((...p)=>e.handleEsc&&e.handleEsc(...p),["stop","prevent"]),["esc"])),t[8]||(t[8]=$n(it((...p)=>e.handleDel&&e.handleDel(...p),["stop"]),["delete"]))],onClick:t[9]||(t[9]=it((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},null,46,_ue),e.filterable?(S(),P("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:D(e.nsSelect.e("input-calculator")),textContent:me(e.states.inputValue)},null,10,Cue)):ie("v-if",!0)],2),e.shouldShowPlaceholder?(S(),P("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=(d=e.allOptionsValueMap.get(e.modelValue))==null?void 0:d.index)!=null?h:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[A("span",null,me(e.currentPlaceholder),1)]):(S(),P("span",Sue,me(e.currentPlaceholder),1))],2)):ie("v-if",!0)],2),A("div",{ref:"suffixRef",class:D(e.nsSelect.e("suffix"))},[e.iconComponent?bt((S(),le(l,{key:0,class:D([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:X(()=>[(S(),le(yt(e.iconComponent)))]),_:1},8,["class"])),[[Vt,!e.showClearBtn]]):ie("v-if",!0),e.showClearBtn&&e.clearIcon?(S(),le(l,{key:1,class:D([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:it(e.handleClear,["prevent","stop"])},{default:X(()=>[(S(),le(yt(e.clearIcon)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(S(),le(l,{key:2,class:D([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:X(()=>[(S(),le(yt(e.validateIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],2)]}),content:X(()=>[j(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(d=>[ue(e.$slots,"default",Ni(Hi(d)))]),_:2},[e.$slots.header?{name:"header",fn:X(()=>[A("div",{class:D(e.nsSelect.be("dropdown","header")),onClick:t[11]||(t[11]=it(()=>{},["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,me(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]=it(()=>{},["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 kue=us(wue,[["render",xue]]);const Eue=ht(kue),Aue=Me({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:re([Number,Object])}}),Tue=Me({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var m1=W({name:"ElSkeletonItem",__name:"skeleton-item",props:Tue,setup(e){const t=ke("skeleton");return(n,s)=>(S(),P("div",{class:D([f(t).e("item"),f(t).e(e.variant)])},[e.variant==="image"?(S(),le(f(t9),{key:0})):ie("v-if",!0)],2))}});const Mue=(e,t=0)=>{if(t===0)return e;const n=dt(t)&&!!t.initVal,s=F(n);let a=null;const o=i=>{if(Dt(i)){s.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{s.value=e.value},i)},r=i=>{i==="leading"?nt(t)?o(t):o(t.leading):dt(t)?o(t.trailing):s.value=!1};return xt(()=>r("leading")),ge(()=>e.value,i=>{r(i?"leading":"trailing")}),s};var Pue=W({name:"ElSkeleton",__name:"skeleton",props:Aue,setup(e,{expose:t}){const n=e,s=ke("skeleton"),a=Mue(Qt(n,"loading"),n.throttle);return t({uiLoading:a}),(o,r)=>f(a)?(S(),P("div",_t({key:0,class:[f(s).b(),f(s).is("animated",e.animated)]},o.$attrs),[(S(!0),P(Ve,null,wt(e.count,i=>(S(),P(Ve,{key:i},[f(a)?ue(o.$slots,"template",{key:i},()=>[j(m1,{class:D(f(s).is("first")),variant:"p"},null,8,["class"]),(S(!0),P(Ve,null,wt(e.rows,l=>(S(),le(m1,{key:l,class:D([f(s).e("paragraph"),f(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",Ni(_t({key:1},o.$attrs)))}});const Rue=ht(Pue,{SkeletonItem:m1}),Iue=Tn(m1),cT=Symbol("sliderContextKey"),Oue=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:cs,inputSize:cs,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:ti,default:"top"},marks:{type:re(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...ca(["ariaLabel"])}),k6=e=>nt(e)||Ae(e)&&e.every(nt),Lue={[lt]:k6,[ns]:k6,[Rt]:k6},Nue=Me({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:ti,default:"top"}}),$ue={[lt]:e=>nt(e)},Due=(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=Zr(()=>{n.value&&(a.value=!0)},50),l=Zr(()=>{n.value&&(a.value=!1)},50);return{tooltip:s,tooltipVisible:a,formatValue:r,displayTooltip:i,hideTooltip:l}},Fue=(e,t,n)=>{const{disabled:s,min:a,max:o,step:r,showTooltip:i,persistent:l,precision:c,sliderSize:u,formatTooltip:d,emitChange:h,resetSize:p,updateDragging:v}=We(cT),{tooltip:m,tooltipVisible:g,formatValue:b,displayTooltip:_,hideTooltip:w}=Due(e,d,i),C=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,_()},R=()=>{t.hovering=!1,t.dragging||w()},I=K=>{s.value||(K.preventDefault(),V(K),window.addEventListener("mousemove",z),window.addEventListener("touchmove",z),window.addEventListener("mouseup",G),window.addEventListener("touchend",G),window.addEventListener("contextmenu",G),C.value.focus())},M=K=>{s.value||(t.newPosition=Number.parseFloat(x.value)+K/(o.value-a.value)*100,Q(t.newPosition),h())},$=()=>{M(-r.value)},O=()=>{M(r.value)},B=()=>{M(-r.value*4)},U=()=>{M(r.value*4)},J=()=>{s.value||(Q(0),h())},Y=()=>{s.value||(Q(100),h())},N=K=>{const ee=on(K);let ae=!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:U();break;default:ae=!1;break}ae&&K.preventDefault()},L=K=>{let ee,ae;return K.type.startsWith("touch")?(ae=K.touches[0].clientY,ee=K.touches[0].clientX):(ae=K.clientY,ee=K.clientX),{clientX:ee,clientY:ae}},V=K=>{t.dragging=!0,t.isClick=!0;const{clientX:ee,clientY:ae}=L(K);e.vertical?t.startY=ae:t.startX=ee,t.startPosition=Number.parseFloat(x.value),t.newPosition=t.startPosition},z=K=>{if(t.dragging){t.isClick=!1,_(),p();let ee;const{clientX:ae,clientY:fe}=L(K);e.vertical?(t.currentY=fe,ee=(t.startY-t.currentY)/u.value*100):(t.currentX=ae,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 K=>{if(K===null||Number.isNaN(+K))return;K=wu(K,0,100);const ee=Math.floor((o.value-a.value)/r.value),ae=ee*r.value/(o.value-a.value)*100,fe=ae+(100-ae)/2;let ne;if(K<ae){const ve=ae/ee,he=Math.round(K/ve);ne=a.value+he*r.value}else K<fe?ne=a.value+ee*r.value:ne=o.value;ne=Number.parseFloat(ne.toFixed(c.value)),ne!==e.modelValue&&n(lt,ne),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Be(),t.dragging&&_(),m.value.updatePopper()};return ge(()=>t.dragging,K=>{v(K)}),en(C,"touchstart",I,{passive:!1}),{disabled:s,button:C,tooltip:m,tooltipVisible:g,showTooltip:i,persistent:l,wrapperStyle:k,formatValue:b,handleMouseEnter:T,handleMouseLeave:R,onButtonDown:I,onKeyDown:N,setPosition:Q}},Bue=["tabindex"];var uT=W({name:"ElSliderButton",__name:"button",props:Nue,emits:$ue,setup(e,{expose:t,emit:n}){const s=e,a=n,o=ke("slider"),r=Kt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:s.modelValue}),i=E(()=>d.value?h.value:!1),{disabled:l,button:c,tooltip:u,showTooltip:d,persistent:h,tooltipVisible:p,wrapperStyle:v,formatValue:m,handleMouseEnter:g,handleMouseLeave:b,onButtonDown:_,onKeyDown:w,setPosition:C}=Fue(s,r,a),{hovering:x,dragging:k}=bs(r);return t({onButtonDown:_,onKeyDown:w,setPosition:C,hovering:x,dragging:k}),(T,R)=>(S(),P("div",{ref_key:"button",ref:c,class:D([f(o).e("button-wrapper"),{hover:f(x),dragging:f(k)}]),style:Qe(f(v)),tabindex:f(l)?void 0:0,onMouseenter:R[0]||(R[0]=(...I)=>f(g)&&f(g)(...I)),onMouseleave:R[1]||(R[1]=(...I)=>f(b)&&f(b)(...I)),onMousedown:R[2]||(R[2]=(...I)=>f(_)&&f(_)(...I)),onFocus:R[3]||(R[3]=(...I)=>f(g)&&f(g)(...I)),onBlur:R[4]||(R[4]=(...I)=>f(b)&&f(b)(...I)),onKeydown:R[5]||(R[5]=(...I)=>f(w)&&f(w)(...I))},[j(f(As),{ref_key:"tooltip",ref:u,visible:f(p),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!f(d),persistent:i.value},{content:X(()=>[A("span",null,me(f(m)),1)]),default:X(()=>[A("div",{class:D([f(o).e("button"),{hover:f(x),dragging:f(k)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,Bue))}});const Vue=Me({mark:{type:re([String,Object]),default:void 0}});var zue=W({name:"ElSliderMarker",props:Vue,setup(e){const t=ke("slider"),n=E(()=>Ye(e.mark)?e.mark:e.mark.label),s=E(()=>Ye(e.mark)?void 0:e.mark.style);return()=>at("div",{class:t.e("marks-text"),style:s.value},n.value)}});const Hue=(e,t,n)=>{const{formItem:s}=Es(),a=pn(),o=F(),r=F(),i={firstButton:o,secondButton:r},l=On(),c=E(()=>Math.min(t.firstValue,t.secondValue)),u=E(()=>Math.max(t.firstValue,t.secondValue)),d=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:d.value,bottom:h.value}:{width:d.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},_=$=>{t.firstValue=$??e.min,C(e.range?[c.value,u.value]:$??e.min)},w=$=>{t.secondValue=$,e.range&&C([c.value,u.value])},C=$=>{n(lt,$),n(ns,$)},x=async()=>{await Be(),n(Rt,e.range?[c.value,u.value]:e.modelValue)},k=$=>{var O,B,U,J,Y,N;if(l.value||t.dragging)return;m();let L=0;if(e.vertical){const V=(U=(B=(O=$.touches)==null?void 0:O.item(0))==null?void 0:B.clientY)!=null?U:$.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 Be(),O.value.onButtonDown($))},onSliderMarkerDown:$=>{if(l.value||t.dragging)return;b($)&&x()},setFirstValue:_,setSecondValue:w}},Wue=(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}%`}}),jue=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]})):[]),Kue=(e,t,n,s,a,o)=>{const r=c=>{a(lt,c),a(ns,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&&Zn("Slider","min should not be greater than max.");const d=e.modelValue;e.range&&Ae(d)?d[1]<e.min?r([e.min,e.min]):d[0]>e.max?r([e.max,e.max]):d[0]<e.min?r([e.min,d[1]]):d[1]>e.max?r([d[0],e.max]):(t.firstValue=d[0],t.secondValue=d[1],i()&&(e.validateEvent&&((c=o==null?void 0:o.validate)==null||c.call(o,"change").catch(h=>void 0)),t.oldValue=d.slice())):!e.range&&nt(d)&&!Number.isNaN(d)&&(d<e.min?r(e.min):d>e.max?r(e.max):(t.firstValue=d,i()&&(e.validateEvent&&((u=o==null?void 0:o.validate)==null||u.call(o,"change").catch(h=>void 0)),t.oldValue=d)))};l(),ge(()=>t.dragging,c=>{c||l()}),ge(()=>e.modelValue,(c,u)=>{t.dragging||Ae(c)&&Ae(u)&&c.every((d,h)=>d===u[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||l()},{deep:!0}),ge(()=>[e.min,e.max],()=>{l()})},Uue=(e,t,n)=>{const s=F();return xt(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]):(!nt(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),en(window,"resize",n),await Be(),n()}),{sliderWrapper:s}},que=["id","role","aria-label","aria-labelledby"],Gue={key:1};var Yue=W({name:"ElSlider",__name:"slider",props:Oue,emits:Lue,setup(e,{expose:t,emit:n}){const s=e,a=n,o=ke("slider"),{t:r}=Ot(),i=Kt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:l,slider:c,firstButton:u,secondButton:d,sliderDisabled:h,minValue:p,maxValue:v,runwayStyle:m,barStyle:g,resetSize:b,emitChange:_,onSliderWrapperPrevent:w,onSliderClick:C,onSliderDown:x,onSliderMarkerDown:k,setFirstValue:T,setSecondValue:R}=Hue(s,i,a),{stops:I,getStopStyle:M}=Wue(s,i,p,v),{inputId:$,isLabeledByFormItem:O}=fo(s,{formItemContext:l}),B=ss(),U=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(ae.value):`${ae.value}`),z=E(()=>[o.b(),o.m(B.value),o.is("vertical",s.vertical),{[o.m("with-input")]:s.showInput}]),G=jue(s);Kue(s,i,p,v,a,l);const Q=E(()=>{const ve=[s.min,s.max,s.step].map(he=>{const ce=`${he}`.split(".")[1];return ce?ce.length:0});return Math.max.apply(null,ve)}),{sliderWrapper:K}=Uue(s,i,b),{firstValue:ee,secondValue:ae,sliderSize:fe}=bs(i),ne=ve=>{i.dragging=ve};return en(K,"touchstart",w,{passive:!1}),en(K,"touchmove",w,{passive:!1}),Mt(cT,{...bs(s),sliderSize:fe,disabled:h,precision:Q,emitChange:_,resetSize:b,updateDragging:ne}),t({onSliderClick:C}),(ve,he)=>{var ce,Z;return S(),P("div",{id:ve.range?f($):void 0,ref_key:"sliderWrapper",ref:K,class:D(z.value),role:ve.range?"group":void 0,"aria-label":ve.range&&!f(O)?J.value:void 0,"aria-labelledby":ve.range&&f(O)?(ce=f(l))==null?void 0:ce.labelId:void 0},[A("div",{ref_key:"slider",ref:c,class:D([f(o).e("runway"),{"show-input":ve.showInput&&!ve.range},f(o).is("disabled",f(h))]),style:Qe(f(m)),onMousedown:he[0]||(he[0]=(...H)=>f(x)&&f(x)(...H)),onTouchstartPassive:he[1]||(he[1]=(...H)=>f(x)&&f(x)(...H))},[A("div",{class:D(f(o).e("bar")),style:Qe(f(g))},null,6),j(uT,{id:ve.range?void 0:f($),ref_key:"firstButton",ref:u,"model-value":f(ee),vertical:ve.vertical,"tooltip-class":ve.tooltipClass,placement:ve.placement,role:"slider","aria-label":ve.range||!f(O)?Y.value:void 0,"aria-labelledby":!ve.range&&f(O)?(Z=f(l))==null?void 0:Z.labelId:void 0,"aria-valuemin":ve.min,"aria-valuemax":ve.range?f(ae):ve.max,"aria-valuenow":f(ee),"aria-valuetext":N.value,"aria-orientation":ve.vertical?"vertical":"horizontal","aria-disabled":f(h),"onUpdate:modelValue":f(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"]),ve.range?(S(),le(uT,{key:0,ref_key:"secondButton",ref:d,"model-value":f(ae),vertical:ve.vertical,"tooltip-class":ve.tooltipClass,placement:ve.placement,role:"slider","aria-label":L.value,"aria-valuemin":f(ee),"aria-valuemax":ve.max,"aria-valuenow":f(ae),"aria-valuetext":V.value,"aria-orientation":ve.vertical?"vertical":"horizontal","aria-disabled":f(h),"onUpdate:modelValue":f(R)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ie("v-if",!0),ve.showStops?(S(),P("div",Gue,[(S(!0),P(Ve,null,wt(f(I),(H,te)=>(S(),P("div",{key:te,class:D(f(o).e("stop")),style:Qe(f(M)(H))},null,6))),128))])):ie("v-if",!0),f(G).length>0?(S(),P(Ve,{key:2},[A("div",null,[(S(!0),P(Ve,null,wt(f(G),(H,te)=>(S(),P("div",{key:te,style:Qe(f(M)(H.position)),class:D([f(o).e("stop"),f(o).e("marks-stop")])},null,6))),128))]),A("div",{class:D(f(o).e("marks"))},[(S(!0),P(Ve,null,wt(f(G),(H,te)=>(S(),le(f(zue),{key:te,mark:H.mark,style:Qe(f(M)(H.position)),onMousedown:it(de=>f(k)(H.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):ie("v-if",!0)],38),ve.showInput&&!ve.range?(S(),le(f(NA),{key:0,ref:"input","model-value":f(ee),class:D(f(o).e("input")),step:ve.step,disabled:f(h),controls:ve.showInputControls,min:ve.min,max:ve.max,precision:Q.value,size:U.value,"onUpdate:modelValue":f(T),onChange:f(_)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):ie("v-if",!0)],10,que)}}});const Xue=ht(Yue),Jue=Me({prefixCls:{type:String}}),dT=W({name:"ElSpaceItem",props:Jue,setup(e,{slots:t}){const n=ke("space"),s=E(()=>`${e.prefixCls||n.b()}__item`);return()=>at("div",{class:s.value},ue(t,"default"))}}),fT={small:8,default:12,large:16};function Zue(e){const t=ke("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[d=0,h=0]=i;s.value=d,a.value=h}else{let d;nt(i)?d=i:d=fT[i||"small"]||fT.small,(l||u)&&c==="horizontal"?s.value=a.value=d:c==="horizontal"?(s.value=d,a.value=0):(a.value=d,s.value=0)}}),{classes:n,containerStyle:o,itemStyle:r}}const Que=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=>dn(e)||nt(e)||Ye(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:hr,validator:e=>nt(e)||Ae(e)&&e.length===2&&e.every(nt)}}),ede=ht(W({name:"ElSpace",props:Que,setup(e,{slots:t}){const{classes:n,containerStyle:s,itemStyle:a}=Zue(e);function o(r,i="",l=[]){const{prefixCls:c}=e;return r.forEach((u,d)=>{Uy(u)?Ae(u.children)&&u.children.forEach((h,p)=>{Uy(h)&&Ae(h.children)?o(h.children,`${i+p}-`,l):dn(h)&&(h==null?void 0:h.type)===qn?l.push(h):l.push(j(dT,{style:a.value,prefixCls:c,key:`nested-${i+p}`},{default:()=>[h]},Fo.PROPS|Fo.STYLE,["style","prefixCls"]))}):uJ(u)&&l.push(j(dT,{style:a.value,prefixCls:c,key:`LoopKey${i+d}`},{default:()=>[u]},Fo.PROPS|Fo.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 d=u.length-1;u=u.reduce((h,p,v)=>{const m=[...h,p];return v!==d&&m.push(j("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[dn(i)?i:Ke(i,Fo.TEXT)],Fo.STYLE)),m},[])}return j("div",{class:n.value,style:s.value},u,Fo.STYLE|Fo.CLASS)}return c.children}}})),tde=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 nde=W({name:"ElStatistic",__name:"statistic",props:tde,setup(e,{expose:t}){const n=e,s=ke("statistic"),a=E(()=>{const{value:o,formatter:r,precision:i,decimalSeparator:l,groupSeparator:c}=n;if(Ze(r))return r(o);if(!nt(o)||Number.isNaN(o))return o;let[u,d=""]=String(o).split(".");return d=d.padEnd(i,"0").slice(0,i>0?i:0),u=u.replace(/\B(?=(\d{3})+(?!\d))/g,c),[u,d].join(d?l:"")});return t({displayValue:a}),(o,r)=>(S(),P("div",{class:D(f(s).b())},[o.$slots.title||e.title?(S(),P("div",{key:0,class:D(f(s).e("head"))},[ue(o.$slots,"title",{},()=>[Ke(me(e.title),1)])],2)):ie("v-if",!0),A("div",{class:D(f(s).e("content"))},[o.$slots.prefix||e.prefix?(S(),P("div",{key:0,class:D(f(s).e("prefix"))},[ue(o.$slots,"prefix",{},()=>[A("span",null,me(e.prefix),1)])],2)):ie("v-if",!0),A("span",{class:D(f(s).e("number")),style:Qe(e.valueStyle)},me(a.value),7),o.$slots.suffix||e.suffix?(S(),P("div",{key:1,class:D(f(s).e("suffix"))},[ue(o.$slots,"suffix",{},()=>[A("span",null,me(e.suffix),1)])],2)):ie("v-if",!0)],2)],2))}});const hT=ht(nde),sde=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])}}),ade={finish:()=>!0,[Rt]:e=>nt(e)},ode=[["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]],pT=e=>nt(e)?new Date(e).getTime():e.valueOf(),vT=(e,t)=>{let n=e;const s=/\[([^\]]*)]/g;return ode.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 rde=W({name:"ElCountdown",__name:"countdown",props:sde,emits:ade,setup(e,{expose:t,emit:n}){const s=e,a=n;let o;const r=F(0),i=E(()=>vT(r.value,s.format)),l=d=>vT(d,s.format),c=()=>{o&&(Yi(o),o=void 0)},u=()=>{const d=pT(s.value),h=()=>{let p=d-Date.now();a(Rt,p),p<=0?(p=0,c(),a("finish")):o=Qr(h),r.value=p};o=Qr(h)};return xt(()=>{r.value=pT(s.value)-Date.now(),ge(()=>[s.value,s.format],()=>{c(),u()},{immediate:!0})}),Xt(()=>{c()}),t({displayValue:i}),(d,h)=>(S(),le(f(hT),{value:r.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:l},Ta({_:2},[wt(d.$slots,(p,v)=>({name:v,fn:X(()=>[ue(d.$slots,v)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});const ide=ht(rde),lde=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"}}),cde={[Rt]:(e,t)=>[e,t].every(nt)},mT="ElSteps";var ude=W({name:"ElSteps",__name:"steps",props:lde,emits:cde,setup(e,{emit:t}){const n=e,s=t,a=ke("steps"),{children:o,addChild:r,removeChild:i,ChildrenSorter:l}=jg(Ct(),"ElStep");return ge(o,()=>{o.value.forEach((c,u)=>{c.setIndex(u)})}),Mt(mT,{props:n,steps:o,addStep:r,removeStep:i}),ge(()=>n.active,(c,u)=>{s(Rt,c,u)}),(c,u)=>(S(),P("div",{class:D([f(a).b(),f(a).m(e.simple?"simple":e.direction)])},[ue(c.$slots,"default"),j(f(l))],2))}});const dde=Me({title:{type:String,default:""},icon:{type:nn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var gT=W({name:"ElStep",__name:"item",props:dde,setup(e){const t=e,n=ke("step"),s=F(-1),a=F({}),o=F(""),r=We(mT),i=Ct();let l=0,c=0;xt(()=>{ge([()=>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),d=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),_=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:nt(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}),C=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&&d.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:C,calcProgress:x};return r.addStep(T),Xt(()=>{r.removeStep(T)}),(R,I)=>(S(),P("div",{style:Qe(w.value),class:D(_.value)},[ie(" icon & line "),A("div",{class:D([f(n).e("head"),f(n).is(u.value)])},[v.value?ie("v-if",!0):(S(),P("div",{key:0,class:D(f(n).e("line"))},[A("i",{class:D(f(n).e("line-inner")),style:Qe(a.value)},null,6)],2)),A("div",{class:D([f(n).e("icon"),f(n).is(e.icon||R.$slots.icon?"icon":"text")])},[ue(R.$slots,"icon",{},()=>[e.icon?(S(),le(f(Xe),{key:0,class:D(f(n).e("icon-inner"))},{default:X(()=>[(S(),le(yt(e.icon)))]),_:1},8,["class"])):u.value==="success"?(S(),le(f(Xe),{key:1,class:D([f(n).e("icon-inner"),f(n).is("status")])},{default:X(()=>[j(f(Pf))]),_:1},8,["class"])):u.value==="error"?(S(),le(f(Xe),{key:2,class:D([f(n).e("icon-inner"),f(n).is("status")])},{default:X(()=>[j(f(qa))]),_:1},8,["class"])):v.value?ie("v-if",!0):(S(),P("div",{key:3,class:D(f(n).e("icon-inner"))},me(s.value+1),3))])],2)],2),ie(" title & description "),A("div",{class:D(f(n).e("main"))},[A("div",{class:D([f(n).e("title"),f(n).is(u.value)])},[ue(R.$slots,"title",{},()=>[Ke(me(e.title),1)])],2),v.value?(S(),P("div",{key:0,class:D(f(n).e("arrow"))},null,2)):(S(),P("div",{key:1,class:D([f(n).e("description"),f(n).is(u.value)])},[ue(R.$slots,"description",{},()=>[Ke(me(e.description),1)])],2))],2)],6))}});const fde=ht(ude,{Step:gT}),hde=Tn(gT),bT=e=>["",...hr].includes(e),pde=Me({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:bT},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:nn},activeActionIcon:{type:nn},activeIcon:{type:nn},inactiveIcon:{type:nn},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]},...ca(["ariaLabel"])}),vde={[lt]:e=>tn(e)||Ye(e)||nt(e),[Rt]:e=>tn(e)||Ye(e)||nt(e),[ns]:e=>tn(e)||Ye(e)||nt(e)},mde=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],gde=["aria-hidden"],bde={key:1},yde={key:1},wde=["aria-hidden"],yT="ElSwitch";var _de=W({name:yT,__name:"switch",props:pde,emits:vde,setup(e,{expose:t,emit:n}){const s=e,a=n,{formItem:o}=Es(),r=ss(),i=ke("switch"),{inputId:l}=fo(s,{formItemContext:o}),c=On(E(()=>{if(s.loading)return!0})),u=F(s.modelValue!==!1),d=pn(),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:Rn(s.width)}));ge(()=>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(lt,s.inactiveValue),a(Rt,s.inactiveValue),a(ns,s.inactiveValue)),ge(b,x=>{var k;d.value.checked=x,s.validateEvent&&((k=o==null?void 0:o.validate)==null||k.call(o,"change").catch(T=>void 0))});const _=()=>{const x=b.value?s.inactiveValue:s.activeValue;a(lt,x),a(Rt,x),a(ns,x),Be(()=>{d.value.checked=b.value})},w=()=>{if(c.value)return;const{beforeChange:x}=s;if(!x){_();return}const k=x();[au(k),tn(k)].includes(!0)||Zn(yT,"beforeChange must return type `Promise<boolean>` or `boolean`"),au(k)?k.then(R=>{R&&_()}).catch(R=>{}):k&&_()},C=()=>{var x,k;(k=(x=d.value)==null?void 0:x.focus)==null||k.call(x)};return xt(()=>{d.value.checked=b.value}),t({focus:C,checked:b}),(x,k)=>(S(),P("div",{class:D(h.value),onClick:it(w,["prevent"])},[A("input",{id:f(l),ref_key:"input",ref:d,class:D(f(i).e("input")),type:"checkbox",role:"switch","aria-checked":b.value,"aria-disabled":f(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:f(c),tabindex:e.tabindex,onChange:_,onKeydown:$n(w,["enter"])},null,42,mde),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||x.$slots.inactive)?(S(),P("span",{key:0,class:D(p.value)},[ue(x.$slots,"inactive",{},()=>[e.inactiveIcon?(S(),le(f(Xe),{key:0},{default:X(()=>[(S(),le(yt(e.inactiveIcon)))]),_:1})):ie("v-if",!0),!e.inactiveIcon&&e.inactiveText?(S(),P("span",{key:1,"aria-hidden":b.value},me(e.inactiveText),9,gde)):ie("v-if",!0)])],2)):ie("v-if",!0),A("span",{class:D(f(i).e("core")),style:Qe(m.value)},[e.inlinePrompt?(S(),P("div",{key:0,class:D(f(i).e("inner"))},[b.value?(S(),P("div",{key:1,class:D(f(i).e("inner-wrapper"))},[ue(x.$slots,"active",{},()=>[e.activeIcon?(S(),le(f(Xe),{key:0},{default:X(()=>[(S(),le(yt(e.activeIcon)))]),_:1})):ie("v-if",!0),!e.activeIcon&&e.activeText?(S(),P("span",yde,me(e.activeText),1)):ie("v-if",!0)])],2)):(S(),P("div",{key:0,class:D(f(i).e("inner-wrapper"))},[ue(x.$slots,"inactive",{},()=>[e.inactiveIcon?(S(),le(f(Xe),{key:0},{default:X(()=>[(S(),le(yt(e.inactiveIcon)))]),_:1})):ie("v-if",!0),!e.inactiveIcon&&e.inactiveText?(S(),P("span",bde,me(e.inactiveText),1)):ie("v-if",!0)])],2))],2)):ie("v-if",!0),A("div",{class:D(f(i).e("action"))},[e.loading?(S(),le(f(Xe),{key:0,class:D(f(i).is("loading"))},{default:X(()=>[j(f(Ds))]),_:1},8,["class"])):b.value?ue(x.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(S(),le(f(Xe),{key:0},{default:X(()=>[(S(),le(yt(e.activeActionIcon)))]),_:1})):ie("v-if",!0)]):b.value?ie("v-if",!0):ue(x.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(S(),le(f(Xe),{key:0},{default:X(()=>[(S(),le(yt(e.inactiveActionIcon)))]),_:1})):ie("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||x.$slots.active)?(S(),P("span",{key:1,class:D(v.value)},[ue(x.$slots,"active",{},()=>[e.activeIcon?(S(),le(f(Xe),{key:0},{default:X(()=>[(S(),le(yt(e.activeIcon)))]),_:1})):ie("v-if",!0),!e.activeIcon&&e.activeText?(S(),P("span",{key:1,"aria-hidden":!b.value},me(e.activeText),9,wde)):ie("v-if",!0)])],2)):ie("v-if",!0)],2))}});const Cde=ht(_de),E6=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Sde=function(e,t,n,s,a){if(!t&&!s&&(!a||Ae(a)&&!a.length))return e;Ye(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=s?null:function(i,l){return a?hx(ks(a),c=>Ye(c)?Jn(i,c):c(i,l,e)):(t!=="$key"&&dt(i)&&"$value"in i&&(i=i.$value),[dt(i)?t?Jn(i,t):null:i])},r=function(i,l){var c,u,d,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(((d=i.key)==null?void 0:d[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)},wT=function(e,t){let n=null;return e.columns.forEach(s=>{s.id===t&&(n=s)}),n},xde=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||Zn("ElTable",`No column matching with column-key: ${t}`),n},_T=function(e,t,n){const s=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return s?wT(e,s[0]):null},Gs=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(Ye(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(Ze(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[Gs(r,t)]={row:r,index:i},n){const l=r[s];Ae(l)&&Object.assign(o,Zf(l,t,!0,s))}}),o};function kde(e,t){const n={};let s;for(s in e)n[s]=e[s];for(s in t)if(jt(t,s)){const a=t[s];Dt(a)||(n[s]=a)}return n}function A6(e){return e===""||Dt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function CT(e){return e===""||Dt(e)||(e=A6(e),Number.isNaN(e)&&(e=80)),e}function Ede(e){return nt(e)?e:Ye(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Ade(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function g1(e,t,n,s,a,o,r){let i=o??0,l=!1;const u=(()=>{if(!r)return e.indexOf(t);const m=Gs(t,r);return e.findIndex(g=>Gs(g,r)===m)})(),d=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(_=>{g+=v(_)})),g};return(!a||h)&&(tn(n)?n&&!d?p("add"):!n&&d&&p("remove"):p(d?"remove":"add")),!(s!=null&&s.checkStrictly)&&(s!=null&&s.children)&&Ae(t[s.children])&&t[s.children].forEach(m=>{const g=g1(e,m,n??!d,s,a,i+1,r);i+=v(m)+1,g&&(l=g)}),l}function Tde(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 d=u[n];o(d)||r(u,d,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 Mde=(e,t,n,s)=>{const a={strategy:"fixed",...e.popperOptions},o=Ze(s==null?void 0:s.tooltipFormatter)?s.tooltipFormatter({row:n,column:s,cellValue:Af(n,s.property).value}):void 0;return dn(o)?{slotContent:o,content:null,...e,popperOptions:a}:{slotContent:null,content:o??t,...e,popperOptions:a}};let ha=null;function Pde(e,t,n,s,a,o){var r;const i=Mde(e,t,n,s),l={...i,slotContent:void 0};if((ha==null?void 0:ha.trigger)===a){const v=(r=ha.vm)==null?void 0:r.component;px(v==null?void 0:v.props,l),v&&i.slotContent&&(v.slots.content=()=>[i.slotContent]);return}ha==null||ha();const c=o==null?void 0:o.refs.tableWrapper,u=c==null?void 0:c.dataset.prefix,d=j(As,{virtualTriggering:!0,virtualRef:a,appendTo:c,placement:"top",transition:"none",offset:0,hideAfter:0,...l},i.slotContent?{content:()=>i.slotContent}:void 0);d.appContext={...o.appContext,...o};const h=document.createElement("div");tc(d,h),d.component.exposed.onOpen();const p=c==null?void 0:c.querySelector(`.${u}-scrollbar__wrap`);ha=()=>{var v,m;(m=(v=d.component)==null?void 0:v.exposed)!=null&&m.onClose&&d.component.exposed.onClose(),tc(null,h);const g=ha;p==null||p.removeEventListener("scroll",g),g.trigger=void 0,g.vm=void 0,ha=null},ha.trigger=a??void 0,ha.vm=d,p==null||p.addEventListener("scroll",ha)}function ST(e){return e.children?hx(e.children,ST):[e]}function xT(e,t){return e+t.colSpan}const kT=(e,t,n,s)=>{let a=0,o=e;const r=n.states.columns.value;if(s){const l=ST(s[e]);a=r.slice(0,r.indexOf(l[0])).reduce(xT,0),o=a+l.reduce(xT,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}:{}},T6=(e,t,n,s,a,o=0)=>{const r=[],{direction:i,start:l,after:c}=kT(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 ET(e,t){return e+(pg(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const M6=(e,t,n,s)=>{const{direction:a,start:o=0,after:r=0}=kT(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(ET,0):i.right=c.slice(r+1).reverse().reduce(ET,0),i},Qf=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function AT(e){return e.some(t=>dn(t)?!(t.type===qn||t.type===Ve&&!AT(t.children)):!0)?e:null}function Rde(e){const t=Ct(),n=F(!1),s=F([]),a=(c,u)=>{var d;const h=t.store.states.rowExpandable.value;return(d=h==null?void 0:h(c,u))!=null?d:!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 d=Zf(s.value,u);s.value=c.filter((h,p)=>{const v=Gs(h,u);return!!d[v]&&a(h,p)})}else s.value=[]},toggleRowExpansion:(c,u)=>{const h=(e.data.value||[]).indexOf(c);if(h>-1&&!a(c,h))return;g1(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||[],d=e.rowKey.value,h=Zf(u,d);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)[Gs(c,u)]:s.value.includes(c)},states:{expandRows:s,defaultExpandAll:n}}}function Ide(e){const t=Ct(),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:d,rowKey:h}=e,p=s.value;let v=null;h.value&&(v=(u=(f(d)||[]).find(m=>Gs(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||[],d=s.value;if(d&&!u.includes(d))if(c){const h=Gs(d,c);r(h)}else s.value=null,t.emit("current-change",null,d);else n.value&&(r(n.value),o())},states:{_currentRowKey:n,currentRow:s}}}function Ode(e){const t=F([]),n=F({}),s=F(16),a=F(!1),o=F({}),r=F("hasChildren"),i=F("children"),l=F(!1),c=Ct(),u=E(()=>{if(!e.rowKey.value)return{};const C=e.data.value||[];return h(C)}),d=E(()=>{const C=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 M=Gs(I,C);R.children.push(M),I[r.value]&&!k[M]&&(k[M]={children:[]})}),k[T]=R}}),k}),h=C=>{const x=e.rowKey.value,k={};return Tde(C,(T,R,I)=>{const M=Gs(T,x);Ae(R)?k[M]={children:R.map($=>Gs($,x)),level:I}:a.value&&(k[M]={children:[],lazy:!0,level:I})},i.value,r.value,a.value),k},p=(C=!1,x)=>{var k,T;x||(x=(k=c.store)==null?void 0:k.states.defaultExpandAll.value);const R=u.value,I=d.value,M=Object.keys(R),$={};if(M.length){const O=f(n),B=[],U=(Y,N)=>{if(C)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)}};M.forEach(Y=>{const N=O[Y],L={...R[Y]};if(L.expanded=U(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:U(L,Y),children:V,level:void 0}}})}n.value=$,(T=c.store)==null||T.updateTableScrollY()};ge(()=>t.value,()=>{p(!0)}),ge(()=>u.value,()=>{p()}),ge(()=>d.value,()=>{p()});const v=C=>{t.value=C,p()},m=C=>a.value&&C&&"loaded"in C&&!C.loaded,g=(C,x)=>{c.store.assertRowKey();const k=e.rowKey.value,T=Gs(C,k),R=T&&n.value[T];if(T&&R&&"expanded"in R){const I=R.expanded;x=Dt(x)?!R.expanded:x,n.value[T].expanded=x,I!==x&&c.emit("expand-change",C,x),x&&m(R)&&_(C,T,R),c.store.updateTableScrollY()}},b=C=>{c.store.assertRowKey();const x=e.rowKey.value,k=Gs(C,x),T=n.value[k];m(T)?_(C,k,T):g(C,void 0)},_=(C,x,k)=>{const{load:T}=c.props;T&&!n.value[x].loaded&&(n.value[x].loading=!0,T(C,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",C,!0)}))};return{loadData:_,loadOrToggle:b,toggleTreeExpansion:g,updateTreeExpandKeys:v,updateTreeData:p,updateKeyChildren:(C,x)=>{const{lazy:k,rowKey:T}=c.props;if(k){if(!T)throw new Error("[Table] rowKey is required in updateKeyChild");o.value[C]&&(o.value[C]=x)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:s,lazy:a,lazyTreeNodeMap:o,lazyColumnIdentifier:r,childrenColumnName:i,checkStrictly:l}}}const Lde=(e,t)=>{const n=t.sortingColumn;return!n||Ye(n.sortable)?e:Sde(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},b1=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,b1(n.children)):t.push(n)}),t};function Nde(){var e;const t=Ct(),{size:n}=bs((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([]),d=F([]),h=F([]),p=F([]),v=F([]),m=[],g=F(0),b=F(0),_=F(0),w=F(!1),C=F([]),x=F(!1),k=F(!1),T=F(null),R=F(null),I=F({}),M=F(null),$=F(null),O=F(null),B=F(null),U=F(null),J=E(()=>s.value?Zf(C.value,s.value):void 0);ge(a,()=>{var st;t.state&&(V(!1),t.props.tableLayout==="auto"&&((st=t.refs.tableHeaderRef)==null||st.updateFixedColumnStyle()))},{deep:!0});const Y=()=>{if(!s.value)throw new Error("[ElTable] prop row-key is required")},N=st=>{var vt;(vt=st.children)==null||vt.forEach(kt=>{kt.fixed=st.fixed,N(kt)})},L=()=>{i.value.forEach(Ge=>{N(Ge)}),u.value=i.value.filter(Ge=>[!0,"left"].includes(Ge.fixed));const st=i.value.find(Ge=>Ge.type==="selection");let vt;st&&st.fixed!=="right"&&!u.value.includes(st)&&i.value.indexOf(st)===0&&u.value.length&&(u.value.unshift(st),vt=!0),d.value=i.value.filter(Ge=>Ge.fixed==="right");const kt=i.value.filter(Ge=>(vt?Ge.type!=="selection":!0)&&!Ge.fixed);l.value=Array.from(u.value).concat(kt).concat(d.value);const Se=b1(kt),Ue=b1(u.value),we=b1(d.value);g.value=Se.length,b.value=Ue.length,_.value=we.length,c.value=Array.from(Ue).concat(Se).concat(we),r.value=u.value.length>0||d.value.length>0},V=(st,vt=!1)=>{st&&L(),vt?t.state.doLayout():t.state.debouncedUpdateLayout()},z=st=>J.value?!!J.value[Gs(st,s.value)]:C.value.includes(st),G=()=>{w.value=!1;const st=C.value;C.value=[],st.length&&t.emit("selection-change",[])},Q=()=>{var st,vt;let kt;if(s.value){kt=[];const Se=(vt=(st=t==null?void 0:t.store)==null?void 0:st.states)==null?void 0:vt.childrenColumnName.value,Ue=Zf(a.value,s.value,!0,Se);for(const we in J.value)jt(J.value,we)&&!Ue[we]&&kt.push(J.value[we].row)}else kt=C.value.filter(Se=>!a.value.includes(Se));if(kt.length){const Se=C.value.filter(Ue=>!kt.includes(Ue));C.value=Se,t.emit("selection-change",Se.slice())}},K=()=>(C.value||[]).slice(),ee=(st,vt,kt=!0,Se=!1)=>{var Ue,we,Ge,St;const Zt={children:(we=(Ue=t==null?void 0:t.store)==null?void 0:Ue.states)==null?void 0:we.childrenColumnName.value,checkStrictly:(St=(Ge=t==null?void 0:t.store)==null?void 0:Ge.states)==null?void 0:St.checkStrictly.value};if(g1(C.value,st,vt,Zt,Se?void 0:T.value,a.value.indexOf(st),s.value)){const kn=(C.value||[]).slice();kt&&t.emit("select",kn,st),t.emit("selection-change",kn)}},ae=()=>{var st,vt;const kt=k.value?!w.value:!(w.value||C.value.length);w.value=kt;let Se=!1,Ue=0;const we=(vt=(st=t==null?void 0:t.store)==null?void 0:st.states)==null?void 0:vt.rowKey.value,{childrenColumnName:Ge}=t.store.states,St={children:Ge.value,checkStrictly:!1};a.value.forEach((Zt,Sn)=>{const kn=Sn+Ue;g1(C.value,Zt,kt,St,T.value,kn,we)&&(Se=!0),Ue+=ne(Gs(Zt,we))}),Se&&t.emit("selection-change",C.value?C.value.slice():[]),t.emit("select-all",(C.value||[]).slice())},fe=()=>{var st;if(((st=a.value)==null?void 0:st.length)===0){w.value=!1;return}const{childrenColumnName:vt}=t.store.states;let kt=0,Se=0;const Ue=Ge=>{var St;for(const Zt of Ge){const Sn=T.value&&T.value.call(null,Zt,kt);if(z(Zt))Se++;else if(!T.value||Sn)return!1;if(kt++,(St=Zt[vt.value])!=null&&St.length&&!Ue(Zt[vt.value]))return!1}return!0},we=Ue(a.value||[]);w.value=Se===0?!1:we},ne=st=>{var vt;if(!t||!t.store)return 0;const{treeData:kt}=t.store.states;let Se=0;const Ue=(vt=kt.value[st])==null?void 0:vt.children;return Ue&&(Se+=Ue.length,Ue.forEach(we=>{Se+=ne(we)})),Se},ve=(st,vt)=>{const kt={};return ks(st).forEach(Se=>{I.value[Se.id]=vt,kt[Se.columnKey||Se.id]=vt}),kt},he=(st,vt,kt)=>{$.value&&$.value!==st&&($.value.order=null),$.value=st,O.value=vt,B.value=kt},ce=()=>{let st=f(o);Object.keys(I.value).forEach(vt=>{const kt=I.value[vt];if(!kt||kt.length===0)return;const Se=wT({columns:c.value},vt);Se&&Se.filterMethod&&(st=st.filter(Ue=>kt.some(we=>Se.filterMethod.call(null,we,Ue,Se))))}),M.value=st},Z=()=>{var st;a.value=Lde((st=M.value)!=null?st:[],{sortingColumn:$.value,sortProp:O.value,sortOrder:B.value})},H=(st=void 0)=>{st!=null&&st.filter||ce(),Z()},te=st=>{const{tableHeaderRef:vt}=t.refs;if(!vt)return;const kt=Object.assign({},vt.filterPanels),Se=Object.keys(kt);if(Se.length)if(Ye(st)&&(st=[st]),Ae(st)){const Ue=st.map(we=>xde({columns:c.value},we));Se.forEach(we=>{const Ge=Ue.find(St=>St.id===we);Ge&&(Ge.filteredValue=[])}),t.store.commit("filterChange",{column:Ue,values:[],silent:!0,multi:!0})}else Se.forEach(Ue=>{const we=c.value.find(Ge=>Ge.id===Ue);we&&(we.filteredValue=[])}),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},de=()=>{$.value&&(he(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:be,toggleRowExpansion:_e,updateExpandRows:xe,states:Oe,isRowExpanded:De}=Rde({data:a,rowKey:s}),{updateTreeExpandKeys:Ne,toggleTreeExpansion:Ce,updateTreeData:Ie,updateKeyChildren:Pe,loadOrToggle:ze,states:Je}=Ode({data:a,rowKey:s}),{updateCurrentRowData:ot,updateCurrentRow:$e,setCurrentRowKey:He,states:et}=Ide({data:a,rowKey:s});return{assertRowKey:Y,updateColumns:L,scheduleLayout:V,isSelected:z,clearSelection:G,cleanSelection:Q,getSelectionRows:K,toggleRowSelection:ee,_toggleAllSelection:ae,toggleAllSelection:null,updateAllSelected:fe,updateFilters:ve,updateCurrentRow:$e,updateSort:he,execFilter:ce,execSort:Z,execQuery:H,clearFilter:te,clearSort:de,toggleRowExpansion:_e,setExpandRowKeysAdapter:st=>{be(st),Ne(st)},setCurrentRowKey:He,toggleRowExpansionAdapter:(st,vt)=>{c.value.some(({type:Se})=>Se==="expand")?_e(st,vt):Ce(st,vt)},isRowExpanded:De,updateExpandRows:xe,updateCurrentRowData:ot,loadOrToggle:ze,updateTreeData:Ie,updateKeyChildren:Pe,states:{tableSize:n,rowKey:s,data:a,_data:o,isComplex:r,_columns:i,originColumns:l,columns:c,fixedColumns:u,rightFixedColumns:d,leafColumns:h,fixedLeafColumns:p,rightFixedLeafColumns:v,updateOrderFns:m,leafColumnsLength:g,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:_,isAllSelected:w,selection:C,reserveSelection:x,selectOnIndeterminate:k,selectable:T,rowExpandable:R,filters:I,filteredData:M,sortingColumn:$,sortProp:O,sortOrder:B,hoverRow:U,...Oe,...Je,...et}}}function P6(e,t){return e.map(n=>{var s;return n.id===t.id?t:((s=n.children)!=null&&s.length&&(n.children=P6(n.children,t)),n)})}function R6(e){e.forEach(t=>{var n,s;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(s=t.children)!=null&&s.length&&R6(t.children)}),e.sort((t,n)=>t.no-n.no)}function $de(){const e=Ct(),t=Nde(),n=ke("table"),{t:s}=Ot();return{ns:n,t:s,...t,mutations:{setData(i,l){const c=f(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),f(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 d;const h=f(i._columns);let p=[];c?(c&&!c.children&&(c.children=[]),(d=c.children)==null||d.push(l),p=P6(h,c)):(h.push(l),p=h),R6(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&&(R6(i._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(i,l,c,u){var d;const h=f(i._columns)||[];if(c)(d=c.children)==null||d.splice(c.children.findIndex(v=>v.id===l.id),1),Be(()=>{var v;((v=c.children)==null?void 0:v.length)===0&&delete c.children}),i._columns.value=P6(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:d}=l;if(c){const h=f(i.columns).find(p=>p.property===c);h&&(h.order=u,e.store.updateSort(h,c,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(i,l){const{sortingColumn:c,sortProp:u,sortOrder:d}=i,h=f(c),p=f(u),v=f(d);pg(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:d}=l,h=e.store.updateFilters(c,u);e.store.execQuery(),d||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(){Be(()=>e.layout.updateScrollY.apply(e.layout))}}}const I6={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 Dde(e,t){if(!e)throw new Error("Table is required.");const n=$de();return n.toggleAllSelection=Zr(n._toggleAllSelection,10),Object.keys(I6).forEach(s=>{TT(MT(t,s),s,n)}),Fde(n,t),n}function Fde(e,t){Object.keys(I6).forEach(n=>{ge(()=>MT(t,n),s=>{TT(s,n,e)})})}function TT(e,t,n){let s=e,a=I6[t];dt(a)&&(s=s||a.default,a=a.key),n.states[a].value=s}function MT(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 Bde=Object.defineProperty,Vde=(e,t,n)=>t in e?Bde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ys=(e,t,n)=>Vde(e,typeof t!="symbol"?t+"":t,n);class zde{constructor(t){Ys(this,"observers"),Ys(this,"table"),Ys(this,"store"),Ys(this,"columns"),Ys(this,"fit"),Ys(this,"showHeader"),Ys(this,"height"),Ys(this,"scrollX"),Ys(this,"scrollY"),Ys(this,"bodyWidth"),Ys(this,"fixedWidth"),Ys(this,"rightFixedWidth"),Ys(this,"tableHeight"),Ys(this,"headerHeight"),Ys(this,"appendHeight"),Ys(this,"footerHeight"),Ys(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)jt(t,n)&&(vn(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(pg(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(!Ut)return;const s=this.table.vnode.el;if(t=Ede(t),this.height.value=Number(t),!s&&(t||t===0)){Be(()=>this.setHeight(t,n));return}s&&nt(t)?(s.style[n]=`${t}px`,this.updateElsHeight()):s&&Ye(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(!Ut)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=>!nt(c.width));if(o.forEach(c=>{nt(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),d=c/u;let h=0;r.forEach((p,v)=>{if(v===0)return;const m=Math.floor(Number(p.minWidth||80)*d);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 Hde=W({name:"ElTableFilterPanel",components:{ElCheckbox:gr,ElCheckboxGroup:M3,ElScrollbar:vr,ElTooltip:As,ElIcon:Xe,ArrowDown:pr,ArrowUp:xp},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:sn.appendTo},setup(e){const t=Ct(),{t:n}=Ot(),s=ke("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=>{d.value&&(Ua(T)?d.value.splice(0,1):d.value.splice(0,1,T))}}),d=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=()=>{_(d.value),v()},g=()=>{d.value=[],_(d.value),v()},b=(T,R)=>{u.value=T,i.value=R,Ua(T)?_([]):_(d.value),v()},_=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))},C=()=>{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:d,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:C,handleKeydown:T=>{var R,I;const M=on(T),$=(l.value?l.value.length:0)+1;let O=i.value,B=!0;switch(M){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 U=(l.value||[])[O-1];U.value&&b(U.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 Wde=["disabled"],jde=["tabindex","aria-checked"],Kde=["tabindex","aria-checked","onClick"],Ude=["aria-label"];function qde(e,t,n,s,a,o){const r=qe("el-checkbox"),i=qe("el-checkbox-group"),l=qe("el-scrollbar"),c=qe("arrow-up"),u=qe("arrow-down"),d=qe("el-icon"),h=qe("el-tooltip");return S(),le(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(),P("div",{key:0,ref:"rootRef",tabindex:"-1",class:D(e.ns.e("multiple"))},[A("div",{class:D(e.ns.e("content"))},[j(l,{"wrap-class":e.ns.e("wrap")},{default:X(()=>[j(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),P(Ve,null,wt(e.filters,p=>(S(),le(r,{key:p.value,value:p.value},{default:X(()=>[Ke(me(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))},me(e.t("el.table.confirmFilter")),11,Wde),A("button",{type:"button",onClick:t[2]||(t[2]=(...p)=>e.handleReset&&e.handleReset(...p))},me(e.t("el.table.resetFilter")),1)],2)],2)):(S(),P("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))},me(e.t("el.table.clearFilter")),11,jde),(S(!0),P(Ve,null,wt(e.filters,(p,v)=>(S(),P("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)},me(p.text),11,Kde))),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)||""})},[j(d,null,{default:X(()=>[ue(e.$slots,"filter-icon",{},()=>{var v;return[(v=e.column)!=null&&v.filterOpened?(S(),le(c,{key:0})):(S(),le(u,{key:1}))]})]),_:3})],10,Ude)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var Gde=us(Hde,[["render",qde]]);function O6(e){const t=Ct();U2(()=>{n.value.addObserver(t)}),xt(()=>{s(n.value),a(n.value)}),rr(()=>{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,d=i.length;u<d;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,d=l.length;u<d;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,d=c.length;u<d;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 yr=Symbol("ElTable");function Yde(e,t){const n=Ct(),s=We(yr),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,_;if(Ut&&!(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 C=w==null?void 0:w.vnode.el,x=C==null?void 0:C.getBoundingClientRect().left,k=(_=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:_.querySelector(`th.${g.id}`),T=k.getBoundingClientRect(),R=T.left-x+30;No(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 M=O=>{const B=O.clientX-c.value.startMouseLeft,U=c.value.startLeft+B;I.style.left=`${Math.max(R,U)}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",M),document.removeEventListener("mouseup",$),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{la(k,"noclick")},0)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",$)}},d=(m,g)=>{var b;if(!e.border||g.children&&g.children.length>0)return;const _=m.target,w=Ka(_)?_.closest("th"):null;if(!w)return;const C=ei(w,"is-sortable");if(C){const M=l.value?"col-resize":"";w.style.cursor=M;const $=w.querySelector(".caret-wrapper");$&&($.style.cursor=M)}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,C&&(w.style.cursor=I)},h=()=>{!Ut||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 _;m.stopPropagation();const w=g.order===b?null:b||p(g),C=(_=m.target)==null?void 0:_.closest("th");if(C&&ei(C,"noclick")){la(C,"noclick");return}if(!g.sortable)return;const x=m.currentTarget;if(["ascending","descending"].some(M=>ei(x,M)&&!g.sortOrders.includes(M)))return;const k=e.store.states;let T=k.sortProp.value,R;const I=k.sortingColumn.value;(I!==g||I===g&&pg(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:d,handleMouseOut:h,handleSortClick:v,handleFilterClick:a}}function Xde(e){const t=We(yr),n=ke("table");return{getHeaderRowStyle:i=>{const l=t==null?void 0:t.props.headerRowStyle;return Ze(l)?l.call(null,{rowIndex:i}):l},getHeaderRowClass:i=>{const l=[],c=t==null?void 0:t.props.headerRowClassName;return Ye(c)?l.push(c):Ze(c)&&l.push(c.call(null,{rowIndex:i})),l.join(" ")},getHeaderCellStyle:(i,l,c,u)=>{var d;let h=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};Ze(h)&&(h=h.call(null,{rowIndex:i,columnIndex:l,row:c,column:u}));const p=M6(l,u.fixed,e.store,c);return Qf(p,"left"),Qf(p,"right"),Object.assign({},h,p)},getHeaderCellClass:(i,l,c,u)=>{const d=T6(n.b(),l,u.fixed,e.store,c),h=[u.id,u.order,u.headerAlign,u.className,u.labelClassName,...d];u.children||h.push("is-leaf"),u.sortable&&h.push("is-sortable");const p=t==null?void 0:t.props.headerCellClassName;return Ye(p)?h.push(p):Ze(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 PT=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,PT(n.children))):t.push(n)}),t},RT=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 PT(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 Jde(e){const t=We(yr),n=E(()=>RT(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 Zde=W({name:"ElTableHeader",components:{ElCheckbox:gr},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=Ct(),s=We(yr),a=ke("table"),o=F({}),{onColumnsChange:r,onScrollableChange:i}=O6(s),l=(s==null?void 0:s.props.tableLayout)==="auto",c=Kt(new Map),u=F();let d;const h=()=>{d=setTimeout(()=>{c.size>0&&(c.forEach((O,B)=>{const U=u.value.querySelector(`.${B.replace(/\s/g,".")}`);if(U){const J=U.getBoundingClientRect().width;O.width=J||O.width}}),c.clear())})};ge(c,h),Xt(()=>{d&&(clearTimeout(d),d=void 0)}),xt(async()=>{await Be(),await Be();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:_,handleFilterClick:w}=Yde(e,t),{getHeaderRowStyle:C,getHeaderRowClass:x,getHeaderCellStyle:k,getHeaderCellClass:T}=Xde(e),{isGroup:R,toggleAllSelection:I,columnRows:M}=Jde(e),{t:$}=Ot();return n.state={onColumnsChange:r,onScrollableChange:i},n.filterPanels=o,{ns:a,t:$,filterPanels:o,onColumnsChange:r,onScrollableChange:i,columnRows:M,getHeaderRowClass:x,getHeaderRowStyle:C,getHeaderCellClass:T,getHeaderCellStyle:k,handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:m,handleMouseMove:g,handleMouseOut:b,handleSortClick:_,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:d,handleSortClick:h,handleMouseOut:p,store:v,$parent:m,saveIndexSelection:g,isTableLayoutAuto:b}=this;let _=1;return at("thead",{ref:"theadRef",class:e.is("group",n)},s.map((w,C)=>at("tr",{class:r(C),key:C,style:i(C)},w.map((x,k)=>{x.rowSpan>_&&(_=x.rowSpan);const T=o(C,k,w,x);return b&&x.fixed&&g.set(T,x),at("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(C,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=>d(R,x),onMouseout:p},[at("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&&at("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:x.label||""}),onClick:R=>h(R,x)},[at("i",{onClick:R=>h(R,x,"ascending"),class:"sort-caret ascending"}),at("i",{onClick:R=>h(R,x,"descending"),class:"sort-caret descending"})]),x.filterable&&at(Gde,{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 L6(e,t,n=.03){return e-t>n}function Qde(e){const t=We(yr),n=F(""),s=F(at("div")),a=(v,m,g)=>{var b,_,w;const C=t,x=E6(v);let k=null;const T=(b=C==null?void 0:C.vnode.el)==null?void 0:b.dataset.prefix;x&&(k=_T({columns:(w=(_=e.store)==null?void 0:_.states.columns.value)!=null?w:[]},x,T),k&&(C==null||C.emit(`cell-${g}`,m,k,x,v))),C==null||C.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=Zr(v=>{var m;(m=e.store)==null||m.commit("setHoverRow",v)},30),c=Zr(()=>{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,_=Number.parseInt(m.paddingTop,10)||0,w=Number.parseInt(m.paddingBottom,10)||0;return{left:g,right:b,top:_,bottom:w}},d=(v,m,g)=>{var b;let _=(b=m==null?void 0:m.target)==null?void 0:b.parentNode;for(;v>1&&(_=_==null?void 0:_.nextSibling,!(!_||_.nodeName!=="TR"));)g(_,"hover-row hover-fixed-row"),v--};return{handleDoubleClick:o,handleClick:r,handleContextMenu:i,handleMouseEnter:l,handleMouseLeave:c,handleCellMouseEnter:(v,m,g)=>{var b,_,w,C,x,k,T,R,I;if(!t)return;const M=t,$=E6(v),O=(b=M==null?void 0:M.vnode.el)==null?void 0:b.dataset.prefix;let B=null;if($){if(B=_T({columns:(w=(_=e.store)==null?void 0:_.states.columns.value)!=null?w:[]},$,O),!B)return;$.rowSpan>1&&d($.rowSpan,v,No);const fe=M.hoverState={cell:$,column:B,row:m};M==null||M.emit("cell-mouse-enter",fe.row,fe.column,fe.cell,v)}if(!g){((C=ha)==null?void 0:C.trigger)===$&&((x=ha)==null||x());return}const U=v.target.querySelector(".cell");if(!(ei(U,`${O}-tooltip`)&&U.childNodes.length&&((k=U.textContent)!=null&&k.trim())))return;const J=document.createRange();J.setStart(U,0),J.setEnd(U,U.childNodes.length);const{width:Y,height:N}=J.getBoundingClientRect(),{width:L,height:V}=U.getBoundingClientRect(),{top:z,left:G,right:Q,bottom:K}=u(U),ee=G+Q,ae=z+K;L6(Y+ee,L)||L6(N+ae,V)||L6(U.scrollWidth,L)?Pde(g,(T=($==null?void 0:$.innerText)||($==null?void 0:$.textContent))!=null?T:"",m,B,$,M):((R=ha)==null?void 0:R.trigger)===$&&((I=ha)==null||I())},handleCellMouseLeave:v=>{const m=E6(v);if(!m)return;m.rowSpan>1&&d(m.rowSpan,v,la);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 efe(e){const t=We(yr),n=ke("table");return{getRowStyle:(c,u)=>{const d=t==null?void 0:t.props.rowStyle;return Ze(d)?d.call(null,{row:c,rowIndex:u}):d||null},getRowClass:(c,u,d)=>{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&&d%2===1&&p.push(n.em("row","striped"));const v=t==null?void 0:t.props.rowClassName;return Ye(v)?p.push(v):Ze(v)&&p.push(v.call(null,{row:c,rowIndex:u})),p},getCellStyle:(c,u,d,h)=>{const p=t==null?void 0:t.props.cellStyle;let v=p??{};Ze(p)&&(v=p.call(null,{rowIndex:c,columnIndex:u,row:d,column:h}));const m=M6(u,e==null?void 0:e.fixed,e.store);return Qf(m,"left"),Qf(m,"right"),Object.assign({},v,m)},getCellClass:(c,u,d,h,p)=>{const v=T6(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 Ye(g)?m.push(g):Ze(g)&&m.push(g.call(null,{rowIndex:c,columnIndex:u,row:d,column:h})),m.push(n.e("cell")),m.filter(b=>!!b).join(" ")},getSpan:(c,u,d,h)=>{let p=1,v=1;const m=t==null?void 0:t.props.spanMethod;if(Ze(m)){const g=m({row:c,column:u,rowIndex:d,columnIndex:h});Ae(g)?(p=g[0],v=g[1]):dt(g)&&(p=g.rowspan,v=g.colspan)}return{rowspan:p,colspan:v}},getColspanRealWidth:(c,u,d)=>{if(u<1)return c[d].realWidth;const h=c.map(({realWidth:p,width:v})=>p||v).slice(d,d+u);return Number(h.reduce((p,v)=>Number(p)+Number(v),-1))}}}const tfe=["colspan","rowspan"];var nfe=W({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(S(),P("td",{colspan:e.colspan,rowspan:e.rowspan},[ue(t.$slots,"default")],8,tfe))}});function sfe(e){const t=We(yr),n=ke("table"),{handleDoubleClick:s,handleClick:a,handleContextMenu:o,handleMouseEnter:r,handleMouseLeave:i,handleCellMouseEnter:l,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:d}=Qde(e),{getRowStyle:h,getRowClass:p,getCellStyle:v,getCellClass:m,getSpan:g,getColspanRealWidth:b}=efe(e);let _=-1;const w=E(()=>{var R;return(R=e.store)==null?void 0:R.states.columns.value.findIndex(({type:I})=>I==="default")}),C=(R,I)=>{var M;const $=(M=t==null?void 0:t.props)==null?void 0:M.rowKey;return $?Gs(R,$):I},x=(R,I,M,$=!1)=>{const{tooltipEffect:O,tooltipOptions:B,store:U}=e,{indent:J,columns:Y}=U.states,N=[];let L=!0;return M&&(N.push(n.em("row",`level-${M.level}`)),L=!!M.display),I===0&&(_=-1),e.stripe&&L&&_++,N.push(...p(R,I,_)),at("tr",{style:[L?null:{display:"none"},h(R,I)],class:N,key:C(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:K}=g(R,z,I,G);if(!Q||!K)return null;const ee=Object.assign({},z);ee.realWidth=b(Y.value,K,G);const ae={store:U,_self:e.context||t,column:ee,row:R,$index:I,cellIndex:G,expanded:$};G===w.value&&M&&(ae.treeNode={indent:M.level&&M.level*J.value,level:M.level},tn(M.expanded)&&(ae.treeNode.expanded=M.expanded,"loading"in M&&(ae.treeNode.loading=M.loading),"noLazyChildren"in M&&(ae.treeNode.noLazyChildren=M.noLazyChildren)));const fe=`${C(R,I)},${G}`,ne=ee.columnKey||ee.rawColumnKey||"",ve=z.showOverflowTooltip&&px({effect:O},B,z.showOverflowTooltip);return at(nfe,{style:v(I,G,R,z),class:m(I,G,R,z,K-1),key:`${ne}${fe}`,rowspan:Q,colspan:K,onMouseenter:he=>l(he,R,ve),onMouseleave:c},{default:()=>k(G,z,ae)})}))},k=(R,I,M)=>I.renderCell(M);return{wrappedRowRender:(R,I)=>{const M=e.store,{isRowExpanded:$,assertRowKey:O}=M,{treeData:B,lazyTreeNodeMap:U,childrenColumnName:J,rowKey:Y}=M.states,N=M.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(at("tr",{key:`expanded-row__${z.key}`,style:{display:V?"":"none"}},[at("td",{colspan:N.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[G({row:R,$index:I,store:M,expanded:V})])])),Q}else if(Object.keys(B.value).length){O();const V=Gs(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},tn(z.lazy)&&(G&&tn(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 K=0;const ee=(fe,ne)=>{fe&&fe.length&&ne&&fe.forEach(ve=>{const he={display:ne.display&&ne.expanded,level:ne.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ce=Gs(ve,Y.value);if(Ua(ce))throw new Error("For nested data item, row-key is required.");if(z={...B.value[ce]},z&&(he.expanded=z.expanded,z.level=z.level||he.level,z.display=!!(z.expanded&&he.display),tn(z.lazy)&&(tn(z.loaded)&&z.loaded&&(he.noLazyChildren=!(z.children&&z.children.length)),he.loading=z.loading)),K++,Q.push(x(ve,I+K,he)),z){const Z=U.value[ce]||ve[J.value];ee(Z,z)}})};z.display=!0;const ae=U.value[V]||R[J.value];ee(ae,z)}return Q}else return x(R,I,void 0)},tooltipContent:u,tooltipTrigger:d}}var afe=W({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=Ct(),s=We(yr),a=ke("table"),{wrappedRowRender:o,tooltipContent:r,tooltipTrigger:i}=sfe(e),{onColumnsChange:l,onScrollableChange:c}=O6(s),u=[];return ge((t=e.store)==null?void 0:t.states.hoverRow,(d,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=d;const _=(p=g[b])==null?void 0:p.childNodes;if(_!=null&&_.length){let w=0;Array.from(_).reduce((x,k,T)=>{var R,I;return((R=_[T])==null?void 0:R.colSpan)>1&&(w=(I=_[T])==null?void 0:I.colSpan),k.nodeName!=="TD"&&w===0&&x.push(T),w>0&&w--,x},[]).forEach(x=>{var k;for(b=d;b>0;){const T=(k=g[b-1])==null?void 0:k.childNodes;if(T[x]&&T[x].nodeName==="TD"&&T[x].rowSpan>1){No(T[x],"hover-cell"),u.push(T[x]);break}b--}})}else u.forEach(w=>la(w,"hover-cell")),u.length=0;!((v=e.store)!=null&&v.states.isComplex.value)||!Ut||Qr(()=>{const w=g[h],C=g[d];w&&!w.classList.contains("hover-fixed-row")&&la(w,"hover-row"),C&&No(C,"hover-row")})}),fu(()=>{var d;(d=ha)==null||d()}),{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 at("tbody",{tabIndex:-1},[n.reduce((s,a)=>s.concat(e(a,s.length)),[])])}});function ofe(){const e=We(yr),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 rfe(e){const{columns:t}=ofe(),n=ke("table");return{getCellClasses:(o,r)=>{const i=o[r],l=[n.e("cell"),i.id,i.align,i.labelClassName,...T6(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=M6(r,o.fixed,e.store);return Qf(i,"left"),Qf(i,"right"),i},columns:t}}var ife=W({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=We(yr),n=ke("table"),{getCellClasses:s,getCellStyles:a,columns:o}=rfe(e),{onScrollableChange:r,onColumnsChange:i}=O6(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 d=!0;c.forEach(p=>{if(!Number.isNaN(+p)){d=!1;const v=`${p}`.split(".")[1];u.push(v?v.length:0)}});const h=Math.max.apply(null,u);d?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)}),at(at("tfoot",[at("tr",{},[...e.map((i,l)=>at("td",{key:l,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,l),style:t(i,l)},[at("div",{class:["cell",i.labelClassName]},[r[l]])]))])]))}});function lfe(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,h,p=!0)=>{e.toggleRowSelection(d,h,!1,p),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,h)=>{e.toggleRowExpansionAdapter(d,h)},clearSort:()=>{e.clearSort()},sort:(d,h)=>{e.commit("sort",{prop:d,order:h})},updateKeyChildren:(d,h)=>{e.updateKeyChildren(d,h)}}}function cfe(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"},d=F(),h=F(0),p=F(0),v=F(0),m=F(0),g=F(0);ge(()=>e.height,N=>{t.setHeight(N??null)},{immediate:!0}),ge(()=>e.maxHeight,N=>{t.setMaxHeight(N??null)},{immediate:!0}),ge(()=>[e.currentRowKey,n.states.rowKey],([N,L])=>{!f(L)||!f(N)||n.setCurrentRowKey(`${N}`)},{immediate:!0}),ge(()=>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)},_=(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),C=E(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(I)};xt(async()=>{await Be(),n.updateColumns(),M(),requestAnimationFrame(x);const N=s.vnode.el,L=s.refs.headerWrapper;e.flexible&&N&&N.parentElement&&(N.parentElement.style.minWidth="0"),l.value={width:d.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 K=z-V-1;L>=K?T("is-scrolling-right"):T(L===0?"is-scrolling-left":"is-scrolling-middle")},M=()=>{s.refs.scrollBarRef&&(s.refs.scrollBarRef.wrapRef&&en(s.refs.scrollBarRef.wrapRef,"scroll",I,{passive:!0}),e.fit?_n(s.vnode.el,$):en(window,"resize",$),_n(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:K,height:ee,headerHeight:ae}=l.value,fe=d.value=G.offsetWidth;K!==fe&&(Q=!0);const ne=G.offsetHeight;(e.height||w.value)&&ee!==ne&&(Q=!0);const ve=e.tableLayout==="fixed"?s.refs.headerWrapper:(N=s.refs.tableHeaderRef)==null?void 0:N.$el;e.showHeader&&(ve==null?void 0:ve.offsetHeight)!==ae&&(Q=!0),h.value=((L=s.refs.tableWrapper)==null?void 0:L.scrollHeight)||0,v.value=(ve==null?void 0:ve.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:fe,height:ne,headerHeight:e.showHeader&&(ve==null?void 0:ve.offsetHeight)||0},x())},O=ss(),B=E(()=>{const{bodyWidth:N,scrollY:L,gutterWidth:V}=t;return N.value?`${N.value-(L.value?V:0)}px`:""}),U=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=d.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:_,tableSize:O,emptyBlockStyle:J,resizeProxyVisible:r,bodyWidth:B,resizeState:l,doLayout:x,tableBodyStyles:C,tableLayout:U,scrollbarViewStyle:u,scrollbarStyle:Y}}function ufe(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)};xt(()=>{n()}),fu(()=>{t==null||t.disconnect()})}var dfe={data:{type:Array,default:()=>[]},size:cs,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 IT(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>Dt(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 at("colgroup",{},n.map(a=>at("col",s(a))))}IT.props=["columns","tableLayout"];const ffe=()=>{const e=F(),t=(o,r)=>{const i=e.value;i&&i.scrollTo(o,r)},n=(o,r)=>{const i=e.value;i&&nt(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 OT=!1,Iu,N6,$6,y1,w1,LT,_1,D6,F6,B6,NT,V6,z6,$T,DT;function Za(){if(!OT){OT=!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(V6=/\b(iPhone|iP[ao]d)/.exec(e),z6=/\b(iP[ao]d)/.exec(e),B6=/Android/i.exec(e),$T=/FBAN\/\w+;/i.exec(e),DT=/Mobile/i.exec(e),NT=!!/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);LT=s?parseFloat(s[1])+4:Iu,N6=t[2]?parseFloat(t[2]):NaN,$6=t[3]?parseFloat(t[3]):NaN,y1=t[4]?parseFloat(t[4]):NaN,y1?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),w1=t&&t[1]?parseFloat(t[1]):NaN):w1=NaN}else Iu=N6=$6=w1=y1=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);_1=a?parseFloat(a[1].replace("_",".")):!0}else _1=!1;D6=!!n[2],F6=!!n[3]}else _1=D6=F6=!1}}var H6={ie:function(){return Za()||Iu},ieCompatibilityMode:function(){return Za()||LT>Iu},ie64:function(){return H6.ie()&&NT},firefox:function(){return Za()||N6},opera:function(){return Za()||$6},webkit:function(){return Za()||y1},safari:function(){return H6.webkit()},chrome:function(){return Za()||w1},windows:function(){return Za()||D6},osx:function(){return Za()||_1},linux:function(){return Za()||F6},iphone:function(){return Za()||V6},mobile:function(){return Za()||V6||z6||B6||DT},nativeApp:function(){return Za()||$T},android:function(){return Za()||B6},ipad:function(){return Za()||z6}},hfe=H6,pfe=!!(typeof window<"u"&&window.document&&window.document.createElement),vfe={canUseDOM:pfe},FT=vfe,BT;FT.canUseDOM&&(BT=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function mfe(e,t){if(!FT.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&&BT&&e==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}var gfe=mfe,VT=10,zT=40,HT=800;function WT(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*VT,a=n*VT,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||a)&&e.deltaMode&&(e.deltaMode==1?(s*=zT,a*=zT):(s*=HT,a*=HT)),s&&!t&&(t=s<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:s,pixelY:a}}WT.getEventType=function(){return hfe.firefox()?"DOMMouseScroll":gfe("wheel")?"wheel":"mousewheel"};var bfe=WT;/**
* 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 C1="_Mousewheel",jT=function(e,t){if(e&&e.addEventListener){KT(e);const n=function(s){const a=bfe(s);t&&Reflect.apply(t,this,[s,a])};e[C1]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},KT=e=>{var t;(t=e[C1])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[C1].wheelHandler),e[C1]=null)},yfe={beforeMount(e,t){jT(e,t.value)},unmounted(e){KT(e)},updated(e,t){t.value!==t.oldValue&&jT(e,t.value)}};let wfe=1;var _fe=W({name:"ElTable",directives:{Mousewheel:yfe},components:{TableHeader:Zde,TableBody:afe,TableFooter:ife,ElScrollbar:vr,hColgroup:IT},props:dfe,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}=Ot(),n=ke("table"),s=Ct();Mt(yr,s);const a=Dde(s,e);s.store=a;const o=new zde({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:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,sort:m,updateKeyChildren:g}=lfe(a),{isHidden:b,renderExpanded:_,setDragVisible:w,isGroup:C,handleMouseLeave:x,handleHeaderFooterMousewheel:k,tableSize:T,emptyBlockStyle:R,resizeProxyVisible:I,bodyWidth:M,resizeState:$,doLayout:O,tableBodyStyles:B,tableLayout:U,scrollbarViewStyle:J,scrollbarStyle:Y}=cfe(e,o,a,s),{scrollBarRef:N,scrollTo:L,setScrollLeft:V,setScrollTop:z}=ffe(),G=Zr(O,50),Q=`${n.namespace.value}-table_${wfe++}`;s.tableId=Q,s.state={isGroup:C,resizeState:$,doLayout:O,debouncedUpdateLayout:G};const K=E(()=>{var fe;return(fe=e.sumText)!=null?fe:t("el.table.sumText")}),ee=E(()=>{var fe;return(fe=e.emptyText)!=null?fe:t("el.table.emptyText")}),ae=E(()=>RT(a.states.originColumns.value)[0]);return ufe(s),Xt(()=>{G.cancel()}),{ns:n,layout:o,store:a,columns:ae,handleHeaderFooterMousewheel:k,handleMouseLeave:x,tableId:Q,tableSize:T,isHidden:b,isEmpty:r,renderExpanded:_,resizeProxyVisible:I,resizeState:$,isGroup:C,bodyWidth:M,tableBodyStyles:B,emptyBlockStyle:R,debouncedUpdateLayout:G,setCurrentRow:i,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,doLayout:O,sort:m,updateKeyChildren:g,t,setDragVisible:w,context:s,computedSumText:K,computedEmptyText:ee,tableLayout:U,scrollbarViewStyle:J,scrollbarStyle:Y,scrollBarRef:N,scrollTo:L,setScrollLeft:V,setScrollTop:z,allowDragLastColumn:e.allowDragLastColumn}}});const Cfe=["data-prefix"],Sfe={ref:"hiddenColumns",class:"hidden-columns"};function xfe(e,t,n,s,a,o){const r=qe("hColgroup"),i=qe("table-header"),l=qe("table-body"),c=qe("table-footer"),u=qe("el-scrollbar"),d=$4("mousewheel");return S(),P("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:Qe(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",Sfe,[ue(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?bt((S(),P("div",{key:0,ref:"headerWrapper",class:D(e.ns.e("header-wrapper"))},[A("table",{ref:"tableHeader",class:D(e.ns.e("header")),style:Qe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[j(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),j(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)),[[d,e.handleHeaderFooterMousewheel]]):ie("v-if",!0),A("div",{ref:"bodyWrapper",class:D(e.ns.e("body-wrapper"))},[j(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:Qe({width:e.bodyWidth,tableLayout:e.tableLayout})},[j(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(S(),le(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),j(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(),le(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(),P("div",{key:0,ref:"emptyBlock",style:Qe(e.emptyBlockStyle),class:D(e.ns.e("empty-block"))},[A("span",{class:D(e.ns.e("empty-text"))},[ue(e.$slots,"empty",{},()=>[Ke(me(e.computedEmptyText),1)])],2)],6)):ie("v-if",!0),e.$slots.append?(S(),P("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"?bt((S(),P("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:Qe(e.tableBodyStyles)},[j(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),j(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)),[[Vt,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):ie("v-if",!0),e.border||e.isGroup?(S(),P("div",{key:2,class:D(e.ns.e("border-left-patch"))},null,2)):ie("v-if",!0)],2),bt(A("div",{ref:"resizeProxy",class:D(e.ns.e("column-resize-proxy"))},null,2),[[Vt,e.resizeProxyVisible]])],46,Cfe)}var kfe=us(_fe,[["render",xfe]]);const Efe={selection:"table-column--selection",expand:"table__expand-column"},Afe={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:""}},Tfe=e=>Efe[e]||"",Mfe={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&e.states.data.value.length===0}return at(gr,{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 at(gr,{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 nt(s)?n=t+s:Ze(s)&&(n=s(t)),at("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)},d=(i=(r=(o=n.states.rowExpandable).value)==null?void 0:r.call(o,t,a))!=null?i:!0;return d||c.push(l.is("disabled")),at("button",{type:"button",disabled:!d,"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:d})]:[at(Xe,null,{default:()=>[at($s)]})]})},sortable:!1,resizable:!1}};function Pfe({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 Rfe({row:e,treeNode:t,store:n},s=!1){const{ns:a}=n;if(!t)return s?[at("span",{class:a.e("placeholder")})]:null;const o=[],r=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(at("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),tn(t.expanded)&&!t.noLazyChildren){const i=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let l=$s;t.loading&&(l=Ds),o.push(at("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:i,onClick:r},{default:()=>[at(Xe,{class:a.is("loading",t.loading)},{default:()=>[at(l)]})]}))}else o.push(at("span",{class:a.e("placeholder")}));return o}function UT(e,t){return e.reduce((n,s)=>(n[s]=s,n),t)}function Ife(e,t){const n=Ct();return{registerComplexWatchers:()=>{const o=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},i=UT(o,r);Object.keys(i).forEach(l=>{const c=r[l];jt(t,c)&&ge(()=>t[c],u=>{let d=u;c==="width"&&l==="realWidth"&&(d=A6(u)),c==="minWidth"&&l==="realMinWidth"&&(d=CT(u)),n.columnConfig.value[c]=d,n.columnConfig.value[l]=d;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=UT(o,i);Object.keys(l).forEach(c=>{const u=i[c];jt(t,u)&&ge(()=>t[u],d=>{n.columnConfig.value[c]=d,(c==="filters"||c==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(c=>{jt(e.value.props,c)&&ge(()=>e.value.props[c],u=>{n.columnConfig.value.type!=="selection"&&Dt(t[c])&&(n.columnConfig.value[c]=u)})})}}}function Ofe(e,t,n){const s=Ct(),a=F(""),o=F(!1),r=F(),i=F(),l=ke("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 C=s.vnode.vParent||s.parent;for(;C&&!C.tableId&&!C.columnId;)C=C.vnode.vParent||C.parent;return C}),u=E(()=>{const{store:C}=s.parent;if(!C)return!1;const{treeData:x}=C.states,k=x.value;return k&&Object.keys(k).length>0}),d=F(A6(e.width)),h=F(CT(e.minWidth)),p=C=>(d.value&&(C.width=d.value),h.value&&(C.minWidth=h.value),!d.value&&h.value&&(C.width=void 0),C.minWidth||(C.minWidth=80),C.realWidth=Number(Dt(C.width)?C.minWidth:C.width),C),v=C=>{const x=C.type,k=Mfe[x]||{};Object.keys(k).forEach(R=>{const I=k[R];R!=="className"&&!Dt(I)&&(C[R]=I)});const T=Tfe(x);if(T){const R=`${f(l.namespace)}-${T}`;C.className=C.className?`${C.className} ${R}`:R}return C},m=C=>{Ae(C)?C.forEach(k=>x(k)):x(C);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:C=>{e.renderHeader||C.type!=="selection"&&(C.renderHeader=k=>{if(s.columnConfig.value.label,t.header){const T=t.header(k);if(AT(T))return at(Ve,T)}return Ke(C.label)}),t["filter-icon"]&&(C.renderFilterIcon=k=>ue(t,"filter-icon",k)),t.expand&&(C.renderExpand=k=>ue(t,"expand",k));let x=C.renderCell;return C.type==="expand"?(C.renderCell=k=>at("div",{class:"cell"},[x(k)]),n.value.renderExpanded=k=>t.default?t.default(k):t.default):(x=x||Pfe,C.renderCell=k=>{let T=null;if(t.default){const B=t.default(k);T=B.some(U=>U.type!==qn)?B:x(k)}else T=x(k);const{columns:R}=n.value.store.states,I=R.value.findIndex(B=>B.type==="default"),M=u.value&&k.cellIndex===I,$=Rfe(k,M),O={class:"cell",style:{}};return C.showOverflowTooltip&&(O.class=`${O.class} ${f(l.namespace)}-tooltip`,O.style={width:`${(k.column.realWidth||Number(k.column.width))-1}px`}),m(T),at("div",O,[$,T])}),C},getPropsData:(...C)=>C.reduce((x,k)=>(Ae(k)&&k.forEach(T=>{x[T]=e[T]}),x),{}),getColumnElIndex:(C,x)=>Array.prototype.indexOf.call(C,x),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",s.columnConfig.value)}}}var Lfe={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 Nfe=1;var qT=W({name:"ElTableColumn",components:{ElCheckbox:gr},props:Lfe,setup(e,{slots:t}){const n=Ct(),s=F({}),a=E(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:o,registerComplexWatchers:r}=Ife(a,e),{columnId:i,isSubColumn:l,realHeaderAlign:c,columnOrTableParent:u,setColumnWidth:d,setColumnForcedProps:h,setColumnRenders:p,getPropsData:v,getColumnElIndex:m,realAlign:g,updateColumnOrder:b}=Ofe(e,t,a),_=u.value;i.value=`${"tableId"in _&&_.tableId||"columnId"in _&&_.columnId}_column_${Nfe++}`,U2(()=>{l.value=a.value!==_;const w=e.type||"default",C=e.sortable===""?!0:e.sortable,x=w==="selection"?!1:Dt(e.showOverflowTooltip)?_.props.showOverflowTooltip:e.showOverflowTooltip,k=Dt(e.tooltipFormatter)?_.props.tooltipFormatter:e.tooltipFormatter,T={...Afe[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:C,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=kde(T,O),O=Ade(p,d,h)(O),s.value=O,o(),r()}),xt(()=>{var w,C;const x=u.value,k=l.value?(w=x.vnode.el)==null?void 0:w.children:(C=x.refs.hiddenColumns)==null?void 0:C.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)}),Xt(()=>{const w=s.value.getColumnIndex;(w?w():-1)>-1&&a.value.store.commit("removeColumn",s.value,l.value?"columnConfig"in _&&_.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===Ve&&Ae(r.children)&&r.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!Ye(i==null?void 0:i.children)&&a.push(i)});return at("div",a)}catch{return at("div",[])}}});const $fe=ht(kfe,{TableColumn:qT}),Dfe=Tn(qT);var Ou=(e=>(e.ASC="asc",e.DESC="desc",e))(Ou||{}),sv=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(sv||{}),GT=(e=>(e.LEFT="left",e.RIGHT="right",e))(GT||{});const W6={asc:"desc",desc:"asc"},av=Symbol("placeholder"),Ffe=(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 Bfe(e,t,n){const s=E(()=>f(t).map((g,b)=>{var _,w;return{...g,key:(w=(_=g.key)!=null?_:g.dataKey)!=null?w:b}})),a=E(()=>f(s).filter(g=>!g.hidden)),o=E(()=>f(a).filter(g=>g.fixed==="left"||g.fixed===!0)),r=E(()=>f(a).filter(g=>g.fixed==="right")),i=E(()=>f(a).filter(g=>!g.fixed)),l=E(()=>{const g=[];return f(o).forEach(b=>{g.push({...b,placeholderSign:av})}),f(i).forEach(b=>{g.push(b)}),f(r).forEach(b=>{g.push({...b,placeholderSign:av})}),g}),c=E(()=>f(o).length||f(r).length),u=E(()=>f(s).reduce((g,b)=>(g[b.key]=Ffe(b,f(n),e.fixed),g),{})),d=E(()=>f(a).reduce((g,b)=>g+b.width,0)),h=g=>f(s).find(b=>b.key===g),p=g=>f(u)[g],v=(g,b)=>{g.width=b};function m(g){var b;const{key:_}=g.currentTarget.dataset;if(!_)return;const{sortState:w,sortBy:C}=e;let x=Ou.ASC;dt(w)?x=W6[w[_]]:x=W6[C.order],(b=e.onColumnSort)==null||b.call(e,{column:h(_),key:_,order:x})}return{columns:s,columnsStyles:u,columnsTotalWidth:d,fixedColumnsOnLeft:o,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:l,normalColumns:i,visibleColumns:a,getColumn:h,getColumnStyle:p,updateColumnWidth:v,onColumnSorted:m}}const Vfe=(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(f(o))}function c(p){var v,m;o.value.scrollLeft=p,(m=(v=t.value)==null?void 0:v.scrollTo)==null||m.call(v,f(o))}function u(p){var v;i(p),(v=e.onScroll)==null||v.call(e,p)}function d({scrollTop:p}){const{scrollTop:v}=f(o);p!==v&&l(p)}function h(p,v="auto"){var m;(m=t.value)==null||m.scrollToRow(p,v)}return ge(()=>f(o).scrollTop,(p,v)=>{p>v&&a()}),{scrollPos:o,scrollTo:i,scrollToLeft:c,scrollToTop:l,scrollToRow:h,onScroll:u,onVerticalScroll:d}},zfe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:a,ns:o,isScrolling:r})=>{const i=Ct(),{emit:l}=i,c=pn(!1),u=F(e.defaultExpandedRowKeys||[]),d=F(-1),h=pn(null),p=F({}),v=F({}),m=pn({}),g=pn({}),b=pn({}),_=E(()=>nt(e.estimatedRowHeight));function w(M){var $;($=e.onRowsRendered)==null||$.call(e,M),M.rowCacheEnd>f(d)&&(d.value=M.rowCacheEnd)}function C({hovered:M,rowKey:$}){if(r.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String($)}"]`).forEach(U=>{M?U.classList.add(o.is("hovered")):U.classList.remove(o.is("hovered"))})}function x({expanded:M,rowData:$,rowIndex:O,rowKey:B}){var U,J;const Y=[...f(u)],N=Y.indexOf(B);M?N===-1&&Y.push(B):N>-1&&Y.splice(N,1),u.value=Y,l("update:expandedRowKeys",Y),(U=e.onRowExpand)==null||U.call(e,{expanded:M,rowData:$,rowIndex:O,rowKey:B}),(J=e.onExpandedRowsChange)==null||J.call(e,Y),a.vnode.el.querySelector(`.${o.is("hovered")}[rowkey="${String(B)}"]`)&&Be(()=>C({hovered:!0,rowKey:B}))}const k=Zr(()=>{var M,$,O,B;c.value=!0,p.value={...f(p),...f(v)},T(f(h),!1),v.value={},h.value=null,(M=t.value)==null||M.forceUpdate(),($=n.value)==null||$.forceUpdate(),(O=s.value)==null||O.forceUpdate(),(B=i.proxy)==null||B.$forceUpdate(),c.value=!1},0);function T(M,$=!1){f(_)&&[t,n,s].forEach(O=>{const B=f(O);B&&B.resetAfterRowIndex(M,$)})}function R(M,$,O){const B=f(h);(B===null||B>O)&&(h.value=O),v.value[M]=$}function I({rowKey:M,height:$,rowIndex:O},B){B?B===GT.RIGHT?b.value[M]=$:m.value[M]=$:g.value[M]=$;const U=Math.max(...[m,b,g].map(J=>J.value[M]||0));f(p)[M]!==U&&(R(M,U,O),k())}return{expandedRowKeys:u,lastRenderedRowIndex:d,isDynamic:_,isResetting:c,rowHeights:p,resetAfterIndex:T,onRowExpanded:x,onRowHovered:C,onRowsRendered:w,onRowHeightChange:I}},Hfe=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:s})=>{const a=F({}),o=E(()=>{const i={},{data:l,rowKey:c}=e,u=f(t);if(!u||!u.length)return l;const d=[],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();d.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,d}),r=E(()=>{const{data:i,expandColumnKey:l}=e;return l?f(o):i});return ge(r,(i,l)=>{i!==l&&(n.value=-1,s(0,!0))}),{data:r,depthMap:a}},Wfe=(e,t)=>e+t,S1=e=>Ae(e)?e.reduce(Wfe,0):e,Lu=(e,t,n={})=>Ze(e)?e(t):e??n,pc=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Rn(e[t])}),e),YT=e=>dn(e)?t=>at(e,t):e,jfe=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:s,fixedColumnsOnRight:a})=>{const o=E(()=>{const{fixed:b,width:_,vScrollbarSize:w}=e,C=_-w;return b?Math.max(Math.round(f(t)),C):C}),r=E(()=>{const{height:b=0,maxHeight:_=0,footerHeight:w,hScrollbarSize:C}=e;if(_>0){const x=f(h),k=f(n),R=f(d)+x+k+C;return Math.min(R,_-w)}return b-w}),i=E(()=>{const{maxHeight:b}=e,_=f(r);if(nt(b)&&b>0)return _;const w=f(n)+f(d)+f(h);return Math.min(_,w)}),l=b=>b.width,c=E(()=>S1(f(s).map(l))),u=E(()=>S1(f(a).map(l))),d=E(()=>S1(e.headerHeight)),h=E(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),p=E(()=>f(r)-f(d)-f(h)),v=E(()=>{const{style:b={},height:_,width:w}=e;return pc({...b,height:_,width:w})}),m=E(()=>pc({height:e.footerHeight})),g=E(()=>({top:Rn(f(d)),bottom:Rn(e.footerHeight),width:Rn(e.width)}));return{bodyWidth:o,fixedTableHeight:i,mainTableHeight:r,leftTableWidth:c,rightTableWidth:u,windowHeight:p,footerHeight:m,emptyStyle:g,rootStyle:v,headerHeight:d}};function Kfe(e){const t=F(),n=F(),s=F(),{columns:a,columnsStyles:o,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,hasFixedColumns:c,mainColumns:u,onColumnSorted:d}=Bfe(e,Qt(e,"columns"),Qt(e,"fixed")),{scrollTo:h,scrollToLeft:p,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:b,scrollPos:_}=Vfe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:te}),w=ke("table-v2"),C=Ct(),x=pn(!1),{expandedRowKeys:k,lastRenderedRowIndex:T,isDynamic:R,isResetting:I,rowHeights:M,resetAfterIndex:$,onRowExpanded:O,onRowHeightChange:B,onRowHovered:U,onRowsRendered:J}=zfe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:C,ns:w,isScrolling:x}),{data:Y,depthMap:N}=Hfe(e,{expandedRowKeys:k,lastRenderedRowIndex:T,resetAfterIndex:$}),L=E(()=>{const{estimatedRowHeight:de,rowHeight:be}=e,_e=f(Y);return nt(de)?Object.values(f(M)).reduce((xe,Oe)=>xe+Oe,0):_e.length*be}),{bodyWidth:V,fixedTableHeight:z,mainTableHeight:G,leftTableWidth:Q,rightTableWidth:K,windowHeight:ee,footerHeight:ae,emptyStyle:fe,rootStyle:ne,headerHeight:ve}=jfe(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,rowsHeight:L}),he=F(),ce=E(()=>{const de=f(Y).length===0;return Ae(e.fixedData)?e.fixedData.length===0&&de:de});function Z(de){const{estimatedRowHeight:be,rowHeight:_e,rowKey:xe}=e;return be?f(M)[f(Y)[de][xe]]||be:_e}const H=F(!1);function te(){const{onEndReached:de}=e;if(!de)return;const{scrollTop:be}=f(_),_e=f(L),xe=f(ee),Oe=_e-(be+xe)+e.hScrollbarSize;!H.value&&f(T)>=0&&_e<=be+f(G)-f(ve)?(H.value=!0,de(Oe)):H.value=!1}return ge(()=>f(L),()=>H.value=!1),ge(()=>e.expandedRowKeys,de=>k.value=de,{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:fe,rootStyle:ne,footerHeight:ae,mainTableHeight:G,fixedTableHeight:z,leftTableWidth:Q,rightTableWidth:K,showEmpty:ce,getRowHeight:Z,onColumnSorted:d,onRowHovered:U,onRowExpanded:O,onRowsRendered:J,onRowHeightChange:B,scrollTo:h,scrollToLeft:p,scrollToTop:v,scrollToRow:m,onScroll:g,onVerticalScroll:b}}const j6=Symbol("tableV2"),XT="tableV2GridScrollLeft",JT=String,ov={type:re(Array),required:!0},K6={type:re(Array)},ZT={...K6,required:!0},Ufe=String,QT={type:re(Array),default:()=>In([])},Nu={type:Number,required:!0},eM={type:re([String,Number,Symbol]),default:"id"},tM={type:re(Object)},$u=Me({class:String,columns:ov,columnsStyles:{type:re(Object),required:!0},depth:Number,expandColumnKey:Ufe,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:eM,style:{type:re(Object)}}),U6={type:Number,required:!0},q6=Me({class:String,columns:ov,fixedHeaderData:{type:re(Array)},headerData:{type:re(Array),required:!0},headerHeight:{type:re([Number,Array]),default:50},rowWidth:U6,rowHeight:{type:Number,default:50},height:U6,width:U6}),x1=Me({columns:ov,data:ZT,fixedData:K6,estimatedRowHeight:$u.estimatedRowHeight,width:Nu,height:Nu,headerWidth:Nu,headerHeight:q6.headerHeight,bodyWidth:Nu,rowHeight:Nu,cache:eT.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Pu.scrollbarAlwaysOn,scrollbarStartGap:Pu.scrollbarStartGap,scrollbarEndGap:Pu.scrollbarEndGap,class:JT,style:tM,containerStyle:tM,getRowHeight:{type:re(Function),required:!0},rowKey:$u.rowKey,onRowsRendered:{type:re(Function)},onScroll:{type:re(Function)}}),qfe=Me({cache:x1.cache,estimatedRowHeight:$u.estimatedRowHeight,rowKey:eM,headerClass:{type:re([String,Function])},headerProps:{type:re([Object,Function])},headerCellProps:{type:re([Object,Function])},headerHeight:q6.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:ov,data:ZT,dataGetter:{type:re(Function)},fixedData:K6,expandColumnKey:$u.expandColumnKey,expandedRowKeys:QT,defaultExpandedRowKeys:QT,class:JT,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:sT.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:x1.onScroll,onRowsRendered:x1.onRowsRendered,rowEventHandlers:$u.rowEventHandlers}),Gfe=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:s},a)=>{let o=null,r=0,i=0;const l=(u,d)=>{const h=u<0&&t.value||u>0&&e.value,p=d<0&&s.value||d>0&&n.value;return h||p};return{hasReachedEdge:l,onWheel:u=>{Yi(o);let d=u.deltaX,h=u.deltaY;Math.abs(d)>Math.abs(h)?h=0:d=0,u.shiftKey&&h!==0&&(d=h,h=0),!l(d,h)&&(r+=d,i+=h,u.preventDefault(),o=Qr(()=>{a(r,i),r=0,i=0}))}}},Yfe=(e,t,n,s,a,o,r)=>{const i=F(0),l=F(0);let c,u=0,d=0;const h=v=>{Yi(c),i.value=v.touches[0].clientX,l.value=v.touches[0].clientY,u=0,d=0},p=v=>{v.preventDefault(),Yi(c),u+=i.value-v.touches[0].clientX,d+=l.value-v.touches[0].clientY,i.value=v.touches[0].clientX,l.value=v.touches[0].clientY,c=Qr(()=>{const m=s.value-f(o),g=a.value-f(r),b=Math.min(t.value.scrollLeft+u,m),_=Math.min(t.value.scrollTop+d,g);n({scrollLeft:b,scrollTop:_}),u=0,d=0})};return en(e,"touchstart",h,{passive:!0}),en(e,"touchmove",p,{passive:!1}),{touchStartX:i,touchStartY:l,handleTouchStart:h,handleTouchMove:p}},nM=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:s,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:o,getEstimatedTotalWidth:r,getColumnOffset:i,getRowOffset:l,getRowPosition:c,getRowStartIndexForOffset:u,getRowStopIndexForStartIndex:d,initCache:h,injectToInstance:p,validateProps:v})=>W({name:e??"ElVirtualList",props:Pu,emits:[u1,d1],setup(m,{emit:g,expose:b,slots:_}){const w=ke("vl");v(m);const C=Ct(),x=F(h(m,C));p==null||p(C,x);const k=F(),T=F(),R=F(),I=F(),M=F({isScrolling:!1,scrollLeft:nt(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:nt(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:qf,yAxisScrollDir:qf}),$=YA(),O=E(()=>Number.parseInt(`${m.height}`,10)),B=E(()=>Number.parseInt(`${m.width}`,10)),U=E(()=>{const{totalColumn:Ce,totalRow:Ie,columnCache:Pe}=m,{isScrolling:ze,xAxisScrollDir:Je,scrollLeft:ot}=f(M);if(Ce===0||Ie===0)return[0,0,0,0];const $e=s(m,ot,f(x)),He=a(m,$e,ot,f(x)),et=!ze||Je===f1?Math.max(1,Pe):1,Bt=!ze||Je===qf?Math.max(1,Pe):1;return[Math.max(0,$e-et),Math.max(0,Math.min(Ce-1,He+Bt)),$e,He]}),J=E(()=>{const{totalColumn:Ce,totalRow:Ie,rowCache:Pe}=m,{isScrolling:ze,yAxisScrollDir:Je,scrollTop:ot}=f(M);if(Ce===0||Ie===0)return[0,0,0,0];const $e=u(m,ot,f(x)),He=d(m,$e,ot,f(x)),et=!ze||Je===f1?Math.max(1,Pe):1,Bt=!ze||Je===qf?Math.max(1,Pe):1;return[Math.max(0,$e-et),Math.max(0,Math.min(Ie-1,He+Bt)),$e,He]}),Y=E(()=>o(m,f(x))),N=E(()=>r(m,f(x))),L=E(()=>{var Ce;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:nt(m.height)?`${m.height}px`:m.height,width:nt(m.width)?`${m.width}px`:m.width},(Ce=m.style)!=null?Ce:{}]}),V=E(()=>{const Ce=`${f(N)}px`;return{height:`${f(Y)}px`,pointerEvents:f(M).isScrolling?"none":void 0,width:Ce,margin:0,boxSizing:"border-box"}}),z=()=>{const{totalColumn:Ce,totalRow:Ie}=m;if(Ce>0&&Ie>0){const[He,et,Bt,qt]=f(U),[st,vt,kt,Se]=f(J);g(u1,{columnCacheStart:He,columnCacheEnd:et,rowCacheStart:st,rowCacheEnd:vt,columnVisibleStart:Bt,columnVisibleEnd:qt,rowVisibleStart:kt,rowVisibleEnd:Se})}const{scrollLeft:Pe,scrollTop:ze,updateRequested:Je,xAxisScrollDir:ot,yAxisScrollDir:$e}=f(M);g(d1,{xAxisScrollDir:ot,scrollLeft:Pe,yAxisScrollDir:$e,scrollTop:ze,updateRequested:Je})},G=Ce=>{const{clientHeight:Ie,clientWidth:Pe,scrollHeight:ze,scrollLeft:Je,scrollTop:ot,scrollWidth:$e}=Ce.currentTarget,He=f(M);if(He.scrollTop===ot&&He.scrollLeft===Je)return;let et=Je;if(aT(m.direction))switch(v1()){case tv:et=-Je;break;case b6:et=$e-Pe-Je;break}M.value={...He,isScrolling:!0,scrollLeft:et,scrollTop:Math.max(0,Math.min(ot,ze-Ie)),updateRequested:!0,xAxisScrollDir:Ru(He.scrollLeft,et),yAxisScrollDir:Ru(He.scrollTop,ot)},Be(()=>H()),te(),z()},Q=(Ce,Ie)=>{const Pe=f(O),ze=(Y.value-Pe)/Ie*Ce;ae({scrollTop:Math.min(Y.value-Pe,ze)})},K=(Ce,Ie)=>{const Pe=f(B),ze=(N.value-Pe)/Ie*Ce;ae({scrollLeft:Math.min(N.value-Pe,ze)})},{onWheel:ee}=Gfe({atXStartEdge:E(()=>M.value.scrollLeft<=0),atXEndEdge:E(()=>M.value.scrollLeft>=N.value-f(B)),atYStartEdge:E(()=>M.value.scrollTop<=0),atYEndEdge:E(()=>M.value.scrollTop>=Y.value-f(O))},(Ce,Ie)=>{var Pe,ze,Je,ot;(ze=(Pe=T.value)==null?void 0:Pe.onMouseUp)==null||ze.call(Pe),(ot=(Je=R.value)==null?void 0:Je.onMouseUp)==null||ot.call(Je);const $e=f(B),He=f(O);ae({scrollLeft:Math.min(M.value.scrollLeft+Ce,N.value-$e),scrollTop:Math.min(M.value.scrollTop+Ie,Y.value-He)})});en(k,"wheel",ee,{passive:!1});const ae=({scrollLeft:Ce=M.value.scrollLeft,scrollTop:Ie=M.value.scrollTop})=>{Ce=Math.max(Ce,0),Ie=Math.max(Ie,0);const Pe=f(M);Ie===Pe.scrollTop&&Ce===Pe.scrollLeft||(M.value={...Pe,xAxisScrollDir:Ru(Pe.scrollLeft,Ce),yAxisScrollDir:Ru(Pe.scrollTop,Ie),scrollLeft:Ce,scrollTop:Ie,updateRequested:!0},Be(()=>H()),te(),z())},{touchStartX:fe,touchStartY:ne,handleTouchStart:ve,handleTouchMove:he}=Yfe(k,M,ae,N,Y,B,O),ce=(Ce=0,Ie=0,Pe=Ho)=>{const ze=f(M);Ie=Math.max(0,Math.min(Ie,m.totalColumn-1)),Ce=Math.max(0,Math.min(Ce,m.totalRow-1));const Je=Bx(w.namespace.value),ot=f(x),$e=o(m,ot),He=r(m,ot);ae({scrollLeft:i(m,Ie,Pe,ze.scrollLeft,ot,He>m.width?Je:0),scrollTop:l(m,Ce,Pe,ze.scrollTop,ot,$e>m.height?Je:0)})},Z=(Ce,Ie)=>{const{columnWidth:Pe,direction:ze,rowHeight:Je}=m,ot=$.value(t&&Pe,t&&Je,t&&ze),$e=`${Ce},${Ie}`;if(jt(ot,$e))return ot[$e];{const[,He]=n(m,Ie,f(x)),et=f(x),Bt=aT(ze),[qt,st]=c(m,Ce,et),[vt]=n(m,Ie,et);return ot[$e]={position:"absolute",left:Bt?void 0:`${He}px`,right:Bt?`${He}px`:void 0,top:`${st}px`,height:`${qt}px`,width:`${vt}px`},ot[$e]}},H=()=>{M.value.isScrolling=!1,Be(()=>{$.value(-1,null,null)})};xt(()=>{if(!Ut)return;const{initScrollLeft:Ce,initScrollTop:Ie}=m,Pe=f(k);Pe&&(nt(Ce)&&(Pe.scrollLeft=Ce),nt(Ie)&&(Pe.scrollTop=Ie)),z()});const te=()=>{const{direction:Ce}=m,{scrollLeft:Ie,scrollTop:Pe,updateRequested:ze}=f(M),Je=f(k);if(ze&&Je){if(Ce===Yf)switch(v1()){case tv:{Je.scrollLeft=-Ie;break}case g6:{Je.scrollLeft=Ie;break}default:{const{clientWidth:ot,scrollWidth:$e}=Je;Je.scrollLeft=$e-ot-Ie;break}}else Je.scrollLeft=Math.max(0,Ie);Je.scrollTop=Math.max(0,Pe)}},{resetAfterColumnIndex:de,resetAfterRowIndex:be,resetAfter:_e}=C.proxy;b({windowRef:k,innerRef:I,getItemStyleCache:$,touchStartX:fe,touchStartY:ne,handleTouchStart:ve,handleTouchMove:he,scrollTo:ae,scrollToItem:ce,states:M,resetAfterColumnIndex:de,resetAfterRowIndex:be,resetAfter:_e});const xe=()=>{const{scrollbarAlwaysOn:Ce,scrollbarStartGap:Ie,scrollbarEndGap:Pe,totalColumn:ze,totalRow:Je}=m,ot=f(B),$e=f(O),He=f(N),et=f(Y),{scrollLeft:Bt,scrollTop:qt}=f(M),st=at(x6,{ref:T,alwaysOn:Ce,startGap:Ie,endGap:Pe,class:w.e("horizontal"),clientSize:ot,layout:"horizontal",onScroll:K,ratio:ot*100/He,scrollFrom:Bt/(He-ot),total:Je,visible:!0}),vt=at(x6,{ref:R,alwaysOn:Ce,startGap:Ie,endGap:Pe,class:w.e("vertical"),clientSize:$e,layout:"vertical",onScroll:Q,ratio:$e*100/et,scrollFrom:qt/(et-$e),total:ze,visible:!0});return{horizontalScrollbar:st,verticalScrollbar:vt}},Oe=()=>{var Ce;const[Ie,Pe]=f(U),[ze,Je]=f(J),{data:ot,totalColumn:$e,totalRow:He,useIsScrolling:et,itemKey:Bt}=m,qt=[];if(He>0&&$e>0)for(let st=ze;st<=Je;st++)for(let vt=Ie;vt<=Pe;vt++){const kt=Bt({columnIndex:vt,data:ot,rowIndex:st});qt.push(at(Ve,{key:kt},(Ce=_.default)==null?void 0:Ce.call(_,{columnIndex:vt,data:ot,isScrolling:et?f(M).isScrolling:void 0,style:Z(st,vt),rowIndex:st})))}return qt},De=()=>{const Ce=yt(m.innerElement),Ie=Oe();return[at(Ce,_t(m.innerProps,{style:f(V),ref:I}),Ye(Ce)?Ie:{default:()=>Ie})]};return()=>{const Ce=yt(m.containerElement),{horizontalScrollbar:Ie,verticalScrollbar:Pe}=xe(),ze=De();return at("div",{key:0,class:w.e("wrapper"),role:m.role},[at(Ce,{class:m.className,style:f(L),onScroll:G,ref:k},Ye(Ce)?ze:{default:()=>ze}),Ie,Pe])}}}),{max:k1,min:sM,floor:aM}=Math,Xfe={column:"columnWidth",row:"rowHeight"},G6={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},il=(e,t,n,s)=>{const[a,o,r]=[n[s],e[Xfe[s]],n[G6[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[G6[s]]=t}return a[t]},oM=(e,t,n,s,a,o)=>{for(;n<=s;){const r=n+aM((s-n)/2),i=il(e,r,t,o).offset;if(i===a)return r;i<a?n=r+1:s=r-1}return k1(0,n-1)},Jfe=(e,t,n,s,a)=>{const o=a==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<o&&il(e,n,t,a).offset<s;)n+=r,r*=2;return oM(e,t,aM(n/2),sM(n,o-1),s,a)},rM=(e,t,n,s)=>{const[a,o]=[t[s],t[G6[s]]];return(o>0?a[o].offset:0)>=n?oM(e,t,0,o,n,s):Jfe(e,t,k1(0,o),n,s)},iM=({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},lM=({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},Zfe={column:lM,row:iM},cM=(e,t,n,s,a,o,r)=>{const[i,l]=[o==="row"?e.height:e.width,Zfe[o]],c=il(e,t,a,o),u=l(e,a),d=k1(0,sM(u-i,c.offset)),h=k1(0,c.offset-i+r+c.size);switch(n===h1&&(s>=h-i&&s<=d+i?n=Ho:n=li),n){case Qp:return d;case ev:return h;case li:return Math.round(h+(d-h)/2);case Ho:default:return s>=h&&s<=d?s:h>d||s<h?h:d}},Qfe=nM({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const s=il(e,t,n,"column");return[s.size,s.offset]},getRowPosition:(e,t,n)=>{const s=il(e,t,n,"row");return[s.size,s.offset]},getColumnOffset:(e,t,n,s,a,o)=>cM(e,t,n,s,a,"column",o),getRowOffset:(e,t,n,s,a,o)=>cM(e,t,n,s,a,"row",o),getColumnStartIndexForOffset:(e,t,n)=>rM(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,s)=>{const a=il(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+=il(e,t,s,"column").size;return i},getEstimatedTotalHeight:iM,getEstimatedTotalWidth:lM,getRowStartIndexForOffset:(e,t,n)=>rM(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,s)=>{const{totalRow:a,height:o}=e,r=il(e,t,s,"row"),i=n+o;let l=r.size+r.offset,c=t;for(;c<a-1&&l<i;)c++,l+=il(e,c,s,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:o,rowIndex:r},i)=>{var l,c;i=Dt(i)?!0:i,nt(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),nt(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=m6,estimatedRowHeight:t=m6})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),ehe=nM({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=Ho:a=li),a){case Qp:return c;case ev:return u;case li:{const d=Math.round(u+(c-u)/2);return d<Math.ceil(n/2)?0:d>l+Math.floor(n/2)?l:d}case Ho: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===h1&&(o>=u-t&&o<=c+t?a=Ho:a=li),a){case Qp:return c;case ev:return u;case li:{const d=Math.round(u+(c-u)/2);return d<Math.ceil(t/2)?0:d>l+Math.floor(t/2)?l:d}case Ho: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})=>{}}),the=W({name:"ElTableV2Header",props:q6,setup(e,{slots:t,expose:n}){const s=ke("table-v2"),a=We(XT),o=F(),r=E(()=>pc({width:e.width,height:e.height})),i=E(()=>pc({width:e.rowWidth,height:e.height})),l=E(()=>ks(f(e.headerHeight))),c=h=>{const p=f(o);Be(()=>{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 _;const w=pc({height:m,width:"100%"});return(_=t.fixed)==null?void 0:_.call(t,{class:h,columns:p,rowData:g,rowIndex:-(b+1),style:w})})},d=()=>{const h=s.e("dynamic-header-row"),{columns:p}=e;return f(l).map((v,m)=>{var g;const b=pc({width:"100%",height:v});return(g=t.dynamic)==null?void 0:g.call(t,{class:h,columns:p,headerIndex:m,style:b})})};return rr(()=>{a!=null&&a.value&&c(a.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return j("div",{ref:o,class:e.class,style:f(r),role:"rowgroup"},[j("div",{style:f(i),class:s.e("header")},[d(),u()])])}}}),nhe="ElTableV2Grid",she=e=>{const t=F(),n=F(),s=F(0),a=E(()=>{const{data:g,rowHeight:b,estimatedRowHeight:_}=e;if(!_)return g.length*b}),o=E(()=>{const{fixedData:g,rowHeight:b}=e;return((g==null?void 0:g.length)||0)*b}),r=E(()=>S1(e.headerHeight)),i=E(()=>{const{height:g}=e;return Math.max(0,g-f(r)-f(o))}),l=E(()=>f(r)+f(o)>0),c=({data:g,rowIndex:b})=>g[b][e.rowKey];function u({rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:_,rowVisibleEnd:w}){var C;(C=e.onRowsRendered)==null||C.call(e,{rowCacheStart:g,rowCacheEnd:b,rowVisibleStart:_,rowVisibleEnd:w})}function d(g,b){var _;(_=n.value)==null||_.resetAfterRowIndex(g,b)}function h(g,b){const _=f(t),w=f(n);dt(g)?(_==null||_.scrollToLeft(g.scrollLeft),s.value=g.scrollLeft,w==null||w.scrollTo(g)):(_==null||_.scrollToLeft(g),s.value=g,w==null||w.scrollTo({scrollLeft:g,scrollTop:b}))}function p(g){var b;(b=f(n))==null||b.scrollTo({scrollTop:g})}function v(g,b){const _=f(n);if(!_)return;const w=s.value;_.scrollToItem(g,0,b),w&&h({scrollLeft:w})}function m(){var g,b;(g=f(n))==null||g.$forceUpdate(),(b=f(t))==null||b.$forceUpdate()}return ge(()=>e.bodyWidth,()=>{var g;nt(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:d,scrollTo:h,scrollToTop:p,scrollToRow:v,scrollLeft:s}},Y6=W({name:nhe,props:x1,setup(e,{slots:t,expose:n}){const{ns:s}=We(j6),{bodyRef:a,fixedRowHeight:o,gridHeight:r,hasHeader:i,headerRef:l,headerHeight:c,totalHeight:u,forceUpdate:d,itemKey:h,onItemRendered:p,resetAfterRowIndex:v,scrollTo:m,scrollToTop:g,scrollToRow:b,scrollLeft:_}=she(e);Mt(XT,_),q0(async()=>{var C;await Be();const x=(C=a.value)==null?void 0:C.states.scrollTop;x&&g(Math.round(x)+1)}),n({forceUpdate:d,totalHeight:u,scrollTo:m,scrollToTop:g,scrollToRow:b,resetAfterRowIndex:v});const w=()=>e.bodyWidth;return()=>{const{cache:C,columns:x,data:k,fixedData:T,useIsScrolling:R,scrollbarAlwaysOn:I,scrollbarEndGap:M,scrollbarStartGap:$,style:O,rowHeight:B,bodyWidth:U,estimatedRowHeight:J,headerWidth:Y,height:N,width:L,getRowHeight:V,onScroll:z}=e,G=nt(J),Q=G?Qfe:ehe,K=f(c);return j("div",{role:"table",class:[s.e("table"),e.class],style:O},[j(Q,{ref:a,data:k,useIsScrolling:R,itemKey:h,columnCache:0,columnWidth:G?w:U,totalColumn:1,totalRow:k.length,rowCache:C,rowHeight:G?V:B,width:L,height:f(r),class:s.e("body"),role:"rowgroup",scrollbarStartGap:$,scrollbarEndGap:M,scrollbarAlwaysOn:I,onScroll:z,onItemRendered:p,perfMode:!1},{default:ee=>{var ae;const fe=k[ee.rowIndex];return(ae=t.row)==null?void 0:ae.call(t,{...ee,columns:x,rowData:fe})}}),f(i)&&j(the,{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(K+f(o),N)},{dynamic:t.header,fixed:t.row})])}}});function ahe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!dn(e)}const ohe=(e,{slots:t})=>{const{mainTableRef:n,...s}=e;return j(Y6,_t({ref:n},s),ahe(t)?t:{default:()=>[t]})};function rhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!dn(e)}const ihe=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...s}=e;return j(Y6,_t({ref:n},s),rhe(t)?t:{default:()=>[t]})};function lhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!dn(e)}const che=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...s}=e;return j(Y6,_t({ref:n},s),lhe(t)?t:{default:()=>[t]})},uhe=e=>{const{isScrolling:t}=We(j6),n=F(!1),s=F(),a=E(()=>nt(e.estimatedRowHeight)&&e.rowIndex>=0),o=(l=!1)=>{const c=f(s);if(!c)return;const{columns:u,onRowHeightChange:d,rowKey:h,rowIndex:p,style:v}=e,{height:m}=c.getBoundingClientRect();n.value=!0,Be(()=>{if(l||m!==Number.parseInt(v.height)){const g=u[0],b=(g==null?void 0:g.placeholderSign)===av;d==null||d({rowKey:h,height:m,rowIndex:p},g&&!b&&g.fixed)}})},r=E(()=>{const{rowData:l,rowIndex:c,rowKey:u,onRowHover:d}=e,h=e.rowEventHandlers||{},p={};return Object.entries(h).forEach(([v,m])=>{Ze(m)&&(p[v]=g=>{m({event:g,rowData:l,rowIndex:c,rowKey:u})})}),d&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:m})=>{const g=p[v];p[v]=b=>{d({event:b,hovered:m,rowData:l,rowIndex:c,rowKey:u}),g==null||g(b)}}),p}),i=l=>{const{onRowExpand:c,rowData:u,rowIndex:d,rowKey:h}=e;c==null||c({expanded:l,rowData:u,rowIndex:d,rowKey:h})};return xt(()=>{f(a)&&o(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:s,eventHandlers:r,onExpand:i}},dhe=W({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}=uhe(e);return t({onExpand:c}),()=>{const{columns:u,columnsStyles:d,expandColumnKey:h,depth:p,rowData:v,rowIndex:m,style:g}=e;let b=u.map((_,w)=>{const C=Ae(v.children)&&v.children.length>0&&_.key===h;return n.cell({column:_,columns:u,columnIndex:w,depth:p,style:d[_.key],rowData:v,rowIndex:m,isScrolling:f(o),expandIconProps:C?{rowData:v,rowIndex:m,onExpand:c}:void 0})});if(n.row&&(b=n.row({cells:b.map(_=>Ae(_)&&_.length===1?_[0]:_),style:g,columns:u,depth:p,rowData:v,rowIndex:m,isScrolling:f(o)})),f(r)){const{height:_,...w}=g||{},C=f(i);return j("div",_t({ref:l,class:e.class,style:C?g:w,role:"row"},s,f(a)),[b])}return j("div",_t(s,{ref:l,class:e.class,style:g,role:"row"},f(a)),[b])}}});function fhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!dn(e)}const hhe=(e,{slots:t})=>{const{columns:n,columnsStyles:s,depthMap:a,expandColumnKey:o,expandedRowKeys:r,estimatedRowHeight:i,hasFixedColumns:l,rowData:c,rowIndex:u,style:d,isScrolling:h,rowProps:p,rowClass:v,rowKey:m,rowEventHandlers:g,ns:b,onRowHovered:_,onRowExpanded:w}=e,C=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,M=[b.e("row"),C,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?_:void 0,O={...x,columns:n,columnsStyles:s,class:M,depth:T,expandColumnKey:o,estimatedRowHeight:I?void 0:i,isScrolling:h,rowIndex:u,rowData:c,rowKey:k,rowEventHandlers:g,style:d};return j(dhe,_t(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}),fhe(t)?t:{default:()=>[t]})},X6=(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 j("div",{class:e.class,title:o,style:a},[r])};X6.displayName="ElTableV2Cell",X6.inheritAttrs=!1;const uM=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 j("button",_t(i,{type:"button"}),[j(Xe,{size:o,style:a},{default:()=>[j($s,null,null)]})])};uM.inheritAttrs=!1;const J6=({columns:e,column:t,columnIndex:n,depth:s,expandIconProps:a,isScrolling:o,rowData:r,rowIndex:i,style:l,expandedRowKeys:c,ns:u,t:d,cellProps:h,expandColumnKey:p,indentSize:v,iconSize:m,rowKey:g},{slots:b})=>{const _=pc(l);if(t.placeholderSign===av)return j("div",{class:u.em("row-cell","placeholder"),style:_},null);const{cellRenderer:w,dataKey:C,dataGetter:x}=t,k=Ze(x)?x({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i}):Jn(r,C??""),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=YT(w),M=I?I(R):ue(b,"default",R,()=>[j(X6,R,null)]),$=[u.e("row-cell"),t.class,t.align===sv.CENTER&&u.is("align-center"),t.align===sv.RIGHT&&u.is("align-right")],O=i>=0&&p&&t.key===p,B=i>=0&&c.includes(r[g]);let U;const J=`margin-inline-start: ${s*v}px;`;return O&&(dt(a)?U=j(uM,_t(a,{class:[u.e("expand-icon"),u.is("expanded",B)],size:m,expanded:B,ariaLabel:d(B?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:J,expandable:!0}),null):U=j("div",{style:[J,`width: ${m}px; height: ${m}px;`].join(" ")},null)),j("div",_t({class:$,style:_},T,{role:"cell"}),[U,M])};J6.inheritAttrs=!1;const phe=Me({class:String,columns:ov,columnsStyles:{type:re(Object),required:!0},headerIndex:Number,style:{type:re(Object)}}),vhe=W({name:"ElTableV2HeaderRow",props:phe,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})),j("div",{class:e.class,style:o,role:"row"},[r])}}});function mhe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!dn(e)}const ghe=({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 j(vhe,u,mhe(i)?i:{default:()=>[i]})},Z6=(e,{slots:t})=>ue(t,"default",e,()=>{var n,s;return[j("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(s=e.column)==null?void 0:s.title])]});Z6.displayName="ElTableV2HeaderCell",Z6.inheritAttrs=!1;const bhe=e=>{const{sortOrder:t}=e;return j("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[j(Xe,{size:14},{default:()=>[t===Ou.ASC?j(c9,null,null):j(l9,null,null)]})])},dM=(e,{slots:t})=>{const{column:n,ns:s,t:a,style:o,onColumnSorted:r}=e,i=pc(o);if(n.placeholderSign===av)return j("div",{class:s.em("header-row-cell","placeholder"),style:i},null);const{headerCellRenderer:l,headerClass:c,sortable:u}=n,d={...e,class:s.e("header-cell-text")},h=YT(l),p=h?h(d):ue(t,"default",d,()=>[j(Z6,d,null)]),{sortBy:v,sortState:m,headerCellProps:g}=e;let b,_,w;if(m){const k=m[n.key];b=!!W6[k],_=b?k:Ou.ASC}else b=n.key===v.key,_=b?v.order:Ou.ASC;_===Ou.ASC?w="ascending":_===Ou.DESC?w="descending":w=void 0;const C=[s.e("header-cell"),Lu(c,e,""),n.align===sv.CENTER&&s.is("align-center"),n.align===sv.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:C,style:i,"data-key":n.key};return j("div",_t(x,{role:"columnheader"}),[p,u&&j(bhe,{class:[s.e("sort-icon"),b&&s.is("sorting")],sortOrder:_,ariaLabel:a("el.table.sortLabel",{column:n.title||""})},null)])},fM=(e,{slots:t})=>{var n;return j("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};fM.displayName="ElTableV2Footer";const hM=(e,{slots:t})=>{const n=ue(t,"default",{},()=>[j(kA,null,null)]);return j("div",{class:e.class,style:e.style},[n])};hM.displayName="ElTableV2Empty";const pM=(e,{slots:t})=>{var n;return j("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};pM.displayName="ElTableV2Overlay";function rv(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!dn(e)}const yhe=W({name:"ElTableV2",props:qfe,setup(e,{slots:t,expose:n}){const s=ke("table-v2"),{t:a}=Ot(),{columnsStyles:o,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,mainColumns:l,mainTableHeight:c,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:h,data:p,depthMap:v,expandedRowKeys:m,hasFixedColumns:g,mainTableRef:b,leftTableRef:_,rightTableRef:w,isDynamic:C,isResetting:x,isScrolling:k,bodyWidth:T,emptyStyle:R,rootStyle:I,footerHeight:M,showEmpty:$,scrollTo:O,scrollToLeft:B,scrollToTop:U,scrollToRow:J,getRowHeight:Y,onColumnSorted:N,onRowHeightChange:L,onRowHovered:V,onRowExpanded:z,onRowsRendered:G,onScroll:Q,onVerticalScroll:K}=Kfe(e);return n({scrollTo:O,scrollToLeft:B,scrollToTop:U,scrollToRow:J}),Mt(j6,{ns:s,isResetting:x,isScrolling:k}),()=>{const{cache:ee,cellProps:ae,estimatedRowHeight:fe,expandColumnKey:ne,fixedData:ve,headerHeight:he,headerClass:ce,headerProps:Z,headerCellProps:H,sortBy:te,sortState:de,rowHeight:be,rowClass:_e,rowEventHandlers:xe,rowKey:Oe,rowProps:De,scrollbarAlwaysOn:Ne,indentSize:Ce,iconSize:Ie,useIsScrolling:Pe,vScrollbarSize:ze,width:Je}=e,ot=f(p),$e={cache:ee,class:s.e("main"),columns:f(l),data:ot,fixedData:ve,estimatedRowHeight:fe,bodyWidth:f(T),headerHeight:he,headerWidth:f(T),height:f(c),mainTableRef:b,rowKey:Oe,rowHeight:be,scrollbarAlwaysOn:Ne,scrollbarStartGap:2,scrollbarEndGap:ze,useIsScrolling:Pe,width:Je,getRowHeight:Y,onRowsRendered:G,onScroll:Q},He=f(d),et=f(u),Bt={cache:ee,class:s.e("left"),columns:f(r),data:ot,fixedData:ve,estimatedRowHeight:fe,leftTableRef:_,rowHeight:be,bodyWidth:He,headerWidth:He,headerHeight:he,height:et,rowKey:Oe,scrollbarAlwaysOn:Ne,scrollbarStartGap:2,scrollbarEndGap:ze,useIsScrolling:Pe,width:He,getRowHeight:Y,onScroll:K},qt=f(h),st={cache:ee,class:s.e("right"),columns:f(i),data:ot,fixedData:ve,estimatedRowHeight:fe,rightTableRef:w,rowHeight:be,bodyWidth:qt,headerWidth:qt,headerHeight:he,height:et,rowKey:Oe,scrollbarAlwaysOn:Ne,scrollbarStartGap:2,scrollbarEndGap:ze,width:qt,style:`${s.cssVarName("table-scrollbar-size")}: ${ze}px`,useIsScrolling:Pe,getRowHeight:Y,onScroll:K},vt=f(o),kt={ns:s,depthMap:f(v),columnsStyles:vt,expandColumnKey:ne,expandedRowKeys:f(m),estimatedRowHeight:fe,hasFixedColumns:f(g),rowProps:De,rowClass:_e,rowKey:Oe,rowEventHandlers:xe,onRowHovered:V,onRowExpanded:z,onRowHeightChange:L},Se={cellProps:ae,expandColumnKey:ne,indentSize:Ce,iconSize:Ie,rowKey:Oe,expandedRowKeys:f(m),ns:s,t:a},Ue={ns:s,headerClass:ce,headerProps:Z,columnsStyles:vt},we={ns:s,t:a,sortBy:te,sortState:de,headerCellProps:H,onColumnSorted:N},Ge={row:Sn=>j(hhe,_t(Sn,kt),{row:t.row,cell:kn=>{let Fe;return t.cell?j(J6,_t(kn,Se,{style:vt[kn.column.key]}),rv(Fe=t.cell(kn))?Fe:{default:()=>[Fe]}):j(J6,_t(kn,Se,{style:vt[kn.column.key]}),null)}}),header:Sn=>j(ghe,_t(Sn,Ue),{header:t.header,cell:kn=>{let Fe;return t["header-cell"]?j(dM,_t(kn,we,{style:vt[kn.column.key]}),rv(Fe=t["header-cell"](kn))?Fe:{default:()=>[Fe]}):j(dM,_t(kn,we,{style:vt[kn.column.key]}),null)}})},St=[e.class,s.b(),s.e("root"),s.is("dynamic",f(C))],Zt={class:s.e("footer"),style:f(M)};return j("div",{class:St,style:f(I)},[j(ohe,$e,rv(Ge)?Ge:{default:()=>[Ge]}),j(ihe,Bt,rv(Ge)?Ge:{default:()=>[Ge]}),j(che,st,rv(Ge)?Ge:{default:()=>[Ge]}),t.footer&&j(fM,Zt,{default:t.footer}),f($)&&j(hM,{class:s.e("empty"),style:f(R)},{default:t.empty}),t.overlay&&j(pM,{class:s.e("overlay")},{default:t.overlay})])}}}),whe=Me({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:re(Function)}}),_he=e=>{const t=F(),n=F(0),s=F(0);let a;return xt(()=>{a=_n(t,([o])=>{const{width:r,height:i}=o.contentRect,{paddingLeft:l,paddingRight:c,paddingTop:u,paddingBottom:d}=getComputedStyle(o.target),h=Number.parseInt(l)||0,p=Number.parseInt(c)||0,v=Number.parseInt(u)||0,m=Number.parseInt(d)||0;n.value=r-h-p,s.value=i-v-m}).stop}),Xt(()=>{a==null||a()}),ge([n,s],([o,r])=>{var i;(i=e.onResize)==null||i.call(e,{width:o,height:r})}),{sizer:t,width:n,height:s}},Che=W({name:"ElAutoResizer",props:whe,setup(e,{slots:t}){const n=ke("auto-resizer"),{height:s,width:a,sizer:o}=_he(e),r={width:"100%",height:"100%"};return()=>{var i;return j("div",{ref:o,class:n.b(),style:r},[(i=t.default)==null?void 0:i.call(t,{height:s.value,width:a.value})])}}}),She=ht(yhe),xhe=ht(Che),E1=Symbol("tabsRootContextKey"),khe=Me({tabs:{type:re(Array),default:()=>In([])},tabRefs:{type:re(Object),default:()=>In({})}}),vM="ElTabBar";var Ehe=W({name:vM,__name:"tab-bar",props:khe,setup(e,{expose:t}){const n=e,s=We(E1);s||Zn(vM,"<el-tabs><el-tab-bar /></el-tabs>");const a=ke("tabs"),o=F(),r=F(),i=E(()=>{var p;return Dt(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(_=>{if(Dt(_.paneName))return!1;const w=n.tabRefs[_.paneName];if(!w)return!1;if(!_.active)return!0;p=w[`offset${cc(b)}`],v=w[`client${cc(m)}`];const C=window.getComputedStyle(w);return m==="width"&&(v-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight),p+=Number.parseFloat(C.paddingLeft)),!1}),{[m]:`${v}px`,transform:`translate${cc(g)}(${p}px)`}},c=()=>r.value=l(),u=[],d=()=>{u.forEach(p=>p.stop()),u.length=0,Object.values(n.tabRefs).forEach(p=>{u.push(_n(p,c))})};ge(()=>n.tabs,async()=>{await Be(),c(),d()},{immediate:!0});const h=_n(o,()=>c());return Xt(()=>{u.forEach(p=>p.stop()),u.length=0,h.stop()}),t({ref:o,update:c}),(p,v)=>i.value?(S(),P("div",{key:0,ref_key:"barRef",ref:o,class:D([f(a).e("active-bar"),f(a).is(f(s).props.tabPosition)]),style:Qe(r.value)},null,6)):ie("v-if",!0)}});const Ahe=Me({panes:{type:re(Array),default:()=>In([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),The={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},mM="ElTabNav",Mhe=W({name:mM,props:Ahe,emits:The,setup(e,{expose:t,emit:n}){const s=We(E1);s||Zn(mM,"<el-tabs><tab-nav /></el-tabs>");const a=ke("tabs"),o=qV(),r=YV(),i=F(),l=F(),c=F(),u=F({}),d=F(),h=F(!1),p=F(0),v=F(!1),m=F(!0),g=pn(),b=E(()=>["top","bottom"].includes(s.props.tabPosition)),_=E(()=>b.value?"width":"height"),w=E(()=>({transform:`translate${_.value==="width"?"X":"Y"}(-${p.value}px)`})),{width:C,height:x}=Ry(i),{width:k,height:T}=Ry(l,{width:0,height:0},{box:"border-box"}),R=E(()=>b.value?C.value:x.value),I=E(()=>b.value?k.value:T.value),{onWheel:M}=JA({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${cc(_.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${cc(_.value)}`],G=i.value[`offset${cc(_.value)}`],Q=p.value;if(z-Q<=G)return;const K=z-Q>G*2?Q+G:z-G;p.value=K},B=async()=>{const z=l.value;if(!h.value||!c.value||!i.value||!z)return;await Be();const G=u.value[e.currentName];if(!G)return;const Q=i.value,K=G.getBoundingClientRect(),ee=Q.getBoundingClientRect(),ae=b.value?z.offsetWidth-ee.width:z.offsetHeight-ee.height,fe=p.value;let ne=fe;b.value?(K.left<ee.left&&(ne=fe-(ee.left-K.left)),K.right>ee.right&&(ne=fe+K.right-ee.right)):(K.top<ee.top&&(ne=fe-(ee.top-K.top)),K.bottom>ee.bottom&&(ne=fe+(K.bottom-ee.bottom))),ne=Math.max(ne,0),p.value=Math.min(ne,ae)},U=()=>{var z;if(!l.value||!i.value)return;e.stretch&&((z=d.value)==null||z.update());const G=l.value[`offset${cc(_.value)}`],Q=i.value[`offset${cc(_.value)}`],K=p.value;Q<G?(h.value=h.value||{},h.value.prev=K,h.value.next=K+Q<G,G-K<Q&&(p.value=G-Q)):(h.value=!1,K>0&&(p.value=0))},J=z=>{const G=on(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 K=Array.from(z.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let ae=K.indexOf(z.target)+Q;ae<0?ae=K.length-1:ae>=K.length&&(ae=0),K[ae].focus({preventScroll:!0}),K[ae].click(),Y()},Y=()=>{m.value&&(v.value=!0)},N=()=>v.value=!1,L=(z,G)=>{u.value[G]=z},V=async()=>{await Be();const z=u.value[e.currentName];z==null||z.focus({preventScroll:!0})};return ge(o,z=>{z==="hidden"?m.value=!1:z==="visible"&&setTimeout(()=>m.value=!0,50)}),ge(r,z=>{z?setTimeout(()=>m.value=!0,50):m.value=!1}),_n(c,()=>{Qr(U)}),xt(()=>setTimeout(()=>B(),0)),rr(()=>U()),t({scrollToActiveTab:B,removeFocus:N,focusActiveTab:V,tabListRef:l,tabBarRef:d,scheduleRender:()=>N2(g)}),()=>{const z=h.value?[j("span",{class:[a.e("nav-prev"),a.is("disabled",!h.value.prev)],onClick:$},[j(Xe,null,{default:()=>[j($o,null,null)]})]),j("span",{class:[a.e("nav-next"),a.is("disabled",!h.value.next)],onClick:O},[j(Xe,null,{default:()=>[j($s,null,null)]})])]:null,G=e.panes.map((Q,K)=>{var ee,ae,fe,ne,ve;const he=Q.uid,ce=Q.props.disabled,Z=(ae=(ee=Q.props.name)!=null?ee:Q.index)!=null?ae:`${K}`,H=!ce&&(Q.isClosable||Q.props.closable!==!1&&e.editable);Q.index=`${K}`;const te=H?j(Xe,{class:"is-icon-close",onClick:_e=>n("tabRemove",Q,_e)},{default:()=>[j(qa,null,null)]}):null,de=((ne=(fe=Q.slots).label)==null?void 0:ne.call(fe))||Q.props.label,be=!ce&&Q.active?(ve=e.tabindex)!=null?ve:s.props.tabindex:-1;return j("div",{ref:_e=>L(_e,Z),class:[a.e("item"),a.is(s.props.tabPosition),a.is("active",Q.active),a.is("disabled",ce),a.is("closable",H),a.is("focus",v.value)],id:`tab-${Z}`,key:`tab-${he}`,"aria-controls":`pane-${Z}`,role:"tab","aria-selected":Q.active,tabindex:be,onFocus:()=>Y(),onBlur:()=>N(),onClick:_e=>{N(),n("tabClick",Q,Z,_e)},onKeydown:_e=>{const xe=on(_e);H&&(xe===Te.delete||xe===Te.backspace)&&n("tabRemove",Q,_e)}},[de,te])});return g.value,j("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!h.value),a.is(s.props.tabPosition)]},[z,j("div",{class:a.e("nav-scroll"),ref:i},[e.panes.length>0?j("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:M},[e.type?null:j(Ehe,{ref:d,tabs:[...e.panes],tabRefs:u.value},null),G]):null])])}}}),Phe=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}}),Q6=e=>Ye(e)||nt(e),Rhe={[lt]:e=>Q6(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Q6(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Q6(e),tabAdd:()=>!0},Ihe=W({name:"ElTabs",props:Phe,emits:Rhe,setup(e,{emit:t,slots:n,expose:s}){var a;const o=ke("tabs"),r=E(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:l,removeChild:c,ChildrenSorter:u}=jg(Ct(),"ElTabPane"),d=F(),h=F((a=Dt(e.modelValue)?e.defaultValue:e.modelValue)!=null?a:"0"),p=async(w,C=!1)=>{var x,k,T,R;if(!(h.value===w||Dt(w)))try{let I;if(e.beforeLeave){const M=e.beforeLeave(w,h.value);I=M instanceof Promise?await M:M}else I=!0;if(I!==!1){const M=(x=i.value.find($=>$.paneName===h.value))==null?void 0:x.isFocusInsidePane();h.value=w,C&&(t(lt,w),t("tabChange",w)),(T=(k=d.value)==null?void 0:k.removeFocus)==null||T.call(k),M&&((R=d.value)==null||R.focusActiveTab())}}catch{}},v=(w,C,x)=>{w.props.disabled||(t("tabClick",w,x),p(C,!0))},m=(w,C)=>{w.props.disabled||Dt(w.props.name)||(C.stopPropagation(),t("edit",w.props.name,"remove"),t("tabRemove",w.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")},b=w=>{const C=on(w);[Te.enter,Te.numpadEnter].includes(C)&&g()},_=w=>{const C=w.el.firstChild,x=["bottom","right"].includes(e.tabPosition)?w.children[0].el:w.children[1].el;C!==x&&C.before(x)};return ge(()=>e.modelValue,w=>p(w)),ge(h,async()=>{var w;await Be(),(w=d.value)==null||w.scrollToActiveTab()}),Mt(E1,{props:e,currentName:h,registerPane:l,unregisterPane:c,nav$:d}),s({currentName:h,get tabNavRef(){return vp(d.value,["scheduleRender"])}}),()=>{const w=n["add-icon"],C=e.editable||e.addable?j("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"):j(Xe,{class:o.is("icon-plus")},{default:()=>[j(zy,null,null)]})]):null,x=()=>j(Mhe,{ref:d,currentName:h.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:v,onTabRemove:m},null),k=j("div",{class:[o.e("header"),r.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[j(u,null,{default:x,$stable:!0}),C]),T=j("div",{class:o.e("content")},[ue(n,"default")]);return j("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:_,onVnodeUpdated:_},[T,k])}}}),Ohe=Me({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Lhe=["id","aria-hidden","aria-labelledby"],gM="ElTabPane";var bM=W({name:gM,__name:"tab-pane",props:Ohe,setup(e){const t=e,n=Ct(),s=Wn(),a=We(E1);a||Zn(gM,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const o=ke("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),d=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)};ge(c,m=>{m&&(u.value=!0)});const v=Kt({uid:n.uid,getVnode:()=>n.vnode,slots:s,props:t,paneName:d,active:c,index:i,isClosable:l,isFocusInsidePane:p});return a.registerPane(v),Xt(()=>{a.unregisterPane(v)}),L4(()=>{var m;s.label&&((m=a.nav$.value)==null||m.scheduleRender())}),(m,g)=>h.value?bt((S(),P("div",{key:0,id:`pane-${d.value}`,ref_key:"paneRef",ref:r,class:D(f(o).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${d.value}`},[ue(m.$slots,"default")],10,Lhe)),[[Vt,c.value]]):ie("v-if",!0)}});const Nhe=ht(Ihe,{TabPane:bM}),$he=Tn(bM),Dhe=Me({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:hr,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var Fhe=W({name:"ElText",__name:"text",props:Dhe,setup(e){const t=e,n=F(),s=ss(),a=ke("text"),o=E(()=>[a.b(),a.m(t.type),a.m(s.value),a.is("truncated",t.truncated),a.is("line-clamp",!Dt(t.lineClamp))]),r=()=>{var i,l,c,u,d,h,p;if(zi().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=n.value)==null?void 0:c.scrollWidth;b&&_&&_>b&&(m=!0)}else if(!Dt(t.lineClamp)){const b=(u=n.value)==null?void 0:u.offsetHeight,_=(d=n.value)==null?void 0:d.scrollHeight;b&&_&&_>b&&(m=!0)}m?(h=n.value)==null||h.setAttribute("title",g):(p=n.value)==null||p.removeAttribute("title")};return xt(r),rr(r),(i,l)=>(S(),le(yt(e.tag),{ref_key:"textRef",ref:n,class:D(o.value),style:Qe({"-webkit-line-clamp":e.lineClamp})},{default:X(()=>[ue(i.$slots,"default")]),_:3},8,["class","style"]))}});const e8=ht(Fhe),Bhe=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:cs,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:()=>Dy},clearIcon:{type:re([String,Object]),default:()=>Do},popperClass:{type:String,default:""},popperStyle:{type:re([String,Object])},...Su}),ll=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},t8=(e,t)=>{const n=ll(e);if(!n)return-1;const s=ll(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},yM=e=>`${e}`.padStart(2,"0"),eh=e=>`${yM(e.hours)}:${yM(e.minutes)}`,Vhe=(e,t)=>{const n=ll(e);if(!n)return"";const s=ll(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 zhe=W({name:"ElTimeSelect",__name:"time-select",props:Bhe,emits:[Rt,"blur","focus","clear",lt],setup(e,{expose:t}){pt.extend(B3);const{Option:n}=fc,s=e,a=ke("input"),o=F(),r=On(),{lang:i}=Ot(),l=E(()=>s.modelValue),c=E(()=>{const b=ll(s.start);return b?eh(b):null}),u=E(()=>{const b=ll(s.end);return b?eh(b):null}),d=E(()=>{const b=ll(s.step);return b?eh(b):null}),h=E(()=>{const b=ll(s.minTime||"");return b?eh(b):null}),p=E(()=>{const b=ll(s.maxTime||"");return b?eh(b):null}),v=E(()=>{var b;const _=[],w=(C,x)=>{_.push({value:C,disabled:t8(x,h.value||"-1:-1")<=0||t8(x,p.value||"100:100")>=0})};if(s.start&&s.end&&s.step){let C=c.value,x;for(;C&&u.value&&t8(C,u.value)<=0;)x=pt(C,"HH:mm").locale(i.value).format(s.format),w(x,C),C=Vhe(C,d.value);if(s.includeEndTime&&u.value&&((b=_[_.length-1])==null?void 0:b.value)!==u.value){const k=pt(u.value,"HH:mm").locale(i.value).format(s.format);w(k,u.value)}}return _});return t({blur:()=>{var b,_;(_=(b=o.value)==null?void 0:b.blur)==null||_.call(b)},focus:()=>{var b,_;(_=(b=o.value)==null?void 0:b.focus)==null||_.call(b)}}),(b,_)=>(S(),le(f(fc),{ref_key:"select",ref:o,"model-value":l.value,disabled:f(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":_[0]||(_[0]=w=>b.$emit(f(lt),w)),onChange:_[1]||(_[1]=w=>b.$emit(f(Rt),w)),onBlur:_[2]||(_[2]=w=>b.$emit("blur",w)),onFocus:_[3]||(_[3]=w=>b.$emit("focus",w)),onClear:_[4]||(_[4]=()=>b.$emit("clear"))},{prefix:X(()=>[e.prefixIcon?(S(),le(f(Xe),{key:0,class:D(f(a).e("prefix-icon"))},{default:X(()=>[(S(),le(yt(e.prefixIcon)))]),_:1},8,["class"])):ie("v-if",!0)]),default:X(()=>[(S(!0),P(Ve,null,wt(v.value,w=>(S(),le(f(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 Hhe=ht(zhe),wM="timeline",Whe=Me({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),jhe=W({name:"ElTimeline",props:Whe,setup(e,{slots:t}){const n=ke("timeline");Mt(wM,{props:e,slots:t});const s=E(()=>[n.b(),n.is(e.mode)]);return()=>{var a,o;const r=co((o=(a=t.default)==null?void 0:a.call(t))!=null?o:[]);return at("ul",{class:s.value},e.reverse?r.reverse():r)}}}),Khe=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:nn},hollow:Boolean});var _M=W({name:"ElTimelineItem",__name:"timeline-item",props:Khe,setup(e){const t=e,{props:n}=We(wM),s=ke("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(),P("li",{class:D(o.value)},[A("div",{class:D(f(s).e("tail"))},null,2),r.$slots.dot?ie("v-if",!0):(S(),P("div",{key:0,class:D(a.value),style:Qe({backgroundColor:e.color})},[e.icon?(S(),le(f(Xe),{key:0,class:D(f(s).e("icon"))},{default:X(()=>[(S(),le(yt(e.icon)))]),_:1},8,["class"])):ie("v-if",!0)],6)),r.$slots.dot?(S(),P("div",{key:1,class:D(f(s).e("dot"))},[ue(r.$slots,"dot")],2)):ie("v-if",!0),A("div",{class:D(f(s).e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(S(),P("div",{key:0,class:D([f(s).e("timestamp"),f(s).is("top")])},me(e.timestamp),3)):ie("v-if",!0),A("div",{class:D(f(s).e("content"))},[ue(r.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(S(),P("div",{key:1,class:D([f(s).e("timestamp"),f(s).is("bottom")])},me(e.timestamp),3)):ie("v-if",!0)],2)],2))}});const Uhe=ht(jhe,{TimelineItem:_M}),qhe=Tn(_M),CM="left-check-change",SM="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:()=>In({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),n8=(e,t)=>[e,t].every(Ae)||Ae(e)&&Yn(t),Ghe={[Rt]:(e,t,n)=>[e,n].every(Ae)&&["left","right"].includes(t),[lt]:e=>Ae(e),[CM]:n8,[SM]:n8},s8="checked-change",Yhe=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}),Xhe={[s8]:n8},iv=e=>{const t={label:"label",key:"key",disabled:"disabled"};return E(()=>({...t,...e.props}))},Jhe=(e,t,n)=>{const s=iv(e),a=E(()=>e.data.filter(u=>Ze(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,d=e.data.length,{noChecked:h,hasChecked:p}=e.format;return h&&p?u>0?p.replace(/\${checked}/g,u.toString()).replace(/\${total}/g,d.toString()):h.replace(/\${total}/g,d.toString()):`${u}/${d}`}),i=E(()=>{const u=t.checked.length;return u>0&&u<o.value.length}),l=()=>{const u=o.value.map(d=>d[s.value.key]);t.allChecked=u.length>0&&u.every(d=>t.checked.includes(d))},c=u=>{t.checked=u?o.value.map(d=>d[s.value.key]):[]};return ge(()=>t.checked,(u,d)=>{if(l(),t.checkChangeByUser){const h=u.concat(d).filter(p=>!u.includes(p)||!d.includes(p));n(s8,u,h)}else n(s8,u),t.checkChangeByUser=!0}),ge(o,()=>{l()}),ge(()=>e.data,()=>{const u=[],d=a.value.map(h=>h[s.value.key]);t.checked.forEach(h=>{d.includes(h)&&u.push(h)}),t.checkChangeByUser=!1,t.checked=u}),ge(()=>e.defaultChecked,(u,d)=>{if(d&&u.length===d.length&&u.every(v=>d.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 xM=W({name:"ElTransferPanel",__name:"transfer-panel",props:Yhe,emits:Xhe,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Wn(),r=({option:C})=>C,{t:i}=Ot(),l=ke("transfer"),c=Kt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=iv(s),{filteredData:d,checkedSummary:h,isIndeterminate:p,handleAllCheckedChange:v}=Jhe(s,c,a),m=E(()=>!Ia(c.query)&&Ia(d.value)),g=E(()=>!Ia(o.default()[0].children)),{checked:b,allChecked:_,query:w}=bs(c);return t({query:w}),(C,x)=>(S(),P("div",{class:D(f(l).b("panel"))},[A("p",{class:D(f(l).be("panel","header"))},[j(f(gr),{modelValue:f(_),"onUpdate:modelValue":x[0]||(x[0]=k=>vn(_)?_.value=k:null),indeterminate:f(p),"validate-event":!1,onChange:f(v)},{default:X(()=>[Ke(me(e.title)+" ",1),A("span",null,me(f(h)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),A("div",{class:D([f(l).be("panel","body"),f(l).is("with-footer",g.value)])},[e.filterable?(S(),le(f(ua),{key:0,modelValue:f(w),"onUpdate:modelValue":x[1]||(x[1]=k=>vn(w)?w.value=k:null),class:D(f(l).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":f(i9),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ie("v-if",!0),bt(j(f(M3),{modelValue:f(b),"onUpdate:modelValue":x[2]||(x[2]=k=>vn(b)?b.value=k:null),"validate-event":!1,class:D([f(l).is("filterable",e.filterable),f(l).be("panel","list")])},{default:X(()=>[(S(!0),P(Ve,null,wt(f(d),k=>(S(),le(f(gr),{key:k[f(u).key],class:D(f(l).be("panel","item")),value:k[f(u).key],disabled:k[f(u).disabled],"validate-event":!1},{default:X(()=>{var T;return[j(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"]),[[Vt,!m.value&&!f(Ia)(e.data)]]),bt(A("div",{class:D(f(l).be("panel","empty"))},[ue(C.$slots,"empty",{},()=>[Ke(me(m.value?f(i)("el.transfer.noMatch"):f(i)("el.transfer.noData")),1)])],2),[[Vt,m.value||f(Ia)(e.data)]])],2),g.value?(S(),P("p",{key:0,class:D(f(l).be("panel","footer"))},[ue(C.$slots,"default")],2)):ie("v-if",!0)],2))}});const Zhe=e=>{const t=iv(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}},Qhe=(e,t,n)=>{const s=iv(e),a=(i,l,c)=>{n(lt,i),n(Rt,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)}}},e0e=(e,t)=>({onSourceCheckedChange:(a,o)=>{e.leftChecked=a,o&&t(CM,a,o)},onTargetCheckedChange:(a,o)=>{e.rightChecked=a,o&&t(SM,a,o)}}),t0e={key:0},n0e={key:0};var s0e=W({name:"ElTransfer",__name:"transfer",props:th,emits:Ghe,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Wn(),{t:r}=Ot(),i=ke("transfer"),{formItem:l}=Es(),c=Kt({leftChecked:[],rightChecked:[]}),u=iv(s),{sourceData:d,targetData:h}=Zhe(s),{onSourceCheckedChange:p,onTargetCheckedChange:v}=e0e(c,a),{addToLeft:m,addToRight:g}=Qhe(s,c,a),b=F(),_=F(),w=I=>{switch(I){case"left":b.value.query="";break;case"right":_.value.query="";break}},C=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"));ge(()=>s.modelValue,()=>{var I;s.validateEvent&&((I=l==null?void 0:l.validate)==null||I.call(l,"change").catch(M=>void 0))});const R=E(()=>I=>{var M;if(s.renderContent)return s.renderContent(at,I);const $=(((M=o.default)==null?void 0:M.call(o,{option:I}))||[]).filter(O=>O.type!==qn);return $.length?$:at("span",I[u.value.label]||I[u.value.key])});return t({clearQuery:w,leftPanel:b,rightPanel:_}),(I,M)=>(S(),P("div",{class:D(f(i).b())},[j(xM,{ref_key:"leftPanel",ref:b,data:f(d),"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:f(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(f(i).e("buttons"))},[j(f(_s),{type:"primary",class:D([f(i).e("button"),f(i).is("with-texts",C.value)]),disabled:f(Ia)(c.rightChecked),onClick:f(m)},{default:X(()=>[j(f(Xe),null,{default:X(()=>[j(f($o))]),_:1}),f(Dt)(e.buttonTexts[0])?ie("v-if",!0):(S(),P("span",t0e,me(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),j(f(_s),{type:"primary",class:D([f(i).e("button"),f(i).is("with-texts",C.value)]),disabled:f(Ia)(c.leftChecked),onClick:f(g)},{default:X(()=>[f(Dt)(e.buttonTexts[1])?ie("v-if",!0):(S(),P("span",n0e,me(e.buttonTexts[1]),1)),j(f(Xe),null,{default:X(()=>[j(f($s))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),j(xM,{ref_key:"rightPanel",ref:_,data:f(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:f(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 a0e=ht(s0e),nh="$treeNodeId",kM=function(e,t){!t||t[nh]||Object.defineProperty(t,nh,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},a8=(e,t)=>t==null?void 0:t[e||nh],o8=(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 o0e=Object.defineProperty,r0e=(e,t,n)=>t in e?o0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bs=(e,t,n)=>r0e(e,typeof t!="symbol"?t+"":t,n);const EM=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}},lv=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}=EM(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||lv(o)},A1=function(e,t){const n=e.store.props,s=e.data||{},a=n[t];if(Ze(a))return a(s,e);if(Ye(a))return s[a];if(Dt(a)){const o=s[t];return Dt(o)?"":o}},r8=function(e,t){e.forEach(n=>{n.canFocus=t,r8(n.childNodes,t)})};let i0e=0,i8=class $b{constructor(t){Bs(this,"id"),Bs(this,"text"),Bs(this,"checked"),Bs(this,"indeterminate"),Bs(this,"data"),Bs(this,"expanded"),Bs(this,"parent"),Bs(this,"visible"),Bs(this,"isCurrent"),Bs(this,"store"),Bs(this,"isLeafByUser"),Bs(this,"isLeaf"),Bs(this,"canFocus"),Bs(this,"level"),Bs(this,"loaded"),Bs(this,"childNodes"),Bs(this,"loading"),Bs(this,"isEffectivelyChecked",!1),this.id=i0e++,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)jt(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=A1(this,"isLeaf");tn(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)||kM(this,this.data),!this.data)return;const a=n.defaultExpandedKeys,o=n.key;o&&!Yn(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)||kM(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ae(this.data)?n=this.data:n=A1(this,"children")||[];for(let s=0,a=n.length;s<a;s++)this.insertChild({data:n[s]})}get label(){return A1(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return A1(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 $b)){if(!s){const a=this.getChildren(!0);a!=null&&a.includes(t.data)||(Dt(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=Kt(new $b(t)),t instanceof $b&&t.initialize()}t.level=this.level+1,Dt(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(),r8(this.childNodes,!0)};this.shouldLoadData()?this.loadData(a=>{Ae(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||lv(this),s())}):s()}doCreateChildren(t,n={}){t.forEach(s=>{this.insertChild(Object.assign({data:s},n),void 0,!0)})}collapse(){this.expanded=!1,r8(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 d=0,h=i.length;d<h;d++){const p=i[d];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}=EM(i);c||(this.checked=c,this.indeterminate=l),this.isEffectivelyChecked=this.childNodes.length?u:this.disabled||this.checked}};if(this.shouldLoadData()){this.loadData(()=>{r(),lv(this)},{checked:t!==!1});return}else r()}const o=this.parent;!o||o.level===0||s||lv(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"),Dt(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||lv(this)}};var l0e=Object.defineProperty,c0e=(e,t,n)=>t in e?l0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pa=(e,t,n)=>c0e(e,typeof t!="symbol"?t+"":t,n);class u0e{constructor(t){pa(this,"currentNode"),pa(this,"currentNodeKey"),pa(this,"nodesMap"),pa(this,"root"),pa(this,"data"),pa(this,"lazy",!1),pa(this,"load"),pa(this,"filterNodeMethod"),pa(this,"key"),pa(this,"defaultCheckedKeys"),pa(this,"checkStrictly",!1),pa(this,"defaultExpandedKeys"),pa(this,"autoExpandParent",!1),pa(this,"defaultExpandAll",!1),pa(this,"checkDescendants",!1),pa(this,"props"),this.currentNode=null,this.currentNodeKey=null;for(const n in t)jt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new i8({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()},Yt)}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 Be(),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 i8)return t;const n=dt(t)?a8(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||[];!Yn(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;Yn(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)jt(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],d=u.data[t].toString();if(!r.includes(d)){u.checked&&!o[d]&&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 l8="RootTree",AM="NodeInstance",TM="TreeNodeMap";var d0e=W({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ke("tree"),n=We(AM),s=We(l8);return()=>{const a=e.node,{data:o,store:r}=a;return e.renderContent?e.renderContent(at,{_self:n,node:a,data:o,store:r}):ue(s.ctx.slots,"default",{node:a,data:o},()=>[at(e8,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[a.label])])}}});function MM(e){const t=We(TM,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),Xt(()=>{t&&t.children.delete(n),n=null}),Mt(TM,n),{broadcastExpanded:s=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(s)}}}const PM=Symbol("dragEvents");function f0e({props:e,ctx:t,el$:n,dropIndicator$:s,store:a}){const o=ke("tree"),r=F({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Mt(PM,{treeNodeDragStart:({event:u,treeNode:d})=>{if(u.dataTransfer){if(Ze(e.allowDrag)&&!e.allowDrag(d.node))return u.preventDefault(),!1;u.dataTransfer.effectAllowed="move";try{u.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=d,t.emit("node-drag-start",d.node,u)}},treeNodeDragOver:({event:u,treeNode:d})=>{if(!u.dataTransfer)return;const h=d,p=r.value.dropNode;p&&p.node.id!==h.node.id&&la(p.$el,o.is("drop-inner"));const v=r.value.draggingNode;if(!v||!h)return;let m=!0,g=!0,b=!0,_=!0;Ze(e.allowDrop)&&(m=e.allowDrop(v.node,h.node,"prev"),_=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,C=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 M=-9999;const $=u.clientY-C.top;$<C.height*R?T="before":$>C.height*I?T="after":g?T="inner":T="none";const O=w.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),B=s.value;T==="before"?M=O.top-x.top+k:T==="after"&&(M=O.bottom-x.top+k),B.style.top=`${M}px`,B.style.left=`${O.right-x.left}px`,T==="inner"?No(w,o.is("drop-inner")):la(w,o.is("drop-inner")),r.value.showDropIndicator=T==="before"||T==="after",r.value.allowDrop=r.value.showDropIndicator||_,r.value.dropType=T,t.emit("node-drag-over",v.node,h.node,u)},treeNodeDragEnd:u=>{var d,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"?(d=m.node.parent)==null||d.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 _;(_=a.value.nodesMap[b.data[a.value.key]])==null||_.setChecked(b.checked,!a.value.checkStrictly)})),la(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 h0e=W({name:"ElTreeNode",components:{ElCollapseTransition:Ug,ElCheckbox:gr,NodeContent:d0e,ElIcon:Xe,Loading:Ds},props:{node:{type:i8,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=ke("tree"),{broadcastExpanded:s}=MM(e),a=We(l8),o=F(!1),r=F(!1),i=F(),l=F(),c=F(),u=We(PM),d=Ct();Mt(AM,d),e.node.expanded&&(o.value=!0,r.value=!0);const h=a.props.props.children||"children";ge(()=>{var I;const M=(I=e.node.data)==null?void 0:I[h];return M&&[...M]},()=>{e.node.updateChildren()}),ge(()=>e.node.indeterminate,I=>{m(e.node.checked,I)}),ge(()=>e.node.checked,I=>{m(I,e.node.indeterminate)}),ge(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),ge(()=>e.node.expanded,I=>{Be(()=>o.value=I),I&&(r.value=!0)});const p=I=>a8(a.props.nodeKey,I.data),v=I=>{const M=e.props.class;if(!M)return{};let $;if(Ze(M)){const{data:O}=I;$=M(O,I)}else $=M;return Ye($)?{[$]:!0}:$},m=(I,M)=>{(i.value!==I||l.value!==M)&&a.ctx.emit("check-change",e.node.data,I,M),i.value=I,l.value=M},g=I=>{o8(a.store,a.ctx.emit,()=>{var M;if((M=a==null?void 0:a.props)==null?void 0:M.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&&_(),(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,d,I)},b=I=>{var M;(M=a.instance.vnode.props)!=null&&M.onNodeContextmenu&&(I.stopPropagation(),I.preventDefault()),a.ctx.emit("node-contextmenu",I,e.node.data,e.node,d)},_=()=>{e.node.isLeaf||(o.value?(a.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,d)}))},w=I=>{const M=a==null?void 0:a.props.checkStrictly,$=e.node.childNodes;!M&&$.length&&(I=$.some(O=>!O.isEffectivelyChecked)),e.node.setChecked(I,!M),Be(()=>{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:_,handleCheckChange:w,handleChildNodeExpand:(I,M,$)=>{s(M),a.ctx.emit("node-expand",I,M,$)},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:$y}}});const p0e=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],v0e=["aria-expanded"];function m0e(e,t,n,s,a,o){const r=qe("el-icon"),i=qe("el-checkbox"),l=qe("loading"),c=qe("node-content"),u=qe("el-tree-node"),d=qe("el-collapse-transition");return bt((S(),P("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]=it((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[3]||(t[3]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[4]||(t[4]=it((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[5]||(t[5]=it((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[6]||(t[6]=it((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[7]||(t[7]=it((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[A("div",{class:D(e.ns.be("node","content")),style:Qe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(S(),le(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:it(e.handleExpandIconClick,["stop"])},{default:X(()=>[(S(),le(yt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ie("v-if",!0),e.showCheckbox?(S(),le(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=it(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ie("v-if",!0),e.node.loading?(S(),le(r,{key:2,class:D([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:X(()=>[j(l)]),_:1},8,["class"])):ie("v-if",!0),j(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),j(d,null,{default:X(()=>[!e.renderAfterExpand||e.childNodeRendered?bt((S(),P("div",{key:0,class:D(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=it(()=>{},["stop"]))},[(S(!0),P(Ve,null,wt(e.node.childNodes,h=>(S(),le(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,v0e)),[[Vt,e.expanded]]):ie("v-if",!0)]),_:1})],42,p0e)),[[Vt,e.node.visible]])}var g0e=us(h0e,[["render",m0e]]);function b0e({el$:e},t){const n=ke("tree");xt(()=>{o()}),rr(()=>{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)}en(e,"keydown",r=>{const i=r.target;if(!i.className.includes(n.b("node")))return;const l=on(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),u=c.indexOf(i);let d;if([Te.up,Te.down].includes(l)){if(r.preventDefault(),l===Te.up){d=u===-1?0:u!==0?u-1:c.length-1;const p=d;for(;!s(c,d);){if(d--,d===p){d=-1;break}d<0&&(d=c.length-1)}}else{d=u===-1?0:u<c.length-1?u+1:0;const p=d;for(;!s(c,d);){if(d++,d===p){d=-1;break}d>=c.length&&(d=0)}}d!==-1&&c[d].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 RM=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:nn}});var y0e=W({name:"ElTree",components:{ElTreeNode:g0e},props:RM,emits:{"check-change":(e,t,n)=>e&&tn(t)&&tn(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}=Ot(),s=ke("tree"),a=F(new u0e({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}=MM(e),{dragState:u}=f0e({props:e,ctx:t,el$:i,dropIndicator$:l,store:a});b0e({el$:i},a);const d=Ct(),h=E(()=>{let z=d==null?void 0:d.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});ge(()=>e.currentNodeKey,z=>{a.value.setCurrentNodeKey(z??null)}),ge(()=>e.defaultCheckedKeys,(z,G)=>{Dn(z,G)||a.value.setDefaultCheckedKey(z??[])}),ge(()=>e.defaultExpandedKeys,z=>{a.value.setDefaultExpandedKeys(z??[])}),ge(()=>e.data,z=>{a.value.setData(z)},{deep:!0}),ge(()=>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=>a8(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 K=G.parent;for(;K&&K!==o.value;)Q.push(K.data),K=K.parent;return Q.reverse()},_=(z,G)=>a.value.getCheckedNodes(z,G),w=z=>a.value.getCheckedKeys(z),C=()=>{const z=a.value.getCurrentNode();return z?z.data:null},x=()=>{g("getCurrentKey");const z=C();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(),M=()=>a.value.getHalfCheckedKeys(),$=(z,G=!0)=>{g("setCurrentNode"),o8(a,t.emit,()=>{c(z),a.value.setUserCurrentNode(z,G)})},O=(z=null,G=!0)=>{g("setCurrentKey"),o8(a,t.emit,()=>{c(),a.value.setCurrentNodeKey(z,G)})},B=z=>a.value.getNode(z),U=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 Mt(l8,{ctx:t,props:e,store:a,root:o,currentNode:r,instance:d}),Mt(ai,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:_,getCheckedKeys:w,getCurrentNode:C,getCurrentKey:x,setCheckedNodes:k,setCheckedKeys:T,setChecked:R,getHalfCheckedNodes:I,getHalfCheckedKeys:M,setCurrentNode:$,setCurrentKey:O,t:n,getNode:B,remove:U,append:J,insertBefore:Y,insertAfter:N,handleNodeExpand:L,updateKeyChildren:V}}});function w0e(e,t,n,s,a,o){const r=qe("el-tree-node");return S(),P("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),P(Ve,null,wt(e.root.childNodes,i=>(S(),le(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(),P("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"))},me((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):ie("v-if",!0),bt(A("div",{ref:"dropIndicator$",class:D(e.ns.e("drop-indicator"))},null,2),[[Vt,e.dragState.showDropIndicator]])],2)}var _0e=us(y0e,[["render",w0e]]);const c8=ht(_0e),C0e=(e,{attrs:t,emit:n},{select:s,tree:a,key:o})=>{const r=ke("tree-select");ge(()=>e.data,()=>{e.filterable&&Be(()=>{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 d=c.at(-1);if(d.expanded&&d.childNodes.at(-1))i([d.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 xt(()=>{en(()=>{var c;return(c=s.value)==null?void 0:c.$el},"keydown",async c=>{const u=on(c),{dropdownMenuVisible:d}=s.value;[Te.down,Te.up].includes(u)&&d&&(await Be(),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})}),{...Gi(bs(e),Object.keys(fc.props)),...t,class:E(()=>t.class),style:E(()=>t.style),"onUpdate:modelValue":c=>n(lt,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)}}},S0e=W({extends:Wg,setup(e,t){const n=Wg.setup(e,t);delete n.selectOptionClick;const s=Ct().proxy;return Be(()=>{n.select.states.cachedOptions.get(s.value)||n.select.onOptionCreate(s)}),ge(()=>t.attrs.visible,a=>{Be(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function u8(e){return e||e===0}function d8(e){return Ae(e)&&e.length}function sh(e){return Ae(e)?e:u8(e)?[e]:[]}function T1(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(d8(i)){const l=T1(i,t,n,s,r);if(l)return l}}}}function M1(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);d8(r)&&M1(r,t,n,o)}}const x0e=(e,{attrs:t,slots:n,emit:s},{select:a,tree:o,key:r})=>{ge([()=>e.modelValue,o],()=>{e.showCheckbox&&Be(()=>{const h=o.value;h&&!Dn(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 Ze(m)?m(p,(v=o.value)==null?void 0:v.getNode(l("value",p))):p[m]},c=sh(e.modelValue).map(h=>T1(e.data||[],p=>l("value",p)===h,p=>l("children",p),(p,v,m,g)=>g&&l("value",g))).filter(h=>u8(h)),u=E(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return M1(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}),d=()=>{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!Yn(m)&&Ia(m.childNodes)})};return{...Gi(bs(e),Object.keys(c8.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(S0e,{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(S3(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 _=(g=a.value)==null?void 0:g.states.options.get(l("value",h));(b=a.value)==null||b.handleOptionSelect(_)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick()},onCheck:(h,p)=>{var v;if(!e.showCheckbox)return;const m=l("value",h),g={};M1([o.value.store.root],C=>g[C.key]=C,C=>C.childNodes);const b=p.checkedKeys,_=e.multiple?sh(e.modelValue).filter(C=>!(C in g)&&!b.includes(C)):[],w=_.concat(b);if(e.checkStrictly)s(lt,e.multiple?w:w.includes(m)?m:void 0);else if(e.multiple){const C=d();s(lt,_.concat(C))}else{const C=T1([h],T=>!d8(l("children",T))&&!l("disabled",T),T=>l("children",T)),x=C?l("value",C):void 0,k=u8(e.modelValue)&&!!T1([h],T=>l("value",T)===e.modelValue,T=>l("children",T));s(lt,x===e.modelValue||k?void 0:x)}Be(()=>{var C;const x=sh(e.modelValue);o.value.setCheckedKeys(x),(C=t.onCheck)==null||C.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),Be(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&p.checked){const g={},b=o.value.getCheckedKeys();M1([o.value.store.root],C=>g[C.key]=C,C=>C.childNodes);const _=sh(e.modelValue).filter(C=>!(C in g)&&!b.includes(C)),w=d();s(lt,_.concat(w))}})},cacheOptions:u}};var k0e=W({props:{data:{type:Array,default:()=>[]}},setup(e){const t=We(zp);return ge(()=>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"))||[];Ut&&!Array.from(s).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),E0e=W({name:"ElTreeSelect",inheritAttrs:!1,props:{...qk,...RM,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=C0e(e,t,{select:a,tree:o,key:r}),{cacheOptions:l,...c}=x0e(e,t,{select:a,tree:o,key:r}),u=Kt({});return s(u),xt(()=>{Object.assign(u,{...Gi(o.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Gi(a.value,["focus","blur","selectedLabel"]),treeRef:o.value,selectRef:a.value})}),()=>at(fc,Kt({...i,ref:d=>a.value=d}),{...n,default:()=>[at(k0e,{data:l.value}),at(c8,Kt({...c,ref:d=>o.value=d}))]})}});const A0e=ht(E0e),f8=Symbol(),T0e={key:-1,level:-1,data:{}};var cv=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(cv||{}),h8=(e=>(e.ADD="add",e.DELETE="delete",e))(h8||{});const IM={type:Number,default:26},M0e=Me({data:{type:re(Array),default:()=>In([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:re(Object),default:()=>In({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:re(Array),default:()=>In([])},checkStrictly:Boolean,defaultExpandedKeys:{type:re(Array),default:()=>In([])},indent:{type:Number,default:16},itemSize:IM,icon:{type:nn},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}),P0e=Me({node:{type:re(Object),default:()=>In(T0e)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:IM}),R0e=Me({node:{type:re(Object),required:!0}}),OM="node-click",LM="node-drop",NM="node-expand",$M="node-collapse",DM="current-change",FM="check",BM="check-change",VM="node-contextmenu",I0e={[OM]:(e,t,n)=>e&&t&&n,[LM]:(e,t,n)=>e&&t&&n,[NM]:(e,t)=>e&&t,[$M]:(e,t)=>e&&t,[DM]:(e,t)=>e&&t,[FM]:(e,t)=>e&&t,[BM]:(e,t)=>e&&tn(t),[VM]:(e,t,n)=>e&&t&&n},O0e={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&tn(t)};function L0e(e,t){const n=F(new Set),s=F(new Set),{emit:a}=Ct();ge([()=>t.value,()=>e.defaultCheckedKeys],()=>Be(()=>{_(e.defaultCheckedKeys)}),{immediate:!0});const o=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:C}=t.value,x=n.value,k=new Set;for(let T=C;T>=1;--T){const R=w.get(T);R&&R.forEach(I=>{const M=I.children;let $=!I.isLeaf||I.disabled||x.has(I.key);if(M){let O=!0,B=!1;for(const U of M){const J=U.key;if(U.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,C,x=!0,k=!0)=>{const T=n.value,R=w.children;!e.checkStrictly&&x&&(R!=null&&R.length)&&(C=R.some(M=>!M.isEffectivelyChecked));const I=(M,$)=>{T[$?h8.ADD:h8.DELETE](M.key);const O=M.children;!e.checkStrictly&&O&&O.forEach(B=>{(!B.disabled||B.children)&&I(B,$)})};I(w,C),k&&o(),x&&c(w,C)},c=(w,C)=>{const{checkedNodes:x,checkedKeys:k}=v(),{halfCheckedNodes:T,halfCheckedKeys:R}=m();a(FM,w.data,{checkedKeys:k,checkedNodes:x,halfCheckedKeys:R,halfCheckedNodes:T}),a(BM,w.data,C)};function u(w=!1){return v(w).checkedKeys}function d(w=!1){return v(w).checkedNodes}function h(){return m().halfCheckedKeys}function p(){return m().halfCheckedNodes}function v(w=!1){const C=[],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),C.push(R.data))})}return{checkedKeys:x,checkedNodes:C}}function m(){const w=[],C=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:x}=t.value;s.value.forEach(k=>{const T=x.get(k);T&&(C.push(k),w.push(T.data))})}return{halfCheckedNodes:w,halfCheckedKeys:C}}function g(w){n.value.clear(),s.value.clear(),Be(()=>{_(w)})}function b(w,C){if(t!=null&&t.value&&e.showCheckbox){const x=t.value.treeNodeMap.get(w);x&&l(x,C,!1)}}function _(w){if(t!=null&&t.value){const{treeNodeMap:C}=t.value;if(e.showCheckbox&&C&&(w==null?void 0:w.length)>0){for(const x of w){const k=C.get(x);k&&!r(k)&&l(k,!0,!1,!1)}o()}}}return{updateCheckedKeys:o,toggleCheckbox:l,isChecked:r,isIndeterminate:i,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:h,getHalfCheckedNodes:p,setChecked:b,setCheckedKeys:g}}function N0e(e,t){const n=F(new Set([])),s=F(new Set([])),a=E(()=>Ze(e.filterMethod));function o(i){var l;if(!a.value)return;const c=new Set,u=s.value,d=n.value,h=[],p=((l=t.value)==null?void 0:l.treeNodes)||[],v=e.filterMethod;d.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&&d.add(b.key));const _=b.children;if(_&&m(_),!b.isLeaf){if(!c.has(b.key))d.add(b.key);else if(_){let w=!0;for(const C of _)if(!d.has(C.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 $0e(e,t){const n=F(new Set),s=F(),a=pn(),o=F(),{isIndeterminate:r,isChecked:i,toggleCheckbox:l,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:p,setCheckedKeys:v}=L0e(e,a),{doFilter:m,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=N0e(e,a),_=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.value)||cv.KEY}),w=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.children)||cv.CHILDREN}),C=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.disabled)||cv.DISABLED}),x=E(()=>{var Z;return((Z=e.props)==null?void 0:Z.label)||cv.LABEL}),k=E(()=>{var Z;const H=n.value,te=g.value,de=[],be=((Z=a.value)==null?void 0:Z.treeNodes)||[],_e=[];for(let xe=be.length-1;xe>=0;--xe)_e.push(be[xe]);for(;_e.length;){const xe=_e.pop();if(!te.has(xe.key)&&(de.push(xe),xe.children&&H.has(xe.key)))for(let Oe=xe.children.length-1;Oe>=0;--Oe)_e.push(xe.children[Oe])}return de}),T=E(()=>k.value.length>0);function R(Z){const H=new Map,te=new Map;let de=1;function be(xe,Oe=1,De=void 0){var Ne;const Ce=[];for(const Ie of xe){const Pe=$(Ie),ze={level:Oe,key:Pe,data:Ie};ze.label=B(Ie),ze.parent=De;const Je=M(Ie);ze.disabled=O(Ie),ze.isLeaf=!Je||Je.length===0,ze.expanded=n.value.has(Pe),Je&&Je.length&&(ze.children=be(Je,Oe+1,ze)),Ce.push(ze),H.set(Pe,ze),te.has(Oe)||te.set(Oe,[]),(Ne=te.get(Oe))==null||Ne.push(ze)}return Oe>de&&(de=Oe),Ce}const _e=be(Z);return{treeNodeMap:H,levelTreeNodeMap:te,maxLevel:de,treeNodes:_e}}function I(Z){const H=m(Z);H&&(n.value=H)}function M(Z){return Z[w.value]}function $(Z){return Z?Z[_.value]:""}function O(Z){return Z[C.value]}function B(Z){return Z[x.value]}function U(Z){n.value.has(Z.key)?G(Z):z(Z)}function J(Z){const H=new Set,te=a.value.treeNodeMap;n.value.forEach(de=>{const be=te.get(de);n.value.delete(be.key),be.expanded=!1}),Z.forEach(de=>{let be=te.get(de);for(;be&&!H.has(be.key);)H.add(be.key),be.expanded=!0,be=be.parent}),n.value=H}function Y(Z,H){t(OM,Z.data,Z,H),L(Z),e.expandOnClickNode&&U(Z),e.showCheckbox&&(e.checkOnClickNode||Z.isLeaf&&e.checkOnClickLeaf)&&!Z.disabled&&l(Z,!i(Z),!0)}function N(Z,H){t(LM,Z.data,Z,H)}function L(Z){K(Z)||(s.value=Z.key,t(DM,Z.data,Z))}function V(Z,H){l(Z,H)}function z(Z){const H=n.value;if(a.value&&e.accordion){const{treeNodeMap:de}=a.value;H.forEach(be=>{const _e=de.get(be);Z&&Z.level===(_e==null?void 0:_e.level)&&(H.delete(be),_e.expanded=!1)})}H.add(Z.key);const te=ve(Z.key);te&&(te.expanded=!0,t(NM,te.data,te))}function G(Z){n.value.delete(Z.key);const H=ve(Z.key);H&&(H.expanded=!1,t($M,H.data,H))}function Q(Z){return!!Z.disabled}function K(Z){const H=s.value;return H!==void 0&&H===Z.key}function ee(){var Z,H;if(s.value)return(H=(Z=a.value)==null?void 0:Z.treeNodeMap.get(s.value))==null?void 0:H.data}function ae(){return s.value}function fe(Z){s.value=Z}function ne(Z){a.value=R(Z)}function ve(Z){var H;const te=dt(Z)?$(Z):Z;return(H=a.value)==null?void 0:H.treeNodeMap.get(te)}function he(Z,H="auto"){const te=ve(Z);te&&o.value&&o.value.scrollToItem(k.value.indexOf(te),H)}function ce(Z){var H;(H=o.value)==null||H.scrollTo(Z)}return ge(()=>e.currentNodeKey,Z=>{s.value=Z},{immediate:!0}),ge(()=>e.defaultExpandedKeys,Z=>{n.value=new Set(Z)},{immediate:!0}),ge(()=>e.data,Z=>{ne(Z)},{immediate:!0}),{tree:a,flattenTree:k,isNotEmpty:T,listRef:o,getKey:$,getChildren:M,toggleExpand:U,toggleCheckbox:l,isChecked:i,isIndeterminate:r,isDisabled:Q,isCurrent:K,isForceHiddenExpandIcon:b,handleNodeClick:Y,handleNodeDrop:N,handleNodeCheck:V,getCurrentNode:ee,getCurrentKey:ae,setCurrentKey:fe,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:p,setCheckedKeys:v,filter:I,setData:ne,getNode:ve,expandNode:z,collapseNode:G,setExpandedKeys:J,scrollToNode:he,scrollTo:ce}}var D0e=W({name:"ElTreeNodeContent",props:R0e,setup(e){const t=We(f8),n=ke("tree");return()=>{const s=e.node,{data:a}=s;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:s,data:a}):at(e8,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[s==null?void 0:s.label])}}});const F0e=["aria-expanded","aria-disabled","aria-checked","data-key"];var B0e=W({name:"ElTreeNode",__name:"tree-node",props:P0e,emits:O0e,setup(e,{emit:t}){const n=e,s=t,a=We(f8),o=ke("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:$y}),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(Ze(g)){const{data:_}=v;b=g(_,v)}else b=g;return Ye(b)?{[b]:!0}:b},c=v=>{s("click",n.node,v)},u=v=>{s("drop",n.node,v)},d=()=>{s("toggle",n.node)},h=v=>{s("check",n.node,v)},p=v=>{var m,g,b,_;(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(VM,v,(_=n.node)==null?void 0:_.data,n.node)};return(v,m)=>{var g,b,_;return S(),P("div",{ref:"node$",class:D([f(o).b("node"),f(o).is("expanded",e.expanded),f(o).is("current",e.current),f(o).is("focusable",!e.disabled),f(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:it(c,["stop"]),onContextmenu:p,onDragover:m[1]||(m[1]=it(()=>{},["prevent"])),onDragenter:m[2]||(m[2]=it(()=>{},["prevent"])),onDrop:it(u,["stop"])},[A("div",{class:D(f(o).be("node","content")),style:Qe({paddingLeft:`${(e.node.level-1)*r.value}px`,height:e.itemSize+"px"})},[i.value?(S(),le(f(Xe),{key:0,class:D([f(o).is("leaf",!!((b=e.node)!=null&&b.isLeaf)),f(o).is("hidden",e.hiddenExpandIcon),{expanded:!((_=e.node)!=null&&_.isLeaf)&&e.expanded},f(o).be("node","expand-icon")]),onClick:it(d,["stop"])},{default:X(()=>[(S(),le(yt(i.value)))]),_:1},8,["class"])):ie("v-if",!0),e.showCheckbox?(S(),le(f(gr),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:h,onClick:m[0]||(m[0]=it(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ie("v-if",!0),j(f(D0e),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,F0e)}}}),V0e=W({name:"ElTreeV2",__name:"tree",props:M0e,emits:I0e,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Wn(),r=E(()=>s.itemSize);Mt(f8,{ctx:{emit:a,slots:o},props:s,instance:Ct()}),Mt(ai,void 0);const{t:i}=Ot(),l=ke("tree"),{flattenTree:c,isNotEmpty:u,listRef:d,toggleExpand:h,isIndeterminate:p,isChecked:v,isDisabled:m,isCurrent:g,isForceHiddenExpandIcon:b,handleNodeClick:_,handleNodeDrop:w,handleNodeCheck:C,toggleCheckbox:x,getCurrentNode:k,getCurrentKey:T,setCurrentKey:R,getCheckedKeys:I,getCheckedNodes:M,getHalfCheckedKeys:$,getHalfCheckedNodes:O,setChecked:B,setCheckedKeys:U,filter:J,setData:Y,getNode:N,expandNode:L,collapseNode:V,setExpandedKeys:z,scrollToNode:G,scrollTo:Q}=$0e(s,a);return t({toggleCheckbox:x,getCurrentNode:k,getCurrentKey:T,setCurrentKey:R,getCheckedKeys:I,getCheckedNodes:M,getHalfCheckedKeys:$,getHalfCheckedNodes:O,setChecked:B,setCheckedKeys:U,filter:J,setData:Y,getNode:N,expandNode:L,collapseNode:V,setExpandedKeys:z,scrollToNode:G,scrollTo:Q}),(K,ee)=>(S(),P("div",{class:D([f(l).b(),{[f(l).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[f(u)?(S(),le(f(rT),{key:0,ref_key:"listRef",ref:d,"class-name":f(l).b("virtual-list"),data:f(c),total:f(c).length,height:e.height,"item-size":r.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:X(({data:ae,index:fe,style:ne})=>[(S(),le(B0e,{key:ae[fe].key,style:Qe(ne),node:ae[fe],expanded:ae[fe].expanded,"show-checkbox":e.showCheckbox,checked:f(v)(ae[fe]),indeterminate:f(p)(ae[fe]),"item-size":r.value,disabled:f(m)(ae[fe]),current:f(g)(ae[fe]),"hidden-expand-icon":f(b)(ae[fe]),onClick:f(_),onToggle:f(h),onCheck:f(C),onDrop:f(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(),P("div",{key:1,class:D(f(l).e("empty-block"))},[ue(K.$slots,"empty",{},()=>{var ae;return[A("span",{class:D(f(l).e("empty-text"))},me((ae=e.emptyText)!=null?ae:f(i)("el.tree.emptyText")),3)]})],2))],2))}});const z0e=ht(V0e);var H0e=Object.defineProperty,W0e=(e,t,n)=>t in e?H0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P1=(e,t,n)=>W0e(e,typeof t!="symbol"?t+"":t,n);const j0e="ElUpload";class K0e extends Error{constructor(t,n,s,a){super(t),P1(this,"name","UploadAjaxError"),P1(this,"status"),P1(this,"method"),P1(this,"url"),this.status=n,this.method=s,this.url=a}}function zM(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 K0e(s,n.status,t.method,e)}function U0e(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const q0e=e=>{typeof XMLHttpRequest>"u"&&Zn(j0e,"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(zM(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(zM(n,e,t));e.onSuccess(U0e(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))Yn(r)||t.setRequestHeader(o,String(r));return t.send(s),t},HM=["text","picture","picture-card"];let G0e=1;const p8=()=>Date.now()+G0e++,WM=Me({action:{type:String,default:"#"},headers:{type:re(Object)},method:{type:String,default:"post"},data:{type:re([Object,Function,Promise]),default:()=>In({})},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:()=>In([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:HM,default:"text"},httpRequest:{type:re(Function),default:q0e},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),Y0e=Me({...WM,beforeUpload:{type:re(Function),default:Yt},beforeRemove:{type:re(Function)},onRemove:{type:re(Function),default:Yt},onChange:{type:re(Function),default:Yt},onPreview:{type:re(Function),default:Yt},onSuccess:{type:re(Function),default:Yt},onProgress:{type:re(Function),default:Yt},onError:{type:re(Function),default:Yt},onExceed:{type:re(Function),default:Yt},crossorigin:{type:re(String)}}),jM=Symbol("uploadContextKey"),X0e=Me({files:{type:re(Array),default:()=>In([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:re(Function),default:Yt},listType:{type:String,values:HM,default:"text"},crossorigin:{type:re(String)}}),J0e={remove:e=>!!e},Z0e=["tabindex","aria-disabled","onKeydown"],Q0e=["src","crossorigin"],epe=["onClick"],tpe=["title"],npe=["onClick"],spe=["onClick"];var KM=W({name:"ElUploadList",__name:"upload-list",props:X0e,emits:J0e,setup(e,{emit:t}){const n=e,s=t,{t:a}=Ot(),o=ke("upload"),r=ke("icon"),i=ke("list"),l=On(),c=F(!1),u=E(()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",l.value)]),d=h=>{s("remove",h)};return(h,p)=>(S(),le(BS,{tag:"ul",class:D(u.value),name:f(i).b()},{default:X(()=>[(S(!0),P(Ve,null,wt(e.files,(v,m)=>(S(),P("li",{key:v.uid||v.name,class:D([f(o).be("list","item"),f(o).is(v.status),{focusing:c.value}]),tabindex:f(l)?void 0:0,"aria-disabled":f(l),role:"button",onKeydown:$n(g=>!f(l)&&d(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(),P("img",{key:0,class:D(f(o).be("list","item-thumbnail")),src:v.url,crossorigin:e.crossorigin,alt:""},null,10,Q0e)):ie("v-if",!0),v.status==="uploading"||e.listType!=="picture-card"?(S(),P("div",{key:1,class:D(f(o).be("list","item-info"))},[A("a",{class:D(f(o).be("list","item-name")),onClick:it(g=>e.handlePreview(v),["prevent"])},[j(f(Xe),{class:D(f(r).m("document"))},{default:X(()=>[j(f(Cg))]),_:1},8,["class"]),A("span",{class:D(f(o).be("list","item-file-name")),title:v.name},me(v.name),11,tpe)],10,epe),v.status==="uploading"?(S(),le(f(UA),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(v.percentage),style:Qe(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(f(o).be("list","item-status-label"))},[e.listType==="text"?(S(),le(f(Xe),{key:0,class:D([f(r).m("upload-success"),f(r).m("circle-check")])},{default:X(()=>[j(f(kp))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(S(),le(f(Xe),{key:1,class:D([f(r).m("upload-success"),f(r).m("check")])},{default:X(()=>[j(f(Pf))]),_:1},8,["class"])):ie("v-if",!0)],2),f(l)?ie("v-if",!0):(S(),le(f(Xe),{key:2,class:D(f(r).m("close")),onClick:g=>d(v)},{default:X(()=>[j(f(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 "),f(l)?ie("v-if",!0):(S(),P("i",{key:3,class:D(f(r).m("close-tip"))},me(f(a)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(S(),P("span",{key:4,class:D(f(o).be("list","item-actions"))},[A("span",{class:D(f(o).be("list","item-preview")),onClick:g=>e.handlePreview(v)},[j(f(Xe),{class:D(f(r).m("zoom-in"))},{default:X(()=>[j(f(kg))]),_:1},8,["class"])],10,npe),f(l)?ie("v-if",!0):(S(),P("span",{key:0,class:D(f(o).be("list","item-delete")),onClick:g=>d(v)},[j(f(Xe),{class:D(f(r).m("delete"))},{default:X(()=>[j(f(qx))]),_:1},8,["class"])],10,spe))],2)):ie("v-if",!0)])],42,Z0e))),128)),ue(h.$slots,"append")]),_:3},8,["class","name"]))}});const ape=Me({...WM,beforeUpload:{type:re(Function),default:Yt},onRemove:{type:re(Function),default:Yt},onStart:{type:re(Function),default:Yt},onSuccess:{type:re(Function),default:Yt},onProgress:{type:re(Function),default:Yt},onError:{type:re(Function),default:Yt},onExceed:{type:re(Function),default:Yt}}),ope=Me({disabled:{type:Boolean,default:void 0},directory:Boolean}),rpe={file:e=>Ae(e)},UM="ElUploadDrag";var ipe=W({name:UM,__name:"upload-dragger",props:ope,emits:rpe,setup(e,{emit:t}){const n=e,s=t;We(jM)||Zn(UM,"usage: <el-upload><el-upload-dragger /></el-upload>");const o=ke("upload"),r=F(!1),i=On(),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((C,x)=>v.readEntries(C,x)),g=[];let b=await m();for(;b.length>0;)g.push(...b),b=await m();const _=g.map(C=>c(C).catch(()=>[])),w=await Promise.all(_);return cg(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(_=>{var w;return(w=_==null?void 0:_.webkitGetAsEntry)==null?void 0:w.call(_)}).filter(_=>_),b=await Promise.all(g.map(c));s("file",cg(b));return}v.forEach((g,b)=>{var _;const w=m[b],C=(_=w==null?void 0:w.webkitGetAsEntry)==null?void 0:_.call(w);C&&(g.isDirectory=C.isDirectory)}),s("file",v)},d=()=>{i.value||(r.value=!0)},h=p=>{p.currentTarget.contains(p.relatedTarget)||(r.value=!1)};return(p,v)=>(S(),P("div",{class:D([f(o).b("dragger"),f(o).is("dragover",r.value)]),onDrop:it(u,["prevent"]),onDragover:it(d,["prevent"]),onDragleave:it(h,["prevent"])},[ue(p.$slots,"default")],34))}});const lpe=["tabindex","aria-disabled","onKeydown"],cpe=["name","disabled","multiple","accept","webkitdirectory"];var qM=W({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:ape,setup(e,{expose:t}){const n=e,s=ke("upload"),a=On(),o=pn({}),r=pn(),i=m=>{if(m.length===0)return;const{autoUpload:g,limit:b,fileList:_,multiple:w,onStart:C,onExceed:x}=n;if(b&&_.length+m.length>b){x(m,_);return}w||(m=m.slice(0,1));for(const k of m){const T=k;T.uid=p8(),C(T),g&&l(T)}},l=async m=>{if(r.value.value="",!n.beforeUpload)return u(m);let g,b={};try{const w=n.data,C=n.beforeUpload(m);b=I0(n.data)?dg(n.data):n.data,g=await C,I0(n.data)&&Dn(w,b)&&(b=dg(n.data))}catch{g=!1}if(g===!1){n.onRemove(m);return}let _=m;g instanceof Blob&&(g instanceof File?_=g:_=new File([g],m.name,{type:m.type})),u(Object.assign(_,{uid:m.uid}),b)},c=async(m,g)=>Ze(m)?m(g):m,u=async(m,g)=>{const{headers:b,data:_,method:w,withCredentials:C,name:x,action:k,onProgress:T,onSuccess:R,onError:I,httpRequest:M}=n;try{g=await c(g??_,m)}catch{n.onRemove(m);return}const{uid:$}=m,O={headers:b||{},withCredentials:C,file:m,data:g,method:w,filename:x,action:k,onProgress:U=>{T(U,m)},onSuccess:U=>{R(U,m),delete o.value[$]},onError:U=>{I(U,m),delete o.value[$]}},B=M(O);o.value[$]=B,B instanceof Promise&&B.then(O.onSuccess,O.onError)},d=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=>{Nx(o.value).filter(m?([b])=>String(m.uid)===b:()=>!0).forEach(([b,_])=>{_ instanceof XMLHttpRequest&&_.abort(),delete o.value[b]})},upload:l}),(m,g)=>(S(),P("div",{class:D([f(s).b(),f(s).m(e.listType),f(s).is("drag",e.drag),f(s).is("disabled",f(a))]),tabindex:f(a)?void 0:0,"aria-disabled":f(a),role:"button",onClick:h,onKeydown:$n(it(p,["self"]),["enter","space"])},[e.drag?(S(),le(ipe,{key:0,disabled:f(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(f(s).e("input")),name:e.name,disabled:f(a),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:d,onClick:g[0]||(g[0]=it(()=>{},["stop"]))},null,42,cpe)],42,lpe))}});const GM="ElUpload",YM=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},upe=(e,t)=>{const n=kx(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=>{Be(()=>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))},d=v=>{Yn(v.uid)&&(v.uid=p8());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||Zn(GM,"file to be removed not found");const g=b=>{a(b),r(b),e.onRemove(b,n.value),YM(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 ge(()=>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(_){e.onError(_,m,n.value)}return m}))}),ge(n,v=>{for(const m of v)m.uid||(m.uid=p8()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:o,handleError:l,handleProgress:c,handleStart:d,handleSuccess:u,handleRemove:h,submit:p,revokeFileObjectURL:YM}};var dpe=W({name:"ElUpload",__name:"upload",props:Y0e,setup(e,{expose:t}){const n=e,s=On(),a=pn(),{abort:o,submit:r,clearFiles:i,uploadFiles:l,handleStart:c,handleError:u,handleRemove:d,handleSuccess:h,handleProgress:p,revokeFileObjectURL:v}=upe(n,a),m=E(()=>n.listType==="picture-card"),g=E(()=>({...n,fileList:l.value,onStart:c,onProgress:p,onSuccess:h,onError:u,onRemove:d}));return Xt(()=>{l.value.forEach(v)}),Mt(jM,{accept:Qt(n,"accept")}),t({abort:o,submit:r,clearFiles:i,handleStart:c,handleRemove:d}),(b,_)=>(S(),P("div",null,[m.value&&e.showFileList?(S(),le(KM,{key:0,disabled:f(s),"list-type":e.listType,files:f(l),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:f(d)},Ta({append:X(()=>[j(qM,_t({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:C})=>[ue(b.$slots,"file",{file:w,index:C})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ie("v-if",!0),!m.value||m.value&&!e.showFileList?(S(),le(qM,_t({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(),le(KM,{key:3,disabled:f(s),"list-type":e.listType,files:f(l),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:f(d)},Ta({_:2},[b.$slots.file?{name:"default",fn:X(({file:w,index:C})=>[ue(b.$slots,"file",{file:w,index:C})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ie("v-if",!0)]))}});const fpe=ht(dpe),hpe=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 ppe(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function vpe(e){return Object.keys(e).map(t=>`${ppe(t)}: ${e[t]};`).join(" ")}function mpe(){return window.devicePixelRatio||1}const gpe=(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},bpe={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function v8(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 ype(){function e(t,n,s,a,o,r,i,l,c){const[u,d,h,p]=v8(a,o,s);let v=0;if(t instanceof HTMLImageElement)u.drawImage(t,0,0,h,p);else{const{color:K,fontSize:ee,fontStyle:ae,fontWeight:fe,fontFamily:ne,textAlign:ve,textBaseline:he}=r,ce=Number(ee)*s;u.font=`${ae} normal ${fe} ${ce}px/${o}px ${ne}`,u.fillStyle=K,u.textAlign=ve,u.textBaseline=he;const Z=Ae(t)?t:[t];if(he!=="top"&&Z[0]){const H=u.measureText(Z[0]);u.textBaseline="top";const te=u.measureText(Z[0]);v=H.actualBoundingBoxAscent-te.actualBoundingBoxAscent}Z==null||Z.forEach((H,te)=>{const[de,be]=bpe[ve];u.fillText(H??"",h*de+c*be,te*(ce+r.fontGap*s))})}const m=Math.PI/180*Number(n),g=Math.max(a,o),[b,_,w]=v8(g,g,s);b.translate(w/2,w/2),b.rotate(m),h>0&&p>0&&b.drawImage(d,-h/2,-p/2);function C(K,ee){const ae=K*Math.cos(m)-ee*Math.sin(m),fe=K*Math.sin(m)+ee*Math.cos(m);return[ae,fe]}let x=0,k=0,T=0,R=0;const I=h/2,M=p/2;[[0-I,0-M],[0+I,0-M],[0+I,0+M],[0-I,0+M]].forEach(([K,ee])=>{const[ae,fe]=C(K,ee);x=Math.min(x,ae),k=Math.max(k,ae),T=Math.min(T,fe),R=Math.max(R,fe)});const O=x+w/2,B=T+w/2,U=k-x,J=R-T,Y=i*s,N=l*s,L=(U+Y)*2,V=J+N,[z,G]=v8(L,V);function Q(K=0,ee=0){z.drawImage(_,O,B,U,J,K,ee+v,U,J)}return Q(),Q(U+Y,-J/2-N/2),Q(U+Y,+J/2+N/2),[G.toDataURL(),L/s,V/s]}return e}var wpe=W({name:"ElWatermark",__name:"watermark",props:hpe,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"}),d=E(()=>n.gap[0]),h=E(()=>n.gap[1]),p=E(()=>d.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`,$},_=pn(null),w=pn(),C=F(!1),x=()=>{w.value&&(w.value.remove(),w.value=void 0)},k=($,O)=>{var B;_.value&&w.value&&(C.value=!0,w.value.setAttribute("style",vpe({...b(),backgroundImage:`url('${$}')`,backgroundSize:`${Math.floor(O)}px`})),(B=_.value)==null||B.append(w.value),setTimeout(()=>{C.value=!1}))},T=$=>{let O=120,B=64,U=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:ae,fontBoundingBoxAscent:fe,fontBoundingBoxDescent:ne,actualBoundingBoxAscent:ve,actualBoundingBoxDescent:he}=$.measureText(ee),ce=Dt(fe)?ve+he:fe+ne;ae>G&&(G=Math.ceil(ae)),ce>Q&&(Q=Math.ceil(ce))}),O=G,B=Q*z.length+(z.length-1)*s.value;const K=Math.PI/180*Number(V);U=Math.ceil(Math.abs(Math.sin(K)*B)/2),O+=U}return[N??O,L??B,U]},R=ype(),I=()=>{const O=document.createElement("canvas").getContext("2d"),B=n.image,U=n.content,J=n.rotate;if(O){w.value||(w.value=document.createElement("div"));const Y=mpe(),[N,L,V]=T(O),z=G=>{const[Q,K]=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},d.value,h.value,V);k(Q,K)};if(B){const G=new Image;G.onload=()=>{z(G)},G.onerror=()=>{z(U)},G.crossOrigin="anonymous",G.referrerPolicy="no-referrer",G.src=B}else z(U)}};return xt(()=>{I()}),ge(()=>n,()=>{I()},{deep:!0,flush:"post"}),Xt(()=>{x()}),yp(_,$=>{C.value||$.forEach(O=>{gpe(O,w.value)&&(x(),I())})},{attributes:!0,subtree:!0,childList:!0}),($,O)=>(S(),P("div",{ref_key:"containerRef",ref:_,style:Qe([t])},[ue($.$slots,"default")],4))}});const _pe=ht(wpe),Cpe=["absolute","fixed"],Spe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],m8=Me({placement:{type:re(String),values:Spe,default:"bottom"},reference:{type:re(Object),default:null},strategy:{type:re(String),values:Cpe,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),xpe={close:()=>!0},kpe=Me({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:nn},placement:m8.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:Sp.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),Epe={[lt]:e=>tn(e),"update:current":e=>nt(e),close:e=>nt(e),finish:()=>!0,change:e=>nt(e)},Ape=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,R1=Math.round,I1=Math.floor,ci=e=>({x:e,y:e}),Tpe={left:"right",right:"left",bottom:"top",top:"bottom"},Mpe={start:"end",end:"start"};function g8(e,t,n){return Du(e,ah(t,n))}function uv(e,t){return typeof e=="function"?e(t):e}function Fu(e){return e.split("-")[0]}function dv(e){return e.split("-")[1]}function XM(e){return e==="x"?"y":"x"}function b8(e){return e==="y"?"height":"width"}const Ppe=new Set(["top","bottom"]);function vc(e){return Ppe.has(Fu(e))?"y":"x"}function y8(e){return XM(vc(e))}function Rpe(e,t,n){n===void 0&&(n=!1);const s=dv(e),a=y8(e),o=b8(a);let r=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=O1(r)),[r,O1(r)]}function Ipe(e){const t=O1(e);return[w8(e),t,w8(t)]}function w8(e){return e.replace(/start|end/g,t=>Mpe[t])}const JM=["left","right"],ZM=["right","left"],Ope=["top","bottom"],Lpe=["bottom","top"];function Npe(e,t,n){switch(e){case"top":case"bottom":return n?t?ZM:JM:t?JM:ZM;case"left":case"right":return t?Ope:Lpe;default:return[]}}function $pe(e,t,n,s){const a=dv(e);let o=Npe(Fu(e),n==="start",s);return a&&(o=o.map(r=>r+"-"+a),t&&(o=o.concat(o.map(w8)))),o}function O1(e){return e.replace(/left|right|bottom|top/g,t=>Tpe[t])}function Dpe(e){return{top:0,right:0,bottom:0,left:0,...e}}function QM(e){return typeof e!="number"?Dpe(e):{top:e,right:e,bottom:e,left:e}}function L1(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 e7(e,t,n){let{reference:s,floating:a}=e;const o=vc(t),r=y8(t),i=b8(r),l=Fu(t),c=o==="y",u=s.x+s.width/2-a.width/2,d=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:d};break;case"left":p={x:s.x-a.width,y:d};break;default:p={x:s.x,y:s.y}}switch(dv(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 t7(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:d="floating",altBoundary:h=!1,padding:p=0}=uv(t,e),v=QM(p),g=i[h?d==="floating"?"reference":"floating":d],b=L1(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})),_=d==="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)),C=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=L1(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:_,offsetParent:w,strategy:l}):_);return{top:(b.top-x.top+v.top)/C.y,bottom:(x.bottom-b.bottom+v.bottom)/C.y,left:(b.left-x.left+v.left)/C.x,right:(x.right-b.right+v.right)/C.x}}const Fpe=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:d}=e7(c,s,l),h=s,p={},v=0;for(let g=0;g<i.length;g++){var m;const{name:b,fn:_}=i[g],{x:w,y:C,data:x,reset:k}=await _({x:u,y:d,initialPlacement:s,placement:h,strategy:a,middlewareData:p,rects:c,platform:{...r,detectOverflow:(m=r.detectOverflow)!=null?m:t7},elements:{reference:e,floating:t}});u=w??u,d=C??d,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:d}=e7(c,h,l)),g=-1)}return{x:u,y:d,placement:h,strategy:a,middlewareData:p}},Bpe=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}=uv(e,t)||{};if(c==null)return{};const d=QM(u),h={x:n,y:s},p=y8(a),v=b8(p),m=await r.getDimensions(c),g=p==="y",b=g?"top":"left",_=g?"bottom":"right",w=g?"clientHeight":"clientWidth",C=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=C/2-x/2,I=T/2-m[v]/2-1,M=ah(d[b],I),$=ah(d[_],I),O=M,B=T-m[v]-$,U=T/2-m[v]/2+R,J=g8(O,U,B),Y=!l.arrow&&dv(a)!=null&&U!==J&&o.reference[v]/2-(U<O?M:$)-m[v]/2<0,N=Y?U<O?U-O:U-B:0;return{[p]:h[p]+N,data:{[p]:J,centerOffset:U-J-N,...Y&&{alignmentOffset:N}},reset:Y}}}),Vpe=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:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...g}=uv(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=Fu(a),_=vc(i),w=Fu(i)===i,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=h||(w||!m?[O1(i)]:Ipe(i)),k=v!=="none";!h&&k&&x.push(...$pe(i,m,v,C));const T=[i,...x],R=await l.detectOverflow(t,g),I=[];let M=((s=o.flip)==null?void 0:s.overflows)||[];if(u&&I.push(R[b]),d){const U=Rpe(a,r,C);I.push(R[U[0]],R[U[1]])}if(M=[...M,{placement:a,overflows:I}],!I.every(U=>U<=0)){var $,O;const U=((($=o.flip)==null?void 0:$.index)||0)+1,J=T[U];if(J&&(!(d==="alignment"?_!==vc(J):!1)||M.every(L=>vc(L.placement)===_?L.overflows[0]>0:!0)))return{data:{index:U,overflows:M},reset:{placement:J}};let Y=(O=M.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=M.filter(L=>{if(k){const V=vc(L.placement);return V===_||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{}}}},zpe=new Set(["left","top"]);async function Hpe(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=dv(n),l=vc(n)==="y",c=zpe.has(r)?-1:1,u=o&&l?-1:1,d=uv(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.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 Wpe=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 Hpe(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}}}}},jpe=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:_,y:w}=b;return{x:_,y:w}}},...c}=uv(e,t),u={x:n,y:s},d=await o.detectOverflow(t,c),h=vc(Fu(a)),p=XM(h);let v=u[p],m=u[h];if(r){const b=p==="y"?"top":"left",_=p==="y"?"bottom":"right",w=v+d[b],C=v-d[_];v=g8(w,v,C)}if(i){const b=h==="y"?"top":"left",_=h==="y"?"bottom":"right",w=m+d[b],C=m-d[_];m=g8(w,m,C)}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 N1(){return typeof window<"u"}function oh(e){return n7(e)?(e.nodeName||"").toLowerCase():"#document"}function vo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ui(e){var t;return(t=(n7(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function n7(e){return N1()?e instanceof Node||e instanceof vo(e).Node:!1}function wr(e){return N1()?e instanceof Element||e instanceof vo(e).Element:!1}function di(e){return N1()?e instanceof HTMLElement||e instanceof vo(e).HTMLElement:!1}function s7(e){return!N1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vo(e).ShadowRoot}const Kpe=new Set(["inline","contents"]);function fv(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=_r(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!Kpe.has(a)}const Upe=new Set(["table","td","th"]);function qpe(e){return Upe.has(oh(e))}const Gpe=[":popover-open",":modal"];function $1(e){return Gpe.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ype=["transform","translate","scale","rotate","perspective"],Xpe=["transform","translate","scale","rotate","perspective","filter"],Jpe=["paint","layout","strict","content"];function _8(e){const t=C8(),n=wr(e)?_r(e):e;return Ype.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)||Xpe.some(s=>(n.willChange||"").includes(s))||Jpe.some(s=>(n.contain||"").includes(s))}function Zpe(e){let t=mc(e);for(;di(t)&&!rh(t);){if(_8(t))return t;if($1(t))return null;t=mc(t)}return null}function C8(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qpe=new Set(["html","body","#document"]);function rh(e){return Qpe.has(oh(e))}function _r(e){return vo(e).getComputedStyle(e)}function D1(e){return wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mc(e){if(oh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||s7(e)&&e.host||ui(e);return s7(t)?t.host:t}function a7(e){const t=mc(e);return rh(t)?e.ownerDocument?e.ownerDocument.body:e.body:di(t)&&fv(t)?t:a7(t)}function hv(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=a7(e),o=a===((s=e.ownerDocument)==null?void 0:s.body),r=vo(a);if(o){const i=S8(r);return t.concat(r,r.visualViewport||[],fv(a)?a:[],i&&n?hv(i):[])}return t.concat(a,hv(a,[],n))}function S8(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function o7(e){const t=_r(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=di(e),o=a?e.offsetWidth:n,r=a?e.offsetHeight:s,i=R1(n)!==o||R1(s)!==r;return i&&(n=o,s=r),{width:n,height:s,$:i}}function x8(e){return wr(e)?e:e.contextElement}function ih(e){const t=x8(e);if(!di(t))return ci(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:o}=o7(t);let r=(o?R1(n.width):n.width)/s,i=(o?R1(n.height):n.height)/a;return(!r||!Number.isFinite(r))&&(r=1),(!i||!Number.isFinite(i))&&(i=1),{x:r,y:i}}const eve=ci(0);function r7(e){const t=vo(e);return!C8()||!t.visualViewport?eve:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tve(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==vo(e)?!1:t}function Bu(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=x8(e);let r=ci(1);t&&(s?wr(s)&&(r=ih(s)):r=ih(e));const i=tve(o,n,s)?r7(o):ci(0);let l=(a.left+i.x)/r.x,c=(a.top+i.y)/r.y,u=a.width/r.x,d=a.height/r.y;if(o){const h=vo(o),p=s&&wr(s)?vo(s):s;let v=h,m=S8(v);for(;m&&s&&p!==v;){const g=ih(m),b=m.getBoundingClientRect(),_=_r(m),w=b.left+(m.clientLeft+parseFloat(_.paddingLeft))*g.x,C=b.top+(m.clientTop+parseFloat(_.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=w,c+=C,v=vo(m),m=S8(v)}}return L1({width:u,height:d,x:l,y:c})}function F1(e,t){const n=D1(e).scrollLeft;return t?t.left+n:Bu(ui(e)).left+n}function i7(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-F1(e,n),a=n.top+t.scrollTop;return{x:s,y:a}}function nve(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const o=a==="fixed",r=ui(s),i=t?$1(t.floating):!1;if(s===r||i&&o)return n;let l={scrollLeft:0,scrollTop:0},c=ci(1);const u=ci(0),d=di(s);if((d||!d&&!o)&&((oh(s)!=="body"||fv(r))&&(l=D1(s)),di(s))){const p=Bu(s);c=ih(s),u.x=p.x+s.clientLeft,u.y=p.y+s.clientTop}const h=r&&!d&&!o?i7(r,l):ci(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 sve(e){return Array.from(e.getClientRects())}function ave(e){const t=ui(e),n=D1(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+F1(e);const i=-n.scrollTop;return _r(s).direction==="rtl"&&(r+=Du(t.clientWidth,s.clientWidth)-a),{width:a,height:o,x:r,y:i}}const l7=25;function ove(e,t){const n=vo(e),s=ui(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=C8();(!u||u&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}const c=F1(s);if(c<=0){const u=s.ownerDocument,d=u.body,h=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(s.clientWidth-d.clientWidth-p);v<=l7&&(o-=v)}else c<=l7&&(o+=c);return{width:o,height:r,x:i,y:l}}const rve=new Set(["absolute","fixed"]);function ive(e,t){const n=Bu(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,o=di(e)?ih(e):ci(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 c7(e,t,n){let s;if(t==="viewport")s=ove(e,n);else if(t==="document")s=ave(ui(e));else if(wr(t))s=ive(t,n);else{const a=r7(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return L1(s)}function u7(e,t){const n=mc(e);return n===t||!wr(n)||rh(n)?!1:_r(n).position==="fixed"||u7(n,t)}function lve(e,t){const n=t.get(e);if(n)return n;let s=hv(e,[],!1).filter(i=>wr(i)&&oh(i)!=="body"),a=null;const o=_r(e).position==="fixed";let r=o?mc(e):e;for(;wr(r)&&!rh(r);){const i=_r(r),l=_8(r);!l&&i.position==="fixed"&&(a=null),(o?!l&&!a:!l&&i.position==="static"&&!!a&&rve.has(a.position)||fv(r)&&!l&&u7(e,r))?s=s.filter(u=>u!==r):a=i,r=mc(r)}return t.set(e,s),s}function cve(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const r=[...n==="clippingAncestors"?$1(t)?[]:lve(t,this._c):[].concat(n),s],i=r[0],l=r.reduce((c,u)=>{const d=c7(t,u,a);return c.top=Du(d.top,c.top),c.right=ah(d.right,c.right),c.bottom=ah(d.bottom,c.bottom),c.left=Du(d.left,c.left),c},c7(t,i,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function uve(e){const{width:t,height:n}=o7(e);return{width:t,height:n}}function dve(e,t,n){const s=di(t),a=ui(t),o=n==="fixed",r=Bu(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const l=ci(0);function c(){l.x=F1(a)}if(s||!s&&!o)if((oh(t)!=="body"||fv(a))&&(i=D1(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?i7(a,i):ci(0),d=r.left+i.scrollLeft-l.x-u.x,h=r.top+i.scrollTop-l.y-u.y;return{x:d,y:h,width:r.width,height:r.height}}function k8(e){return _r(e).position==="static"}function d7(e,t){if(!di(e)||_r(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ui(e)===n&&(n=n.ownerDocument.body),n}function f7(e,t){const n=vo(e);if($1(e))return n;if(!di(e)){let a=mc(e);for(;a&&!rh(a);){if(wr(a)&&!k8(a))return a;a=mc(a)}return n}let s=d7(e,t);for(;s&&qpe(s)&&k8(s);)s=d7(s,t);return s&&rh(s)&&k8(s)&&!_8(s)?n:s||Zpe(e)||n}const fve=async function(e){const t=this.getOffsetParent||f7,n=this.getDimensions,s=await n(e.floating);return{reference:dve(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function hve(e){return _r(e).direction==="rtl"}const pve={convertOffsetParentRelativeRectToViewportRelativeRect:nve,getDocumentElement:ui,getClippingRect:cve,getOffsetParent:f7,getElementRects:fve,getClientRects:sve,getDimensions:uve,getScale:ih,isElement:wr,isRTL:hve};function h7(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vve(e,t){let n=null,s;const a=ui(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:d,width:h,height:p}=c;if(i||t(),!h||!p)return;const v=I1(d),m=I1(a.clientWidth-(u+h)),g=I1(a.clientHeight-(d+p)),b=I1(u),w={rootMargin:-v+"px "+-m+"px "+-g+"px "+-b+"px",threshold:Du(0,ah(1,l))||1};let C=!0;function x(k){const T=k[0].intersectionRatio;if(T!==l){if(!C)return r();T?r(!1,T):s=setTimeout(()=>{r(!1,1e-7)},1e3)}T===1&&!h7(c,e.getBoundingClientRect())&&r(),C=!1}try{n=new IntersectionObserver(x,{...w,root:a.ownerDocument})}catch{n=new IntersectionObserver(x,w)}n.observe(e)}return r(!0),o}function mve(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=x8(e),u=a||o?[...c?hv(c):[],...hv(t)]:[];u.forEach(b=>{a&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const d=c&&i?vve(c,n):null;let h=-1,p=null;r&&(p=new ResizeObserver(b=>{let[_]=b;_&&_.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&&!h7(m,b)&&n(),m=b,v=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(_=>{a&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const gve=t7,bve=Wpe,yve=jpe,wve=Vpe,_ve=Bpe,Cve=(e,t,n)=>{const s=new Map,a={platform:pve,...n},o={...a.platform,_c:s};return Fpe(e,t,{...a,platform:o})},Sve=(e,t,n,s,a)=>{const o=F(null),r=()=>{let d;return Ye(e.value)?d=document.querySelector(e.value):Ze(e.value)?d=e.value():d=e.value,d},i=()=>{const d=r();if(!d||!t.value){o.value=null;return}xve(d)||d.scrollIntoView(a.value);const{left:h,top:p,width:v,height:m}=d.getBoundingClientRect();o.value={left:h,top:p,width:v,height:m,radius:0}};xt(()=>{ge([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),Xt(()=>{window.removeEventListener("resize",i)});const l=d=>{var h;return(h=Ae(n.value.offset)?n.value.offset[d]:n.value.offset)!=null?h:6},c=E(()=>{var d;if(!o.value)return o.value;const h=l(0),p=l(1),v=((d=n.value)==null?void 0:d.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 d=r();return!s.value||!d||!window.DOMRect?d||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}},B1=Symbol("ElTour");function xve(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 kve=(e,t,n,s,a,o,r,i)=>{const l=F(),c=F(),u=F({}),d={x:l,y:c,placement:s,strategy:a,middlewareData:u},h=E(()=>{const b=[bve(f(o)),wve(),yve(),Eve()];return f(i)&&f(n)&&b.push(_ve({element:f(n)})),b}),p=async()=>{if(!Ut)return;const b=f(e),_=f(t);if(!b||!_)return;const w=await Cve(b,_,{placement:f(s),strategy:f(a),middleware:f(h)});Cp(d).forEach(C=>{d[C].value=w[C]})},v=E(()=>{if(!f(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:f(r)};const{overflow:b}=f(u);return{position:f(a),zIndex:f(r),top:f(c)!=null?`${f(c)}px`:"",left:f(l)!=null?`${f(l)}px`:"",maxWidth:b!=null&&b.maxWidth?`${b==null?void 0:b.maxWidth}px`:""}}),m=E(()=>{if(!f(i))return{};const{arrow:b}=f(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 xt(()=>{const b=f(e),_=f(t);b&&_&&(g=mve(b,_,p)),ja(()=>{p()})}),Xt(()=>{g&&g()}),{update:p,contentStyle:v,arrowStyle:m}},Eve=()=>({name:"overflow",async fn(e){const t=await gve(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Ave={style:{width:"100%",height:"100%"}},Tve=["d"];var Mve=W({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:Ape,setup(e){const t=e,{ns:n}=We(B1),s=E(()=>{var u,d;return(d=(u=t.pos)==null?void 0:u.radius)!=null?d:2}),a=E(()=>{const u=s.value,d=`a${u},${u} 0 0 1`;return{topRight:`${d} ${u},${u}`,bottomRight:`${d} ${-u},${u}`,bottomLeft:`${d} ${-u},${-u}`,topLeft:`${d} ${u},${-u}`}}),{width:o,height:r}=Iy(),i=E(()=>{const u=o.value,d=r.value,h=a.value,p=`M${u},0 L0,0 L0,${d} L${u},${d} 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 s1(Qt(t,"visible"),{ns:n}),(u,d)=>e.visible?(S(),P("div",_t({key:0,class:f(n).e("mask"),style:l.value},u.$attrs),[(S(),P("svg",Ave,[A("path",{class:D(f(n).e("hollow")),style:Qe(c.value),d:i.value},null,14,Tve)]))],16)):ie("v-if",!0)}});const Pve=["data-side"];var Rve=W({name:"ElTourContent",__name:"content",props:m8,emits:xpe,setup(e,{emit:t}){const n=e,s=t,a=F(n.placement),o=F(n.strategy),r=F(null),i=F(null);ge(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:l,arrowStyle:c}=kve(Qt(n,"reference"),r,i,a,o,Qt(n,"offset"),Qt(n,"zIndex"),Qt(n,"showArrow")),u=E(()=>a.value.split("-")[0]),{ns:d}=We(B1),h=()=>{s("close")},p=v=>{v.detail.focusReason==="pointer"&&v.preventDefault()};return(v,m)=>(S(),P("div",{ref_key:"contentRef",ref:r,style:Qe(f(l)),class:D(f(d).e("content")),"data-side":u.value,tabindex:"-1"},[j(f(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(),P("span",{key:0,ref_key:"arrowRef",ref:i,style:Qe(f(c)),class:D(f(d).e("arrow"))},null,6)):ie("v-if",!0)],14,Pve))}}),Ive=W({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(d=>{var h;((h=(d==null?void 0:d.type)||{})==null?void 0:h.name)==="ElTourStep"&&(i.push(d),l+=1)})}return r.length&&c(co((o=r[0])==null?void 0:o.children)),s!==l&&(s=l,n("update-total",l)),i.length?i[e.current]:null}}}),Ove=W({name:"ElTour",inheritAttrs:!1,__name:"tour",props:kpe,emits:Epe,setup(e,{emit:t}){const n=e,s=t,a=ke("tour"),o=F(0),r=F(),i=kx(n,"current",s,{passive:!0}),l=E(()=>{var M;return(M=r.value)==null?void 0:M.target}),c=E(()=>[a.b(),b.value==="primary"?a.m("primary"):""]),u=E(()=>{var M;return((M=r.value)==null?void 0:M.placement)||n.placement}),d=E(()=>{var M,$;return($=(M=r.value)==null?void 0:M.contentStyle)!=null?$:n.contentStyle}),h=E(()=>{var M,$;return($=(M=r.value)==null?void 0:M.mask)!=null?$:n.mask}),p=E(()=>!!h.value&&n.modelValue),v=E(()=>tn(h.value)?void 0:h.value),m=E(()=>{var M,$;return!!l.value&&(($=(M=r.value)==null?void 0:M.showArrow)!=null?$:n.showArrow)}),g=E(()=>{var M,$;return($=(M=r.value)==null?void 0:M.scrollIntoViewOptions)!=null?$:n.scrollIntoViewOptions}),b=E(()=>{var M,$;return($=(M=r.value)==null?void 0:M.type)!=null?$:n.type}),{nextZIndex:_}=wp(),w=_(),C=E(()=>{var M;return(M=n.zIndex)!=null?M:w}),{mergedPosInfo:x,triggerTarget:k}=Sve(l,Qt(n,"modelValue"),Qt(n,"gap"),h,g);ge(()=>n.modelValue,M=>{M||(i.value=0)});const T=()=>{n.closeOnPressEscape&&(s(lt,!1),s("close",i.value))},R=M=>{o.value=M},I=Wn();return Mt(B1,{currentStep:r,current:i,total:o,showClose:Qt(n,"showClose"),closeIcon:Qt(n,"closeIcon"),mergedType:b,ns:a,slots:I,updateModelValue(M){s(lt,M)},onClose(){s("close",i.value)},onFinish(){s("finish")},onChange(){s(Rt,i.value)}}),(M,$)=>(S(),P(Ve,null,[j(f(Mf),{to:e.appendTo},{default:X(()=>{var O,B;return[A("div",_t({class:c.value},M.$attrs),[j(Mve,{visible:p.value,fill:(O=v.value)==null?void 0:O.color,style:Qe((B=v.value)==null?void 0:B.style),pos:f(x),"z-index":C.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(S(),le(Rve,{key:f(i),reference:f(k),placement:u.value,"show-arrow":m.value,"z-index":C.value,style:Qe(d.value),onClose:T},{default:X(()=>[j(f(Ive),{current:f(i),onUpdateTotal:R},{default:X(()=>[ue(M.$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 Lve=Me({target:{type:re([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:nn},showArrow:{type:Boolean,default:void 0},placement:m8.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)}}),Nve={close:()=>!0},$ve=["aria-label"];var p7=W({name:"ElTourStep",__name:"step",props:Lve,emits:Nve,setup(e,{emit:t}){const n=e,s=t,{Close:a}=f9,{t:o}=Ot(),{currentStep:r,current:i,total:l,showClose:c,closeIcon:u,mergedType:d,ns:h,slots:p,updateModelValue:v,onClose:m,onFinish:g,onChange:b}=We(B1);ge(n,M=>{r.value=M},{immediate:!0});const _=E(()=>{var M;return(M=n.showClose)!=null?M:c.value}),w=E(()=>{var M,$;return($=(M=n.closeIcon)!=null?M:u.value)!=null?$:a}),C=M=>{if(M)return vp(M,["children","onClick"])},x=()=>{var M,$;i.value-=1,(M=n.prevButtonProps)!=null&&M.onClick&&(($=n.prevButtonProps)==null||$.onClick()),b()},k=()=>{var M;i.value>=l.value-1?T():i.value+=1,(M=n.nextButtonProps)!=null&&M.onClick&&n.nextButtonProps.onClick(),b()},T=()=>{R(),g()},R=()=>{v(!1),m(),s("close")},I=M=>{const $=M.target;if($!=null&&$.isContentEditable)return;switch(on(M)){case Te.left:M.preventDefault(),i.value>0&&x();break;case Te.right:M.preventDefault(),k();break}};return xt(()=>{window.addEventListener("keydown",I)}),Xt(()=>{window.removeEventListener("keydown",I)}),(M,$)=>(S(),P(Ve,null,[_.value?(S(),P("button",{key:0,"aria-label":f(o)("el.tour.close"),class:D(f(h).e("closebtn")),type:"button",onClick:R},[j(f(Xe),{class:D(f(h).e("close"))},{default:X(()=>[(S(),le(yt(w.value)))]),_:1},8,["class"])],10,$ve)):ie("v-if",!0),A("header",{class:D([f(h).e("header"),{"show-close":f(c)}])},[ue(M.$slots,"header",{},()=>[A("span",{role:"heading",class:D(f(h).e("title"))},me(e.title),3)])],2),A("div",{class:D(f(h).e("body"))},[ue(M.$slots,"default",{},()=>[A("span",null,me(e.description),1)])],2),A("footer",{class:D(f(h).e("footer"))},[A("div",{class:D(f(h).b("indicators"))},[f(p).indicators?(S(),le(yt(f(p).indicators),{key:0,current:f(i),total:f(l)},null,8,["current","total"])):(S(!0),P(Ve,{key:1},wt(f(l),(O,B)=>(S(),P("span",{key:O,class:D([f(h).b("indicator"),f(h).is("active",B===f(i))])},null,2))),128))],2),A("div",{class:D(f(h).b("buttons"))},[f(i)>0?(S(),le(f(_s),_t({key:0,size:"small",type:f(d)},C(e.prevButtonProps),{onClick:x}),{default:X(()=>{var O,B;return[Ke(me((B=(O=e.prevButtonProps)==null?void 0:O.children)!=null?B:f(o)("el.tour.previous")),1)]}),_:1},16,["type"])):ie("v-if",!0),f(i)<=f(l)-1?(S(),le(f(_s),_t({key:1,size:"small",type:f(d)==="primary"?"default":"primary"},C(e.nextButtonProps),{onClick:k}),{default:X(()=>{var O,B;return[Ke(me((B=(O=e.nextButtonProps)==null?void 0:O.children)!=null?B:f(i)===f(l)-1?f(o)("el.tour.finish"):f(o)("el.tour.next")),1)]}),_:1},16,["type"])):ie("v-if",!0)],2)],2)],64))}});const Dve=ht(Ove,{TourStep:p7}),Fve=Tn(p7),Bve=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}),Vve={change:e=>Ye(e),click:(e,t)=>e instanceof MouseEvent&&(Ye(t)||Dt(t))},v7=Symbol("anchor");function zve(e){let t=0;const n=(...s)=>{t&&Yi(t),t=Qr(()=>{e(...s),t=0})};return n.cancel=()=>{Yi(t),t=0},n}const V1=e=>{if(!Ut||e==="")return null;if(Ye(e))try{return document.querySelector(e)}catch{return null}return e};var Hve=W({name:"ElAnchor",__name:"anchor",props:Bve,emits:Vve,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Wn(),r=F(""),i=F({}),l=F(null),c=F(null),u=F(),d={};let h=!1,p=0;const v=ke("anchor"),m=E(()=>[v.b(),s.type==="underline"?v.m("underline"):"",v.m(s.direction)]),g=O=>{d[O.href]=O.el},b=O=>{delete d[O]},_=O=>{r.value!==O&&(r.value=O,a(Rt,O))};let w=null,C="";const x=O=>{if(!u.value)return;const B=V1(O);if(!B)return;if(w){if(C===O)return;w()}C=O,h=!0;const U=Vx(B,u.value),J=$3(B,U),Y=U.scrollHeight-U.clientHeight,N=Math.min(J-s.offset,Y);w=lz(u.value,p,N,s.duration,()=>{setTimeout(()=>{h=!1,C=""},20)})},k=O=>{O&&(_(O),x(O))},T=(O,B)=>{a("click",O,B),k(B)},R=zve(()=>{u.value&&(p=zx(u.value));const O=I();h||Dt(O)||_(O)}),I=()=>{if(!u.value)return;const O=zx(u.value),B=[];for(const U of Object.keys(d)){const J=V1(U);if(!J)continue;const Y=Vx(J,u.value),N=$3(J,Y);B.push({top:N-s.offset-s.bound,href:U})}B.sort((U,J)=>U.top-J.top);for(let U=0;U<B.length;U++){const J=B[U],Y=B[U+1];if(U===0&&O===0)return s.selectScrollTop?J.href:"";if(J.top<=O&&(!Y||Y.top>O))return J.href}},M=()=>{const O=V1(s.container);!O||gp(O)?u.value=window:u.value=O};en(u,"scroll",R);const $=()=>{Be(()=>{if(!l.value||!c.value||!r.value){i.value={};return}const O=d[r.value];if(!O){i.value={};return}const B=l.value.getBoundingClientRect(),U=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-U.height)/2;i.value={top:`${Y}px`,opacity:1}}})};return ge(r,$),ge(()=>{var O;return(O=o.default)==null?void 0:O.call(o)},$),xt(()=>{M();const O=decodeURIComponent(window.location.hash);V1(O)?k(O):R()}),ge(()=>s.container,()=>{M()}),Mt(v7,{ns:v,direction:s.direction,currentAnchor:r,addLink:g,removeLink:b,handleClick:T}),t({scrollTo:k}),(O,B)=>(S(),P("div",{ref_key:"anchorRef",ref:l,class:D(m.value)},[e.marker?(S(),P("div",{key:0,ref_key:"markerRef",ref:c,class:D(f(v).e("marker")),style:Qe(i.value)},null,6)):ie("v-if",!0),A("div",{class:D(f(v).e("list"))},[ue(O.$slots,"default")],2)],2))}});const Wve=Me({title:String,href:String}),jve=["href"];var m7=W({name:"ElAnchorLink",__name:"anchor-link",props:Wve,setup(e){const t=e,n=F(null),{ns:s,direction:a,currentAnchor:o,addLink:r,removeLink:i,handleClick:l}=We(v7),c=E(()=>[s.e("link"),s.is("active",o.value===t.href)]),u=d=>{l(d,t.href)};return ge(()=>t.href,(d,h)=>{Be(()=>{h&&i(h),d&&r({href:d,el:n.value})})}),xt(()=>{const{href:d}=t;d&&r({href:d,el:n.value})}),Xt(()=>{const{href:d}=t;d&&i(d)}),(d,h)=>(S(),P("div",{class:D(f(s).e("item"))},[A("a",{ref_key:"linkRef",ref:n,class:D(c.value),href:e.href,onClick:u},[ue(d.$slots,"default",{},()=>[Ke(me(e.title),1)])],10,jve),d.$slots["sub-link"]&&f(a)==="vertical"?(S(),P("div",{key:0,class:D(f(s).e("list"))},[ue(d.$slots,"sub-link")],2)):ie("v-if",!0)],2))}});const Kve=ht(Hve,{AnchorLink:m7}),Uve=Tn(m7),g7={label:"label",value:"value",disabled:"disabled"},qve=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:()=>g7},block:Boolean,size:cs,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...ca(["ariaLabel"])}),Gve={[lt]:e=>Ye(e)||nt(e)||tn(e),[Rt]:e=>Ye(e)||nt(e)||tn(e)},Yve=["id","aria-label","aria-labelledby"],Xve=["name","disabled","checked","onChange"];var Jve=W({name:"ElSegmented",__name:"segmented",props:qve,emits:Gve,setup(e,{emit:t}){const n=e,s=t,a=ke("segmented"),o=Fs(),r=ss(),i=On(),{formItem:l}=Es(),{inputId:c,isLabeledByFormItem:u}=fo(n,{formItemContext:l}),d=F(null),h=WV(),p=Kt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),v=(O,B)=>{const U=b(B);s(lt,U),s(Rt,U),O.target.checked=U===n.modelValue},m=E(()=>({...g7,...n.props})),g=O=>O,b=O=>dt(O)?O[m.value.value]:O,_=O=>dt(O)?O[m.value.label]:O,w=O=>!!(i.value||dt(O)&&O[m.value.disabled]),C=O=>n.modelValue===b(O),x=O=>n.options.find(B=>b(B)===O),k=O=>[a.e("item"),a.is("selected",C(O)),a.is("disabled",w(O))],T=()=>{if(!d.value)return;const O=d.value.querySelector(".is-selected"),B=d.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"})),M=E(()=>[a.e("item-selected"),a.is("disabled",w(x(n.modelValue))),a.is("focus-visible",p.focusVisible)]),$=E(()=>n.name||o.value);return _n(d,T),ge(h,T),ge(()=>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(),P("div",{key:0,id:f(c),ref_key:"segmentedRef",ref:d,class:D(R.value),role:"radiogroup","aria-label":f(u)?void 0:e.ariaLabel||"segmented","aria-labelledby":f(u)?f(l).labelId:void 0},[A("div",{class:D([f(a).e("group"),f(a).m(e.direction)])},[A("div",{style:Qe(I.value),class:D(M.value)},null,6),(S(!0),P(Ve,null,wt(e.options,(U,J)=>(S(),P("label",{key:J,class:D(k(U))},[A("input",{class:D(f(a).e("item-input")),type:"radio",name:$.value,disabled:w(U),checked:C(U),onChange:Y=>v(Y,U)},null,42,Xve),A("div",{class:D(f(a).e("item-label"))},[ue(O.$slots,"default",{item:g(U)},()=>[Ke(me(_(U)),1)])],2)],2))),128))],2)],10,Yve)):ie("v-if",!0)}});const Zve=ht(Jve),Qve=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},eme=(e,t,n)=>{const{selectionEnd:s}=e;if(s===null)return;const a=e.value,o=ks(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},tme=(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]}),s3()?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 d={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),d.left>=e.clientWidth&&(d.left=e.clientWidth),d},nme=Me({...Np,options:{type:re(Array),default:()=>[]},prefix:{type:re([String,Array]),default:"@",validator:e=>Ye(e)?e.length===1:e.every(t=>Ye(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:re([Boolean,Function]),default:()=>Qve,validator:e=>e===!1?!0:Ze(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:sn.popperClass,popperStyle:sn.popperStyle,popperOptions:{type:re(Object),default:()=>({})},props:{type:re(Object),default:()=>b7}}),sme={[lt]:e=>Ye(e),"whole-remove":(e,t)=>Ye(e)&&Ye(t),input:e=>Ye(e),search:(e,t)=>Ye(e)&&Ye(t),select:(e,t)=>dt(e)&&Ye(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},b7={value:"value",label:"label",disabled:"disabled"},ame=Me({options:{type:re(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),ome={select:e=>Ye(e.value)},rme=["id","aria-disabled","aria-selected","onMousemove","onClick"];var ime=W({name:"ElMentionDropdown",__name:"mention-dropdown",props:ame,emits:ome,setup(e,{expose:t,emit:n}){const s=e,a=n,o=ke("mention"),{t:r}=Ot(),i=F(-1),l=F(),c=F(),u=F(),d=(C,x)=>[o.be("dropdown","item"),o.is("hovering",i.value===x),o.is("disabled",C.disabled||s.disabled)],h=C=>{C.disabled||s.disabled||a("select",C)},p=C=>{i.value=C},v=E(()=>s.disabled||s.options.every(C=>C.disabled)),m=E(()=>s.options[i.value]),g=()=>{m.value&&a("select",m.value)},b=C=>{const{options:x}=s;if(x.length===0||v.value)return;C==="next"?(i.value++,i.value===x.length&&(i.value=0)):C==="prev"&&(i.value--,i.value<0&&(i.value=x.length-1));const k=x[i.value];if(k.disabled){b(C);return}Be(()=>_(k))},_=C=>{var x,k,T,R;const{options:I}=s,M=I.findIndex(O=>O.value===C.value),$=(x=c.value)==null?void 0:x[M];if($){const O=(T=(k=u.value)==null?void 0:k.querySelector)==null?void 0:T.call(k,`.${o.be("dropdown","wrap")}`);O&&Ny(O,$)}(R=l.value)==null||R.handleScroll()};return ge(()=>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}),(C,x)=>(S(),P("div",{ref_key:"dropdownRef",ref:u,class:D(f(o).b("dropdown"))},[C.$slots.header?(S(),P("div",{key:0,class:D(f(o).be("dropdown","header"))},[ue(C.$slots,"header")],2)):ie("v-if",!0),bt(j(f(vr),{id:e.contentId,ref_key:"scrollbarRef",ref:l,tag:"ul","wrap-class":f(o).be("dropdown","wrap"),"view-class":f(o).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:X(()=>[(S(!0),P(Ve,null,wt(e.options,(k,T)=>(S(),P("li",{id:`${e.contentId}-${T}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:T,class:D(d(k,T)),role:"option","aria-disabled":k.disabled||e.disabled||void 0,"aria-selected":i.value===T,onMousemove:R=>p(T),onClick:it(R=>h(k),["stop"])},[ue(C.$slots,"label",{item:k,index:T},()=>{var R;return[A("span",null,me((R=k.label)!=null?R:k.value),1)]})],42,rme))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[Vt,e.options.length>0&&!e.loading]]),e.loading?(S(),P("div",{key:1,class:D(f(o).be("dropdown","loading"))},[ue(C.$slots,"loading",{},()=>[Ke(me(f(r)("el.mention.loading")),1)])],2)):ie("v-if",!0),C.$slots.footer?(S(),P("div",{key:2,class:D(f(o).be("dropdown","footer"))},[ue(C.$slots,"footer")],2)):ie("v-if",!0)],2))}}),lme=W({name:"ElMention",inheritAttrs:!1,__name:"mention",props:nme,emits:sme,setup(e,{expose:t,emit:n}){const s=e,a=n,o=E(()=>Gi(s,Object.keys(Np))),r=ke("mention"),i=On(),l=Fs(),c=F(),u=F(),d=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(()=>({...b7,...s.props})),_=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&&(!!C.value.length||s.loading)),k=E(()=>{var N;return`${l.value}-${(N=d.value)==null?void 0:N.hoveringIndex}`}),T=N=>{a(lt,N),a(ns,N),U()},R=N=>{var L,V,z,G;if((L=c.value)!=null&&L.isComposing)return;const Q=on(N);switch(Q){case Te.left:case Te.right:U();break;case Te.up:case Te.down:if(!h.value)return;N.preventDefault(),(V=d.value)==null||V.navigateOptions(Q===Te.up?"prev":"next");break;case Te.enter:case Te.numpadEnter:if(!h.value){s.type!=="textarea"&&U();return}N.preventDefault(),(z=d.value)!=null&&z.hoverOption?(G=d.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:K,selectionEnd:ee,pattern:ae,prefixIndex:fe,prefix:ne}=v.value,ve=B();if(!ve)return;const he=ve.value,ce=w.value.find(H=>H.value===ae);if((Ze(s.checkIsWhole)?s.checkIsWhole(ae,ne):ce)&&K!==-1&&K+1===ee){N.preventDefault();const H=he.slice(0,fe)+he.slice(K+1);a(lt,H),a(ns,H),a("whole-remove",ae,ne);const te=fe;Be(()=>{ve.selectionStart=te,ve.selectionEnd=te,Y()})}}}},{wrapperRef:I}=tl(c,{disabled:i,afterFocus(){U()},beforeBlur(N){var L;return(L=u.value)==null?void 0:L.isFocusInsideContent(N)},afterBlur(){h.value=!1}}),M=()=>{U()},$=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),K=`${N.value}${Q?"":z}`,ee=V.slice(0,v.value.start)+K+G;a(lt,ee),a(ns,ee),a("select",$(N),v.value.prefix);const ae=v.value.start+K.length+(Q?1:0);Be(()=>{L.selectionStart=ae,L.selectionEnd=ae,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},U=()=>{setTimeout(()=>{J(),Y(),Be(()=>{var N;return(N=u.value)==null?void 0:N.updatePopper()})},0)},J=()=>{const N=B();if(!N)return;const L=tme(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=eme(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(),P("div",{ref_key:"wrapperRef",ref:I,class:D(f(r).b())},[j(f(ua),_t(_t(o.value,N.$attrs),{ref_key:"elInputRef",ref:c,"model-value":e.modelValue,disabled:f(i),role:x.value?"combobox":void 0,"aria-activedescendant":x.value?k.value||"":void 0,"aria-controls":x.value?f(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:M}),Ta({_:2},[wt(N.$slots,(V,z)=>({name:z,fn:X(G=>[ue(N.$slots,z,Ni(Hi(G)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),j(f(As),{ref_key:"tooltipRef",ref:u,visible:x.value,"popper-class":[f(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:Qe(p.value)},null,4)]),content:X(()=>[j(ime,{ref_key:"dropdownRef",ref:d,options:C.value,disabled:f(i),loading:e.loading,"content-id":f(l),"aria-label":e.ariaLabel,onSelect:O,onClick:L[0]||(L[0]=it(V=>{var z;return(z=c.value)==null?void 0:z.focus()},["stop"]))},Ta({_:2},[wt(N.$slots,(V,z)=>({name:z,fn:X(G=>[ue(N.$slots,z,Ni(Hi(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 cme=ht(lme),ume=Me({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),dme={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},y7=Symbol("splitterRootContextKey");function fme(e){const t=F(),{width:n,height:s}=Ry(t),a=E(()=>e.value==="horizontal"?n.value:s.value);return{containerEl:t,containerSize:a}}function E8(e){return Number(e.slice(0,-1))/100}function A8(e){return Number(e.slice(0,-2))}function T8(e){return Ye(e)&&e.endsWith("%")}function M8(e){return Ye(e)&&e.endsWith("px")}function hme(e,t){const n=E(()=>e.value.map(i=>i.size)),s=E(()=>e.value.length),a=F([]);ge([n,s,t],()=>{var i;let l=[],c=0;for(let d=0;d<s.value;d+=1){const h=(i=e.value[d])==null?void 0:i.size;if(T8(h))l[d]=E8(h);else if(M8(h))l[d]=A8(h)/t.value;else if(h||h===0){const p=Number(h);Number.isNaN(p)||(l[d]=p/t.value)}else c+=1,l[d]=void 0}const u=l.reduce((d,h)=>d+(h||0),0);if(u>1||!c){const d=1/u;l=l.map(h=>h===void 0?0:h*d)}else{const d=(1-u)/c;l=l.map(h=>h===void 0?d:h)}a.value=l});const o=i=>i*t.value,r=E(()=>a.value.map(o));return{percentSizes:a,pxSizes:r}}function pme(e,t,n,s){const a=g=>g*t.value||0;function o(g,b){return T8(g)?a(E8(g)):M8(g)?A8(g):g??b}const r=F(0),i=F(null);let l=[],c=Yt;const u=E(()=>e.value.map(g=>[g.min,g.max]));ge(s,()=>{if(r.value){const g=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(g)}});const d=g=>{r.value=0,i.value={index:g,confirmed:!1},l=n.value},h=(g,b)=>{var _,w;let C=null;if((!i.value||!i.value.confirmed)&&b!==0){if(b>0)C=g,i.value={index:g,confirmed:!0};else for(let B=g;B>=0;B-=1)if(l[B]>0){C=B,i.value={index:B,confirmed:!0};break}}const x=(w=C??((_=i.value)==null?void 0:_.index))!=null?w:g,k=[...l],T=x+1,R=o(u.value[x][0],0),I=o(u.value[T][0],0),M=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>M&&(O=M-k[x]),k[T]-O>$&&(O=k[T]-$),k[x]+=O,k[T]-=O,r.value=O,c=()=>{e.value.forEach((B,U)=>{B.size=k[U]}),c=Yt},s.value||c()},p=()=>{s.value&&c(),r.value=0,i.value=null,l=[]},v=[];return{lazyOffset:r,onMoveStart:d,onMoving:h,onMoveEnd:p,movingIndex:i,onCollapse:(g,b)=>{v.length||v.push(...n.value);const _=n.value,w=b==="start"?g:g+1,C=b==="start"?g+1:g,x=_[w],k=_[C];if(x!==0&&k!==0)_[w]=0,_[C]+=x,v[g]=x;else{const T=x+k,R=v[g],I=T-R;_[C]=R,_[w]=I}e.value.forEach((T,R)=>{T.size=_[R]})}}}var vme=W({name:"ElSplitter",__name:"splitter",props:ume,emits:dme,setup(e,{emit:t}){const n=ke("splitter"),s=t,a=e,o=Qt(a,"layout"),r=Qt(a,"lazy"),{containerEl:i,containerSize:l}=fme(o),{removeChild:c,children:u,addChild:d,ChildrenSorter:h}=jg(Ct(),"ElSplitterPanel");ge(u,()=>{g.value=null,u.value.forEach((M,$)=>{M.setIndex($)})});const{percentSizes:p,pxSizes:v}=hme(u,l),{lazyOffset:m,movingIndex:g,onMoveStart:b,onMoving:_,onMoveEnd:w,onCollapse:C}=pme(u,l,v,r),x=E(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${m.value}px`:void 0}));return Mt(y7,Kt({panels:u,percentSizes:p,pxSizes:v,layout:o,lazy:r,movingIndex:g,containerSize:l,onMoveStart:M=>{b(M),s("resizeStart",M,v.value)},onMoving:(M,$)=>{_(M,$),r.value||s("resize",M,v.value)},onMoveEnd:async M=>{w(),await Be(),s("resizeEnd",M,v.value)},onCollapse:(M,$)=>{C(M,$),s("collapse",M,$,v.value)},registerPanel:d,unregisterPanel:c})),(M,$)=>(S(),P("div",{ref_key:"containerEl",ref:i,class:D([f(n).b(),f(n).e(o.value)]),style:Qe(x.value)},[ue(M.$slots,"default"),j(f(h)),ie(" Prevent iframe touch events from breaking "),f(g)?(S(),P("div",{key:0,class:D([f(n).e("mask"),f(n).e(`mask-${o.value}`)])},null,2)):ie("v-if",!0)],6))}});const mme=Me({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),gme={"update:size":e=>typeof e=="number"||typeof e=="string"};function bme(e){return e&&dt(e)?e:{start:!!e,end:!!e}}function w7(e,t,n,s){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&s===0&&t>0)}var yme=W({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=ke("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 _=n.e("dragger");return{[`${_}-horizontal`]:o.value,[`${_}-vertical`]:!o.value,[`${_}-active`]:!!c.value}}),c=F(null),u=_=>{s.resizable&&(c.value=[_.pageX,_.pageY],a("moveStart",s.index),window.addEventListener("mouseup",v),window.addEventListener("mousemove",h))},d=_=>{if(s.resizable&&_.touches.length===1){_.preventDefault();const w=_.touches[0];c.value=[w.pageX,w.pageY],a("moveStart",s.index),window.addEventListener("touchend",m),window.addEventListener("touchmove",p)}},h=_=>{const{pageX:w,pageY:C}=_,x=w-c.value[0],k=C-c.value[1],T=o.value?x:k;a("moving",s.index,T)},p=_=>{if(_.touches.length===1){_.preventDefault();const w=_.touches[0],C=w.pageX-c.value[0],x=w.pageY-c.value[1],k=o.value?C: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?$o:xp),b=E(()=>o.value?$s:pr);return(_,w)=>(S(),P("div",{class:D([f(n).b()]),style:Qe(r.value)},[e.startCollapsible?(S(),P("div",{key:0,class:D([f(n).e("collapse-icon"),f(n).e(`${e.layout}-collapse-icon-start`)]),onClick:w[0]||(w[0]=C=>a("collapse",e.index,"start"))},[ue(_.$slots,"start-collapsible",{},()=>[(S(),le(yt(g.value),{style:{width:"12px",height:"12px"}}))])],2)):ie("v-if",!0),A("div",{class:D([f(n).e("dragger"),l.value,f(n).is("disabled",!e.resizable),f(n).is("lazy",e.resizable&&e.lazy)]),style:Qe(i.value),onMousedown:u,onTouchstart:d},null,38),e.endCollapsible?(S(),P("div",{key:1,class:D([f(n).e("collapse-icon"),f(n).e(`${e.layout}-collapse-icon-end`)]),onClick:w[1]||(w[1]=C=>a("collapse",e.index,"end"))},[ue(_.$slots,"end-collapsible",{},()=>[(S(),le(yt(b.value),{style:{width:"12px",height:"12px"}}))])],2)):ie("v-if",!0)],6))}});const _7="ElSplitterPanel";var C7=W({name:_7,__name:"split-panel",props:mme,emits:gme,setup(e,{expose:t,emit:n}){const s=ke("splitter-panel"),a=e,o=n,r=We(y7);r||Zn(_7,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:i,layout:l,lazy:c,containerSize:u,pxSizes:d}=bs(r),{registerPanel:h,unregisterPanel:p,onCollapse:v,onMoveEnd:m,onMoveStart:g,onMoving:b}=r,_=F(),w=Ct(),C=w.uid,x=F(0),k=E(()=>i.value[x.value]),T=L=>{x.value=L},R=E(()=>{var L;return k.value&&(L=d.value[x.value])!=null?L:0}),I=E(()=>{var L;return k.value&&(L=d.value[x.value+1])!=null?L:0}),M=E(()=>k.value?i.value[x.value+1]:null),$=E(()=>{var L;return M.value?a.resizable&&((L=M.value)==null?void 0:L.resizable)&&(R.value!==0||!a.min)&&(I.value!==0||!M.value.min):!1}),O=E(()=>k.value?x.value!==i.value.length-1:!1),B=E(()=>w7(k.value,R.value,M.value,I.value)),U=E(()=>w7(M.value,I.value,k.value,R.value));function J(L){return T8(L)?E8(L)*u.value||0:M8(L)?A8(L):L??0}let Y=!1;ge(()=>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}}),ge(()=>{var L;return(L=k.value)==null?void 0:L.size},L=>{L!==a.size&&(Y=!0,o("update:size",L),Be(()=>Y=!1))}),ge(()=>a.resizable,L=>{k.value&&(k.value.resizable=L)});const N=Kt({uid:C,getVnode:()=>w.vnode,setIndex:T,...a,collapsible:E(()=>bme(a.collapsible))});return h(N),Xt(()=>p(N)),t({splitterPanelRef:_}),(L,V)=>(S(),P(Ve,null,[A("div",_t({ref_key:"panelEl",ref:_,class:[f(s).b()],style:{flexBasis:`${R.value}px`}},L.$attrs),[ue(L.$slots,"default")],16),O.value?(S(),le(yme,{key:0,index:x.value,layout:f(l),lazy:f(c),resizable:$.value,"start-collapsible":B.value,"end-collapsible":U.value,onMoveStart:f(g),onMoving:f(b),onMoveEnd:f(m),onCollapse:f(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 wme=ht(vme,{SplitPanel:C7}),_me=Tn(C7);var Cme=[uz,hJ,BQ,xhe,jQ,KQ,XQ,xk,see,aee,_s,Lk,pte,gte,Rte,Ite,wne,bE,xne,gr,qte,M3,Ane,Vne,zne,Ug,LE,dse,hse,vse,mse,gse,bse,yse,loe,nA,voe,moe,Toe,hA,Boe,kre,Ere,Are,kA,Wie,jie,Xe,ele,LA,ua,NA,vle,wle,Dle,Fle,Ble,Vle,Kle,yce,Cce,Tce,mk,UA,vE,nne,tne,zce,jce,qce,vr,fc,Wg,dte,Eue,Rue,Iue,Xue,ede,hT,ide,fde,hde,Cde,$fe,Dfe,She,Nhe,$he,rl,e8,$se,Hhe,Uhe,qhe,As,a0e,c8,A0e,z0e,fpe,_pe,Dve,Fve,Kve,Uve,Zve,cme,wme,_me];const mo="ElInfiniteScroll",Sme=50,xme={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},P8=(e,t)=>Object.entries(xme).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},{}),S7=e=>{const{observer:t}=e[mo];t&&(t.disconnect(),delete e[mo].observer)},kme=(e,t)=>{const{container:n,containerEl:s,instance:a,observer:o,lastScrollTop:r}=e[mo],{disabled:i,distance:l}=P8(e,a),{clientHeight:c,scrollHeight:u,scrollTop:d}=s,h=d-r;if(e[mo].lastScrollTop=d,o||i||h<0)return;let p=!1;if(n===e)p=u-(c+d)<=l;else{const{clientTop:v,scrollHeight:m}=e,g=$3(e,s);p=d+c>=g+v+m-l}p&&t.call(a)};function R8(e,t){const{containerEl:n,instance:s}=e[mo],{disabled:a}=P8(e,s);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(s):S7(e))}const I8={async mounted(e,t){const{instance:n,value:s}=t;ri({scope:mo,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),Ze(s)||Zn(mo,"'v-infinite-scroll' binding value must be a function"),await Be();const{delay:a,immediate:o}=P8(e,n),r=Ly(e,!0),i=r===window?document.documentElement:r,l=nc(kme.bind(null,e,s),a);if(r){if(e[mo]={instance:n,container:r,containerEl:i,delay:a,cb:s,onScroll:l,lastScrollTop:i.scrollTop},o){const c=new MutationObserver(nc(R8.bind(null,e,s),Sme));e[mo].observer=c,c.observe(e,{childList:!0,subtree:!0}),R8(e,s)}r.addEventListener("scroll",l)}},unmounted(e){if(!e[mo])return;const{container:t,onScroll:n}=e[mo];t==null||t.removeEventListener("scroll",n),S7(e)},async updated(e){if(!e[mo])await Be();else{const{containerEl:t,cb:n,observer:s}=e[mo];t.clientHeight&&s&&R8(e,n)}}};I8.install=e=>{e.directive("InfiniteScroll",I8)};const Eme=I8;function Ame(e,t){let n;const s=F(!1),a=Kt({...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()):(la(p,v.bm("parent","relative")),p.removeAttribute("loading-number")),la(p,v.bm("parent","hidden"))}i(),d.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 d=JS(W({name:"ElLoading",setup(p,{expose:v}){const{ns:m,zIndex:g}=bg("loading");return v({ns:m,zIndex:g}),()=>{const b=a.spinner||a.svg,_=at("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[at("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=a.text?at("p",{class:m.b("text")},[a.text]):void 0;return at(ys,{name:m.b("fade"),onAfterLeave:c},{default:X(()=>[bt(j("div",{style:{backgroundColor:a.background||""},class:[m.b("mask"),a.customClass,m.is("fullscreen",a.fullscreen)]},[at("div",{class:m.b("spinner")},[_,w])]),[[Vt,a.visible]])])})}}}));Object.assign(d._context,t??{});const h=d.mount(document.createElement("div"));return{...bs(a),setText:o,removeElLoadingChild:i,close:l,handleAfterLeave:c,vm:h,get $el(){return h.$el}}}let z1;const lh=function(e={},t){if(!Ut)return;const n=Tme(e);if(n.fullscreen&&z1)return z1;const s=Ame({...n,closed:()=>{var o;(o=n.closed)==null||o.call(n),n.fullscreen&&(z1=void 0)}},t??lh._context);Mme(n,n.parent,s),x7(n,n.parent,s),n.parent.vLoadingAddClassList=()=>x7(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),Be(()=>s.visible.value=n.visible),n.fullscreen&&(z1=s),s},Tme=e=>{var t,n,s,a;let o;return Ye(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}},Mme=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Xi(document.body,"position"),n.originalOverflow.value=Xi(document.body,"overflow"),a.zIndex=s();else if(e.parent===document.body){n.originalPosition.value=Xi(document.body,"position"),await Be();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(Xi(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])a[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=Xi(t,"position");for(const[o,r]of Object.entries(a))n.$el.style[o]=r},x7=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?la(t,s.bm("parent","relative")):No(t,s.bm("parent","relative")),e.fullscreen&&e.lock?No(t,s.bm("parent","hidden")):la(t,s.bm("parent","hidden"))};lh._context=null;const pv=Symbol("ElLoading"),Vu=e=>`element-loading-${Li(e)}`,k7=(e,t)=>{var n,s,a,o;const r=t.instance,i=p=>dt(t.value)?t.value[p]:void 0,l=p=>{const v=Ye(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,d={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(d);h._context=vv._context,e[pv]={options:d,instance:h}},Pme=(e,t)=>{for(const n of Object.keys(e))vn(e[n])&&(e[n].value=t[n])},vv={mounted(e,t){t.value&&k7(e,t)},updated(e,t){const n=e[pv];if(!t.value){n==null||n.instance.close(),e[pv]=null;return}n?Pme(n.options,dt(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"))}):k7(e,t)},unmounted(e){var t;(t=e[pv])==null||t.instance.close(),e[pv]=null}};vv._context=null;const Rme={install(e){lh._context=e._context,vv._context=e._context,e.directive("loading",vv),e.config.globalProperties.$loading=lh},directive:vv,service:lh},E7=["primary","success","info","warning","error"],A7=["top","top-left","top-right","bottom","bottom-left","bottom-right"],mv="top",va=In({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:Ut?document.body:void 0}),Ime=Me({customClass:{type:String,default:va.customClass},dangerouslyUseHTMLString:{type:Boolean,default:va.dangerouslyUseHTMLString},duration:{type:Number,default:va.duration},icon:{type:nn,default:va.icon},id:{type:String,default:va.id},message:{type:re([String,Object,Function]),default:va.message},onClose:{type:re(Function),default:va.onClose},showClose:{type:Boolean,default:va.showClose},type:{type:String,values:E7,default:va.type},plain:{type:Boolean,default:va.plain},offset:{type:Number,default:va.offset},placement:{type:String,values:A7,default:va.placement},zIndex:{type:Number,default:va.zIndex},grouping:{type:Boolean,default:va.grouping},repeatNum:{type:Number,default:va.repeatNum}}),Ome={destroy:()=>!0},Cr=I2({}),Lme=e=>(Cr[e]||(Cr[e]=I2([])),Cr[e]),Nme=(e,t)=>{const n=Cr[t]||[],s=n.findIndex(r=>r.id===e),a=n[s];let o;return s>0&&(o=n[s-1]),{current:a,prev:o}},$me=(e,t)=>{const{prev:n}=Nme(e,t);return n?n.vm.exposed.bottom.value:0},Dme=(e,t,n)=>(Cr[n]||[]).findIndex(o=>o.id===e)>0?16:t,Fme=["id"],Bme=["innerHTML"];var Vme=W({name:"ElMessage",__name:"message",props:Ime,emits:Ome,setup(e,{expose:t,emit:n}){const{Close:s}=Ky,a=e,o=n,r=F(!1),{ns:i,zIndex:l}=bg("message"),{currentZIndex:c,nextZIndex:u}=l,d=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&&sc[B]}}),b=E(()=>a.icon||sc[a.type]||""),_=E(()=>a.placement||mv),w=E(()=>$me(a.id,_.value)),C=E(()=>Dme(a.id,a.offset,_.value)+w.value),x=E(()=>p.value+C.value),k=E(()=>_.value.includes("left")?i.is("left"):_.value.includes("right")?i.is("right"):i.is("center")),T=E(()=>_.value.startsWith("top")?"top":"bottom"),R=E(()=>({[T.value]:`${C.value}px`,zIndex:c.value}));function I(){a.duration!==0&&({stop:v}=Ef(()=>{$()},a.duration))}function M(){v==null||v()}function $(){h.value=!1,Be(()=>{var B;r.value||((B=a.onClose)==null||B.call(a),o("destroy"))})}function O(B){on(B)===Te.esc&&$()}return xt(()=>{I(),u(),h.value=!0}),ge(()=>a.repeatNum,()=>{M(),I()}),en(document,"keydown",O),_n(d,()=>{p.value=d.value.getBoundingClientRect().height}),t({visible:h,bottom:x,close:$}),(B,U)=>(S(),le(ys,{name:f(i).b("fade"),onBeforeEnter:U[0]||(U[0]=J=>r.value=!0),onBeforeLeave:e.onClose,onAfterLeave:U[1]||(U[1]=J=>B.$emit("destroy")),persisted:""},{default:X(()=>[bt(A("div",{id:e.id,ref_key:"messageRef",ref:d,class:D([f(i).b(),{[f(i).m(e.type)]:e.type},f(i).is("closable",e.showClose),f(i).is("plain",e.plain),f(i).is("bottom",T.value==="bottom"),k.value,e.customClass]),style:Qe(R.value),role:"alert",onMouseenter:M,onMouseleave:I},[e.repeatNum>1?(S(),le(f(xk),{key:0,value:e.repeatNum,type:m.value,class:D(f(i).e("badge"))},null,8,["value","type","class"])):ie("v-if",!0),b.value?(S(),le(f(Xe),{key:1,class:D([f(i).e("icon"),g.value])},{default:X(()=>[(S(),le(yt(b.value)))]),_:1},8,["class"])):ie("v-if",!0),ue(B.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),P(Ve,{key:1},[ie(" Caution here, message could've been compromised, never use user's input as message "),A("p",{class:D(f(i).e("content")),innerHTML:e.message},null,10,Bme)],2112)):(S(),P("p",{key:0,class:D(f(i).e("content"))},me(e.message),3))]),e.showClose?(S(),le(f(Xe),{key:2,class:D(f(i).e("closeBtn")),onClick:it($,["stop"])},{default:X(()=>[j(f(s))]),_:1},8,["class"])):ie("v-if",!0)],46,Fme),[[Vt,h.value]])]),_:3},8,["name","onBeforeLeave"]))}});let zme=1;const Hme=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Ye(e.appendTo)){let n=document.querySelector(e.appendTo);Ka(n)||(n=document.body),e.appendTo=n}},Wme=e=>{!e.placement&&Ye(fa.placement)&&fa.placement&&(e.placement=fa.placement),e.placement||(e.placement=mv),A7.includes(e.placement)||(e.placement=mv)},T7=e=>{const t=!e||Ye(e)||dn(e)||Ze(e)?{message:e}:e,n={...va,...t};return Hme(n),Wme(n),tn(fa.grouping)&&!n.grouping&&(n.grouping=fa.grouping),nt(fa.duration)&&n.duration===3e3&&(n.duration=fa.duration),nt(fa.offset)&&n.offset===16&&(n.offset=fa.offset),tn(fa.showClose)&&!n.showClose&&(n.showClose=fa.showClose),tn(fa.plain)&&!n.plain&&(n.plain=fa.plain),n},jme=e=>{const t=e.props.placement||mv,n=Cr[t],s=n.indexOf(e);if(s===-1)return;n.splice(s,1);const{handler:a}=e;a.close()},Kme=({appendTo:e,...t},n)=>{const s=`message_${zme++}`,a=t.onClose,o=document.createElement("div"),r={...t,id:s,onClose:()=>{a==null||a(),jme(u)},onDestroy:()=>{tc(null,o)}},i=j(Vme,r,Ze(r.message)||dn(r.message)?{default:Ze(r.message)?r.message:()=>r.message}:null);i.appContext=n||zu._context,tc(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(!Ut)return{close:()=>{}};const n=T7(e),s=Lme(n.placement||mv);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(nt(fa.max)&&s.length>=fa.max)return{close:()=>{}};const a=Kme(n,t);return s.push(a),a.handler};E7.forEach(e=>{zu[e]=(t={},n)=>{const s=T7(t);return zu({...s,type:e},n)}});function Ume(e){for(const t in Cr)if(jt(Cr,t)){const n=[...Cr[t]];for(const s of n)(!e||e===s.props.type)&&s.handler.close()}}function qme(e){if(!Cr[e])return;[...Cr[e]].forEach(n=>n.handler.close())}zu.closeAll=Ume,zu.closeAllByPlacement=qme,zu._context=null;const Xs=$x(zu,"$message"),O8="_trap-focus-children",Hu=[],M7=e=>{if(Hu.length===0)return;const t=on(e),n=Hu[Hu.length-1][O8];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 Gme=W({name:"ElMessageBox",directives:{TrapFocus:{beforeMount(e){e[O8]=W9(e),Hu.push(e),Hu.length<=1&&document.addEventListener("keydown",M7)},updated(e){Be(()=>{e[O8]=W9(e)})},unmounted(){Hu.shift(),Hu.length===0&&document.removeEventListener("keydown",M7)}}},components:{ElButton:_s,ElFocusTrap:Ff,ElInput:ua,ElOverlay:e6,ElIcon:Xe,...Ky},inheritAttrs:!1,props:{buttonSize:{type:String,validator:bT},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}=bg("message-box",E(()=>e.buttonSize)),{t:r}=n,{nextZIndex:i}=s,l=F(!1),c=Kt({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:jr(Ds),cancelButtonLoadingIcon:jr(Ds),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),u=E(()=>{const N=c.type;return{[a.bm("icon",N)]:N&&sc[N]}}),d=Fs(),h=Fs(),p=E(()=>{const N=c.type;return c.icon||N&&sc[N]||""}),v=E(()=>!!c.message),m=F(),g=F(),b=F(),_=F(),w=F(),C=E(()=>c.confirmButtonClass);ge(()=>c.inputValue,async N=>{await Be(),e.boxType==="prompt"&&N&&B()},{immediate:!0}),ge(()=>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?Be().then(()=>{var z;_.value&&_.value.$el&&(c.autofocus?b.value=(z=U())!=null?z:m.value:b.value=m.value)}):(c.editorErrorMessage="",c.validateError=!1))});const x=E(()=>e.draggable),k=E(()=>e.overflow),{isDragging:T}=dA(m,g,x,k);xt(async()=>{await Be(),e.closeOnHashChange&&window.addEventListener("hashchange",R)}),Xt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",R)});function R(){l.value&&(l.value=!1,Be(()=>{c.action&&t("action",c.action)}))}const I=()=>{e.closeOnClickModal&&O(c.distinguishCancelAndClose?"close":"cancel")},M=Q3(I),$=N=>{var L;if(c.inputType!=="textarea"&&!((L=_.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(Ze(L)){const V=L(c.inputValue);if(V===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(Ye(V))return c.editorErrorMessage=V,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},U=()=>{var N,L;const V=(N=_.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&&s1(l,{ns:a}),{...bs(c),ns:a,overlayEvent:M,visible:l,hasMessage:v,typeClass:u,contentId:d,inputId:h,btnSize:o,iconComponent:p,confirmButtonClasses:C,rootRef:m,focusStartRef:b,headerRef:g,inputRef:_,isDragging:T,confirmRef:w,doClose:R,handleClose:J,onCloseRequested:Y,handleWrapperClick:I,handleInputEnter:$,handleAction:O,t:r}}});const Yme=["aria-label","aria-describedby"],Xme=["aria-label"],Jme=["id"];function Zme(e,t,n,s,a,o){const r=qe("el-icon"),i=qe("el-input"),l=qe("el-button"),c=qe("el-focus-trap"),u=qe("el-overlay");return S(),le(ys,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=d=>e.$emit("vanish")),persisted:""},{default:X(()=>[bt(j(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]=(...d)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...d)),onMousedown:t[9]||(t[9]=(...d)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...d)),onMouseup:t[10]||(t[10]=(...d)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...d))},[j(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:Qe(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=it(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(S(),P("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(),le(r,{key:0,class:D([e.ns.e("status"),e.typeClass])},{default:X(()=>[(S(),le(yt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),A("span",null,me(e.title),1)],2),e.showClose?(S(),P("button",{key:0,type:"button",class:D(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=$n(it(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[j(r,{class:D(e.ns.e("close"))},{default:X(()=>[(S(),le(yt(e.closeIcon||"close")))]),_:1},8,["class"])],42,Xme)):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(),le(r,{key:0,class:D([e.ns.e("status"),e.typeClass])},{default:X(()=>[(S(),le(yt(e.iconComponent)))]),_:1},8,["class"])):ie("v-if",!0),e.hasMessage?(S(),P("div",{key:1,class:D(e.ns.e("message"))},[ue(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),le(yt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(S(),le(yt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:me(e.message)},null,8,["for","textContent"]))])],2)):ie("v-if",!0)],2),bt(A("div",{class:D(e.ns.e("input"))},[j(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=d=>e.inputValue=d),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:D({invalid:e.validateError}),onKeydown:$n(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),A("div",{class:D(e.ns.e("errormsg")),style:Qe({visibility:e.editorErrorMessage?"visible":"hidden"})},me(e.editorErrorMessage),7)],2),[[Vt,e.showInput]])],10,Jme),A("div",{class:D(e.ns.e("btns"))},[e.showCancelButton?(S(),le(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]=d=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=$n(it(d=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:X(()=>[Ke(me(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):ie("v-if",!0),bt(j(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]=d=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=$n(it(d=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:X(()=>[Ke(me(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[Vt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Yme)]),_:3},8,["z-index","overlay-class","mask"]),[[Vt,e.visible]])]),_:3})}var Qme=us(Gme,[["render",Zme]]);const gv=new Map,e2e=e=>{let t=document.body;return e.appendTo&&(Ye(e.appendTo)&&(t=document.querySelector(e.appendTo)),Ka(e.appendTo)&&(t=e.appendTo),Ka(t)||(t=document.body)),t},t2e=(e,t,n=null)=>{const s=j(Qme,e,Ze(e.message)||dn(e.message)?{default:Ze(e.message)?e.message:()=>e.message}:null);return s.appContext=n,tc(s,t),e2e(e).appendChild(t.firstElementChild),s.component},n2e=()=>document.createElement("div"),s2e=(e,t)=>{const n=n2e();e.onVanish=()=>{tc(null,n),gv.delete(a)},e.onAction=o=>{const r=gv.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=t2e(e,n,t),a=s.proxy;for(const o in e)jt(e,o)&&!jt(a.$props,o)&&(o==="closeIcon"&&dt(e[o])?a[o]=jr(e[o]):a[o]=e[o]);return a.visible=!0,a};function ch(e,t=null){if(!Ut)return Promise.reject();let n;return Ye(e)||dn(e)?e={message:e}:n=e.callback,new Promise((s,a)=>{const o=s2e(e,t??ch._context);gv.set(o,{options:e,callback:n,resolve:s,reject:a})})}const a2e=["alert","confirm","prompt"],o2e={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};a2e.forEach(e=>{ch[e]=r2e(e)});function r2e(e){return(t,n,s,a)=>{let o="";return dt(n)?(s=n,o=""):Dt(n)?o="":o=n,ch(Object.assign({title:o,message:t,type:"",...o2e[e]},s,{boxType:e}),a)}}ch.close=()=>{gv.forEach((e,t)=>{t.doClose()}),gv.clear()},ch._context=null;const gc=ch;gc.install=e=>{gc._context=e._context,e.config.globalProperties.$msgbox=gc,e.config.globalProperties.$messageBox=gc,e.config.globalProperties.$alert=gc.alert,e.config.globalProperties.$confirm=gc.confirm,e.config.globalProperties.$prompt=gc.prompt};const i2e=gc,P7=["primary","success","info","warning","error"],l2e=Me({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:nn},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:[...P7,""],default:""},zIndex:Number,closeIcon:{type:nn,default:qa}}),c2e={destroy:()=>!0},u2e=["id"],d2e=["textContent"],f2e={key:0},h2e=["innerHTML"];var p2e=W({name:"ElNotification",__name:"notification",props:l2e,emits:c2e,setup(e,{expose:t}){const n=e,{ns:s,zIndex:a}=bg("notification"),{nextZIndex:o,currentZIndex:r}=a,i=F(!1);let l;const c=E(()=>{const _=n.type;return _&&sc[n.type]?s.m(_):""}),u=E(()=>n.type&&sc[n.type]||n.icon),d=E(()=>n.position.endsWith("right")?"right":"left"),h=E(()=>n.position.startsWith("top")?"top":"bottom"),p=E(()=>{var _;return{[h.value]:`${n.offset}px`,zIndex:(_=n.zIndex)!=null?_: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(_){switch(on(_)){case Te.delete:case Te.backspace:m();break;case Te.esc:i.value&&g();break;default:v();break}}return xt(()=>{v(),o(),i.value=!0}),en(document,"keydown",b),t({visible:i,close:g}),(_,w)=>(S(),le(ys,{name:f(s).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:w[1]||(w[1]=C=>_.$emit("destroy")),persisted:""},{default:X(()=>[bt(A("div",{id:e.id,class:D([f(s).b(),e.customClass,d.value]),style:Qe(p.value),role:"alert",onMouseenter:m,onMouseleave:v,onClick:w[0]||(w[0]=(...C)=>e.onClick&&e.onClick(...C))},[u.value?(S(),le(f(Xe),{key:0,class:D([f(s).e("icon"),c.value])},{default:X(()=>[(S(),le(yt(u.value)))]),_:1},8,["class"])):ie("v-if",!0),A("div",{class:D(f(s).e("group"))},[A("h2",{class:D(f(s).e("title")),textContent:me(e.title)},null,10,d2e),bt(A("div",{class:D(f(s).e("content")),style:Qe(e.title?void 0:{margin:0})},[ue(_.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(S(),P(Ve,{key:1},[ie(" Caution here, message could've been compromised, never use user's input as message "),A("p",{innerHTML:e.message},null,8,h2e)],2112)):(S(),P("p",f2e,me(e.message),1))])],6),[[Vt,e.message]]),e.showClose?(S(),le(f(Xe),{key:0,class:D(f(s).e("closeBtn")),onClick:it(g,["stop"])},{default:X(()=>[(S(),le(yt(e.closeIcon)))]),_:1},8,["class"])):ie("v-if",!0)],2)],46,u2e),[[Vt,i.value]])]),_:3},8,["name","onBeforeLeave"]))}});const uh={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},H1=16;let v2e=1;const Wu=function(e={},t){if(!Ut)return{close:()=>{}};(Ye(e)||dn(e))&&(e={message:e});const n=e.position||"top-right";let s=e.offset||0;uh[n].forEach(({vm:u})=>{var d;s+=(((d=u.el)==null?void 0:d.offsetHeight)||0)+H1}),s+=H1;const a=`notification_${v2e++}`,o=e.onClose,r={...e,offset:s,id:a,onClose:()=>{m2e(a,n,o)}};let i=document.body;Ka(e.appendTo)?i=e.appendTo:Ye(e.appendTo)&&(i=document.querySelector(e.appendTo)),Ka(i)||(i=document.body);const l=document.createElement("div"),c=j(p2e,r,Ze(r.message)?r.message:dn(r.message)?()=>r.message:null);return c.appContext=Dt(t)?Wu._context:t,c.props.onDestroy=()=>{tc(null,l)},tc(c,l),uh[n].push({vm:c}),i.appendChild(l.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};P7.forEach(e=>{Wu[e]=(t={},n)=>((Ye(t)||dn(t))&&(t={message:t}),Wu({...t,type:e},n))});function m2e(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:d}=s[c].vm,h=Number.parseInt(u.style[i],10)-r-H1;d.props.offset=h}}function g2e(){for(const e of Object.values(uh))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function b2e(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)+H1}Wu.closeAll=g2e,Wu.updateOffsets=b2e,Wu._context=null;const y2e=$x(Wu,"$notify");var w2e=[Eme,Rme,Xs,i2e,y2e,KA],L8=tz([...Cme,...w2e]);L8.install,L8.version;const cl=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n},_2e={};function C2e(e,t){const n=qe("RouterView");return S(),le(n)}const S2e=cl(_2e,[["render",C2e]]);/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const dh=typeof document<"u";function R7(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function x2e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&R7(e.default)}const Mn=Object.assign;function N8(e,t){const n={};for(const s in t){const a=t[s];n[s]=Sr(a)?a.map(e):e(a)}return n}const bv=()=>{},Sr=Array.isArray;function I7(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const O7=/#/g,k2e=/&/g,E2e=/\//g,A2e=/=/g,T2e=/\?/g,L7=/\+/g,M2e=/%5B/g,P2e=/%5D/g,N7=/%5E/g,R2e=/%60/g,$7=/%7B/g,I2e=/%7C/g,D7=/%7D/g,O2e=/%20/g;function $8(e){return e==null?"":encodeURI(""+e).replace(I2e,"|").replace(M2e,"[").replace(P2e,"]")}function L2e(e){return $8(e).replace($7,"{").replace(D7,"}").replace(N7,"^")}function D8(e){return $8(e).replace(L7,"%2B").replace(O2e,"+").replace(O7,"%23").replace(k2e,"%26").replace(R2e,"`").replace($7,"{").replace(D7,"}").replace(N7,"^")}function N2e(e){return D8(e).replace(A2e,"%3D")}function $2e(e){return $8(e).replace(O7,"%23").replace(T2e,"%3F")}function D2e(e){return $2e(e).replace(E2e,"%2F")}function yv(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const F2e=/\/$/,B2e=e=>e.replace(F2e,"");function F8(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=W2e(s??t,n),{fullPath:s+o+r,path:s,query:a,hash:yv(r)}}function V2e(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function F7(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function z2e(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])&&B7(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 B7(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!H2e(e[n],t[n]))return!1;return!0}function H2e(e,t){return Sr(e)?V7(e,t):Sr(t)?V7(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function V7(e,t){return Sr(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function W2e(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 bc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let B8=function(e){return e.pop="pop",e.push="push",e}({}),V8=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function j2e(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),B2e(e)}const K2e=/^[^#]+#/;function U2e(e,t){return e.replace(K2e,"#")+t}function q2e(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 W1=()=>({left:window.scrollX,top:window.scrollY});function G2e(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=q2e(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 z7(e,t){return(history.state?history.state.position-t:-1)+e}const z8=new Map;function Y2e(e,t){z8.set(e,t)}function X2e(e){const t=z8.get(e);return z8.delete(e),t}function J2e(e){return typeof e=="string"||e&&typeof e=="object"}function H7(e){return typeof e=="string"||typeof e=="symbol"}let ds=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 W7=Symbol("");ds.MATCHER_NOT_FOUND+"",ds.NAVIGATION_GUARD_REDIRECT+"",ds.NAVIGATION_ABORTED+"",ds.NAVIGATION_CANCELLED+"",ds.NAVIGATION_DUPLICATED+"";function hh(e,t){return Mn(new Error,{type:e,[W7]:!0},t)}function ul(e,t){return e instanceof Error&&W7 in e&&(t==null||!!(e.type&t))}const Z2e=["params","query","hash"];function Q2e(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Z2e)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function ege(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(L7," "),o=a.indexOf("="),r=yv(o<0?a:a.slice(0,o)),i=o<0?null:yv(a.slice(o+1));if(r in t){let l=t[r];Sr(l)||(l=t[r]=[l]),l.push(i)}else t[r]=i}return t}function j7(e){let t="";for(let n in e){const s=e[n];if(n=N2e(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Sr(s)?s.map(a=>a&&D8(a)):[s&&D8(s)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function tge(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Sr(s)?s.map(a=>a==null?null:""+a):s==null?s:""+s)}return t}const nge=Symbol(""),K7=Symbol(""),j1=Symbol(""),U7=Symbol(""),H8=Symbol("");function wv(){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 yc(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(ds.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?l(h):J2e(h)?l(hh(ds.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 d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(h=>l(h))})}function W8(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(R7(l)){const c=(l.__vccOpts||l)[t];c&&o.push(yc(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 d=x2e(u)?u.default:u;r.mods[i]=u,r.components[i]=d;const h=(d.__vccOpts||d)[t];return h&&yc(h,n,s,r,i,a)()}))}}return o}function sge(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 age=()=>location.protocol+"//"+location.host;function q7(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),F7(i,"")}return F7(n,e)+s+a}function oge(e,t,n,s){let a=[],o=[],r=null;const i=({state:h})=>{const p=q7(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:B8.pop,direction:g?g>0?V8.forward:V8.back:V8.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(Mn({},h.state,{scroll:W1()}),"")}}function d(){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:d}}function G7(e,t,n,s=!1,a=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:a?W1():null}}function rge(e){const{history:t,location:n}=window,s={value:q7(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 d=e.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:age()+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,Mn({},t.state,G7(a.value.back,l,a.value.forward,!0),c,{position:a.value.position}),!0),s.value=l}function i(l,c){const u=Mn({},a.value,t.state,{forward:l,scroll:W1()});o(u.current,u,!0),o(l,Mn({},G7(s.value,l,null),{position:u.position+1},c),!1),s.value=l}return{location:s,state:a,push:i,replace:r}}function ige(e){e=j2e(e);const t=rge(e),n=oge(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const a=Mn({location:"",base:e,go:s,createHref:U2e.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 lge(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ige(e)}let ju=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Ms=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}(Ms||{});const cge={type:ju.Static,value:""},uge=/[a-zA-Z0-9_]/;function dge(e){if(!e)return[[]];if(e==="/")return[[cge]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=Ms.Static,s=n;const a=[];let o;function r(){o&&a.push(o),o=[]}let i=0,l,c="",u="";function d(){c&&(n===Ms.Static?o.push({type:ju.Static,value:c}):n===Ms.Param||n===Ms.ParamRegExp||n===Ms.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!==Ms.ParamRegExp){s=n,n=Ms.EscapeNext;continue}switch(n){case Ms.Static:l==="/"?(c&&d(),r()):l===":"?(d(),n=Ms.Param):h();break;case Ms.EscapeNext:h(),n=s;break;case Ms.Param:l==="("?n=Ms.ParamRegExp:uge.test(l)?h():(d(),n=Ms.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case Ms.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=Ms.ParamRegExpEnd:u+=l;break;case Ms.ParamRegExpEnd:d(),n=Ms.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--,u="";break;default:t("Unknown state");break}}return n===Ms.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),d(),r(),a}const Y7="[^/]+?",fge={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 hge=/[.+*?^${}()[\]/\\]/g;function pge(e,t){const n=Mn({},fge,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 d=0;d<c.length;d++){const h=c[d];let p=La.Segment+(n.sensitive?La.BonusCaseSensitive:0);if(h.type===ju.Static)d||(a+="/"),a+=h.value.replace(hge,"\\$&"),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 _=b||Y7;if(_!==Y7){p+=La.BonusCustomRegExp;try{`${_}`}catch(C){throw new Error(`Invalid custom RegExp for param "${v}" (${_}): `+C.message)}}let w=m?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;d||(w=g&&c.length<2?`(?:/${w})`:"/"+w),g&&(w+="?"),a+=w,p+=La.Dynamic,g&&(p+=La.BonusOptional),m&&(p+=La.BonusRepeatable),_===".*"&&(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),d={};if(!u)return null;for(let h=1;h<u.length;h++){const p=u[h]||"",v=o[h-1];d[v.name]=p&&v.repeatable?p.split("/"):p}return d}function l(c){let u="",d=!1;for(const h of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!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(Sr(b)&&!m)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const _=Sr(b)?b.join("/"):b;if(!_)if(g)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${v}"`);u+=_}}return u||"/"}return{re:r,score:s,keys:o,parse:i,stringify:l}}function vge(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 X7(e,t){let n=0;const s=e.score,a=t.score;for(;n<s.length&&n<a.length;){const o=vge(s[n],a[n]);if(o)return o;n++}if(Math.abs(a.length-s.length)===1){if(J7(s))return 1;if(J7(a))return-1}return a.length-s.length}function J7(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const mge={strict:!1,end:!0,sensitive:!1};function gge(e,t,n){const s=pge(dge(e.path),n),a=Mn(s,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function bge(e,t){const n=[],s=new Map;t=I7(mge,t);function a(d){return s.get(d)}function o(d,h,p){const v=!p,m=Q7(d);m.aliasOf=p&&p.record;const g=I7(t,d),b=[m];if("alias"in d){const C=typeof d.alias=="string"?[d.alias]:d.alias;for(const x of C)b.push(Q7(Mn({},m,{components:p?p.record.components:m.components,path:x,aliasOf:p?p.record:m})))}let _,w;for(const C of b){const{path:x}=C;if(h&&x[0]!=="/"){const k=h.record.path,T=k[k.length-1]==="/"?"":"/";C.path=h.record.path+(x&&T+x)}if(_=gge(C,h,g),p?p.alias.push(_):(w=w||_,w!==_&&w.alias.push(_),v&&d.name&&!eP(_)&&r(d.name)),tP(_)&&l(_),m.children){const k=m.children;for(let T=0;T<k.length;T++)o(k[T],_,p&&p.children[T])}p=p||_}return w?()=>{r(w)}:bv}function r(d){if(H7(d)){const h=s.get(d);h&&(s.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&s.delete(d.record.name),d.children.forEach(r),d.alias.forEach(r))}}function i(){return n}function l(d){const h=_ge(d,n);n.splice(h,0,d),d.record.name&&!eP(d)&&s.set(d.record.name,d)}function c(d,h){let p,v={},m,g;if("name"in d&&d.name){if(p=s.get(d.name),!p)throw hh(ds.MATCHER_NOT_FOUND,{location:d});g=p.record.name,v=Mn(Z7(h.params,p.keys.filter(w=>!w.optional).concat(p.parent?p.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),d.params&&Z7(d.params,p.keys.map(w=>w.name))),m=p.stringify(v)}else if(d.path!=null)m=d.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(ds.MATCHER_NOT_FOUND,{location:d,currentLocation:h});g=p.record.name,v=Mn({},h.params,d.params),m=p.stringify(v)}const b=[];let _=p;for(;_;)b.unshift(_.record),_=_.parent;return{name:g,path:m,params:v,matched:b,meta:wge(b)}}e.forEach(d=>o(d));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:c,removeRoute:r,clearRoutes:u,getRoutes:i,getRecordMatcher:a}}function Z7(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Q7(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:yge(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 yge(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 eP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wge(e){return e.reduce((t,n)=>Mn(t,n.meta),{})}function _ge(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;X7(e,t[o])<0?s=o:n=o+1}const a=Cge(e);return a&&(s=t.lastIndexOf(a,s-1)),s}function Cge(e){let t=e;for(;t=t.parent;)if(tP(t)&&X7(e,t)===0)return t}function tP({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function nP(e){const t=We(j1),n=We(U7),s=E(()=>{const l=f(e.to);return t.resolve(l)}),a=E(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const h=d.findIndex(fh.bind(null,u));if(h>-1)return h;const p=sP(l[c-2]);return c>1&&sP(u)===p&&d[d.length-1].path!==p?d.findIndex(fh.bind(null,l[c-2])):h}),o=E(()=>a.value>-1&&Ege(n.params,s.value.params)),r=E(()=>a.value>-1&&a.value===n.matched.length-1&&B7(n.params,s.value.params));function i(l={}){if(kge(l)){const c=t[f(e.replace)?"replace":"push"](f(e.to)).catch(bv);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 Sge(e){return e.length===1?e[0]:e}const xge=W({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:nP,setup(e,{slots:t}){const n=Kt(nP(e)),{options:s}=We(j1),a=E(()=>({[aP(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[aP(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Sge(t.default(n));return e.custom?o:at("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}});function kge(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 Ege(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(!Sr(a)||a.length!==s.length||s.some((o,r)=>o.valueOf()!==a[r].valueOf()))return!1}return!0}function sP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const aP=(e,t,n)=>e??t??n,Age=W({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=We(H8),a=E(()=>e.route||s.value),o=We(K7,0),r=E(()=>{let c=f(o);const{matched:u}=a.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),i=E(()=>a.value.matched[r.value]);Mt(K7,E(()=>r.value+1)),Mt(nge,i),Mt(H8,a);const l=F();return ge(()=>[l.value,i.value,e.name],([c,u,d],[h,p,v])=>{u&&(u.instances[d]=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[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=a.value,u=e.name,d=i.value,h=d&&d.components[u];if(!h)return oP(n.default,{Component:h,route:c});const p=d.props[u],v=p?p===!0?c.params:typeof p=="function"?p(c):p:null,g=at(h,Mn({},v,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return oP(n.default,{Component:g,route:c})||g}}});function oP(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Tge=Age;function Mge(e){const t=bge(e.routes,e),n=e.parseQuery||ege,s=e.stringifyQuery||j7,a=e.history,o=wv(),r=wv(),i=wv(),l=pn(bc);let c=bc;dh&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=N8.bind(null,ne=>""+ne),d=N8.bind(null,D2e),h=N8.bind(null,yv);function p(ne,ve){let he,ce;return H7(ne)?(he=t.getRecordMatcher(ne),ce=ve):ce=ne,t.addRoute(ce,he)}function v(ne){const ve=t.getRecordMatcher(ne);ve&&t.removeRoute(ve)}function m(){return t.getRoutes().map(ne=>ne.record)}function g(ne){return!!t.getRecordMatcher(ne)}function b(ne,ve){if(ve=Mn({},ve||l.value),typeof ne=="string"){const de=F8(n,ne,ve.path),be=t.resolve({path:de.path},ve),_e=a.createHref(de.fullPath);return Mn(de,be,{params:h(be.params),hash:yv(de.hash),redirectedFrom:void 0,href:_e})}let he;if(ne.path!=null)he=Mn({},ne,{path:F8(n,ne.path,ve.path).path});else{const de=Mn({},ne.params);for(const be in de)de[be]==null&&delete de[be];he=Mn({},ne,{params:d(de)}),ve.params=d(ve.params)}const ce=t.resolve(he,ve),Z=ne.hash||"";ce.params=u(h(ce.params));const H=V2e(s,Mn({},ne,{hash:L2e(Z),path:ce.path})),te=a.createHref(H);return Mn({fullPath:H,hash:Z,query:s===j7?tge(ne.query):ne.query||{}},ce,{redirectedFrom:void 0,href:te})}function _(ne){return typeof ne=="string"?F8(n,ne,l.value.path):Mn({},ne)}function w(ne,ve){if(c!==ne)return hh(ds.NAVIGATION_CANCELLED,{from:ve,to:ne})}function C(ne){return T(ne)}function x(ne){return C(Mn(_(ne),{replace:!0}))}function k(ne,ve){const he=ne.matched[ne.matched.length-1];if(he&&he.redirect){const{redirect:ce}=he;let Z=typeof ce=="function"?ce(ne,ve):ce;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=_(Z):{path:Z},Z.params={}),Mn({query:ne.query,hash:ne.hash,params:Z.path!=null?{}:ne.params},Z)}}function T(ne,ve){const he=c=b(ne),ce=l.value,Z=ne.state,H=ne.force,te=ne.replace===!0,de=k(he,ce);if(de)return T(Mn(_(de),{state:typeof de=="object"?Mn({},Z,de.state):Z,force:H,replace:te}),ve||he);const be=he;be.redirectedFrom=ve;let _e;return!H&&z2e(s,ce,he)&&(_e=hh(ds.NAVIGATION_DUPLICATED,{to:be,from:ce}),G(ce,ce,!0,!1)),(_e?Promise.resolve(_e):M(be,ce)).catch(xe=>ul(xe)?ul(xe,ds.NAVIGATION_GUARD_REDIRECT)?xe:z(xe):L(xe,be,ce)).then(xe=>{if(xe){if(ul(xe,ds.NAVIGATION_GUARD_REDIRECT))return T(Mn({replace:te},_(xe.to),{state:typeof xe.to=="object"?Mn({},Z,xe.to.state):Z,force:H}),ve||be)}else xe=O(be,ce,!0,te,Z);return $(be,ce,xe),xe})}function R(ne,ve){const he=w(ne,ve);return he?Promise.reject(he):Promise.resolve()}function I(ne){const ve=ee.values().next().value;return ve&&typeof ve.runWithContext=="function"?ve.runWithContext(ne):ne()}function M(ne,ve){let he;const[ce,Z,H]=sge(ne,ve);he=W8(ce.reverse(),"beforeRouteLeave",ne,ve);for(const de of ce)de.leaveGuards.forEach(be=>{he.push(yc(be,ne,ve))});const te=R.bind(null,ne,ve);return he.push(te),fe(he).then(()=>{he=[];for(const de of o.list())he.push(yc(de,ne,ve));return he.push(te),fe(he)}).then(()=>{he=W8(Z,"beforeRouteUpdate",ne,ve);for(const de of Z)de.updateGuards.forEach(be=>{he.push(yc(be,ne,ve))});return he.push(te),fe(he)}).then(()=>{he=[];for(const de of H)if(de.beforeEnter)if(Sr(de.beforeEnter))for(const be of de.beforeEnter)he.push(yc(be,ne,ve));else he.push(yc(de.beforeEnter,ne,ve));return he.push(te),fe(he)}).then(()=>(ne.matched.forEach(de=>de.enterCallbacks={}),he=W8(H,"beforeRouteEnter",ne,ve,I),he.push(te),fe(he))).then(()=>{he=[];for(const de of r.list())he.push(yc(de,ne,ve));return he.push(te),fe(he)}).catch(de=>ul(de,ds.NAVIGATION_CANCELLED)?de:Promise.reject(de))}function $(ne,ve,he){i.list().forEach(ce=>I(()=>ce(ne,ve,he)))}function O(ne,ve,he,ce,Z){const H=w(ne,ve);if(H)return H;const te=ve===bc,de=dh?history.state:{};he&&(ce||te?a.replace(ne.fullPath,Mn({scroll:te&&de&&de.scroll},Z)):a.push(ne.fullPath,Z)),l.value=ne,G(ne,ve,he,te),z()}let B;function U(){B||(B=a.listen((ne,ve,he)=>{if(!ae.listening)return;const ce=b(ne),Z=k(ce,ae.currentRoute.value);if(Z){T(Mn(Z,{replace:!0,force:!0}),ce).catch(bv);return}c=ce;const H=l.value;dh&&Y2e(z7(H.fullPath,he.delta),W1()),M(ce,H).catch(te=>ul(te,ds.NAVIGATION_ABORTED|ds.NAVIGATION_CANCELLED)?te:ul(te,ds.NAVIGATION_GUARD_REDIRECT)?(T(Mn(_(te.to),{force:!0}),ce).then(de=>{ul(de,ds.NAVIGATION_ABORTED|ds.NAVIGATION_DUPLICATED)&&!he.delta&&he.type===B8.pop&&a.go(-1,!1)}).catch(bv),Promise.reject()):(he.delta&&a.go(-he.delta,!1),L(te,ce,H))).then(te=>{te=te||O(ce,H,!1),te&&(he.delta&&!ul(te,ds.NAVIGATION_CANCELLED)?a.go(-he.delta,!1):he.type===B8.pop&&ul(te,ds.NAVIGATION_ABORTED|ds.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),$(ce,H,te)}).catch(bv)}))}let J=wv(),Y=wv(),N;function L(ne,ve,he){z(ne);const ce=Y.list();return ce.length?ce.forEach(Z=>Z(ne,ve,he)):console.error(ne),Promise.reject(ne)}function V(){return N&&l.value!==bc?Promise.resolve():new Promise((ne,ve)=>{J.add([ne,ve])})}function z(ne){return N||(N=!ne,U(),J.list().forEach(([ve,he])=>ne?he(ne):ve()),J.reset()),ne}function G(ne,ve,he,ce){const{scrollBehavior:Z}=e;if(!dh||!Z)return Promise.resolve();const H=!he&&X2e(z7(ne.fullPath,0))||(ce||!he)&&history.state&&history.state.scroll||null;return Be().then(()=>Z(ne,ve,H)).then(te=>te&&G2e(te)).catch(te=>L(te,ne,ve))}const Q=ne=>a.go(ne);let K;const ee=new Set,ae={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:m,resolve:b,options:e,push:C,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(ne){ne.component("RouterLink",xge),ne.component("RouterView",Tge),ne.config.globalProperties.$router=ae,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>f(l)}),dh&&!K&&l.value===bc&&(K=!0,C(a.location).catch(ce=>{}));const ve={};for(const ce in bc)Object.defineProperty(ve,ce,{get:()=>l.value[ce],enumerable:!0});ne.provide(j1,ae),ne.provide(U7,I2(ve)),ne.provide(H8,l);const he=ne.unmount;ee.add(ne),ne.unmount=function(){ee.delete(ne),ee.size<1&&(c=bc,B&&B(),B=null,l.value=bc,K=!1,N=!1),he()}}};function fe(ne){return ne.reduce((ve,he)=>ve.then(()=>I(he)),Promise.resolve())}return ae}function rP(){return We(j1)}const Pge={class:"card-title"},Rge={class:"batch-area"},Ige={class:"batch-input-row"},Oge={key:0,class:"batch-preview"},Lge={class:"batch-summary"},Nge={class:"batch-limit-row"},$ge={key:0,class:"batch-more-hint"},Dge={key:1,class:"batch-empty"},Fge={class:"option-row"},Bge={class:"mode-hint"},Vge={class:"option-row"},zge={class:"option-row"},Hge={class:"submit-row"},Wge=cl({__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),d=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=d.value)==null||I.click()}function _(){var I;(I=h.value)==null||I.click()}function w(I){const M=Array.from(I.target.files||[]).filter($=>$.name.toLowerCase().endsWith(".pdf"));if(!M.length){Xs.warning("未找到 PDF 文件");return}p.value=M,v.value=M.length,I.target.value=""}function C(){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(){Xs.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,M)=>{const $=qe("Upload"),O=qe("el-icon"),B=qe("UploadFilled"),U=qe("el-upload"),J=qe("el-tab-pane"),Y=qe("Link"),N=qe("el-input"),L=qe("el-button"),V=qe("el-tag"),z=qe("el-input-number"),G=qe("el-table-column"),Q=qe("el-table"),K=qe("el-tabs"),ee=qe("el-radio-button"),ae=qe("el-radio-group"),fe=qe("el-switch"),ne=qe("Grid"),ve=qe("el-checkbox"),he=qe("DataLine"),ce=qe("el-checkbox-group"),Z=qe("el-card");return S(),le(Z,{class:"upload-card",shadow:"never"},{header:X(()=>[A("div",Pge,[j(O,null,{default:X(()=>[j($)]),_:1}),M[7]||(M[7]=A("span",null,"上传 PDF 文件",-1))])]),default:X(()=>[j(K,{modelValue:s.value,"onUpdate:modelValue":M[3]||(M[3]=H=>s.value=H),class:"upload-tabs"},{default:X(()=>[j(J,{label:"本地上传",name:"file"},{default:X(()=>[j(U,{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(()=>[...M[8]||(M[8]=[A("div",{class:"upload-tip"},"支持单个 PDF 文件,最大 500MB",-1)])]),default:X(()=>[j(O,{class:"upload-icon"},{default:X(()=>[j(B)]),_:1}),M[9]||(M[9]=A("div",{class:"upload-text"},[Ke("拖拽 PDF 文件到此处,或 "),A("em",null,"点击选择")],-1))]),_:1},8,["file-list"])]),_:1}),j(J,{label:"网络 URL",name:"url"},{default:X(()=>[j(N,{modelValue:r.value,"onUpdate:modelValue":M[0]||(M[0]=H=>r.value=H),placeholder:"输入 PDF 文件的网络地址,例如 https://example.com/file.pdf",clearable:"",size:"large"},{prepend:X(()=>[j(O,null,{default:X(()=>[j(Y)]),_:1})]),_:1},8,["modelValue"])]),_:1}),j(J,{label:"批量解析",name:"batch"},{default:X(()=>[A("div",Rge,[A("div",Ige,[j(L,{icon:f(Sg),onClick:b},{default:X(()=>[...M[10]||(M[10]=[Ke(" 选择文件夹 ",-1)])]),_:1},8,["icon"]),j(L,{icon:f(Gx),onClick:_},{default:X(()=>[...M[11]||(M[11]=[Ke(" 选择多个文件 ",-1)])]),_:1},8,["icon"]),A("input",{ref_key:"folderInputRef",ref:d,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(),P("div",Oge,[A("div",Lge,[j(V,{type:"success"},{default:X(()=>[Ke(" 共检测到 "+me(p.value.length)+" 个 PDF 文件 ",1)]),_:1}),p.value.length>v.value?(S(),le(V,{key:0,type:"warning"},{default:X(()=>[Ke(" 当前限制解析前 "+me(v.value)+" 个 ",1)]),_:1})):ie("",!0),A("div",Nge,[M[13]||(M[13]=A("span",{class:"option-label"},"解析数量:",-1)),j(z,{modelValue:v.value,"onUpdate:modelValue":M[1]||(M[1]=H=>v.value=H),min:1,max:p.value.length,size:"small",step:10,style:{width:"120px"}},null,8,["modelValue","max"]),j(L,{size:"small",text:"",onClick:M[2]||(M[2]=H=>v.value=p.value.length)},{default:X(()=>[...M[12]||(M[12]=[Ke("全部",-1)])]),_:1})])]),j(Q,{data:m.value,size:"small","max-height":"200",class:"batch-table","highlight-current-row":""},{default:X(()=>[j(G,{type:"index",width:"50",label:"#"}),j(G,{prop:"name",label:"文件名","show-overflow-tooltip":""}),j(G,{prop:"size",label:"大小",width:"90",align:"right"})]),_:1},8,["data"]),p.value.length>v.value?(S(),P("div",$ge," ... 还有 "+me(p.value.length-v.value)+" 个文件未显示(超出解析数量限制) ",1)):ie("",!0),j(L,{size:"small",text:"",type:"danger",onClick:C,class:"batch-clear-btn"},{default:X(()=>[...M[14]||(M[14]=[Ke("清除",-1)])]),_:1})])):(S(),P("div",Dge,[j(O,{size:"40",color:"#c0c4cc"},{default:X(()=>[j(f(Sg))]),_:1}),M[15]||(M[15]=A("p",null,"选择包含 PDF 的文件夹,或直接选择多个 PDF 文件",-1)),M[16]||(M[16]=A("p",{class:"batch-hint"},"支持 100+ 文件批量处理,逐文件顺序解析",-1))]))])]),_:1})]),_:1},8,["modelValue"]),A("div",Fge,[M[19]||(M[19]=A("span",{class:"option-label"},"识别模式:",-1)),j(ae,{modelValue:l.value,"onUpdate:modelValue":M[4]||(M[4]=H=>l.value=H),size:"small"},{default:X(()=>[j(ee,{value:"drawing"},{default:X(()=>[...M[17]||(M[17]=[Ke("图纸模式",-1)])]),_:1}),j(ee,{value:"auto"},{default:X(()=>[...M[18]||(M[18]=[Ke("自动识别",-1)])]),_:1})]),_:1},8,["modelValue"]),A("span",Bge,me(l.value==="drawing"?"管道轴测图每页均为图纸复用第1页区域配置40并发高速识别":"VL 自动分类图纸页专项裁剪文字页通用识别40并发"),1)]),A("div",Vge,[M[20]||(M[20]=A("span",{class:"option-label"},"自动纠错:",-1)),j(fe,{modelValue:c.value,"onUpdate:modelValue":M[5]||(M[5]=H=>c.value=H),"active-text":"启用","inactive-text":"关闭"},null,8,["modelValue"]),M[21]||(M[21]=A("span",{class:"mode-hint"},"识别完成后调用 LLM 对结果进行连续性校验与自动修正",-1))]),A("div",zge,[M[24]||(M[24]=A("span",{class:"option-label"},"导出格式:",-1)),j(ce,{modelValue:i.value,"onUpdate:modelValue":M[6]||(M[6]=H=>i.value=H)},{default:X(()=>[j(ve,{value:"excel",label:"excel"},{default:X(()=>[j(O,null,{default:X(()=>[j(ne)]),_:1}),M[22]||(M[22]=Ke(" Excel ",-1))]),_:1}),j(ve,{value:"json",label:"json"},{default:X(()=>[j(O,null,{default:X(()=>[j(he)]),_:1}),M[23]||(M[23]=Ke(" JSON ",-1))]),_:1})]),_:1},8,["modelValue"])]),A("div",Hge,[j(L,{type:"primary",size:"large",disabled:!x.value,icon:s.value==="batch"?f(Fy):f(n9),onClick:R},{default:X(()=>[Ke(me(s.value==="batch"?`批量解析 ${Math.min(v.value,p.value.length)} 个文件`:"开始识别"),1)]),_:1},8,["disabled","icon"])])]),_:1})}}},[["__scopeId","data-v-a0c75cf1"]]),K1="http://localhost:8000/api/ocr";function jge(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(`${K1}/upload`,{method:"POST",body:r,signal:i.signal}).then(l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return j8(l,n)}).catch(l=>{l.name!=="AbortError"&&n({type:"error",data:{message:l.message}})}),()=>i.abort()}function Kge(e,t=["excel","json"],n,s="drawing",a=!0){const o=new AbortController;return fetch(`${K1}/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 j8(r,n)}).catch(r=>{r.name!=="AbortError"&&n({type:"error",data:{message:r.message}})}),()=>o.abort()}async function j8(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 U1(e,t){return`${K1}/download/${e}/${t}`}function Uge(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(`${K1}/batch`,{method:"POST",body:r,signal:i.signal}).then(l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return j8(l,n)}).catch(l=>{l.name!=="AbortError"&&n({type:"error",data:{message:l.message}})}),()=>i.abort()}const qge={class:"panel-header"},Gge={class:"panel-title"},Yge={class:"panel-actions"},Xge={key:0,class:"overall-progress"},Jge={class:"progress-label"},Zge={key:0,class:"current-file"},Qge={key:0,class:"current-msg"},e1e={key:1,class:"summary-row"},t1e={key:1,class:"row-msg"},n1e={key:2,class:"text-danger"},s1e={key:3,class:"text-success"},a1e=cl({__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({});ge(()=>n.batchEvents,w=>{for(const C of w)o(C)},{deep:!0});function o(w){const{type:C,data:x}=w;if(C==="file_start")a.value[x.filename]={filename:x.filename,status:"processing",pages:0,message:"准备中...",percent:0,sessionId:null,error:null,success:!1};else if(C==="file_progress"){const k=a.value[x.filename];k&&(k.message=x.message||k.message,x.percent!=null&&(k.percent=x.percent))}else C==="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}:C==="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,C)=>w+(C.pages||0),0)),d=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 C=U1(n.mergedSessionId,w),x=document.createElement("a");x.href=C,x.download=w,document.body.appendChild(x),x.click(),document.body.removeChild(x)}function _(w,C,x){const k=U1(w,C),T=C.endsWith(".xlsx")?".xlsx":".json",R=x?x.replace(/\.pdf$/i,"")+T:C,I=document.createElement("a");I.href=k,I.download=R,document.body.appendChild(I),I.click(),document.body.removeChild(I)}return(w,C)=>{const x=qe("el-icon"),k=qe("el-tag"),T=qe("el-button"),R=qe("el-progress"),I=qe("el-statistic"),M=qe("el-table-column"),$=qe("el-table"),O=qe("el-card");return S(),le(O,{class:"batch-result-card",shadow:"never"},{header:X(()=>[A("div",qge,[A("div",Gge,[j(x,null,{default:X(()=>[j(f(Fy))]),_:1}),C[3]||(C[3]=A("span",null,"批量解析结果",-1)),e.batchDone?(S(),le(k,{key:0,type:"success",size:"small"},{default:X(()=>[Ke(" 完成 "+me(l.value)+"/"+me(e.totalFiles),1)]),_:1})):ie("",!0),c.value>0?(S(),le(k,{key:1,type:"danger",size:"small"},{default:X(()=>[Ke(" 失败 "+me(c.value),1)]),_:1})):ie("",!0)]),A("div",Yge,[e.mergedSessionId?(S(),P(Ve,{key:0},[m.value?(S(),le(T,{key:0,type:"primary",size:"small",icon:f(Qi),onClick:C[0]||(C[0]=B=>b("result.xlsx"))},{default:X(()=>[...C[4]||(C[4]=[Ke("下载合并 Excel",-1)])]),_:1},8,["icon"])):ie("",!0),g.value?(S(),le(T,{key:1,size:"small",icon:f(Qi),onClick:C[1]||(C[1]=B=>b("result.json"))},{default:X(()=>[...C[5]||(C[5]=[Ke("下载合并 JSON",-1)])]),_:1},8,["icon"])):ie("",!0)],64)):ie("",!0),j(T,{size:"small",plain:"",onClick:C[2]||(C[2]=B=>s("reset"))},{default:X(()=>[...C[6]||(C[6]=[Ke("重新开始",-1)])]),_:1})])])]),default:X(()=>[e.batchDone?ie("",!0):(S(),P("div",Xge,[A("div",Jge,[Ke(" 已完成 "+me(i.value)+" / "+me(e.totalFiles)+" 个文件 ",1),p.value?(S(),P("span",Zge," — 正在处理:"+me(p.value),1)):ie("",!0)]),j(R,{percentage:d.value,"stroke-width":10,striped:"","striped-flow":"",duration:10,status:""},null,8,["percentage"]),v.value?(S(),P("div",Qge,me(v.value),1)):ie("",!0)])),e.batchDone?(S(),P("div",e1e,[j(I,{title:"总文件数",value:e.totalFiles},null,8,["value"]),j(I,{title:"成功解析",value:l.value,"value-style":"color:#67c23a"},null,8,["value"]),j(I,{title:"失败文件",value:c.value,"value-style":"color:#f56c6c"},null,8,["value"]),j(I,{title:"合计页数",value:u.value},null,8,["value"])])):ie("",!0),j($,{data:r.value,size:"small",class:"file-table","max-height":"420",stripe:""},{default:X(()=>[j(M,{type:"index",width:"55",label:"#",align:"center"}),j(M,{label:"文件名","min-width":"220","show-overflow-tooltip":""},{default:X(({row:B})=>[A("span",{class:D(B.success?"":"text-danger")},me(B.filename),3)]),_:1}),j(M,{label:"状态",width:"110",align:"center"},{default:X(({row:B})=>[B.status==="done"?(S(),le(k,{key:0,type:"success",size:"small"},{default:X(()=>[j(x,null,{default:X(()=>[j(f(kp))]),_:1}),C[7]||(C[7]=Ke(" 完成 ",-1))]),_:1})):B.status==="error"?(S(),le(k,{key:1,type:"danger",size:"small"},{default:X(()=>[j(x,null,{default:X(()=>[j(f(Do))]),_:1}),C[8]||(C[8]=Ke(" 失败 ",-1))]),_:1})):B.status==="processing"?(S(),le(k,{key:2,type:"warning",size:"small"},{default:X(()=>[j(x,null,{default:X(()=>[j(f(Ds))]),_:1}),C[9]||(C[9]=Ke(" 处理中 ",-1))]),_:1})):(S(),le(k,{key:3,type:"info",size:"small"},{default:X(()=>[...C[10]||(C[10]=[Ke("等待",-1)])]),_:1}))]),_:1}),j(M,{label:"页数",width:"70",align:"center",prop:"pages"}),j(M,{label:"进度/错误信息","min-width":"260","show-overflow-tooltip":""},{default:X(({row:B})=>[B.status==="processing"&&B.percent!=null?(S(),le(R,{key:0,percentage:B.percent,"stroke-width":6,striped:"","striped-flow":"",duration:8,class:"row-progress"},null,8,["percentage"])):B.status==="processing"?(S(),P("span",t1e,me(B.message),1)):B.status==="error"?(S(),P("span",n1e,me(B.error),1)):B.status==="done"?(S(),P("span",s1e,"识别完成")):ie("",!0)]),_:1}),j(M,{label:"下载",width:"80",align:"center"},{default:X(({row:B})=>[B.sessionId?(S(),le(T,{key:0,size:"small",text:"",type:"primary",icon:f(Qi),title:"下载 Excel",onClick:U=>_(B.sessionId,"result.xlsx",B.filename)},null,8,["icon","onClick"])):ie("",!0)]),_:1})]),_:1},8,["data"])]),_:1})}}},[["__scopeId","data-v-d95acc72"]]),o1e={class:"card-title"},r1e={key:0,class:"page-indicator"},i1e={class:"log-time"},l1e=cl({__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 ge(()=>t.logs.length,async()=>{await Be(),n.value&&(n.value.scrollTop=n.value.scrollHeight)}),(r,i)=>{const l=qe("Loading"),c=qe("el-icon"),u=qe("el-progress"),d=qe("el-card");return S(),le(d,{class:"progress-card",shadow:"never"},{header:X(()=>[A("div",o1e,[j(c,{class:"spin"},{default:X(()=>[j(l)]),_:1}),i[0]||(i[0]=A("span",null,"正在处理中...",-1)),e.totalPages>0?(S(),P("span",r1e," 第 "+me(e.currentPage)+" / "+me(e.totalPages)+" 页 ",1)):ie("",!0)])]),default:X(()=>[j(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),P(Ve,null,wt(e.logs,(h,p)=>(S(),P("div",{key:p,class:D(["log-item",{"log-success":h.includes("✓")||h.includes("✅"),"log-error":h.includes("❌")}])},[A("span",i1e,me(o(p)),1),Ke(" "+me(h),1)],2))),128))],512)]),_:1})}}},[["__scopeId","data-v-673aebf7"]]),c1e={class:"flagged-cell"},u1e={key:1},d1e={class:"row-count"},f1e={key:1,class:"raw-text"},h1e=cl({__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 d=t.data;return d.rows&&Array.isArray(d.rows)?d.rows:d.data&&Array.isArray(d.data)?d.data:d.items&&Array.isArray(d.items)?d.items:[]}),r=E(()=>{if(o.value.length===0)return[];const d=new Set;return o.value.slice(0,5).forEach(h=>Object.keys(h).forEach(p=>d.add(p))),Array.from(d).filter(h=>!n.has(h))}),i=E(()=>t.data&&t.data.raw_text||"");function l(d){return s[d]||d}function c(d,h){var g,b;const p=(g=d._flags)==null?void 0:g[h],v=a[p]||p||"",m=(b=d._corrections)==null?void 0:b[h];return m!=null?`[已修正] 原值:${m}
${v}`:`[${v}]`}function u({row:d,column:h}){if(!d._flags)return{};const p=h.property,v=d._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(d,h)=>{const p=qe("el-tooltip"),v=qe("el-table-column"),m=qe("el-table"),g=qe("el-empty");return S(),P("div",null,[o.value.length>0?(S(),P(Ve,{key:0},[j(m,{data:o.value,border:"",stripe:"",size:"small",style:{width:"100%"},"max-height":500,"cell-style":u},{default:X(()=>[(S(!0),P(Ve,null,wt(r.value,b=>(S(),le(v,{key:b,prop:b,label:l(b),"min-width":"100"},{default:X(({row:_})=>[_._flags&&_._flags[b]?(S(),le(p,{key:0,content:c(_,b),placement:"top","show-after":300},{default:X(()=>[A("span",c1e,me(_[b]),1)]),_:2},1032,["content"])):(S(),P("span",u1e,me(_[b]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),A("div",d1e,"共 "+me(o.value.length)+" 行",1)],64)):i.value?(S(),P("pre",f1e,me(i.value),1)):(S(),le(g,{key:2,description:"暂无识别数据","image-size":60}))])}}},[["__scopeId","data-v-bfa225df"]]),p1e={key:1,class:"raw-text"},iP=cl({__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=qe("el-descriptions-item"),i=qe("el-descriptions"),l=qe("el-empty");return S(),P("div",null,[n.value.length>0?(S(),le(i,{key:0,column:1,border:"",size:"small"},{default:X(()=>[(S(!0),P(Ve,null,wt(n.value,({key:c,value:u})=>(S(),le(r,{key:c,label:c},{default:X(()=>[Ke(me(u),1)]),_:2},1032,["label"]))),128))]),_:1})):s.value?(S(),P("pre",p1e,me(s.value),1)):(S(),le(l,{key:2,description:"暂无数据","image-size":50}))])}}},[["__scopeId","data-v-9250db36"]]),v1e={class:"toolbar"},m1e={class:"result-summary"},g1e={key:0,class:"token-hint"},b1e={class:"btn-group"},y1e={key:0},w1e={key:1},_1e={key:0,style:{color:"#e6a23c"}},C1e={key:0,class:"reason-tags"},S1e={key:2,class:"page-detail"},lP=cl({__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",d=n.outputFilenames[c]||`result${u}`,h=U1(n.sessionId,d),p=document.createElement("a");p.href=h,p.download=d,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 d=qe("CircleCheck"),h=qe("el-icon"),p=qe("el-button"),v=qe("el-card"),m=qe("el-tag"),g=qe("el-alert"),b=qe("el-tab-pane"),_=qe("el-tabs"),w=qe("el-col"),C=qe("el-row");return S(),P("div",null,[j(v,{class:"toolbar-card",shadow:"never"},{default:X(()=>[A("div",v1e,[A("div",m1e,[j(h,{color:"#67C23A",size:"20"},{default:X(()=>[j(d)]),_:1}),A("span",null,[u[4]||(u[4]=Ke("识别完成,共处理 ",-1)),A("strong",null,me(e.pagesData.length),1),u[5]||(u[5]=Ke(" 页",-1))]),e.tokenUsage?(S(),P("span",g1e," · "+me(e.tokenUsage.total_tokens.toLocaleString())+" tokens  ¥"+me(e.tokenUsage.cost_cny),1)):ie("",!0)]),A("div",b1e,[e.sessionId?(S(),le(p,{key:0,type:"success",icon:f(Qi),onClick:u[0]||(u[0]=x=>r("excel"))},{default:X(()=>[...u[6]||(u[6]=[Ke(" 下载 Excel ",-1)])]),_:1},8,["icon"])):ie("",!0),e.sessionId?(S(),le(p,{key:1,type:"info",icon:f(Qi),onClick:u[1]||(u[1]=x=>r("json"))},{default:X(()=>[...u[7]||(u[7]=[Ke(" 下载 JSON ",-1)])]),_:1},8,["icon"])):ie("",!0),j(p,{icon:f(xg),onClick:u[2]||(u[2]=x=>s("reset"))},{default:X(()=>[...u[8]||(u[8]=[Ke(" 重新识别 ",-1)])]),_:1},8,["icon"])])])]),_:1}),e.correctionSummary?(S(),le(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(),P("span",y1e,"OCR 校验通过,未发现异常")):(S(),P("span",w1e,[u[9]||(u[9]=Ke(" 发现 ",-1)),A("strong",null,me(e.correctionSummary.flagged_rows),1),u[10]||(u[10]=Ke(" 行存疑内容,已自动修正 ",-1)),A("strong",null,me(e.correctionSummary.corrected_rows),1),u[11]||(u[11]=Ke(" 行 ",-1)),e.correctionSummary.flagged_rows>e.correctionSummary.corrected_rows?(S(),P("span",_1e,"(剩余 "+me(e.correctionSummary.flagged_rows-e.correctionSummary.corrected_rows)+" 行已在 Excel 中标红)",1)):ie("",!0)]))]),default:X(()=>[e.correctionSummary.reasons&&Object.keys(e.correctionSummary.reasons).length?(S(),P("div",C1e,[(S(!0),P(Ve,null,wt(e.correctionSummary.reasons,(x,k)=>(S(),le(m,{key:k,size:"small",type:k==="llm_corrected"||k==="rule_corrected"?"success":k==="llm_suspicious"?"danger":"warning",class:"reason-tag"},{default:X(()=>[Ke(me(l(k))+"×"+me(x),1)]),_:2},1032,["type"]))),128))])):ie("",!0)]),_:1},8,["type"])):ie("",!0),e.pagesData.length>1?(S(),le(_,{key:1,modelValue:a.value,"onUpdate:modelValue":u[3]||(u[3]=x=>a.value=x),class:"page-tabs"},{default:X(()=>[(S(!0),P(Ve,null,wt(e.pagesData,x=>(S(),le(b,{key:x.page,label:`第 ${x.page} 页`,name:String(x.page)},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):ie("",!0),o.value?(S(),P("div",S1e,[j(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(()=>[j(h1e,{data:o.value.parts3},null,8,["data"])]),_:1}),j(C,{gutter:16,class:"meta-row"},{default:X(()=>[j(w,{span:12},{default:X(()=>[j(v,{shadow:"never",class:"part-card"},{header:X(()=>[...u[13]||(u[13]=[A("span",{class:"part-label"},"标题栏Parts 1",-1)])]),default:X(()=>[j(iP,{data:o.value.parts1},null,8,["data"])]),_:1})]),_:1}),j(w,{span:12},{default:X(()=>[j(v,{shadow:"never",class:"part-card"},{header:X(()=>[...u[14]||(u[14]=[A("span",{class:"part-label"},"附属信息Parts 2",-1)])]),default:X(()=>[j(iP,{data:o.value.parts2},null,8,["data"])]),_:1})]),_:1})]),_:1})])):ie("",!0)])}}},[["__scopeId","data-v-7ae18195"]]),x1e={class:"toolbar"},k1e={class:"result-summary"},E1e={key:0,class:"token-hint"},A1e={class:"btn-group"},T1e={key:1,class:"page-content"},M1e={class:"table-header"},P1e={key:0,class:"table-title"},R1e={class:"para-label"},I1e={key:0,class:"para-title"},O1e={class:"para-text"},cP=cl({__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 d=parseInt(a.value);return n.pagesData.find(h=>h.page===d)||n.pagesData[0]}),r=E(()=>n.pagesData.reduce((d,h)=>{var p;return d+(((p=h.tables)==null?void 0:p.length)||0)},0)),i=E(()=>n.pagesData.reduce((d,h)=>{var p;return d+(((p=h.paragraphs)==null?void 0:p.length)||0)},0));function l(d){return(d.rows||[]).map(h=>{const p={};return(h||[]).forEach((v,m)=>{p[String(m)]=v}),p})}function c(d){const h=d.headers||[];return h.length?h:((d.rows||[])[0]||[]).map((v,m)=>`列${m+1}`)}function u(d){const h=d==="excel"?".xlsx":".json",p=n.outputFilenames[d]||`result${h}`,v=U1(n.sessionId,p),m=document.createElement("a");m.href=v,m.download=p,document.body.appendChild(m),m.click(),document.body.removeChild(m)}return(d,h)=>{var T,R,I,M;const p=qe("CircleCheck"),v=qe("el-icon"),m=qe("el-button"),g=qe("el-card"),b=qe("el-tab-pane"),_=qe("el-tabs"),w=qe("el-empty"),C=qe("el-tag"),x=qe("el-table-column"),k=qe("el-table");return S(),P("div",null,[j(g,{class:"toolbar-card",shadow:"never"},{default:X(()=>[A("div",x1e,[A("div",k1e,[j(v,{color:"#67C23A",size:"20"},{default:X(()=>[j(p)]),_:1}),A("span",null,[h[4]||(h[4]=Ke("通用识别完成,共 ",-1)),A("strong",null,me(e.pagesData.length),1),h[5]||(h[5]=Ke(" 页  ·  ",-1)),A("strong",null,me(r.value),1),h[6]||(h[6]=Ke(" 张表格  ·  ",-1)),A("strong",null,me(i.value),1),h[7]||(h[7]=Ke(" 段文字",-1))]),e.tokenUsage?(S(),P("span",E1e," · "+me(e.tokenUsage.total_tokens.toLocaleString())+" tokens  ¥"+me(e.tokenUsage.cost_cny),1)):ie("",!0)]),A("div",A1e,[e.sessionId?(S(),le(m,{key:0,type:"success",icon:f(Qi),onClick:h[0]||(h[0]=$=>u("excel"))},{default:X(()=>[...h[8]||(h[8]=[Ke("下载 Excel",-1)])]),_:1},8,["icon"])):ie("",!0),e.sessionId?(S(),le(m,{key:1,type:"info",icon:f(Qi),onClick:h[1]||(h[1]=$=>u("json"))},{default:X(()=>[...h[9]||(h[9]=[Ke("下载 JSON",-1)])]),_:1},8,["icon"])):ie("",!0),j(m,{icon:f(xg),onClick:h[2]||(h[2]=$=>s("reset"))},{default:X(()=>[...h[10]||(h[10]=[Ke("重新识别",-1)])]),_:1},8,["icon"])])])]),_:1}),e.pagesData.length>1?(S(),le(_,{key:0,modelValue:a.value,"onUpdate:modelValue":h[3]||(h[3]=$=>a.value=$),class:"page-tabs"},{default:X(()=>[(S(!0),P(Ve,null,wt(e.pagesData,$=>(S(),le(b,{key:$.page,label:`第 ${$.page} 页`,name:String($.page)},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):ie("",!0),o.value?(S(),P("div",T1e,[!((T=o.value.tables)!=null&&T.length)&&!((R=o.value.paragraphs)!=null&&R.length)?(S(),le(w,{key:0,description:"本页未识别到表格或文字","image-size":80})):ie("",!0),(I=o.value.tables)!=null&&I.length?(S(!0),P(Ve,{key:1},wt(o.value.tables,($,O)=>(S(),le(g,{key:O,class:"table-card",shadow:"never"},{header:X(()=>[A("div",M1e,[j(C,{size:"small",type:"warning"},{default:X(()=>[Ke("表格 "+me(O+1),1)]),_:2},1024),$.title?(S(),P("span",P1e,me($.title),1)):ie("",!0)])]),default:X(()=>[j(k,{data:l($),size:"small",border:"",stripe:"",style:{width:"100%"},"max-height":"400"},{default:X(()=>[(S(!0),P(Ve,null,wt(c($),(B,U)=>(S(),le(x,{key:U,label:B,prop:String(U),"min-width":"120","show-overflow-tooltip":""},null,8,["label","prop"]))),128))]),_:2},1032,["data"])]),_:2},1024))),128)):ie("",!0),(M=o.value.paragraphs)!=null&&M.length?(S(),le(g,{key:2,class:"para-card",shadow:"never"},{header:X(()=>[A("span",R1e,"📝 段落文字("+me(o.value.paragraphs.length)+" 段)",1)]),default:X(()=>[(S(!0),P(Ve,null,wt(o.value.paragraphs,($,O)=>(S(),P("div",{key:O,class:"para-item"},[$.title?(S(),P("div",I1e,me($.title),1)):ie("",!0),A("pre",O1e,me($.text),1)]))),128))]),_:1})):ie("",!0)])):ie("",!0)])}}},[["__scopeId","data-v-5cd76fd5"]]),L1e={class:"ocr-app"},N1e={class:"header-inner"},$1e={class:"header-actions"},D1e={class:"auto-section-title"},F1e={class:"auto-section-title"},B1e={__name:"App",setup(e){const t=rP();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([]),d=F(""),h=F({}),p=F(null),v=F("drawing"),m=F(""),g=F(null),b=F({}),_=F(!1),w=F(!1),C=F(!1),x=F([]),k=F(0),T=F(""),R=F({}),I=E(()=>u.value.filter(N=>N.page_type==="drawing")),M=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:K,batch:ee}){Y(),v.value=G||"drawing";const ae=K||null;if(ee&&V&&V.length){_.value=!0,w.value=!0,k.value=V.length,x.value=[],$=Uge(V,z,U,v.value,Q!==!1,ae);return}s.value=!0,N&&(m.value=N.name.replace(/\.pdf$/i,""));const fe=ne=>{B(ne)};N?$=jge(N,z,fe,v.value,Q!==!1,ae):L&&($=Kge(L,z,fe,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,d.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 U(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,C.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=[],d.value="",h.value={},p.value=null,g.value=null,b.value={},v.value="auto",m.value="",_.value=!1,w.value=!1,C.value=!1,x.value=[],k.value=0,T.value="",R.value={}}return(N,L)=>{const V=qe("Document"),z=qe("el-icon"),G=qe("el-button"),Q=qe("el-header"),K=qe("el-alert"),ee=qe("el-main");return S(),P("div",L1e,[j(Q,{class:"app-header"},{default:X(()=>[A("div",N1e,[j(z,{size:"28",class:"logo-icon"},{default:X(()=>[j(V)]),_:1}),L[2]||(L[2]=A("span",{class:"title"},"Ai辅助单线图自动提取材料表",-1)),L[3]||(L[3]=A("span",{class:"subtitle"},"单线图 PDF 智能识别与材料表生成",-1))]),A("div",$1e,[j(G,{size:"small",plain:"",class:"manual-btn",onClick:L[0]||(L[0]=ae=>f(t).push("/Manual"))},{default:X(()=>[j(z,null,{default:X(()=>[j(f(_g))]),_:1}),L[4]||(L[4]=Ke(" 手动模式 ",-1))]),_:1}),j(G,{size:"small",plain:"",class:"swagger-btn",onClick:n},{default:X(()=>[...L[5]||(L[5]=[Ke("API Docs",-1)])]),_:1})])]),_:1}),j(ee,{class:"app-main"},{default:X(()=>[!s.value&&!a.value&&!_.value?(S(),le(Wge,{key:0,onSubmit:O})):ie("",!0),_.value?(S(),le(a1e,{key:1,"batch-events":x.value,"batch-done":C.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(),le(l1e,{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(),le(lP,{key:3,"pages-data":u.value,"session-id":d.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(),le(cP,{key:4,"pages-data":u.value,"session-id":d.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(),P(Ve,{key:5},[I.value.length?(S(),P(Ve,{key:0},[A("div",D1e,"📐 图纸类页面("+me(I.value.length)+" 页)",1),j(lP,{"pages-data":I.value,"session-id":d.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),M.value.length?(S(),P(Ve,{key:1},[A("div",F1e,"📄 文字/表格类页面("+me(M.value.length)+" 页)",1),j(cP,{"pages-data":M.value,"session-id":d.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(),le(K,{key:6,title:o.value,type:"error","show-icon":"",class:"mt-4",onClose:L[1]||(L[1]=ae=>o.value="")},null,8,["title"])):ie("",!0)]),_:1}),L[6]||(L[6]=A("footer",{class:"app-footer"},"© 2025 合肥诺必达信息技术有限公司 · 版权所有",-1))])}}};var _v={};_v.d=(e,t)=>{for(var n in t)_v.o(t,n)&&!_v.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},_v.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Jt=globalThis.pdfjsLib={};_v.d(Jt,{AbortException:()=>Cc,AnnotationEditorLayer:()=>Aw,AnnotationEditorParamsType:()=>gn,AnnotationEditorType:()=>rn,AnnotationEditorUIManager:()=>Uu,AnnotationLayer:()=>L4e,AnnotationMode:()=>wc,ColorPicker:()=>db,DOMSVGFactory:()=>gw,DrawLayer:()=>Tw,FeatureTest:()=>Na,GlobalWorkerOptions:()=>fl,ImageKind:()=>q1,InvalidPDFException:()=>G8,MissingPDFException:()=>Sv,OPS:()=>xr,OutputScale:()=>sw,PDFDataRangeTransport:()=>jP,PDFDateString:()=>tw,PDFWorker:()=>mh,PasswordResponses:()=>W1e,PermissionFlag:()=>H1e,PixelsPerInch:()=>Sc,RenderingCancelledException:()=>Q8,TextLayer:()=>Mv,TouchManager:()=>sb,UnexpectedResponseException:()=>J1,Util:()=>$t,VerbosityLevel:()=>G1,XfaLayer:()=>GP,build:()=>p4e,createValidAbsoluteUrl:()=>q1e,fetchData:()=>Q1,getDocument:()=>o4e,getFilenameFromUrl:()=>nbe,getPdfFilenameFromUrl:()=>sbe,getXfaPageViewport:()=>abe,isDataScheme:()=>eb,isPdfFile:()=>ew,noContextMenu:()=>kr,normalizeUnicode:()=>Q1e,setLayerDimensions:()=>Ku,shadow:()=>fn,stopEvent:()=>bo,version:()=>h4e});const ma=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),uP=[1,0,0,1,0,0],K8=[.001,0,0,.001,0,0],V1e=1e7,U8=1.35,go={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},wc={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},z1e="pdfjs_internal_editor_",rn={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},gn={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},H1e={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},ga={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},q1={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},Ps={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},Cv={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},G1={ERRORS:0,WARNINGS:1,INFOS:5},xr={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},W1e={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let Y1=G1.WARNINGS;function j1e(e){Number.isInteger(e)&&(Y1=e)}function K1e(){return Y1}function X1(e){Y1>=G1.INFOS&&console.log(`Info: ${e}`)}function ln(e){Y1>=G1.WARNINGS&&console.log(`Warning: ${e}`)}function zn(e){throw new Error(e)}function Cs(e,t){e||zn(t)}function U1e(e){switch(e==null?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function q1e(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=Z1e(e)}catch{}}const s=t?new URL(e,t):new URL(e);if(U1e(s))return s}catch{}return null}function fn(e,t,n,s=!1){return Object.defineProperty(e,t,{value:n,enumerable:!s,configurable:!0,writable:!1}),n}const _c=function(){function t(n,s){this.message=n,this.name=s}return t.prototype=new Error,t.constructor=t,t}();class dP extends _c{constructor(t,n){super(t,"PasswordException"),this.code=n}}class q8 extends _c{constructor(t,n){super(t,"UnknownErrorException"),this.details=n}}class G8 extends _c{constructor(t){super(t,"InvalidPDFException")}}class Sv extends _c{constructor(t){super(t,"MissingPDFException")}}class J1 extends _c{constructor(t,n){super(t,"UnexpectedResponseException"),this.status=n}}class G1e extends _c{constructor(t){super(t,"FormatError")}}class Cc extends _c{constructor(t){super(t,"AbortException")}}function fP(e){(typeof e!="object"||(e==null?void 0:e.length)===void 0)&&zn("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 Z1(e){typeof e!="string"&&zn("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 Y1e(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,e&255)}function Y8(e){const t=Object.create(null);for(const[n,s]of e)t[n]=s;return t}function X1e(){const e=new Uint8Array(4);return e[0]=1,new Uint32Array(e.buffer,0,1)[0]===1}function J1e(){try{return new Function(""),!0}catch{return!1}}class Na{static get isLittleEndian(){return fn(this,"isLittleEndian",X1e())}static get isEvalSupported(){return fn(this,"isEvalSupported",J1e())}static get isOffscreenCanvasSupported(){return fn(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return fn(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get platform(){return typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.platform)=="string"?fn(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")}):fn(this,"platform",{isMac:!1,isWindows:!1,isFirefox:!1})}static get isCSSRoundSupported(){var t,n;return fn(this,"isCSSRoundSupported",(n=(t=globalThis.CSS)==null?void 0:t.supports)==null?void 0:n.call(t,"width: round(1.5px, 1px)"))}}const X8=Array.from(Array(256).keys(),e=>e.toString(16).padStart(2,"0"));class $t{static makeHexColor(t,n,s){return`#${X8[t]}${X8[n]}${X8[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,hl,Dw).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,hl,Dw).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}}hl=new WeakSet,Db=function(t,n,s,a,o,r,i,l,c,u){if(c<=0||c>=1)return;const d=1-c,h=c*c,p=h*c,v=d*(d*(d*t+3*c*n)+3*h*s)+p*a,m=d*(d*(d*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)},Dw=function(t,n,s,a,o,r,i,l,c,u,d,h){if(Math.abs(c)<1e-12){Math.abs(u)>=1e-12&&oe(this,hl,Db).call(this,t,n,s,a,o,r,i,l,-d/u,h);return}const p=u**2-4*d*c;if(p<0)return;const v=Math.sqrt(p),m=2*c;oe(this,hl,Db).call(this,t,n,s,a,o,r,i,l,(-u+v)/m,h),oe(this,hl,Db).call(this,t,n,s,a,o,r,i,l,(-u-v)/m,h)},se($t,hl);function Z1e(e){return decodeURIComponent(escape(e))}let J8=null,hP=null;function Q1e(e){return J8||(J8=/([\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,hP=new Map([["ſt","ſt"]])),e.replaceAll(J8,(t,n,s)=>n?n.normalize("NFKC"):hP.get(s))}function ebe(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=new Uint8Array(32);return crypto.getRandomValues(e),fP(e)}const Z8="pdfjs_internal_id_";function tbe(e){return Uint8Array.prototype.toBase64?e.toBase64():btoa(fP(e))}typeof Promise.try!="function"&&(Promise.try=function(e,...t){return new Promise(n=>{n(e(...t))})});const dl="http://www.w3.org/2000/svg",Yu=class Yu{};Wt(Yu,"CSS",96),Wt(Yu,"PDF",72),Wt(Yu,"PDF_TO_CSS_UNITS",Yu.CSS/Yu.PDF);let Sc=Yu;async function Q1(e,t="text"){if(kv(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 xv{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,d,h,p;switch(a%=360,a<0&&(a+=360),a){case 180:u=-1,d=0,h=0,p=1;break;case 90:u=0,d=1,h=1,p=0;break;case 270:u=0,d=-1,h=-1,p=0;break;case 0:u=1,d=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,d*s,h*s,p*s,v-u*s*l-h*s*c,m-d*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 fn(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 xv({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:t,rotation:n,offsetX:s,offsetY:a,dontFlip:o})}convertToViewportPoint(t,n){return $t.applyTransform([t,n],this.transform)}convertToViewportRectangle(t){const n=$t.applyTransform([t[0],t[1]],this.transform),s=$t.applyTransform([t[2],t[3]],this.transform);return[n[0],n[1],s[0],s[1]]}convertToPdfPoint(t,n){return $t.applyInverseTransform([t,n],this.transform)}}class Q8 extends _c{constructor(t,n=0){super(t,"RenderingCancelledException"),this.extraDelay=n}}function eb(e){const t=e.length;let n=0;for(;n<t&&e[n].trim()==="";)n++;return e.substring(n,n+5).toLowerCase()==="data:"}function ew(e){return typeof e=="string"&&/\.pdf$/i.test(e)}function nbe(e){return[e]=e.split(/[#?]/,1),e.substring(e.lastIndexOf("/")+1)}function sbe(e,t="document.pdf"){if(typeof e!="string")return t;if(eb(e))return ln('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 pP{constructor(){Wt(this,"started",Object.create(null));Wt(this,"times",[])}time(t){t in this.started&&ln(`Timer is already running for ${t}`),this.started[t]=Date.now()}timeEnd(t){t in this.started||ln(`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 kv(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return n==="http:"||n==="https:"}catch{return!1}}function kr(e){e.preventDefault()}function bo(e){e.preventDefault(),e.stopPropagation()}class tw{static toDateObject(t){if(!t||typeof t!="string")return null;y(this,Lv)||q(this,Lv,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const n=y(this,Lv).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 d=parseInt(n[9],10)||0;return d=d>=0&&d<=59?d:0,c==="-"?(r+=u,i+=d):c==="+"&&(r-=u,i-=d),new Date(Date.UTC(s,a,o,r,i,l))}}Lv=new WeakMap,se(tw,Lv);function abe(e,{scale:t=1,rotation:n=0}){const{width:s,height:a}=e.attributes.style,o=[0,0,parseInt(s),parseInt(a)];return new xv({viewBox:o,userUnit:1,scale:t,rotation:n})}function nw(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):(ln(`Not a valid color format: "${e}"`),[0,0,0])}function obe(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,nw(s))}t.remove()}function Qn(e){const{a:t,b:n,c:s,d:a,e:o,f:r}=e.getTransform();return[t,n,s,a,o,r]}function fi(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 xv){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})`,d=i?`round(down, ${c}, var(--scale-round-y, 1px))`:`calc(${c})`;!n||t.rotation%180===0?(r.width=u,r.height=d):(r.width=d,r.height=u)}s&&e.setAttribute("data-main-rotation",t.rotation)}class sw{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 pl=class pl{constructor(t){se(this,$a);se(this,kc,null);se(this,Xu,null);se(this,Er);se(this,Ju,null);se(this,Nv,null);q(this,Er,t),y(pl,$v)||q(pl,$v,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,kc,document.createElement("div"));t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");const n=y(this,Er)._uiManager._signal;t.addEventListener("contextmenu",kr,{signal:n}),t.addEventListener("pointerdown",oe(pl,vb,aR),{signal:n});const s=q(this,Ju,document.createElement("div"));s.className="buttons",t.append(s);const a=y(this,Er).toolbarPosition;if(a){const{style:o}=t,r=y(this,Er)._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,iR).call(this),t}get div(){return y(this,kc)}hide(){var t;y(this,kc).classList.add("hidden"),(t=y(this,Xu))==null||t.hideDropdown()}show(){var t;y(this,kc).classList.remove("hidden"),(t=y(this,Nv))==null||t.shown()}async addAltText(t){const n=await t.render();oe(this,$a,Fb).call(this,n),y(this,Ju).prepend(n,y(this,$a,Fw)),q(this,Nv,t)}addColorPicker(t){q(this,Xu,t);const n=t.renderButton();oe(this,$a,Fb).call(this,n),y(this,Ju).prepend(n,y(this,$a,Fw))}remove(){var t;y(this,kc).remove(),(t=y(this,Xu))==null||t.destroy(),q(this,Xu,null)}};kc=new WeakMap,Xu=new WeakMap,Er=new WeakMap,Ju=new WeakMap,Nv=new WeakMap,$v=new WeakMap,vb=new WeakSet,aR=function(t){t.stopPropagation()},$a=new WeakSet,oR=function(t){y(this,Er)._focusEventsAllowed=!1,bo(t)},rR=function(t){y(this,Er)._focusEventsAllowed=!0,bo(t)},Fb=function(t){const n=y(this,Er)._uiManager._signal;t.addEventListener("focusin",oe(this,$a,oR).bind(this),{capture:!0,signal:n}),t.addEventListener("focusout",oe(this,$a,rR).bind(this),{capture:!0,signal:n}),t.addEventListener("contextmenu",kr,{signal:n})},iR=function(){const{editorType:t,_uiManager:n}=y(this,Er),s=document.createElement("button");s.className="delete",s.tabIndex=0,s.setAttribute("data-l10n-id",y(pl,$v)[t]),oe(this,$a,Fb).call(this,s),s.addEventListener("click",a=>{n.delete()},{signal:n._signal}),y(this,Ju).append(s)},Fw=function(){const t=document.createElement("div");return t.className="divider",t},se(pl,vb),se(pl,$v,null);let aw=pl;class rbe{constructor(t){se(this,Ec);se(this,Dv,null);se(this,Zu,null);se(this,Qu);q(this,Qu,t)}show(t,n,s){const[a,o]=oe(this,Ec,cR).call(this,n,s),{style:r}=y(this,Zu)||q(this,Zu,oe(this,Ec,lR).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()}}Dv=new WeakMap,Zu=new WeakMap,Qu=new WeakMap,Ec=new WeakSet,lR=function(){const t=q(this,Zu,document.createElement("div"));t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",kr,{signal:y(this,Qu)._signal});const n=q(this,Dv,document.createElement("div"));return n.className="buttons",t.append(n),oe(this,Ec,uR).call(this),t},cR=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]},uR=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",kr,{signal:s}),t.addEventListener("click",()=>{y(this,Qu).highlightSelection("floating_button")},{signal:s}),y(this,Dv).append(t)};function tb(e,t,n){for(const s of n)t.addEventListener(s,e[s].bind(e))}class ibe{constructor(){se(this,mb,0)}get id(){return`${z1e}${Ha(this,mb)._++}`}}mb=new WeakMap;const Mw=class Mw{constructor(){se(this,bh);se(this,gh,ebe());se(this,Fv,0);se(this,ya,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 fn(this,"_isSVGFittingCanvas",o)}async getFromFile(t){const{lastModified:n,name:s,size:a,type:o}=t;return oe(this,bh,Bb).call(this,`${n}_${s}_${a}_${o}`,t)}async getFromUrl(t){return oe(this,bh,Bb).call(this,t,t)}async getFromBlob(t,n){const s=await n;return oe(this,bh,Bb).call(this,t,s)}async getFromId(t){y(this,ya)||q(this,ya,new Map);const n=y(this,ya).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,ya)||q(this,ya,new Map);let s=y(this,ya).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,Fv)._++}`,refCounter:1,isSvg:!1},y(this,ya).set(t,s),y(this,ya).set(s.id,s),s}getSvgUrl(t){const n=y(this,ya).get(t);return n!=null&&n.isSvg?n.svgUrl:null}deleteId(t){var a;y(this,ya)||q(this,ya,new Map);const n=y(this,ya).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,Fv=new WeakMap,ya=new WeakMap,bh=new WeakSet,Bb=async function(t,n){y(this,ya)||q(this,ya,new Map);let s=y(this,ya).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,Fv)._++}`,refCounter:0,isSvg:!1});let a;if(typeof n=="string"?(s.url=n,a=await Q1(n,"blob")):n instanceof File?a=s.file=n:n instanceof Blob&&(a=n),a.type==="image/svg+xml"){const o=Mw._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 d=s.svgUrl=r.result;i.src=await o?`${d}#svgView(preserveAspectRatio(none))`:d},i.onerror=r.onerror=u});r.readAsDataURL(a),await l}else s.bitmap=await createImageBitmap(a);s.refCounter=1}catch(a){ln(a),s=null}return y(this,ya).set(t,s),s&&y(this,ya).set(s.id,s),s};let ow=Mw;class lbe{constructor(t=128){se(this,ps,[]);se(this,Ac,!1);se(this,Bv);se(this,os,-1);q(this,Bv,t)}add({cmd:t,undo:n,post:s,mustExec:a,type:o=NaN,overwriteIfSameType:r=!1,keepUndo:i=!1}){if(a&&t(),y(this,Ac))return;const l={cmd:t,undo:n,post:s,type:o};if(y(this,os)===-1){y(this,ps).length>0&&(y(this,ps).length=0),q(this,os,0),y(this,ps).push(l);return}if(r&&y(this,ps)[y(this,os)].type===o){i&&(l.undo=y(this,ps)[y(this,os)].undo),y(this,ps)[y(this,os)]=l;return}const c=y(this,os)+1;c===y(this,Bv)?y(this,ps).splice(0,1):(q(this,os,c),c<y(this,ps).length&&y(this,ps).splice(c)),y(this,ps).push(l)}undo(){if(y(this,os)===-1)return;q(this,Ac,!0);const{undo:t,post:n}=y(this,ps)[y(this,os)];t(),n==null||n(),q(this,Ac,!1),q(this,os,y(this,os)-1)}redo(){if(y(this,os)<y(this,ps).length-1){q(this,os,y(this,os)+1),q(this,Ac,!0);const{cmd:t,post:n}=y(this,ps)[y(this,os)];t(),n==null||n(),q(this,Ac,!1)}}hasSomethingToUndo(){return y(this,os)!==-1}hasSomethingToRedo(){return y(this,os)<y(this,ps).length-1}cleanType(t){if(y(this,os)!==-1){for(let n=y(this,os);n>=0;n--)if(y(this,ps)[n].type!==t){y(this,ps).splice(n+1,y(this,os)-n),q(this,os,n);return}y(this,ps).length=0,q(this,os,-1)}}destroy(){q(this,ps,null)}}ps=new WeakMap,Ac=new WeakMap,Bv=new WeakMap,os=new WeakMap;class Ev{constructor(t){se(this,gb);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,gb,dR).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||bo(n))}}gb=new WeakSet,dR=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 bb=class bb{get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return obe(t),fn(this,"_colors",t)}convert(t){const n=nw(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 bb._colorsMapping.get(s);return n}getHexCode(t){const n=this._colors.get(t);return n?$t.makeHexColor(...n):t}};Wt(bb,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let rw=bb;const kh=class kh{constructor(t,n,s,a,o,r,i,l,c,u,d,h,p){se(this,gt);se(this,yh,new AbortController);se(this,yo,null);se(this,Rs,new Map);se(this,Js,new Map);se(this,wh,null);se(this,vl,null);se(this,_h,null);se(this,jo,new lbe);se(this,Tc,null);se(this,ed,null);se(this,Ch,0);se(this,td,new Set);se(this,pi,null);se(this,Ar,null);se(this,nd,new Set);Wt(this,"_editorUndoBar",null);se(this,Vv,!1);se(this,zv,!1);se(this,Sh,!1);se(this,Hv,null);se(this,vi,null);se(this,Mc,null);se(this,xh,null);se(this,Pc,!1);se(this,mi,null);se(this,yb,new ibe);se(this,Rc,!1);se(this,Wv,!1);se(this,Ic,null);se(this,sd,null);se(this,jv,null);se(this,Kv,null);se(this,Vs,rn.NONE);se(this,Ln,new Set);se(this,ml,null);se(this,ad,null);se(this,Uv,null);se(this,qv,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1});se(this,Oc,[0,0]);se(this,gi,null);se(this,gl,null);se(this,Gv,null);se(this,Ko,null);const v=this._signal=y(this,yh).signal;q(this,gl,t),q(this,Gv,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,gt,pR).call(this),oe(this,gt,bR).call(this),oe(this,gt,Vw).call(this),q(this,vl,o.annotationStorage),q(this,Hv,o.filterFactory),q(this,ad,r),q(this,xh,i||null),q(this,Vv,l),q(this,zv,c),q(this,Sh,u),q(this,Kv,d||null),this.viewParameters={realScale:Sc.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,gl).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 fn(this,"_keyboardManager",new Ev([[["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,gl).contains(i)&&!r.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(r,{target:i})=>!(i instanceof HTMLButtonElement)&&y(r,gl).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,Ko))==null||t.resolve(),q(this,Ko,null),(n=y(this,yh))==null||n.abort(),q(this,yh,null),this._signal=null;for(const r of y(this,Js).values())r.destroy();y(this,Js).clear(),y(this,Rs).clear(),y(this,nd).clear(),q(this,yo,null),y(this,Ln).clear(),y(this,jo).destroy(),(s=y(this,wh))==null||s.destroy(),(a=y(this,mi))==null||a.hide(),q(this,mi,null),y(this,vi)&&(clearTimeout(y(this,vi)),q(this,vi,null)),y(this,gi)&&(clearTimeout(y(this,gi)),q(this,gi,null)),(o=this._editorUndoBar)==null||o.destroy()}combinedSignal(t){return AbortSignal.any([this._signal,t.signal])}get mlManager(){return y(this,Kv)}get useNewAltTextFlow(){return y(this,zv)}get useNewAltTextWhenAddingImage(){return y(this,Sh)}get hcmFilter(){return fn(this,"hcmFilter",y(this,ad)?y(this,Hv).addHCMFilter(y(this,ad).foreground,y(this,ad).background):"none")}get direction(){return fn(this,"direction",getComputedStyle(y(this,gl)).direction)}get highlightColors(){return fn(this,"highlightColors",y(this,xh)?new Map(y(this,xh).split(",").map(t=>t.split("=").map(n=>n.trim()))):null)}get highlightColorNames(){return fn(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,jv,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,gl).focus()}findParent(t,n){for(const s of y(this,Js).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,Gv).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*Sc.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,gt,Vb).call(this,n).closest(".textLayer"),u=this.getSelectionBoxes(c);if(!u)return;n.empty();const d=oe(this,gt,Bw).call(this,c),h=y(this,Vs)===rn.NONE,p=()=>{d==null||d.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(rn.HIGHLIGHT,p);return}p()}addToAnnotationStorage(t){!t.isEmpty()&&y(this,vl)&&!y(this,vl).has(t.id)&&y(this,vl).setValue(t.id,t)}blur(){if(this.isShiftKeyDown=!1,y(this,Pc)&&(q(this,Pc,!1),oe(this,gt,zb).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const n of y(this,Ln))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,gt,Vw).call(this),oe(this,gt,zw).call(this)}removeEditListeners(){oe(this,gt,gR).call(this),oe(this,gt,Hw).call(this)}dragOver(t){for(const{type:n}of t.dataTransfer.items)for(const s of y(this,Ar))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,Ar))if(s.isHandlingMimeForPasting(n.type)){s.paste(n,this.currentLayer),t.preventDefault();return}}copy(t){var s;if(t.preventDefault(),(s=y(this,yo))==null||s.commitOrRemove(),!this.hasSelection)return;const n=[];for(const a of y(this,Ln)){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,Ar))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){ln(`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,gt,Ww).call(this,l);oe(this,gt,jw).call(this,o)},i=()=>{for(const l of o)l.remove()};this.addCommands({cmd:r,undo:i,mustExec:!0})}catch(o){ln(`paste: "${o.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),y(this,Vs)!==rn.NONE&&!this.isEditorHandlingKeyboard&&kh._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,y(this,Pc)&&(q(this,Pc,!1),oe(this,gt,zb).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,gt,vR).call(this),oe(this,gt,zw).call(this),oe(this,gt,Wa).call(this,{isEditing:y(this,Vs)!==rn.NONE,isEmpty:oe(this,gt,i2).call(this),hasSomethingToUndo:y(this,jo).hasSomethingToUndo(),hasSomethingToRedo:y(this,jo).hasSomethingToRedo(),hasSelectedEditor:!1})):(oe(this,gt,mR).call(this),oe(this,gt,Hw).call(this),oe(this,gt,Wa).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!y(this,Ar)){q(this,Ar,t);for(const n of y(this,Ar))oe(this,gt,Ul).call(this,n.defaultPropertiesToUpdate)}}getId(){return y(this,yb).id}get currentLayer(){return y(this,Js).get(y(this,Ch))}getLayer(t){return y(this,Js).get(t)}get currentPageIndex(){return y(this,Ch)}addLayer(t){y(this,Js).set(t.pageIndex,t),y(this,Rc)?t.enable():t.disable()}removeLayer(t){y(this,Js).delete(t.pageIndex)}async updateMode(t,n=null,s=!1){var a;if(y(this,Vs)!==t&&!(y(this,Ko)&&(await y(this,Ko).promise,!y(this,Ko)))){if(q(this,Ko,Promise.withResolvers()),q(this,Vs,t),t===rn.NONE){this.setEditingState(!1),oe(this,gt,wR).call(this),(a=this._editorUndoBar)==null||a.hide(),y(this,Ko).resolve();return}this.setEditingState(!0),await oe(this,gt,yR).call(this),this.unselectAll();for(const o of y(this,Js).values())o.updateMode(t);if(!n){s&&this.addNewEditorFromKeyboard(),y(this,Ko).resolve();return}for(const o of y(this,Rs).values())o.annotationElementId===n?(this.setSelected(o),o.enterInEditMode()):o.unselect();y(this,Ko).resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==y(this,Vs)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,n){var s;if(y(this,Ar)){switch(t){case gn.CREATE:this.currentLayer.addNewEditor();return;case gn.HIGHLIGHT_DEFAULT_COLOR:(s=y(this,jv))==null||s.updateColor(n);break;case gn.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(y(this,Uv)||q(this,Uv,new Map)).set(t,n),this.showAllEditors("highlight",n);break}for(const a of y(this,Ln))a.updateParams(t,n);for(const a of y(this,Ar))a.updateDefaultParams(t,n)}}showAllEditors(t,n,s=!1){var o;for(const r of y(this,Rs).values())r.editorType===t&&r.show(n);(((o=y(this,Uv))==null?void 0:o.get(gn.HIGHLIGHT_SHOW_ALL))??!0)!==n&&oe(this,gt,Ul).call(this,[[gn.HIGHLIGHT_SHOW_ALL,n]])}enableWaiting(t=!1){if(y(this,Wv)!==t){q(this,Wv,t);for(const n of y(this,Js).values())t?n.disableClick():n.enableClick(),n.div.classList.toggle("waiting",t)}}getEditors(t){const n=[];for(const s of y(this,Rs).values())s.pageIndex===t&&n.push(s);return n}getEditor(t){return y(this,Rs).get(t)}addEditor(t){y(this,Rs).set(t.id,t)}removeEditor(t){var n;t.div.contains(document.activeElement)&&(y(this,vi)&&clearTimeout(y(this,vi)),q(this,vi,setTimeout(()=>{this.focusMainContainer(),q(this,vi,null)},0))),y(this,Rs).delete(t.id),this.unselect(t),(!t.annotationElementId||!y(this,td).has(t.annotationElementId))&&((n=y(this,vl))==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,yo)!==t&&(q(this,yo,t),t&&oe(this,gt,Ul).call(this,t.propertiesToUpdate))}updateUI(t){y(this,gt,_R)===t&&oe(this,gt,Ul).call(this,t.propertiesToUpdate)}updateUIForDefaultProperties(t){oe(this,gt,Ul).call(this,t.defaultPropertiesToUpdate)}toggleSelected(t){if(y(this,Ln).has(t)){y(this,Ln).delete(t),t.unselect(),oe(this,gt,Wa).call(this,{hasSelectedEditor:this.hasSelection});return}y(this,Ln).add(t),t.select(),oe(this,gt,Ul).call(this,t.propertiesToUpdate),oe(this,gt,Wa).call(this,{hasSelectedEditor:!0})}setSelected(t){var n;(n=y(this,ed))==null||n.commitOrRemove();for(const s of y(this,Ln))s!==t&&s.unselect();y(this,Ln).clear(),y(this,Ln).add(t),t.select(),oe(this,gt,Ul).call(this,t.propertiesToUpdate),oe(this,gt,Wa).call(this,{hasSelectedEditor:!0})}isSelected(t){return y(this,Ln).has(t)}get firstSelectedEditor(){return y(this,Ln).values().next().value}unselect(t){t.unselect(),y(this,Ln).delete(t),oe(this,gt,Wa).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return y(this,Ln).size!==0}get isEnterHandled(){return y(this,Ln).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){var t;y(this,jo).undo(),oe(this,gt,Wa).call(this,{hasSomethingToUndo:y(this,jo).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:oe(this,gt,i2).call(this)}),(t=this._editorUndoBar)==null||t.hide()}redo(){y(this,jo).redo(),oe(this,gt,Wa).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:y(this,jo).hasSomethingToRedo(),isEmpty:oe(this,gt,i2).call(this)})}addCommands(t){y(this,jo).add(t),oe(this,gt,Wa).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:oe(this,gt,i2).call(this)})}cleanUndoStack(t){y(this,jo).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,Ln)],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,gt,Ww).call(this,r)};this.addCommands({cmd:s,undo:a,mustExec:!0})}commitOrRemove(){var t;(t=y(this,yo))==null||t.commitOrRemove()}hasSomethingToControl(){return y(this,yo)||this.hasSelection}selectAll(){for(const t of y(this,Ln))t.commit();oe(this,gt,jw).call(this,y(this,Rs).values())}unselectAll(){var t;if(!(y(this,yo)&&(y(this,yo).commitOrRemove(),y(this,Vs)!==rn.NONE))&&!((t=y(this,ed))!=null&&t.commitOrRemove())&&this.hasSelection){for(const n of y(this,Ln))n.unselect();y(this,Ln).clear(),oe(this,gt,Wa).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(t,n,s=!1){if(s||this.commitOrRemove(),!this.hasSelection)return;y(this,Oc)[0]+=t,y(this,Oc)[1]+=n;const[a,o]=y(this,Oc),r=[...y(this,Ln)],i=1e3;y(this,gi)&&clearTimeout(y(this,gi)),q(this,gi,setTimeout(()=>{q(this,gi,null),y(this,Oc)[0]=y(this,Oc)[1]=0,this.addCommands({cmd:()=>{for(const l of r)y(this,Rs).has(l.id)&&l.translateInPage(a,o)},undo:()=>{for(const l of r)y(this,Rs).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,pi,new Map);for(const t of y(this,Ln))y(this,pi).set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!y(this,pi))return!1;this.disableUserSelect(!1);const t=y(this,pi);q(this,pi,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,Rs).has(a.id)){const l=y(this,Js).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,pi))for(const s of y(this,pi).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,Ln).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return y(this,yo)===t}getActive(){return y(this,yo)}getMode(){return y(this,Vs)}get imageManager(){return fn(this,"imageManager",new ow)}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,d,h)=>({x:(u-a)/r,y:1-(c+d-s)/o,width:h/r,height:d/o});break;case"180":i=(c,u,d,h)=>({x:1-(c+d-s)/o,y:1-(u+h-a)/r,width:d/o,height:h/r});break;case"270":i=(c,u,d,h)=>({x:1-(u+h-a)/r,y:(c-s)/o,width:h/r,height:d/o});break;default:i=(c,u,d,h)=>({x:(c-s)/o,y:(u-a)/r,width:d/o,height:h/r});break}const l=[];for(let c=0,u=n.rangeCount;c<u;c++){const d=n.getRangeAt(c);if(!d.collapsed)for(const{x:h,y:p,width:v,height:m}of d.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,vl).getRawValue(n);s&&(y(this,Vs)===rn.NONE&&!s.hasBeenModified||s.renderAnnotationElement(t))}};yh=new WeakMap,yo=new WeakMap,Rs=new WeakMap,Js=new WeakMap,wh=new WeakMap,vl=new WeakMap,_h=new WeakMap,jo=new WeakMap,Tc=new WeakMap,ed=new WeakMap,Ch=new WeakMap,td=new WeakMap,pi=new WeakMap,Ar=new WeakMap,nd=new WeakMap,Vv=new WeakMap,zv=new WeakMap,Sh=new WeakMap,Hv=new WeakMap,vi=new WeakMap,Mc=new WeakMap,xh=new WeakMap,Pc=new WeakMap,mi=new WeakMap,yb=new WeakMap,Rc=new WeakMap,Wv=new WeakMap,Ic=new WeakMap,sd=new WeakMap,jv=new WeakMap,Kv=new WeakMap,Vs=new WeakMap,Ln=new WeakMap,ml=new WeakMap,ad=new WeakMap,Uv=new WeakMap,qv=new WeakMap,Oc=new WeakMap,gi=new WeakMap,gl=new WeakMap,Gv=new WeakMap,Ko=new WeakMap,gt=new WeakSet,Vb=function({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t},Bw=function(t){const{currentLayer:n}=this;if(n.hasTextLayer(t))return n;for(const s of y(this,Js).values())if(s.hasTextLayer(t))return s;return null},fR=function(){const t=document.getSelection();if(!t||t.isCollapsed)return;const s=oe(this,gt,Vb).call(this,t).closest(".textLayer"),a=this.getSelectionBoxes(s);a&&(y(this,mi)||q(this,mi,new rbe(this)),y(this,mi).show(s,a,this.direction==="ltr"))},hR=function(){var o,r,i;const t=document.getSelection();if(!t||t.isCollapsed){y(this,ml)&&((o=y(this,mi))==null||o.hide(),q(this,ml,null),oe(this,gt,Wa).call(this,{hasSelectedText:!1}));return}const{anchorNode:n}=t;if(n===y(this,ml))return;const a=oe(this,gt,Vb).call(this,t).closest(".textLayer");if(!a){y(this,ml)&&((r=y(this,mi))==null||r.hide(),q(this,ml,null),oe(this,gt,Wa).call(this,{hasSelectedText:!1}));return}if((i=y(this,mi))==null||i.hide(),q(this,ml,n),oe(this,gt,Wa).call(this,{hasSelectedText:!0}),!(y(this,Vs)!==rn.HIGHLIGHT&&y(this,Vs)!==rn.NONE)&&(y(this,Vs)===rn.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),q(this,Pc,this.isShiftKeyDown),!this.isShiftKeyDown)){const l=y(this,Vs)===rn.HIGHLIGHT?oe(this,gt,Bw).call(this,a):null;l==null||l.toggleDrawing();const c=new AbortController,u=this.combinedSignal(c),d=h=>{h.type==="pointerup"&&h.button!==0||(c.abort(),l==null||l.toggleDrawing(!0),h.type==="pointerup"&&oe(this,gt,zb).call(this,"main_toolbar"))};window.addEventListener("pointerup",d,{signal:u}),window.addEventListener("blur",d,{signal:u})}},zb=function(t=""){y(this,Vs)===rn.HIGHLIGHT?this.highlightSelection(t):y(this,Vv)&&oe(this,gt,fR).call(this)},pR=function(){document.addEventListener("selectionchange",oe(this,gt,hR).bind(this),{signal:this._signal})},vR=function(){if(y(this,Mc))return;q(this,Mc,new AbortController);const t=this.combinedSignal(y(this,Mc));window.addEventListener("focus",this.focus.bind(this),{signal:t}),window.addEventListener("blur",this.blur.bind(this),{signal:t})},mR=function(){var t;(t=y(this,Mc))==null||t.abort(),q(this,Mc,null)},Vw=function(){if(y(this,Ic))return;q(this,Ic,new AbortController);const t=this.combinedSignal(y(this,Ic));window.addEventListener("keydown",this.keydown.bind(this),{signal:t}),window.addEventListener("keyup",this.keyup.bind(this),{signal:t})},gR=function(){var t;(t=y(this,Ic))==null||t.abort(),q(this,Ic,null)},zw=function(){if(y(this,Tc))return;q(this,Tc,new AbortController);const t=this.combinedSignal(y(this,Tc));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})},Hw=function(){var t;(t=y(this,Tc))==null||t.abort(),q(this,Tc,null)},bR=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,qv)[s]!==a)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(y(this,qv),t)}),y(this,Vs)===rn.HIGHLIGHT&&t.hasSelectedEditor===!1&&oe(this,gt,Ul).call(this,[[gn.HIGHLIGHT_FREE,!0]]))},Ul=function(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})},yR=async function(){if(!y(this,Rc)){q(this,Rc,!0);const t=[];for(const n of y(this,Js).values())t.push(n.enable());await Promise.all(t);for(const n of y(this,Rs).values())n.enable()}},wR=function(){if(this.unselectAll(),y(this,Rc)){q(this,Rc,!1);for(const t of y(this,Js).values())t.disable();for(const t of y(this,Rs).values())t.disable()}},Ww=function(t){const n=y(this,Js).get(t.pageIndex);n?n.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))},_R=function(){let t=null;for(t of y(this,Ln));return t},i2=function(){if(y(this,Rs).size===0)return!0;if(y(this,Rs).size===1)for(const t of y(this,Rs).values())return t.isEmpty();return!1},jw=function(t){for(const n of y(this,Ln))n.unselect();y(this,Ln).clear();for(const n of t)n.isEmpty()||(y(this,Ln).add(n),n.select());oe(this,gt,Wa).call(this,{hasSelectedEditor:this.hasSelection})},Wt(kh,"TRANSLATE_SMALL",1),Wt(kh,"TRANSLATE_BIG",10);let Uu=kh;const Da=class Da{constructor(t){se(this,Mr);se(this,zs,null);se(this,bi,!1);se(this,Tr,null);se(this,Eh,null);se(this,yi,null);se(this,wo,null);se(this,Ah,!1);se(this,wi,null);se(this,no,null);se(this,bl,null);se(this,od,null);se(this,_i,!1);q(this,no,t),q(this,_i,t._uiManager.useNewAltTextFlow),y(Da,Lc)||q(Da,Lc,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,Tr,document.createElement("button"));t.className="altText",t.tabIndex="0";const n=q(this,Eh,document.createElement("span"));t.append(n),y(this,_i)?(t.classList.add("new"),t.setAttribute("data-l10n-id",y(Da,Lc).missing),n.setAttribute("data-l10n-id",y(Da,Lc)["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",kr,{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,_i)&&y(this,no)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:y(this,Mr,l2)}})};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,Mr,Hb).call(this),t}finish(){y(this,Tr)&&(y(this,Tr).focus({focusVisible:y(this,Ah)}),q(this,Ah,!1))}isEmpty(){return y(this,_i)?y(this,zs)===null:!y(this,zs)&&!y(this,bi)}hasData(){return y(this,_i)?y(this,zs)!==null||!!y(this,bl):this.isEmpty()}get guessedText(){return y(this,bl)}async setGuessedText(t){y(this,zs)===null&&(q(this,bl,t),q(this,od,await Da._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:t})),oe(this,Mr,Hb).call(this))}toggleAltTextBadge(t=!1){var n;if(!y(this,_i)||y(this,zs)){(n=y(this,wi))==null||n.remove(),q(this,wi,null);return}if(!y(this,wi)){const s=q(this,wi,document.createElement("div"));s.className="noAltTextBadge",y(this,no).div.append(s)}y(this,wi).classList.toggle("hidden",!t)}serialize(t){let n=y(this,zs);return!t&&y(this,bl)===n&&(n=y(this,od)),{altText:n,decorative:y(this,bi),guessedText:y(this,bl),textWithDisclaimer:y(this,od)}}get data(){return{altText:y(this,zs),decorative:y(this,bi)}}set data({altText:t,decorative:n,guessedText:s,textWithDisclaimer:a,cancel:o=!1}){s&&(q(this,bl,s),q(this,od,a)),!(y(this,zs)===t&&y(this,bi)===n)&&(o||(q(this,zs,t),q(this,bi,n)),oe(this,Mr,Hb).call(this))}toggle(t=!1){y(this,Tr)&&(!t&&y(this,wo)&&(clearTimeout(y(this,wo)),q(this,wo,null)),y(this,Tr).disabled=!t)}shown(){y(this,no)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:y(this,Mr,l2)}})}destroy(){var t,n;(t=y(this,Tr))==null||t.remove(),q(this,Tr,null),q(this,Eh,null),q(this,yi,null),(n=y(this,wi))==null||n.remove(),q(this,wi,null)}};zs=new WeakMap,bi=new WeakMap,Tr=new WeakMap,Eh=new WeakMap,yi=new WeakMap,wo=new WeakMap,Ah=new WeakMap,wi=new WeakMap,no=new WeakMap,bl=new WeakMap,od=new WeakMap,_i=new WeakMap,Lc=new WeakMap,Mr=new WeakSet,l2=function(){return y(this,zs)&&"added"||y(this,zs)===null&&this.guessedText&&"review"||"missing"},Hb=async function(){var a,o,r;const t=y(this,Tr);if(!t)return;if(y(this,_i)){if(t.classList.toggle("done",!!y(this,zs)),t.setAttribute("data-l10n-id",y(Da,Lc)[y(this,Mr,l2)]),(a=y(this,Eh))==null||a.setAttribute("data-l10n-id",y(Da,Lc)[`${y(this,Mr,l2)}-label`]),!y(this,zs)){(o=y(this,yi))==null||o.remove();return}}else{if(!y(this,zs)&&!y(this,bi)){t.classList.remove("done"),(r=y(this,yi))==null||r.remove();return}t.classList.add("done"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let n=y(this,yi);if(!n){q(this,yi,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,wo)),q(this,wo,null)},{once:!0}),t.addEventListener("mouseenter",()=>{q(this,wo,setTimeout(()=>{q(this,wo,null),y(this,yi).classList.add("show"),y(this,no)._reportTelemetry({action:"alt_text_tooltip"})},i))},{signal:l}),t.addEventListener("mouseleave",()=>{var c;y(this,wo)&&(clearTimeout(y(this,wo)),q(this,wo,null)),(c=y(this,yi))==null||c.classList.remove("show")},{signal:l})}y(this,bi)?n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(n.removeAttribute("data-l10n-id"),n.textContent=y(this,zs)),n.parentNode||t.append(n);const s=y(this,no).getImageForAltText();s==null||s.setAttribute("aria-describedby",n.id)},se(Da,Lc,null),Wt(Da,"_l10n",null);let nb=Da;const Pw=class Pw{constructor({container:t,isPinchingDisabled:n=null,isPinchingStopped:s=null,onPinchStart:a=null,onPinching:o=null,onPinchEnd:r=null,signal:i}){se(this,wl);se(this,Yv);se(this,rd,!1);se(this,Xv,null);se(this,Jv);se(this,Zv);se(this,Qv);se(this,em);se(this,Th);se(this,yl,null);se(this,id);se(this,Nc,null);q(this,Yv,t),q(this,Xv,s),q(this,Jv,n),q(this,Zv,a),q(this,Qv,o),q(this,em,r),q(this,id,new AbortController),q(this,Th,AbortSignal.any([i,y(this,id).signal])),t.addEventListener("touchstart",oe(this,wl,CR).bind(this),{passive:!1,signal:y(this,Th)})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return fn(this,"MIN_TOUCH_DISTANCE_TO_PINCH",35/(window.devicePixelRatio||1))}destroy(){var t;(t=y(this,id))==null||t.abort(),q(this,id,null)}};Yv=new WeakMap,rd=new WeakMap,Xv=new WeakMap,Jv=new WeakMap,Zv=new WeakMap,Qv=new WeakMap,em=new WeakMap,Th=new WeakMap,yl=new WeakMap,id=new WeakMap,Nc=new WeakMap,wl=new WeakSet,CR=function(t){var a,o,r;if((a=y(this,Jv))!=null&&a.call(this)||t.touches.length<2)return;if(!y(this,Nc)){q(this,Nc,new AbortController);const i=AbortSignal.any([y(this,Th),y(this,Nc).signal]),l=y(this,Yv),c={signal:i,passive:!1};l.addEventListener("touchmove",oe(this,wl,SR).bind(this),c),l.addEventListener("touchend",oe(this,wl,Kw).bind(this),c),l.addEventListener("touchcancel",oe(this,wl,Kw).bind(this),c),(o=y(this,Zv))==null||o.call(this)}if(bo(t),t.touches.length!==2||(r=y(this,Xv))!=null&&r.call(this)){q(this,yl,null);return}let[n,s]=t.touches;n.identifier>s.identifier&&([n,s]=[s,n]),q(this,yl,{touch0X:n.screenX,touch0Y:n.screenY,touch1X:s.screenX,touch1Y:s.screenY})},SR=function(t){var C;if(!y(this,yl)||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,yl),{touch0X:c,touch0Y:u,touch1X:d,touch1Y:h}=l,p=d-c,v=h-u,m=r-a,g=i-o,b=Math.hypot(m,g)||1,_=Math.hypot(p,v)||1;if(!y(this,rd)&&Math.abs(_-b)<=Pw.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];(C=y(this,Qv))==null||C.call(this,w,_,b)},Kw=function(t){var n;y(this,Nc).abort(),q(this,Nc,null),(n=y(this,em))==null||n.call(this),y(this,yl)&&(t.preventDefault(),q(this,yl,null),q(this,rd,!1))};let sb=Pw;const cn=class cn{constructor(t){se(this,Ht);se(this,ld,null);se(this,Pr,null);se(this,Xn,null);se(this,Mh,!1);se(this,$c,null);se(this,tm,"");se(this,cd,!1);se(this,Zs,null);se(this,ud,null);se(this,_l,null);se(this,Dc,null);se(this,nm,"");se(this,dd,!1);se(this,_o,null);se(this,sm,!1);se(this,fd,!1);se(this,Cl,!1);se(this,Ci,null);se(this,Ph,0);se(this,Rh,0);se(this,Uo,null);se(this,hd,null);Wt(this,"_editToolbar",null);Wt(this,"_initialOptions",Object.create(null));Wt(this,"_initialData",null);Wt(this,"_isVisible",!0);Wt(this,"_uiManager",null);Wt(this,"_focusEventsAllowed",!0);se(this,am,!1);se(this,wb,cn._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=cn.prototype._resizeWithKeyboard,n=Uu.TRANSLATE_SMALL,s=Uu.TRANSLATE_BIG;return fn(this,"_resizerKeyboardManager",new Ev([[["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"],cn.prototype._stopResizingWithKeyboard]]))}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get isDrawer(){return!1}static get _defaultLineColor(){return fn(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const n=new cbe({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(cn._l10n??(cn._l10n=t),cn._l10nResizer||(cn._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"})),cn._borderLineWidth!==-1)return;const s=getComputedStyle(document.documentElement);cn._borderLineWidth=parseFloat(s.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,n){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,n){zn("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return y(this,am)}set _isDraggable(t){var n;q(this,am,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,wb)}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):oe(this,Ht,c2).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,Ht,Uw).call(this,this.parentDimensions,t,n)}translateInPage(t,n){y(this,_o)||q(this,_o,[this.x,this.y,this.width,this.height]),oe(this,Ht,Uw).call(this,this.pageDimensions,t,n),this.div.scrollIntoView({block:"nearest"})}drag(t,n){y(this,_o)||q(this,_o,[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:d,y:h}=this.div.getBoundingClientRect();this.parent.findNewParent(this,d,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,_o)&&(y(this,_o)[0]!==this.x||y(this,_o)[1]!==this.y)}get _hasBeenResized(){return!!y(this,_o)&&(y(this,_o)[2]!==this.width||y(this,_o)[3]!==this.height)}getBaseTranslation(){const[t,n]=this.parentDimensions,{_borderLineWidth:s}=cn,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=cn,om,qw).call(s,t,n,this.parentRotation)}pageTranslationToScreen(t,n){var s;return oe(s=cn,om,qw).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,Xn))==null||t.finish()}async addEditToolbar(){return this._editToolbar||y(this,fd)?this._editToolbar:(this._editToolbar=new aw(this),this.div.append(this._editToolbar.render()),y(this,Xn)&&await this._editToolbar.addAltText(y(this,Xn)),this._editToolbar)}removeEditToolbar(){var t;this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,(t=y(this,Xn))==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,Xn)||(nb.initialize(cn._l10n),q(this,Xn,new nb(this)),y(this,ld)&&(y(this,Xn).data=y(this,ld),q(this,ld,null)),await this.addEditToolbar())}get altTextData(){var t;return(t=y(this,Xn))==null?void 0:t.data}set altTextData(t){y(this,Xn)&&(y(this,Xn).data=t)}get guessedAltText(){var t;return(t=y(this,Xn))==null?void 0:t.guessedText}async setGuessedAltText(t){var n;await((n=y(this,Xn))==null?void 0:n.setGuessedText(t))}serializeAltText(t){var n;return(n=y(this,Xn))==null?void 0:n.serialize(t)}hasAltText(){return!!y(this,Xn)&&!y(this,Xn).isEmpty()}hasAltTextData(){var t;return((t=y(this,Xn))==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,Ht,Jw).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),tb(this,this.div,["pointerdown"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(y(this,hd)||q(this,hd,new sb({container:this.div,isPinchingDisabled:()=>!this.isSelected,onPinchStart:oe(this,Ht,ER).bind(this),onPinching:oe(this,Ht,AR).bind(this),onPinchEnd:oe(this,Ht,TR).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,Ht,MR).call(this,t);return}oe(this,Ht,Xw).call(this,t)}get isSelected(){return this._uiManager.isSelected(this)}_onStartDragging(){}_onStopDragging(){}moveInDOM(){y(this,Ci)&&clearTimeout(y(this,Ci)),q(this,Ci,setTimeout(()=>{var t;q(this,Ci,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,d=this.x*o,h=this.y*r,p=this.width*o,v=this.height*r;switch(s){case 0:return[d+c+i,r-h-u-v+l,d+c+p+i,r-h-u+l];case 90:return[d+u+i,r-h+c+l,d+u+v+i,r-h+c+p+l];case 180:return[d-c-p+i,r-h+u+l,d-c+i,r-h+u+v+l];case 270:return[d-u-v+i,r-h-c-p+l,d-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,Cl)}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,Ht,Jw).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){zn("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,Dc))==null||t.abort(),q(this,Dc,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),y(this,Ci)&&(clearTimeout(y(this,Ci)),q(this,Ci,null)),oe(this,Ht,c2).call(this),this.removeEditToolbar(),y(this,Uo)){for(const s of y(this,Uo).values())clearTimeout(s);q(this,Uo,null)}this.parent=null,(n=y(this,hd))==null||n.destroy(),q(this,hd,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(oe(this,Ht,xR).call(this),y(this,Zs).classList.remove("hidden"),tb(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,_l,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const n=y(this,Zs).children;if(!y(this,Pr)){q(this,Pr,Array.from(n));const r=oe(this,Ht,PR).bind(this),i=oe(this,Ht,RR).bind(this),l=this._uiManager._signal;for(const c of y(this,Pr)){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,Ht,IR).bind(this,u),{signal:l}),c.setAttribute("data-l10n-id",cn._l10nResizer[u])}}const s=y(this,Pr)[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,Pr).length/4);if(o!==a){if(o<a)for(let i=0;i<a-o;i++)y(this,Zs).append(y(this,Zs).firstChild);else if(o>a)for(let i=0;i<o-a;i++)y(this,Zs).firstChild.before(y(this,Zs).lastChild);let r=0;for(const i of n){const c=y(this,Pr)[r++].getAttribute("data-resizer-name");i.setAttribute("data-l10n-id",cn._l10nResizer[c])}}oe(this,Ht,Zw).call(this,0),q(this,Cl,!0),y(this,Zs).firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}_resizeWithKeyboard(t,n){y(this,Cl)&&oe(this,Ht,Yw).call(this,y(this,nm),{deltaX:t,deltaY:n,fromKeyboard:!0})}_stopResizingWithKeyboard(){oe(this,Ht,c2).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,Xn))==null||s.toggleAltTextBadge(!1)}unselect(){var t,n,s,a,o;(t=y(this,Zs))==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,Xn))==null||o.toggleAltTextBadge(!0)}updateParams(t,n){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return y(this,sm)}set isEditing(t){q(this,sm,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,Uo)||q(this,Uo,new Map);const{action:s}=t;let a=y(this,Uo).get(s);a&&clearTimeout(a),a=setTimeout(()=>{this._reportTelemetry(t),y(this,Uo).delete(s),y(this,Uo).size===0&&q(this,Uo,null)},cn._telemetryTimeout),y(this,Uo).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,Pr=new WeakMap,Xn=new WeakMap,Mh=new WeakMap,$c=new WeakMap,tm=new WeakMap,cd=new WeakMap,Zs=new WeakMap,ud=new WeakMap,_l=new WeakMap,Dc=new WeakMap,nm=new WeakMap,dd=new WeakMap,_o=new WeakMap,sm=new WeakMap,fd=new WeakMap,Cl=new WeakMap,Ci=new WeakMap,Ph=new WeakMap,Rh=new WeakMap,Uo=new WeakMap,hd=new WeakMap,am=new WeakMap,wb=new WeakMap,Ht=new WeakSet,Uw=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()},om=new WeakSet,qw=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]}},Wb=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]}},xR=function(){if(y(this,Zs))return;q(this,Zs,document.createElement("div")),y(this,Zs).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,Zs).append(a),a.classList.add("resizer",s),a.setAttribute("data-resizer-name",s),a.addEventListener("pointerdown",oe(this,Ht,kR).bind(this,s),{signal:n}),a.addEventListener("contextmenu",kr,{signal:n}),a.tabIndex=-1}this.div.prepend(y(this,Zs))},kR=function(t,n){var u;n.preventDefault();const{isMac:s}=Na.platform;if(n.button!==0||n.ctrlKey&&s)return;(u=y(this,Xn))==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,Ht,Yw).bind(this,t),{passive:!0,capture:!0,signal:r}),window.addEventListener("touchmove",bo,{passive:!1,signal:r}),window.addEventListener("contextmenu",kr,{signal:r}),q(this,_l,{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 d;o.abort(),this.parent.togglePointerEvents(!0),(d=y(this,Xn))==null||d.toggle(!0),this._isDraggable=a,this.parent.div.style.cursor=i,this.div.style.cursor=l,oe(this,Ht,jb).call(this)};window.addEventListener("pointerup",c,{signal:r}),window.addEventListener("blur",c,{signal:r})},Gw=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()},jb=function(){if(!y(this,_l))return;const{savedX:t,savedY:n,savedWidth:s,savedHeight:a}=y(this,_l);q(this,_l,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,Ht,Gw).bind(this,o,r,i,l),undo:oe(this,Ht,Gw).bind(this,t,n,s,a),mustExec:!0})},Yw=function(t,n){const[s,a]=this.parentDimensions,o=this.x,r=this.y,i=this.width,l=this.height,c=cn.MIN_SIZE/s,u=cn.MIN_SIZE/a,d=oe(this,Ht,Wb).call(this,this.rotation),h=(Y,N)=>[d[0]*Y+d[2]*N,d[1]*Y+d[3]*N],p=oe(this,Ht,Wb).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,_=!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":_=!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":_=!0,m=(Y,N)=>[0,N/2],g=(Y,N)=>[Y,N/2];break}const w=m(i,l),C=g(i,l);let x=h(...C);const k=cn._round(o+x[0]),T=cn._round(r+x[1]);let R=1,I=1,M,$;if(n.fromKeyboard)({deltaX:M,deltaY:$}=n);else{const{screenX:Y,screenY:N}=n,[L,V]=y(this,ud);[M,$]=this.screenToPageTranslation(Y-L,N-V),y(this,ud)[0]=Y,y(this,ud)[1]=N}if([M,$]=v(M/s,$/a),b){const Y=Math.hypot(i,l);R=I=Math.max(Math.min(Math.hypot(C[0]-w[0]-M,C[1]-w[1]-$)/Y,1/i,1/l),c/i,u/l)}else _?R=Math.max(c,Math.min(1,Math.abs(C[0]-w[0]-M)))/i:I=Math.max(u,Math.min(1,Math.abs(C[1]-w[1]-$)))/l;const O=cn._round(i*R),B=cn._round(l*I);x=h(...g(O,B));const U=k-x[0],J=T-x[1];y(this,_o)||q(this,_o,[this.x,this.y,this.width,this.height]),this.width=O,this.height=B,this.x=U,this.y=J,this.setDims(s*O,a*B),this.fixAndSetPosition(),this._onResizing()},ER=function(){var t;q(this,_l,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height}),(t=y(this,Xn))==null||t.toggle(!1),this.parent.togglePointerEvents(!1)},AR=function(t,n,s){let o=.7*(s/n)+1-.7;if(o===1)return;const r=oe(this,Ht,Wb).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,d=this.y,h=this.width,p=this.height,v=cn.MIN_SIZE/l,m=cn.MIN_SIZE/c;o=Math.max(Math.min(o,1/h,1/p),v/h,m/p);const g=cn._round(h*o),b=cn._round(p*o);if(g===h&&b===p)return;y(this,_o)||q(this,_o,[u,d,h,p]);const _=i(h/2,p/2),w=cn._round(u+_[0]),C=cn._round(d+_[1]),x=i(g/2,b/2);this.x=w-x[0],this.y=C-x[1],this.width=g,this.height=b,this.setDims(l*g,c*b),this.fixAndSetPosition(),this._onResizing()},TR=function(){var t;(t=y(this,Xn))==null||t.toggle(!0),this.parent.togglePointerEvents(!0),oe(this,Ht,jb).call(this)},Xw=function(t){const{isMac:n}=Na.platform;t.ctrlKey&&!n||t.shiftKey||t.metaKey&&n?this.parent.toggleSelected(this):this.parent.setSelected(this)},MR=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,$c,null),q(this,dd,!1),this._uiManager.endDragSession()||oe(this,Ht,Xw).call(this,c),s&&this._onStopDragging()};n&&(q(this,Ph,t.clientX),q(this,Rh,t.clientY),q(this,$c,t.pointerId),q(this,tm,t.pointerType),window.addEventListener("pointermove",c=>{s||(s=!0,this._onStartDragging());const{clientX:u,clientY:d,pointerId:h}=c;if(h!==y(this,$c)){bo(c);return}const[p,v]=this.screenToPageTranslation(u-y(this,Ph),d-y(this,Rh));q(this,Ph,u),q(this,Rh,d),this._uiManager.dragSelectedEditors(p,v)},r),window.addEventListener("touchmove",bo,r),window.addEventListener("pointerdown",c=>{c.pointerType===y(this,tm)&&(y(this,hd)||c.isPrimary)&&i(c),bo(c)},r));const l=c=>{if(!y(this,$c)||y(this,$c)===c.pointerId){i(c);return}bo(c)};window.addEventListener("pointerup",l,{signal:o}),window.addEventListener("blur",l,{signal:o})},Jw=function(){if(y(this,Dc)||!this.div)return;q(this,Dc,new AbortController);const t=this._uiManager.combinedSignal(y(this,Dc));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:t}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:t})},PR=function(t){cn._resizerKeyboardManager.exec(this,t)},RR=function(t){var n;y(this,Cl)&&((n=t.relatedTarget)==null?void 0:n.parentNode)!==y(this,Zs)&&oe(this,Ht,c2).call(this)},IR=function(t){q(this,nm,y(this,Cl)?t:"")},Zw=function(t){if(y(this,Pr))for(const n of y(this,Pr))n.tabIndex=t},c2=function(){q(this,Cl,!1),oe(this,Ht,Zw).call(this,-1),oe(this,Ht,jb).call(this)},se(cn,om),Wt(cn,"_l10n",null),Wt(cn,"_l10nResizer",null),Wt(cn,"_borderLineWidth",-1),Wt(cn,"_colorManager",new rw),Wt(cn,"_zIndex",1),Wt(cn,"_telemetryTimeout",1e3);let as=cn;class cbe extends as{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const vP=3285377520,Wo=4294901760,hi=65535;class mP{constructor(t){this.h1=t?t&4294967295:vP,this.h2=t?t&4294967295:vP}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 d=3432918353,h=461845907,p=d&hi,v=h&hi;for(let m=0;m<a;m++)m&1?(i=r[m],i=i*d&Wo|i*p&hi,i=i<<15|i>>>17,i=i*h&Wo|i*v&hi,c^=i,c=c<<13|c>>>19,c=c*5+3864292196):(l=r[m],l=l*d&Wo|l*p&hi,l=l<<15|l>>>17,l=l*h&Wo|l*v&hi,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*d&Wo|i*p&hi,i=i<<15|i>>>17,i=i*h&Wo|i*v&hi,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&Wo|t*36045&hi,n=n*4283543511&Wo|((n<<16|t>>>16)*2950163797&Wo)>>>16,t^=n>>>1,t=t*444984403&Wo|t*60499&hi,n=n*3301882366&Wo|((n<<16|t>>>16)*3120437893&Wo)>>>16,t^=n>>>1,(t>>>0).toString(16).padStart(8,"0")+(n>>>0).toString(16).padStart(8,"0")}}const iw=Object.freeze({map:null,hash:"",transfer:void 0});class lw{constructor(){se(this,_b);se(this,pd,!1);se(this,vd,null);se(this,Hs,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,n){const s=y(this,Hs).get(t);return s===void 0?n:Object.assign(n,s)}getRawValue(t){return y(this,Hs).get(t)}remove(t){if(y(this,Hs).delete(t),y(this,Hs).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const n of y(this,Hs).values())if(n instanceof as)return;this.onAnnotationEditor(null)}}setValue(t,n){const s=y(this,Hs).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,Hs).set(t,n);a&&oe(this,_b,OR).call(this),n instanceof as&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(n.constructor._type)}has(t){return y(this,Hs).has(t)}getAll(){return y(this,Hs).size>0?Y8(y(this,Hs)):null}setAll(t){for(const[n,s]of Object.entries(t))this.setValue(n,s)}get size(){return y(this,Hs).size}resetModified(){y(this,pd)&&(q(this,pd,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new gP(this)}get serializable(){if(y(this,Hs).size===0)return iw;const t=new Map,n=new mP,s=[],a=Object.create(null);let o=!1;for(const[r,i]of y(this,Hs)){const l=i instanceof as?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}:iw}get editorStats(){let t=null;const n=new Map;for(const s of y(this,Hs).values()){if(!(s instanceof as))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,Hs).values())!(n instanceof as)||!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,Hs=new WeakMap,_b=new WeakSet,OR=function(){y(this,pd)||(q(this,pd,!0),typeof this.onSetModified=="function"&&this.onSetModified())};class gP extends lw{constructor(n){super();se(this,rm);const{map:s,hash:a,transfer:o}=n.serializable,r=structuredClone(s,o?{transfer:o}:null);q(this,rm,{map:r,hash:a,transfer:o})}get print(){zn("Should not call PrintAnnotationStorage.print")}get serializable(){return y(this,rm)}get modifiedIds(){return fn(this,"modifiedIds",{ids:new Set,hash:""})}}rm=new WeakMap;class ube{constructor({ownerDocument:t=globalThis.document,styleElement:n=null}){se(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(Cs(!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{ln(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(r)}return}zn("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 ln(`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 fn(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(ma||typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.userAgent)=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),fn(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function n(){for(Cs(!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 fn(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,n){function s(C,x){return C.charCodeAt(x)<<24|C.charCodeAt(x+1)<<16|C.charCodeAt(x+2)<<8|C.charCodeAt(x+3)&255}function a(C,x,k,T){const R=C.substring(0,x),I=C.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(C,x){if(++c>30){ln("Load test font never loaded."),x();return}if(l.font="30px "+C,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0){x();return}setTimeout(u.bind(null,C,x))}const d=`lt${Date.now()}${this.loadTestFontId++}`;let h=this._loadTestFont;h=a(h,976,d.length,d);const v=16,m=1482184792;let g=s(h,v);for(o=0,r=d.length-3;o<r;o+=4)g=g-m+s(d,o)|0;o<d.length&&(g=g-m+s(d+"XXX",o)|0),h=a(h,v,4,Y1e(g));const b=`url(data:font/opentype;base64,${btoa(h)});`,_=`@font-face {font-family:"${d}";src:${b}}`;this.insertRule(_);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 C of[t.loadedName,d]){const x=this._document.createElement("span");x.textContent="Hi",x.style.fontFamily=C,w.append(x)}this._document.body.append(w),u(d,()=>{w.remove(),n.complete()})}}Ih=new WeakMap;class dbe{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,${tbe(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){ln(`getPathGenerator - ignoring character: "${r}".`)}const o=new Path2D(a||"");return this.fontExtraProperties||t.delete(s),this.compiledGlyphs[n]=o}}const ab={DATA:1,ERROR:2},Ss={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function bP(){}function Qa(e){if(e instanceof Cc||e instanceof G8||e instanceof Sv||e instanceof dP||e instanceof J1||e instanceof q8)return e;switch(e instanceof Error||typeof e=="object"&&e!==null||zn('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new Cc(e.message);case"InvalidPDFException":return new G8(e.message);case"MissingPDFException":return new Sv(e.message);case"PasswordException":return new dP(e.message,e.code);case"UnexpectedResponseException":return new J1(e.message,e.status);case"UnknownErrorException":return new q8(e.message,e.details)}return new q8(e.message,e.toString())}class Av{constructor(t,n,s){se(this,qo);se(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,qo,LR).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:Ss.PULL,streamId:o,desiredSize:c.desiredSize}),u.promise},cancel:c=>{Cs(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:Ss.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,qo=new WeakSet,LR=function({data:t}){if(t.targetName!==this.sourceName)return;if(t.stream){oe(this,qo,$R).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===ab.DATA)a.resolve(t.data);else if(t.callback===ab.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:ab.DATA,callbackId:t.callbackId,data:r})},function(r){o.postMessage({sourceName:s,targetName:a,callback:ab.ERROR,callbackId:t.callbackId,reason:Qa(r)})});return}if(t.streamId){oe(this,qo,NR).call(this,t);return}n(t.data)},NR=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,d){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:Ss.ENQUEUE,streamId:n,chunk:c},d)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:s,targetName:a,stream:Ss.CLOSE,streamId:n}),delete r.streamSinks[n])},error(c){Cs(c instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,o.postMessage({sourceName:s,targetName:a,stream:Ss.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:Ss.START_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:Ss.START_COMPLETE,streamId:n,reason:Qa(c)})})},$R=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 Ss.START_COMPLETE:t.success?r.startCall.resolve():r.startCall.reject(Qa(t.reason));break;case Ss.PULL_COMPLETE:t.success?r.pullCall.resolve():r.pullCall.reject(Qa(t.reason));break;case Ss.PULL:if(!i){o.postMessage({sourceName:s,targetName:a,stream:Ss.PULL_COMPLETE,streamId:n,success:!0});break}i.desiredSize<=0&&t.desiredSize>0&&i.sinkCapability.resolve(),i.desiredSize=t.desiredSize,Promise.try(i.onPull||bP).then(function(){o.postMessage({sourceName:s,targetName:a,stream:Ss.PULL_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:Ss.PULL_COMPLETE,streamId:n,reason:Qa(c)})});break;case Ss.ENQUEUE:if(Cs(r,"enqueue should have stream controller"),r.isClosed)break;r.controller.enqueue(t.chunk);break;case Ss.CLOSE:if(Cs(r,"close should have stream controller"),r.isClosed)break;r.isClosed=!0,r.controller.close(),oe(this,qo,Kb).call(this,r,n);break;case Ss.ERROR:Cs(r,"error should have stream controller"),r.controller.error(Qa(t.reason)),oe(this,qo,Kb).call(this,r,n);break;case Ss.CANCEL_COMPLETE:t.success?r.cancelCall.resolve():r.cancelCall.reject(Qa(t.reason)),oe(this,qo,Kb).call(this,r,n);break;case Ss.CANCEL:if(!i)break;const l=Qa(t.reason);Promise.try(i.onCancel||bP,l).then(function(){o.postMessage({sourceName:s,targetName:a,stream:Ss.CANCEL_COMPLETE,streamId:n,success:!0})},function(c){o.postMessage({sourceName:s,targetName:a,stream:Ss.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")}},Kb=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 yP{constructor({enableHWA:t=!1}){se(this,im,!1);q(this,im,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,im)})}}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){zn("Abstract method `_createCanvas` called.")}}im=new WeakMap;class fbe extends yP{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 wP{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){zn("Abstract method `_fetch` called.")}}class _P extends wP{async _fetch(t){const n=await Q1(t,this.isCompressed?"arraybuffer":"text");return n instanceof ArrayBuffer?new Uint8Array(n):Z1(n)}}class CP{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 hbe extends CP{constructor({docId:n,ownerDocument:s=globalThis.document}){super();se(this,Et);se(this,md);se(this,Lh);se(this,Sl);se(this,xl);se(this,wa);se(this,gd);se(this,bd,0);q(this,xl,n),q(this,wa,s)}addFilter(n){if(!n)return"none";let s=y(this,Et,ka).get(n);if(s)return s;const[a,o,r]=oe(this,Et,Ub).call(this,n),i=n.length===1?a:`${a}${o}${r}`;if(s=y(this,Et,ka).get(i),s)return y(this,Et,ka).set(n,s),s;const l=`g_${y(this,xl)}_transfer_map_${Ha(this,bd)._++}`,c=oe(this,Et,E0).call(this,l);y(this,Et,ka).set(n,c),y(this,Et,ka).set(i,c);const u=oe(this,Et,A0).call(this,l);return oe(this,Et,f2).call(this,a,o,r,u),c}addHCMFilter(n,s){var v;const a=`${n}-${s}`,o="base";let r=y(this,Et,u2).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,Et,u2).set(o,r)),!n||!s))return r.url;const i=oe(this,Et,h2).call(this,n);n=$t.makeHexColor(...i);const l=oe(this,Et,h2).call(this,s);if(s=$t.makeHexColor(...l),y(this,Et,k0).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(","),d=`g_${y(this,xl)}_hcm_filter`,h=r.filter=oe(this,Et,A0).call(this,d);oe(this,Et,f2).call(this,u,u,u,h),oe(this,Et,Qw).call(this,h);const p=(m,g)=>{const b=i[m]/255,_=l[m]/255,w=new Array(g+1);for(let C=0;C<=g;C++)w[C]=b+C/g*(_-b);return w.join(",")};return oe(this,Et,f2).call(this,p(0,5),p(1,5),p(2,5),h),r.url=oe(this,Et,E0).call(this,d),r.url}addAlphaFilter(n){let s=y(this,Et,ka).get(n);if(s)return s;const[a]=oe(this,Et,Ub).call(this,[n]),o=`alpha_${a}`;if(s=y(this,Et,ka).get(o),s)return y(this,Et,ka).set(n,s),s;const r=`g_${y(this,xl)}_alpha_map_${Ha(this,bd)._++}`,i=oe(this,Et,E0).call(this,r);y(this,Et,ka).set(n,i),y(this,Et,ka).set(o,i);const l=oe(this,Et,A0).call(this,r);return oe(this,Et,e_).call(this,a,l),i}addLuminosityFilter(n){let s=y(this,Et,ka).get(n||"luminosity");if(s)return s;let a,o;if(n?([a]=oe(this,Et,Ub).call(this,[n]),o=`luminosity_${a}`):o="luminosity",s=y(this,Et,ka).get(o),s)return y(this,Et,ka).set(n,s),s;const r=`g_${y(this,xl)}_luminosity_map_${Ha(this,bd)._++}`,i=oe(this,Et,E0).call(this,r);y(this,Et,ka).set(n,i),y(this,Et,ka).set(o,i);const l=oe(this,Et,A0).call(this,r);return oe(this,Et,DR).call(this,l),n&&oe(this,Et,e_).call(this,a,l),i}addHighlightHCMFilter(n,s,a,o,r){var _;const i=`${s}-${a}-${o}-${r}`;let l=y(this,Et,u2).get(n);if((l==null?void 0:l.key)===i||(l?((_=l.filter)==null||_.remove(),l.key=i,l.url="none",l.filter=null):(l={key:i,url:"none",filter:null},y(this,Et,u2).set(n,l)),!s||!a))return l.url;const[c,u]=[s,a].map(oe(this,Et,h2).bind(this));let d=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,Et,h2).bind(this));h<d&&([d,h,p,v]=[h,d,v,p]),y(this,Et,k0).style.color="";const m=(w,C,x)=>{const k=new Array(256),T=(h-d)/x,R=w/255,I=(C-w)/(255*x);let M=0;for(let $=0;$<=x;$++){const O=Math.round(d+$*T),B=R+$*I;for(let U=M;U<=O;U++)k[U]=B;M=O+1}for(let $=M;$<256;$++)k[$]=k[M-1];return k.join(",")},g=`g_${y(this,xl)}_hcm_${n}_filter`,b=l.filter=oe(this,Et,A0).call(this,g);return oe(this,Et,Qw).call(this,b),oe(this,Et,f2).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,Et,E0).call(this,g),l.url}destroy(n=!1){var s,a,o,r;n&&((s=y(this,gd))!=null&&s.size)||((a=y(this,Sl))==null||a.parentNode.parentNode.remove(),q(this,Sl,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,Sl=new WeakMap,xl=new WeakMap,wa=new WeakMap,gd=new WeakMap,bd=new WeakMap,Et=new WeakSet,ka=function(){return y(this,Lh)||q(this,Lh,new Map)},u2=function(){return y(this,gd)||q(this,gd,new Map)},k0=function(){if(!y(this,Sl)){const n=y(this,wa).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,wa).createElementNS(dl,"svg");a.setAttribute("width",0),a.setAttribute("height",0),q(this,Sl,y(this,wa).createElementNS(dl,"defs")),n.append(a),a.append(y(this,Sl)),y(this,wa).body.append(n)}return y(this,Sl)},Ub=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 d=u.join(",");return[d,d,d]}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(",")]},E0=function(n){if(y(this,md)===void 0){q(this,md,"");const s=y(this,wa).URL;s!==y(this,wa).baseURI&&(eb(s)?ln('#createUrl: ignore "data:"-URL for performance reasons.'):q(this,md,s.split("#",1)[0]))}return`url(${y(this,md)}#${n})`},DR=function(n){const s=y(this,wa).createElementNS(dl,"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)},Qw=function(n){const s=y(this,wa).createElementNS(dl,"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)},A0=function(n){const s=y(this,wa).createElementNS(dl,"filter");return s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("id",n),y(this,Et,k0).append(s),s},d2=function(n,s,a){const o=y(this,wa).createElementNS(dl,s);o.setAttribute("type","discrete"),o.setAttribute("tableValues",a),n.append(o)},f2=function(n,s,a,o){const r=y(this,wa).createElementNS(dl,"feComponentTransfer");o.append(r),oe(this,Et,d2).call(this,r,"feFuncR",n),oe(this,Et,d2).call(this,r,"feFuncG",s),oe(this,Et,d2).call(this,r,"feFuncB",a)},e_=function(n,s){const a=y(this,wa).createElementNS(dl,"feComponentTransfer");s.append(a),oe(this,Et,d2).call(this,a,"feFuncA",n)},h2=function(n){return y(this,Et,k0).style.color=n,nw(getComputedStyle(y(this,Et,k0)).getPropertyValue("color"))};class SP{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){zn("Abstract method `_fetch` called.")}}class xP extends SP{async _fetch(t){const n=await Q1(t,"arraybuffer");return new Uint8Array(n)}}ma&&ln("Please use the `legacy` build in Node.js environments.");async function kP(e){const n=await process.getBuiltinModule("fs").promises.readFile(e);return new Uint8Array(n)}class pbe extends CP{}class vbe extends yP{_createCanvas(t,n){return process.getBuiltinModule("module").createRequire(An&&An.tagName.toUpperCase()==="SCRIPT"&&An.src||new URL("ocrz-app.js",document.baseURI).href)("@napi-rs/canvas").createCanvas(t,n)}}class mbe extends wP{async _fetch(t){return kP(t)}}class gbe extends SP{async _fetch(t){return kP(t)}}const ba={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function cw(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 uw{getPattern(){zn("Abstract method `getPattern` called.")}}class bbe extends uw{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===ba.STROKE||a===ba.FILL){const r=n.current.getClippedPathBoundingBox(a,Qn(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=$t.transform(s,[1,0,0,1,r[0],r[1]]),u.transform(...n.baseTransform),this.matrix&&u.transform(...this.matrix),cw(u,this._bbox),u.fillStyle=this._createGradient(u),u.fill(),o=t.createPattern(c.canvas,"no-repeat");const d=new DOMMatrix(s);o.setTransform(d)}else cw(t,this._bbox),o=this._createGradient(t);return o}}function dw(e,t,n,s,a,o,r,i){const l=t.coords,c=t.colors,u=e.data,d=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,_=(l[a+1]+t.offsetY)*t.scaleY;if(v>=_)return;const w=c[o],C=c[o+1],x=c[o+2],k=c[r],T=c[r+1],R=c[r+2],I=c[i],M=c[i+1],$=c[i+2],O=Math.round(v),B=Math.round(_);let U,J,Y,N,L,V,z,G;for(let Q=O;Q<=B;Q++){if(Q<g){const ne=Q<v?0:(v-Q)/(v-g);U=p-(p-m)*ne,J=w-(w-k)*ne,Y=C-(C-T)*ne,N=x-(x-R)*ne}else{let ne;Q>_?ne=1:g===_?ne=0:ne=(g-Q)/(g-_),U=m-(m-b)*ne,J=k-(k-I)*ne,Y=T-(T-M)*ne,N=R-(R-$)*ne}let K;Q<v?K=0:Q>_?K=1:K=(v-Q)/(v-_),L=p-(p-b)*K,V=w-(w-I)*K,z=C-(C-M)*K,G=x-(x-$)*K;const ee=Math.round(Math.min(U,L)),ae=Math.round(Math.max(U,L));let fe=d*Q+ee*4;for(let ne=ee;ne<=ae;ne++)K=(U-ne)/(U-L),K<0?K=0:K>1&&(K=1),u[fe++]=J-(J-V)*K|0,u[fe++]=Y-(Y-z)*K|0,u[fe++]=N-(N-G)*K|0,u[fe++]=255}}function ybe(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 d=0;d<c;d++,u++)dw(e,n,s[u],s[u+1],s[u+i],a[u],a[u+1],a[u+i]),dw(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)dw(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 wbe extends uw{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,d=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/d,v=u/h,m={coords:this._coords,colors:this._colors,offsetX:-i,offsetY:-l,scaleX:1/p,scaleY:1/v},g=d+2*2,b=h+2*2,_=s.getCanvas("mesh",g,b),w=_.context,C=w.createImageData(d,h);if(n){const k=C.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)ybe(C,k,m);return w.putImageData(C,2,2),{canvas:_.canvas,offsetX:i-2*p,offsetY:l-2*v,scaleX:p,scaleY:v}}getPattern(t,n,s,a){cw(t,this._bbox);let o;if(a===ba.SHADING)o=$t.singularValueDecompose2dScale(Qn(t));else if(o=$t.singularValueDecompose2dScale(n.baseTransform),this.matrix){const i=$t.singularValueDecompose2dScale(this.matrix);o=[o[0]*i[0],o[1]*i[1]]}const r=this._createMeshCanvas(o,a===ba.SHADING?null:this._background,n.cachedCanvases);return a!==ba.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 _be extends uw{getPattern(){return"hotpink"}}function Cbe(e){switch(e[0]){case"RadialAxial":return new bbe(e);case"Mesh":return new wbe(e);case"Dummy":return new _be}throw new Error(`Unknown IR type: ${e[0]}`)}const EP={COLORED:1,UNCOLORED:2},Cb=class Cb{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),X1("TilingType: "+o);const u=n[0],d=n[1],h=n[2],p=n[3],v=h-u,m=p-d,g=$t.singularValueDecompose2dScale(this.matrix),b=$t.singularValueDecompose2dScale(this.baseTransform),_=g[0]*b[0],w=g[1]*b[1];let C=v,x=m,k=!1,T=!1;const R=Math.ceil(l*_),I=Math.ceil(c*w),M=Math.ceil(v*_),$=Math.ceil(m*w);R>=M?C=l:k=!0,I>=$?x=c:T=!0;const O=this.getSizeAndScale(C,this.ctx.canvas.width,_),B=this.getSizeAndScale(x,this.ctx.canvas.height,w),U=t.cachedCanvases.getCanvas("pattern",O.size,B.size),J=U.context,Y=i.createCanvasGraphics(J);if(Y.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(Y,a,r),J.translate(-O.scale*u,-B.scale*d),Y.transform(O.scale,0,0,B.scale,0,0),J.save(),this.clipBbox(Y,u,d,h,p),Y.baseTransform=Qn(Y.ctx),Y.executeOperatorList(s),Y.endDrawing(),J.restore(),k||T){const N=U.canvas;k&&(C=l),T&&(x=c);const L=this.getSizeAndScale(C,this.ctx.canvas.width,_),V=this.getSizeAndScale(x,this.ctx.canvas.height,w),z=L.size,G=V.size,Q=t.cachedCanvases.getCanvas("pattern-workaround",z,G),K=Q.context,ee=k?Math.floor(v/l):0,ae=T?Math.floor(m/c):0;for(let fe=0;fe<=ee;fe++)for(let ne=0;ne<=ae;ne++)K.drawImage(N,z*fe,G*ne,z,G,0,0,z,G);return{canvas:Q.canvas,scaleX:L.scale,scaleY:V.scale,offsetX:u,offsetY:d}}return{canvas:U.canvas,scaleX:O.scale,scaleY:B.scale,offsetX:u,offsetY:d}}getSizeAndScale(t,n,s){const a=Math.max(Cb.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(Qn(t.ctx),[n,s,a,o]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,n,s){const a=t.ctx,o=t.current;switch(n){case EP.COLORED:const r=this.ctx;a.fillStyle=r.fillStyle,a.strokeStyle=r.strokeStyle,o.fillColor=r.fillStyle,o.strokeColor=r.strokeStyle;break;case EP.UNCOLORED:const i=$t.makeHexColor(s[0],s[1],s[2]);a.fillStyle=i,a.strokeStyle=i,o.fillColor=i,o.strokeColor=i;break;default:throw new G1e(`Unsupported paint type: ${n}`)}}getPattern(t,n,s,a){let o=s;a!==ba.SHADING&&(o=$t.transform(o,n.baseTransform),this.matrix&&(o=$t.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}};Wt(Cb,"MAX_PATTERN_SIZE",3e3);let fw=Cb;function Sbe({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,d=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(d===0)continue;const m=t<h?e[t++]:255;for(let g=0;g<d;g++)n[p++]=m&1<<7-g?c:l}return{srcPos:t,destPos:p}}const AP=16,TP=100,xbe=15,MP=10,PP=1e3,eo=16;function kbe(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 Ebe{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 ob(e,t,n,s,a,o,r,i,l,c){const[u,d,h,p,v,m]=Qn(e);if(d===0&&h===0){const _=r*u+v,w=Math.round(_),C=i*p+m,x=Math.round(C),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,d,h,p,v,m),[T,I]}if(u===0&&p===0){const _=i*h+v,w=Math.round(_),C=r*d+m,x=Math.round(C),k=(i+c)*h+v,T=Math.abs(Math.round(k)-w)||1,R=(r+l)*d+m,I=Math.abs(Math.round(R)-x)||1;return e.setTransform(0,Math.sign(d),Math.sign(h),0,w,x),e.drawImage(t,n,s,a,o,0,0,I,T),e.setTransform(u,d,h,p,v,m),[I,T]}e.drawImage(t,n,s,a,o,r,i,l,c);const g=Math.hypot(u,d),b=Math.hypot(h,p);return[g*l,b*c]}function Abe(e){const{width:t,height:n}=e;if(t>PP||n>PP)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 d=new Uint8Array(u*n),h=0;for(const b of e.data){let _=128;for(;_>0;)d[h++]=b&_?0:255,_>>=1}let p=0;for(h=0,d[h]!==0&&(r[0]=1,++p),l=1;l<t;l++)d[h]!==d[h+1]&&(r[l]=d[h]?2:1,++p),h++;for(d[h]!==0&&(r[l]=2,++p),i=1;i<n;i++){h=i*u,c=i*o,d[h-u]!==d[h]&&(r[c]=d[h]?1:8,++p);let b=(d[h]?4:0)+(d[h-u]?8:0);for(l=1;l<t;l++)b=(b>>2)+(d[h+1]?4:0)+(d[h-u+1]?8:0),a[b]&&(r[c+l]=a[b],++p),h++;if(d[h-u]!==d[h]&&(r[c+l]=d[h]?2:4,++p),p>s)return null}for(h=u*(n-1),c=i*o,d[h]!==0&&(r[c]=8,++p),l=1;l<t;l++)d[h]!==d[h+1]&&(r[c+l]=d[h]?4:8,++p),h++;if(d[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 _=b+t;for(;b<_&&!r[b];)b++;if(b===_)continue;m.moveTo(b%o,i);const w=b;let C=r[b];do{const x=v[C];do b+=x;while(!r[b]);const k=r[b];k!==5&&k!==10?(C=k,r[b]=0):(C=k&51*C>>4,r[b]&=C>>2|C<<2),m.lineTo(b%o,b/o|0),r[b]||--p}while(w!==b);--i}return d=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 RP{constructor(t,n){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=uP,this.textMatrixScale=1,this.fontMatrix=K8,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=ga.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]=$t.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=$t.applyTransform(n,t),a=$t.applyTransform(n.slice(2),t),o=$t.applyTransform([n[0],n[3]],t),r=$t.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){$t.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 d=$t.bezierBoundingBox(n,s,a,o,r,i,l,c,u);u||this.updateRectMinMax(t,d)}getPathBoundingBox(t=ba.FILL,n=null){const s=[this.minX,this.minY,this.maxX,this.maxY];if(t===ba.STROKE){n||zn("Stroke bounding box must include transform.");const a=$t.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=$t.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=ba.FILL,n=null){return $t.intersect(this.clipBox,this.getPathBoundingBox(t,n))}}function IP(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,d=i.data;let h,p,v,m;if(t.kind===q1.GRAYSCALE_1BPP){const g=u.byteLength,b=new Uint32Array(d.buffer,0,d.byteLength>>2),_=b.length,w=s+7>>3,C=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 M=0,$=0;for(;T<I;T+=8)$=u[l++],b[c++]=$&128?C:x,b[c++]=$&64?C:x,b[c++]=$&32?C:x,b[c++]=$&16?C:x,b[c++]=$&8?C:x,b[c++]=$&4?C:x,b[c++]=$&2?C:x,b[c++]=$&1?C:x;for(;T<R;T++)M===0&&($=u[l++],M=128),b[c++]=$&M?C:x,M>>=1}for(;c<_;)b[c++]=0;e.putImageData(i,0,h*eo)}}else if(t.kind===q1.RGBA_32BPP){for(p=0,m=s*eo*4,h=0;h<o;h++)d.set(u.subarray(l,l+m)),l+=m,e.putImageData(i,0,p),p+=eo;h<r&&(m=s*a*4,d.set(u.subarray(l,l+m)),e.putImageData(i,0,p))}else if(t.kind===q1.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--;)d[c++]=u[l++],d[c++]=u[l++],d[c++]=u[l++],d[c++]=255;e.putImageData(i,0,h*eo)}else throw new Error(`bad image kind: ${t.kind}`)}function OP(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 d=0;d<r;d++){const h=d<o?eo:a;({srcPos:l}=Sbe({src:c,srcPos:l,dest:u,width:s,height:h,nonBlackColor:0})),e.putImageData(i,0,d*eo)}}function Tv(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 rb(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),!ma){const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}}function LP(e,t){if(t)return!0;const n=$t.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const s=Math.fround((globalThis.devicePixelRatio||1)*Sc.PDF_TO_CSS_UNITS);return n[0]<=s&&n[1]<=s}const Tbe=["butt","round","square"],Mbe=["miter","round","bevel"],Pbe={},NP={},Rw=class Rw{constructor(t,n,s,a,o,{optionalContentConfig:r,markedContentStack:i=null},l,c){se(this,Rr);this.ctx=t,this.current=new RP(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 Ebe(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(...Qn(this.compositeCtx))}this.ctx.save(),rb(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=Qn(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>MP&&typeof s=="function",u=c?Date.now()+xbe:0;let d=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!==xr.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&&++d>MP){if(Date.now()>u)return s(),i;d=0}}}endDrawing(){oe(this,Rr,t_).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,Rr,n_).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,d;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),d=u.context,d.clearRect(0,0,h,p),d.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=Qn(n);let l,c,u,d;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 M=Math.round(Math.min(i[0],i[2])+i[4]),$=Math.round(Math.min(i[1],i[3])+i[5]);return{canvas:I,offsetX:M,offsetY:$}}u=I}u||(d=this.cachedCanvases.getCanvas("maskCanvas",s,a),OP(d.context,t));let h=$t.transform(i,[1/s,0,0,-1/a,0,0]);h=$t.transform(h,[1,0,0,1,0,-a]);const[p,v,m,g]=$t.getAxialAlignedBoundingBox([0,0,s,a],h),b=Math.round(m-p)||1,_=Math.round(g-v)||1,w=this.cachedCanvases.getCanvas("fillCanvas",b,_),C=w.context,x=p,k=v;C.translate(-x,-k),C.transform(...h),u||(u=this._scaleImage(d.canvas,fi(C)),u=u.img,l&&r&&l.set(c,u)),C.imageSmoothingEnabled=LP(Qn(C),t.interpolate),ob(C,u,0,0,u.width,u.height,0,0,s,a),C.globalCompositeOperation="source-in";const T=$t.transform(fi(C),[1,0,0,1,-x,-k]);return C.fillStyle=r?o.getPattern(n,this,T,ba.FILL):o,C.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=Tbe[t]}setLineJoin(t){this.ctx.lineJoin=Mbe[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(...Qn(this.suspendedCtx)),Tv(this.suspendedCtx,o),kbe(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(),Tv(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,d){let h=t.canvas,p=l-u,v=c-d;if(r){const g=$t.makeHexColor(...r);if(p<0||v<0||p+s>h.width||v+a>h.height){const b=this.cachedCanvases.getCanvas("maskExtension",s,a),_=b.context;_.drawImage(h,-p,-v),_.globalCompositeOperation="destination-atop",_.fillStyle=g,_.fillRect(0,0,s,a),_.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?(Tv(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(),Tv(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=Qn(a),d=u[0]===0&&u[3]===0||u[1]===0&&u[2]===0,h=d?s.slice(0):null;for(let p=0,v=0,m=t.length;p<m;p++)switch(t[p]|0){case xr.rectangle:r=n[v++],i=n[v++];const g=n[v++],b=n[v++],_=r+g,w=i+b;a.moveTo(r,i),g===0||b===0?a.lineTo(_,w):(a.lineTo(_,i),a.lineTo(_,w),a.lineTo(r,w)),d||o.updateRectMinMax(u,[r,i,_,w]),a.closePath();break;case xr.moveTo:r=n[v++],i=n[v++],a.moveTo(r,i),d||o.updatePathMinMax(u,r,i);break;case xr.lineTo:r=n[v++],i=n[v++],a.lineTo(r,i),d||o.updatePathMinMax(u,r,i);break;case xr.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 xr.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 xr.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 xr.closePath:a.closePath();break}d&&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,fi(n),ba.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,fi(n),ba.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=Pbe}eoClip(){this.pendingClip=NP}beginText(){this.current.textMatrix=uP,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||K8,(a.fontMatrix[0]===0||a.fontMatrix[3]===0)&&ln("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<AP?c=AP:n>TP&&(c=TP),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,d=c&ga.FILL_STROKE_MASK,h=!!(c&ga.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),d===ga.FILL||d===ga.FILL_STROKE)if(a){const g=r.getTransform();r.setTransform(...a),r.fill(oe(this,Rr,s_).call(this,m,g,a))}else r.fill(m);if(d===ga.STROKE||d===ga.FILL_STROKE)if(o){const g=r.getTransform();r.setTransform(...o),r.stroke(oe(this,Rr,s_).call(this,m,g,o))}else r.lineWidth/=u,r.stroke(m);r.restore()}else(d===ga.FILL||d===ga.FILL_STROKE)&&r.fillText(t,n,s),(d===ga.STROKE||d===ga.FILL_STROKE)&&r.strokeText(t,n,s);h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:Qn(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 fn(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,d=t.length,h=s.vertical,p=h?1:-1,v=s.defaultVMetrics,m=a*n.fontMatrix[0],g=n.textRenderingMode===ga.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,_;if(n.patternFill){o.save();const T=n.fillColor.getPattern(o,this,fi(o),ba.FILL);b=Qn(o),o.restore(),o.fillStyle=T}if(n.patternStroke){o.save();const T=n.strokeColor.getPattern(o,this,fi(o),ba.STROKE);_=Qn(o),o.restore(),o.strokeStyle=T}let w=n.lineWidth;const C=n.textMatrixScale;if(C===0||w===0){const T=n.textRenderingMode&ga.FILL_STROKE_MASK;(T===ga.STROKE||T===ga.FILL_STROKE)&&(w=this.getSinglePixelWidth())}else w/=C;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<d;++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,M=T.fontChar,$=T.accent;let O,B,U=T.width;if(h){const Y=T.vmetric||v,N=-(T.vmetric?Y[1]:U*.5)*m,L=Y[2]*m;U=Y?-Y[0]:U,O=N/r,B=(x+L)/r}else O=x/r,B=0;if(s.remeasure&&U>0){const Y=o.measureText(M).width*1e3/a*r;if(U<Y&&this.isFontSubpixelAAEnabled){const N=U/Y;R=!0,o.save(),o.scale(N,1),O/=N}else U!==Y&&(O+=(U-Y)/2e3*a/r)}if(this.contentVisible&&(T.isInFont||s.missingFile)){if(g&&!$)o.fillText(M,O,B);else if(this.paintChar(M,O,B,b,_),$){const Y=O+a*$.offset.x/r,N=B-a*$.offset.y/r;this.paintChar($.fontChar,Y,N,b,_)}}const J=h?U*m-I*c:U*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,d=s.fontMatrix||K8,h=t.length,p=s.textRenderingMode===ga.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 _=(m.isSpace?c:0)+l,w=a.charProcOperatorList[m.operatorListId];if(!w){ln(`Type3 character "${m.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=m,this.save(),n.scale(o,o),n.transform(...d),this.executeOperatorList(w),this.restore()),g=$t.applyTransform([m.width,0],d)[0]*o+_,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||Qn(this.ctx),o={createCanvasGraphics:r=>new Rw(r,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};n=new fw(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=$t.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=$t.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=Cbe(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,fi(n),ba.SHADING);const a=fi(n);if(a){const{width:o,height:r}=n.canvas,[i,l,c,u]=$t.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(){zn("Should not call beginInlineImage")}beginImageData(){zn("Should not call beginImageData")}paintFormXObjectBegin(t,n){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=Qn(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(Qn(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||X1("TODO: Support non-isolated groups."),t.knockout&&ln("Knockout groups not supported.");const s=Qn(n);if(t.matrix&&n.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let a=$t.getAxialAlignedBoundingBox(t.bbox,Qn(n));const o=[0,0,n.canvas.width,n.canvas.height];a=$t.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 d=this.cachedCanvases.getCanvas(u,l,c),h=d.context;h.translate(-r,-i),h.transform(...s),t.smask?this.smaskStack.push({canvas:d.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()),Tv(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=Qn(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...a);const o=$t.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,Rr,t_).call(this),rb(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]=$t.singularValueDecompose2dScale(Qn(this.ctx)),{viewportScale:u}=this,d=Math.ceil(r*this.outputScaleX*u),h=Math.ceil(i*this.outputScaleY*u);this.annotationCanvas=this.canvasFactory.create(d,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),rb(this.ctx)}else rb(this.ctx),this.endPath(),this.ctx.rect(n[0],n[1],r,i),this.ctx.clip(),this.ctx.beginPath()}this.current=new RP(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...s),this.transform(...a)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),oe(this,Rr,n_).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=Abe(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=Qn(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,d=r.length;u<d;u+=2){const h=$t.transform(l,[n,s,a,o,r[u],r[u+1]]),[p,v]=$t.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),d=u.context;d.save();const h=this.getObject(r,o);OP(d,h),d.globalCompositeOperation="source-in",d.fillStyle=a?s.getPattern(d,this,fi(n),ba.FILL):s,d.fillRect(0,0,i,l),d.restore(),n.save(),n.transform(...c),n.scale(1,-1),ob(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){ln("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){ln("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(),!ma){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;IP(l,t),o=this.applyTransferMapsToCanvas(l)}const r=this._scaleImage(o,fi(a));a.imageSmoothingEnabled=LP(Qn(a),t.interpolate),ob(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;IP(l,t),a=this.applyTransferMapsToCanvas(l)}for(const o of n)s.save(),s.transform(...o.transform),s.scale(1,-1),ob(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===NP?s.clip("evenodd"):s.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),s.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const t=Qn(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,d=c*t;r=u<1?1/u:1,i=d<1?1/d: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 d=t*l;r=u>d?u/d:1,i=c>d?c/d: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}};Rr=new WeakSet,t_=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)},n_=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}}},s_=function(t,n,s){const a=new Path2D;return a.addPath(t,new DOMMatrix(s).invertSelf().multiplySelf(n)),a};let ph=Rw;for(const e in xr)ph.prototype[e]!==void 0&&(ph.prototype[xr[e]]=ph.prototype[e]);class fl{static get workerPort(){return y(this,lm)}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");q(this,lm,t)}static get workerSrc(){return y(this,cm)}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");q(this,cm,t)}}lm=new WeakMap,cm=new WeakMap,se(fl,lm,null),se(fl,cm,"");class Rbe{constructor({parsedData:t,rawData:n}){se(this,yd);se(this,um);q(this,yd,t),q(this,um,n)}getRaw(){return y(this,um)}get(t){return y(this,yd).get(t)??null}getAll(){return Y8(y(this,yd))}has(t){return y(this,yd).has(t)}}yd=new WeakMap,um=new WeakMap;const vh=Symbol("INTERNAL");class Ibe{constructor(t,{name:n,intent:s,usage:a,rbGroups:o}){se(this,dm,!1);se(this,fm,!1);se(this,hm,!1);se(this,Nh,!0);q(this,dm,!!(t&go.DISPLAY)),q(this,fm,!!(t&go.PRINT)),this.name=n,this.intent=s,this.usage=a,this.rbGroups=o}get visible(){if(y(this,hm))return y(this,Nh);if(!y(this,Nh))return!1;const{print:t,view:n}=this.usage;return y(this,dm)?(n==null?void 0:n.viewState)!=="OFF":y(this,fm)?(t==null?void 0:t.printState)!=="OFF":!0}_setVisible(t,n,s=!1){t!==vh&&zn("Internal method `_setVisible` called."),q(this,hm,s),q(this,Nh,n)}}dm=new WeakMap,fm=new WeakMap,hm=new WeakMap,Nh=new WeakMap;class Obe{constructor(t,n=go.DISPLAY){se(this,pm);se(this,Fc,null);se(this,Nn,new Map);se(this,$h,null);se(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,Nn).set(s.id,new Ibe(n,s));if(t.baseState==="OFF")for(const s of y(this,Nn).values())s._setVisible(vh,!1);for(const s of t.on)y(this,Nn).get(s)._setVisible(vh,!0);for(const s of t.off)y(this,Nn).get(s)._setVisible(vh,!1);q(this,$h,this.getHash())}}isVisible(t){if(y(this,Nn).size===0)return!0;if(!t)return X1("Optional content group not defined."),!0;if(t.type==="OCG")return y(this,Nn).has(t.id)?y(this,Nn).get(t.id).visible:(ln(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return oe(this,pm,a_).call(this,t.expression);if(!t.policy||t.policy==="AnyOn"){for(const n of t.ids){if(!y(this,Nn).has(n))return ln(`Optional content group not found: ${n}`),!0;if(y(this,Nn).get(n).visible)return!0}return!1}else if(t.policy==="AllOn"){for(const n of t.ids){if(!y(this,Nn).has(n))return ln(`Optional content group not found: ${n}`),!0;if(!y(this,Nn).get(n).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(const n of t.ids){if(!y(this,Nn).has(n))return ln(`Optional content group not found: ${n}`),!0;if(!y(this,Nn).get(n).visible)return!0}return!1}else if(t.policy==="AllOff"){for(const n of t.ids){if(!y(this,Nn).has(n))return ln(`Optional content group not found: ${n}`),!0;if(y(this,Nn).get(n).visible)return!1}return!0}return ln(`Unknown optional content policy ${t.policy}.`),!0}return ln(`Unknown group type ${t.type}.`),!0}setVisibility(t,n=!0,s=!0){var o;const a=y(this,Nn).get(t);if(!a){ln(`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,Nn).get(i))==null||o._setVisible(vh,!1,!0));a._setVisible(vh,!!n,!0),q(this,Fc,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,Nn).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,Fc,null)}get hasInitialVisibility(){return y(this,$h)===null||this.getHash()===y(this,$h)}getOrder(){return y(this,Nn).size?y(this,Dh)?y(this,Dh).slice():[...y(this,Nn).keys()]:null}getGroups(){return y(this,Nn).size>0?Y8(y(this,Nn)):null}getGroup(t){return y(this,Nn).get(t)||null}getHash(){if(y(this,Fc)!==null)return y(this,Fc);const t=new mP;for(const[n,s]of y(this,Nn))t.update(`${n}:${s.visible}`);return q(this,Fc,t.hexdigest())}}Fc=new WeakMap,Nn=new WeakMap,$h=new WeakMap,Dh=new WeakMap,pm=new WeakSet,a_=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,pm,a_).call(this,o);else if(y(this,Nn).has(o))r=y(this,Nn).get(o).visible;else return ln(`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 Lbe{constructor(t,{disableRange:n=!1,disableStream:s=!1}){Cs(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)});Cs(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(){Cs(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new Nbe(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const s=new $be(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 Nbe{constructor(t,n,s=!1,a=null){this._stream=t,this._done=s||!1,this._filename=ew(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 $be{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 Dbe(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,d){return new RegExp("(?:^|;)\\s*"+u+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',d)}function a(u,d){if(u){if(!/^[\x00-\xFF]+$/.test(d))return d;try{const h=new TextDecoder(u,{fatal:!0}),p=Z1(d);d=h.decode(p),t=!1}catch{}}return d}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 d=[];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 d){if(m===0)break;continue}d[m]=[g,b]}const v=[];for(let m=0;m<d.length&&m in d;++m){let[g,b]=d[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 d=u.slice(1).split('\\"');for(let h=0;h<d.length;++h){const p=d[h].indexOf('"');p!==-1&&(d[h]=d[h].slice(0,p),d.length=h+1),d[h]=d[h].replaceAll(/\\(.)/g,"$1")}u=d.join('"')}return u}function l(u){const d=u.indexOf("'");if(d===-1)return u;const h=u.slice(0,d),v=u.slice(d+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(d,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 $P(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 ib(e){try{return new URL(e).origin}catch{}return null}function DP({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 FP(e){const t=e.get("Content-Disposition");if(t){let n=Dbe(t);if(n.includes("%"))try{n=decodeURIComponent(n)}catch{}if(ew(n))return n}return null}function lb(e,t){return e===404||e===0&&t.startsWith("file:")?new Sv('Missing PDF "'+t+'".'):new J1(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)}function BP(e){return e===200||e===206}function VP(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function zP(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:(ln(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}class HP{constructor(t){Wt(this,"_responseOrigin",null);this.source=t,this.isHttp=/^https?:/i.test(t.url),this.headers=$P(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 Cs(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new Fbe(this),this._fullRequestReader}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const s=new Bbe(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 Fbe{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,VP(s,this._withCredentials,this._abortController)).then(o=>{if(t._responseOrigin=ib(o.url),!BP(o.status))throw lb(o.status,a);this._reader=o.body.getReader(),this._headersCapability.resolve();const r=o.headers,{allowRangeRequests:i,suggestedLength:l}=DP({responseHeaders:r,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=l||this._contentLength,this._filename=FP(r),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Cc("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:zP(t),done:!1})}cancel(t){var n;(n=this._reader)==null||n.cancel(t),this._abortController.abort()}}class Bbe{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,VP(o,this._withCredentials,this._abortController)).then(i=>{const l=ib(i.url);if(l!==t._responseOrigin)throw new Error(`Expected range response-origin "${l}" to match "${t._responseOrigin}".`);if(!BP(i.status))throw lb(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:zP(t),done:!1})}cancel(t){var n;(n=this._reader)==null||n.cancel(t),this._abortController.abort()}}const hw=200,pw=206;function Vbe(e){const t=e.response;return typeof t!="string"?t:Z1(t).buffer}class zbe{constructor({url:t,httpHeaders:n,withCredentials:s}){Wt(this,"_responseOrigin",null);this.url=t,this.isHttp=/^https?:/i.test(t),this.headers=$P(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=pw):a.expectedStatus=hw,n.responseType="arraybuffer",Cs(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||hw;if(!(o===hw&&s.expectedStatus===pw)&&o!==s.expectedStatus){s.onError(a.status);return}const i=Vbe(a);if(o===pw){const l=a.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);c?s.onDone({begin:parseInt(c[1],10),chunk:i}):(ln('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 Hbe{constructor(t){this._source=t,this._manager=new zbe(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 Cs(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new Wbe(this._manager,this._source),this._fullRequestReader}getRangeReader(t,n){const s=new jbe(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 Wbe{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=ib(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}=DP({responseHeaders:a,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});o&&(this._isRangeSupported=!0),this._contentLength=r||this._contentLength,this._filename=FP(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=lb(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 jbe{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=ib((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=lb(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 Kbe=/^[a-z][a-z0-9\-+.]+:/i;function Ube(e){if(Kbe.test(e))return new URL(e);const t=process.getBuiltinModule("url");return new URL(t.pathToFileURL(e))}class qbe{constructor(t){this.source=t,this.url=Ube(t.url),Cs(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 Cs(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new Gbe(this),this._fullRequestReader}getRangeReader(t,n){if(n<=this._progressiveDataLength)return null;const s=new Ybe(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 Gbe{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 Sv(`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 Cc("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class Ybe{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 Xbe=1e5,to=30,Jbe=.8,Is=class Is{constructor({textContentSource:t,container:n,viewport:s}){se(this,El);se(this,Bc,Promise.withResolvers());se(this,so,null);se(this,vm,!1);se(this,mm,!!((nR=globalThis.FontInspector)!=null&&nR.enabled));se(this,wd,null);se(this,kl,null);se(this,gm,0);se(this,bm,0);se(this,_d,null);se(this,Fh,null);se(this,Bh,0);se(this,Vc,0);se(this,Vh,Object.create(null));se(this,ym,[]);se(this,zh,null);se(this,Cd,[]);se(this,wm,new WeakMap);se(this,_m,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,Vc,s.scale*(globalThis.devicePixelRatio||1)),q(this,Bh,s.rotation),q(this,kl,{div:null,properties:null,ctx:null});const{pageWidth:a,pageHeight:o,pageX:r,pageY:i}=s.rawDims;q(this,_m,[1,0,0,-1,-r,i+o]),q(this,bm,a),q(this,gm,o),oe(l=Is,Co,VR).call(l),Ku(n,s),y(this,Bc).promise.finally(()=>{y(Is,Hh).delete(this),q(this,kl,null),q(this,Vh,null)}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:t,isFirefox:n}=Na.platform;return fn(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,Bc).resolve();return}y(this,wd)??q(this,wd,n.lang),Object.assign(y(this,Vh),n.styles),oe(this,El,FR).call(this,n.items),t()},y(this,Bc).reject)};return q(this,_d,y(this,zh).getReader()),y(Is,Hh).add(this),t(),y(this,Bc).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,Vc)){n==null||n(),q(this,Vc,s);const r={div:null,properties:null,ctx:oe(o=Is,Co,qb).call(o,y(this,wd))};for(const i of y(this,Cd))r.properties=y(this,wm).get(i),r.div=i,oe(this,El,o_).call(this,r)}}cancel(){var n;const t=new Cc("TextLayer task cancelled.");(n=y(this,_d))==null||n.cancel(t).catch(()=>{}),q(this,_d,null),y(this,Bc).reject(t)}get textDivs(){return y(this,Cd)}get textContentItemsStr(){return y(this,ym)}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()}}};Bc=new WeakMap,so=new WeakMap,vm=new WeakMap,mm=new WeakMap,wd=new WeakMap,kl=new WeakMap,gm=new WeakMap,bm=new WeakMap,_d=new WeakMap,Fh=new WeakMap,Bh=new WeakMap,Vc=new WeakMap,Vh=new WeakMap,ym=new WeakMap,zh=new WeakMap,Cd=new WeakMap,wm=new WeakMap,_m=new WeakMap,Sd=new WeakMap,xd=new WeakMap,Cm=new WeakMap,zc=new WeakMap,Hh=new WeakMap,El=new WeakSet,FR=function(t){var a,o;if(y(this,vm))return;(o=y(this,kl)).ctx??(o.ctx=oe(a=Is,Co,qb).call(a,y(this,wd)));const n=y(this,Cd),s=y(this,ym);for(const r of t){if(n.length>Xbe){ln("Ignoring additional textDivs for performance reasons."),q(this,vm,!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,El,BR).call(this,r)}},BR=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=$t.transform(y(this,_m),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,mm)&&r.fontSubstitution||r.fontFamily;i=Is.fontFamilyMap.get(i)||i;const l=Math.hypot(a[2],a[3]),c=l*oe(m=Is,Co,zR).call(m,i,y(this,wd));let u,d;o===0?(u=a[4],d=a[5]-c):(u=a[4]+c*Math.sin(o),d=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,bm)).toFixed(2)}%`,p.top=`${(100*d/y(this,gm)).toFixed(2)}%`):(p.left=`${h}${u.toFixed(2)}px)`,p.top=`${h}${d.toFixed(2)}px)`),p.fontSize=`${h}${(y(Is,zc)*l).toFixed(2)}px)`,p.fontFamily=i,s.fontSize=l,n.setAttribute("role","presentation"),n.textContent=t.str,n.dir=t.dir,y(this,mm)&&(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,wm).set(n,s),y(this,kl).div=n,y(this,kl).properties=s,oe(this,El,o_).call(this,y(this,kl)),s.hasText&&y(this,so).append(n),s.hasEOL){const g=document.createElement("br");g.setAttribute("role","presentation"),y(this,so).append(g)}},o_=function(t){var i;const{div:n,properties:s,ctx:a}=t,{style:o}=n;let r="";if(y(Is,zc)>1&&(r=`scale(${1/y(Is,zc)})`),s.canvasWidth!==0&&s.hasText){const{fontFamily:l}=o,{canvasWidth:c,fontSize:u}=s;oe(i=Is,Co,r_).call(i,a,u*y(this,Vc),l);const{width:d}=a.measureText(n.textContent);d>0&&(r=`scaleX(${c*y(this,Vc)/d}) ${r}`)}s.angle!==0&&(r=`rotate(${s.angle}deg) ${r}`),r.length>0&&(o.transform=r)},Co=new WeakSet,qb=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,Cm).set(n,{size:0,family:""})}return n},r_=function(t,n,s){const a=y(this,Cm).get(t);n===a.size&&s===a.family||(t.font=`${n}px ${s}`,a.size=n,a.family=s)},VR=function(){if(y(this,zc)!==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,zc,t.getBoundingClientRect().height),t.remove()},zR=function(t,n){const s=y(this,Sd).get(t);if(s)return s;const a=oe(this,Co,qb).call(this,n);a.canvas.width=a.canvas.height=to,oe(this,Co,r_).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,d=l.length;u<d;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):Jbe;return y(this,Sd).set(t,c),c},se(Is,Co),se(Is,Sd,new Map),se(Is,xd,new Map),se(Is,Cm,new WeakMap),se(Is,zc,null),se(Is,Hh,new Set);let Mv=Is;class Pv{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(Pv.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 Zbe=65536,Qbe=100,e4e=5e3,t4e=ma?vbe:fbe,n4e=ma?mbe:_P,s4e=ma?pbe:hbe,a4e=ma?gbe:xP;function o4e(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new vw,{docId:n}=t,s=e.url?r4e(e.url):null,a=e.data?i4e(e.data):null,o=e.httpHeaders||null,r=e.withCredentials===!0,i=e.password??null,l=e.range instanceof jP?e.range:null,c=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:Zbe;let u=e.worker instanceof mh?e.worker:null;const d=e.verbosity,h=typeof e.docBaseUrl=="string"&&!eb(e.docBaseUrl)?e.docBaseUrl:null,p=typeof e.cMapUrl=="string"?e.cMapUrl:null,v=e.cMapPacked!==!1,m=e.CMapReaderFactory||n4e,g=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,b=e.StandardFontDataFactory||a4e,_=e.stopAtErrors!==!0,w=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,C=e.isEvalSupported!==!1,x=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!ma,k=typeof e.isImageDecoderSupported=="boolean"?e.isImageDecoderSupported:!ma&&(Na.platform.isFirefox||!globalThis.chrome),T=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,R=typeof e.disableFontFace=="boolean"?e.disableFontFace:ma,I=e.fontExtraProperties===!0,M=e.enableXfa===!0,$=e.ownerDocument||globalThis.document,O=e.disableRange===!0,B=e.disableStream===!0,U=e.disableAutoFetch===!0,J=e.pdfBug===!0,Y=e.CanvasFactory||t4e,N=e.FilterFactory||s4e,L=e.enableHWA===!0,V=l?l.length:e.length??NaN,z=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!ma&&!R,G=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:m===_P&&b===xP&&p&&g&&kv(p,document.baseURI)&&kv(g,document.baseURI),Q=null;j1e(d);const K={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 fe={verbosity:d,port:fl.workerPort};u=fe.port?mh.fromPort(fe):new mh(fe),t._worker=u}const ee={docId:n,apiVersion:"4.10.38",data:a,password:i,disableAutoFetch:U,rangeChunkSize:c,length:V,docBaseUrl:h,enableXfa:M,evaluatorOptions:{maxImageSize:w,disableFontFace:R,ignoreErrors:_,isEvalSupported:C,isOffscreenCanvasSupported:x,isImageDecoderSupported:k,canvasMaxAreaInBytes:T,fontExtraProperties:I,useSystemFonts:z,cMapUrl:G?p:null,standardFontDataUrl:G?g:null}},ae={disableFontFace:R,fontExtraProperties:I,ownerDocument:$,pdfBug:J,styleElement:Q,loadingParams:{disableAutoFetch:U,enableXfa:M}};return u.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const fe=u.messageHandler.sendWithPromise("GetDocRequest",ee,a?[a.buffer]:null);let ne;if(l)ne=new Lbe(l,{disableRange:O,disableStream:B});else if(!a){if(!s)throw new Error("getDocument - no `url` parameter provided.");let ve;if(ma)if(kv(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`.");ve=HP}else ve=qbe;else ve=kv(s)?HP:Hbe;ne=new ve({url:s,length:V,httpHeaders:o,withCredentials:r,rangeChunkSize:c,disableRange:O,disableStream:B})}return fe.then(ve=>{if(t.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const he=new Av(n,ve,u.port),ce=new d4e(he,t,ne,ae,K);t._transport=ce,he.send("Ready",null)})}).catch(t._capability.reject),t}function r4e(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(ma&&typeof e=="string")return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function i4e(e){if(ma&&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 Z1(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 WP(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 xb=class xb{constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${Ha(xb,Sb)._++}`,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}};Sb=new WeakMap,se(xb,Sb,0);let vw=xb;class jP{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){zn("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class l4e{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 fn(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 c4e{constructor(t,n,s,a=!1){se(this,Go);se(this,Hc,null);se(this,Al,!1);this._pageIndex=t,this._pageInfo=n,this._transport=s,this._stats=a?new pP:null,this._pdfBug=a,this.commonObjs=s.commonObjs,this.objs=new KP,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 xv({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 fn(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=wc.ENABLE,transform:o=null,background:r=null,optionalContentConfigPromise:i=null,annotationCanvasMap:l=null,pageColors:c=null,printAnnotationStorage:u=null,isEditing:d=!1}){var C,x;(C=this._stats)==null||C.time("Overall");const h=this._transport.getRenderingIntent(s,a,u,d),{renderingIntent:p,cacheKey:v}=h;q(this,Al,!1),oe(this,Go,Gb).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&go.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(_),(this._maybeCleanupAfterRender||g)&&q(this,Al,!0),oe(this,Go,T0).call(this,!g),k?(_.capability.reject(k),this._abortOperatorList({intentState:m,reason:k instanceof Error?k:new Error(k)})):_.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))},_=new mw({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(_);const w=_.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.");_.initializeGraphics({transparency:k,optionalContentConfig:T}),_.operatorListChanged()}).catch(b),w}getOperatorList({intent:t="display",annotationMode:n=wc.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=>Pv.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,Al,!1),oe(this,Go,Gb).call(this),Promise.all(t)}cleanup(t=!1){q(this,Al,!0);const n=oe(this,Go,T0).call(this,!1);return t&&n&&this._stats&&(this._stats=new pP),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,Go,T0).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:d,done:h})=>{if(h){c.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(d,c),u())},d=>{if(c.streamReader=null,!this._transport.destroyed){if(c.operatorList){c.operatorList.lastChunk=!0;for(const h of c.renderTasks)h.operatorListChanged();oe(this,Go,T0).call(this,!0)}if(c.displayReadyCapability)c.displayReadyCapability.reject(d);else if(c.opListReadCapability)c.opListReadCapability.reject(d);else throw d}})};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 Q8){let a=Qbe;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 Cc(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}}Hc=new WeakMap,Al=new WeakMap,Go=new WeakSet,T0=function(t=!1){if(oe(this,Go,Gb).call(this),!y(this,Al)||this.destroyed)return!1;if(t)return q(this,Hc,setTimeout(()=>{q(this,Hc,null),oe(this,Go,T0).call(this,!1)},e4e)),!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,Al,!1),!0},Gb=function(){y(this,Hc)&&(clearTimeout(y(this,Hc)),q(this,Hc,null))};class u4e{constructor(){se(this,Tl,new Map);se(this,kb,Promise.resolve())}postMessage(t,n){const s={data:structuredClone(t,n?{transfer:n}:null)};y(this,kb).then(()=>{for(const[a]of y(this,Tl))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){ln("LoopbackPort - cannot use an `aborted` signal.");return}const r=()=>this.removeEventListener(t,n);a=()=>o.removeEventListener("abort",r),o.addEventListener("abort",r)}y(this,Tl).set(n,a)}removeEventListener(t,n){const s=y(this,Tl).get(n);s==null||s(),y(this,Tl).delete(n)}terminate(){for(const[,t]of y(this,Tl))t==null||t();y(this,Tl).clear()}}Tl=new WeakMap,kb=new WeakMap;const es=class es{constructor({name:t=null,port:n=null,verbosity:s=K1e()}={}){se(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(es,Ed))!=null&&a.has(n))throw new Error("Cannot use more than one PDFWorker per port.");(y(es,Ed)||q(es,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 Av("main","worker",t),this._messageHandler.on("ready",function(){}),oe(this,Wh,Yb).call(this)}_initialize(){if(y(es,kd)||y(es,jh,Xb)){this._setupFakeWorker();return}let{workerSrc:t}=es;try{es._isSameOrigin(window.location.href,t)||(t=es._createCDNWrapper(new URL(t,window.location).href));const n=new Worker(t,{type:"module"}),s=new Av("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,Yb).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{X1("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){y(es,kd)||(ln("Setting up fake worker."),q(es,kd,!0)),es._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const n=new u4e;this._port=n;const s=`fake${Ha(es,Eb)._++}`,a=new Av(s+"_worker",s,n);t.setup(a,n),this._messageHandler=new Av(s,s+"_worker",n),oe(this,Wh,Yb).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(es,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 es(t)}static get workerSrc(){if(fl.workerSrc)return fl.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return fn(this,"_setupFakeWorkerGlobal",(async()=>y(this,jh,Xb)?y(this,jh,Xb):(await import(this.workerSrc)).WorkerMessageHandler)())}};Eb=new WeakMap,kd=new WeakMap,Ed=new WeakMap,Wh=new WeakSet,Yb=function(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})},jh=new WeakSet,Xb=function(){var t;try{return((t=globalThis.pdfjsWorker)==null?void 0:t.WorkerMessageHandler)||null}catch{return null}},se(es,jh),se(es,Eb,0),se(es,kd,!1),se(es,Ed),ma&&(q(es,kd,!0),fl.workerSrc||(fl.workerSrc="./pdf.worker.mjs")),es._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},es._createCDNWrapper=t=>{const n=`await import("${t}");`;return URL.createObjectURL(new Blob([n],{type:"text/javascript"}))};let mh=es;class d4e{constructor(t,n,s,a,o){se(this,Ad);se(this,Ml,new Map);se(this,Si,new Map);se(this,Kh,new Map);se(this,Uh,new Map);se(this,Pl,null);this.messageHandler=t,this.loadingTask=n,this.commonObjs=new KP,this.fontLoader=new ube({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 fn(this,"annotationStorage",new lw)}getRenderingIntent(t,n=wc.ENABLE,s=null,a=!1,o=!1){let r=go.DISPLAY,i=iw;switch(t){case"any":r=go.ANY;break;case"display":break;case"print":r=go.PRINT;break;default:ln(`getRenderingIntent - invalid intent: ${t}`)}const l=r&go.PRINT&&s instanceof gP?s:this.annotationStorage;switch(n){case wc.DISABLE:r+=go.ANNOTATIONS_DISABLE;break;case wc.ENABLE:break;case wc.ENABLE_FORMS:r+=go.ANNOTATIONS_FORMS;break;case wc.ENABLE_STORAGE:r+=go.ANNOTATIONS_STORAGE,i=l.serializable;break;default:ln(`getRenderingIntent - invalid annotationMode: ${n}`)}a&&(r+=go.IS_EDITING),o&&(r+=go.OPLIST);const{ids:c,hash:u}=l.modifiedIds,d=[r,i.hash,u];return{renderingIntent:r,cacheKey:d.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,Pl))==null||s.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const a of y(this,Si).values())t.push(a._destroy());y(this,Si).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,Ml).clear(),this.filterFactory.destroy(),Mv.cleanup(),(a=this._networkStream)==null||a.cancelAllRequests(new Cc("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)=>{Cs(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}Cs(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)=>{Cs(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}Cs(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 l4e(s,this))}),t.on("DocException",s=>{n._capability.reject(Qa(s))}),t.on("PasswordRequest",s=>{q(this,Pl,Promise.withResolvers());try{if(!n.onPassword)throw Qa(s);const a=o=>{o instanceof Error?y(this,Pl).reject(o):y(this,Pl).resolve({password:o})};n.onPassword(a,s.code)}catch(a){y(this,Pl).reject(a)}return y(this,Pl).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,Si).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;ln(`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,d=new dbe(o,{disableFontFace:i,fontExtraProperties:l,inspectFont:u});this.fontLoader.bind(d).catch(()=>t.sendWithPromise("FontFallback",{id:s})).finally(()=>{!l&&d.data&&(d.data=null),this.commonObjs.resolve(s,d)});break;case"CopyLocalImage":const{imageRef:h}=o;Cs(h,"The imageRef must be defined.");for(const p of y(this,Si).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,Si).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)>V1e&&(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&&ln("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 c4e(n,o,this,this._params.pdfBug);return y(this,Si).set(n,r),r});return y(this,Kh).set(n,a),a}getPageIndex(t){return WP(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,p2).call(this,"GetFieldObjects")}hasJSActions(){return oe(this,Ad,p2).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,p2).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,p2).call(this,"GetOptionalContentConfig").then(n=>new Obe(n,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",n=y(this,Ml).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 Rbe(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,Ml).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,Si).values())if(!n.cleanup())throw new Error(`startCleanup: Page ${n.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),y(this,Ml).clear(),this.filterFactory.destroy(!0),Mv.cleanup()}}cachedPageNumber(t){if(!WP(t))return null;const n=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return y(this,Uh).get(n)??null}}Ml=new WeakMap,Si=new WeakMap,Kh=new WeakMap,Uh=new WeakMap,Pl=new WeakMap,Ad=new WeakSet,p2=function(t,n=null){const s=y(this,Ml).get(t);if(s)return s;const a=this.messageHandler.sendWithPromise(t,n);return y(this,Ml).set(t,a),a};const Rv=Symbol("INITIAL_DATA");class KP{constructor(){se(this,Sm);se(this,So,Object.create(null))}get(t,n=null){if(n){const a=oe(this,Sm,i_).call(this,t);return a.promise.then(()=>n(a.data)),null}const s=y(this,So)[t];if(!s||s.data===Rv)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return s.data}has(t){const n=y(this,So)[t];return!!n&&n.data!==Rv}delete(t){const n=y(this,So)[t];return!n||n.data===Rv?!1:(delete y(this,So)[t],!0)}resolve(t,n=null){const s=oe(this,Sm,i_).call(this,t);s.data=n,s.resolve()}clear(){var t;for(const n in y(this,So)){const{data:s}=y(this,So)[n];(t=s==null?void 0:s.bitmap)==null||t.close()}q(this,So,Object.create(null))}*[Symbol.iterator](){for(const t in y(this,So)){const{data:n}=y(this,So)[t];n!==Rv&&(yield[t,n])}}}So=new WeakMap,Sm=new WeakSet,i_=function(t){var n;return(n=y(this,So))[t]||(n[t]={...Promise.withResolvers(),data:Rv})};class f4e{constructor(t){se(this,Wc,null);q(this,Wc,t),this.onContinue=null}get promise(){return y(this,Wc).capability.promise}cancel(t=0){y(this,Wc).cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=y(this,Wc).operatorList;if(!t)return!1;const{annotationCanvasMap:n}=y(this,Wc);return t.form||t.canvas&&(n==null?void 0:n.size)>0}}Wc=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:d=!1,pageColors:h=null}){se(this,jc,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=d,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 f4e(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,jc)&&(window.cancelAnimationFrame(y(this,jc)),q(this,jc,null)),y(Md,Td).delete(this._canvas),this.callback(t||new Q8(`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,jc,window.requestAnimationFrame(()=>{q(this,jc,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())))}};jc=new WeakMap,Td=new WeakMap,se(Md,Td,new WeakSet);let mw=Md;const h4e="4.10.38",p4e="f9bea397f";function UP(e){return Math.floor(Math.max(0,Math.min(1,e))*255).toString(16).padStart(2,"0")}function Iv(e){return Math.max(0,Math.min(255,255*e))}class qP{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=Iv(t),[t,t,t]}static G_HTML([t]){const n=UP(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(Iv)}static RGB_HTML(t){return`#${t.map(UP).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[Iv(1-Math.min(1,t+a)),Iv(1-Math.min(1,s+a)),Iv(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 v4e{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){zn("Abstract method `_createSVG` called.")}}class gw extends v4e{_createSVG(t){return document.createElementNS(dl,t)}}class GP{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 d,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&&Pv.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 _=(d=g==null?void 0:g.attributes)!=null&&d.xmlns?document.createElementNS(g.attributes.xmlns,b):document.createElement(b);if(m.append(_),g.attributes&&this.setAttributes({html:_,element:g,storage:n,intent:o,linkService:s}),((h=g.children)==null?void 0:h.length)>0)u.push([g,-1,_]);else if(g.value){const w=document.createTextNode(g.value);i&&Pv.shouldBuildText(b)&&c.push(w),_.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 Ov=1e3,m4e=9,qu=new WeakSet;function xc(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class g4e{static create(t){switch(t.data.annotationType){case Ps.LINK:return new YP(t);case Ps.TEXT:return new b4e(t);case Ps.WIDGET:switch(t.data.fieldType){case"Tx":return new y4e(t);case"Btn":return t.data.radioButton?new XP(t):t.data.checkBox?new _4e(t):new C4e(t);case"Ch":return new S4e(t);case"Sig":return new w4e(t)}return new Gu(t);case Ps.POPUP:return new bw(t);case Ps.FREETEXT:return new JP(t);case Ps.LINE:return new k4e(t);case Ps.SQUARE:return new E4e(t);case Ps.CIRCLE:return new A4e(t);case Ps.POLYLINE:return new ZP(t);case Ps.CARET:return new M4e(t);case Ps.INK:return new yw(t);case Ps.POLYGON:return new T4e(t);case Ps.HIGHLIGHT:return new QP(t);case Ps.UNDERLINE:return new P4e(t);case Ps.SQUIGGLY:return new R4e(t);case Ps.STRIKEOUT:return new I4e(t);case Ps.STAMP:return new eR(t);case Ps.FILEATTACHMENT:return new O4e(t);default:return new hs(t)}}}const Iw=class Iw{constructor(t,{isRenderable:n=!1,ignoreBorder:s=!1,createQuadrilaterals:a=!1}={}){se(this,xm);se(this,Pd,null);se(this,qh,!1);se(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 Iw._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,xm,l_).call(this,n),(s=y(this,Gh))==null||s.popup.updateEdited(t)}resetEdited(){var t;y(this,Pd)&&(oe(this,xm,l_).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=Ov);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 bw){const{rotation:m}=n;return!n.hasOwnCanvas&&m!==0&&this.setRotation(m,o),o}const{width:i,height:l}=xc(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 _=`calc(${m}px * var(--scale-factor)) / calc(${g}px * var(--scale-factor))`;r.borderRadius=_}else if(this instanceof XP){const _=`calc(${i}px * var(--scale-factor)) / calc(${l}px * var(--scale-factor))`;r.borderRadius=_}switch(n.borderStyle.style){case Cv.SOLID:r.borderStyle="solid";break;case Cv.DASHED:r.borderStyle="dashed";break;case Cv.BEVELED:ln("Unimplemented border style: beveled");break;case Cv.INSET:ln("Unimplemented border style: inset");break;case Cv.UNDERLINE:r.borderBottomStyle="solid";break}const b=n.borderColor||null;b?(q(this,qh,!0),r.borderColor=$t.makeHexColor(b[0]|0,b[1]|0,b[2]|0)):r.borderWidth=0}const c=$t.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:d,pageX:h,pageY:p}=a.rawDims;r.left=`${100*(c[0]-h)/u}%`,r.top=`${100*(c[1]-p)/d}%`;const{rotation:v}=n;return n.hasOwnCanvas||v===0?(r.width=`${100*i/u}%`,r.height=`${100*l/d}%`):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}=xc(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]=qP[`${r}_HTML`](i),this.annotationStorage.setValue(this.data.id,{[s]:qP[`${r}_rgb`](i)})};return fn(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,_]=t.subarray(2,6);if(a===m&&o===g&&n===b&&s===_)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,d=u.createElement("svg");d.classList.add("quadrilateralsContainer"),d.setAttribute("width",0),d.setAttribute("height",0);const h=u.createElement("defs");d.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],_=t[m+1],w=t[m+2],C=t[m+3],x=u.createElement("rect"),k=(w-n)/l,T=(o-_)/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(d),this.container.style.clipPath=`url(#${v})`}_createPopup(){const{data:t}=this,n=q(this,Gh,new bw({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(){zn("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)){ln(`_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,xm=new WeakSet,l_=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}=xc(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 hs=Iw;class YP extends hs{constructor(n,s=null){super(n,{isRenderable:!0,ignoreBorder:!!(s!=null&&s.ignoreBorder),createQuadrilaterals:!0});se(this,xo);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,xo,HR).call(this,a,n.attachment,n.attachmentDest),o=!0):n.setOCGState?(oe(this,xo,WR).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,xo,af).call(this)}_bindNamedAction(n,s){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeNamedAction(s),!1),oe(this,xo,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,xo,af).call(this)}_bindResetFormAction(n,s){const a=n.onclick;if(a||(n.href=this.linkService.getAnchorUrl("")),oe(this,xo,af).call(this),!this._fieldObjects){ln('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),a||(n.onclick=()=>!1);return}n.onclick=()=>{var d;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)){ln(`_bindResetFormAction - element not allowed: ${p}`);continue}}else continue;v.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((d=this.linkService.eventBus)==null||d.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}})),!1}}}xo=new WeakSet,af=function(){this.container.setAttribute("data-internal-link","")},HR=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,xo,af).call(this)},WR=function(n,s){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeSetOCGState(s),!1),oe(this,xo,af).call(this)};class b4e extends hs{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 hs{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":$t.makeHexColor(n[0],n[1],n[2])}_setTextStyle(t){const n=["left","center","right"],{fontColor:s}=this.data.defaultAppearanceData,a=this.data.defaultAppearanceData.fontSize||m4e,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/(U8*a))||1,d=c/u;r=Math.min(a,l(d/U8))}else{const c=Math.abs(this.data.rect[3]-this.data.rect[1]-i);r=Math.min(a,l(c/U8))}o.fontSize=`calc(${r}px * var(--scale-factor))`,o.color=$t.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 y4e 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=Ov,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 d=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 _=u.userValue;!_||_.length<=g||(_=_.slice(0,g),b.value=u.userValue=_,t.setValue(n,{value:_}),(w=this.linkService.eventBus)==null||w.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:_,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=d;d=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:_}=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&&(C+=k[0].length);break}case"deleteContentBackward":b===_&&(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:C}})}),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(d&&s.addEventListener("blur",d),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 w4e extends Gu{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class _4e 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=Ov,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 XP 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=Ov,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 d of this._getElementsByName(c.target.name)){const h=u&&d.id===s;d.domElement&&(d.domElement.checked=h),t.setValue(d.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 C4e extends YP{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 S4e 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=Ov;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 d=this.data.defaultFieldValue;for(const h of a.options)h.selected=h.value===d});for(const u of this.data.options){const d=document.createElement("option");d.textContent=u.displayValue,d.value=u.exportValue,s.value.includes(u.exportValue)&&(d.setAttribute("selected",!0),o=!1),a.append(d)}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 d=u?"value":"textContent",{options:h,multiple:p}=a;return p?Array.prototype.filter.call(h,v=>v.selected).map(v=>v[d]):h.selectedIndex===-1?null:h[h.selectedIndex][d]};let l=i(!1);const c=u=>{const d=u.target.options;return Array.prototype.map.call(d,h=>({displayValue:h.textContent,exportValue:h.value}))};return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",u=>{const d={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(d,u)}),a.addEventListener("input",u=>{var p;const d=i(!0),h=i(!1);t.setValue(n,{value:d}),u.preventDefault(),(p=this.linkService.eventBus)==null||p.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:l,change:h,changeEx:d,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 bw extends hs{constructor(t){const{data:n,elements:s}=t;super(t,{isRenderable:hs._hasPopupData(n)}),this.elements=s,this.popup=null}render(){this.container.classList.add("popupAnnotation");const t=this.popup=new x4e({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=>`${Z8}${s}`).join(",")),this.container}}class x4e{constructor({container:t,color:n,elements:s,titleObj:a,modificationDate:o,contentsObj:r,richText:i,parent:l,rect:c,parentRect:u,open:d}){se(this,Fn);se(this,Yh,oe(this,Fn,UR).bind(this));se(this,Ab,oe(this,Fn,u_).bind(this));se(this,Tb,oe(this,Fn,Qb).bind(this));se(this,Xh,oe(this,Fn,Zb).bind(this));se(this,Rd,null);se(this,fs,null);se(this,Rl,null);se(this,Jh,null);se(this,km,null);se(this,Em,null);se(this,Zh,null);se(this,Il,!1);se(this,Ir,null);se(this,Ol,null);se(this,Am,null);se(this,Ll,null);se(this,Tm,null);se(this,Id,null);se(this,Od,!1);var h;q(this,fs,t),q(this,Tm,a),q(this,Rl,r),q(this,Ll,i),q(this,Em,l),q(this,Rd,n),q(this,Am,c),q(this,Zh,u),q(this,km,s),q(this,Jh,tw.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,Tb)),p.addEventListener("mouseleave",y(this,Ab)),p.classList.add("popupTriggerArea");for(const p of s)(h=p.container)==null||h.addEventListener("keydown",y(this,Yh));y(this,fs).hidden=!0,d&&oe(this,Fn,Zb).call(this)}render(){if(y(this,Ir))return;const t=q(this,Ir,document.createElement("div"));if(t.className="popup",y(this,Rd)){const o=t.style.outlineColor=$t.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=$t.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,Tm),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,Fn,Jb);if(a)GP.render({xfaHtml:a,intent:"richText",div:t}),t.lastChild.classList.add("richText","popupContent");else{const o=this._formatContents(y(this,Rl));t.append(o)}y(this,fs).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,Rl),richText:y(this,Ll)}),t&&q(this,Ol,null),n&&(q(this,Ll,oe(this,Fn,KR).call(this,n)),q(this,Rl,null)),(s=y(this,Ir))==null||s.remove(),q(this,Ir,null)}resetEdited(){var t;y(this,Id)&&({contentsObj:Ha(this,Rl)._,richText:Ha(this,Ll)._}=y(this,Id),q(this,Id,null),(t=y(this,Ir))==null||t.remove(),q(this,Ir,null),q(this,Ol,null))}forceHide(){q(this,Od,this.isVisible),y(this,Od)&&(y(this,fs).hidden=!0)}maybeShow(){y(this,Od)&&(y(this,Ir)||oe(this,Fn,Qb).call(this),q(this,Od,!1),y(this,fs).hidden=!1)}get isVisible(){return y(this,fs).hidden===!1}}Yh=new WeakMap,Ab=new WeakMap,Tb=new WeakMap,Xh=new WeakMap,Rd=new WeakMap,fs=new WeakMap,Rl=new WeakMap,Jh=new WeakMap,km=new WeakMap,Em=new WeakMap,Zh=new WeakMap,Il=new WeakMap,Ir=new WeakMap,Ol=new WeakMap,Am=new WeakMap,Ll=new WeakMap,Tm=new WeakMap,Id=new WeakMap,Od=new WeakMap,Fn=new WeakSet,Jb=function(){const t=y(this,Ll),n=y(this,Rl);return t!=null&&t.str&&(!(n!=null&&n.str)||n.str===t.str)&&y(this,Ll).html||null},c_=function(){var t,n,s;return((s=(n=(t=y(this,Fn,Jb))==null?void 0:t.attributes)==null?void 0:n.style)==null?void 0:s.fontSize)||0},jR=function(){var t,n,s;return((s=(n=(t=y(this,Fn,Jb))==null?void 0:t.attributes)==null?void 0:n.style)==null?void 0:s.color)||null},KR=function(t){const n=[],s={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:n}]}},a={style:{color:y(this,Fn,jR),fontSize:y(this,Fn,c_)?`calc(${y(this,Fn,c_)}px * var(--scale-factor))`:""}};for(const o of t.split(`
`))n.push({name:"span",value:o,attributes:a});return s},UR=function(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&y(this,Il))&&oe(this,Fn,Zb).call(this)},qR=function(){if(y(this,Ol)!==null)return;const{page:{view:t},viewport:{rawDims:{pageWidth:n,pageHeight:s,pageX:a,pageY:o}}}=y(this,Em);let r=!!y(this,Zh),i=r?y(this,Zh):y(this,Am);for(const v of y(this,km))if(!i||$t.intersect(v.data.rect,i)!==null){i=v.data.rect,r=!0;break}const l=$t.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,d=l[0]+u,h=l[1];q(this,Ol,[100*(d-a)/n,100*(h-o)/s]);const{style:p}=y(this,fs);p.left=`${y(this,Ol)[0]}%`,p.top=`${y(this,Ol)[1]}%`},Zb=function(){q(this,Il,!y(this,Il)),y(this,Il)?(oe(this,Fn,Qb).call(this),y(this,fs).addEventListener("click",y(this,Xh)),y(this,fs).addEventListener("keydown",y(this,Yh))):(oe(this,Fn,u_).call(this),y(this,fs).removeEventListener("click",y(this,Xh)),y(this,fs).removeEventListener("keydown",y(this,Yh)))},Qb=function(){y(this,Ir)||this.render(),this.isVisible?y(this,Il)&&y(this,fs).classList.add("focused"):(oe(this,Fn,qR).call(this),y(this,fs).hidden=!1,y(this,fs).style.zIndex=parseInt(y(this,fs).style.zIndex)+1e3)},u_=function(){y(this,fs).classList.remove("focused"),!(y(this,Il)||!this.isVisible)&&(y(this,fs).hidden=!0,y(this,fs).style.zIndex=parseInt(y(this,fs).style.zIndex)-1e3)};class JP extends hs{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=rn.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 k4e extends hs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});se(this,Mm,null)}render(){this.container.classList.add("lineAnnotation");const n=this.data,{width:s,height:a}=xc(n.rect),o=this.svgFactory.create(s,a,!0),r=q(this,Mm,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,Mm)}addHighlightArea(){this.container.classList.add("highlightArea")}}Mm=new WeakMap;class E4e extends hs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});se(this,Pm,null)}render(){this.container.classList.add("squareAnnotation");const n=this.data,{width:s,height:a}=xc(n.rect),o=this.svgFactory.create(s,a,!0),r=n.borderStyle.width,i=q(this,Pm,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,Pm)}addHighlightArea(){this.container.classList.add("highlightArea")}}Pm=new WeakMap;class A4e extends hs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});se(this,Rm,null)}render(){this.container.classList.add("circleAnnotation");const n=this.data,{width:s,height:a}=xc(n.rect),o=this.svgFactory.create(s,a,!0),r=n.borderStyle.width,i=q(this,Rm,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,Rm)}addHighlightArea(){this.container.classList.add("highlightArea")}}Rm=new WeakMap;class ZP extends hs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});se(this,Im,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}=xc(n),l=this.svgFactory.create(r,i,!0);let c=[];for(let d=0,h=s.length;d<h;d+=2){const p=s[d]-n[0],v=n[3]-s[d+1];c.push(`${p},${v}`)}c=c.join(" ");const u=q(this,Im,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,Im)}addHighlightArea(){this.container.classList.add("highlightArea")}}Im=new WeakMap;class T4e extends ZP{constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class M4e extends hs{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 yw extends hs{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});se(this,Lm);se(this,Om,null);se(this,Ld,[]);this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=this.data.it==="InkHighlight"?rn.HIGHLIGHT:rn.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,Lm,d_).call(this,s,n),u=this.svgFactory.create(l,c,!0),d=q(this,Om,this.svgFactory.createElement("svg:g"));u.append(d),d.setAttribute("stroke-width",o.width||1),d.setAttribute("stroke-linecap","round"),d.setAttribute("stroke-linejoin","round"),d.setAttribute("stroke-miterlimit",10),d.setAttribute("stroke","transparent"),d.setAttribute("fill","transparent"),d.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(",")),d.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,Om);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,Lm,d_).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")}}Om=new WeakMap,Ld=new WeakMap,Lm=new WeakSet,d_=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 QP extends hs{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=rn.HIGHLIGHT}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),this.container}}class P4e extends hs{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 R4e extends hs{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 I4e extends hs{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 eR extends hs{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=rn.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 O4e extends hs{constructor(n){var a;super(n,{isRenderable:!0});se(this,$m);se(this,Nm,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,$m,f_).bind(this)),q(this,Nm,a);const{isMac:o}=Na.platform;return n.addEventListener("keydown",r=>{r.key==="Enter"&&(o?r.metaKey:r.ctrlKey)&&oe(this,$m,f_).call(this)}),!s.popupRef&&this.hasPopupData?this._createPopup():a.classList.add("popupTriggerArea"),n.append(a),n}getElementsToTriggerPopup(){return y(this,Nm)}addHighlightArea(){this.container.classList.add("highlightArea")}}Nm=new WeakMap,$m=new WeakSet,f_=function(){var n;(n=this.downloadManager)==null||n.openOrDownloadData(this.content,this.filename)};class L4e{constructor({div:t,accessibilityManager:n,annotationCanvasMap:s,annotationEditorUIManager:a,page:o,viewport:r,structTreeLayer:i}){se(this,Dd);se(this,Dm,null);se(this,Nd,null);se(this,$d,new Map);se(this,Fm,null);this.div=t,q(this,Dm,n),q(this,Nd,s),q(this,Fm,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 gw,annotationStorage:t.annotationStorage||new lw,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===Ps.POPUP;if(l){const d=a.get(i.id);if(!d)continue;o.elements=d}else{const{width:d,height:h}=xc(i.rect);if(d<=0||h<=0)continue}o.data=i;const c=g4e.create(o);if(!c.isRenderable)continue;if(!l&&i.popupRef){const d=a.get(i.popupRef);d?d.push(c):a.set(i.popupRef,[c])}const u=c.render();i.hidden&&(u.style.visibility="hidden"),await oe(this,Dd,GR).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,h_).call(this)}update({viewport:t}){const n=this.div;this.viewport=t,Ku(n,{rotation:t.rotation}),oe(this,Dd,h_).call(this),n.hidden=!1}getEditableAnnotations(){return Array.from(y(this,$d).values())}getEditableAnnotation(t){return y(this,$d).get(t)}}Dm=new WeakMap,Nd=new WeakMap,$d=new WeakMap,Fm=new WeakMap,Dd=new WeakSet,GR=async function(t,n){var r,i;const s=t.firstChild||t,a=s.id=`${Z8}${n}`,o=await((r=y(this,Fm))==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,Dm))==null||i.moveElementInDOM(this.div,t,s,!1)},h_=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 cb=/\r\n?|\n/g,Kn=class Kn extends as{constructor(n){super({...n,name:"freeTextEditor"});se(this,xs);se(this,Or);se(this,ko,"");se(this,Bm,`${this.id}-editor`);se(this,Fd,null);se(this,Eo);q(this,Or,n.color||Kn._defaultColor||as._defaultLineColor),q(this,Eo,n.fontSize||Kn._defaultFontSize)}static get _keyboardManager(){const n=Kn.prototype,s=r=>r.isEmpty(),a=Uu.TRANSLATE_SMALL,o=Uu.TRANSLATE_BIG;return fn(this,"_keyboardManager",new Ev([[["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){as.initialize(n,s);const a=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(a.getPropertyValue("--freetext-padding"))}static updateDefaultParams(n,s){switch(n){case gn.FREETEXT_SIZE:Kn._defaultFontSize=s;break;case gn.FREETEXT_COLOR:Kn._defaultColor=s;break}}updateParams(n,s){switch(n){case gn.FREETEXT_SIZE:oe(this,xs,YR).call(this,s);break;case gn.FREETEXT_COLOR:oe(this,xs,XR).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[gn.FREETEXT_SIZE,Kn._defaultFontSize],[gn.FREETEXT_COLOR,Kn._defaultColor||as._defaultLineColor]]}get propertiesToUpdate(){return[[gn.FREETEXT_SIZE,y(this,Eo)],[gn.FREETEXT_COLOR,y(this,Or)]]}_translateEmpty(n,s){this._uiManager.translateSelectedEditors(n,s,!0)}getInitialTranslation(){const n=this.parentScale;return[-Kn._internalPadding*n,-(Kn._internalPadding+y(this,Eo))*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(rn.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,Bm)),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,ko),s=q(this,ko,oe(this,xs,JR).call(this).trimEnd());if(n===s)return;const a=o=>{if(q(this,ko,o),!o){this.remove();return}oe(this,xs,n4).call(this),this._uiManager.rebuild(this),oe(this,xs,e4).call(this)};this.addCommands({cmd:()=>{a(s)},undo:()=>{a(n)},mustExec:!1}),oe(this,xs,e4).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){Kn._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,Bm)),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,Eo)}px * var(--scale-factor))`,a.color=y(this,Or),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),tb(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,d]=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)/d;break;case 90:v=n+(i[0]-h)/u,m=s-(i[1]-p)/d,[l,c]=[c,-l];break;case 180:v=n-this.width+(i[0]-h)/u,m=s-(i[1]-p)/d,[l,c]=[-l,-c];break;case 270:v=n+(i[0]-h-this.height*d)/u,m=s+(i[1]-p-this.width*u)/d,[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,xs,n4).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=Kn,Nl,p_).call(v,s.getData("text")||"").replaceAll(cb,`
`);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=[],d=[];if(l.nodeType===Node.TEXT_NODE){const b=l.parentElement;if(d.push(l.nodeValue.slice(c).replaceAll(cb,"")),b!==this.editorDiv){let _=u;for(const w of this.editorDiv.childNodes){if(w===b){_=d;continue}_.push(oe(m=Kn,Nl,t4).call(m,w))}}u.push(l.nodeValue.slice(0,c).replaceAll(cb,""))}else if(l===this.editorDiv){let b=u,_=0;for(const w of this.editorDiv.childNodes)_++===c&&(b=d),b.push(oe(g=Kn,Nl,t4).call(g,w))}q(this,ko,`${u.join(`
`)}${o}${d.join(`
`)}`),oe(this,xs,n4).call(this);const h=new Range;let p=u.reduce((b,_)=>b+_.length,0);for(const{firstChild:b}of this.editorDiv.childNodes)if(b.nodeType===Node.TEXT_NODE){const _=b.nodeValue.length;if(p<=_){h.setStart(b,p),h.setEnd(b,p);break}p-=_}r.removeAllRanges(),r.addRange(h)}get contentDiv(){return this.editorDiv}static async deserialize(n,s,a){var i;let o=null;if(n instanceof JP){const{data:{defaultAppearanceData:{fontSize:l,fontColor:c},rect:u,rotation:d,id:h,popupRef:p},textContent:v,textPosition:m,parent:{page:{pageNumber:g}}}=n;if(!v||v.length===0)return null;o=n={annotationType:rn.FREETEXT,color:Array.from(c),fontSize:l,value:v.join(`
`),position:m,pageIndex:g-1,rect:u.slice(0),rotation:d,id:h,deleted:!1,popupRef:p}}const r=await super.deserialize(n,s,a);return q(r,Eo,n.fontSize),q(r,Or,$t.makeHexColor(...n.color)),q(r,ko,oe(i=Kn,Nl,p_).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=Kn._internalPadding*this.parentScale,a=this.getRect(s,s),o=as._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:y(this,Or)),r={annotationType:rn.FREETEXT,color:o,fontSize:y(this,Eo),value:oe(this,xs,ZR).call(this),pageIndex:this.pageIndex,rect:a,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?r:this.annotationElementId&&!oe(this,xs,QR).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,Eo)}px * var(--scale-factor))`,a.color=y(this,Or),s.replaceChildren();for(const r of y(this,ko).split(`
`)){const i=document.createElement("div");i.append(r?document.createTextNode(r):document.createElement("br")),s.append(i)}const o=Kn._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(o,o),popupContent:y(this,ko)}),s}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}};Or=new WeakMap,ko=new WeakMap,Bm=new WeakMap,Fd=new WeakMap,Eo=new WeakMap,xs=new WeakSet,YR=function(n){const s=o=>{this.editorDiv.style.fontSize=`calc(${o}px * var(--scale-factor))`,this.translate(0,-(o-y(this,Eo))*this.parentScale),q(this,Eo,o),oe(this,xs,e4).call(this)},a=y(this,Eo);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:gn.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},XR=function(n){const s=o=>{q(this,Or,this.editorDiv.style.color=o)},a=y(this,Or);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:gn.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},JR=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=Kn,Nl,t4).call(a,o)),s=o);return n.join(`
`)},e4=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()},Nl=new WeakSet,t4=function(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(cb,"")},n4=function(){if(this.editorDiv.replaceChildren(),!!y(this,ko))for(const n of y(this,ko).split(`
`)){const s=document.createElement("div");s.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(s)}},ZR=function(){return y(this,ko).replaceAll(" "," ")},p_=function(n){return n.replaceAll(" "," ")},QR=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},se(Kn,Nl),Wt(Kn,"_freeTextDefaultContent",""),Wt(Kn,"_internalPadding",0),Wt(Kn,"_defaultColor",null),Wt(Kn,"_defaultFontSize",10),Wt(Kn,"_type","freetext"),Wt(Kn,"_editorType",rn.FREETEXT);let ww=Kn;class At{toSVGPath(){zn("Abstract method `toSVGPath` must be implemented.")}get box(){zn("Abstract getter `box` must be implemented.")}serialize(t,n){zn("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]}}Wt(At,"PRECISION",1e-4);const $l=class $l{constructor({x:t,y:n},s,a,o,r,i=0){se(this,Os);se(this,Ao);se(this,Lr,[]);se(this,Qh);se(this,e0);se(this,xi,[]);se(this,hn,new Float32Array(18));se(this,Bd);se(this,Vd);se(this,Vm);se(this,zm);se(this,t0);se(this,n0);se(this,Kc,[]);q(this,Ao,s),q(this,n0,o*a),q(this,e0,r),y(this,hn).set([NaN,NaN,NaN,NaN,t,n],6),q(this,Qh,i),q(this,zm,y($l,Hm)*a),q(this,Vm,y($l,Pb)*a),q(this,t0,a),y(this,Kc).push(t,n)}isEmpty(){return isNaN(y(this,hn)[8])}add({x:t,y:n}){var I;q(this,Bd,t),q(this,Vd,n);const[s,a,o,r]=y(this,Ao);let[i,l,c,u]=y(this,hn).subarray(8,12);const d=t-c,h=n-u,p=Math.hypot(d,h);if(p<y(this,Vm))return!1;const v=p-y(this,zm),m=v/p,g=m*d,b=m*h;let _=i,w=l;i=c,l=u,c+=g,u+=b,(I=y(this,Kc))==null||I.push(t,n);const C=-b/v,x=g/v,k=C*y(this,n0),T=x*y(this,n0);return y(this,hn).set(y(this,hn).subarray(2,8),0),y(this,hn).set([c+k,u+T],4),y(this,hn).set(y(this,hn).subarray(14,18),12),y(this,hn).set([c-k,u-T],16),isNaN(y(this,hn)[6])?(y(this,xi).length===0&&(y(this,hn).set([i+k,l+T],2),y(this,xi).push(NaN,NaN,NaN,NaN,(i+k-s)/o,(l+T-a)/r),y(this,hn).set([i-k,l-T],14),y(this,Lr).push(NaN,NaN,NaN,NaN,(i-k-s)/o,(l-T-a)/r)),y(this,hn).set([_,w,i,l,c,u],6),!this.isEmpty()):(y(this,hn).set([_,w,i,l,c,u],6),Math.abs(Math.atan2(w-l,_-i)-Math.atan2(b,g))<Math.PI/2?([i,l,c,u]=y(this,hn).subarray(2,6),y(this,xi).push(NaN,NaN,NaN,NaN,((i+c)/2-s)/o,((l+u)/2-a)/r),[i,l,_,w]=y(this,hn).subarray(14,18),y(this,Lr).push(NaN,NaN,NaN,NaN,((_+i)/2-s)/o,((w+l)/2-a)/r),!0):([_,w,i,l,c,u]=y(this,hn).subarray(0,6),y(this,xi).push(((_+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,_,w]=y(this,hn).subarray(12,18),y(this,Lr).push(((_+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,xi),n=y(this,Lr);if(isNaN(y(this,hn)[6])&&!this.isEmpty())return oe(this,Os,eI).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,Os,nI).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,Os,tI).call(this,s),s.join(" ")}newFreeDrawOutline(t,n,s,a,o,r){return new tR(t,n,s,a,o,r)}getOutlines(){var d;const t=y(this,xi),n=y(this,Lr),s=y(this,hn),[a,o,r,i]=y(this,Ao),l=new Float32Array((((d=y(this,Kc))==null?void 0:d.length)??0)+2);for(let h=0,p=l.length-2;h<p;h+=2)l[h]=(y(this,Kc)[h]-a)/r,l[h+1]=(y(this,Kc)[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,Os,sI).call(this,l);const c=new Float32Array(y(this,xi).length+24+y(this,Lr).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,Os,oI).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,Os,aI).call(this,c,u),this.newFreeDrawOutline(c,l,y(this,Ao),y(this,t0),y(this,Qh),y(this,e0))}};Ao=new WeakMap,Lr=new WeakMap,Qh=new WeakMap,e0=new WeakMap,xi=new WeakMap,hn=new WeakMap,Bd=new WeakMap,Vd=new WeakMap,Vm=new WeakMap,zm=new WeakMap,t0=new WeakMap,n0=new WeakMap,Kc=new WeakMap,Hm=new WeakMap,Mb=new WeakMap,Pb=new WeakMap,Os=new WeakSet,v2=function(){const t=y(this,hn).subarray(4,6),n=y(this,hn).subarray(16,18),[s,a,o,r]=y(this,Ao);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]},eI=function(){const[t,n,s,a]=y(this,Ao),[o,r,i,l]=oe(this,Os,v2).call(this);return`M${(y(this,hn)[2]-t)/s} ${(y(this,hn)[3]-n)/a} L${(y(this,hn)[4]-t)/s} ${(y(this,hn)[5]-n)/a} L${o} ${r} L${i} ${l} L${(y(this,hn)[16]-t)/s} ${(y(this,hn)[17]-n)/a} L${(y(this,hn)[14]-t)/s} ${(y(this,hn)[15]-n)/a} Z`},tI=function(t){const n=y(this,Lr);t.push(`L${n[4]} ${n[5]} Z`)},nI=function(t){const[n,s,a,o]=y(this,Ao),r=y(this,hn).subarray(4,6),i=y(this,hn).subarray(16,18),[l,c,u,d]=oe(this,Os,v2).call(this);t.push(`L${(r[0]-n)/a} ${(r[1]-s)/o} L${l} ${c} L${u} ${d} L${(i[0]-n)/a} ${(i[1]-s)/o}`)},sI=function(t){const n=y(this,hn),[s,a,o,r]=y(this,Ao),[i,l,c,u]=oe(this,Os,v2).call(this),d=new Float32Array(36);return d.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(d,t,y(this,Ao),y(this,t0),y(this,Qh),y(this,e0))},aI=function(t,n){const s=y(this,Lr);return t.set([NaN,NaN,NaN,NaN,s[4],s[5]],n),n+=6},oI=function(t,n){const s=y(this,hn).subarray(4,6),a=y(this,hn).subarray(16,18),[o,r,i,l]=y(this,Ao),[c,u,d,h]=oe(this,Os,v2).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,d,h,NaN,NaN,NaN,NaN,(a[0]-o)/i,(a[1]-r)/l],n),n+=24},se($l,Hm,8),se($l,Mb,2),se($l,Pb,y($l,Hm)+y($l,Mb));let ub=$l;class tR extends At{constructor(n,s,a,o,r,i){super();se(this,Rb);se(this,s0);se(this,zd,new Float32Array(4));se(this,Dl);se(this,Wm);se(this,To);se(this,jm);se(this,vs);q(this,vs,n),q(this,To,s),q(this,s0,a),q(this,jm,o),q(this,Dl,r),q(this,Wm,i),this.lastPoint=[NaN,NaN],oe(this,Rb,rI).call(this,i);const[l,c,u,d]=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)/d;for(let h=0,p=s.length;h<p;h+=2)s[h]=(s[h]-l)/u,s[h+1]=(s[h+1]-c)/d}toSVGPath(){const n=[`M${y(this,vs)[4]} ${y(this,vs)[5]}`];for(let s=6,a=y(this,vs).length;s<a;s+=6){if(isNaN(y(this,vs)[s])){n.push(`L${y(this,vs)[s+4]} ${y(this,vs)[s+5]}`);continue}n.push(`C${y(this,vs)[s]} ${y(this,vs)[s+1]} ${y(this,vs)[s+2]} ${y(this,vs)[s+3]} ${y(this,vs)[s+4]} ${y(this,vs)[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=At._rescale(y(this,vs),n,o,i,-l),u=At._rescale(y(this,To),n,o,i,-l);break;case 90:c=At._rescaleAndSwap(y(this,vs),n,s,i,l),u=At._rescaleAndSwap(y(this,To),n,s,i,l);break;case 180:c=At._rescale(y(this,vs),a,s,-i,l),u=At._rescale(y(this,To),a,s,-i,l);break;case 270:c=At._rescaleAndSwap(y(this,vs),a,o,-i,-l),u=At._rescaleAndSwap(y(this,To),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 ub(n,s,a,o,r,i)}getNewOutline(n,s){const[a,o,r,i]=y(this,zd),[l,c,u,d]=y(this,s0),h=r*u,p=i*d,v=a*u+l,m=o*d+c,g=this.newOutliner({x:y(this,To)[0]*h+v,y:y(this,To)[1]*p+m},y(this,s0),y(this,jm),n,y(this,Wm),s??y(this,Dl));for(let b=2;b<y(this,To).length;b+=2)g.add({x:y(this,To)[b]*h+v,y:y(this,To)[b+1]*p+m});return g.getOutlines()}}s0=new WeakMap,zd=new WeakMap,Dl=new WeakMap,Wm=new WeakMap,To=new WeakMap,jm=new WeakMap,vs=new WeakMap,Rb=new WeakSet,rI=function(n){const s=y(this,vs);let a=s[4],o=s[5],r=a,i=o,l=a,c=o,u=a,d=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]),d<s[v+5]?(u=s[v+4],d=s[v+5]):d===s[v+5]&&(u=h(u,s[v+4]));else{const g=$t.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]),d<g[3]?(u=g[2],d=g[3]):d===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,Dl),p[1]=i-y(this,Dl),p[2]=l-r+2*y(this,Dl),p[3]=c-i+2*y(this,Dl),this.lastPoint=[u,d]};class _w{constructor(t,n=0,s=0,a=!0){se(this,Fa);se(this,Km);se(this,Um);se(this,Uc,[]);se(this,Nr,[]);let o=1/0,r=-1/0,i=1/0,l=-1/0;const c=10**-4;for(const{x:g,y:b,width:_,height:w}of t){const C=Math.floor((g-n)/c)*c,x=Math.ceil((g+_+n)/c)*c,k=Math.floor((b-n)/c)*c,T=Math.ceil((b+w+n)/c)*c,R=[C,k,T,!0],I=[x,k,T,!1];y(this,Uc).push(R,I),o=Math.min(o,C),r=Math.max(r,x),i=Math.min(i,k),l=Math.max(l,T)}const u=r-o+2*s,d=l-i+2*s,h=o-s,p=i-s,v=y(this,Uc).at(a?-1:-2),m=[v[0],v[2]];for(const g of y(this,Uc)){const[b,_,w]=g;g[0]=(b-h)/u,g[1]=(_-p)/d,g[2]=(w-p)/d}q(this,Km,new Float32Array([h,p,u,d])),q(this,Um,m)}getOutlines(){y(this,Uc).sort((n,s)=>n[0]-s[0]||n[1]-s[1]||n[2]-s[2]);const t=[];for(const n of y(this,Uc))n[3]?(t.push(...oe(this,Fa,v_).call(this,n)),oe(this,Fa,lI).call(this,n)):(oe(this,Fa,cI).call(this,n),t.push(...oe(this,Fa,v_).call(this,n)));return oe(this,Fa,iI).call(this,t)}}Km=new WeakMap,Um=new WeakMap,Uc=new WeakMap,Nr=new WeakMap,Fa=new WeakSet,iI=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,d]=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(d))v=d;else break;s.delete(v),[i,l,c,u,d]=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 N4e(a,y(this,Km),y(this,Um))},s4=function(t){const n=y(this,Nr);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},lI=function([,t,n]){const s=oe(this,Fa,s4).call(this,t);y(this,Nr).splice(s,0,[t,n])},cI=function([,t,n]){const s=oe(this,Fa,s4).call(this,t);for(let a=s;a<y(this,Nr).length;a++){const[o,r]=y(this,Nr)[a];if(o!==t)break;if(o===t&&r===n){y(this,Nr).splice(a,1);return}}for(let a=s-1;a>=0;a--){const[o,r]=y(this,Nr)[a];if(o!==t)break;if(o===t&&r===n){y(this,Nr).splice(a,1);return}}},v_=function(t){const[n,s,a]=t,o=[[n,s,a]],r=oe(this,Fa,s4).call(this,a);for(let i=0;i<r;i++){const[l,c]=y(this,Nr)[i];for(let u=0,d=o.length;u<d;u++){const[,h,p]=o[u];if(!(c<=h||p<=l)){if(h>=l){if(p>c)o[u][1]=c;else{if(d===1)return[];o.splice(u,1),u--,d--}continue}o[u][2]=l,p>c&&o.push([n,c,p])}}}return o};class N4e extends At{constructor(n,s,a){super();se(this,qm);se(this,a0);q(this,a0,n),q(this,qm,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 d=new Array(u.length);for(let h=0;h<u.length;h+=2)d[h]=n+u[h]*l,d[h+1]=o-u[h+1]*c;i.push(d)}return i}get box(){return y(this,qm)}get classNamesForOutlining(){return["highlightOutline"]}}qm=new WeakMap,a0=new WeakMap;class Cw extends ub{newFreeDrawOutline(t,n,s,a,o,r){return new $4e(t,n,s,a,o,r)}}class $4e extends tR{newOutliner(t,n,s,a,o,r=0){return new Cw(t,n,s,a,o,r)}}const ao=class ao{constructor({editor:t=null,uiManager:n=null}){se(this,Bn);se(this,$r,null);se(this,Hd,null);se(this,o0);se(this,Ls,null);se(this,Gm,!1);se(this,r0,!1);se(this,Ym,null);se(this,Xm);se(this,qc,null);se(this,Dr,null);se(this,i0);var s;t?(q(this,r0,!1),q(this,i0,gn.HIGHLIGHT_COLOR),q(this,Ym,t)):(q(this,r0,!0),q(this,i0,gn.HIGHLIGHT_DEFAULT_COLOR)),q(this,Dr,(t==null?void 0:t._uiManager)||n),q(this,Xm,y(this,Dr)._eventBus),q(this,o0,(t==null?void 0:t.color)||((s=y(this,Dr))==null?void 0:s.highlightColors.values().next().value)||"#FFFF98"),y(ao,Jm)||q(ao,Jm,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 fn(this,"_keyboardManager",new Ev([[["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,$r,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,Dr)._signal;t.addEventListener("click",oe(this,Bn,of).bind(this),{signal:n}),t.addEventListener("keydown",oe(this,Bn,b_).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,Ls,oe(this,Bn,m_).call(this));return t.setAttribute("aria-orientation","horizontal"),t.setAttribute("aria-labelledby","highlightColorPickerLabel"),t}_colorSelectFromKeyboard(t){if(t.target===y(this,$r)){oe(this,Bn,of).call(this,t);return}const n=t.target.getAttribute("data-color");n&&oe(this,Bn,g_).call(this,n,t)}_moveToNext(t){var n,s;if(!y(this,Bn,su)){oe(this,Bn,of).call(this,t);return}if(t.target===y(this,$r)){(n=y(this,Ls).firstChild)==null||n.focus();return}(s=t.target.nextSibling)==null||s.focus()}_moveToPrevious(t){var n,s;if(t.target===((n=y(this,Ls))==null?void 0:n.firstChild)||t.target===y(this,$r)){y(this,Bn,su)&&this._hideDropdownFromKeyboard();return}y(this,Bn,su)||oe(this,Bn,of).call(this,t),(s=t.target.previousSibling)==null||s.focus()}_moveToBeginning(t){var n;if(!y(this,Bn,su)){oe(this,Bn,of).call(this,t);return}(n=y(this,Ls).firstChild)==null||n.focus()}_moveToEnd(t){var n;if(!y(this,Bn,su)){oe(this,Bn,of).call(this,t);return}(n=y(this,Ls).lastChild)==null||n.focus()}hideDropdown(){var t,n;(t=y(this,Ls))==null||t.classList.add("hidden"),(n=y(this,qc))==null||n.abort(),q(this,qc,null)}_hideDropdownFromKeyboard(){var t;if(!y(this,r0)){if(!y(this,Bn,su)){(t=y(this,Ym))==null||t.unselect();return}this.hideDropdown(),y(this,$r).focus({preventScroll:!0,focusVisible:y(this,Gm)})}}updateColor(t){if(y(this,Hd)&&(y(this,Hd).style.backgroundColor=t),!y(this,Ls))return;const n=y(this,Dr).highlightColors.values();for(const s of y(this,Ls).children)s.setAttribute("aria-selected",n.next().value===t)}destroy(){var t,n;(t=y(this,$r))==null||t.remove(),q(this,$r,null),q(this,Hd,null),(n=y(this,Ls))==null||n.remove(),q(this,Ls,null)}};$r=new WeakMap,Hd=new WeakMap,o0=new WeakMap,Ls=new WeakMap,Gm=new WeakMap,r0=new WeakMap,Ym=new WeakMap,Xm=new WeakMap,qc=new WeakMap,Dr=new WeakMap,i0=new WeakMap,Jm=new WeakMap,Bn=new WeakSet,m_=function(){const t=document.createElement("div"),n=y(this,Dr)._signal;t.addEventListener("contextmenu",kr,{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,Dr).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,Jm)[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,Bn,g_).bind(this,a),{signal:n}),t.append(o)}return t.addEventListener("keydown",oe(this,Bn,b_).bind(this),{signal:n}),t},g_=function(t,n){n.stopPropagation(),y(this,Xm).dispatch("switchannotationeditorparams",{source:this,type:y(this,i0),value:t})},b_=function(t){ao._keyboardManager.exec(this,t)},of=function(t){if(y(this,Bn,su)){this.hideDropdown();return}if(q(this,Gm,t.detail===0),y(this,qc)||(q(this,qc,new AbortController),window.addEventListener("pointerdown",oe(this,Bn,uI).bind(this),{signal:y(this,Dr).combinedSignal(y(this,qc))})),y(this,Ls)){y(this,Ls).classList.remove("hidden");return}const n=q(this,Ls,oe(this,Bn,m_).call(this));y(this,$r).append(n)},uI=function(t){var n;(n=y(this,Ls))!=null&&n.contains(t.target)||this.hideDropdown()},su=function(){return y(this,Ls)&&!y(this,Ls).classList.contains("hidden")},se(ao,Jm,null);let db=ao;const xn=class xn extends as{constructor(n){super({...n,name:"highlightEditor"});se(this,an);se(this,l0,null);se(this,Zm,0);se(this,Fl);se(this,Wd,null);se(this,c0,null);se(this,oo,null);se(this,Qm,null);se(this,e2,0);se(this,jd,null);se(this,Yo,null);se(this,Mo,null);se(this,Qs,!1);se(this,u0,null);se(this,Bl);se(this,_a,null);se(this,d0,"");se(this,Xo);se(this,t2,"");this.color=n.color||xn._defaultColor,q(this,Xo,n.thickness||xn._defaultThickness),q(this,Bl,n.opacity||xn._defaultOpacity),q(this,Fl,n.boxes||null),q(this,t2,n.methodOfCreation||""),q(this,d0,n.text||""),this._isDraggable=!1,n.highlightId>-1?(q(this,Qs,!0),oe(this,an,a4).call(this,n),oe(this,an,rf).call(this)):y(this,Fl)&&(q(this,l0,n.anchorNode),q(this,Zm,n.anchorOffset),q(this,Qm,n.focusNode),q(this,e2,n.focusOffset),oe(this,an,y_).call(this),oe(this,an,rf).call(this),this.rotate(this.rotation))}static get _keyboardManager(){const n=xn.prototype;return fn(this,"_keyboardManager",new Ev([[["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,Qs)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:y(this,Xo),methodOfCreation:y(this,t2)}}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;as.initialize(n,s),xn._defaultColor||(xn._defaultColor=((a=s.highlightColors)==null?void 0:a.values().next().value)||"#fff066")}static updateDefaultParams(n,s){switch(n){case gn.HIGHLIGHT_DEFAULT_COLOR:xn._defaultColor=s;break;case gn.HIGHLIGHT_THICKNESS:xn._defaultThickness=s;break}}translateInPage(n,s){}get toolbarPosition(){return y(this,u0)}updateParams(n,s){switch(n){case gn.HIGHLIGHT_COLOR:oe(this,an,dI).call(this,s);break;case gn.HIGHLIGHT_THICKNESS:oe(this,an,fI).call(this,s);break}}static get defaultPropertiesToUpdate(){return[[gn.HIGHLIGHT_DEFAULT_COLOR,xn._defaultColor],[gn.HIGHLIGHT_THICKNESS,xn._defaultThickness]]}get propertiesToUpdate(){return[[gn.HIGHLIGHT_COLOR,this.color||xn._defaultColor],[gn.HIGHLIGHT_THICKNESS,y(this,Xo)||xn._defaultThickness],[gn.HIGHLIGHT_FREE,y(this,Qs)]]}async addEditToolbar(){const n=await super.addEditToolbar();return n?(this._uiManager.highlightColors&&(q(this,c0,new db({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,an,m2).call(this))}getBaseTranslation(){return[0,0]}getRect(n,s){return super.getRect(n,s,oe(this,an,m2).call(this))}onceAdded(n){this.annotationElementId||this.parent.addUndoableEditor(this),n&&this.div.focus()}remove(){oe(this,an,w_).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(oe(this,an,rf).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){var a;let s=!1;this.parent&&!n?oe(this,an,w_).call(this):n&&(oe(this,an,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,Qs)?(n=(n-this.rotation+360)%360,a=oe(o=xn,Jo,M0).call(o,y(this,Yo).box,n)):a=oe(r=xn,Jo,M0).call(r,[this.x,this.y,this.width,this.height],n),s.updateProperties(y(this,Mo),{bbox:a,root:{"data-main-rotation":n}}),s.updateProperties(y(this,_a),{bbox:oe(i=xn,Jo,M0).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,Qs)?n.classList.add("free"):this.div.addEventListener("keydown",oe(this,an,pI).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),tb(this,y(this,jd),["pointerover","pointerleave"]),this.enableEditing(),n}pointerover(){var n;this.isSelected||(n=this.parent)==null||n.drawLayer.updateProperties(y(this,_a),{rootClass:{hovered:!0}})}pointerleave(){var n;this.isSelected||(n=this.parent)==null||n.drawLayer.updateProperties(y(this,_a),{rootClass:{hovered:!1}})}_moveCaret(n){switch(this.parent.unselect(this),n){case 0:case 2:oe(this,an,o4).call(this,!0);break;case 1:case 3:oe(this,an,o4).call(this,!1);break}}select(){var n;super.select(),y(this,_a)&&((n=this.parent)==null||n.drawLayer.updateProperties(y(this,_a),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var n;super.unselect(),y(this,_a)&&((n=this.parent)==null||n.drawLayer.updateProperties(y(this,_a),{rootClass:{selected:!1}}),y(this,Qs)||oe(this,an,o4).call(this,!1))}get _mustFixPosition(){return!y(this,Qs)}show(n=this._isVisible){super.show(n),this.parent&&(this.parent.drawLayer.updateProperties(y(this,Mo),{rootClass:{hidden:!n}}),this.parent.drawLayer.updateProperties(y(this,_a),{rootClass:{hidden:!n}}))}static startHighlighting(n,s,{target:a,x:o,y:r}){const{x:i,y:l,width:c,height:u}=a.getBoundingClientRect(),d=new AbortController,h=n.combinedSignal(d),p=v=>{d.abort(),oe(this,Jo,bI).call(this,n,v)};window.addEventListener("blur",p,{signal:h}),window.addEventListener("pointerup",p,{signal:h}),window.addEventListener("pointerdown",bo,{capture:!0,passive:!1,signal:h}),window.addEventListener("contextmenu",kr,{signal:h}),a.addEventListener("pointermove",oe(this,Jo,gI).bind(this,n),{signal:h}),this._freeHighlight=new Cw({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,_;let o=null;if(n instanceof QP){const{data:{quadPoints:w,rect:C,rotation:x,id:k,color:T,opacity:R,popupRef:I},parent:{page:{pageNumber:M}}}=n;o=n={annotationType:rn.HIGHLIGHT,color:Array.from(T),opacity:R,quadPoints:w,boxes:null,pageIndex:M-1,rect:C.slice(0),rotation:x,id:k,deleted:!1,popupRef:I}}else if(n instanceof yw){const{data:{inkLists:w,rect:C,rotation:x,id:k,color:T,borderStyle:{rawWidth:R},popupRef:I},parent:{page:{pageNumber:M}}}=n;o=n={annotationType:rn.HIGHLIGHT,color:Array.from(T),thickness:R,inkLists:w,boxes:null,pageIndex:M-1,rect:C.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=$t.makeHexColor(...r),q(u,Bl,c||1),l&&q(u,Xo,n.thickness),u.annotationElementId=n.id||null,u._initialData=o;const[d,h]=u.pageDimensions,[p,v]=u.pageTranslation;if(i){const w=q(u,Fl,[]);for(let C=0;C<i.length;C+=8)w.push({x:(i[C]-p)/d,y:1-(i[C+1]-v)/h,width:(i[C+2]-i[C])/d,height:(i[C+1]-i[C+5])/h});oe(m=u,an,y_).call(m),oe(g=u,an,rf).call(g),u.rotate(u.rotation)}else if(l){q(u,Qs,!0);const w=l[0],C={x:w[0]-p,y:h-(w[1]-v)},x=new Cw(C,[0,0,d,h],1,y(u,Xo)/2,!0,.001);for(let R=0,I=w.length;R<I;R+=2)C.x=w[R]-p,C.y=h-(w[R+1]-v),x.add(C);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,an,a4).call(b,{highlightOutlines:x.getOutlines(),highlightId:k,clipPathId:T}),oe(_=u,an,rf).call(_)}return u}serialize(n=!1){if(this.isEmpty()||n)return null;if(this.deleted)return this.serializeDeleted();const s=this.getRect(0,0),a=as._colorManager.convert(this.color),o={annotationType:rn.HIGHLIGHT,color:a,opacity:y(this,Bl),thickness:y(this,Xo),quadPoints:oe(this,an,vI).call(this),outlines:oe(this,an,mI).call(this,s),pageIndex:this.pageIndex,rect:s,rotation:oe(this,an,m2).call(this),structTreeParentId:this._structTreeParentId};return this.annotationElementId&&!oe(this,an,yI).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,Zm=new WeakMap,Fl=new WeakMap,Wd=new WeakMap,c0=new WeakMap,oo=new WeakMap,Qm=new WeakMap,e2=new WeakMap,jd=new WeakMap,Yo=new WeakMap,Mo=new WeakMap,Qs=new WeakMap,u0=new WeakMap,Bl=new WeakMap,_a=new WeakMap,d0=new WeakMap,Xo=new WeakMap,t2=new WeakMap,an=new WeakSet,y_=function(){const n=new _w(y(this,Fl),.001);q(this,Yo,n.getOutlines()),[this.x,this.y,this.width,this.height]=y(this,Yo).box;const s=new _w(y(this,Fl),.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])},a4=function({highlightOutlines:n,highlightId:s,clipPathId:a}){var d,h;if(q(this,Yo,n),q(this,oo,n.getNewOutline(y(this,Xo)/2+1.5,.0025)),s>=0)q(this,Mo,s),q(this,Wd,a),this.parent.drawLayer.finalizeDraw(s,{bbox:n.box,path:{d:n.toSVGPath()}}),q(this,_a,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,Mo),{bbox:oe(d=xn,Jo,M0).call(d,y(this,Yo).box,(p-this.rotation+360)%360),path:{d:n.toSVGPath()}}),this.parent.drawLayer.updateProperties(y(this,_a),{bbox:oe(h=xn,Jo,M0).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])},dI=function(n){const s=(r,i)=>{var l,c;this.color=r,q(this,Bl,i),(l=this.parent)==null||l.drawLayer.updateProperties(y(this,Mo),{root:{fill:r,"fill-opacity":i}}),(c=y(this,c0))==null||c.updateColor(r)},a=this.color,o=y(this,Bl);this.addCommands({cmd:s.bind(this,n,xn._defaultOpacity),undo:s.bind(this,a,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:gn.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(n)},!0)},fI=function(n){const s=y(this,Xo),a=o=>{q(this,Xo,o),oe(this,an,hI).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:gn.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:n},!0)},hI=function(n){if(!y(this,Qs))return;oe(this,an,a4).call(this,{highlightOutlines:y(this,Yo).getNewOutline(n/2)}),this.fixAndSetPosition();const[s,a]=this.parentDimensions;this.setDims(this.width*s,this.height*a)},w_=function(){y(this,Mo)===null||!this.parent||(this.parent.drawLayer.remove(y(this,Mo)),q(this,Mo,null),this.parent.drawLayer.remove(y(this,_a)),q(this,_a,null))},rf=function(n=this.parent){y(this,Mo)===null&&({id:Ha(this,Mo)._,clipPathId:Ha(this,Wd)._}=n.drawLayer.draw({bbox:y(this,Yo).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":y(this,Bl)},rootClass:{highlight:!0,free:y(this,Qs)},path:{d:y(this,Yo).toSVGPath()}},!1,!0),q(this,_a,n.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:y(this,Qs)},bbox:y(this,oo).box,path:{d:y(this,oo).toSVGPath()}},y(this,Qs))),y(this,jd)&&(y(this,jd).style.clipPath=y(this,Wd)))},Jo=new WeakSet,M0=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]},pI=function(n){xn._keyboardManager.exec(this,n)},o4=function(n){if(!y(this,l0))return;const s=window.getSelection();n?s.setPosition(y(this,l0),y(this,Zm)):s.setPosition(y(this,Qm),y(this,e2))},m2=function(){return y(this,Qs)?this.rotation:0},vI=function(){if(y(this,Qs))return null;const[n,s]=this.pageDimensions,[a,o]=this.pageTranslation,r=y(this,Fl),i=new Float32Array(r.length*8);let l=0;for(const{x:c,y:u,width:d,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+d*n,i[l+5]=i[l+7]=v-h*s,l+=8}return i},mI=function(n){return y(this,Yo).serialize(n,oe(this,an,m2).call(this))},gI=function(n,s){this._freeHighlight.add(s)&&n.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})},bI=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=""},yI=function(n){const{color:s}=this._initialData;return n.color.some((a,o)=>a!==s[o])},se(xn,Jo),Wt(xn,"_defaultColor",null),Wt(xn,"_defaultOpacity",1),Wt(xn,"_defaultThickness",12),Wt(xn,"_type","highlight"),Wt(xn,"_editorType",rn.HIGHLIGHT),Wt(xn,"_freeHighlightId",-1),Wt(xn,"_freeHighlight",null),Wt(xn,"_freeHighlightClipId","");let fb=xn;class D4e{constructor(){se(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(){zn("Not implemented")}}Kd=new WeakMap;const Pt=class Pt extends as{constructor(n){super(n);se(this,yn);se(this,Po,null);se(this,f0);Wt(this,"_drawId",null);q(this,f0,n.mustBeCommitted||!1),n.drawOutlines&&(oe(this,yn,__).call(this,n),oe(this,yn,g2).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){zn("Not implemented")}static get typesMap(){zn("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(Pt,Ws).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,Po).updateProperty(s,l);c&&oe(this,yn,b2).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,Pt._mergeSVGProperties(y(this,Po).getPathResizingSVGProperties(oe(this,yn,r4).call(this)),{bbox:oe(this,yn,P0).call(this)}))}_onResized(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,Pt._mergeSVGProperties(y(this,Po).getPathResizedSVGProperties(oe(this,yn,r4).call(this)),{bbox:oe(this,yn,P0).call(this)}))}_onTranslating(n,s){var a;(a=this.parent)==null||a.drawLayer.updateProperties(this._drawId,{bbox:oe(this,yn,P0).call(this,n,s)})}_onTranslated(){var n;(n=this.parent)==null||n.drawLayer.updateProperties(this._drawId,Pt._mergeSVGProperties(y(this,Po).getPathTranslatedSVGProperties(oe(this,yn,r4).call(this),this.parentDimensions),{bbox:oe(this,yn,P0).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,yn,S_).call(this),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(oe(this,yn,g2).call(this),oe(this,yn,b2).call(this,y(this,Po).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){var a;let s=!1;this.parent&&!n?(this._uiManager.removeShouldRescale(this),oe(this,yn,S_).call(this)):n&&(this._uiManager.addShouldRescale(this),oe(this,yn,g2).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,Pt._mergeSVGProperties({bbox:oe(this,yn,P0).call(this)},y(this,Po).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&oe(this,yn,b2).call(this,y(this,Po).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){zn("Not implemented")}static startDrawing(n,s,a,o){var g;const{target:r,offsetX:i,offsetY:l,pointerId:c,pointerType:u}=o;if(y(Pt,Yc)&&y(Pt,Yc)!==u)return;const{viewport:{rotation:d}}=n,{width:h,height:p}=r.getBoundingClientRect(),v=q(Pt,Ud,new AbortController),m=n.combinedSignal(v);if(y(Pt,Gc)||q(Pt,Gc,c),y(Pt,Yc)??q(Pt,Yc,u),window.addEventListener("pointerup",b=>{var _;y(Pt,Gc)===b.pointerId?this._endDraw(b):(_=y(Pt,Xc))==null||_.delete(b.pointerId)},{signal:m}),window.addEventListener("pointercancel",b=>{var _;y(Pt,Gc)===b.pointerId?this._currentParent.endDrawingSession():(_=y(Pt,Xc))==null||_.delete(b.pointerId)},{signal:m}),window.addEventListener("pointerdown",b=>{y(Pt,Yc)===b.pointerType&&((y(Pt,Xc)||q(Pt,Xc,new Set)).add(b.pointerId),y(Pt,Ws).isCancellable()&&(y(Pt,Ws).removeLastElement(),y(Pt,Ws).isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:m}),window.addEventListener("contextmenu",kr,{signal:m}),r.addEventListener("pointermove",this._drawMove.bind(this),{signal:m}),r.addEventListener("touchmove",b=>{b.timeStamp===y(Pt,Gd)&&bo(b)},{signal:m}),n.toggleDrawing(),(g=s._editorUndoBar)==null||g.hide(),y(Pt,Ws)){n.drawLayer.updateProperties(this._currentDrawId,y(Pt,Ws).startNew(i,l,h,p,d));return}s.updateUIForDefaultProperties(this),q(Pt,Ws,this.createDrawerInstance(i,l,h,p,d)),q(Pt,qd,this.getDefaultDrawingOptions()),this._currentParent=n,{id:this._currentDrawId}=n.drawLayer.draw(this._mergeSVGProperties(y(Pt,qd).toSVGProperties(),y(Pt,Ws).defaultSVGProperties),!0,!1)}static _drawMove(n){var r;if(q(Pt,Gd,-1),!y(Pt,Ws))return;const{offsetX:s,offsetY:a,pointerId:o}=n;if(y(Pt,Gc)===o){if(((r=y(Pt,Xc))==null?void 0:r.size)>=1){this._endDraw(n);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,y(Pt,Ws).add(s,a)),q(Pt,Gd,n.timeStamp),bo(n)}}static _cleanup(n){n&&(this._currentDrawId=-1,this._currentParent=null,q(Pt,Ws,null),q(Pt,qd,null),q(Pt,Yc,null),q(Pt,Gd,NaN)),y(Pt,Ud)&&(y(Pt,Ud).abort(),q(Pt,Ud,null),q(Pt,Gc,NaN),q(Pt,Xc,null))}static _endDraw(n){const s=this._currentParent;if(s){if(s.toggleDrawing(!0),this._cleanup(!1),n&&s.drawLayer.updateProperties(this._currentDrawId,y(Pt,Ws).end(n.offsetX,n.offsetY)),this.supportMultipleDrawings){const a=y(Pt,Ws),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:gn.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(n){const s=this._currentParent;if(!s)return null;if(s.toggleDrawing(!0),s.cleanUndoStack(gn.DRAW_STEP),!y(Pt,Ws).isEmpty()){const{pageDimensions:[a,o],scale:r}=s,i=s.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:y(Pt,Ws).getOutlines(a*r,o*r,r,this._INNER_MARGIN),drawingOptions:y(Pt,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){zn("Not implemented")}static async deserialize(n,s,a){var d,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(d=u,yn,__).call(d,{drawOutlines:c}),oe(h=u,yn,g2).call(h),u.onScaleChanging(),u.rotate(),u}serializeDraw(n){const[s,a]=this.pageTranslation,[o,r]=this.pageDimensions;return y(this,Po).serialize([s,a,o,r],n)}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}};Po=new WeakMap,f0=new WeakMap,Ws=new WeakMap,Ud=new WeakMap,qd=new WeakMap,Gc=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,Gd=new WeakMap,yn=new WeakSet,__=function({drawOutlines:n,drawId:s,drawingOptions:a}){q(this,Po,n),this._drawingOptions||(this._drawingOptions=a),s>=0?(this._drawId=s,this.parent.drawLayer.finalizeDraw(s,n.defaultProperties)):this._drawId=oe(this,yn,C_).call(this,n,this.parent),oe(this,yn,b2).call(this,n.box)},C_=function(n,s){const{id:a}=s.drawLayer.draw(Pt._mergeSVGProperties(this._drawingOptions.toSVGProperties(),n.defaultSVGProperties),!1,!1);return a},S_=function(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())},g2=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,yn,C_).call(this,y(this,Po),n)}},wI=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]}},r4=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]}},b2=function(n){if([this.x,this.y,this.width,this.height]=oe(this,yn,wI).call(this,n),this.div){this.fixAndSetPosition();const[s,a]=this.parentDimensions;this.setDims(this.width*s,this.height*a)}this._onResized()},P0=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]}},Wt(Pt,"_currentDrawId",-1),Wt(Pt,"_currentParent",null),se(Pt,Ws,null),se(Pt,Ud,null),se(Pt,qd,null),se(Pt,Gc,NaN),se(Pt,Yc,null),se(Pt,Xc,null),se(Pt,Gd,NaN),Wt(Pt,"_INNER_MARGIN",3);let Sw=Pt;class F4e{constructor(t,n,s,a,o,r){se(this,p0);se(this,ki,new Float64Array(6));se(this,js);se(this,Ks);se(this,Yd);se(this,h0);se(this,Ba);se(this,ea,"");se(this,Zo,0);se(this,Xd,new hb);se(this,Jd);se(this,Zd);q(this,Jd,s),q(this,Zd,a),q(this,Yd,o),q(this,h0,r),[t,n]=oe(this,p0,i4).call(this,t,n);const i=q(this,js,[NaN,NaN,NaN,NaN,t,n]);q(this,Ba,[t,n]),q(this,Ks,[{line:i,points:y(this,Ba)}]),y(this,ki).set(i,0)}updateProperty(t,n){t==="stroke-width"&&q(this,h0,n)}isEmpty(){return!y(this,Ks)||y(this,Ks).length===0}isCancellable(){return y(this,Ba).length<=10}add(t,n){[t,n]=oe(this,p0,i4).call(this,t,n);const[s,a,o,r]=y(this,ki).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,ki).set([o,r,t,n],2),y(this,js).push(NaN,NaN,NaN,NaN,t,n),{path:{d:this.toSVGPath()}}):(isNaN(y(this,ki)[0])&&y(this,js).splice(6,6),y(this,ki).set([s,a,o,r,t,n],0),y(this,js).push(...At.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,i4).call(this,t,n);const r=q(this,js,[NaN,NaN,NaN,NaN,t,n]);q(this,Ba,[t,n]);const i=y(this,Ks).at(-1);return i&&(i.line=new Float32Array(i.line),i.points=new Float32Array(i.points)),y(this,Ks).push({line:r,points:y(this,Ba)}),y(this,ki).set(r,0),q(this,Zo,0),this.toSVGPath(),null}getLastElement(){return y(this,Ks).at(-1)}setLastElement(t){return y(this,Ks)?(y(this,Ks).push(t),q(this,js,t.line),q(this,Ba,t.points),q(this,Zo,0),{path:{d:this.toSVGPath()}}):y(this,Xd).setLastElement(t)}removeLastElement(){if(!y(this,Ks))return y(this,Xd).removeLastElement();y(this,Ks).pop(),q(this,ea,"");for(let t=0,n=y(this,Ks).length;t<n;t++){const{line:s,points:a}=y(this,Ks)[t];q(this,js,s),q(this,Ba,a),q(this,Zo,0),this.toSVGPath()}return{path:{d:y(this,ea)}}}toSVGPath(){const t=At.svgRound(y(this,js)[4]),n=At.svgRound(y(this,js)[5]);if(y(this,Ba).length===2)return q(this,ea,`${y(this,ea)} M ${t} ${n} Z`),y(this,ea);if(y(this,Ba).length<=6){const a=y(this,ea).lastIndexOf("M");q(this,ea,`${y(this,ea).slice(0,a)} M ${t} ${n}`),q(this,Zo,6)}if(y(this,Ba).length===4){const a=At.svgRound(y(this,js)[10]),o=At.svgRound(y(this,js)[11]);return q(this,ea,`${y(this,ea)} L ${a} ${o}`),q(this,Zo,12),y(this,ea)}const s=[];y(this,Zo)===0&&(s.push(`M ${t} ${n}`),q(this,Zo,6));for(let a=y(this,Zo),o=y(this,js).length;a<o;a+=6){const[r,i,l,c,u,d]=y(this,js).slice(a,a+6).map(At.svgRound);s.push(`C${r} ${i} ${l} ${c} ${u} ${d}`)}return q(this,ea,y(this,ea)+s.join(" ")),q(this,Zo,y(this,js).length),y(this,ea)}getOutlines(t,n,s,a){const o=y(this,Ks).at(-1);return o.line=new Float32Array(o.line),o.points=new Float32Array(o.points),y(this,Xd).build(y(this,Ks),t,n,s,y(this,Yd),y(this,h0),a),q(this,ki,null),q(this,js,null),q(this,Ks,null),q(this,ea,null),y(this,Xd)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}ki=new WeakMap,js=new WeakMap,Ks=new WeakMap,Yd=new WeakMap,h0=new WeakMap,Ba=new WeakMap,ea=new WeakMap,Zo=new WeakMap,Xd=new WeakMap,Jd=new WeakMap,Zd=new WeakMap,p0=new WeakSet,i4=function(t,n){return At._normalizePoint(t,n,y(this,Jd),y(this,Zd),y(this,Yd))};const Ow=class Ow extends At{constructor(){super(...arguments);se(this,ta);se(this,Va);se(this,n2,0);se(this,s2);se(this,Ro);se(this,Ei);se(this,Ai);se(this,v0);se(this,m0);se(this,g0)}build(n,s,a,o,r,i,l){q(this,Ei,s),q(this,Ai,a),q(this,v0,o),q(this,m0,r),q(this,g0,i),q(this,s2,l??0),q(this,Ro,n),oe(this,ta,CI).call(this)}setLastElement(n){return y(this,Ro).push(n),{path:{d:this.toSVGPath()}}}removeLastElement(){return y(this,Ro).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const n=[];for(const{line:s}of y(this,Ro)){if(n.push(`M${At.svgRound(s[4])} ${At.svgRound(s[5])}`),s.length===6){n.push("Z");continue}if(s.length===12){n.push(`L${At.svgRound(s[10])} ${At.svgRound(s[11])}`);continue}for(let a=6,o=s.length;a<o;a+=6){const[r,i,l,c,u,d]=s.subarray(a,a+6).map(At.svgRound);n.push(`C${r} ${i} ${l} ${c} ${u} ${d}`)}}return n.join("")}serialize([n,s,a,o],r){const i=[],l=[],[c,u,d,h]=oe(this,ta,_I).call(this);let p,v,m,g,b,_,w,C,x;switch(y(this,m0)){case 0:x=At._rescale,p=n,v=s+o,m=a,g=-o,b=n+c*a,_=s+(1-u-h)*o,w=n+(c+d)*a,C=s+(1-u)*o;break;case 90:x=At._rescaleAndSwap,p=n,v=s,m=a,g=o,b=n+u*a,_=s+c*o,w=n+(u+h)*a,C=s+(c+d)*o;break;case 180:x=At._rescale,p=n+a,v=s,m=-a,g=o,b=n+(1-c-d)*a,_=s+u*o,w=n+(1-c)*a,C=s+(u+h)*o;break;case 270:x=At._rescaleAndSwap,p=n+a,v=s+o,m=-a,g=-o,b=n+(1-u-h)*a,_=s+(1-c-d)*o,w=n+(1-u)*a,C=s+(1-c)*o;break}for(const{line:k,points:T}of y(this,Ro))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,_,w,C]}}static deserialize(n,s,a,o,r,{paths:{lines:i,points:l},rotation:c,thickness:u}){const d=[];let h,p,v,m,g;switch(c){case 0:g=At._rescale,h=-n/a,p=s/o+1,v=1/a,m=-1/o;break;case 90:g=At._rescaleAndSwap,h=-s/o,p=-n/a,v=1/o,m=1/a;break;case 180:g=At._rescale,h=n/a+1,p=-s/o,v=-1/a,m=1/o;break;case 270:g=At._rescaleAndSwap,h=s/o+1,p=n/a+1,v=-1/o,m=-1/a;break}if(!i){i=[];for(const _ of l){const w=_.length;if(w===2){i.push(new Float32Array([NaN,NaN,NaN,NaN,_[0],_[1]]));continue}if(w===4){i.push(new Float32Array([NaN,NaN,NaN,NaN,_[0],_[1],NaN,NaN,NaN,NaN,_[2],_[3]]));continue}const C=new Float32Array(3*(w-2));i.push(C);let[x,k,T,R]=_.subarray(0,4);C.set([NaN,NaN,NaN,NaN,x,k],0);for(let I=4;I<w;I+=2){const M=_[I],$=_[I+1];C.set(At.createBezierPoints(x,k,T,R,M,$),(I-2)*3),[x,k,T,R]=[T,R,M,$]}}}for(let _=0,w=i.length;_<w;_++)d.push({line:g(i[_].map(C=>C??NaN),h,p,v,m),points:g(l[_].map(C=>C??NaN),h,p,v,m)});const b=new Ow;return b.build(d,a,o,1,c,u,r),b}get box(){return y(this,Va)}updateProperty(n,s){return n==="stroke-width"?oe(this,ta,SI).call(this,s):null}updateParentDimensions([n,s],a){const[o,r]=oe(this,ta,ql).call(this);q(this,Ei,n),q(this,Ai,s),q(this,v0,a);const[i,l]=oe(this,ta,ql).call(this),c=i-o,u=l-r,d=y(this,Va);return d[0]-=c,d[1]-=u,d[2]+=2*c,d[3]+=2*u,d}updateRotation(n){return q(this,n2,n),{path:{transform:this.rotationTransform}}}get viewBox(){return y(this,Va).map(At.svgRound).join(" ")}get defaultProperties(){const[n,s]=y(this,Va);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${At.svgRound(n)} ${At.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,n2)){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} ${At.svgRound(l)} ${At.svgRound(c)})`}getPathResizingSVGProperties([n,s,a,o]){const[r,i]=oe(this,ta,ql).call(this),[l,c,u,d]=y(this,Va);if(Math.abs(u-r)<=At.PRECISION||Math.abs(d-i)<=At.PRECISION){const g=n+a/2-(l+u/2),b=s+o/2-(c+d/2);return{path:{"transform-origin":`${At.svgRound(n)} ${At.svgRound(s)}`,transform:`${this.rotationTransform} translate(${g} ${b})`}}}const h=(a-2*r)/(u-2*r),p=(o-2*i)/(d-2*i),v=u/a,m=d/o;return{path:{"transform-origin":`${At.svgRound(l)} ${At.svgRound(c)}`,transform:`${this.rotationTransform} scale(${v} ${m}) translate(${At.svgRound(r)} ${At.svgRound(i)}) scale(${h} ${p}) translate(${At.svgRound(-r)} ${At.svgRound(-i)})`}}}getPathResizedSVGProperties([n,s,a,o]){const[r,i]=oe(this,ta,ql).call(this),l=y(this,Va),[c,u,d,h]=l;if(l[0]=n,l[1]=s,l[2]=a,l[3]=o,Math.abs(d-r)<=At.PRECISION||Math.abs(h-i)<=At.PRECISION){const b=n+a/2-(c+d/2),_=s+o/2-(u+h/2);for(const{line:w,points:C}of y(this,Ro))At._translate(w,b,_,w),At._translate(C,b,_,C);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${At.svgRound(n)} ${At.svgRound(s)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const p=(a-2*r)/(d-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:_}of y(this,Ro))At._rescale(b,m,g,p,v,b),At._rescale(_,m,g,p,v,_);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${At.svgRound(n)} ${At.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,Ei)===o&&y(this,Ai)===r)for(const{line:u,points:d}of y(this,Ro))At._translate(u,l,c,u),At._translate(d,l,c,d);else{const u=y(this,Ei)/o,d=y(this,Ai)/r;q(this,Ei,o),q(this,Ai,r);for(const{line:h,points:p}of y(this,Ro))At._rescale(h,l,c,u,d,h),At._rescale(p,l,c,u,d,p);i[2]*=u,i[3]*=d}return i[0]=n,i[1]=s,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${At.svgRound(n)} ${At.svgRound(s)}`}}}get defaultSVGProperties(){const n=y(this,Va);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${At.svgRound(n[0])} ${At.svgRound(n[1])}`,transform:this.rotationTransform||null},bbox:n}}};Va=new WeakMap,n2=new WeakMap,s2=new WeakMap,Ro=new WeakMap,Ei=new WeakMap,Ai=new WeakMap,v0=new WeakMap,m0=new WeakMap,g0=new WeakMap,ta=new WeakSet,ql=function(n=y(this,g0)){const s=y(this,s2)+n/2*y(this,v0);return y(this,m0)%180===0?[s/y(this,Ei),s/y(this,Ai)]:[s/y(this,Ai),s/y(this,Ei)]},_I=function(){const[n,s,a,o]=y(this,Va),[r,i]=oe(this,ta,ql).call(this,0);return[n+r,s+i,a-2*r,o-2*i]},CI=function(){const n=q(this,Va,new Float32Array([1/0,1/0,-1/0,-1/0]));for(const{line:o}of y(this,Ro)){if(o.length<=12){for(let l=4,c=o.length;l<c;l+=6){const[u,d]=o.subarray(l,l+2);n[0]=Math.min(n[0],u),n[1]=Math.min(n[1],d),n[2]=Math.max(n[2],u),n[3]=Math.max(n[3],d)}continue}let r=o[4],i=o[5];for(let l=6,c=o.length;l<c;l+=6){const[u,d,h,p,v,m]=o.subarray(l,l+6);$t.bezierBoundingBox(r,i,u,d,h,p,v,m,n),r=v,i=m}}const[s,a]=oe(this,ta,ql).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]},SI=function(n){const[s,a]=oe(this,ta,ql).call(this);q(this,g0,n);const[o,r]=oe(this,ta,ql).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 hb=Ow;const Lw=class Lw extends D4e{constructor(n){super();se(this,b0);q(this,b0,n),super.updateProperties({fill:"none",stroke:as._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 Lw(y(this,b0));return n.updateAll(this),n}};b0=new WeakMap;let xw=Lw;const y0=class y0 extends Sw{constructor(n){super({...n,name:"inkEditor"});se(this,Ib);this._willKeepAspectRatio=!0}static initialize(n,s){as.initialize(n,s),this._defaultDrawingOptions=new xw(s.viewParameters)}static getDefaultDrawingOptions(n){const s=this._defaultDrawingOptions.clone();return s.updateProperties(n),s}static get supportMultipleDrawings(){return!0}static get typesMap(){return fn(this,"typesMap",new Map([[gn.INK_THICKNESS,"stroke-width"],[gn.INK_COLOR,"stroke"],[gn.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(n,s,a,o,r){return new F4e(n,s,a,o,r,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(n,s,a,o,r,i){return hb.deserialize(n,s,a,o,r,i)}static async deserialize(n,s,a){let o=null;if(n instanceof yw){const{data:{inkLists:i,rect:l,rotation:c,id:u,color:d,opacity:h,borderStyle:{rawWidth:p},popupRef:v},parent:{page:{pageNumber:m}}}=n;o=n={annotationType:rn.INK,color:Array.from(d),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:$t.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:rn.INK,color:as._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,Ib,xI).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}};Ib=new WeakSet,xI=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},Wt(y0,"_type","ink"),Wt(y0,"_editorType",rn.INK),Wt(y0,"_defaultDrawingOptions",null);let kw=y0;const a2=class a2 extends as{constructor(n){super({...n,name:"stampEditor"});se(this,Cn);se(this,rs,null);se(this,na,null);se(this,Jc,null);se(this,Vl,null);se(this,Zc,null);se(this,w0,"");se(this,Ti,null);se(this,Mi,null);se(this,Io,!1);se(this,_0,!1);q(this,Vl,n.bitmapUrl),q(this,Zc,n.bitmapFile)}static initialize(n,s){as.initialize(n,s)}static get supportedTypes(){return fn(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(s=>`image/${s}`))}static get supportedTypesStr(){return fn(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(n){return this.supportedTypes.includes(n)}static paste(n,s){s.pasteEditor(rn.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,na)&&(q(this,rs,null),this._uiManager.imageManager.deleteId(y(this,na)),(n=y(this,Ti))==null||n.remove(),q(this,Ti,null),y(this,Mi)&&(clearTimeout(y(this,Mi)),q(this,Mi,null))),super.remove()}rebuild(){if(!this.parent){y(this,na)&&oe(this,Cn,l4).call(this);return}super.rebuild(),this.div!==null&&(y(this,na)&&y(this,Ti)===null&&oe(this,Cn,l4).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(n){this._isDraggable=!0,n&&this.div.focus()}isEmpty(){return!(y(this,Jc)||y(this,rs)||y(this,Vl)||y(this,Zc)||y(this,na))}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,rs)?oe(this,Cn,x_).call(this):oe(this,Cn,l4).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,Mi)!==null&&clearTimeout(y(this,Mi)),q(this,Mi,setTimeout(()=>{q(this,Mi,null),oe(this,Cn,k_).call(this)},200))}copyCanvas(n,s,a=!1){var p;n||(n=224);const{width:o,height:r}=y(this,rs),i=new sw;let l=y(this,rs),c=o,u=r,d=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)}d=document.createElement("canvas");const v=d.width=Math.ceil(c*i.sx),m=d.height=Math.ceil(u*i.sy);y(this,Io)||(l=oe(this,Cn,c4).call(this,v,m));const g=d.getContext("2d");g.filter=this._uiManager.hcmFilter;let b="white",_="#cfcfd8";this._uiManager.hcmFilter!=="none"?_="black":(p=window.matchMedia)!=null&&p.call(window,"(prefers-color-scheme: dark)").matches&&(b="#8f8f9d",_="#42414d");const w=15,C=w*i.sx,x=w*i.sy,k=new OffscreenCanvas(C*2,x*2),T=k.getContext("2d");T.fillStyle=b,T.fillRect(0,0,C*2,x*2),T.fillStyle=_,T.fillRect(0,0,C,x),T.fillRect(C,x,C,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,rs),o>n||r>n){const _=Math.min(n/o,n/r);v=Math.floor(o*_),m=Math.floor(r*_),y(this,Io)||(l=oe(this,Cn,c4).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:d,width:c,height:u,imageData:h}}getImageForAltText(){return y(this,Ti)}static async deserialize(n,s,a){var m;let o=null;if(n instanceof eR){const{data:{rect:g,rotation:b,id:_,structParent:w,popupRef:C},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(`${Z8}${_}`))==null?void 0:m.get("aria-label"))||"";o=n={annotationType:rn.STAMP,bitmapId:R.id,bitmap:R.bitmap,pageIndex:k-1,rect:g.slice(0),rotation:b,id:_,deleted:!1,accessibilityData:{decorative:!1,altText:I},isSvg:!1,structParent:w,popupRef:C}}const r=await super.deserialize(n,s,a),{rect:i,bitmap:l,bitmapUrl:c,bitmapId:u,isSvg:d,accessibilityData:h}=n;u&&a.imageManager.isValidId(u)?(q(r,na,u),l&&q(r,rs,l)):q(r,Vl,c),q(r,Io,d);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:rn.STAMP,bitmapId:y(this,na),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:y(this,Io),structTreeParentId:this._structTreeParentId};if(n)return a.bitmapUrl=oe(this,Cn,u4).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,Cn,kI).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,Io)?(a.rect[2]-a.rect[0])*(a.rect[3]-a.rect[1]):null;if(!s.stamps.has(y(this,na)))s.stamps.set(y(this,na),{area:i,serialized:a}),a.bitmap=oe(this,Cn,u4).call(this,!1);else if(y(this,Io)){const l=s.stamps.get(y(this,na));i>l.area&&(l.area=i,l.serialized.bitmap.close(),l.serialized.bitmap=oe(this,Cn,u4).call(this,!1))}return a}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}};rs=new WeakMap,na=new WeakMap,Jc=new WeakMap,Vl=new WeakMap,Zc=new WeakMap,w0=new WeakMap,Ti=new WeakMap,Mi=new WeakMap,Io=new WeakMap,_0=new WeakMap,Cn=new WeakSet,y2=function(n,s=!1){if(!n){this.remove();return}q(this,rs,n.bitmap),s||(q(this,na,n.id),q(this,Io,n.isSvg)),n.file&&q(this,w0,n.file.name),oe(this,Cn,x_).call(this)},w2=function(){if(q(this,Jc,null),this._uiManager.enableWaiting(!1),!!y(this,Ti)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&y(this,rs)){this._editToolbar.hide(),this._uiManager.editAltText(this,!0);return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&y(this,rs)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},l4=function(){if(y(this,na)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(y(this,na)).then(a=>oe(this,Cn,y2).call(this,a,!0)).finally(()=>oe(this,Cn,w2).call(this));return}if(y(this,Vl)){const a=y(this,Vl);q(this,Vl,null),this._uiManager.enableWaiting(!0),q(this,Jc,this._uiManager.imageManager.getFromUrl(a).then(o=>oe(this,Cn,y2).call(this,o)).finally(()=>oe(this,Cn,w2).call(this)));return}if(y(this,Zc)){const a=y(this,Zc);q(this,Zc,null),this._uiManager.enableWaiting(!0),q(this,Jc,this._uiManager.imageManager.getFromFile(a).then(o=>oe(this,Cn,y2).call(this,o)).finally(()=>oe(this,Cn,w2).call(this)));return}const n=document.createElement("input");n.type="file",n.accept=a2.supportedTypesStr;const s=this._uiManager._signal;q(this,Jc,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,Cn,y2).call(this,o)}a()},{signal:s}),n.addEventListener("cancel",()=>{this.remove(),a()},{signal:s})}).finally(()=>oe(this,Cn,w2).call(this))),n.click()},x_=function(){var d;const{div:n}=this;let{width:s,height:a}=y(this,rs);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,Ti,document.createElement("canvas"));u.setAttribute("role","img"),this.addContainer(u),this.width=s/o,this.height=a/r,(d=this._initialOptions)!=null&&d.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(n.hidden=!1),oe(this,Cn,k_).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))},c4=function(n,s){const{width:a,height:o}=y(this,rs);let r=a,i=o,l=y(this,rs);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 d=new OffscreenCanvas(r,i);d.getContext("2d").drawImage(l,0,0,c,u,0,0,r,i),l=d.transferToImageBitmap()}return l},k_=function(){const[n,s]=this.parentDimensions,{width:a,height:o}=this,r=new sw,i=Math.ceil(a*n*r.sx),l=Math.ceil(o*s*r.sy),c=y(this,Ti);if(!c||c.width===i&&c.height===l)return;c.width=i,c.height=l;const u=y(this,Io)?y(this,rs):oe(this,Cn,c4).call(this,i,l),d=c.getContext("2d");d.filter=this._uiManager.hcmFilter,d.drawImage(u,0,0,u.width,u.height,0,0,i,l)},u4=function(n){if(n){if(y(this,Io)){const o=this._uiManager.imageManager.getSvgUrl(y(this,na));if(o)return o}const s=document.createElement("canvas");return{width:s.width,height:s.height}=y(this,rs),s.getContext("2d").drawImage(y(this,rs),0,0),s.toDataURL()}if(y(this,Io)){const[s,a]=this.pageDimensions,o=Math.round(this.width*s*Sc.PDF_TO_CSS_UNITS),r=Math.round(this.height*a*Sc.PDF_TO_CSS_UNITS),i=new OffscreenCanvas(o,r);return i.getContext("2d").drawImage(y(this,rs),0,0,y(this,rs).width,y(this,rs).height,0,0,o,r),i.transferToImageBitmap()}return structuredClone(y(this,rs))},kI=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}},Wt(a2,"_type","stamp"),Wt(a2,"_editorType",rn.STAMP);let Ew=a2;const Br=class Br{constructor({uiManager:t,pageIndex:n,div:s,structTreeLayer:a,accessibilityManager:o,annotationLayer:r,drawLayer:i,textLayer:l,viewport:c,l10n:u}){se(this,ts);se(this,Qd);se(this,C0,!1);se(this,Pi,null);se(this,Qc,null);se(this,zl,null);se(this,Qo,new Map);se(this,eu,!1);se(this,S0,!1);se(this,ef,!1);se(this,Fr,null);se(this,Hl,null);se(this,Ca,null);se(this,Wl,null);se(this,Lt);const d=[...y(Br,tu).values()];if(!Br._initialized){Br._initialized=!0;for(const h of d)h.initialize(u,t)}t.registerEditorTypes(d),q(this,Lt,t),this.pageIndex=n,this.div=s,q(this,Qd,o),q(this,Pi,r),this.viewport=c,q(this,Ca,l),this.drawLayer=i,this._structTree=a,y(this,Lt).addLayer(this)}get isEmpty(){return y(this,Qo).size===0}get isInvisible(){return this.isEmpty&&y(this,Lt).getMode()===rn.NONE}updateToolbar(t){y(this,Lt).updateToolbar(t)}updateMode(t=y(this,Lt).getMode()){switch(oe(this,ts,d4).call(this),t){case rn.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case rn.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case rn.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(Br,tu).values())n.toggle(`${s._type}Editing`,t===s._editorType);this.div.hidden=!1}hasTextLayer(t){var n;return t===((n=y(this,Ca))==null?void 0:n.div)}setEditingState(t){y(this,Lt).setEditingState(t)}addCommands(t){y(this,Lt).addCommands(t)}cleanUndoStack(t){y(this,Lt).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,Pi))==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,Qo).values())s.enableEditing(),s.show(!0),s.annotationElementId&&(y(this,Lt).removeChangedExistingAnnotation(s),t.add(s.annotationElementId));if(!y(this,Pi)){q(this,ef,!1);return}const n=y(this,Pi).getEditableAnnotations();for(const s of n){if(s.hide(),y(this,Lt).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,Qo).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,Pi)){const o=y(this,Pi).getEditableAnnotations();for(const r of o){const{id:i}=r.data;if(y(this,Lt).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,Lt).addChangedExistingAnnotation(l),l.renderAnnotationElement(r)&&l.show(!1)),r.show()}}oe(this,ts,d4).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:s}=this.div;for(const o of y(Br,tu).values())s.remove(`${o._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),q(this,S0,!1)}getEditableAnnotation(t){var n;return((n=y(this,Pi))==null?void 0:n.getEditableAnnotation(t))||null}setActiveEditor(t){y(this,Lt).getActive()!==t&&y(this,Lt).setActiveEditor(t)}enableTextSelection(){var t;if(this.div.tabIndex=-1,(t=y(this,Ca))!=null&&t.div&&!y(this,Wl)){q(this,Wl,new AbortController);const n=y(this,Lt).combinedSignal(y(this,Wl));y(this,Ca).div.addEventListener("pointerdown",oe(this,ts,EI).bind(this),{signal:n}),y(this,Ca).div.classList.add("highlighting")}}disableTextSelection(){var t;this.div.tabIndex=0,(t=y(this,Ca))!=null&&t.div&&y(this,Wl)&&(y(this,Wl).abort(),q(this,Wl,null),y(this,Ca).div.classList.remove("highlighting"))}enableClick(){if(y(this,Qc))return;q(this,Qc,new AbortController);const t=y(this,Lt).combinedSignal(y(this,Qc));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,Qc))==null||t.abort(),q(this,Qc,null)}attach(t){y(this,Qo).set(t.id,t);const{annotationElementId:n}=t;n&&y(this,Lt).isDeletedAnnotationElement(n)&&y(this,Lt).removeDeletedAnnotationElement(t)}detach(t){var n;y(this,Qo).delete(t.id),(n=y(this,Qd))==null||n.removePointerInTextLayer(t.contentDiv),!y(this,S0)&&t.annotationElementId&&y(this,Lt).addDeletedAnnotationElement(t)}remove(t){this.detach(t),y(this,Lt).removeEditor(t),t.div.remove(),t.isAttachedToDOM=!1}changeParent(t){var n;t.parent!==this&&(t.parent&&t.annotationElementId&&(y(this,Lt).addDeletedAnnotationElement(t.annotationElementId),as.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,Lt).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,Lt).addToAnnotationStorage(t),t._reportTelemetry(t.telemetryInitialData)}}moveEditorInDOM(t){var s;if(!t.isAttachedToDOM)return;const{activeElement:n}=document;t.div.contains(n)&&!y(this,zl)&&(t._focusEventsAllowed=!1,q(this,zl,setTimeout(()=>{q(this,zl,null),t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:y(this,Lt)._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,Lt).getId()}combinedSignal(t){return y(this,Lt).combinedSignal(t)}canCreateNewEmptyEditor(){var t;return(t=y(this,ts,Oi))==null?void 0:t.canCreateNewEmptyEditor()}pasteEditor(t,n){y(this,Lt).updateToolbar(t),y(this,Lt).updateMode(t);const{offsetX:s,offsetY:a}=oe(this,ts,A_).call(this),o=this.getNextId(),r=oe(this,ts,E_).call(this,{parent:this,id:o,x:s,y:a,uiManager:y(this,Lt),isCentered:!0,...n});r&&this.add(r)}async deserialize(t){var n;return await((n=y(Br,tu).get(t.annotationType??t.annotationEditorType))==null?void 0:n.deserialize(t,this,y(this,Lt)))||null}createAndAddNewEditor(t,n,s={}){const a=this.getNextId(),o=oe(this,ts,E_).call(this,{parent:this,id:a,x:t.offsetX,y:t.offsetY,uiManager:y(this,Lt),isCentered:n,...s});return o&&this.add(o),o}addNewEditor(){this.createAndAddNewEditor(oe(this,ts,A_).call(this),!0)}setSelected(t){y(this,Lt).setSelected(t)}toggleSelected(t){y(this,Lt).toggleSelected(t)}unselect(t){y(this,Lt).unselect(t)}pointerup(t){var s;const{isMac:n}=Na.platform;if(!(t.button!==0||t.ctrlKey&&n)&&t.target===this.div&&y(this,eu)&&(q(this,eu,!1),!((s=y(this,ts,Oi))!=null&&s.isDrawer&&y(this,ts,Oi).supportMultipleDrawings))){if(!y(this,C0)){q(this,C0,!0);return}if(y(this,Lt).getMode()===rn.STAMP){y(this,Lt).unselectAll();return}this.createAndAddNewEditor(t,!1)}}pointerdown(t){var a;if(y(this,Lt).getMode()===rn.HIGHLIGHT&&this.enableTextSelection(),y(this,eu)){q(this,eu,!1);return}const{isMac:n}=Na.platform;if(t.button!==0||t.ctrlKey&&n||t.target!==this.div)return;if(q(this,eu,!0),(a=y(this,ts,Oi))!=null&&a.isDrawer){this.startDrawingSession(t);return}const s=y(this,Lt).getActive();q(this,C0,!s||s.isEmpty())}startDrawingSession(t){if(this.div.focus(),y(this,Fr)){y(this,ts,Oi).startDrawing(this,y(this,Lt),!1,t);return}y(this,Lt).setCurrentDrawingSession(this),q(this,Fr,new AbortController);const n=y(this,Lt).combinedSignal(y(this,Fr));this.div.addEventListener("blur",({relatedTarget:s})=>{s&&!this.div.contains(s)&&(q(this,Hl,null),this.commitOrRemove())},{signal:n}),y(this,ts,Oi).startDrawing(this,y(this,Lt),!1,t)}pause(t){if(t){const{activeElement:n}=document;this.div.contains(n)&&q(this,Hl,n);return}y(this,Hl)&&setTimeout(()=>{var n;(n=y(this,Hl))==null||n.focus(),q(this,Hl,null)},0)}endDrawingSession(t=!1){return y(this,Fr)?(y(this,Lt).setCurrentDrawingSession(null),y(this,Fr).abort(),q(this,Fr,null),q(this,Hl,null),y(this,ts,Oi).endDrawing(t)):null}findNewParent(t,n,s){const a=y(this,Lt).findParent(n,s);return a===null||a===this?!1:(a.changeParent(t),!0)}commitOrRemove(){return y(this,Fr)?(this.endDrawingSession(),!0):!1}onScaleChanging(){y(this,Fr)&&y(this,ts,Oi).onScaleChangingWhenDrawing(this)}destroy(){var t,n;this.commitOrRemove(),((t=y(this,Lt).getActive())==null?void 0:t.parent)===this&&(y(this,Lt).commitOrRemove(),y(this,Lt).setActiveEditor(null)),y(this,zl)&&(clearTimeout(y(this,zl)),q(this,zl,null));for(const s of y(this,Qo).values())(n=y(this,Qd))==null||n.removePointerInTextLayer(s.contentDiv),s.setParent(null),s.isAttachedToDOM=!1,s.div.remove();this.div=null,y(this,Qo).clear(),y(this,Lt).removeLayer(this)}render({viewport:t}){this.viewport=t,Ku(this.div,t);for(const n of y(this,Lt).getEditors(this.pageIndex))this.add(n),n.rebuild();this.updateMode()}update({viewport:t}){y(this,Lt).commitOrRemove(),oe(this,ts,d4).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,Qo).values())a.rotate(s)}get pageDimensions(){const{pageWidth:t,pageHeight:n}=this.viewport.rawDims;return[t,n]}get scale(){return y(this,Lt).viewParameters.realScale}};Qd=new WeakMap,C0=new WeakMap,Pi=new WeakMap,Qc=new WeakMap,zl=new WeakMap,Qo=new WeakMap,eu=new WeakMap,S0=new WeakMap,ef=new WeakMap,Fr=new WeakMap,Hl=new WeakMap,Ca=new WeakMap,Wl=new WeakMap,Lt=new WeakMap,tu=new WeakMap,ts=new WeakSet,EI=function(t){y(this,Lt).unselectAll();const{target:n}=t;if(n===y(this,Ca).div||(n.getAttribute("role")==="img"||n.classList.contains("endOfContent"))&&y(this,Ca).div.contains(n)){const{isMac:s}=Na.platform;if(t.button!==0||t.ctrlKey&&s)return;y(this,Lt).showAllEditors("highlight",!0,!0),y(this,Ca).div.classList.add("free"),this.toggleDrawing(),fb.startHighlighting(this,y(this,Lt).direction==="ltr",{target:y(this,Ca).div,x:t.x,y:t.y}),y(this,Ca).div.addEventListener("pointerup",()=>{y(this,Ca).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:y(this,Lt)._signal}),t.preventDefault()}},Oi=function(){return y(Br,tu).get(y(this,Lt).getMode())},E_=function(t){const n=y(this,ts,Oi);return n?new n.prototype.constructor(t):null},A_=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,[d,h]=this.viewport.rotation%180===0?[c,u]:[u,c];return{offsetX:d,offsetY:h}},d4=function(){for(const t of y(this,Qo).values())t.isEmpty()&&t.remove()},Wt(Br,"_initialized",!1),se(Br,tu,new Map([ww,kw,Ew,fb].map(t=>[t._editorType,t])));let Aw=Br;const Sa=class Sa{constructor({pageIndex:t}){se(this,Ri);se(this,Vr,null);se(this,o2,0);se(this,za,new Map);se(this,tf,new Map);this.pageIndex=t}setParent(t){if(!y(this,Vr)){q(this,Vr,t);return}if(y(this,Vr)!==t){if(y(this,za).size>0)for(const n of y(this,za).values())n.remove(),t.append(n);q(this,Vr,t)}}static get _svgFactory(){return fn(this,"_svgFactory",new gw)}draw(t,n=!1,s=!1){const a=Ha(this,o2)._++,o=oe(this,Ri,T_).call(this),r=Sa._svgFactory.createElement("defs");o.append(r);const i=Sa._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,Ri,TI).call(this,r,l):null,u=Sa._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,o2)._++,a=oe(this,Ri,T_).call(this),o=Sa._svgFactory.createElement("defs");a.append(o);const r=Sa._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 d=Sa._svgFactory.createElement("mask");o.append(d),l=`mask_p${this.pageIndex}_${s}`,d.setAttribute("id",l),d.setAttribute("maskUnits","objectBoundingBox");const h=Sa._svgFactory.createElement("rect");d.append(h),h.setAttribute("width","1"),h.setAttribute("height","1"),h.setAttribute("fill","white");const p=Sa._svgFactory.createElement("use");d.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=Sa._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,Ri,M_).call(this,i,s),a&&oe(l=Sa,Ob,AI).call(l,i,a),o){const{classList:c}=i;for(const[u,d]of Object.entries(o))c.toggle(u,d)}if(r){const u=i.firstChild.firstChild;oe(this,Ri,M_).call(this,u,r)}}}updateParent(t,n){if(n===this)return;const s=y(this,za).get(t);s&&(y(n,Vr).append(s),y(this,za).delete(t),y(n,za).set(t,s))}remove(t){y(this,tf).delete(t),y(this,Vr)!==null&&(y(this,za).get(t).remove(),y(this,za).delete(t))}destroy(){q(this,Vr,null);for(const t of y(this,za).values())t.remove();y(this,za).clear(),y(this,tf).clear()}};Vr=new WeakMap,o2=new WeakMap,za=new WeakMap,tf=new WeakMap,Ob=new WeakSet,AI=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}%`},Ri=new WeakSet,T_=function(){const t=Sa._svgFactory.create(1,1,!0);return y(this,Vr).append(t),t.setAttribute("aria-hidden",!0),t},TI=function(t,n){const s=Sa._svgFactory.createElement("clipPath");t.append(s);const a=`clip_${n}`;s.setAttribute("id",a),s.setAttribute("clipPathUnits","objectBoundingBox");const o=Sa._svgFactory.createElement("use");return s.append(o),o.setAttribute("href",`#${n}`),o.classList.add("clip"),a},M_=function(t,n){for(const[s,a]of Object.entries(n))a===null?t.removeAttribute(s):t.setAttribute(s,a)},se(Sa,Ob);let Tw=Sa;globalThis.pdfjsTestingUtils={HighlightOutliner:_w},Jt.AbortException,Jt.AnnotationEditorLayer,Jt.AnnotationEditorParamsType,Jt.AnnotationEditorType,Jt.AnnotationEditorUIManager,Jt.AnnotationLayer,Jt.AnnotationMode,Jt.ColorPicker,Jt.DOMSVGFactory,Jt.DrawLayer,Jt.FeatureTest;var B4e=Jt.GlobalWorkerOptions;Jt.ImageKind,Jt.InvalidPDFException,Jt.MissingPDFException,Jt.OPS,Jt.OutputScale,Jt.PDFDataRangeTransport,Jt.PDFDateString,Jt.PDFWorker,Jt.PasswordResponses,Jt.PermissionFlag,Jt.PixelsPerInch,Jt.RenderingCancelledException,Jt.TextLayer,Jt.TouchManager,Jt.UnexpectedResponseException,Jt.Util,Jt.VerbosityLevel,Jt.XfaLayer,Jt.build,Jt.createValidAbsoluteUrl,Jt.fetchData;var V4e=Jt.getDocument;Jt.getFilenameFromUrl,Jt.getPdfFilenameFromUrl,Jt.getXfaPageViewport,Jt.isDataScheme,Jt.isPdfFile,Jt.noContextMenu,Jt.normalizeUnicode,Jt.setLayerDimensions,Jt.shadow,Jt.stopEvent,Jt.version;const z4e=""+new URL("assets/pdf.worker.min-yatZIOMy.mjs",document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href,H4e={class:"manual-wrap"},W4e={class:"sidebar"},j4e={class:"es-text",style:{display:"none"}},K4e={class:"sb-section"},U4e={class:"sb-title"},q4e={key:0,class:"sb-section"},G4e={class:"sb-title"},Y4e={class:"region-type-btns"},X4e=["onClick"],J4e={class:"rt-badge"},Z4e={key:1,class:"sb-section sb-regions"},Q4e={class:"sb-title"},eye={class:"region-list"},tye=["onClick"],nye={class:"ri-top"},sye={class:"ri-badge"},aye={class:"ri-label"},oye={class:"ri-page"},rye={class:"ri-status"},iye={key:0,class:"ri-tokens"},lye={key:0,class:"ri-preview"},cye={key:2,class:"sb-section sb-actions"},uye={key:0,class:"vl-progress-wrap"},dye={class:"vl-progress-label"},fye={key:0},hye={key:1,class:"vl-done"},pye={key:3,class:"sb-section sb-export"},vye={class:"sb-title"},mye={style:{display:"flex",gap:"8px"}},gye={class:"sb-footer"},bye={class:"viewer"},yye={key:0,class:"viewer-nav"},wye={class:"el-button-group"},_ye={class:"nav-label"},Cye={class:"nav-type-indicator"},Sye={class:"el-button-group el-button-group--small"},xye={class:"zoom-bar"},kye={class:"zoom-pct"},Eye={key:1,class:"viewer-empty"},Aye={class:"img-inner"},Tye={key:0,class:"page-loading"},Mye=["data-mode"],Pye={key:0,class:"result-panel"},Rye={class:"rp-header"},Iye={class:"rp-title"},Oye={key:0,class:"rp-tokens"},Lye={class:"rp-text"},Nye=[{path:"/",redirect:"/Manual"},{path:"/Auto",component:B1e},{path:"/Manual",component:cl({__name:"ManualOCR",setup(e){B4e.workerSrc=z4e;const t=rP(),n="http://localhost:8000",s=[{key:"A",label:"材料区域",color:"#2563eb"},{key:"B",label:"图纸信息",color:"#d97706"},{key:"C",label:"其他",color:"#059669"}],a=Ee=>{var pe;return((pe=s.find(ye=>ye.key===Ee))==null?void 0:pe.color)??"#6b7280"},o=Ee=>{var pe;return((pe=s.find(ye=>ye.key===Ee))==null?void 0:pe.label)??Ee},r=F("file"),i=F(null),l=F(""),c=F(!1),u=F(""),d=F(0),h=F(0),p=F(!1),v=pn(null),m=F(!1);let g=null;const b=F("A"),_=F([]),w=F(null),C=F(!1),x=F(""),k=F(!1),T=F(0),R=F(0),I=F(null),M=F(null),$=F(null),O=F(null),B=[.25,.5,.75,1,1.25,1.5,2,3],U=F(1);function J(){const Ee=B.find(pe=>pe>U.value+.01);Ee&&(U.value=Ee)}function Y(){const Ee=[...B].reverse().find(pe=>pe<U.value-.01);Ee&&(U.value=Ee)}function N(){U.value=1}const L=F("loading"),V=F(""),z=F(!1),G=F(0),Q=F(0),K=F(0),ee=F(0),ae=F("draw"),fe=F(!1),ne=F(0),ve=F(0),he=E(()=>r.value==="file"?!!i.value:l.value.startsWith("http")),ce=E(()=>_.value.filter(Ee=>Ee.status==="pending").length),Z=E(()=>_.value.filter(Ee=>Ee.type==="A"&&Ee.status==="pending").length),H=E(()=>_.value.filter(Ee=>Ee.status==="done")),te=E(()=>_.value.find(Ee=>Ee.id===w.value)||null),de=E(()=>T.value>0?Math.round(R.value/T.value*100):0);function be(Ee,pe){if(!Array.isArray(Ee)||!Ee.length)return[];const ye=Math.max(0,(pe||1)-1);return Ee.map(je=>{const rt=Number.isFinite(je.page)?Math.min(Math.max(je.page,0),ye):0;return{id:je.id||crypto.randomUUID(),type:je.type,page:rt,xr:je.xr,yr:je.yr,wr:je.wr,hr:je.hr,status:"pending",text:"",boxes:[],tokens:null,rows:[],parts1:{}}})}let _e=null;xt(async()=>{try{const ye=await(await fetch(`${n}/api/manual/engine-info`)).json();L.value=ye.status==="ready"?"ready":"error",V.value=ye.error||ye.engine||""}catch(pe){L.value="error",V.value=pe.message}const Ee=document.getElementById("hdpdfurl2");if(Ee&&Ee.value&&Ee.value.trim()&&(l.value=Ee.value.trim(),r.value="url",await Oe()),Ee){let pe=Ee.value;_e=setInterval(async()=>{const ye=Ee.value?Ee.value.trim():"";ye&&ye!==pe&&(pe=ye,l.value=ye,r.value="url",await Oe())},2e3)}});async function xe(Ee){i.value=Ee.raw,await Oe(),O.value&&O.value.clearFiles()}async function Oe(){c.value=!0;const Ee=_.value.map(ye=>({id:ye.id,type:ye.type,page:ye.page,xr:ye.xr,yr:ye.yr,wr:ye.wr,hr:ye.hr})),pe=w.value;try{let ye,je=null;if(r.value==="file"){je=await i.value.arrayBuffer();const mt=new FormData;mt.append("file",i.value),ye=await fetch(`${n}/api/manual/upload`,{method:"POST",body:mt})}else ye=await fetch(`${n}/api/manual/upload-url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:l.value.trim()})});if(!ye.ok){const mt=await ye.json().catch(()=>({}));throw new Error(mt.detail||`HTTP ${ye.status}`)}const rt=await ye.json();if(u.value&&fetch(`${n}/api/manual/session/${u.value}`,{method:"DELETE"}).catch(()=>{}),u.value=rt.session_id,d.value=rt.total_pages,h.value=0,_.value=be(Ee,rt.total_pages),w.value=_.value.some(mt=>mt.id===pe)?pe:null,p.value=!0,U.value=1,!je){const mt=await fetch(`${n}/api/manual/pdf/${rt.session_id}`);if(!mt.ok)throw new Error(`获取 PDF 字节失败 HTTP ${mt.status}`);je=await mt.arrayBuffer()}await Ne(je),Xs.success(`PDF 加载成功,共 ${rt.total_pages} 页`)}catch(ye){Xs.error(`加载失败:${ye.message}`)}finally{c.value=!1}}function De(Ee){Ee<0||Ee>=d.value||(h.value=Ee)}ge(h,Ee=>{vt(),Ce(Ee)}),ge(ae,Ee=>{Ee==="draw"&&M.value&&(M.value.style.cursor="")}),ge(U,()=>{p.value&&v.value&&Ce(h.value)});async function Ne(Ee){try{const pe=V4e({data:Ee,cMapUrl:"/pdfjs-cmaps/",cMapPacked:!0});v.value=await pe.promise,Ce(0)}catch(pe){Xs.error(`PDF.js 加载失败:${pe.message}`)}}async function Ce(Ee){if(v.value){g&&(g.cancel(),g=null),m.value=!0;try{const pe=await v.value.getPage(Ee+1),ye=window.devicePixelRatio||1,je=pe.getViewport({scale:U.value*ye}),rt=$.value;rt.width=je.width,rt.height=je.height,rt.style.width=je.width/ye+"px",rt.style.height=je.height/ye+"px";const mt=rt.getContext("2d");g=pe.render({canvasContext:mt,viewport:je}),await g.promise,g=null,Pe()}catch(pe){(pe==null?void 0:pe.name)!=="RenderingCancelledException"&&Xs.error(`页面渲染失败:${pe.message}`)}finally{m.value=!1}}}let Ie=null;function Pe(){const Ee=$.value,pe=M.value;if(!Ee||!pe)return;const ye=Ee.offsetWidth,je=Ee.offsetHeight;ye===0||je===0||((pe.width!==ye||pe.height!==je)&&(pe.width=ye,pe.height=je),kt(),Ie||(Ie=new ResizeObserver(()=>Pe())),Ie.disconnect(),Ie.observe(Ee))}window.addEventListener("resize",()=>{p.value&&Pe()});function ze(Ee){const pe=M.value.getBoundingClientRect();return{x:Ee.clientX-pe.left,y:Ee.clientY-pe.top}}function Je(Ee){fe.value&&(I.value.scrollLeft=ne.value-Ee.clientX,I.value.scrollTop=ve.value-Ee.clientY)}function ot(){fe.value&&(fe.value=!1,M.value&&(M.value.style.cursor=""),window.removeEventListener("mousemove",Je),window.removeEventListener("mouseup",ot))}function $e(Ee){if(!z.value)return;const{x:pe,y:ye}=ze(Ee);K.value=pe,ee.value=ye,kt()}function He(Ee){if(!z.value)return;const{x:pe,y:ye}=ze(Ee);z.value=!1,window.removeEventListener("mousemove",$e),window.removeEventListener("mouseup",He);const je=M.value,rt=je.width,mt=je.height,zt=zr=>Math.max(0,Math.min(rt,zr)),Vn=zr=>Math.max(0,Math.min(mt,zr)),bn=zt(pe),It=Vn(ye),is=zt(G.value),ms=Vn(Q.value),jl=Math.min(is,bn),nu=Math.min(ms,It),nf=Math.abs(bn-is),sf=Math.abs(It-ms);nf>8&&sf>8&&_.value.push({id:crypto.randomUUID(),type:b.value,page:h.value,xr:jl/rt,yr:nu/mt,wr:nf/rt,hr:sf/mt,cx:jl,cy:nu,cw:nf,ch:sf,status:"pending",text:"",boxes:[],tokens:null,rows:[],parts1:{}}),vt(),kt()}function et(Ee){Ee.preventDefault();const{x:pe,y:ye}=ze(Ee);ae.value==="draw"?(z.value=!0,G.value=pe,Q.value=ye,K.value=pe,ee.value=ye,window.addEventListener("mousemove",$e),window.addEventListener("mouseup",He)):ae.value==="pan"&&(fe.value=!0,ne.value=Ee.clientX+I.value.scrollLeft,ve.value=Ee.clientY+I.value.scrollTop,M.value.style.cursor="grabbing",window.addEventListener("mousemove",Je),window.addEventListener("mouseup",ot))}function Bt(Ee){}function qt(Ee){}function st(){}function vt(){z.value=!1,G.value=0,Q.value=0,K.value=0,ee.value=0}function kt(){const Ee=M.value;if(!Ee)return;const pe=Ee.getContext("2d");pe.clearRect(0,0,Ee.width,Ee.height);const ye=Ee.width,je=Ee.height;for(const rt of _.value){if(rt.page!==h.value)continue;const mt=rt.xr*ye,zt=rt.yr*je,Vn=rt.wr*ye,bn=rt.hr*je,It=a(rt.type),is=rt.id===w.value;pe.strokeStyle=It,pe.lineWidth=is?3:2,pe.setLineDash(rt.status==="pending"?[5,3]:[]),pe.strokeRect(mt,zt,Vn,bn),pe.fillStyle=It+"18",pe.fillRect(mt,zt,Vn,bn);const ms=`${rt.type} ${o(rt.type)}`;pe.font="bold 12px sans-serif";const jl=pe.measureText(ms).width+10;pe.fillStyle=It,pe.fillRect(mt,zt-18,jl,18),pe.fillStyle="#fff",pe.fillText(ms,mt+5,zt-4)}if(z.value){const rt=Math.min(G.value,K.value),mt=Math.min(Q.value,ee.value),zt=Math.abs(K.value-G.value),Vn=Math.abs(ee.value-Q.value),bn=a(b.value);pe.strokeStyle=bn,pe.lineWidth=2,pe.setLineDash([4,3]),pe.strokeRect(rt,mt,zt,Vn),pe.fillStyle=bn+"15",pe.fillRect(rt,mt,zt,Vn)}}function Se(Ee){w.value=Ee.id,Ee.page!==h.value?De(Ee.page):kt()}function Ue(Ee){_.value=_.value.filter(pe=>pe.id!==Ee),w.value===Ee&&(w.value=null),kt()}function we(){_.value=[],w.value=null,kt()}async function Ge(){var je;const Ee=_.value.find(rt=>rt.type==="A");if(!Ee)return;_.value.filter(rt=>rt.type==="A"&&rt.status==="pending").forEach(rt=>{rt.status="recognizing"}),k.value=!0,T.value=d.value,R.value=0;const pe=Math.max(800,Math.round(3500*Math.ceil(d.value/10)/d.value)),ye=setInterval(()=>{R.value<T.value-1&&R.value++},pe);try{const rt=await fetch(`${n}/api/manual/ocr-all-pages-vl`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:u.value,x_ratio:Ee.xr,y_ratio:Ee.yr,w_ratio:Ee.wr,h_ratio:Ee.hr,concurrency:10})});if(clearInterval(ye),!rt.ok){const bn=await rt.json().catch(()=>({}));throw new Error(bn.detail||`HTTP ${rt.status}`)}const mt=await rt.json();R.value=T.value;const zt=(je=mt.usage)!=null&&je.total_tokens?Math.round(mt.usage.total_tokens/(mt.total_pages||1)):null;for(const bn of mt.results){let It=_.value.find(ms=>ms.type==="A"&&ms.page===bn.page_index);It||(It={id:crypto.randomUUID(),type:"A",page:bn.page_index,xr:Ee.xr,yr:Ee.yr,wr:Ee.wr,hr:Ee.hr,cx:Ee.cx,cy:Ee.cy,cw:Ee.cw,ch:Ee.ch,status:"pending",text:"",boxes:[],tokens:null,rows:[]},_.value.push(It));const is=bn.rows||[];It.rows=is,It.tokens=zt,It.text=is.length?is.map(ms=>[ms.seq_no??"",ms.category??"",ms.description??"",ms.nominal_dia_mm??"",ms.qty??""].filter(nu=>nu!=="").join(" | ")).join(`
`):"(该页无材料明细行)",It.status=bn._validation_failed?"error":"done"}const Vn=mt.results.filter(bn=>bn._validation_failed).length;Vn>0?Xs.warning(`VL 识别完成,${mt.total_pages} 页中 ${Vn} 页校验未通过(内容可能为空)`):Xs.success(`VL 识别完成,共 ${mt.total_pages} 页`)}catch(rt){clearInterval(ye),_.value.filter(mt=>mt.type==="A").forEach(mt=>{mt.status==="recognizing"&&(mt.status="error")}),Xs.error(`VL 识别失败:${rt.message}`)}finally{k.value=!1}}function St(Ee){return!Ee||typeof Ee!="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(([ye,je])=>{const rt=Ee[ye];return rt!=null&&rt!==""?`${je}: ${rt}`:null}).filter(Boolean).join(`
`)}async function Zt(){var pe;const Ee=_.value.find(ye=>ye.type==="B");if(Ee){_.value.filter(ye=>ye.type==="B"&&ye.status==="pending").forEach(ye=>{ye.status="recognizing"});try{const ye=await fetch(`${n}/api/manual/ocr-all-pages-vl-b`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:u.value,x_ratio:Ee.xr,y_ratio:Ee.yr,w_ratio:Ee.wr,h_ratio:Ee.hr,concurrency:5})});if(!ye.ok){const mt=await ye.json().catch(()=>({}));throw new Error(mt.detail||`HTTP ${ye.status}`)}const je=await ye.json(),rt=(pe=je.usage)!=null&&pe.total_tokens?Math.round(je.usage.total_tokens/(je.total_pages||1)):null;for(const mt of je.results){let zt=_.value.find(ms=>ms.type==="B"&&ms.page===mt.page_index);zt||(zt={id:crypto.randomUUID(),type:"B",page:mt.page_index,xr:Ee.xr,yr:Ee.yr,wr:Ee.wr,hr:Ee.hr,cx:Ee.cx,cy:Ee.cy,cw:Ee.cw,ch:Ee.ch,status:"pending",text:"",boxes:[],tokens:null,parts1:{}},_.value.push(zt));const{page_index:Vn,parse_error:bn,error:It,...is}=mt;zt.parts1=bn||It?{}:is,zt.text=St(zt.parts1),zt.tokens=rt,zt.status=bn||!zt.text?"error":"done"}}catch(ye){_.value.filter(je=>je.type==="B"&&je.status==="recognizing").forEach(je=>{je.status="error"}),Xs.error(`管线号 VL 识别失败:${ye.message}`)}}}function Sn(){var Ee,pe,ye,je,rt;for(const mt of _.value.filter(zt=>zt.type==="B"&&zt.status==="done")){const zt=((pe=(Ee=mt.parts1)==null?void 0:Ee.pipeline_id)==null?void 0:pe.trim())||((je=(ye=mt.text)==null?void 0:ye.split(`
`)[0])==null?void 0:je.replace(/^管段号[:]\s*/,"").trim())||"";if(!zt)continue;const Vn=_.value.find(bn=>bn.type==="A"&&bn.page===mt.page);(rt=Vn==null?void 0:Vn.rows)!=null&&rt.length&&(Vn.rows=Vn.rows.map(bn=>({...bn,pipe_no:zt})))}}async function kn(){const Ee=_.value.find(pe=>pe.type==="C");if(Ee){_.value.filter(pe=>pe.type==="C"&&pe.status==="pending").forEach(pe=>{pe.status="recognizing"});try{const pe=await fetch(`${n}/api/manual/ocr-all-pages-vl-c`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:u.value,x_ratio:Ee.xr,y_ratio:Ee.yr,w_ratio:Ee.wr,h_ratio:Ee.hr,concurrency:5})});if(!pe.ok){const je=await pe.json().catch(()=>({}));throw new Error(je.detail||`HTTP ${pe.status}`)}const ye=await pe.json();for(const je of ye.results){let rt=_.value.find(mt=>mt.type==="C"&&mt.page===je.page_index);rt||(rt={id:crypto.randomUUID(),type:"C",page:je.page_index,xr:Ee.xr,yr:Ee.yr,wr:Ee.wr,hr:Ee.hr,cx:Ee.cx,cy:Ee.cy,cw:Ee.cw,ch:Ee.ch,status:"pending",text:"",boxes:[],tokens:null},_.value.push(rt)),rt.text=je.text||"",rt.status=je.parse_error?"error":"done"}}catch(pe){_.value.filter(ye=>ye.type==="C"&&ye.status==="recognizing").forEach(ye=>{ye.status="error"}),Xs.error(`C 区域 VL 识别失败:${pe.message}`)}}}async function Fe(){if(!_.value.filter(mt=>mt.status==="pending").length)return;const pe=Z.value>0,ye=_.value.some(mt=>mt.type==="B"),je=_.value.some(mt=>mt.type==="C"),rt=[];pe&&rt.push(Ge()),ye&&rt.push(Zt()),je&&rt.push(kn()),rt.length&&await Promise.all(rt),pe&&ye&&Sn(),Xs.success("全部识别完成"),await Be(),await tt()}async function tt(){const Ee=H.value;if(Ee.length)try{const pe=await fetch(`${n}/api/manual/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({regions:Ee.map(rt=>({id:rt.id,region_type:rt.type,page_index:rt.page,text:rt.text,boxes:rt.boxes||[],rows:rt.rows||[],parts1:rt.parts1||{}})),format:"json"})});if(!pe.ok)return;const ye=await pe.text(),je=document.getElementById("resultdata");je&&(je.value=ye)}catch{}}async function ft(Ee){const pe=H.value;if(pe.length){x.value=Ee;try{const ye=await fetch(`${n}/api/manual/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({regions:pe.map(zt=>({id:zt.id,region_type:zt.type,page_index:zt.page,text:zt.text,boxes:zt.boxes||[],rows:zt.rows||[],parts1:zt.parts1||{}})),format:Ee})});if(!ye.ok){const zt=await ye.json().catch(()=>({}));throw new Error(zt.detail||`HTTP ${ye.status}`)}const je=await ye.blob(),rt=URL.createObjectURL(je),mt=document.createElement("a");mt.href=rt,mt.download=Ee==="excel"?"manual_ocr_result.xlsx":"manual_ocr_result.json",mt.click(),URL.revokeObjectURL(rt),Xs.success("导出成功")}catch(ye){Xs.error(`导出失败:${ye.message}`)}finally{x.value=""}}}async function wn(Ee){try{await navigator.clipboard.writeText(Ee),Xs.success("已复制")}catch{Xs.warning("请手动复制")}}return fu(()=>{_e&&clearInterval(_e),Ie&&Ie.disconnect(),window.removeEventListener("mousemove",$e),window.removeEventListener("mouseup",He),window.removeEventListener("mousemove",Je),window.removeEventListener("mouseup",ot),u.value&&fetch(`${n}/api/manual/session/${u.value}`,{method:"DELETE"}).catch(()=>{})}),(Ee,pe)=>{const ye=qe("el-icon"),je=qe("el-upload"),rt=qe("el-tab-pane"),mt=qe("el-input"),zt=qe("el-tabs"),Vn=qe("el-tag"),bn=qe("el-progress");return S(),P("div",H4e,[A("div",W4e,[A("div",{class:D(["engine-badge","es-"+L.value])},[pe[17]||(pe[17]=A("span",{class:"es-dot"},null,-1)),A("span",j4e,[pe[16]||(pe[16]=Ke(" OCR  ",-1)),L.value==="loading"?(S(),P(Ve,{key:0},[Ke("引擎加载中…")],64)):L.value==="ready"?(S(),P(Ve,{key:1},[Ke("引擎就绪")],64)):(S(),P(Ve,{key:2},[Ke("引擎异常")],64))])],2),A("div",K4e,[A("div",U4e,[j(ye,null,{default:X(()=>[j(f(Sg))]),_:1}),pe[18]||(pe[18]=Ke(" 加载 PDF ",-1))]),j(zt,{modelValue:r.value,"onUpdate:modelValue":pe[2]||(pe[2]=It=>r.value=It),class:"src-tabs",size:"small"},{default:X(()=>[j(rt,{label:"本地文件",name:"file"},{default:X(()=>[j(je,{ref_key:"uploadRef",ref:O,"auto-upload":!1,accept:".pdf","show-file-list":!1,"on-change":xe},{default:X(()=>[A("div",{class:D(["el-button el-button--small el-button--plain",{"is-loading":c.value&&r.value==="file"}]),style:{width:"100%",cursor:"pointer"}},[c.value&&r.value==="file"?(S(),le(ye,{key:0,class:"is-loading"},{default:X(()=>[j(f(Ds))]),_:1})):(S(),le(ye,{key:1},{default:X(()=>[j(f(d9))]),_:1})),Ke(" "+me(i.value?i.value.name:"选择 PDF自动加载…"),1)],2)]),_:1},512)]),_:1}),j(rt,{label:"网络 URL",name:"url"},{default:X(()=>[j(mt,{modelValue:l.value,"onUpdate:modelValue":pe[0]||(pe[0]=It=>l.value=It),placeholder:"https://…/file.pdf",clearable:"",size:"small"},null,8,["modelValue"]),A("div",{class:D(["el-button el-button--primary el-button--small",{"is-loading":c.value,"is-disabled":!he.value}]),style:{width:"100%","margin-top":"6px",cursor:"pointer"},onClick:pe[1]||(pe[1]=It=>!c.value&&he.value&&Oe())},[c.value?(S(),le(ye,{key:0,class:"is-loading"},{default:X(()=>[j(f(Ds))]),_:1})):(S(),le(ye,{key:1},{default:X(()=>[j(f(Wy))]),_:1})),pe[19]||(pe[19]=Ke(" 加载 / 渲染 ",-1))],2)]),_:1})]),_:1},8,["modelValue"])]),p.value?(S(),P("div",q4e,[A("div",G4e,[j(ye,null,{default:X(()=>[j(f(_g))]),_:1}),pe[20]||(pe[20]=Ke(" 当前区域类型 ",-1)),pe[21]||(pe[21]=A("span",{class:"sb-hint"},"拖拽在右侧图像上框选",-1))]),A("div",Y4e,[(S(),P(Ve,null,wt(s,It=>A("div",{key:It.key,class:D(["rt-btn",{active:b.value===It.key}]),style:Qe({"--rt-color":It.color}),onClick:is=>b.value=It.key},[A("span",J4e,me(It.key),1),Ke(" "+me(It.label),1)],14,X4e)),64))])])):ie("",!0),_.value.length?(S(),P("div",Z4e,[A("div",Q4e,[j(ye,null,{default:X(()=>[j(f(Zx))]),_:1}),Ke(" 已标注区域 ("+me(_.value.length)+") ",1),A("div",{class:"el-button el-button--link el-button--danger el-button--small",style:{cursor:"pointer"},onClick:we},"清空")]),A("div",eye,[(S(!0),P(Ve,null,wt(_.value,It=>(S(),P("div",{key:It.id,class:D(["region-item",{active:w.value===It.id}]),style:Qe({"--rt-color":a(It.type)}),onClick:is=>Se(It)},[A("div",nye,[A("span",sye,me(It.type),1),A("span",aye,me(o(It.type)),1),A("span",oye,"P"+me(It.page+1),1),j(ye,{class:"ri-del",onClick:it(is=>Ue(It.id),["stop"])},{default:X(()=>[j(f(qa))]),_:1},8,["onClick"])]),A("div",rye,[It.status==="pending"?(S(),le(Vn,{key:0,size:"small",type:"info"},{default:X(()=>[...pe[22]||(pe[22]=[Ke("待识别",-1)])]),_:1})):It.status==="recognizing"?(S(),le(Vn,{key:1,size:"small",type:"warning"},{default:X(()=>[...pe[23]||(pe[23]=[Ke("识别中…",-1)])]),_:1})):It.status==="done"?(S(),P(Ve,{key:2},[j(Vn,{size:"small",type:"success"},{default:X(()=>[...pe[24]||(pe[24]=[Ke("已完成",-1)])]),_:1}),It.tokens?(S(),P("span",iye,me(It.tokens)+"tk",1)):ie("",!0)],64)):It.status==="error"?(S(),le(Vn,{key:3,size:"small",type:"danger"},{default:X(()=>[...pe[25]||(pe[25]=[Ke("失败",-1)])]),_:1})):ie("",!0)]),It.text?(S(),P("pre",lye,me(It.text.slice(0,120))+me(It.text.length>120?"…":""),1)):ie("",!0)],14,tye))),128))])])):ie("",!0),p.value&&_.value.length?(S(),P("div",cye,[A("div",{class:D(["el-button el-button--primary el-button--small",{"is-loading":C.value||k.value,"is-disabled":ce.value===0||k.value}]),style:{width:"100%",cursor:"pointer"},onClick:pe[3]||(pe[3]=It=>!(C.value||k.value)&&ce.value>0&&Fe())},[C.value||k.value?(S(),le(ye,{key:0,class:"is-loading"},{default:X(()=>[j(f(Ds))]),_:1})):(S(),le(ye,{key:1},{default:X(()=>[j(f(Yx))]),_:1})),Ke(" 识别所有未处理区域 ("+me(ce.value)+") ",1)],2),j(ys,{name:"vl-fade"},{default:X(()=>[k.value||R.value>0&&R.value===T.value?(S(),P("div",uye,[A("div",dye,[k.value?(S(),P("span",fye,[pe[26]||(pe[26]=A("span",{class:"vl-spin"},"⟳",-1)),Ke(" VL 识别中… "+me(R.value)+"/"+me(T.value)+" 页 ",1)])):(S(),P("span",hye,"✓ 完成 "+me(T.value)+" 页",1))]),j(bn,{percentage:de.value,striped:k.value,"striped-flow":k.value,duration:8,"stroke-width":6,"show-text":!1,status:k.value?"":"success",style:{"margin-top":"4px"}},null,8,["percentage","striped","striped-flow","status"])])):ie("",!0)]),_:1})])):ie("",!0),H.value.length?(S(),P("div",pye,[A("div",vye,[j(ye,null,{default:X(()=>[j(f(Qi))]),_:1}),pe[27]||(pe[27]=Ke(" 导出结果 ",-1))]),A("div",mye,[A("div",{class:D(["el-button el-button--small",{"is-loading":x.value==="excel"}]),style:{flex:"1",cursor:"pointer"},onClick:pe[4]||(pe[4]=It=>ft("excel"))},[x.value==="excel"?(S(),le(ye,{key:0,class:"is-loading"},{default:X(()=>[j(f(Ds))]),_:1})):(S(),le(ye,{key:1},{default:X(()=>[j(f(Xx))]),_:1})),pe[28]||(pe[28]=Ke(" Excel ",-1))],2),A("div",{class:D(["el-button el-button--small",{"is-loading":x.value==="json"}]),style:{flex:"1",cursor:"pointer"},onClick:pe[5]||(pe[5]=It=>ft("json"))},[x.value==="json"?(S(),le(ye,{key:0,class:"is-loading"},{default:X(()=>[j(f(Ds))]),_:1})):(S(),le(ye,{key:1},{default:X(()=>[j(f(Cg))]),_:1})),pe[29]||(pe[29]=Ke(" JSON ",-1))],2)])])):ie("",!0),A("div",gye,[A("div",{class:"el-button el-button--plain el-button--small",style:{width:"100%",cursor:"pointer"},onClick:pe[6]||(pe[6]=It=>f(t).push("/"))},[j(ye,null,{default:X(()=>[j(f($o))]),_:1}),pe[30]||(pe[30]=Ke(" 返回主页 ",-1))])])]),A("div",bye,[p.value?(S(),P("div",yye,[A("div",wye,[A("div",{class:D(["el-button el-button--small",{"is-disabled":h.value===0}]),style:{cursor:"pointer"},onClick:pe[7]||(pe[7]=It=>h.value!==0&&De(h.value-1))},[j(ye,null,{default:X(()=>[j(f($o))]),_:1})],2),A("div",{class:D(["el-button el-button--small",{"is-disabled":h.value===d.value-1}]),style:{cursor:"pointer"},onClick:pe[8]||(pe[8]=It=>h.value!==d.value-1&&De(h.value+1))},[j(ye,null,{default:X(()=>[j(f($s))]),_:1})],2)]),A("span",_ye,"第 "+me(h.value+1)+" / "+me(d.value)+" 页",1),A("div",Cye,[A("span",{class:"nt-dot",style:Qe({background:a(b.value)})},null,4),Ke(" "+me(b.value)+" — "+me(o(b.value)),1)]),A("div",Sye,[A("div",{class:D(["el-button el-button--small",{"el-button--primary":ae.value==="draw"}]),style:{cursor:"pointer"},onClick:pe[9]||(pe[9]=It=>ae.value="draw")},[j(ye,null,{default:X(()=>[j(f(_g))]),_:1}),pe[31]||(pe[31]=Ke(" 框选 ",-1))],2),A("div",{class:D(["el-button el-button--small",{"el-button--primary":ae.value==="pan"}]),style:{cursor:"pointer"},onClick:pe[10]||(pe[10]=It=>ae.value="pan")},[j(ye,null,{default:X(()=>[j(f(a9))]),_:1}),pe[32]||(pe[32]=Ke(" 拖动 ",-1))],2)]),A("div",xye,[A("div",{class:D(["el-button el-button--small el-button--plain",{"is-disabled":U.value<=.25}]),style:{cursor:"pointer"},onClick:pe[11]||(pe[11]=It=>U.value>.25&&Y())},[j(ye,null,{default:X(()=>[j(f(jy))]),_:1})],2),A("span",kye,me(Math.round(U.value*100))+"%",1),A("div",{class:D(["el-button el-button--small el-button--plain",{"is-disabled":U.value>=3}]),style:{cursor:"pointer"},onClick:pe[12]||(pe[12]=It=>U.value<3&&J())},[j(ye,null,{default:X(()=>[j(f(kg))]),_:1})],2),A("div",{class:"el-button el-button--small el-button--plain",title:"适应宽度",style:{cursor:"pointer"},onClick:pe[13]||(pe[13]=It=>N())},[j(ye,null,{default:X(()=>[j(f(By))]),_:1})])])])):ie("",!0),p.value?ie("",!0):(S(),P("div",Eye,[j(ye,{size:"64",style:{color:"#d1d5db"}},{default:X(()=>[j(f(Cg))]),_:1}),pe[33]||(pe[33]=A("p",null,"请在左侧加载 PDF 文件",-1))])),bt(A("div",{class:"img-wrap",ref_key:"wrapRef",ref:I},[A("div",Aye,[A("canvas",{ref_key:"pdfCanvasRef",ref:$,class:"pdf-canvas"},null,512),m.value?(S(),P("div",Tye,[j(ye,{class:"spin"},{default:X(()=>[j(f(Ds))]),_:1}),pe[34]||(pe[34]=Ke(" 渲染页面中… ",-1))])):ie("",!0),A("canvas",{ref_key:"canvasRef",ref:M,class:"overlay-canvas","data-mode":ae.value,onMousedown:et,onMousemove:Bt,onMouseup:qt,onMouseleave:st},null,40,Mye)])],512),[[Vt,p.value]]),j(ys,{name:"fade"},{default:X(()=>[te.value&&te.value.text?(S(),P("div",Pye,[A("div",Rye,[A("span",{class:"rp-badge",style:Qe({background:a(te.value.type)})},me(te.value.type),5),A("span",Iye,me(o(te.value.type))+" — 第 "+me(te.value.page+1)+" 页",1),te.value.tokens?(S(),P("span",Oye,me(te.value.tokens)+" tokens",1)):ie("",!0),A("div",{class:"el-button el-button--link el-button--small",style:{cursor:"pointer"},onClick:pe[14]||(pe[14]=It=>wn(te.value.text))},"复制"),A("div",{class:"el-button el-button--link el-button--small",style:{cursor:"pointer"},onClick:pe[15]||(pe[15]=It=>w.value=null)},"×")]),A("pre",Lye,me(te.value.text),1)])):ie("",!0)]),_:1})])])}}},[["__scopeId","data-v-53c213b4"]])}],$ye=Mge({history:lge(),routes:Nye}),pb=JS(S2e);pb.use(L8),pb.use($ye);for(const[e,t]of Object.entries(aJ))pb.component(e,t);pb.mount("#app")})();