import{I as DC,a as io,C as $a,E as ma,H as mp,b as pa,c as Qr,d as uo,A as Ui,B as ls,e as IC,f as co,R as jC,g as Yi,h as pp,p as $C,i as FC,j as kC,k as AC,l as RC,r as MC,m as bp,_ as os,n as yp,o as Cp,q as NC,s as LC,z as BC,t as VC,u as HC,v as KC,w as zC,x as WC,y as UC,D as YC,F as GC,G as qC,J as XC,K as wp,L as JC,M as ZC,N as QC,O as ew,P as tw,Q as nw,S as aw}from"./icons-a8498fb6.js";import{r as G,b as It,i as vt,d as B,p as wt,h as He,e as ne,o as Ae,n as Je,f as g,j as Ze,w as le,t as _e,m as ve,T as Mr,k as Gi,l as jt,q as ba,s as Ft,C as Op,F as Ct,u as rw,v as lw,x as is,y as qi,z as _p,A as tr,B as el,D as nr,E as ow,G as Nr,H as gv,I as iw,J as uw,K as cw,L as sw,M as vw,N as hv,O as dw}from"./vue-bf422dc1.js";/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function mc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function us(t,e){if(t){if(typeof t=="string")return mc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mc(t,e)}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function fw(t){if(Array.isArray(t))return mc(t)}function Sp(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gw(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(t){return fw(t)||Sp(t)||us(t)||gw()}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function qe(t){"@babel/helpers - typeof";return qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(t)}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function hw(t,e){if(qe(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e||"default");if(qe(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xp(t){var e=hw(t,"string");return qe(e)=="symbol"?e:String(e)}function N(t,e,n){return e=xp(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Pp(t){if(Array.isArray(t))return t}function mw(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a,r,l,o,i=[],u=!0,c=!1;try{if(l=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(a=l.call(n)).done)&&(i.push(a.value),i.length!==e);u=!0);}catch(v){c=!0,r=v}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return i}}function Ep(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(t,e){return Pp(t)||mw(t,e)||us(t,e)||Ep()}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Xl(t,e){var n=Object.keys(e);n.forEach(function(a){t.style[a]=e[a]})}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function pw(t,e){if(t==null)return{};var n={},a=Object.keys(t),r,l;for(l=0;l<a.length;l++)r=a[l],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function cr(t,e){if(t==null)return{};var n=pw(t,e),a,r;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r<l.length;r++)a=l[r],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var bw=qe(Kt)=="object"&&Kt&&Kt.Object===Object&&Kt,Tp=bw,yw=Tp,Cw=(typeof self>"u"?"undefined":qe(self))=="object"&&self&&self.Object===Object&&self,ww=yw||Cw||Function("return this")(),Nn=ww,Ow=Nn,_w=Ow.Symbol,tl=_w,mv=tl,Dp=Object.prototype,Sw=Dp.hasOwnProperty,xw=Dp.toString,wl=mv?mv.toStringTag:void 0;function Pw(t){var e=Sw.call(t,wl),n=t[wl];try{t[wl]=void 0;var a=!0}catch{}var r=xw.call(t);return a&&(e?t[wl]=n:delete t[wl]),r}var Ew=Pw,Tw=Object.prototype,Dw=Tw.toString;function Iw(t){return Dw.call(t)}var jw=Iw,pv=tl,$w=Ew,Fw=jw,kw="[object Null]",Aw="[object Undefined]",bv=pv?pv.toStringTag:void 0;function Rw(t){return t==null?t===void 0?Aw:kw:bv&&bv in Object(t)?$w(t):Fw(t)}var Qn=Rw;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Mw=Array.isArray,ke=Mw;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Nw(t){return t!=null&&qe(t)=="object"}var pn=Nw;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Lw=Qn,Bw=ke,Vw=pn,Hw="[object String]";function Kw(t){return typeof t=="string"||!Bw(t)&&Vw(t)&&Lw(t)==Hw}var Be=Kw;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function zw(t){return t===null}var yv=zw;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Ww(t){return t===void 0}var Xt=Ww;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Uw=Qn,Yw=pn,Gw="[object Number]";function qw(t){return typeof t=="number"||Yw(t)&&Uw(t)==Gw}var ct=qw;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function da(){if(typeof navigator>"u"||!navigator)return Number.MAX_SAFE_INTEGER;var t=navigator,e=t.userAgent,n=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,a=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(n){var r=new RegExp("MSIE (\\d+\\.\\d+);"),l=e.match(r);if(!l)return-1;var o=parseFloat(l[1]);return o<7?6:o}return a?11:Number.MAX_SAFE_INTEGER}function Xw(){var t,e,n;if(typeof navigator>"u"||!navigator)return!1;var a=navigator.userAgent,r=a.match(/AppleWebKit.+Chrome\/(.+) Safari\/.+/i);if(Number(r==null||(t=r[1])===null||t===void 0?void 0:t.split(".")[0])<100)return!0;var l=a.match(/AppleWebKit.+Version\/(.+) Safari\/.+/i);if(Number(l==null||(e=l[1])===null||e===void 0?void 0:e.split(".")[0])<12)return!0;var o=da();if(o<=11)return!0;var i=a.match(/Firefox\/(.+)/i);return Number(i==null||(n=i[1])===null||n===void 0?void 0:n.split(".")[0])<100}function Cv(t,e){var n=ct(e);if(!t||t.length===0)return n?{length:0,characters:t}:0;for(var a=0,r=0;r<t.length;r++){var l=0;if(t.charCodeAt(r)>127||t.charCodeAt(r)===94?l=2:l=1,n&&a+l>e)return{length:a,characters:t.slice(0,r)};a+=l}return n?{length:a,characters:t}:a}function Jw(t){return ce(t??"").length}function Zw(t,e,n){return ce(n??"").slice().length===e?n||"":ce(t??"").slice(0,e).join("")}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function wv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function xo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wv(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wv(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function Qw(t){var e,n,a,r={};if(!(!t||typeof window>"u")){var l=(e=window)===null||e===void 0||(n=e.getComputedStyle)===null||n===void 0?void 0:n.call(e,t),o=l.color,i=l.fontSize,u=(a=window)===null||a===void 0||(a=a.navigator)===null||a===void 0?void 0:a.userAgent,c=/Safari/.test(u)&&!/Chrome/.test(u),v=/(?=.*iPhone)[?=.*MicroMessenger]/.test(u)&&!/Chrome/.test(u);if((c||v)&&(r={transformOrigin:"0px 0px",transform:"scale(".concat(parseInt(i,10)/12,")")}),o&&da()>11){var s=o.match(/[\d.]+/g),d=s?"rgba(".concat(s[0],", ").concat(s[1],", ").concat(s[2],", 0)"):"";Xl(t,xo(xo({},r),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(d," 0deg, ").concat(o," 360deg)")}))}else Xl(t,xo(xo({},r),{},{background:""}))}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function eO(t){var e=qe(t);return t!=null&&(e=="object"||e=="function")}var Ve=eO;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var tO=Qn,nO=Ve,aO="[object AsyncFunction]",rO="[object Function]",lO="[object GeneratorFunction]",oO="[object Proxy]";function iO(t){if(!nO(t))return!1;var e=tO(t);return e==rO||e==lO||e==aO||e==oO}var pe=iO;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var uO=Nn,cO=uO["__core-js_shared__"],sO=cO,Iu=sO,Ov=function(){var t=/[^.]+$/.exec(Iu&&Iu.keys&&Iu.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function vO(t){return!!Ov&&Ov in t}var dO=vO,fO=Function.prototype,gO=fO.toString;function hO(t){if(t!=null){try{return gO.call(t)}catch{}try{return t+""}catch{}}return""}var Ip=hO,mO=pe,pO=dO,bO=Ve,yO=Ip,CO=/[\\^$.*+?()[\]{}|]/g,wO=/^\[object .+?Constructor\]$/,OO=Function.prototype,_O=Object.prototype,SO=OO.toString,xO=_O.hasOwnProperty,PO=RegExp("^"+SO.call(xO).replace(CO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function EO(t){if(!bO(t)||pO(t))return!1;var e=mO(t)?PO:wO;return e.test(yO(t))}var TO=EO;function DO(t,e){return t==null?void 0:t[e]}var IO=DO,jO=TO,$O=IO;function FO(t,e){var n=$O(t,e);return jO(n)?n:void 0}var sr=FO,kO=sr,AO=Nn,RO=kO(AO,"Map"),cs=RO;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function MO(t,e){return t===e||t!==t&&e!==e}var nl=MO;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function NO(){this.__data__=[],this.size=0}var LO=NO,BO=nl;function VO(t,e){for(var n=t.length;n--;)if(BO(t[n][0],e))return n;return-1}var Ji=VO,HO=Ji,KO=Array.prototype,zO=KO.splice;function WO(t){var e=this.__data__,n=HO(e,t);if(n<0)return!1;var a=e.length-1;return n==a?e.pop():zO.call(e,n,1),--this.size,!0}var UO=WO,YO=Ji;function GO(t){var e=this.__data__,n=YO(e,t);return n<0?void 0:e[n][1]}var qO=GO,XO=Ji;function JO(t){return XO(this.__data__,t)>-1}var ZO=JO,QO=Ji;function e_(t,e){var n=this.__data__,a=QO(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}var t_=e_,n_=LO,a_=UO,r_=qO,l_=ZO,o_=t_;function al(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}al.prototype.clear=n_;al.prototype.delete=a_;al.prototype.get=r_;al.prototype.has=l_;al.prototype.set=o_;var Zi=al,i_=sr,u_=i_(Object,"create"),Qi=u_,_v=Qi;function c_(){this.__data__=_v?_v(null):{},this.size=0}var s_=c_;function v_(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var d_=v_,f_=Qi,g_="__lodash_hash_undefined__",h_=Object.prototype,m_=h_.hasOwnProperty;function p_(t){var e=this.__data__;if(f_){var n=e[t];return n===g_?void 0:n}return m_.call(e,t)?e[t]:void 0}var b_=p_,y_=Qi,C_=Object.prototype,w_=C_.hasOwnProperty;function O_(t){var e=this.__data__;return y_?e[t]!==void 0:w_.call(e,t)}var __=O_,S_=Qi,x_="__lodash_hash_undefined__";function P_(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=S_&&e===void 0?x_:e,this}var E_=P_,T_=s_,D_=d_,I_=b_,j_=__,$_=E_;function rl(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}rl.prototype.clear=T_;rl.prototype.delete=D_;rl.prototype.get=I_;rl.prototype.has=j_;rl.prototype.set=$_;var F_=rl,Sv=F_,k_=Zi,A_=cs;function R_(){this.size=0,this.__data__={hash:new Sv,map:new(A_||k_),string:new Sv}}var M_=R_;function N_(t){var e=qe(t);return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var L_=N_,B_=L_;function V_(t,e){var n=t.__data__;return B_(e)?n[typeof e=="string"?"string":"hash"]:n.map}var eu=V_,H_=eu;function K_(t){var e=H_(this,t).delete(t);return this.size-=e?1:0,e}var z_=K_,W_=eu;function U_(t){return W_(this,t).get(t)}var Y_=U_,G_=eu;function q_(t){return G_(this,t).has(t)}var X_=q_,J_=eu;function Z_(t,e){var n=J_(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}var Q_=Z_,eS=M_,tS=z_,nS=Y_,aS=X_,rS=Q_;function ll(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}ll.prototype.clear=eS;ll.prototype.delete=tS;ll.prototype.get=nS;ll.prototype.has=aS;ll.prototype.set=rS;var ss=ll;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var lS=sr,oS=function(){try{var t=lS(Object,"defineProperty");return t({},"",{}),t}catch{}}(),jp=oS;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var xv=jp;function iS(t,e,n){e=="__proto__"&&xv?xv(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var vs=iS,uS=vs,cS=nl,sS=Object.prototype,vS=sS.hasOwnProperty;function dS(t,e,n){var a=t[e];(!(vS.call(t,e)&&cS(a,n))||n===void 0&&!(e in t))&&uS(t,e,n)}var ds=dS;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var fS=Qn,gS=pn,hS="[object Arguments]";function mS(t){return gS(t)&&fS(t)==hS}var pS=mS,Pv=pS,bS=pn,$p=Object.prototype,yS=$p.hasOwnProperty,CS=$p.propertyIsEnumerable,wS=Pv(function(){return arguments}())?Pv:function(t){return bS(t)&&yS.call(t,"callee")&&!CS.call(t,"callee")},so=wS;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var OS=9007199254740991;function _S(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=OS}var fs=_S,SS=pe,xS=fs;function PS(t){return t!=null&&xS(t.length)&&!SS(t)}var vo=PS;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ES(t){return function(e){return t(e)}}var fo=ES;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Da={exports:{}};function TS(){return!1}var DS=TS;(function(t,e){var n=Nn,a=DS,r=e&&!e.nodeType&&e,l=r&&!0&&t&&!t.nodeType&&t,o=l&&l.exports===r,i=o?n.Buffer:void 0,u=i?i.isBuffer:void 0,c=u||a;t.exports=c})(Da,Da.exports);Da.exports;var IS=Qn,jS=fs,$S=pn,FS="[object Arguments]",kS="[object Array]",AS="[object Boolean]",RS="[object Date]",MS="[object Error]",NS="[object Function]",LS="[object Map]",BS="[object Number]",VS="[object Object]",HS="[object RegExp]",KS="[object Set]",zS="[object String]",WS="[object WeakMap]",US="[object ArrayBuffer]",YS="[object DataView]",GS="[object Float32Array]",qS="[object Float64Array]",XS="[object Int8Array]",JS="[object Int16Array]",ZS="[object Int32Array]",QS="[object Uint8Array]",ex="[object Uint8ClampedArray]",tx="[object Uint16Array]",nx="[object Uint32Array]",yt={};yt[GS]=yt[qS]=yt[XS]=yt[JS]=yt[ZS]=yt[QS]=yt[ex]=yt[tx]=yt[nx]=!0;yt[FS]=yt[kS]=yt[US]=yt[AS]=yt[YS]=yt[RS]=yt[MS]=yt[NS]=yt[LS]=yt[BS]=yt[VS]=yt[HS]=yt[KS]=yt[zS]=yt[WS]=!1;function ax(t){return $S(t)&&jS(t.length)&&!!yt[IS(t)]}var rx=ax,Lr={exports:{}};(function(t,e){var n=Tp,a=e&&!e.nodeType&&e,r=a&&!0&&t&&!t.nodeType&&t,l=r&&r.exports===a,o=l&&n.process,i=function(){try{var u=r&&r.require&&r.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();t.exports=i})(Lr,Lr.exports);Lr.exports;var lx=rx,ox=fo,Ev=Lr.exports,Tv=Ev&&Ev.isTypedArray,ix=Tv?ox(Tv):lx,tu=ix,ux=Object.prototype;function cx(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||ux;return t===n}var nu=cx;function sx(t,e){return function(n){return t(e(n))}}var Fp=sx;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var vx=9007199254740991,dx=/^(?:0|[1-9]\d*)$/;function fx(t,e){var n=qe(t);return e=e??vx,!!e&&(n=="number"||n!="symbol"&&dx.test(t))&&t>-1&&t%1==0&&t<e}var au=fx;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var gx=Zi;function hx(){this.__data__=new gx,this.size=0}var mx=hx;function px(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var bx=px;function yx(t){return this.__data__.get(t)}var Cx=yx;function wx(t){return this.__data__.has(t)}var Ox=wx,_x=Zi,Sx=cs,xx=ss,Px=200;function Ex(t,e){var n=this.__data__;if(n instanceof _x){var a=n.__data__;if(!Sx||a.length<Px-1)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new xx(a)}return n.set(t,e),this.size=n.size,this}var Tx=Ex,Dx=Zi,Ix=mx,jx=bx,$x=Cx,Fx=Ox,kx=Tx;function ol(t){var e=this.__data__=new Dx(t);this.size=e.size}ol.prototype.clear=Ix;ol.prototype.delete=jx;ol.prototype.get=$x;ol.prototype.has=Fx;ol.prototype.set=kx;var ru=ol,Ax=ds,Rx=vs;function Mx(t,e,n,a){var r=!n;n||(n={});for(var l=-1,o=e.length;++l<o;){var i=e[l],u=a?a(n[i],t[i],i,n,t):void 0;u===void 0&&(u=t[i]),r?Rx(n,i,u):Ax(n,i,u)}return n}var vr=Mx;function Nx(t,e){for(var n=-1,a=Array(t);++n<t;)a[n]=e(n);return a}var Lx=Nx,Bx=Lx,Vx=so,Hx=ke,Kx=Da.exports,zx=au,Wx=tu,Ux=Object.prototype,Yx=Ux.hasOwnProperty;function Gx(t,e){var n=Hx(t),a=!n&&Vx(t),r=!n&&!a&&Kx(t),l=!n&&!a&&!r&&Wx(t),o=n||a||r||l,i=o?Bx(t.length,String):[],u=i.length;for(var c in t)(e||Yx.call(t,c))&&!(o&&(c=="length"||r&&(c=="offset"||c=="parent")||l&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||zx(c,u)))&&i.push(c);return i}var kp=Gx;function qx(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Xx=qx,Jx=Ve,Zx=nu,Qx=Xx,eP=Object.prototype,tP=eP.hasOwnProperty;function nP(t){if(!Jx(t))return Qx(t);var e=Zx(t),n=[];for(var a in t)a=="constructor"&&(e||!tP.call(t,a))||n.push(a);return n}var aP=nP,rP=kp,lP=aP,oP=vo;function iP(t){return oP(t)?rP(t,!0):lP(t)}var il=iP,Jl={exports:{}};(function(t,e){var n=Nn,a=e&&!e.nodeType&&e,r=a&&!0&&t&&!t.nodeType&&t,l=r&&r.exports===a,o=l?n.Buffer:void 0,i=o?o.allocUnsafe:void 0;function u(c,v){if(v)return c.slice();var s=c.length,d=i?i(s):new c.constructor(s);return c.copy(d),d}t.exports=u})(Jl,Jl.exports);Jl.exports;function uP(t,e){var n=-1,a=t.length;for(e||(e=Array(a));++n<a;)e[n]=t[n];return e}var Ap=uP,cP=Fp,sP=cP(Object.getPrototypeOf,Object),gs=sP,vP=Nn,dP=vP.Uint8Array,Rp=dP,Dv=Rp;function fP(t){var e=new t.constructor(t.byteLength);return new Dv(e).set(new Dv(t)),e}var hs=fP,gP=hs;function hP(t,e){var n=e?gP(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Mp=hP,mP=Ve,Iv=Object.create,pP=function(){function t(){}return function(e){if(!mP(e))return{};if(Iv)return Iv(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),bP=pP,yP=bP,CP=gs,wP=nu;function OP(t){return typeof t.constructor=="function"&&!wP(t)?yP(CP(t)):{}}var Np=OP;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var _P=sr,SP=Nn,xP=_P(SP,"Set"),Lp=xP;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var PP=Fp,EP=PP(Object.keys,Object),TP=EP,DP=nu,IP=TP,jP=Object.prototype,$P=jP.hasOwnProperty;function FP(t){if(!DP(t))return IP(t);var e=[];for(var n in Object(t))$P.call(t,n)&&n!="constructor"&&e.push(n);return e}var Bp=FP,kP=sr,AP=Nn,RP=kP(AP,"DataView"),MP=RP,NP=sr,LP=Nn,BP=NP(LP,"Promise"),VP=BP,HP=sr,KP=Nn,zP=HP(KP,"WeakMap"),WP=zP,pc=MP,bc=cs,yc=VP,Cc=Lp,wc=WP,Vp=Qn,ul=Ip,jv="[object Map]",UP="[object Object]",$v="[object Promise]",Fv="[object Set]",kv="[object WeakMap]",Av="[object DataView]",YP=ul(pc),GP=ul(bc),qP=ul(yc),XP=ul(Cc),JP=ul(wc),Xa=Vp;(pc&&Xa(new pc(new ArrayBuffer(1)))!=Av||bc&&Xa(new bc)!=jv||yc&&Xa(yc.resolve())!=$v||Cc&&Xa(new Cc)!=Fv||wc&&Xa(new wc)!=kv)&&(Xa=function(e){var n=Vp(e),a=n==UP?e.constructor:void 0,r=a?ul(a):"";if(r)switch(r){case YP:return Av;case GP:return jv;case qP:return $v;case XP:return Fv;case JP:return kv}return n});var go=Xa;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ZP(t,e){for(var n=-1,a=t==null?0:t.length,r=0,l=[];++n<a;){var o=t[n];e(o,n,t)&&(l[r++]=o)}return l}var Hp=ZP;function QP(t,e){for(var n=-1,a=e.length,r=t.length;++n<a;)t[r+n]=e[n];return t}var ms=QP;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function e1(t,e){for(var n=-1,a=t==null?0:t.length;++n<a&&e(t[n],n,t)!==!1;);return t}var t1=e1,n1=kp,a1=Bp,r1=vo;function l1(t){return r1(t)?n1(t):a1(t)}var ho=l1,o1=vr,i1=ho;function u1(t,e){return t&&o1(e,i1(e),t)}var c1=u1,s1=vr,v1=il;function d1(t,e){return t&&s1(e,v1(e),t)}var f1=d1;function g1(){return[]}var Kp=g1,h1=Hp,m1=Kp,p1=Object.prototype,b1=p1.propertyIsEnumerable,Rv=Object.getOwnPropertySymbols,y1=Rv?function(t){return t==null?[]:(t=Object(t),h1(Rv(t),function(e){return b1.call(t,e)}))}:m1,ps=y1,C1=vr,w1=ps;function O1(t,e){return C1(t,w1(t),e)}var _1=O1,S1=ms,x1=gs,P1=ps,E1=Kp,T1=Object.getOwnPropertySymbols,D1=T1?function(t){for(var e=[];t;)S1(e,P1(t)),t=x1(t);return e}:E1,zp=D1,I1=vr,j1=zp;function $1(t,e){return I1(t,j1(t),e)}var F1=$1,k1=ms,A1=ke;function R1(t,e,n){var a=e(t);return A1(t)?a:k1(a,n(t))}var Wp=R1,M1=Wp,N1=ps,L1=ho;function B1(t){return M1(t,L1,N1)}var Up=B1,V1=Wp,H1=zp,K1=il;function z1(t){return V1(t,K1,H1)}var bs=z1,W1=Object.prototype,U1=W1.hasOwnProperty;function Y1(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&U1.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var G1=Y1,q1=hs;function X1(t,e){var n=e?q1(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var J1=X1,Z1=/\w*$/;function Q1(t){var e=new t.constructor(t.source,Z1.exec(t));return e.lastIndex=t.lastIndex,e}var eE=Q1,Mv=tl,Nv=Mv?Mv.prototype:void 0,Lv=Nv?Nv.valueOf:void 0;function tE(t){return Lv?Object(Lv.call(t)):{}}var nE=tE,aE=hs,rE=J1,lE=eE,oE=nE,iE=Mp,uE="[object Boolean]",cE="[object Date]",sE="[object Map]",vE="[object Number]",dE="[object RegExp]",fE="[object Set]",gE="[object String]",hE="[object Symbol]",mE="[object ArrayBuffer]",pE="[object DataView]",bE="[object Float32Array]",yE="[object Float64Array]",CE="[object Int8Array]",wE="[object Int16Array]",OE="[object Int32Array]",_E="[object Uint8Array]",SE="[object Uint8ClampedArray]",xE="[object Uint16Array]",PE="[object Uint32Array]";function EE(t,e,n){var a=t.constructor;switch(e){case mE:return aE(t);case uE:case cE:return new a(+t);case pE:return rE(t,n);case bE:case yE:case CE:case wE:case OE:case _E:case SE:case xE:case PE:return iE(t,n);case sE:return new a;case vE:case gE:return new a(t);case dE:return lE(t);case fE:return new a;case hE:return oE(t)}}var TE=EE,DE=go,IE=pn,jE="[object Map]";function $E(t){return IE(t)&&DE(t)==jE}var FE=$E,kE=FE,AE=fo,Bv=Lr.exports,Vv=Bv&&Bv.isMap,RE=Vv?AE(Vv):kE,ME=RE,NE=go,LE=pn,BE="[object Set]";function VE(t){return LE(t)&&NE(t)==BE}var HE=VE,KE=HE,zE=fo,Hv=Lr.exports,Kv=Hv&&Hv.isSet,WE=Kv?zE(Kv):KE,UE=WE,YE=ru,GE=t1,qE=ds,XE=c1,JE=f1,ZE=Jl.exports,QE=Ap,eT=_1,tT=F1,nT=Up,aT=bs,rT=go,lT=G1,oT=TE,iT=Np,uT=ke,cT=Da.exports,sT=ME,vT=Ve,dT=UE,fT=ho,gT=il,hT=1,mT=2,pT=4,Yp="[object Arguments]",bT="[object Array]",yT="[object Boolean]",CT="[object Date]",wT="[object Error]",Gp="[object Function]",OT="[object GeneratorFunction]",_T="[object Map]",ST="[object Number]",qp="[object Object]",xT="[object RegExp]",PT="[object Set]",ET="[object String]",TT="[object Symbol]",DT="[object WeakMap]",IT="[object ArrayBuffer]",jT="[object DataView]",$T="[object Float32Array]",FT="[object Float64Array]",kT="[object Int8Array]",AT="[object Int16Array]",RT="[object Int32Array]",MT="[object Uint8Array]",NT="[object Uint8ClampedArray]",LT="[object Uint16Array]",BT="[object Uint32Array]",pt={};pt[Yp]=pt[bT]=pt[IT]=pt[jT]=pt[yT]=pt[CT]=pt[$T]=pt[FT]=pt[kT]=pt[AT]=pt[RT]=pt[_T]=pt[ST]=pt[qp]=pt[xT]=pt[PT]=pt[ET]=pt[TT]=pt[MT]=pt[NT]=pt[LT]=pt[BT]=!0;pt[wT]=pt[Gp]=pt[DT]=!1;function ai(t,e,n,a,r,l){var o,i=e&hT,u=e&mT,c=e&pT;if(n&&(o=r?n(t,a,r,l):n(t)),o!==void 0)return o;if(!vT(t))return t;var v=uT(t);if(v){if(o=lT(t),!i)return QE(t,o)}else{var s=rT(t),d=s==Gp||s==OT;if(cT(t))return ZE(t,i);if(s==qp||s==Yp||d&&!r){if(o=u||d?{}:iT(t),!i)return u?tT(t,JE(o,t)):eT(t,XE(o,t))}else{if(!pt[s])return r?t:{};o=oT(t,s,i)}}l||(l=new YE);var f=l.get(t);if(f)return f;l.set(t,o),dT(t)?t.forEach(function(m){o.add(ai(m,e,n,m,t,l))}):sT(t)&&t.forEach(function(m,b){o.set(b,ai(m,e,n,b,t,l))});var p=c?u?aT:nT:u?gT:fT,h=v?void 0:p(t);return GE(h||t,function(m,b){h&&(b=m,m=t[b]),qE(o,b,ai(m,e,n,b,t,l))}),o}var Xp=ai;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var VT=Xp,HT=1,KT=4;function zT(t){return VT(t,HT|KT)}var Xn=zT;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function WT(t){return t}var ys=WT;function UT(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Jp=UT,YT=Jp,zv=Math.max;function GT(t,e,n){return e=zv(e===void 0?t.length-1:e,0),function(){for(var a=arguments,r=-1,l=zv(a.length-e,0),o=Array(l);++r<l;)o[r]=a[e+r];r=-1;for(var i=Array(e+1);++r<e;)i[r]=a[r];return i[e]=n(o),YT(t,this,i)}}var Zp=GT;function qT(t){return function(){return t}}var XT=qT,JT=XT,Wv=jp,ZT=ys,QT=Wv?function(t,e){return Wv(t,"toString",{configurable:!0,enumerable:!1,value:JT(e),writable:!0})}:ZT,eD=QT,tD=800,nD=16,aD=Date.now;function rD(t){var e=0,n=0;return function(){var a=aD(),r=nD-(a-n);if(n=a,r>0){if(++e>=tD)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var lD=rD,oD=eD,iD=lD,uD=iD(oD),Qp=uD;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var cD=vo,sD=pn;function vD(t){return sD(t)&&cD(t)}var Cs=vD,dD=ys,fD=Zp,gD=Qp;function hD(t,e){return gD(fD(t,e,dD),t+"")}var lu=hD;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var mD=Qn,pD=gs,bD=pn,yD="[object Object]",CD=Function.prototype,wD=Object.prototype,eb=CD.toString,OD=wD.hasOwnProperty,_D=eb.call(Object);function SD(t){if(!bD(t)||mD(t)!=yD)return!1;var e=pD(t);if(e===null)return!0;var n=OD.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&eb.call(n)==_D}var ws=SD;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var xD=nl,PD=vo,ED=au,TD=Ve;function DD(t,e,n){if(!TD(n))return!1;var a=qe(e);return(a=="number"?PD(n)&&ED(e,n.length):a=="string"&&e in n)?xD(n[e],t):!1}var ou=DD;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var ID={classPrefix:"t",animation:{include:["ripple","expand","fade"],exclude:[]},calendar:{firstDayOfWeek:1,fillWithZero:!0,controllerConfig:void 0},icon:{},input:{autocomplete:""},dialog:{closeOnEscKeydown:!0,closeOnOverlayClick:!0,confirmBtnTheme:{default:"primary",info:"primary",warning:"primary",danger:"primary",success:"primary"}},message:{},popconfirm:{confirmBtnTheme:{default:"primary",warning:"primary",danger:"primary"}},table:{expandIcon:void 0,sortIcon:void 0,filterIcon:void 0,treeExpandAndFoldIcon:void 0,hideSortTips:!1},select:{clearIcon:void 0,filterable:!1},drawer:{closeOnEscKeydown:!0,closeOnOverlayClick:!0,size:"small"},tree:{folderIcon:void 0},datePicker:{firstDayOfWeek:1},steps:{checkIcon:void 0,errorIcon:void 0},tag:{closeIcon:void 0},form:{requiredMark:void 0}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var iu={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(Kt,function(){var n=1e3,a=6e4,r=36e5,l="millisecond",o="second",i="minute",u="hour",c="day",v="week",s="month",d="quarter",f="year",p="date",h="Invalid Date",m=/^(\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,y={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(w){var P=["th","st","nd","rd"],A=w%100;return"["+w+(P[(A-20)%10]||P[A]||P[0])+"]"}},C=function(w,P,A){var R=String(w);return!R||R.length>=P?w:""+Array(P+1-R.length).join(A)+w},O={s:C,z:function(w){var P=-w.utcOffset(),A=Math.abs(P),R=Math.floor(A/60),k=A%60;return(P<=0?"+":"-")+C(R,2,"0")+":"+C(k,2,"0")},m:function F(w,P){if(w.date()<P.date())return-F(P,w);var A=12*(P.year()-w.year())+(P.month()-w.month()),R=w.clone().add(A,s),k=P-R<0,M=w.clone().add(A+(k?-1:1),s);return+(-(A+(P-R)/(k?R-M:M-R))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:s,y:f,w:v,d:c,D:p,h:u,m:i,s:o,ms:l,Q:d}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},_="en",$={};$[_]=y;var I="$isDayjsObject",x=function(w){return w instanceof j||!(!w||!w[I])},S=function F(w,P,A){var R;if(!w)return _;if(typeof w=="string"){var k=w.toLowerCase();$[k]&&(R=k),P&&($[k]=P,R=k);var M=w.split("-");if(!R&&M.length>1)return F(M[0])}else{var V=w.name;$[V]=w,R=V}return!A&&R&&(_=R),R||!A&&_},E=function(w,P){if(x(w))return w.clone();var A=qe(P)=="object"?P:{};return A.date=w,A.args=arguments,new j(A)},D=O;D.l=S,D.i=x,D.w=function(F,w){return E(F,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var j=function(){function F(P){this.$L=S(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[I]=!0}var w=F.prototype;return w.parse=function(P){this.$d=function(A){var R=A.date,k=A.utc;if(R===null)return new Date(NaN);if(D.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var M=R.match(m);if(M){var V=M[2]-1||0,W=(M[7]||"0").substring(0,3);return k?new Date(Date.UTC(M[1],V,M[3]||1,M[4]||0,M[5]||0,M[6]||0,W)):new Date(M[1],V,M[3]||1,M[4]||0,M[5]||0,M[6]||0,W)}}return new Date(R)}(P),this.init()},w.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},w.$utils=function(){return D},w.isValid=function(){return this.$d.toString()!==h},w.isSame=function(P,A){var R=E(P);return this.startOf(A)<=R&&R<=this.endOf(A)},w.isAfter=function(P,A){return E(P)<this.startOf(A)},w.isBefore=function(P,A){return this.endOf(A)<E(P)},w.$g=function(P,A,R){return D.u(P)?this[A]:this.set(R,P)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(P,A){var R=this,k=!!D.u(A)||A,M=D.p(P),V=function(X,J){var Z=D.w(R.$u?Date.UTC(R.$y,J,X):new Date(R.$y,J,X),R);return k?Z:Z.endOf(c)},W=function(X,J){return D.w(R.toDate()[X].apply(R.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(J)),R)},U=this.$W,H=this.$M,L=this.$D,z="set"+(this.$u?"UTC":"");switch(M){case f:return k?V(1,0):V(31,11);case s:return k?V(1,H):V(0,H+1);case v:var K=this.$locale().weekStart||0,Y=(U<K?U+7:U)-K;return V(k?L-Y:L+(6-Y),H);case c:case p:return W(z+"Hours",0);case u:return W(z+"Minutes",1);case i:return W(z+"Seconds",2);case o:return W(z+"Milliseconds",3);default:return this.clone()}},w.endOf=function(P){return this.startOf(P,!1)},w.$set=function(P,A){var R,k=D.p(P),M="set"+(this.$u?"UTC":""),V=(R={},R[c]=M+"Date",R[p]=M+"Date",R[s]=M+"Month",R[f]=M+"FullYear",R[u]=M+"Hours",R[i]=M+"Minutes",R[o]=M+"Seconds",R[l]=M+"Milliseconds",R)[k],W=k===c?this.$D+(A-this.$W):A;if(k===s||k===f){var U=this.clone().set(p,1);U.$d[V](W),U.init(),this.$d=U.set(p,Math.min(this.$D,U.daysInMonth())).$d}else V&&this.$d[V](W);return this.init(),this},w.set=function(P,A){return this.clone().$set(P,A)},w.get=function(P){return this[D.p(P)]()},w.add=function(P,A){var R,k=this;P=Number(P);var M=D.p(A),V=function(L){var z=E(k);return D.w(z.date(z.date()+Math.round(L*P)),k)};if(M===s)return this.set(s,this.$M+P);if(M===f)return this.set(f,this.$y+P);if(M===c)return V(1);if(M===v)return V(7);var W=(R={},R[i]=a,R[u]=r,R[o]=n,R)[M]||1,U=this.$d.getTime()+P*W;return D.w(U,this)},w.subtract=function(P,A){return this.add(-1*P,A)},w.format=function(P){var A=this,R=this.$locale();if(!this.isValid())return R.invalidDate||h;var k=P||"YYYY-MM-DDTHH:mm:ssZ",M=D.z(this),V=this.$H,W=this.$m,U=this.$M,H=R.weekdays,L=R.months,z=R.meridiem,K=function(J,Z,oe,se){return J&&(J[Z]||J(A,k))||oe[Z].slice(0,se)},Y=function(J){return D.s(V%12||12,J,"0")},q=z||function(X,J,Z){var oe=X<12?"AM":"PM";return Z?oe.toLowerCase():oe};return k.replace(b,function(X,J){return J||function(Z){switch(Z){case"YY":return String(A.$y).slice(-2);case"YYYY":return D.s(A.$y,4,"0");case"M":return U+1;case"MM":return D.s(U+1,2,"0");case"MMM":return K(R.monthsShort,U,L,3);case"MMMM":return K(L,U);case"D":return A.$D;case"DD":return D.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return K(R.weekdaysMin,A.$W,H,2);case"ddd":return K(R.weekdaysShort,A.$W,H,3);case"dddd":return H[A.$W];case"H":return String(V);case"HH":return D.s(V,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return q(V,W,!0);case"A":return q(V,W,!1);case"m":return String(W);case"mm":return D.s(W,2,"0");case"s":return String(A.$s);case"ss":return D.s(A.$s,2,"0");case"SSS":return D.s(A.$ms,3,"0");case"Z":return M}return null}(X)||M.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(P,A,R){var k,M=this,V=D.p(A),W=E(P),U=(W.utcOffset()-this.utcOffset())*a,H=this-W,L=function(){return D.m(M,W)};switch(V){case f:k=L()/12;break;case s:k=L();break;case d:k=L()/3;break;case v:k=(H-U)/6048e5;break;case c:k=(H-U)/864e5;break;case u:k=H/r;break;case i:k=H/a;break;case o:k=H/n;break;default:k=H}return R?k:D.a(k)},w.daysInMonth=function(){return this.endOf(s).$D},w.$locale=function(){return $[this.$L]},w.locale=function(P,A){if(!P)return this.$L;var R=this.clone(),k=S(P,A,!0);return k&&(R.$L=k),R},w.clone=function(){return D.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},F}(),T=j.prototype;return E.prototype=T,[["$ms",l],["$s",o],["$m",i],["$H",u],["$W",c],["$M",s],["$y",f],["$D",p]].forEach(function(F){T[F[1]]=function(w){return this.$g(w,F[0],F[1])}}),E.extend=function(F,w){return F.$i||(F(w,j,E),F.$i=!0),E},E.locale=S,E.isDayjs=x,E.unix=function(F){return E(1e3*F)},E.en=$[_],E.Ls=$,E.p={},E})})(iu);var de=iu.exports;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var jD={exports:{}};(function(t,e){(function(n,a){t.exports=a(iu.exports)})(Kt,function(n){function a(o){return o&&qe(o)=="object"&&"default"in o?o:{default:o}}var r=a(n),l={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(i,u){return u==="W"?i+"周":i+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(i,u){var c=100*i+u;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return r.default.locale(l,null,!0),l})})(jD);var $D={pagination:{itemsPerPage:"{size} 条/页",jumpTo:"跳至",page:"页",total:"共 {total} 条数据"},cascader:{empty:"暂无数据",loadingText:"加载中",placeholder:"请选择"},calendar:{yearSelection:"{year} 年",monthSelection:"{month} 月",yearRadio:"年",monthRadio:"月",hideWeekend:"隐藏周末",showWeekend:"显示周末",today:"今天",thisMonth:"本月",week:"一,二,三,四,五,六,日",cellMonth:"1 月,2 月,3 月,4 月,5 月,6 月,7 月,8 月,9 月,10 月,11 月,12 月"},transfer:{title:"{checked} / {total} 项",empty:"暂无数据",placeholder:"请输入关键词搜索"},timePicker:{dayjsLocale:"zh-cn",now:"此刻",confirm:"确定",anteMeridiem:"上午",postMeridiem:"下午",placeholder:"选择时间"},dialog:{confirm:"确认",cancel:"取消"},drawer:{confirm:"确认",cancel:"取消"},popconfirm:{confirm:{content:"确定"},cancel:{content:"取消"}},table:{empty:"暂无数据",loadingText:"正在加载中，请稍后",loadingMoreText:"点击加载更多",filterInputPlaceholder:"请输入内容（无默认值）",sortAscendingOperationText:"点击升序",sortCancelOperationText:"点击取消排序",sortDescendingOperationText:"点击降序",clearFilterResultButtonText:"清空筛选",columnConfigButtonText:"列配置",columnConfigTitleText:"表格列配置",columnConfigDescriptionText:"请选择需要在表格中显示的数据列",confirmText:"确认",cancelText:"取消",resetText:"重置",selectAllText:"全选",searchResultText:"搜索“{result}”，找到 {count} 条结果"},select:{empty:"暂无数据",loadingText:"加载中",placeholder:"请选择"},tree:{empty:"暂无数据"},treeSelect:{empty:"暂无数据",loadingText:"加载中",placeholder:"请选择"},datePicker:{dayjsLocale:"zh-cn",placeholder:{date:"请选择日期",month:"请选择月份",year:"请选择年份"},weekdays:["一","二","三","四","五","六","日"],months:["1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月"],quarters:["一季度","二季度","三季度","四季度"],rangeSeparator:" - ",direction:"ltr",format:"YYYY-MM-DD",dayAriaLabel:"日",weekAbbreviation:"周",yearAriaLabel:"年",monthAriaLabel:"月",confirm:"确定",selectTime:"选择时间",selectDate:"选择日期",nextYear:"下一年",preYear:"上一年",nextMonth:"下个月",preMonth:"上个月",preDecade:"上个十年",nextDecade:"下个十年",now:"当前"},upload:{sizeLimitMessage:"文件大小不能超过 {sizeLimit}",cancelUploadText:"取消上传",triggerUploadText:{fileInput:"选择文件",image:"点击上传图片",normal:"点击上传",reupload:"重新选择",continueUpload:"继续选择",delete:"删除",uploading:"上传中"},dragger:{dragDropText:"释放鼠标",draggingText:"拖拽到此区域",clickAndDragText:"点击上方“选择文件”或将文件拖拽到此区域"},file:{fileNameText:"文件名",fileSizeText:"文件大小",fileStatusText:"状态",fileOperationText:"操作",fileOperationDateText:"上传日期"},progress:{uploadingText:"上传中",waitingText:"待上传",failText:"上传失败",successText:"上传成功"}},form:{errorMessage:{date:"请输入正确的${name}",url:"请输入正确的${name}",required:"${name}必填",max:"${name}字符长度不能超过 ${validate} 个字符，一个中文等于两个字符",min:"${name}字符长度不能少于 ${validate} 个字符，一个中文等于两个字符",len:"${name}字符长度必须是 ${validate}",enum:"${name}只能是${validate}等",idcard:"请输入正确的${name}",telnumber:"请输入正确的${name}",pattern:"请输入正确的${name}",validator:"${name}不符合要求",boolean:"${name}数据类型必须是布尔类型",number:"${name}必须是数字"}},input:{placeholder:"请输入"},list:{loadingText:"正在加载中，请稍等",loadingMoreText:"点击加载更多"},alert:{expandText:"展开更多",collapseText:"收起"},anchor:{copySuccessText:"链接复制成功",copyText:"复制链接"},colorPicker:{swatchColorTitle:"系统预设颜色",recentColorTitle:"最近使用颜色",clearConfirmText:"确定清空最近使用的颜色吗？"},guide:{finishButtonProps:{content:"完成",theme:"primary"},nextButtonProps:{content:"下一步",theme:"primary"},skipButtonProps:{content:"跳过",theme:"default"},prevButtonProps:{content:"上一步",theme:"default"}},image:{errorText:"图片无法显示",loadingText:"图片加载中"},imageViewer:{errorText:"图片加载失败，可尝试重新加载",mirrorTipText:"镜像",rotateTipText:"旋转",originalSizeTipText:"原始大小"}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var FD=vs,kD=nl;function AD(t,e,n){(n!==void 0&&!kD(t[e],n)||n===void 0&&!(e in t))&&FD(t,e,n)}var tb=AD;function RD(t){return function(e,n,a){for(var r=-1,l=Object(e),o=a(e),i=o.length;i--;){var u=o[t?i:++r];if(n(l[u],u,l)===!1)break}return e}}var MD=RD,ND=MD,LD=ND(),BD=LD;function VD(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var nb=VD,HD=vr,KD=il;function zD(t){return HD(t,KD(t))}var WD=zD,Uv=tb,UD=Jl.exports,YD=Mp,GD=Ap,qD=Np,Yv=so,Gv=ke,XD=Cs,JD=Da.exports,ZD=pe,QD=Ve,eI=ws,tI=tu,qv=nb,nI=WD;function aI(t,e,n,a,r,l,o){var i=qv(t,n),u=qv(e,n),c=o.get(u);if(c){Uv(t,n,c);return}var v=l?l(i,u,n+"",t,e,o):void 0,s=v===void 0;if(s){var d=Gv(u),f=!d&&JD(u),p=!d&&!f&&tI(u);v=u,d||f||p?Gv(i)?v=i:XD(i)?v=GD(i):f?(s=!1,v=UD(u,!0)):p?(s=!1,v=YD(u,!0)):v=[]:eI(u)||Yv(u)?(v=i,Yv(i)?v=nI(i):(!QD(i)||ZD(i))&&(v=qD(u))):s=!1}s&&(o.set(u,v),r(v,u,a,l,o),o.delete(u)),Uv(t,n,v)}var rI=aI,lI=ru,oI=tb,iI=BD,uI=rI,cI=Ve,sI=il,vI=nb;function ab(t,e,n,a,r){t!==e&&iI(e,function(l,o){if(r||(r=new lI),cI(l))uI(t,e,o,n,ab,a,r);else{var i=a?a(vI(t,o),l,o+"",t,e,r):void 0;i===void 0&&(i=l),oI(t,o,i)}},sI)}var rb=ab,dI=lu,fI=ou;function gI(t){return dI(function(e,n){var a=-1,r=n.length,l=r>1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(l=t.length>3&&typeof l=="function"?(r--,l):void 0,o&&fI(n[0],n[1],o)&&(l=r<3?void 0:l,r=1),e=Object(e);++a<r;){var i=n[a];i&&t(e,i,a,l)}return e})}var Os=gI,hI=rb,mI=Os,pI=mI(function(t,e,n,a){hI(t,e,n,a)}),bI=pI,yI=rb,CI=Os,wI=CI(function(t,e,n){yI(t,e,n)}),_s=wI,uu=function(t){return t.ripple="ripple",t.expand="expand",t.fade="fade",t}(uu||{}),lb=_s(ID,$D),ob=Symbol("configProvide"),OI=function(e,n){return bI(e,n,function(a,r){if(ke(a))return r})};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Oc=G();function Ke(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,e=arguments.length>1?arguments[1]:void 0,n=It()?vt(ob,null):Oc,a=B(function(){return(n==null?void 0:n.value)||lb}),r=B(function(){return Object.assign({},a.value[t],e)}),l=B(function(){return a.value.classPrefix}),o=function(u){for(var c=arguments.length,v=new Array(c>1?c-1:0),s=1;s<c;s++)v[s-1]=arguments[s];var d=v[0];if(Be(u)){if(!d)return u;var f=/\{\s*([\w-]+)\s*\}/g,p=u.replace(f,function(h,m){return d?String(d[m]):""});return p}return pe(u)?v.length?u.apply(void 0,v):u(He):""};return{t:o,global:r,globalConfig:r,classPrefix:l}}var _I=function(e){var n=Xn(lb),a=B(function(){return OI(n,e.globalConfig)});return wt(ob,a),Oc.value||(Oc.value=a.value),a};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ee(t){var e=Ke("classPrefix"),n=e.classPrefix;return B(function(){return t?"".concat(n.value,"-").concat(t):n.value})}function ft(){var t=Ke("classPrefix"),e=t.classPrefix;return{SIZE:B(function(){return{small:"".concat(e.value,"-size-s"),medium:"".concat(e.value,"-size-m"),large:"".concat(e.value,"-size-l"),default:"",xs:"".concat(e.value,"-size-xs"),xl:"".concat(e.value,"-size-xl"),block:"".concat(e.value,"-size-full-width")}}),STATUS:B(function(){return{loading:"".concat(e.value,"-is-loading"),loadMore:"".concat(e.value,"-is-load-more"),disabled:"".concat(e.value,"-is-disabled"),focused:"".concat(e.value,"-is-focused"),success:"".concat(e.value,"-is-success"),error:"".concat(e.value,"-is-error"),warning:"".concat(e.value,"-is-warning"),selected:"".concat(e.value,"-is-selected"),active:"".concat(e.value,"-is-active"),checked:"".concat(e.value,"-is-checked"),current:"".concat(e.value,"-is-current"),hidden:"".concat(e.value,"-is-hidden"),visible:"".concat(e.value,"-is-visible"),expanded:"".concat(e.value,"-is-expanded"),indeterminate:"".concat(e.value,"-is-indeterminate")}})}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var SI=ne({name:"TLoadingGradient",setup:function(){var e=ee();return Ae(function(){var n=It().refs.circle;Je(function(){Qw(n)})}),{classPrefix:e}},render:function(){var e=this.classPrefix,n="".concat(e,"-loading__gradient"),a=[n,"".concat(e,"-icon-loading")];return g("svg",{class:a,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[g("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[g("div",{class:"".concat(n,"-conic"),ref:"circle"},null)])])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Ss={exports:{}},Il={exports:{}};(function(){var t,e,n,a,r,l;typeof performance<"u"&&performance!==null&&performance.now?Il.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Il.exports=function(){return(t()-r)/1e6},e=process.hrtime,t=function(){var i;return i=e(),i[0]*1e9+i[1]},a=t(),l=process.uptime()*1e9,r=a-l):Date.now?(Il.exports=function(){return Date.now()-n},n=Date.now()):(Il.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(Kt);var xI=Il.exports,sa=typeof window>"u"?Kt:window,Po=["moz","webkit"],Fr="AnimationFrame",Br=sa["request"+Fr],Zl=sa["cancel"+Fr]||sa["cancelRequest"+Fr];for(var Ol=0;!Br&&Ol<Po.length;Ol++)Br=sa[Po[Ol]+"Request"+Fr],Zl=sa[Po[Ol]+"Cancel"+Fr]||sa[Po[Ol]+"CancelRequest"+Fr];if(!Br||!Zl){var ju=0,Xv=0,za=[],PI=1e3/60;Br=function(e){if(za.length===0){var n=xI(),a=Math.max(0,PI-(n-ju));ju=a+n,setTimeout(function(){var r=za.slice(0);za.length=0;for(var l=function(){if(!r[o].cancelled)try{r[o].callback(ju)}catch(u){setTimeout(function(){throw u},0)}},o=0;o<r.length;o++)l()},Math.round(a))}return za.push({handle:++Xv,callback:e,cancelled:!1}),Xv},Zl=function(e){for(var n=0;n<za.length;n++)za[n].handle===e&&(za[n].cancelled=!0)}}Ss.exports=function(t){return Br.call(sa,t)};Ss.exports.cancel=function(){Zl.apply(sa,arguments)};Ss.exports.polyfill=function(t){t||(t=sa),t.requestAnimationFrame=Br,t.cancelAnimationFrame=Zl};var ar=typeof window>"u",EI=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},ot=function(){return!ar&&document.addEventListener?function(t,e,n,a){t&&e&&n&&t.addEventListener(e,n,a)}:function(t,e,n){t&&e&&n&&t.attachEvent("on".concat(e),n)}}(),Xe=function(){return!ar&&document.removeEventListener?function(t,e,n,a){t&&e&&t.removeEventListener(e,n,a)}:function(t,e,n){t&&e&&t.detachEvent("on".concat(e),n)}}();function TI(t,e,n,a){var r=pe(n)?n:n.handleEvent,l=function o(i){r(i),Xe(t,e,o,a)};ot(t,e,l,a)}function xs(t,e){if(!t||!e)return!1;if(e.indexOf(" ")!==-1)throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):" ".concat(t.className," ").indexOf(" ".concat(e," "))>-1}function Ps(t,e){if(t){for(var n=t.className,a=(e||"").split(" "),r=0,l=a.length;r<l;r++){var o=a[r];o&&(t.classList?t.classList.add(o):xs(t,o)||(n+=" ".concat(o)))}t.classList||(t.className=n)}}function bi(t,e){if(!(!t||!e)){for(var n=e.split(" "),a=" ".concat(t.className," "),r=0,l=n.length;r<l;r++){var o=n[r];o&&(t.classList?t.classList.remove(o):xs(t,o)&&(a=a.replace(" ".concat(o," ")," ")))}t.classList||(t.className=EI(a))}}var cl=function(e,n){var a=pe(e)?e(n):e;return a?Be(a)?document.querySelector(a):a instanceof HTMLElement?a:document.body:document.body},ib=function(){},DI=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return Be(e)?document.querySelector(e):pe(e)?e():e},yi=function(e){var n=e.clientWidth,a=n===void 0?0:n,r=e.scrollWidth,l=r===void 0?0:r;return l>a},II=function(e){if(!(e instanceof HTMLFormElement))throw new Error("target must be HTMLFormElement");var n=document.createElement("input");n.type="submit",n.hidden=!0,e.appendChild(n),n.click(),e.removeChild(n)};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var jI=Bp,$I=go,FI=so,kI=ke,AI=vo,RI=Da.exports,MI=nu,NI=tu,LI="[object Map]",BI="[object Set]",VI=Object.prototype,HI=VI.hasOwnProperty;function KI(t){if(t==null)return!0;if(AI(t)&&(kI(t)||typeof t=="string"||typeof t.splice=="function"||RI(t)||NI(t)||FI(t)))return!t.length;var e=$I(t);if(e==LI||e==BI)return!t.size;if(MI(t))return!jI(t).length;for(var n in t)if(HI.call(t,n))return!1;return!0}var Ql=KI;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var zI=Qn,WI=pn,UI="[object Symbol]";function YI(t){return qe(t)=="symbol"||WI(t)&&zI(t)==UI}var cu=YI;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function GI(t,e){for(var n=-1,a=t==null?0:t.length,r=Array(a);++n<a;)r[n]=e(t[n],n,t);return r}var dr=GI,Jv=tl,qI=dr,XI=ke,JI=cu,ZI=1/0,Zv=Jv?Jv.prototype:void 0,Qv=Zv?Zv.toString:void 0;function ub(t){if(typeof t=="string")return t;if(XI(t))return qI(t,ub)+"";if(JI(t))return Qv?Qv.call(t):"";var e=t+"";return e=="0"&&1/t==-ZI?"-0":e}var cb=ub,QI=cb;function ej(t){return t==null?"":QI(t)}var Fa=ej;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function tj(t,e,n){var a=-1,r=t.length;e<0&&(e=-e>r?0:r+e),n=n>r?r:n,n<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var l=Array(r);++a<r;)l[a]=t[a+e];return l}var Es=tj;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var nj=Es;function aj(t,e,n){var a=t.length;return n=n===void 0?a:n,!e&&n>=a?t:nj(t,e,n)}var sb=aj,rj="\\ud800-\\udfff",lj="\\u0300-\\u036f",oj="\\ufe20-\\ufe2f",ij="\\u20d0-\\u20ff",uj=lj+oj+ij,cj="\\ufe0e\\ufe0f",sj="\\u200d",vj=RegExp("["+sj+rj+uj+cj+"]");function dj(t){return vj.test(t)}var su=dj;function fj(t){return t.split("")}var gj=fj,vb="\\ud800-\\udfff",hj="\\u0300-\\u036f",mj="\\ufe20-\\ufe2f",pj="\\u20d0-\\u20ff",bj=hj+mj+pj,yj="\\ufe0e\\ufe0f",Cj="["+vb+"]",_c="["+bj+"]",Sc="\\ud83c[\\udffb-\\udfff]",wj="(?:"+_c+"|"+Sc+")",db="[^"+vb+"]",fb="(?:\\ud83c[\\udde6-\\uddff]){2}",gb="[\\ud800-\\udbff][\\udc00-\\udfff]",Oj="\\u200d",hb=wj+"?",mb="["+yj+"]?",_j="(?:"+Oj+"(?:"+[db,fb,gb].join("|")+")"+mb+hb+")*",Sj=mb+hb+_j,xj="(?:"+[db+_c+"?",_c,fb,gb,Cj].join("|")+")",Pj=RegExp(Sc+"(?="+Sc+")|"+xj+Sj,"g");function Ej(t){return t.match(Pj)||[]}var Tj=Ej,Dj=gj,Ij=su,jj=Tj;function $j(t){return Ij(t)?jj(t):Dj(t)}var pb=$j;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Fj(t,e,n,a){var r=-1,l=t==null?0:t.length;for(a&&l&&(n=t[++r]);++r<l;)n=e(n,t[r],r,t);return n}var kj=Fj;function Aj(t){return function(e){return t==null?void 0:t[e]}}var bb=Aj,Rj=bb,Mj={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},Nj=Rj(Mj),Lj=Nj,Bj=Lj,Vj=Fa,Hj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kj="\\u0300-\\u036f",zj="\\ufe20-\\ufe2f",Wj="\\u20d0-\\u20ff",Uj=Kj+zj+Wj,Yj="["+Uj+"]",Gj=RegExp(Yj,"g");function qj(t){return t=Vj(t),t&&t.replace(Hj,Bj).replace(Gj,"")}var Xj=qj,Jj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Zj(t){return t.match(Jj)||[]}var Qj=Zj,e$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t$(t){return e$.test(t)}var n$=t$,yb="\\ud800-\\udfff",a$="\\u0300-\\u036f",r$="\\ufe20-\\ufe2f",l$="\\u20d0-\\u20ff",o$=a$+r$+l$,Cb="\\u2700-\\u27bf",wb="a-z\\xdf-\\xf6\\xf8-\\xff",i$="\\xac\\xb1\\xd7\\xf7",u$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c$="\\u2000-\\u206f",s$=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ob="A-Z\\xc0-\\xd6\\xd8-\\xde",v$="\\ufe0e\\ufe0f",_b=i$+u$+c$+s$,Sb="['’]",ed="["+_b+"]",d$="["+o$+"]",xb="\\d+",f$="["+Cb+"]",Pb="["+wb+"]",Eb="[^"+yb+_b+xb+Cb+wb+Ob+"]",g$="\\ud83c[\\udffb-\\udfff]",h$="(?:"+d$+"|"+g$+")",m$="[^"+yb+"]",Tb="(?:\\ud83c[\\udde6-\\uddff]){2}",Db="[\\ud800-\\udbff][\\udc00-\\udfff]",Er="["+Ob+"]",p$="\\u200d",td="(?:"+Pb+"|"+Eb+")",b$="(?:"+Er+"|"+Eb+")",nd="(?:"+Sb+"(?:d|ll|m|re|s|t|ve))?",ad="(?:"+Sb+"(?:D|LL|M|RE|S|T|VE))?",Ib=h$+"?",jb="["+v$+"]?",y$="(?:"+p$+"(?:"+[m$,Tb,Db].join("|")+")"+jb+Ib+")*",C$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",w$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",O$=jb+Ib+y$,_$="(?:"+[f$,Tb,Db].join("|")+")"+O$,S$=RegExp([Er+"?"+Pb+"+"+nd+"(?="+[ed,Er,"$"].join("|")+")",b$+"+"+ad+"(?="+[ed,Er+td,"$"].join("|")+")",Er+"?"+td+"+"+nd,Er+"+"+ad,w$,C$,xb,_$].join("|"),"g");function x$(t){return t.match(S$)||[]}var P$=x$,E$=Qj,T$=n$,D$=Fa,I$=P$;function j$(t,e,n){return t=D$(t),e=n?void 0:e,e===void 0?T$(t)?I$(t):E$(t):t.match(e)||[]}var $$=j$,F$=kj,k$=Xj,A$=$$,R$="['’]",M$=RegExp(R$,"g");function N$(t){return function(e){return F$(A$(k$(e).replace(M$,"")),t,"")}}var Ts=N$;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var L$=sb,B$=su,V$=pb,H$=Fa;function K$(t){return function(e){e=H$(e);var n=B$(e)?V$(e):void 0,a=n?n[0]:e.charAt(0),r=n?L$(n,1).join(""):e.slice(1);return a[t]()+r}}var z$=K$,W$=z$,U$=W$("toUpperCase"),xc=U$,Y$=Fa,G$=xc;function q$(t){return G$(Y$(t).toLowerCase())}var X$=q$,J$=X$,Z$=Ts,Q$=Z$(function(t,e,n){return e=e.toLowerCase(),t+(n?J$(e):e)}),Ia=Q$;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var eF=Ts,tF=eF(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),sl=tF;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function vl(t){var e;return Ve(t)&&"defaultNode"in t?e=t.defaultNode:(Ze(t)||Be(t))&&(e=t),e}function vu(t){return Ve(t)&&"params"in t?t.params:{}}function nF(t){return Ve(t)&&"slotFirst"in t?t.slotFirst:{}}function rd(t,e,n){var a,r,l,o,i=(a=(r=t.$slots)[Ia(n)])===null||a===void 0?void 0:a.call(r,e);return i||(i=(l=(o=t.$slots)[sl(n)])===null||l===void 0?void 0:l.call(o,e),i)?i:null}var Bt=function(e,n,a){var r=vu(a),l=vl(a),o;if(n in e&&(o=e[n]),o!==!1){if(o===!0&&l)return rd(e,r,n)||l;if(pe(o))return o(He,r);var i=[void 0,r,""].includes(o);return i&&(e.$slots[Ia(n)]||e.$slots[sl(n)])?rd(e,r,n):o}},aF=function(e,n,a){var r=vl(a);return Bt(e,n,a)||r},kn=function(e,n,a,r){var l=vu(r),o=vl(r),i=l?{params:l}:void 0,u=Bt(e,n,i),c=Bt(e,a,i),v=Ql(u)?c:u;return Ql(v)?o:v};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var rF={attach:{type:[String,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},fullscreen:Boolean,indicator:{type:[Boolean,Function],default:!0},inheritColor:Boolean,loading:{type:Boolean,default:!0},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},size:{type:String,default:"medium"},text:{type:[String,Function]},zIndex:{type:Number}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Ds=function(e,n){var a=pe(e)?B(e):G(e),r=pe(n)?B(n):G(n),l=G(),o=function(){l.value=ib()||cl(a.value,r.value)};return Ae(function(){return o()}),le([a,r],function(){return o()}),l};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var lF=function(){return{name:ee("loading"),centerClass:ee("loading--center"),fullscreenClass:ee("loading__fullscreen"),lockClass:ee("loading--lock"),overlayClass:ee("loading__overlay"),relativeClass:ee("loading__parent"),fullClass:ee("loading--full"),inheritColorClass:ee("loading--inherit-color")}},Pc=ne({name:"TLoading",inheritAttrs:!1,props:rF,setup:function(e,n){var a=n.slots,r=G(!1),l=lF(),o=l.name,i=l.centerClass,u=l.fullscreenClass,c=l.lockClass,v=l.overlayClass,s=l.relativeClass,d=l.fullClass,f=l.inheritColorClass,p=ee(),h=ft(),m=h.SIZE,b=function(){r.value=!1;var P=setTimeout(function(){r.value=!0,clearTimeout(P)},e.delay)},y=Ds(function(){return e.attach}),C=B(function(){return!!(!e.delay||e.delay&&r.value)}),O=B(function(){var w={};return e.zIndex!==void 0&&(w.zIndex=e.zIndex),["small","medium","large"].includes(e.size)||(w["font-size"]=e.size),w}),_=B(function(){return!!(e.default||a.default||e.content||a.content)}),$=B(function(){return e.preventScrollThrough&&e.fullscreen}),I=B(function(){return!!(e.text||a.text)}),x=B(function(){return _.value&&e.loading&&C.value}),S=B(function(){return e.fullscreen&&e.loading&&C.value}),E=B(function(){return e.attach&&e.loading&&C.value}),D=B(function(){return e.attach&&e.loading&&C.value}),j=B(function(){var w=[i.value,m.value[e.size],N({},f.value,e.inheritColor)],P=[o.value,u.value,i.value,v.value];return{baseClasses:w,attachClasses:w.concat([o.value,d.value,N({},v.value,e.showOverlay)]),withContentClasses:w.concat([o.value,d.value,N({},v.value,e.showOverlay)]),fullScreenClasses:P,normalClasses:w.concat([o.value])}}),T=_e(e),F=T.loading;return le([F],function(w){var P=be(w,1),A=P[0];A?(b(),$.value&&Ps(document.body,c.value)):$.value&&bi(document.body,c.value)}),Ae(function(){e.delay&&b()}),{classPrefix:p,relativeClass:s,delayShowLoading:r,styles:O,showText:I,hasContent:_,classes:j,lockFullscreen:$,showWrapLoading:x,showNormalLoading:E,showFullScreenLoading:S,showAttachedLoading:D,teleportElement:y}},render:function(){var e=this,n=this.classes,a=n.fullScreenClasses,r=n.baseClasses,l=n.withContentClasses,o=n.attachClasses,i=n.normalClasses,u=g(SI,{size:this.size},null),c=this.loading&&Bt(this,"indicator",u),v=this.showText&&g("div",{class:"".concat(this.classPrefix,"-loading__text")},[Bt(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:g(Mr,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[g("div",ve({class:a,style:e.styles},e.$attrs),[g("div",{class:r},[c,v])])]}}):this.hasContent?g("div",ve({class:this.relativeClass},this.$attrs),[kn(this,"default","content"),this.showWrapLoading&&g("div",{class:l,style:this.styles},[c,v])]):this.attach?!this.showAttachedLoading||!this.loading?null:g(Mr,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[g("div",ve({class:o,style:e.styles},e.$attrs),[c,v])]}}):this.loading?g("div",ve({class:i,style:this.styles},this.$attrs),[c,v]):null}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ld(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function oF(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ld(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ld(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Eo=null;function od(t){var e=ne({setup:function(){var c=jt(t);return{loadingOptions:c}},render:function(){return He(Pc,oF({},this.loadingOptions))}}),n=cl(t.attach),a=Gi(e),r=a.mount(document.createElement("div")),l=ee("loading__parent--relative").value,o=ee("loading");n?Ps(n,l):console.error("attach is not exist");var i={hide:function(){var c;r.loading=!1,(c=n.querySelectorAll(".".concat(o.value)))===null||c===void 0||c.forEach(function(v){v.remove()}),bi(n,l),a.unmount()}};return i}function $b(t){var e=ee("loading--lock");if(t===!0)return Eo=od({fullscreen:!0,loading:!0,attach:"body"}),Eo;if(bi(document.body,e.value),t===!1){bi(document.body,e.value),Eo.hide(),Eo=null;return}return od(t)}var Fb=$b;Fb.install=function(t){t.config.globalProperties.$loading=$b};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Ec=Symbol("TdLoading"),id=function(e,n){var a=n.modifiers,r=a.fullscreen,l=a.inheritColor,o={attach:function(){return e},fullscreen:r??!1,inheritColor:l??!1,loading:n.value};e[Ec]={options:o,instance:Fb(o)}},iF={mounted:function(e,n){n.value&&id(e,n)},updated:function(e,n){var a=e[Ec],r=n.value,l=n.oldValue;!!l!=!!r&&(r?id(e,n):a==null||a.instance.hide())},unmounted:function(e){var n;(n=e[Ec])===null||n===void 0||n.instance.hide()}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ye(t,e,n){var a=t;return a.install=function(r,l){r.component(e||l||a.name,t),n&&r.directive(n.name,n.comp)},a}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var bn=ye(Pc,Pc.name,{name:"loading",comp:iF});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var uF={block:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},ghost:Boolean,href:{type:String,default:""},icon:{type:Function},loading:Boolean,shape:{type:String,default:"rectangle",validator:function(e){return e?["rectangle","square","round","circle"].includes(e):!0}},size:{type:String,default:"medium",validator:function(e){return e?["extra-small","small","medium","large"].includes(e):!0}},suffix:{type:Function},tag:{type:String,validator:function(e){return e?["button","a","div"].includes(e):!0}},theme:{type:String,validator:function(e){return e?["default","primary","danger","warning","success"].includes(e):!0}},type:{type:String,default:"button",validator:function(e){return e?["submit","reset","button"].includes(e):!0}},variant:{type:String,default:"base",validator:function(e){return e?["base","outline","dashed","text"].includes(e):!0}},onClick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var cF=uu.expand,sF=uu.ripple,vF=uu.fade;function dF(){var t=Ke("animation"),e=t.globalConfig,n=function(r){var l,o,i=e.value;return i&&!((l=i.exclude)!==null&&l!==void 0&&l.includes(r))&&((o=i.include)===null||o===void 0?void 0:o.includes(r))};return{keepExpand:n(cF),keepRipple:n(sF),keepFade:n(vF)}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ud(t,e){var n=Object.keys(e);n.forEach(function(a){t.style[a]=e[a]})}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var $u=200,fF="rgba(0, 0, 0, 0)",gF="rgba(0, 0, 0, 0.35)",hF=function(e,n){var a;if(n)return n;if(e!=null&&(a=e.dataset)!==null&&a!==void 0&&a.ripple){var r=e.dataset.ripple;return r}var l=getComputedStyle(e).getPropertyValue("--ripple-color");return l||gF};function fr(t,e){var n=G(null),a=ee(),r=dF(),l=r.keepRipple,o=function(u){var c=t.value,v=hF(c,e==null?void 0:e.value);if(!(u.button!==0||!t||!l)&&!(c.classList.contains("".concat(a.value,"-is-active"))||c.classList.contains("".concat(a.value,"-is-disabled"))||c.classList.contains("".concat(a.value,"-is-checked"))||c.classList.contains("".concat(a.value,"-is-loading")))){var s=getComputedStyle(c),d=parseInt(s.borderWidth,10),f=d>0?d:0,p=c.offsetWidth,h=c.offsetHeight;n.value.parentNode===null&&(ud(n.value,{position:"absolute",left:"".concat(0-f,"px"),top:"".concat(0-f,"px"),width:"".concat(p,"px"),height:"".concat(h,"px"),borderRadius:s.borderRadius,pointerEvents:"none",overflow:"hidden"}),c.appendChild(n.value));var m=document.createElement("div");ud(m,{marginTop:"0",marginLeft:"0",right:"".concat(p,"px"),width:"".concat(p+20,"px"),height:"100%",transition:"transform ".concat($u,"ms cubic-bezier(.38, 0, .24, 1), background ").concat($u*2,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:v,opacity:"0.9"});for(var b=new WeakMap,y=c.children.length,C=0;C<y;++C){var O=c.children[C];O.style.zIndex===""&&O!==n.value&&(O.style.zIndex="1",b.set(O,!0))}var _=c.style.position?c.style.position:getComputedStyle(c).position;(_===""||_==="static")&&(c.style.position="relative"),n.value.insertBefore(m,n.value.firstChild),setTimeout(function(){m.style.transform="translateX(".concat(p,"px)")},0);var $=function I(){m.style.backgroundColor=fF,t.value&&(t.value.removeEventListener("pointerup",I,!1),t.value.removeEventListener("pointerleave",I,!1),setTimeout(function(){m.remove(),n.value.children.length===0&&n.value.remove()},$u*2+100))};t.value.addEventListener("pointerup",$,!1),t.value.addEventListener("pointerleave",$,!1)}};Ae(function(){var i=t==null?void 0:t.value;i&&(n.value=document.createElement("div"),i.addEventListener("pointerdown",o,!1))}),ba(function(){var i;t==null||(i=t.value)===null||i===void 0||i.removeEventListener("pointerdown",o,!1)})}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function cd(t,e,n){var a,r,l,o,i=(a=(r=t.slots)[Ia(e)])===null||a===void 0?void 0:a.call(r,n);return i&&i.filter(function(u){return u.type.toString()!=="Symbol(v-cmt)"}).length||(i=(l=(o=t.slots)[sl(e)])===null||l===void 0?void 0:l.call(o,n),i&&i.filter(function(u){return u.type.toString()!=="Symbol(v-cmt)"}).length)?i:null}function sd(t){if([void 0,null,""].includes(t))return!0;var e=t instanceof Array?t:[t],n=e.filter(function(a){var r;return(a==null||(r=a.type)===null||r===void 0?void 0:r.toString())!=="Symbol(Comment)"});return!n.length}var xe=function(){var e=It();return function(n,a){var r=vu(a),l=vl(a),o=nF(a),i;if(Object.keys(e.props).includes(n)&&(i=e.props[n]),i!==!1){if(i===!0)return cd(e,n,r)||l;if(pe(i))return i(He,r);var u=[void 0,r,""].includes(i);return(u||o)&&(e.slots[Ia(n)]||e.slots[sl(n)])?cd(e,n,r):i}}},ka=function(){var e=xe();return function(n,a){var r=vl(a);return e(n,a)||r}},_t=function(){var e=xe();return function(n,a,r){var l=vu(r),o=vl(r),i=l?{params:l}:void 0,u=e(n,i),c=e(a,i),v=sd(u)?c:u;return sd(v)?o:v}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var mF=Qn,pF=pn,bF="[object Boolean]";function yF(t){return t===!0||t===!1||pF(t)&&mF(t)==bF}var An=yF;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function du(t){var e=It(),n=B(function(){return e.props.disabled}),a=vt("formDisabled",Object.create(null));return B(function(){var r;return An(t==null?void 0:t.beforeDisabled.value)?t.beforeDisabled.value:An(n.value)?n.value:An(t==null?void 0:t.afterDisabled.value)?t.afterDisabled.value:An((r=a.disabled)===null||r===void 0?void 0:r.value)?a.disabled.value:!1})}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function vd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Fu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var ri=ne({name:"TButton",props:uF,setup:function(e,n){var a=n.attrs,r=n.slots,l=xe(),o=_t(),i=ee("button"),u=ft(),c=u.STATUS,v=u.SIZE,s=G();fr(s);var d=du(),f=B(function(){var h=e.theme,m=e.variant;return h||(m==="base"?"primary":"default")}),p=B(function(){return["".concat(i.value),"".concat(i.value,"--variant-").concat(e.variant),"".concat(i.value,"--theme-").concat(f.value),N(N(N(N(N(N({},v.value[e.size],e.size!=="medium"),c.value.disabled,d.value),c.value.loading,e.loading),"".concat(i.value,"--shape-").concat(e.shape),e.shape!=="rectangle"),"".concat(i.value,"--ghost"),e.ghost),v.value.block,e.block)]});return function(){var h=o("default","content"),m=e.loading?g(bn,{inheritColor:!0},null):l("icon"),b=m&&!h,y=e.suffix||r.suffix?g("span",{className:"".concat(i.value,"__suffix")},[l("suffix")]):null;h=h?g("span",{class:"".concat(i.value,"__text")},[h]):"",m&&(h=[m,h]),y&&(h=[h].concat(y));var C=function(){return!e.tag&&e.href?"a":e.tag||"button"},O={class:[].concat(ce(p.value),[N({},"".concat(i.value,"--icon-only"),b)]),type:e.type,disabled:d.value||e.loading,href:e.href,tabindex:d.value?void 0:"0"};return He(C(),Fu(Fu(Fu({ref:s},a),O),{},{onClick:e.onClick}),[h])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Ot=ye(ri);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var I9=ye(DC,"TIcon");/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var CF={content:{type:[String,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},download:{type:[String,Boolean]},hover:{type:String,default:"underline",validator:function(e){return e?["color","underline"].includes(e):!0}},href:{type:String,default:""},prefixIcon:{type:Function},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},suffixIcon:{type:Function},target:{type:String,default:""},theme:{type:String,default:"default",validator:function(e){return e?["default","primary","danger","warning","success"].includes(e):!0}},underline:Boolean,onClick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function dd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function wF(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var OF=ne({name:"TLink",props:wF({},CF),emits:["click"],setup:function(e,n){var a=n.emit,r=_t(),l=xe(),o=ee("link"),i=ft(),u=i.STATUS,c=i.SIZE,v=Ke("classPrefix"),s=v.classPrefix,d=du(),f=B(function(){return["".concat(o.value),"".concat(o.value,"--theme-").concat(e.theme),N(N(N(N({},c.value[e.size],e.size!=="medium"),u.value.disabled,d.value),"".concat(s.value,"-is-underline"),e.underline),"".concat(o.value,"--hover-").concat(e.hover),!d.value)]}),p=function(m){d.value||a("click",m)};return function(){var h=r("default","content"),m=l("prefixIcon"),b=l("suffixIcon");return g("a",{class:ce(f.value),href:d.value||!e.href?void 0:e.href,target:e.target?e.target:void 0,download:e.download?e.download:void 0,onClick:p},[m?g("span",{class:"".concat(o.value,"__prefix-icon")},[m]):null,h,b?g("span",{class:"".concat(o.value,"__suffix-icon")},[b]):null])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Is=ye(OF);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var _F={align:{type:String,default:"top",validator:function(e){return e?["start","end","center","stretch","baseline","top","middle","bottom"].includes(e):!0}},gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start",validator:function(e){return e?["start","end","center","space-around","space-between"].includes(e):!0}},tag:{type:String,default:"div"}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var fd=function(e){var n="xs";return e<768?n="xs":e>=768&&e<992?n="sm":e>=992&&e<1200?n="md":e>=1200&&e<1400?n="lg":e>=1400&&e<1880?n="xl":n="xxl",n};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function kb(t,e){Ae(function(){window.addEventListener(t,e)}),Ft(function(){window.removeEventListener(t,e)})}function SF(t,e){kb("resize",t);var n=null;Ae(function(){!window.ResizeObserver||!e||(n=new window.ResizeObserver(t),n.observe(e))}),Ft(function(){var a;(a=n)===null||a===void 0||a.disconnect()})}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function gd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ku(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function Ab(){var t=G(fd(ar?0:window.innerWidth)),e=function(){t.value=fd(ar?0:window.innerWidth)};return kb("resize",e),t}function xF(t,e){var n=e.justify,a=e.align;return[t,N(N({},"".concat(t,"--").concat(n),n),"".concat(t,"--align-").concat(a),a)]}function PF(t,e){var n={},a=function(i){return Object.assign(n,{marginLeft:"".concat(i/-2,"px"),marginRight:"".concat(i/-2,"px")})},r=function(i){return Object.assign(n,{rowGap:"".concat(i,"px")})},l={isNumber:function(i){ct(i)&&a(i)},isArray:function(i){ke(i)&&i.length&&(l.isNumber(i[0]),ct(i[1])&&r(i[1]),Ve(i[0])&&!Xt(i[0][e])&&a(i[0][e]),Ve(i[1])&&!Xt(i[1][e])&&r(i[1][e]))},isObject:function(i){Ve(i)&&i[e]&&(ke(i)&&i.length?(a(i[e][0]),r(i[e][1])):a(i[e]))}};return Object.keys(l).forEach(function(o){l[o](t)}),n}function EF(t){return ct(t)?"".concat(t," ").concat(t," 0"):/^\d+(\.\d+)?(px|r?em|%)$/.test(t)?"0 0 ".concat(t):t}function TF(t,e){var n={},a=function(o){return Object.assign(n,{paddingLeft:"".concat(o/2,"px"),paddingRight:"".concat(o/2,"px")})},r={isNumber:function(o){ct(o)&&a(o)},isArray:function(o){ke(o)&&o.length&&(ct(o[0])&&a(o[0]),Ve(o[0])&&o[0][e]&&a(o[0][e]))},isObject:function(o){Ve(o)&&o[e]&&a(o[e])}};return Object.keys(r).forEach(function(l){r[l](t)}),n}function DF(t,e){var n=e.span,a=e.order,r=e.offset,l=e.push,o=e.pull,i=["xs","sm","md","lg","xl","xxl"],u=i.reduce(function(c,v){var s=e[v],d={};return ct(s)?d.span=s:Ve(s)&&(d=s||{}),ku(ku({},c),{},N(N(N(N(N({},"".concat(t,"-").concat(v,"-").concat(d.span),!Xt(d.span)),"".concat(t,"-").concat(v,"-order-").concat(d.order),parseInt(d.order,10)>=0),"".concat(t,"-").concat(v,"-offset-").concat(d.offset),parseInt(d.offset,10)>=0),"".concat(t,"-").concat(v,"-push-").concat(d.push),parseInt(d.push,10)>=0),"".concat(t,"-").concat(v,"-pull-").concat(d.pull),parseInt(d.pull,10)>=0))},{});return ku(N(N(N(N(N(N({},"".concat(t),!0),"".concat(t,"-").concat(n),!Xt(n)),"".concat(t,"-order-").concat(a),a),"".concat(t,"-offset-").concat(r),r),"".concat(t,"-push-").concat(l),l),"".concat(t,"-pull-").concat(o),o),u)}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function hd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function IF(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function jF(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var $F=ne({name:"TRow",props:IF({},_F),setup:function(e){var n=_e(e),a=n.gutter,r=xe();wt("rowContext",jt({gutter:a}));var l=Ab(),o=ee("row"),i=B(function(){return xF(o.value,e)}),u=B(function(){return PF(e.gutter,l.value)});return function(){var c,v=e.tag;return g(v,{class:i.value,style:u.value},jF(c=r("default"))?c:{default:function(){return[c]}})}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var FF={flex:{type:[String,Number]},lg:{type:[Number,Object]},md:{type:[Number,Object]},offset:{type:Number,default:0},order:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},sm:{type:[Number,Object]},span:{type:Number},tag:{type:String,default:"div"},xl:{type:[Number,Object]},xs:{type:[Number,Object]},xxl:{type:[Number,Object]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function md(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function kF(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?md(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):md(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function AF(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var RF=ne({name:"TCol",inject:["rowContext"],props:kF({},FF),setup:function(e){var n=ee("col"),a=xe(),r=vt("rowContext",Object.create(null)),l=Ab(),o=B(function(){return DF(n.value,e)}),i=B(function(){var u={},c=e.flex;if(c&&(u.flex=EF(c)),r){var v=r.gutter;Object.assign(u,TF(v,l.value))}return u});return function(){var u,c=e.tag;return g(c,{class:o.value,style:i.value},AF(u=a("default"))?u:{default:function(){return[u]}})}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var j9=ye($F),$9=ye(RF);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var MF=ne({name:"TLayout",setup:function(){var e=G(!1),n=xe(),a=ee("layout"),r=B(function(){return[a.value,N({},"".concat(a.value,"--with-sider"),e.value)]});return wt("layout",{hasSide:e}),function(){return g("section",{class:r.value},[n("default")])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var NF={height:{type:String,default:""}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var LF=ne({name:"THeader",props:NF,setup:function(e){var n=ee("layout__header"),a=xe();return function(){return g("header",{class:n.value,style:e.height?{height:e.height}:{}},[a("default")])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var BF={height:{type:String,default:""}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var VF=ne({name:"TFooter",props:BF,setup:function(e){var n=ee("layout__footer"),a=xe();return function(){return g("footer",{class:n.value,style:e.height?{height:e.height}:{}},[a("default")])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var HF={width:{type:String,default:""}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var KF=ne({name:"TAside",props:HF,setup:function(e){var n=vt("layout",Object.create(null)),a=n.hasSide,r=ee("layout__sider"),l=xe();if(a)return Ae(function(){a.value=!0}),ba(function(){a.value=!1}),function(){var o=e.width?{width:e.width}:{};return g("aside",{class:r.value,style:o},[l("default")])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var zF=ne({name:"TContent",setup:function(){var e=ee("layout__content"),n=xe();return function(){return g("main",{class:e.value},[n("default")])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var F9=ye(KF),k9=ye(MF),A9=ye(LF),R9=ye(VF),M9=ye(zF);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var WF={align:{type:String,default:"center",validator:function(e){return e?["left","right","center"].includes(e):!0}},content:{type:[String,Function]},dashed:Boolean,default:{type:[String,Function]},layout:{type:String,default:"horizontal",validator:function(e){return e?["horizontal","vertical"].includes(e):!0}},theme:{type:String,validator:function(e){return e?["horizontal","vertical"].includes(e):!0}}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function pd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function UF(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var YF=ne({name:"TDivider",props:UF({},WF),setup:function(e){var n=ee("divider"),a=_t();return function(){var r=e.layout,l=e.dashed,o=e.align,i=a("default","content"),u=["".concat(n.value),["".concat(n.value,"--").concat(r)],N(N(N({},"".concat(n.value,"--dashed"),!!l),"".concat(n.value,"--with-text"),!!i),"".concat(n.value,"--with-text-").concat(o),!!i)];return g("div",{class:u},[i&&g("span",{class:"".concat(n.value,"__inner-text")},[i])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var bd=ye(YF);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var GF={align:{type:String,validator:function(e){return e?["start","end","center","baseline"].includes(e):!0}},breakLine:Boolean,direction:{type:String,default:"horizontal",validator:function(e){return e?["vertical","horizontal"].includes(e):!0}},separator:{type:[String,Function]},size:{type:[String,Number,Array],default:"medium"}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function dl(){var t=It();return function(e,n){var a,r;n||(n=t.slots);var l=((a=n)===null||a===void 0||(r=a.default)===null||r===void 0?void 0:r.call(a))||[],o=[],i=function u(c){if(ke(c))return c.forEach(function(v){if(v.children&&ke(v.children)){if(v.type!==Ct)return;u(v.children)}else o.push(v)}),o};return i(l).filter(function(u){var c;return(c=u.type.name)===null||c===void 0?void 0:c.endsWith(e)})}}function qF(){var t=It();return function(){var e,n=t.slots,a=(n==null||(e=n.default)===null||e===void 0?void 0:e.call(n))||[];return a.filter(function(r){return qe(r.type)==="symbol"&&!r.children?!1:r.type!==Op}).map(function(r){return r.children&&ke(r.children)&&r.type===Ct?r.children:r}).flat()}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function yd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Cd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var wd={small:"8px",medium:"16px",large:"24px"},XF=Xw(),JF=ne({name:"TSpace",props:Cd(Cd({},GF),{},{forceFlexGapPolyfill:Boolean}),setup:function(e){var n=ee("space"),a=xe(),r=qF(),l=B(function(){return e.forceFlexGapPolyfill||XF}),o=B(function(){var u="";ke(e.size)?u=e.size.map(function(p){return ct(p)?"".concat(p,"px"):Be(p)&&wd[p]||p}).join(" "):Be(e.size)?u=wd[e.size]||e.size:ct(e.size)&&(u="".concat(e.size,"px"));var c={};if(l.value){var v=u.split(" "),s=be(v,2),d=s[0],f=s[1];c["--td-space-column-gap"]=d,c["--td-space-row-gap"]=f||d}else c.gap=u;return c});function i(){var u=r(),c=a("separator");return u.map(function(v,s){var d=s+1!==u.length&&c;return g(Ct,null,[g("div",{class:"".concat(n.value,"-item")},[v]),d&&g("div",{class:"".concat(n.value,"-item-separator")},[c])])})}return function(){var u=["".concat(n.value),N(N(N(N({},"".concat(n.value,"-align-").concat(e.align),e.align),"".concat(n.value,"-").concat(e.direction),e.direction),"".concat(n.value,"--break-line"),e.breakLine),"".concat(n.value,"--polyfill"),l.value)];return g("div",{class:u,style:o.value},[i()])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Od=ye(JF);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ZF(t){return t==null}var eo=ZF;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var $n=function(t){return t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t}($n||{});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Rb={bordered:Boolean,colon:Boolean,column:{type:Number,default:2},contentStyle:{type:Object},itemLayout:{type:String,default:"horizontal",validator:function(e){return e?["horizontal","vertical"].includes(e):!0}},items:{type:Array},labelStyle:{type:Object},layout:{type:String,default:"horizontal",validator:function(e){return e?["horizontal","vertical"].includes(e):!0}},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},title:{type:[String,Function]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Mb=Symbol("TDescriptions");/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Nl=function(t){return t.props="props",t.slots="slots",t}(Nl||{});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function _d(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Be(t)?t:pe(t)?t(He,e):pe(t.render)?t.render(He,e):t}function Sd(t,e,n){var a,r=(a=t.props)===null||a===void 0?void 0:a[e];if(r)return r;var l=t.children,o=(l==null?void 0:l[e])||(l==null?void 0:l[n]);return o?o==null?void 0:o():null}function Ci(t,e){return t===Nl.props}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var QF=ne({name:"TDescriptionsRow",props:{row:Array,itemType:String},setup:function(e){var n=vt(Mb),a=ee("descriptions"),r=function(s){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$n.HORIZONTAL,f=["".concat(a.value,"__label")],p=null,h=null;Ci(e.itemType)?(p=s.label,h=s.span):(p=Sd(s,"label"),h=s.props.span);var m=d===$n.HORIZONTAL?1:h;return g("td",ve({colspan:m,class:f},{style:n.labelStyle}),[p,n.colon&&":"])},l=function(s){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$n.HORIZONTAL,f=["".concat(a.value,"__content")],p=null,h=null;Ci(e.itemType)?(p=s.content,h=s.span):(p=Sd(s,"content","default"),h=s.props.span);var m=h>1&&d===$n.HORIZONTAL?h*2-1:h;return g("td",ve({colspan:m,class:f},{style:n.contentStyle}),[p])},o=function(){return g("tr",null,[e.row.map(function(s){return g(Ct,null,[r(s),l(s)])})])},i=function(){return g(Ct,null,[g("tr",null,[e.row.map(function(s){return r(s,$n.VERTICAL)})]),g("tr",null,[e.row.map(function(s){return l(s,$n.VERTICAL)})])])},u=function(){return g(Ct,null,[e.row.map(function(s){return g("tr",null,[r(s),l(s)])})])},c=function(){return g(Ct,null,[e.row.map(function(s){return g(Ct,null,[g("tr",null,[r(s)]),g("tr",null,[l(s)])])})])};return function(){return g(Ct,null,[n.layout===$n.HORIZONTAL?n.itemLayout===$n.HORIZONTAL?o():i():n.itemLayout===$n.HORIZONTAL?u():c()])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var ek=ne({name:"TDescriptions",props:Rb,setup:function(e){var n=ee("descriptions"),a=ft(),r=a.SIZE,l=dl(),o=xe(),i=G(Nl.props),u=function(){var d=e.column,f=e.layout,p=[];if(ke(e.items))p=e.items.map(function(C){return{label:_d(C.label),content:_d(C.content),span:C.span||1}}),i.value=Nl.props;else{var h=l("TDescriptionsItem");h.length!==0&&(p=h,i.value=Nl.slots)}if(f===$n.VERTICAL)return[p];var m=[],b=d,y=[];return p.forEach(function(C,O){var _=1;if(Ci(i.value))_=eo(C.span)?_:C.span;else{var $;C.props=C.props||{},_=eo(($=C.props)===null||$===void 0?void 0:$.span)?_:C.props.span,C.props.span=_}b>=_?(m.push(C),b-=_):(y.push(m),m=[C],b=d-_),O===p.length-1&&(Ci(i.value)?C.span+=b:C.props.span+=b,y.push(m))}),y};wt(Mb,e);var c=function(){var d=["".concat(n.value,"__body"),r.value[e.size],N({},"".concat(n.value,"__body--border"),e.bordered)];return g("table",{class:d},[g("tbody",null,[u().map(function(f){return g(QF,{"item-type":i.value,row:f},null)})])])},v=function(){var d=o("title");return d?g("div",{class:"".concat(n.value,"__header")},[d]):""};return function(){return g("div",{class:n.value},[v(),c()])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var tk=ne({name:"TDescriptionsItem",props:Rb});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var N9=ye(ek),L9=ye(tk);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function xd(t,e,n,a,r,l,o){try{var i=t[l](o),u=i.value}catch(c){n(c);return}i.done?e(u):Promise.resolve(u).then(a,r)}function an(t){return function(){var e=this,n=arguments;return new Promise(function(a,r){var l=t.apply(e,n);function o(u){xd(l,a,r,o,i,"next",u)}function i(u){xd(l,a,r,o,i,"throw",u)}o(void 0)})}}var js={exports:{}},Nb={exports:{}};(function(t){function e(n){"@babel/helpers - typeof";return t.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(Nb);(function(t){var e=Nb.exports.default;function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var a,r={},l=Object.prototype,o=l.hasOwnProperty,i=Object.defineProperty||function(k,M,V){k[M]=V.value},u=typeof Symbol=="function"?Symbol:{},c=u.iterator||"@@iterator",v=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function d(k,M,V){return Object.defineProperty(k,M,{value:V,enumerable:!0,configurable:!0,writable:!0}),k[M]}try{d({},"")}catch{d=function(V,W,U){return V[W]=U}}function f(k,M,V,W){var U=M&&M.prototype instanceof O?M:O,H=Object.create(U.prototype),L=new A(W||[]);return i(H,"_invoke",{value:T(k,V,L)}),H}function p(k,M,V){try{return{type:"normal",arg:k.call(M,V)}}catch(W){return{type:"throw",arg:W}}}r.wrap=f;var h="suspendedStart",m="suspendedYield",b="executing",y="completed",C={};function O(){}function _(){}function $(){}var I={};d(I,c,function(){return this});var x=Object.getPrototypeOf,S=x&&x(x(R([])));S&&S!==l&&o.call(S,c)&&(I=S);var E=$.prototype=O.prototype=Object.create(I);function D(k){["next","throw","return"].forEach(function(M){d(k,M,function(V){return this._invoke(M,V)})})}function j(k,M){function V(U,H,L,z){var K=p(k[U],k,H);if(K.type!=="throw"){var Y=K.arg,q=Y.value;return q&&e(q)=="object"&&o.call(q,"__await")?M.resolve(q.__await).then(function(X){V("next",X,L,z)},function(X){V("throw",X,L,z)}):M.resolve(q).then(function(X){Y.value=X,L(Y)},function(X){return V("throw",X,L,z)})}z(K.arg)}var W;i(this,"_invoke",{value:function(H,L){function z(){return new M(function(K,Y){V(H,L,K,Y)})}return W=W?W.then(z,z):z()}})}function T(k,M,V){var W=h;return function(U,H){if(W===b)throw new Error("Generator is already running");if(W===y){if(U==="throw")throw H;return{value:a,done:!0}}for(V.method=U,V.arg=H;;){var L=V.delegate;if(L){var z=F(L,V);if(z){if(z===C)continue;return z}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(W===h)throw W=y,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);W=b;var K=p(k,M,V);if(K.type==="normal"){if(W=V.done?y:m,K.arg===C)continue;return{value:K.arg,done:V.done}}K.type==="throw"&&(W=y,V.method="throw",V.arg=K.arg)}}}function F(k,M){var V=M.method,W=k.iterator[V];if(W===a)return M.delegate=null,V==="throw"&&k.iterator.return&&(M.method="return",M.arg=a,F(k,M),M.method==="throw")||V!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+V+"' method")),C;var U=p(W,k.iterator,M.arg);if(U.type==="throw")return M.method="throw",M.arg=U.arg,M.delegate=null,C;var H=U.arg;return H?H.done?(M[k.resultName]=H.value,M.next=k.nextLoc,M.method!=="return"&&(M.method="next",M.arg=a),M.delegate=null,C):H:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,C)}function w(k){var M={tryLoc:k[0]};1 in k&&(M.catchLoc=k[1]),2 in k&&(M.finallyLoc=k[2],M.afterLoc=k[3]),this.tryEntries.push(M)}function P(k){var M=k.completion||{};M.type="normal",delete M.arg,k.completion=M}function A(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(w,this),this.reset(!0)}function R(k){if(k||k===""){var M=k[c];if(M)return M.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var V=-1,W=function U(){for(;++V<k.length;)if(o.call(k,V))return U.value=k[V],U.done=!1,U;return U.value=a,U.done=!0,U};return W.next=W}}throw new TypeError(e(k)+" is not iterable")}return _.prototype=$,i(E,"constructor",{value:$,configurable:!0}),i($,"constructor",{value:_,configurable:!0}),_.displayName=d($,s,"GeneratorFunction"),r.isGeneratorFunction=function(k){var M=typeof k=="function"&&k.constructor;return!!M&&(M===_||(M.displayName||M.name)==="GeneratorFunction")},r.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,$):(k.__proto__=$,d(k,s,"GeneratorFunction")),k.prototype=Object.create(E),k},r.awrap=function(k){return{__await:k}},D(j.prototype),d(j.prototype,v,function(){return this}),r.AsyncIterator=j,r.async=function(k,M,V,W,U){U===void 0&&(U=Promise);var H=new j(f(k,M,V,W),U);return r.isGeneratorFunction(M)?H:H.next().then(function(L){return L.done?L.value:H.next()})},D(E),d(E,s,"Generator"),d(E,c,function(){return this}),d(E,"toString",function(){return"[object Generator]"}),r.keys=function(k){var M=Object(k),V=[];for(var W in M)V.push(W);return V.reverse(),function U(){for(;V.length;){var H=V.pop();if(H in M)return U.value=H,U.done=!1,U}return U.done=!0,U}},r.values=R,A.prototype={constructor:A,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(P),!M)for(var V in this)V.charAt(0)==="t"&&o.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=a)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var V=this;function W(Y,q){return L.type="throw",L.arg=M,V.next=Y,q&&(V.method="next",V.arg=a),!!q}for(var U=this.tryEntries.length-1;U>=0;--U){var H=this.tryEntries[U],L=H.completion;if(H.tryLoc==="root")return W("end");if(H.tryLoc<=this.prev){var z=o.call(H,"catchLoc"),K=o.call(H,"finallyLoc");if(z&&K){if(this.prev<H.catchLoc)return W(H.catchLoc,!0);if(this.prev<H.finallyLoc)return W(H.finallyLoc)}else if(z){if(this.prev<H.catchLoc)return W(H.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<H.finallyLoc)return W(H.finallyLoc)}}}},abrupt:function(M,V){for(var W=this.tryEntries.length-1;W>=0;--W){var U=this.tryEntries[W];if(U.tryLoc<=this.prev&&o.call(U,"finallyLoc")&&this.prev<U.finallyLoc){var H=U;break}}H&&(M==="break"||M==="continue")&&H.tryLoc<=V&&V<=H.finallyLoc&&(H=null);var L=H?H.completion:{};return L.type=M,L.arg=V,H?(this.method="next",this.next=H.finallyLoc,C):this.complete(L)},complete:function(M,V){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&V&&(this.next=V),C},finish:function(M){for(var V=this.tryEntries.length-1;V>=0;--V){var W=this.tryEntries[V];if(W.finallyLoc===M)return this.complete(W.completion,W.afterLoc),P(W),C}},catch:function(M){for(var V=this.tryEntries.length-1;V>=0;--V){var W=this.tryEntries[V];if(W.tryLoc===M){var U=W.completion;if(U.type==="throw"){var H=U.arg;P(W)}return H}}throw new Error("illegal catch attempt")},delegateYield:function(M,V,W){return this.delegate={iterator:R(M),resultName:V,nextLoc:W},this.method==="next"&&(this.arg=a),C}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(js);js.exports;var li=js.exports(),dt=li;try{regeneratorRuntime=li}catch{(typeof globalThis>"u"?"undefined":qe(globalThis))==="object"?globalThis.regeneratorRuntime=li:Function("r","regeneratorRuntime = r")(li)}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var nk={container:{type:[String,Function],default:function(){return function(){return window}}},content:{type:[String,Function]},default:{type:[String,Function]},offsetBottom:{type:Number,default:0},offsetTop:{type:Number,default:0},zIndex:{type:Number},onFixedChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var ak=ne({name:"TAffix",props:nk,emits:["fixedChange"],setup:function(e,n){var a,r=ee("affix"),l=xe(),o=G(null),i=G(null),u=G((a=document)===null||a===void 0?void 0:a.createElement("div")),c=G(!1),v=G(!1),s=G(),d=G(),f=0,p=function(){c.value||(f=window.requestAnimationFrame(function(){var y,C;f=0;var O=(y=(C=o.value)===null||C===void 0?void 0:C.getBoundingClientRect())!==null&&y!==void 0?y:{top:0,width:0,height:0},_=O.top,$=O.width,I=O.height,x=0;s.value instanceof HTMLElement&&(x=s.value.getBoundingClientRect().top);var S,E=_-x,D=s.value[s.value instanceof Window?"innerHeight":"clientHeight"]-I,j=x+D-e.offsetBottom;if(!Xt(e.offsetTop)&&E<=e.offsetTop?S=x+e.offsetTop:!Xt(e.offsetBottom)&&_>=j?S=j:S=!1,i.value){var T=S!==!1,F=o.value.contains(u.value);T?(i.value.className=r.value,d.value={top:"".concat(S,"px"),width:"".concat($,"px"),height:"".concat(I,"px"),zIndex:e.zIndex},F||(u.value.style.width="".concat($,"px"),u.value.style.height="".concat(I,"px"),o.value.appendChild(u.value))):(i.value.removeAttribute("class"),d.value=void 0,F&&u.value.remove()),n.emit("fixedChange",T,{top:Number(S)}),pe(e.onFixedChange)&&e.onFixedChange(T,{top:Number(S)})}c.value=!1}),c.value=!0)},h=function(){var b=an(dt.mark(function y(){return dt.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,Je();case 2:if(!v.value){O.next=4;break}return O.abrupt("return");case 4:s.value=DI(e.container),ot(s.value,"scroll",p),ot(window,"resize",p),v.value=!0;case 8:case"end":return O.stop()}},y)}));return function(){return b.apply(this,arguments)}}(),m=function(){!s.value||!v.value||(Xe(s.value,"scroll",p),Xe(window,"resize",p),f&&window.cancelAnimationFrame(f),v.value=!1)};return le(function(){return e.offsetTop},function(){p()}),le(function(){return e.offsetBottom},function(){p()}),le(function(){return e.zIndex},function(){p()}),Ae(h),rw(h),lw(m),Ft(m),{affixWrapRef:o,affixRef:i,bindScroll:h,unbindScroll:m,handleScroll:p,scrollContainer:s,renderTNodeJSX:l,affixStyle:d}},render:function(){return g("div",{ref:"affixWrapRef"},[g("div",{ref:"affixRef",style:this.affixStyle},[this.renderTNodeJSX("default")])])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var To=ye(ak);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var rk=["info","success","warning","error","question","loading"],yn="32px",Lb={top:{top:yn,left:"50%",transform:"translateX(-50%)"},center:{left:"50%",top:"50%",transform:"translateX(-50%) translateY(-50%)"},left:{left:yn,top:"50%",transform:"translateY(-50%)"},bottom:{bottom:yn,left:"50%",transform:"translateX(-50%)"},right:{right:yn,top:"50%",transform:"translateY(-50%)",display:"flex",flexDirection:"column",alignItems:"flex-end"},"top-left":{left:yn,top:yn},"top-right":{right:yn,top:yn,display:"flex",flexDirection:"column",alignItems:"flex-end"},"bottom-right":{right:yn,bottom:yn,display:"flex",flexDirection:"column",alignItems:"flex-end"},"bottom-left":{left:yn,bottom:yn}},Bb=Object.keys(Lb);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var lk={closeBtn:{type:[String,Boolean,Function],default:void 0},content:{type:[String,Function]},duration:{type:Number,default:3e3},icon:{type:[Boolean,Function],default:!0},theme:{type:String,default:"info",validator:function(e){return e?["info","success","warning","error","question","loading"].includes(e):!0}},onClose:Function,onCloseBtnClick:Function,onDurationEnd:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function at(t){var e=Ke("icon"),n=e.globalConfig,a={};return Object.keys(t).forEach(function(r){var l;a[r]=((l=n.value)===null||l===void 0?void 0:l[r])||t[r]}),a}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Vb={duration:200,easing:"linear"};function ok(t,e){if(t){var n=(t==null?void 0:t.offsetWidth)||0,a=(t==null?void 0:t.offsetHeight)||0,r=uk(e,n,a);if(r){var l=r[r.length-1];Hb(t,l),t.animate&&t.animate(r,Vb)}}}function ik(t,e,n){if(t){var a=(t==null?void 0:t.offsetHeight)||0,r=ck(e,a);if(!r)return n();var l=r[r.length-1];Hb(t,l);var o=t.animate&&t.animate(r,Vb);o?o.onfinish=function(){t.style.display="none",n()}:(t.style.display="none",n())}}function Hb(t,e){for(var n=Object.keys(e),a=0;a<n.length;a+=1){var r=n[a];t.style[r]=e[r]}}function uk(t,e,n){if(!Bb.includes(t))return null;if(["top-left","left","bottom-left"].includes(t))return[{opacity:0,marginLeft:"-".concat(e,"px")},{opacity:1,marginLeft:"0"}];if(["top-right","right","bottom-right"].includes(t))return[{opacity:0,marginRight:"-".concat(e,"px")},{opacity:1,marginRight:"0"}];if(["top","center"].includes(t))return[{opacity:0,marginTop:"-".concat(n,"px")},{opacity:1,marginTop:"0"}];if(["bottom"].includes(t))return[{opacity:0,transform:"translate3d(0, ".concat(n,"px, 0)")},{opacity:1,transform:"translate3d(0, 0, 0)"}]}function ck(t,e){if(!Bb.includes(t))return null;if(["bottom-left","bottom","bottom-right"].includes(t)){var n="".concat(e,"px");return[{opacity:1,marginTop:"0px"},{opacity:0,marginTop:n}]}var a="-".concat(e,"px");return[{opacity:1,marginTop:"0px"},{opacity:0,marginTop:a}]}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Pd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Ed(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Pd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var sk=ne({name:"TMessage",props:Ed(Ed({},lk),{},{placement:String}),setup:function(e,n){var a=n.slots,r=n.expose,l=ee("message"),o=at({InfoCircleFilledIcon:io,CheckCircleFilledIcon:$a,ErrorCircleFilledIcon:ma,HelpCircleFilledIcon:mp,CloseIcon:pa}),i=o.InfoCircleFilledIcon,u=o.CheckCircleFilledIcon,c=o.ErrorCircleFilledIcon,v=o.HelpCircleFilledIcon,s=o.CloseIcon,d=ee(),f=xe(),p=_t(),h=G(null),m=G(null),b=B(function(){var I={};return rk.forEach(function(x){return I["".concat(d.value,"-is-").concat(x)]=e.theme===x}),[l.value,I,N({},"".concat(d.value,"-is-closable"),e.closeBtn||a.closeBtn)]}),y=function(x){var S,E;(S=e.onClose)===null||S===void 0||S.call(e,{trigger:"close-click",e:x}),(E=e.onCloseBtnClick)===null||E===void 0||E.call(e,{e:x})},C=function(){e.duration&&clearTimeout(m.value)},O=function(){e.duration&&(m.value=Number(setTimeout(function(){C();var x=h.value;ik(x,e.placement,function(){var S,E;(S=e.onClose)===null||S===void 0||S.call(e,{trigger:"duration-end"}),(E=e.onDurationEnd)===null||E===void 0||E.call(e)})},e.duration)))},_=function(){var x=g(s,null,null);return g("span",{class:"".concat(l.value,"__close"),onClick:y},[f("closeBtn",x)])},$=function(){if(e.icon!==!1){if(pe(e.icon))return e.icon(He);if(a.icon)return a.icon(null);var x={info:i,success:u,warning:c,error:c,question:v,loading:bn}[e.theme];return g(x,null,null)}};return is(function(){e.duration&&O()}),Ae(function(){var I=h.value;ok(I,e.placement)}),r({close:y}),function(){return g("div",{ref:h,class:b.value,onMouseenter:C,onMouseleave:O},[$(),p("content","default"),_()])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Td(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function pr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Td(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Tc=6e3,vk=function(){var t=0;return function(){return t+=1,t}}(),dk=ne({name:"TMessageList",props:{zIndex:{type:Number,default:0},placement:{type:String,default:""}},setup:function(e,n){var a=n.expose,r=ee("message__list"),l=G([]),o=G([]),i=B(function(){return pr(pr({},Lb[e.placement]),{},{zIndex:e.zIndex!==Tc?e.zIndex:Tc})}),u=function(m){var b=pr(pr({},m),{},{key:vk()});return l.value.push(b),b.key},c=function(m){l.value.splice(m,1)},v=function(){l.value=[]},s=function(m){if(m)return isNaN(Number(m))?m:"".concat(m,"px")},d=function(m){return m.offset&&{position:"relative",left:s(m.offset[0]),top:s(m.offset[1])}},f=function(m,b){return pr(pr({},b),{},{onCloseBtnClick:function(C){return b.onCloseBtnClick&&b.onCloseBtnClick(C),c(m)},onDurationEnd:function(){return b.onDurationEnd&&b.onDurationEnd(),c(m)}})},p=function(m){m&&o.value.push(m)};return a({add:u,removeAll:v,list:l,messageList:o}),function(){if(l.value.length)return g("div",{class:r.value,style:i.value},[l.value.map(function(h,m){return g(sk,ve({key:h.key,style:d(h),ref:p},f(m,h)),null)})])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Dd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Dc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Za=new Map;function fk(t){var e=Dc({duration:3e3,attach:"body",zIndex:Tc,placement:"top"},t);return e.content=t.content,e}var gk=function(e){var n=fk(e),a=n.attach,r=n.placement,l=cl(a);Za.get(l)||Za.set(l,{});var o=Za.get(l)[r],i;if(o)i=o.add(n);else{var u=document.createElement("div"),c=Gi(dk,{zIndex:n.zIndex,placement:n.placement}).mount(u);i=c.add(n),Za.get(l)[r]=c,l.appendChild(u)}return new Promise(function(v){var s=Za.get(l)[r];Je(function(){var d=s.messageList;v(d==null?void 0:d.find(function(f){var p;return((p=f.$)===null||p===void 0||(p=p.vnode)===null||p===void 0?void 0:p.key)===i}))})})},Sa=function(e,n,a){var r={theme:e};return Be(n)?r.content=n:Ve(n)&&!(n instanceof Array)&&(r=Dc(Dc({},r),n)),(a||a===0)&&(r.duration=a),gk(r)},wi={info:function(e,n){return Sa("info",e,n)},success:function(e,n){return Sa("success",e,n)},warning:function(e,n){return Sa("warning",e,n)},error:function(e,n){return Sa("error",e,n)},question:function(e,n){return Sa("question",e,n)},loading:function(e,n){return Sa("loading",e,n)},close:function(e){e.then(function(n){return n==null?void 0:n.close()})},closeAll:function(){Za instanceof Map&&Za.forEach(function(e){Object.keys(e).forEach(function(n){var a=e[n];a.list=[]})})}},Kb=Sa;Kb.install=function(t){t.config.globalProperties.$message=Sa,Object.keys(wi).forEach(function(e){t.config.globalProperties.$message[e]=wi[e]})};Object.keys(wi).forEach(function(t){Kb[t]=wi[t]});var rn="top",xn="bottom",Pn="right",ln="left",$s="auto",mo=[rn,xn,Pn,ln],Vr="start",to="end",hk="clippingParents",zb="viewport",_l="popper",mk="reference",Id=mo.reduce(function(t,e){return t.concat([e+"-"+Vr,e+"-"+to])},[]),Wb=[].concat(mo,[$s]).reduce(function(t,e){return t.concat([e,e+"-"+Vr,e+"-"+to])},[]),pk="beforeRead",bk="read",yk="afterRead",Ck="beforeMain",wk="main",Ok="afterMain",_k="beforeWrite",Sk="write",xk="afterWrite",Pk=[pk,bk,yk,Ck,wk,Ok,_k,Sk,xk];function Jn(t){return t?(t.nodeName||"").toLowerCase():null}function mn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function rr(t){var e=mn(t).Element;return t instanceof e||t instanceof Element}function Sn(t){var e=mn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Fs(t){if(typeof ShadowRoot>"u")return!1;var e=mn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ek(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var a=e.styles[n]||{},r=e.attributes[n]||{},l=e.elements[n];!Sn(l)||!Jn(l)||(Object.assign(l.style,a),Object.keys(r).forEach(function(o){var i=r[o];i===!1?l.removeAttribute(o):l.setAttribute(o,i===!0?"":i)}))})}function Tk(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(a){var r=e.elements[a],l=e.attributes[a]||{},o=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:n[a]),i=o.reduce(function(u,c){return u[c]="",u},{});!Sn(r)||!Jn(r)||(Object.assign(r.style,i),Object.keys(l).forEach(function(u){r.removeAttribute(u)}))})}}const Dk={name:"applyStyles",enabled:!0,phase:"write",fn:Ek,effect:Tk,requires:["computeStyles"]};function Gn(t){return t.split("-")[0]}var Qa=Math.max,Oi=Math.min,Hr=Math.round;function Ic(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ub(){return!/^((?!chrome|android).)*safari/i.test(Ic())}function Kr(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var a=t.getBoundingClientRect(),r=1,l=1;e&&Sn(t)&&(r=t.offsetWidth>0&&Hr(a.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Hr(a.height)/t.offsetHeight||1);var o=rr(t)?mn(t):window,i=o.visualViewport,u=!Ub()&&n,c=(a.left+(u&&i?i.offsetLeft:0))/r,v=(a.top+(u&&i?i.offsetTop:0))/l,s=a.width/r,d=a.height/l;return{width:s,height:d,top:v,right:c+s,bottom:v+d,left:c,x:c,y:v}}function ks(t){var e=Kr(t),n=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:a}}function Yb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Fs(n)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function fa(t){return mn(t).getComputedStyle(t)}function Ik(t){return["table","td","th"].indexOf(Jn(t))>=0}function Aa(t){return((rr(t)?t.ownerDocument:t.document)||window.document).documentElement}function fu(t){return Jn(t)==="html"?t:t.assignedSlot||t.parentNode||(Fs(t)?t.host:null)||Aa(t)}function jd(t){return!Sn(t)||fa(t).position==="fixed"?null:t.offsetParent}function jk(t){var e=/firefox/i.test(Ic()),n=/Trident/i.test(Ic());if(n&&Sn(t)){var a=fa(t);if(a.position==="fixed")return null}var r=fu(t);for(Fs(r)&&(r=r.host);Sn(r)&&["html","body"].indexOf(Jn(r))<0;){var l=fa(r);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||e&&l.willChange==="filter"||e&&l.filter&&l.filter!=="none")return r;r=r.parentNode}return null}function po(t){for(var e=mn(t),n=jd(t);n&&Ik(n)&&fa(n).position==="static";)n=jd(n);return n&&(Jn(n)==="html"||Jn(n)==="body"&&fa(n).position==="static")?e:n||jk(t)||e}function As(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ll(t,e,n){return Qa(t,Oi(e,n))}function $k(t,e,n){var a=Ll(t,e,n);return a>n?n:a}function Gb(){return{top:0,right:0,bottom:0,left:0}}function qb(t){return Object.assign({},Gb(),t)}function Xb(t,e){return e.reduce(function(n,a){return n[a]=t,n},{})}var Fk=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,qb(typeof e!="number"?e:Xb(e,mo))};function kk(t){var e,n=t.state,a=t.name,r=t.options,l=n.elements.arrow,o=n.modifiersData.popperOffsets,i=Gn(n.placement),u=As(i),c=[ln,Pn].indexOf(i)>=0,v=c?"height":"width";if(!(!l||!o)){var s=Fk(r.padding,n),d=ks(l),f=u==="y"?rn:ln,p=u==="y"?xn:Pn,h=n.rects.reference[v]+n.rects.reference[u]-o[u]-n.rects.popper[v],m=o[u]-n.rects.reference[u],b=po(l),y=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,C=h/2-m/2,O=s[f],_=y-d[v]-s[p],$=y/2-d[v]/2+C,I=Ll(O,$,_),x=u;n.modifiersData[a]=(e={},e[x]=I,e.centerOffset=I-$,e)}}function Ak(t){var e=t.state,n=t.options,a=n.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Yb(e.elements.popper,r)&&(e.elements.arrow=r))}const Rk={name:"arrow",enabled:!0,phase:"main",fn:kk,effect:Ak,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zr(t){return t.split("-")[1]}var Mk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nk(t,e){var n=t.x,a=t.y,r=e.devicePixelRatio||1;return{x:Hr(n*r)/r||0,y:Hr(a*r)/r||0}}function $d(t){var e,n=t.popper,a=t.popperRect,r=t.placement,l=t.variation,o=t.offsets,i=t.position,u=t.gpuAcceleration,c=t.adaptive,v=t.roundOffsets,s=t.isFixed,d=o.x,f=d===void 0?0:d,p=o.y,h=p===void 0?0:p,m=typeof v=="function"?v({x:f,y:h}):{x:f,y:h};f=m.x,h=m.y;var b=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),C=ln,O=rn,_=window;if(c){var $=po(n),I="clientHeight",x="clientWidth";if($===mn(n)&&($=Aa(n),fa($).position!=="static"&&i==="absolute"&&(I="scrollHeight",x="scrollWidth")),$=$,r===rn||(r===ln||r===Pn)&&l===to){O=xn;var S=s&&$===_&&_.visualViewport?_.visualViewport.height:$[I];h-=S-a.height,h*=u?1:-1}if(r===ln||(r===rn||r===xn)&&l===to){C=Pn;var E=s&&$===_&&_.visualViewport?_.visualViewport.width:$[x];f-=E-a.width,f*=u?1:-1}}var D=Object.assign({position:i},c&&Mk),j=v===!0?Nk({x:f,y:h},mn(n)):{x:f,y:h};if(f=j.x,h=j.y,u){var T;return Object.assign({},D,(T={},T[O]=y?"0":"",T[C]=b?"0":"",T.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",T))}return Object.assign({},D,(e={},e[O]=y?h+"px":"",e[C]=b?f+"px":"",e.transform="",e))}function Lk(t){var e=t.state,n=t.options,a=n.gpuAcceleration,r=a===void 0?!0:a,l=n.adaptive,o=l===void 0?!0:l,i=n.roundOffsets,u=i===void 0?!0:i,c={placement:Gn(e.placement),variation:zr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,$d(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,$d(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Bk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lk,data:{}};var Do={passive:!0};function Vk(t){var e=t.state,n=t.instance,a=t.options,r=a.scroll,l=r===void 0?!0:r,o=a.resize,i=o===void 0?!0:o,u=mn(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&c.forEach(function(v){v.addEventListener("scroll",n.update,Do)}),i&&u.addEventListener("resize",n.update,Do),function(){l&&c.forEach(function(v){v.removeEventListener("scroll",n.update,Do)}),i&&u.removeEventListener("resize",n.update,Do)}}const Hk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vk,data:{}};var Kk={left:"right",right:"left",bottom:"top",top:"bottom"};function oi(t){return t.replace(/left|right|bottom|top/g,function(e){return Kk[e]})}var zk={start:"end",end:"start"};function Fd(t){return t.replace(/start|end/g,function(e){return zk[e]})}function Rs(t){var e=mn(t),n=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Ms(t){return Kr(Aa(t)).left+Rs(t).scrollLeft}function Wk(t,e){var n=mn(t),a=Aa(t),r=n.visualViewport,l=a.clientWidth,o=a.clientHeight,i=0,u=0;if(r){l=r.width,o=r.height;var c=Ub();(c||!c&&e==="fixed")&&(i=r.offsetLeft,u=r.offsetTop)}return{width:l,height:o,x:i+Ms(t),y:u}}function Uk(t){var e,n=Aa(t),a=Rs(t),r=(e=t.ownerDocument)==null?void 0:e.body,l=Qa(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Qa(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-a.scrollLeft+Ms(t),u=-a.scrollTop;return fa(r||n).direction==="rtl"&&(i+=Qa(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:o,x:i,y:u}}function Ns(t){var e=fa(t),n=e.overflow,a=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function Jb(t){return["html","body","#document"].indexOf(Jn(t))>=0?t.ownerDocument.body:Sn(t)&&Ns(t)?t:Jb(fu(t))}function Bl(t,e){var n;e===void 0&&(e=[]);var a=Jb(t),r=a===((n=t.ownerDocument)==null?void 0:n.body),l=mn(a),o=r?[l].concat(l.visualViewport||[],Ns(a)?a:[]):a,i=e.concat(o);return r?i:i.concat(Bl(fu(o)))}function jc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Yk(t,e){var n=Kr(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function kd(t,e,n){return e===zb?jc(Wk(t,n)):rr(e)?Yk(e,n):jc(Uk(Aa(t)))}function Gk(t){var e=Bl(fu(t)),n=["absolute","fixed"].indexOf(fa(t).position)>=0,a=n&&Sn(t)?po(t):t;return rr(a)?e.filter(function(r){return rr(r)&&Yb(r,a)&&Jn(r)!=="body"}):[]}function qk(t,e,n,a){var r=e==="clippingParents"?Gk(t):[].concat(e),l=[].concat(r,[n]),o=l[0],i=l.reduce(function(u,c){var v=kd(t,c,a);return u.top=Qa(v.top,u.top),u.right=Oi(v.right,u.right),u.bottom=Oi(v.bottom,u.bottom),u.left=Qa(v.left,u.left),u},kd(t,o,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Zb(t){var e=t.reference,n=t.element,a=t.placement,r=a?Gn(a):null,l=a?zr(a):null,o=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2,u;switch(r){case rn:u={x:o,y:e.y-n.height};break;case xn:u={x:o,y:e.y+e.height};break;case Pn:u={x:e.x+e.width,y:i};break;case ln:u={x:e.x-n.width,y:i};break;default:u={x:e.x,y:e.y}}var c=r?As(r):null;if(c!=null){var v=c==="y"?"height":"width";switch(l){case Vr:u[c]=u[c]-(e[v]/2-n[v]/2);break;case to:u[c]=u[c]+(e[v]/2-n[v]/2);break}}return u}function no(t,e){e===void 0&&(e={});var n=e,a=n.placement,r=a===void 0?t.placement:a,l=n.strategy,o=l===void 0?t.strategy:l,i=n.boundary,u=i===void 0?hk:i,c=n.rootBoundary,v=c===void 0?zb:c,s=n.elementContext,d=s===void 0?_l:s,f=n.altBoundary,p=f===void 0?!1:f,h=n.padding,m=h===void 0?0:h,b=qb(typeof m!="number"?m:Xb(m,mo)),y=d===_l?mk:_l,C=t.rects.popper,O=t.elements[p?y:d],_=qk(rr(O)?O:O.contextElement||Aa(t.elements.popper),u,v,o),$=Kr(t.elements.reference),I=Zb({reference:$,element:C,strategy:"absolute",placement:r}),x=jc(Object.assign({},C,I)),S=d===_l?x:$,E={top:_.top-S.top+b.top,bottom:S.bottom-_.bottom+b.bottom,left:_.left-S.left+b.left,right:S.right-_.right+b.right},D=t.modifiersData.offset;if(d===_l&&D){var j=D[r];Object.keys(E).forEach(function(T){var F=[Pn,xn].indexOf(T)>=0?1:-1,w=[rn,xn].indexOf(T)>=0?"y":"x";E[T]+=j[w]*F})}return E}function Xk(t,e){e===void 0&&(e={});var n=e,a=n.placement,r=n.boundary,l=n.rootBoundary,o=n.padding,i=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Wb:u,v=zr(a),s=v?i?Id:Id.filter(function(p){return zr(p)===v}):mo,d=s.filter(function(p){return c.indexOf(p)>=0});d.length===0&&(d=s);var f=d.reduce(function(p,h){return p[h]=no(t,{placement:h,boundary:r,rootBoundary:l,padding:o})[Gn(h)],p},{});return Object.keys(f).sort(function(p,h){return f[p]-f[h]})}function Jk(t){if(Gn(t)===$s)return[];var e=oi(t);return[Fd(t),e,Fd(e)]}function Zk(t){var e=t.state,n=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var r=n.mainAxis,l=r===void 0?!0:r,o=n.altAxis,i=o===void 0?!0:o,u=n.fallbackPlacements,c=n.padding,v=n.boundary,s=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=f===void 0?!0:f,h=n.allowedAutoPlacements,m=e.options.placement,b=Gn(m),y=b===m,C=u||(y||!p?[oi(m)]:Jk(m)),O=[m].concat(C).reduce(function(H,L){return H.concat(Gn(L)===$s?Xk(e,{placement:L,boundary:v,rootBoundary:s,padding:c,flipVariations:p,allowedAutoPlacements:h}):L)},[]),_=e.rects.reference,$=e.rects.popper,I=new Map,x=!0,S=O[0],E=0;E<O.length;E++){var D=O[E],j=Gn(D),T=zr(D)===Vr,F=[rn,xn].indexOf(j)>=0,w=F?"width":"height",P=no(e,{placement:D,boundary:v,rootBoundary:s,altBoundary:d,padding:c}),A=F?T?Pn:ln:T?xn:rn;_[w]>$[w]&&(A=oi(A));var R=oi(A),k=[];if(l&&k.push(P[j]<=0),i&&k.push(P[A]<=0,P[R]<=0),k.every(function(H){return H})){S=D,x=!1;break}I.set(D,k)}if(x)for(var M=p?3:1,V=function(L){var z=O.find(function(K){var Y=I.get(K);if(Y)return Y.slice(0,L).every(function(q){return q})});if(z)return S=z,"break"},W=M;W>0;W--){var U=V(W);if(U==="break")break}e.placement!==S&&(e.modifiersData[a]._skip=!0,e.placement=S,e.reset=!0)}}const Qk={name:"flip",enabled:!0,phase:"main",fn:Zk,requiresIfExists:["offset"],data:{_skip:!1}};function Ad(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Rd(t){return[rn,Pn,xn,ln].some(function(e){return t[e]>=0})}function eA(t){var e=t.state,n=t.name,a=e.rects.reference,r=e.rects.popper,l=e.modifiersData.preventOverflow,o=no(e,{elementContext:"reference"}),i=no(e,{altBoundary:!0}),u=Ad(o,a),c=Ad(i,r,l),v=Rd(u),s=Rd(c);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:v,hasPopperEscaped:s},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":s})}const tA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eA};function nA(t,e,n){var a=Gn(t),r=[ln,rn].indexOf(a)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=l[0],i=l[1];return o=o||0,i=(i||0)*r,[ln,Pn].indexOf(a)>=0?{x:i,y:o}:{x:o,y:i}}function aA(t){var e=t.state,n=t.options,a=t.name,r=n.offset,l=r===void 0?[0,0]:r,o=Wb.reduce(function(v,s){return v[s]=nA(s,e.rects,l),v},{}),i=o[e.placement],u=i.x,c=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[a]=o}const rA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aA};function lA(t){var e=t.state,n=t.name;e.modifiersData[n]=Zb({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const oA={name:"popperOffsets",enabled:!0,phase:"read",fn:lA,data:{}};function iA(t){return t==="x"?"y":"x"}function uA(t){var e=t.state,n=t.options,a=t.name,r=n.mainAxis,l=r===void 0?!0:r,o=n.altAxis,i=o===void 0?!1:o,u=n.boundary,c=n.rootBoundary,v=n.altBoundary,s=n.padding,d=n.tether,f=d===void 0?!0:d,p=n.tetherOffset,h=p===void 0?0:p,m=no(e,{boundary:u,rootBoundary:c,padding:s,altBoundary:v}),b=Gn(e.placement),y=zr(e.placement),C=!y,O=As(b),_=iA(O),$=e.modifiersData.popperOffsets,I=e.rects.reference,x=e.rects.popper,S=typeof h=="function"?h(Object.assign({},e.rects,{placement:e.placement})):h,E=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if($){if(l){var T,F=O==="y"?rn:ln,w=O==="y"?xn:Pn,P=O==="y"?"height":"width",A=$[O],R=A+m[F],k=A-m[w],M=f?-x[P]/2:0,V=y===Vr?I[P]:x[P],W=y===Vr?-x[P]:-I[P],U=e.elements.arrow,H=f&&U?ks(U):{width:0,height:0},L=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Gb(),z=L[F],K=L[w],Y=Ll(0,I[P],H[P]),q=C?I[P]/2-M-Y-z-E.mainAxis:V-Y-z-E.mainAxis,X=C?-I[P]/2+M+Y+K+E.mainAxis:W+Y+K+E.mainAxis,J=e.elements.arrow&&po(e.elements.arrow),Z=J?O==="y"?J.clientTop||0:J.clientLeft||0:0,oe=(T=D==null?void 0:D[O])!=null?T:0,se=A+q-oe-Z,me=A+X-oe,Te=Ll(f?Oi(R,se):R,A,f?Qa(k,me):k);$[O]=Te,j[O]=Te-A}if(i){var Ie,re=O==="x"?rn:ln,ue=O==="x"?xn:Pn,ie=$[_],Ce=_==="y"?"height":"width",Oe=ie+m[re],De=ie-m[ue],Re=[rn,ln].indexOf(b)!==-1,Ee=(Ie=D==null?void 0:D[_])!=null?Ie:0,ge=Re?Oe:ie-I[Ce]-x[Ce]-Ee+E.altAxis,Q=Re?ie+I[Ce]+x[Ce]-Ee-E.altAxis:De,te=f&&Re?$k(ge,ie,Q):Ll(f?ge:Oe,ie,f?Q:De);$[_]=te,j[_]=te-ie}e.modifiersData[a]=j}}const cA={name:"preventOverflow",enabled:!0,phase:"main",fn:uA,requiresIfExists:["offset"]};function sA(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vA(t){return t===mn(t)||!Sn(t)?Rs(t):sA(t)}function dA(t){var e=t.getBoundingClientRect(),n=Hr(e.width)/t.offsetWidth||1,a=Hr(e.height)/t.offsetHeight||1;return n!==1||a!==1}function fA(t,e,n){n===void 0&&(n=!1);var a=Sn(e),r=Sn(e)&&dA(e),l=Aa(e),o=Kr(t,r,n),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&((Jn(e)!=="body"||Ns(l))&&(i=vA(e)),Sn(e)?(u=Kr(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):l&&(u.x=Ms(l))),{x:o.left+i.scrollLeft-u.x,y:o.top+i.scrollTop-u.y,width:o.width,height:o.height}}function gA(t){var e=new Map,n=new Set,a=[];t.forEach(function(l){e.set(l.name,l)});function r(l){n.add(l.name);var o=[].concat(l.requires||[],l.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var u=e.get(i);u&&r(u)}}),a.push(l)}return t.forEach(function(l){n.has(l.name)||r(l)}),a}function hA(t){var e=gA(t);return Pk.reduce(function(n,a){return n.concat(e.filter(function(r){return r.phase===a}))},[])}function mA(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function pA(t){var e=t.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,n},{});return Object.keys(e).map(function(n){return e[n]})}var Md={placement:"bottom",modifiers:[],strategy:"absolute"};function Nd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function bA(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,a=n===void 0?[]:n,r=e.defaultOptions,l=r===void 0?Md:r;return function(i,u,c){c===void 0&&(c=l);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},Md,l),modifiersData:{},elements:{reference:i,popper:u},attributes:{},styles:{}},s=[],d=!1,f={state:v,setOptions:function(b){var y=typeof b=="function"?b(v.options):b;h(),v.options=Object.assign({},l,v.options,y),v.scrollParents={reference:rr(i)?Bl(i):i.contextElement?Bl(i.contextElement):[],popper:Bl(u)};var C=hA(pA([].concat(a,v.options.modifiers)));return v.orderedModifiers=C.filter(function(O){return O.enabled}),p(),f.update()},forceUpdate:function(){if(!d){var b=v.elements,y=b.reference,C=b.popper;if(Nd(y,C)){v.rects={reference:fA(y,po(C),v.options.strategy==="fixed"),popper:ks(C)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(E){return v.modifiersData[E.name]=Object.assign({},E.data)});for(var O=0;O<v.orderedModifiers.length;O++){if(v.reset===!0){v.reset=!1,O=-1;continue}var _=v.orderedModifiers[O],$=_.fn,I=_.options,x=I===void 0?{}:I,S=_.name;typeof $=="function"&&(v=$({state:v,options:x,name:S,instance:f})||v)}}}},update:mA(function(){return new Promise(function(m){f.forceUpdate(),m(v)})}),destroy:function(){h(),d=!0}};if(!Nd(i,u))return f;f.setOptions(c).then(function(m){!d&&c.onFirstUpdate&&c.onFirstUpdate(m)});function p(){v.orderedModifiers.forEach(function(m){var b=m.name,y=m.options,C=y===void 0?{}:y,O=m.effect;if(typeof O=="function"){var _=O({state:v,name:b,instance:f,options:C}),$=function(){};s.push(_||$)}})}function h(){s.forEach(function(m){return m()}),s=[]}return f}}var yA=[Hk,oA,Bk,Dk,rA,Qk,cA,Rk,tA],CA=bA({defaultModifiers:yA});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var wA=/\s/;function OA(t){for(var e=t.length;e--&&wA.test(t.charAt(e)););return e}var _A=OA,SA=_A,xA=/^\s+/;function PA(t){return t&&t.slice(0,SA(t)+1).replace(xA,"")}var EA=PA,TA=EA,Ld=Ve,DA=cu,Bd=0/0,IA=/^[-+]0x[0-9a-f]+$/i,jA=/^0b[01]+$/i,$A=/^0o[0-7]+$/i,FA=parseInt;function kA(t){if(typeof t=="number")return t;if(DA(t))return Bd;if(Ld(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ld(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=TA(t);var n=jA.test(t);return n||$A.test(t)?FA(t.slice(2),n?2:8):IA.test(t)?Bd:+t}var Qb=kA;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var AA=Nn,RA=function(){return AA.Date.now()},MA=RA,NA=Ve,Au=MA,Vd=Qb,LA="Expected a function",BA=Math.max,VA=Math.min;function HA(t,e,n){var a,r,l,o,i,u,c=0,v=!1,s=!1,d=!0;if(typeof t!="function")throw new TypeError(LA);e=Vd(e)||0,NA(n)&&(v=!!n.leading,s="maxWait"in n,l=s?BA(Vd(n.maxWait)||0,e):l,d="trailing"in n?!!n.trailing:d);function f($){var I=a,x=r;return a=r=void 0,c=$,o=t.apply(x,I),o}function p($){return c=$,i=setTimeout(b,e),v?f($):o}function h($){var I=$-u,x=$-c,S=e-I;return s?VA(S,l-x):S}function m($){var I=$-u,x=$-c;return u===void 0||I>=e||I<0||s&&x>=l}function b(){var $=Au();if(m($))return y($);i=setTimeout(b,h($))}function y($){return i=void 0,d&&a?f($):(a=r=void 0,o)}function C(){i!==void 0&&clearTimeout(i),c=0,a=u=r=i=void 0}function O(){return i===void 0?o:y(Au())}function _(){var $=Au(),I=m($);if(a=arguments,r=this,u=$,I){if(i===void 0)return p(u);if(s)return clearTimeout(i),i=setTimeout(b,e),f(u)}return i===void 0&&(i=setTimeout(b,e)),o}return _.cancel=C,_.flush=O,_}var Ra=HA;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function KA(){var t=It();return function(n,a){var r;if(pe(t.props[n]))r=t.props[n](He);else if(t.slots[n])r=t.slots[n]&&t.slots[n](null)[0];else if(a){var l=a[t.props.theme];r=g(l,null,null)}return r}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Ls(){var t=Ke(),e=t.classPrefix,n={small:"".concat(e.value,"-size-s"),medium:"".concat(e.value,"-size-m"),large:"".concat(e.value,"-size-l"),default:"",xs:"".concat(e.value,"-size-xs"),xl:"".concat(e.value,"-size-xl"),block:"".concat(e.value,"-size-full-width")},a={loading:"".concat(e.value,"-is-loading"),loadMore:"".concat(e.value,"-is-load-more"),disabled:"".concat(e.value,"-is-disabled"),focused:"".concat(e.value,"-is-focused"),success:"".concat(e.value,"-is-success"),error:"".concat(e.value,"-is-error"),warning:"".concat(e.value,"-is-warning"),selected:"".concat(e.value,"-is-selected"),active:"".concat(e.value,"-is-active"),checked:"".concat(e.value,"-is-checked"),current:"".concat(e.value,"-is-current"),hidden:"".concat(e.value,"-is-hidden"),visible:"".concat(e.value,"-is-visible"),expanded:"".concat(e.value,"-is-expanded"),indeterminate:"".concat(e.value,"-is-indeterminate")};return{classPrefix:e,sizeClassNames:n,statusClassNames:a,classNames:{size:n,status:a}}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Nt(t,e,n,a){var r=It(),l=r.emit,o=r.vnode,i=G(),u=o.props||{},c=Object.prototype.hasOwnProperty.call(u,a)||Object.prototype.hasOwnProperty.call(u,sl(a));return c?[t,function(v){l("update:".concat(a),v);for(var s=arguments.length,d=new Array(s>1?s-1:0),f=1;f<s;f++)d[f-1]=arguments[f];n==null||n.apply(void 0,[v].concat(d))}]:(i.value=e,[i,function(v){i.value=v;for(var s=arguments.length,d=new Array(s>1?s-1:0),f=1;f<s;f++)d[f-1]=arguments[f];n==null||n.apply(void 0,[v].concat(d))}])}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var zA="t-display-none-element-refresh";function ey(){var t=G(0);wt(zA,t),qi(function(){t.value+=1})}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Hd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Kd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var WA=function(e){var n=e.data,a=e.container,r=e.fixedHeight,l=r===void 0?!1:r,o=e.lineHeight,i=o===void 0?30:o,u=e.bufferSize,c=u===void 0?20:u,v=e.threshold,s=v===void 0?100:v,d=jt({visibleData:[],cachedHeight:[],cachedScrollY:[]}),f=B(function(){return n.value.length>s}),p=G(0),h=new Map,m=0,b=0,y=0,C=0,O=0,_=0,$=function(){n.value.forEach(function(P,A){P.$index=A,l&&(d.cachedScrollY[A]=A*i)}),l||(d.cachedScrollY[n.value.length-1]=void 0)};$();var I=B(function(){var w=d.cachedHeight,P=w.length;if(P){var A=w.reduce(function(k,M){return k+M||i},0);if(w.length===n.value.length)return A;var R=A/w.length;return A+(n.value.length-w.length)*R}return f.value?n.value.length*i:0}),x=B(function(){var w=d.visibleData,P=w[0];return P?w.length===1?0:d.cachedScrollY[P.$index]:0}),S=function(){_=Math.min(O+m+c*2,n.value.length),d.visibleData=n.value.slice(O,_)},E=function(){var P,A=h.get(y);if(A){var R=A==null||(P=A.getBoundingClientRect())===null||P===void 0?void 0:P.height;d.cachedScrollY[y]=a.value.scrollTop-C,d.cachedHeight[y]=R;for(var k=y+1;k<=((M=d.visibleData[d.visibleData.length-1])===null||M===void 0?void 0:M.$index);k++){var M,V=h.get(k),W=(V==null?void 0:V.getBoundingClientRect())||{},U=W.height;d.cachedHeight[k]=U;var H=d.cachedScrollY[k-1]+d.cachedHeight[k-1];d.cachedScrollY.splice(k,1,H)}for(var L=y-1;L>=((z=d.visibleData[0])===null||z===void 0?void 0:z.$index);L--){var z,K=h.get(L),Y=(K==null?void 0:K.getBoundingClientRect())||{},q=Y.height;d.cachedHeight[L]=q;var X=d.cachedScrollY[L+1]-d.cachedHeight[L];d.cachedScrollY.splice(L,1,X)}if(d.cachedScrollY[0]>0){for(var J=d.cachedScrollY[0],Z=Math.min(_,n.value.length),oe=0;oe<Z;oe++)d.cachedScrollY.splice(oe,1,d.cachedScrollY[oe]-J);var se=d.cachedScrollY[y-1]?d.cachedScrollY[y-1]+C:C;a.value.scrollTop=se,b=se}if(d.cachedScrollY[O]<0){var me=d.cachedHeight.slice(0,Math.max(0,y)).reduce(function(Te,Ie){return Te+Ie},0)+C;a.value.scrollTop=me,b=me,me===0&&(y=0,C=0)}Je(function(){var Te=a.value,Ie=Te.scrollTop,re=Te.scrollHeight,ue=Te.clientHeight;if(Ie+ue===re)for(var ie=_-1;ie>=O;ie--)ie===_-1?d.cachedScrollY.splice(ie,1,re.value-d.cachedHeight[ie]):d.cachedScrollY.splice(ie,1,d.cachedScrollY[ie+1]-d.cachedHeight[ie])})}},D=function(){if(f.value){var P=a.value.scrollTop,A=P-b;b=P,A+=C;var R=y;if(A){if(A>=0){for(;R<n.value.length&&A>(d.cachedHeight[R]||i);)d.cachedHeight[R]||(d.cachedHeight[R]=i),A-=d.cachedHeight[R],R++;R>=n.value.length?(y=n.value.length-1,C=0):(y=R,C=A);var k=a.value,M=k.clientHeight,V=k.scrollHeight;P+M===V&&(y=n.value.length-m+1),O<=y-c&&(O=Math.min(n.value.length-m,y-c),O<0&&(O=0))}else{for(;A<0;)R--,d.cachedHeight[R]||(d.cachedHeight[R]=i),A+=d.cachedHeight[R];R<0?(y=0,C=0):(y=R,C=A),E(),O>y-c&&(O=Math.max(0,y-c))}S()}}};!l&&le(p,E,{flush:"post"});var j=function(){f.value&&p.value++};le(n,function(){$(),d.visibleData=[],d.cachedScrollY=[],d.cachedHeight=[],b=0,y=0,C=0,O=0,h.clear(),n.value.length<=s?d.visibleData=n.value:S(),a.value&&(a.value.scrollTop=0)});var T=!1,F=function(){T&&(m=Math.ceil(a.value.offsetHeight/i),S())};return Ae(function(){if(!(!window||!window.IntersectionObserver)){var w=new window.IntersectionObserver(function(P){var A=P[0];(A.isIntersecting||A.intersectionRatio)&&(T=!0,f.value&&F(),w.unobserve(a.value))});a.value&&w.observe(a.value)}}),Kd(Kd({trs:h,scrollHeight:I},_e(d)),{},{translateY:x,handleScroll:D,handleRowMounted:j,refreshContainer:F,fixedHeight:l,calculateScrollY:E})};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ht(t,e,n,a){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"value",l=It(),o=l.emit,i=l.vnode,u=G(),c=i.props||{},v=Object.prototype.hasOwnProperty.call(c,"modelValue")||Object.prototype.hasOwnProperty.call(c,"model-value"),s=Object.prototype.hasOwnProperty.call(c,r)||Object.prototype.hasOwnProperty.call(c,sl(r));return v?[e,function(d){o("update:modelValue",d);for(var f=arguments.length,p=new Array(f>1?f-1:0),h=1;h<f;h++)p[h-1]=arguments[h];a==null||a.apply(void 0,[d].concat(p))}]:s?[t,function(d){o("update:".concat(r),d);for(var f=arguments.length,p=new Array(f>1?f-1:0),h=1;h<f;h++)p[h-1]=arguments[h];a==null||a.apply(void 0,[d].concat(p))}]:(u.value=n,[u,function(d){u.value=d;for(var f=arguments.length,p=new Array(f>1?f-1:0),h=1;h<f;h++)p[h-1]=arguments[h];a==null||a.apply(void 0,[d].concat(p))}])}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Io=new Set,We={warn:function(e,n){console.warn("TDesign ".concat(e," Warn: ").concat(n))},warnOnce:function(e,n){var a="TDesign ".concat(e," Warn: ").concat(n);Io.has(a)||(Io.add(a),console.warn(a))},error:function(e,n){console.error("TDesign ".concat(e," Error: ").concat(n))},errorOnce:function(e,n){var a="TDesign ".concat(e," Error: ").concat(n);Io.has(a)||(Io.add(a),console.error(a))},info:function(e,n){console.info("TDesign ".concat(e," Info: ").concat(n))}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var UA=/(.png|.jpg|.jpeg|.jpe|.webp|.avif|.svg|.gif|.bmp)/i,YA=/(.png|.jpg|.jpeg|.jpe|.webp|.avif|.svg|.gif|.bmp|.dwg|.dxf|.svf|.tif|.tiff|.arw)/i,GA=/(.pdf)/i,qA=/(.xlsx|.xls|.csv|.xlc|.xlm|.xlt|.xlw)/i,XA=/(.dox|docx|.document|.wps|.wdb|.msword)/i,JA=/(.ppt|.pptx|.key)/i,ty=/(.avi|.mp4|.wmv|.mpg|.mpeg|.mov|.rm|.ram|.swf|.flv|.rmvb|.flash|.mid|.3gp)/i,ZA=/(.mp2|.mp3|.mp4|.ogg|.3gpp|.ac3|.au)/i,zd={"audio/*":ZA,"video/*":ty,"image/*":YA,".ico":/image\/vnd.microsoft.icon/i,".doc":/application\/msword/i,".docx":/application\/vnd.openxmlformats-officedocument.wordprocessingml.document/i,".xls":/application\/vnd.ms-excel/i,".xlsx":/application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet/i,".ppt":/application\/vnd.ms-powerpoint/i,".pptx":/application\/vnd.openxmlformats-officedocument.presentationml.presentation/i,".vsd":/application\/vnd.visio/i,".txt":/text\/plain/i,".abw":/application\/x-abiword/i,".avi":/video\/x-msvideo/i,".azw":/application\/vnd.amazon.ebook/i,".bin":/application\/octet-stream/i,".cda":/application\/x-cdf/i,".mpkg":/application\/vnd.apple.installer+xml/i,".odp":/application\/vnd.oasis.opendocument.presentation/i,".ods":/application\/vnd.oasis.opendocument.spreadsheet/i,".odt":/application\/vnd.oasis.opendocument.text/i,".oga":/audio\/ogg/i,".ogv":/video\/ogg/i,".ogx":/application\/ogg/i},Un={B:1,KB:1024,MB:1048576,GB:1073741824};function QA(t){return t<Un.KB?"".concat(t," Bytes"):t>=Un.KB&&t<Un.MB?"".concat((t/Un.KB).toFixed(1)," KB"):t>=Un.MB&&t<Un.GB?"".concat((t/Un.MB).toFixed(1)," MB"):t>=Un.GB?"".concat((t/Un.GB).toFixed(1)," GB"):""}function ny(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=new Date,n=e.getMonth()+1;n=n<10?"0".concat(n):n;var a="".concat(e.getFullYear(),"-").concat(n,"-").concat(e.getDate()),r="".concat(e.getHours(),":").concat(e.getMinutes(),":").concat(e.getSeconds());return t?[a,r].join(" "):a}function Wr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,a=t,r=0,l=0;if(!a)return"";for(var o=0;o<a.length;o++){var i=a[o],u=escape(i).indexOf("%u")===0;o<e*2&&r<e?u?r+=1:r+=2:o>o-n&&l<n&&(u?l+=1:l+=2)}return a.replace(new RegExp("^(.{".concat(r,"})(.+)(.{").concat(l,"})$")),"$1…$3")}function eR(t){return t<1024?"".concat(t," Bytes"):t>=1024&&t<1048576?"".concat((t/1024).toFixed(1)," KB"):t>=1048576?"".concat((t/1048576).toFixed(1)," MB"):""}function tR(t,e,n){var a=["B","KB","MB","GB"],r=1,l=a.indexOf(n);l===-1&&(We.warn("Upload","`sizeLimit.unit` can only be one of ".concat(a.join())),l=r);var o=Un[n];return t>e*o}function nR(t){return new Promise(function(e){if(!t){e("");return}var n=new FileReader;n.readAsDataURL(t),n.onload=function(a){var r;e((r=a.target)===null||r===void 0?void 0:r.result)}})}function aR(t,e,n){var a=e||n;if(!t)return!0;if(!a)return!1;for(var r=t.split(",").map(function(c){return c.trim()}),l=0,o=r.length;l<o;l++){var i=r[l];if(zd[i]&&zd[i].test(a))return!0;var u=new RegExp(i,"i");if(u.test(a))return!0}return!1}function ay(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=[],a=0;a<t.length;a++)aR(e,t[a].type,t[a].name)&&n.push(t[a]);return n}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function _i(t){var e=G("");return le([t],function(n,a){var r=be(n,1),l=r[0],o=be(a,1),i=o[0];if(i!==l){if(typeof l=="string"){e.value=l;return}nR(l).then(function(u){e.value=u})}},{immediate:!0}),{previewUrl:e}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Bs={attach:{type:[String,Function],default:"body"},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:[Number,Array]},destroyOnClose:Boolean,disabled:Boolean,hideEmptyPopup:Boolean,overlayClassName:{type:[String,Object,Array]},overlayInnerClassName:{type:[String,Object,Array]},overlayInnerStyle:{type:[Boolean,Object,Function]},overlayStyle:{type:[Boolean,Object,Function]},placement:{type:String,default:"top"},popperOptions:{type:Object},showArrow:Boolean,trigger:{type:String,default:"hover",validator:function(e){return e?["hover","click","focus","mousedown","context-menu"].includes(e):!0}},triggerElement:{type:[String,Function]},visible:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultVisible:Boolean,zIndex:{type:Number},onOverlayClick:Function,onScroll:Function,onScrollToBottom:Function,onVisibleChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function bo(t,e){if(!(typeof window>"u")){var n=window&&window.ResizeObserver;if(n){var a=null,r=function(){!a||!t.value||(a.unobserve(t.value),a.disconnect(),a=null)},l=function(i){a=new ResizeObserver(e),a.observe(i)};t&&le(t,function(o){r(),o&&l(o)},{immediate:!0,flush:"post"}),Ft(function(){r()})}}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function rR(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}function ry(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=[];return t.forEach(function(n){ke(n)?e.push.apply(e,ce(n)):n.type===Ct?e.push.apply(e,ce(ry(n.children))):e.push(n)}),e.filter(function(n){return!(n&&(n.type===Op||n.type===Ct&&n.children.length===0||n.type===_p&&n.children.trim()===""))})}function lR(t,e){return!t&&!e?!1:!!(!t||!e||["width","height","x","y"].some(function(n){return t[n]!==e[n]}))}function ly(t){var e=It(),n=G();return Ae(function(){n.value=t(e)}),qi(function(){var a=t(e);n.value!==a&&(n.value=a)}),n}var oR=ne({name:"TPopupTrigger",props:{forwardRef:Function},emits:["resize"],setup:function(e,n){var a=n.emit,r=n.slots,l=ly(function(i){var u=i.parent.vnode;return u.el.nextElementSibling}),o=G();return le(l,function(){var i;(i=e.forwardRef)===null||i===void 0||i.call(e,l.value)}),bo(l,function(i){var u=be(i,1),c=u[0].contentRect;o.value=c}),le(o,function(i,u){lR(i,u)&&a("resize")}),function(){var i,u,c=ry((i=r.default)===null||i===void 0?void 0:i.call(r));return c.length>1||((u=c[0])===null||u===void 0?void 0:u.type)===_p?g("span",null,[c]):c[0]}}}),iR=ne({name:"TPopupContent",emits:["resize"],setup:function(e,n){var a=n.emit,r=n.slots,l=ly(function(o){return o.vnode.el.children[0]});return bo(l,function(){a("resize")}),function(){return g("div",{style:"position: absolute; top: 0px; left: 0px; width: 100%"},[r.default()])}}}),uR=ne({name:"TPopupContainer",inheritAttrs:!1,props:{parent:Object,visible:Boolean,attach:Bs.attach,forwardRef:Function},emits:["resize","contentMounted"],setup:function(e,n){var a=n.emit,r=n.attrs,l=n.slots,o=n.expose,i=G(),u=G(!1);function c(){a("resize")}return Ae(function(){requestAnimationFrame(function(){u.value=e.visible})}),le(function(){return e.visible},function(v){v&&(u.value=e.visible)}),o({unmountContent:function(){u.value=!1}}),function(){var v,s=function(){return ib()||cl(e.attach,i.value)};return g(Ct,null,[g(oR,{class:r.class,forwardRef:function(f){e.forwardRef(f),i.value=f},onResize:c},rR(v=l.default())?v:{default:function(){return[v]}}),u.value&&g(Mr,{disabled:!s(),to:s()},{default:function(){return[g(iR,{onResize:c,onVnodeMounted:function(){return a("contentMounted")}},{default:function(){return[l.content&&l.content()]}})]}})])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Wd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Ru(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function cR(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var oy="data-td-popup",$c="data-td-popup-parent";function Mu(t,e){var n=[],a=[$c,oy];if(!t)return n;return e&&a.unshift(a.pop()),r(t),n;function r(l){var o=document.querySelectorAll("[".concat(a[0],'="').concat(l,'"]'));o.forEach(function(i){n.push(i);var u=i.getAttribute(a[1]);u&&u!==l&&r(u)})}}var Ud=Symbol();function sR(t){return t.replace(/-(left|top)$/,"-start").replace(/-(right|bottom)$/,"-end")}function vR(t){var e=[];return{add:function(a,r){a&&(ot(t.value,a,r),e.push(function(){Xe(t.value,a,r)}))},clean:function(){e.forEach(function(a){return a==null?void 0:a()}),e.length=0}}}var dR=ne({name:"TPopup",props:Ru(Ru({},Bs),{},{expandAnimation:{type:Boolean}}),setup:function(e,n){var a,r=n.expose,l=_e(e),o=l.visible,i=l.modelValue,u=ht(o,i,e.defaultVisible,e.onVisibleChange,"visible"),c=be(u,2),v=c[0],s=c[1],d=xe(),f=_t(),p,h,m,b=G(null),y=G(null),C=G(null),O=G(null),_=G(!1),$=typeof process<"u"&&(a=process.env)!==null&&a!==void 0&&a.TEST?"":Date.now().toString(36),I=vt(Ud,void 0);wt(Ud,{id:$,assertMouseLeave:W});var x=ee("popup"),S=ft(),E=S.STATUS,D=B(function(){var K,Y,q=e.trigger!=="hover"?[0,0]:[].concat((K=e.delay)!==null&&K!==void 0?K:[250,150]);return{show:q[0],hide:(Y=q[1])!==null&&Y!==void 0?Y:q[0]}}),j=vR(b);le(function(){return[e.trigger,b.value]},function(){b.value&&(j.clean(),j.add({hover:"mouseenter",focus:"focusin","context-menu":"contextmenu",click:"click"}[e.trigger],function(K){if(!e.disabled){if(K.type==="contextmenu"&&K.preventDefault(),(K.type==="click"||K.type==="contextmenu")&&v.value){R(K);return}A(K)}}),j.add({hover:"mouseleave",focus:"focusout"}[e.trigger],R))}),le(function(){return[e.overlayStyle,e.overlayInnerStyle,y.value]},function(){F(),w()}),le(function(){return e.placement},function(){P(),w()}),le(function(){return v.value},function(K){if(K){ot(document,"mousedown",V,!0),e.trigger==="focus"&&TI(b.value,"keydown",function(Y){var q,X=typeof process<"u"&&(q=process.env)!==null&&q!==void 0&&q.TEST?"27":"Escape";Y.code===X&&R(Y)});return}Xe(document,"mousedown",V,!0)}),ba(function(){P(),k(),Xe(document,"mousedown",V,!0)}),r({update:w,getOverlay:function(){return y.value},getOverlayState:function(){return{hover:_.value}},close:function(){return R()}});function T(){var K=e.overlayStyle;if(!(!b.value||!y.value)){if(pe(K))return K(b.value,y.value);if(Ve(K))return K}}function F(){var K=e.overlayInnerStyle;!b.value||!y.value||(pe(K)?Xl(y.value,K(b.value,y.value)):Ve(K)&&Xl(y.value,K))}function w(){if(!(!C.value||!v.value)){if(p){for(var K=b.value.getBoundingClientRect(),Y=b.value;Y&&Y!==document.body;)Y=Y.parentElement;var q=Y!==document.body||K.width===0&&K.height===0;q?s(!1,{trigger:M({type:"mouseenter"})}):(p.state.elements.reference=b.value,p.update());return}p=CA(b.value,C.value,Ru({placement:sR(e.placement),onFirstUpdate:function(){Je(w)}},e.popperOptions))}}function P(){if(p){var K;(K=p)===null||K===void 0||K.destroy(),p=null}if(e.destroyOnClose){var Y;(Y=O.value)===null||Y===void 0||Y.unmountContent()}}function A(K){k(),h=setTimeout(function(){s(!0,{trigger:M(K)})},D.value.show)}function R(K){k(),m=setTimeout(function(){s(!1,{trigger:M(K),e:K})},D.value.hide)}function k(){clearTimeout(h),clearTimeout(m)}function M(K){switch(K==null?void 0:K.type){case"mouseenter":return"trigger-element-hover";case"mouseleave":return"trigger-element-hover";case"focusin":return"trigger-element-focus";case"focusout":return"trigger-element-blur";case"click":return"trigger-element-click";case"context-menu":case"keydown":return"keydown-esc";case"mousedown":return"document";default:return"trigger-element-close"}}function V(K){var Y,q;if(!((Y=C.value)!==null&&Y!==void 0&&Y.contains(K.target))&&!((q=b.value)!==null&&q!==void 0&&q.contains(K.target))){var X=Mu($).find(function(J){return J.contains(K.target)});X&&Mu(X.getAttribute($c),!0).some(function(J){return J===C.value})||R(K)}}function W(K){if(_.value=!1,!(e.trigger!=="hover"||b.value.contains(K.target))){var Y=Mu($).some(function(q){var X=q.getBoundingClientRect();return K.x>X.x&&K.x<X.x+X.width&&K.y>X.y&&K.y<X.y+X.height});Y||(R(K),I==null||I.assertMouseLeave(K))}}function U(){_.value=!0,v.value&&e.trigger==="hover"&&k()}function H(K){var Y;(Y=e.onOverlayClick)===null||Y===void 0||Y.call(e,{e:K})}var L=vt("updateScrollTop",void 0);function z(K){var Y,q=K.target,X=q.scrollTop,J=q.clientHeight,Z=q.scrollHeight,oe=Ra(function(se){var me;return(me=e.onScrollToBottom)===null||me===void 0?void 0:me.call(e,{e:se})},100);J+Math.floor(X)===Z&&oe(K),(Y=e.onScroll)===null||Y===void 0||Y.call(e,{e:K})}return le(function(){return[v.value,y.value]},function(){v.value&&y.value&&L&&(L==null||L(y.value))}),function(){var K=d("content"),Y=e.hideEmptyPopup&&["",void 0,null].includes(K),q=v.value||!e.destroyOnClose?tr(g("div",ve(N(N({},oy,$),$c,I==null?void 0:I.id),{class:[x.value,e.overlayClassName],ref:function(J){return C.value=J},style:[{zIndex:e.zIndex},T(),Y&&{visibility:"hidden"}],onClick:H,onMouseenter:U,onMouseleave:W}),[g("div",{class:["".concat(x.value,"__content"),N(N(N({},"".concat(x.value,"__content--text"),Be(e.content)),"".concat(x.value,"__content--arrow"),e.showArrow),E.value.disabled,e.disabled),e.overlayInnerClassName],ref:y,onScroll:z},[K,e.showArrow&&g("div",{class:"".concat(x.value,"__arrow")},null)])]),[[el,v.value]]):null;return g(uR,{ref:function(J){return O.value=J},forwardRef:function(J){return b.value=J},onContentMounted:function(){if(v.value){w();var J=setTimeout(function(){F(),clearTimeout(J)},60)}},onResize:function(){v.value&&w()},visible:v.value,attach:e.attach},{content:function(){return g(nr,{name:"".concat(x.value,"--animation").concat(e.expandAnimation?"-expand":""),appear:!0,onEnter:w,onAfterLeave:P},cR(q)?q:{default:function(){return[q]}})},default:function(){return f("default","triggerElement")}})}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Ma=ye(dR);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var fR={maxItemWidth:{type:String,default:void 0},options:{type:Array},separator:{type:[String,Function]},theme:{type:String,default:"light",validator:function(e){return e?["light"].includes(e):!0}}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var gR={content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,href:{type:String,default:""},icon:{type:Function},maxWidth:{type:String,default:void 0},replace:Boolean,router:{type:Object},target:{type:String,default:"_self",validator:function(e){return e?["_blank","_self","_parent","_top"].includes(e):!0}},to:{type:[String,Object]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var hR=ke,mR=cu,pR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bR=/^\w*$/;function yR(t,e){if(hR(t))return!1;var n=qe(t);return n=="number"||n=="symbol"||n=="boolean"||t==null||mR(t)?!0:bR.test(t)||!pR.test(t)||e!=null&&t in Object(e)}var Vs=yR,iy=ss,CR="Expected a function";function Hs(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(CR);var n=function a(){var r=arguments,l=e?e.apply(this,r):r[0],o=a.cache;if(o.has(l))return o.get(l);var i=t.apply(this,r);return a.cache=o.set(l,i)||o,i};return n.cache=new(Hs.Cache||iy),n}Hs.Cache=iy;var wR=Hs,OR=wR,_R=500;function SR(t){var e=OR(t,function(a){return n.size===_R&&n.clear(),a}),n=e.cache;return e}var xR=SR,PR=xR,ER=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TR=/\\(\\)?/g,DR=PR(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ER,function(n,a,r,l){e.push(r?l.replace(TR,"$1"):a||n)}),e}),IR=DR,jR=ke,$R=Vs,FR=IR,kR=Fa;function AR(t,e){return jR(t)?t:$R(t,e)?[t]:FR(kR(t))}var fl=AR,RR=cu,MR=1/0;function NR(t){if(typeof t=="string"||RR(t))return t;var e=t+"";return e=="0"&&1/t==-MR?"-0":e}var gl=NR,LR=fl,BR=gl;function VR(t,e){e=LR(e,t);for(var n=0,a=e.length;t!=null&&n<a;)t=t[BR(e[n++])];return n&&n==a?t:void 0}var gu=VR;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function HR(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var uy=HR;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Yd=tl,KR=so,zR=ke,Gd=Yd?Yd.isConcatSpreadable:void 0;function WR(t){return zR(t)||KR(t)||!!(Gd&&t&&t[Gd])}var UR=WR,YR=ms,GR=UR;function cy(t,e,n,a,r){var l=-1,o=t.length;for(n||(n=GR),r||(r=[]);++l<o;){var i=t[l];e>0&&n(i)?e>1?cy(i,e-1,n,a,r):YR(r,i):a||(r[r.length]=i)}return r}var sy=cy,qR=sy;function XR(t){var e=t==null?0:t.length;return e?qR(t,1):[]}var JR=XR,ZR=JR,QR=Zp,eM=Qp;function tM(t){return eM(QR(t,void 0,ZR),t+"")}var vy=tM;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var nM=gu,aM=Es;function rM(t,e){return e.length<2?t:nM(t,aM(e,0,-1))}var lM=rM,oM=fl,iM=uy,uM=lM,cM=gl;function sM(t,e){return e=oM(e,t),t=uM(t,e),t==null||delete t[cM(iM(e))]}var vM=sM,dM=ws;function fM(t){return dM(t)?void 0:t}var gM=fM,hM=dr,mM=Xp,pM=vM,bM=fl,yM=vr,CM=gM,wM=vy,OM=bs,_M=1,SM=2,xM=4,PM=wM(function(t,e){var n={};if(t==null)return n;var a=!1;e=hM(e,function(l){return l=bM(l,t),a||(a=l.length>1),l}),yM(t,OM(t),n),a&&(n=mM(n,_M|SM|xM,CM));for(var r=e.length;r--;)pM(n,e[r]);return n}),ga=PM;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var EM={delay:{type:Number},destroyOnClose:{type:Boolean,default:!0},duration:{type:Number},placement:{type:String,default:"top"},showArrow:{type:Boolean,default:!0},theme:{type:String,default:"default",validator:function(e){return e?["default","primary","success","danger","warning","light"].includes(e):!0}}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var TM=function(){var e=G(0),n=G(0),a=function(l){e.value=l.clientX,n.value=l.clientY};return ar||(Ae(function(){window.addEventListener("mousemove",a,{passive:!0})}),ba(function(){window.removeEventListener("mousemove",a)})),{x:e,y:n}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function qd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function br(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var DM=ne({name:"TTooltip",props:br(br({},Bs),EM),setup:function(e,n){var a=G(null),r=G(null),l=_e(e),o=l.visible,i=l.modelValue,u=ht(o,i,e.defaultVisible,e.onVisibleChange,"visible"),c=be(u,2),v=c[0],s=c[1],d=It(),f=G(e.visible||e.defaultVisible),p=ee(),h=xe(),m=_t(),b=TM(),y=b.x,C=G(y.value);Ae(function(){e.duration&&f.value&&(a.value=setTimeout(function(){s(!1,{}),clearTimeout(a.value),a.value=null},e.duration))});var O=function(E,D){a.value&&(D==null?void 0:D.trigger)!=="document"||(E&&(C.value=y.value),s(E,D))},_=B(function(){return["".concat(p.value,"-tooltip"),N({},"".concat(p.value,"-tooltip--").concat(e.theme),e.theme),e.overlayClassName]}),$=B(function(){return br(br({},(d==null?void 0:d.vnode.props)||{}),{},{placement:e.placement==="mouse"?"bottom-left":e.placement,showArrow:e.placement==="mouse"?!1:e.showArrow,overlayClassName:_.value,onVisibleChange:O,disabled:e.disabled})}),I=B(function(){if(e.placement!=="mouse"||C.value===0)return e.overlayInnerStyle;var S=function(D){return{transform:"translateX(".concat(C.value-D.getBoundingClientRect().left,"px)")}};return e.overlayInnerStyle?function(E,D){return br(br({},S(E)),pe(e.overlayInnerStyle)?e.overlayInnerStyle(E,D):e.overlayInnerStyle)}:S});le(function(){return f.value},function(){a.value&&!f.value&&(clearTimeout(a.value),a.value=null)});var x=function(){var E,D;(E=r.value)===null||E===void 0||(D=E.update)===null||D===void 0||D.call(E)};return n.expose({updatePopper:x}),function(){var S=h("content");return!S&&!e.content?m("default","triggerElement"):g(Ma,ve(ga($.value,["content","default"]),{ref:r,overlayInnerStyle:I.value,visible:v.value}),{default:function(){return[m("default","triggerElement")]},content:function(){return S}})}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var er=ye(DM);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Xd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Jd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function IM(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var jM={separator:"",theme:"light",slots:{separator:""},maxItemWidth:void 0},dy=ne({name:"TBreadcrumbItem",inheritAttrs:!1,props:Jd({},gR),setup:function(e,n){var a,r=n.slots,l=n.attrs,o=G(),i=vt("tBreadcrumb",jM),u=G(i==null?void 0:i.theme),c=G(!1),v=ee("breadcrumb__item"),s=ee("breadcrumb__separator"),d=ee("is-disabled"),f=ee("link"),p=ee("breadcrumb__inner"),h=ee("breadcrumb--text-overflow"),m=at({ChevronRightIcon:Qr}),b=m.ChevronRightIcon,y=B(function(){var E=i==null?void 0:i.maxItemWidth,D=e.maxWidth||E||"120";return{maxWidth:"".concat(D,"px")}});Ae(function(){c.value=yi(o.value)}),ow(function(){c.value=yi(o.value)});var C=i==null?void 0:i.separator,O=i==null||(a=i.slots)===null||a===void 0?void 0:a.separator,_=C||O||g(b,{color:"rgba(0,0,0,.3)"},null),$=It(),I=$.proxy,x=function(){e.href&&(window.location.href=e.href);var D=e.router||I.$router;e.to&&D&&(e.replace?D.replace(e.to):D.push(e.to))},S=function(D){e.disabled||(e.target==="_blank"?e.href?window.open(e.href):window.open(e.to):(D.preventDefault(),x()))};return function(){var E=xe(),D=[v.value,u.value],j=[h.value];e.disabled&&j.push(d.value);var T={onClick:function(A){if(e.disabled){A.stopPropagation();return}}},F=g("span",{class:p.value,style:y.value},[E("icon"),g("span",{ref:o,class:"".concat(p.value,"-text")},[E("default")])]),w=g("span",Jd({class:j},T),[F]);return(e.href||e.to)&&!e.disabled&&(j.push(f.value),w=g("a",ve({class:j,href:e.href,target:e.target},T,{onClick:S}),[F])),g("div",ve({class:D},l),[c.value?g(er,{content:function(){return r==null?void 0:r.default()}},IM(w)?w:{default:function(){return[w]}}):w,g("span",{class:s.value},[pe(_)?_():_])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var $M=ne({name:"TBreadcrumb",props:fR,setup:function(e,n){var a=n.slots,r=_e(e),l=r.separator,o=r.theme,i=r.maxItemWidth,u=ee("breadcrumb");wt("tBreadcrumb",jt({separator:l,theme:o,slots:{separator:a.separator},maxItemWidth:i}));var c=xe();return function(){var v=c("default");return e.options&&e.options.length&&(v=e.options.map(function(s,d){return g(dy,ve(s,{key:d}),{default:function(){return[s.default||s.content]}})})),g("div",{class:u.value},[v])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var B9=ye($M),V9=ye(dy);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var FM={active:Boolean,content:{type:[String,Function],default:""},disabled:Boolean,divider:Boolean,prefixIcon:{type:Function},theme:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},value:{type:[String,Number,Object]},onClick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Zd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function kM(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zd(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function Ks(t,e){for(var n=kM({},t),a=0;a<e.length;a++){var r=e[a];delete n[r]}return n}function Qd(t){return t.toLowerCase().replace(/( |^)[a-z]/g,function(e){return e.toUpperCase()})}function AM(t){return Ia("on-".concat(t))}function Vl(t,e){var n=ct(e);if(!t||t.length===0)return n?{length:0,characters:t}:0;for(var a=0,r=0;r<t.length;r++){var l=0;if(t.charCodeAt(r)>127||t.charCodeAt(r)===94?l=2:l=1,n&&a+l>e)return{length:a,characters:t.slice(0,r)};a+=l}return n?{length:a,characters:t}:a}function ef(t){return ct(t)?"".concat(t,"px"):t}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function tf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function nf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Fc=ne({name:"TDropdownItem",props:nf(nf({},FM),{},{maxColumnWidth:{type:[String,Number],default:100},minColumnWidth:{type:[String,Number],default:10},isSubmenu:Boolean}),setup:function(e){var n=xe(),a=_t(),r=G();fr(e.isSubmenu?null:r);var l=n("prefixIcon"),o=ee("dropdown__item"),i=function(c){var v;e.disabled||(v=e.onClick)===null||v===void 0||v.call(e,e.value,{e:c})};return function(){var u=a("default","content"),c=[o.value,"".concat(o.value,"--theme-").concat(e.theme),N(N({},"".concat(o.value,"--active"),e.active),"".concat(o.value,"--disabled"),e.disabled)];return g("li",{class:c,onClick:i,style:{maxWidth:ef(e.maxColumnWidth),minWidth:ef(e.minColumnWidth)},ref:r},[e.prefixIcon?g("div",{class:"".concat(o.value,"-icon")},[l]):null,u])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var fy={direction:{type:String,default:"right",validator:function(e){return e?["left","right"].includes(e):!0}},disabled:Boolean,hideAfterItemClick:{type:Boolean,default:!0},maxColumnWidth:{type:[String,Number],default:100},maxHeight:{type:Number,default:300},minColumnWidth:{type:[String,Number],default:10},options:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom-left",validator:function(e){return e?["top","left","right","bottom","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"].includes(e):!0}},popupProps:{type:Object},trigger:{type:String,default:"hover",validator:function(e){return e?["hover","click","focus","context-menu"].includes(e):!0}},onClick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function af(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function rf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?af(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):af(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var gy=ne({name:"TDropdownMenu",props:rf({},fy),setup:function(e){var n=ee("dropdown"),a=ee("dropdown__menu"),r=jt({}),l=G(),o=G(!1),i=at({ChevronRightIcon:Qr}),u=i.ChevronRightIcon,c=function(p){var h,m,b=p.data,y=p.context;b==null||(h=b.onClick)===null||h===void 0||h.call(b,b,y),(m=e.onClick)===null||m===void 0||m.call(e,b,y)},v=function(p,h){var m=p.target.scrollTop;r[h]=m};Ae(function(){if(l.value){var f,p=parseInt((f=window)===null||f===void 0?void 0:f.getComputedStyle(l.value).height,10);p>=e.maxHeight&&(o.value=!0)}});var s=function(p){return pe(p)?p(He):p},d=function f(p,h){var m,b=[],y;return(m=p.forEach)===null||m===void 0||m.call(p,function(C,O){var _=rf({},C),$=O-Math.ceil(r[h]/30),I=$>=0?$:O;_.children?(_.children=f(_.children,h+1),y=g("div",{key:O},[g(Fc,{style:_.style,class:["".concat(n.value,"__item"),"".concat(n.value,"__item--suffix"),_.class],value:_.value,theme:_.theme,active:_.active,prefixIcon:_.prefixIcon,disabled:_.disabled,minColumnWidth:e.minColumnWidth,maxColumnWidth:e.maxColumnWidth,isSubmenu:!0},{default:function(){return[g("div",{class:"".concat(n.value,"__item-content")},[g("span",{class:"".concat(n.value,"__item-text")},[s(_.content)]),g(u,{class:"".concat(n.value,"__item-direction"),size:"16"},null)]),g("div",{class:["".concat(n.value,"__submenu-wrapper"),N({},"".concat(n.value,"__submenu-wrapper--").concat(e.direction),e.direction)],style:{position:"absolute",top:"".concat(I*30,"px")}},[g("div",{class:["".concat(n.value,"__submenu"),N({},"".concat(n.value,"__submenu--disabled"),_.disabled)],style:{position:"static",maxHeight:"".concat(e.maxHeight,"px")},onScroll:function(E){return v(E,h+1)}},[g("ul",null,[_.children])])])]}}),_.divider?g(bd,null,null):null])):y=g("div",{key:O},[g(Fc,{style:_.style,class:["".concat(n.value,"__item"),_.class],value:_.value,theme:_.theme,active:_.active,prefixIcon:_.prefixIcon,disabled:_.disabled,minColumnWidth:e.minColumnWidth,maxColumnWidth:e.maxColumnWidth,onClick:_.disabled||_.children?function(){return null}:function(x,S){return c({data:_,context:S})}},{default:function(){return[g("span",{class:"".concat(n.value,"__item-text")},[s(_.content)])]}}),_.divider?g(bd,null,null):null]),b.push(y)}),b};return function(){return g("div",{class:[a.value,"".concat(a.value,"--").concat(e.direction),N({},"".concat(a.value,"--overflow"),o.value)],style:{maxHeight:"".concat(e.maxHeight,"px")},ref:l,onScroll:function(p){return v(p,0)}},[d(e.options,0)])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function lf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Nu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var RM=function t(e){var n,a,r;if(!e)return[];if(((n=e[0])===null||n===void 0||(n=n.type)===null||n===void 0?void 0:n.name)==="TDropdownMenu"){var l,o,i=(l=e[0])===null||l===void 0||(l=l.children)===null||l===void 0||(o=l.default)===null||o===void 0?void 0:o.call(l);if(ke(i))return t(i)}return ke(e)?(e=e.reduce(function(u,c){return u=u.concat(ke(c.children)?c.children:c),u},[]),e.map(function(u){var c,v,s,d,f,p,h,m,b,y,C=(c=u.children)===null||c===void 0||(v=c.content)===null||v===void 0?void 0:v.call(c),O=((s=u.children)===null||s===void 0||(d=s.prefixIcon)===null||d===void 0?void 0:d.call(s))||((f=u.children)===null||f===void 0||(p=f["prefix-icon"])===null||p===void 0?void 0:p.call(f)),_=(h=u.children)===null||h===void 0||(m=h.default)===null||m===void 0?void 0:m.call(h),$=_==null||(b=_.filter)===null||b===void 0?void 0:b.call(_,function(S){var E;return!["TDropdownMenu","TDropdownItem"].includes((E=S.type)===null||E===void 0?void 0:E.name)}),I=_==null||(y=_.filter)===null||y===void 0?void 0:y.call(_,function(S){var E;return!Be(S.children)&&["TDropdownMenu","TDropdownItem"].includes((E=S.type)===null||E===void 0?void 0:E.name)}),x=Object.keys(u.props||{}).reduce(function(S,E){var D;return u.props[E]===""&&((D=u.type)===null||D===void 0?void 0:D.name)==="TDropdownItem"&&["active","divider","disabled"].includes(E)?S[Ia(E)]=!0:S[Ia(E)]=u.props[E],S},{});return Nu(Nu(Nu({content:C||$||_},x),O?{prefixIcon:function(){return O}}:{}),{},{children:(I==null?void 0:I.length)>0?t(I):null})}).filter(function(u){return!!u.content})):ke((a=e[0])===null||a===void 0?void 0:a.children)?t((r=e[0])===null||r===void 0?void 0:r.children):[]};function MM(t){var e,n,a,r,l=dl(),o=It(),i=((e=l("DropdownMenu"))===null||e===void 0||(e=e[0])===null||e===void 0||(e=e.children)===null||e===void 0||(n=e.default)===null||n===void 0?void 0:n.call(e))||((a=o.slots)===null||a===void 0||(r=a.dropdown)===null||r===void 0?void 0:r.call(a)),u=B(function(){return t.options&&t.options.length>0?t.options:RM(i)});return u}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function of(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Lu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?of(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):of(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var NM=ne({name:"TDropdown",props:fy,setup:function(e,n){var a=n.attrs,r=xe(),l=ee("dropdown"),o=G(null),i=G(!1),u=B(function(){var s,d=(s=e.popupProps)===null||s===void 0?void 0:s.delay;return ct(d)?d+10:ke(d)?d[1]+10:160}),c=function(d,f){var p;if(e.hideAfterItemClick){var h,m,b,y;setTimeout(function(){return i.value=!1},u.value),(h=e.popupProps)===null||h===void 0||(m=h.onVisibleChange)===null||m===void 0||m.call(h,!1,f),(b=e.popupProps)===null||b===void 0||(y=b["on-visible-change"])===null||y===void 0||y.call(b,!1,f)}e==null||(p=e.onClick)===null||p===void 0||p.call(e,d,f)},v=function(d,f){var p,h,m,b;i.value=d,(p=e.popupProps)===null||p===void 0||(h=p.onVisibleChange)===null||h===void 0||h.call(p,d,f),(m=e.popupProps)===null||m===void 0||(b=m["on-visible-change"])===null||b===void 0||b.call(m,d,f)};return function(){var s,d,f=(s=r("default"))===null||s===void 0?void 0:s[0],p=MM(e),h=Lu(Lu(Lu({},a),{},{disabled:e.disabled,placement:e.placement,trigger:e.trigger},ga(e.popupProps,["onVisibleChange","on-visible-change"])),{},{overlayInnerClassName:[l.value,(d=e.popupProps)===null||d===void 0?void 0:d.overlayInnerClassName]});return g(Ma,ve({destroyOnClose:!0,ref:o,visible:i.value,onVisibleChange:v,expandAnimation:!0},h),{default:function(){return[f]},content:function(){return g(gy,ve(ga(e,"onClick"),{options:p.value,onClick:c}),null)}})}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var H9=ye(NM),K9=ye(Fc),z9=ye(gy);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var LM={collapsed:Boolean,expanded:{type:Array,default:void 0},defaultExpanded:{type:Array,default:[]},expandMutex:Boolean,expandType:{type:String,default:"normal",validator:function(e){return e?["normal","popup"].includes(e):!0}},logo:{type:Function},operations:{type:Function},theme:{type:String,default:"light",validator:function(e){return e?["light","dark"].includes(e):!0}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},width:{type:[String,Number,Array],default:"232px"},onChange:Function,onExpand:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function hl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uf(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,xp(a.key),a)}}function ml(t,e,n){return e&&uf(t.prototype,e),n&&uf(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function cf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function BM(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var VM=function t(e,n,a){if(e)for(var r=0;r<e.children.length;++r){var l=e.children[r];if(l.value===n)return[].concat(ce(a),[e.value]);var o=t(l,n,[].concat(ce(a),[e.value]));if(o)return o}},HM=function t(e,n){if(!e)return[];for(var a=0;a<e.children.length;++a){var r=e.children[a];if(r.value===n)return e.children;var l=t(r,n);if(l)return l}},sf=function t(e,n){if(e.value===n)return e;if(e.children.length>0)for(var a=0,r=e.children.length;a<r;a++){var l=t(e.children[a],n);if(l)return l}},hy=function(){function t(e){hl(this,t),N(this,"data",null),N(this,"cache",new Set),N(this,"isMutex",G(!1)),N(this,"expandValues",null);var n={value:null,parent:null,children:[]};this.data=n,this.isMutex=e==null?void 0:e.isMutex,this.expandValues=new Set(e==null?void 0:e.expandValues)}return ml(t,[{key:"add",value:function(n){var a=n.value,r=n.parent,l=n.vnode,o=BM({value:a,parent:r,children:[],vnode:l},n);if(this.cache.forEach(function(u,c,v){n.value===u.parent&&(o.children.push(u),v.delete(u))}),n.parent==null)this.data.children.push(o),o.parent=this.data;else if(this.data.children.length>0){var i=sf(this.data,r);i&&!i.children.some(function(u){return u.value===o.value})?i.children.push(o):this.cache.add(o)}else this.cache.add(o)}},{key:"select",value:function(n){var a=VM(this.data,n,[])||[];return a.push(n),a.filter(function(r){return r!=null})}},{key:"expand",value:function(n){var a=this;if(this.expandValues.has(n))return this.expandValues.delete(n),ce(this.expandValues);if(this.expandValues.add(n),!this.isMutex.value)return ce(this.expandValues);var r=HM(this.data,n)||[],l=new Set(r.filter(function(o){var i;return((i=o.children)===null||i===void 0?void 0:i.length)>0&&o.value!==n}).map(function(o){return o.value}));return this.expandValues.forEach(function(o){var i=l.has(o);i&&a.expandValues.delete(o)}),ce(this.expandValues)}},{key:"getChild",value:function(n){var a=sf(this.data,n);return a?a.children:[]}}]),t}();/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function vf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function df(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var KM=ne({name:"TMenu",props:df(df({},LM),{},{onCollapsed:Function}),setup:function(e,n){var a=ee();Nr(function(){n.slots.options&&We.warnOnce("TMenu","`options` slot is going to be deprecated, please use `operations` for slot instead.")});var r=G(e.expandType),l=B(function(){return e.theme}),o=B(function(){return e.expandMutex}),i=B(function(){return e.collapsed}),u=B(function(){return["".concat(a.value,"-default-menu"),"".concat(a.value,"-menu--").concat(e.theme),N({},"".concat(a.value,"-is-collapsed"),e.collapsed)]}),c=B(function(){return["".concat(a.value,"-menu"),"".concat(a.value,"-menu--scroll")]}),v=B(function(){var D=e.width,j=function(F){return ct(F)?"".concat(F,"px"):F};return ke(D)?D.map(function(T){return j(T)}):[j(D),"64px"]}),s=B(function(){return{height:"100%",width:e.collapsed?v.value[1]:v.value[0]}}),d=_e(e),f=d.value,p=d.modelValue,h=d.expanded,m=ht(f,p,e.defaultValue,e.onChange),b=be(m,2),y=b[0],C=b[1],O=Nt(h,e.defaultExpanded,e.onExpand,"expanded"),_=be(O,2),$=_[0],I=_[1],x=G([]);Nr(function(){var D;r.value=e.collapsed?"popup":e.expandType,(D=e.onCollapsed)===null||D===void 0||D.call(e,{collapsed:e.collapsed})});var S=new hy({isMutex:o,expandValues:$.value?ce($.value):[]});wt("TdMenu",{activeValue:y,activeValues:x,expandValues:$,mode:r,theme:l,isHead:!1,vMenu:S,collapsed:i,select:function(j){j!==y.value&&C(j)},open:function(j,T){if(r.value==="normal")I(S.expand(j));else if(T==="add")$.value.indexOf(j)===-1&&I([].concat(ce($.value),[j]));else if(T==="remove"){var F=$.value.indexOf(j),w=ce($.value);w.splice(F,1),I(w)}}}),le(function(){return e.expanded},function(D){S.expandValues=new Set(D)}),le(function(){return e.collapsed},function(D,j){!D&&j&&I(ce(S.expandValues))});var E=function(j){x.value=S.select(j)};return le(y,E),Ae(function(){x.value=S.select(y.value)}),{styles:s,classPrefix:a,menuClass:u,innerClasses:c,activeValue:y,activeValues:x,expandValues:$}},render:function(){var e=kn(this,"operations","options"),n=Bt(this,"logo");return g("div",{class:this.menuClass,style:this.styles},[g("div",{class:"".concat(this.classPrefix,"-default-menu__inner")},[n&&g("div",{class:"".concat(this.classPrefix,"-menu__logo")},[n]),g("ul",{class:this.innerClasses},[kn(this,"default","content")]),e&&g("div",{class:"".concat(this.classPrefix,"-menu__operations")},[e])])])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var zM={expanded:{type:Array,default:void 0},defaultExpanded:{type:Array,default:[]},expandType:{type:String,default:"normal",validator:function(e){return e?["normal","popup"].includes(e):!0}},logo:{type:Function},operations:{type:Function},theme:{type:String,default:"light",validator:function(e){return e?["light","dark"].includes(e):!0}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onChange:Function,onExpand:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var ii={default:{type:Function},destroyOnHide:{type:Boolean,default:!0},disabled:Boolean,draggable:{type:Boolean,default:!0},label:{type:[String,Function]},lazy:Boolean,panel:{type:[String,Function]},removable:Boolean,value:{type:[String,Number]},onRemove:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ff(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function WM(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ff(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var my=ne({name:"TTabPanel",props:WM({},ii),setup:function(e){var n=ee("tab-panel"),a=ft(),r=a.STATUS,l=_t();ey();var o=vt("tabs"),i=B(function(){return e.value===o.value.value}),u=G(e.lazy?i.value:!0);le(i,function(){i.value?u.value||(u.value=!0):e.destroyOnHide&&(u.value=!1)},{immediate:!0});var c=B(function(){return[n.value,N({},r.value.hidden,!i.value)]});return function(){return u.value?g("div",{class:c.value},[l("default","panel")]):null}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Lt={action:{type:[String,Function]},addable:Boolean,disabled:Boolean,dragSort:Boolean,list:{type:Array},placement:{type:String,default:"top",validator:function(e){return e?["left","top","bottom","right"].includes(e):!0}},size:{type:String,default:"medium",validator:function(e){return e?["medium","large"].includes(e):!0}},theme:{type:String,default:"normal",validator:function(e){return e?["normal","card"].includes(e):!0}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onAdd:Function,onChange:Function,onDragSort:Function,onRemove:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Tt=function(e){return(e==null?void 0:e.offsetWidth)||0},pl={calcScrollLeft:function(e,n){var a=e.navsContainer,r=e.navsWrap,l=e.rightOperations,o=Tt(l);if(!r||!a)return n;var i=Tt(a),u=Tt(r);return u<=i?0:n+i-o>u?u+o-i:n},calculateCanToLeft:function(e,n,a){if(["left","right"].includes(a.toLowerCase()))return!1;var r=e.navsContainer,l=e.navsWrap,o=e.leftOperations,i=e.toLeftBtn;if(!l||!r)return!1;var u=Tt(o),c=Tt(i);return n+Math.round(u-c)>0},calculateCanToRight:function(e,n,a){if(["left","right"].includes(a.toLowerCase()))return!1;var r=e.navsContainer,l=e.navsWrap,o=e.rightOperations,i=e.toRightBtn;if(!l||!r)return!1;var u=Tt(o),c=Tt(i);return n+Tt(r)-(u-c)-Tt(l)<-1},moveActiveTabIntoView:function(e,n){var a=e.activeTab,r=e.navsContainer,l=e.navsWrap,o=e.leftOperations,i=e.toLeftBtn,u=e.rightOperations,c=e.toRightBtn;if(!a)return n;var v=a.offsetLeft;if(!r)return n;var s=function(){var O=Tt(o),_=Tt(i);return v===0?O-_:O},d=s(),f=n+d>v;if(f)return v-d;var p=a.offsetWidth;if(!r||!l)return n;var h=Tt(r),m=function(){var O=Tt(u),_=Tt(c),$=Tt(l);return Math.abs(v+p-$)<1?O-_:O},b=m(),y=n+h-b<v+p;return y?v+p-h+b:n},scrollToLeft:function(e,n){var a=e.navsContainer,r=e.leftOperations,l=e.toLeftBtn;if(!a)return 0;var o=Tt(r),i=Tt(l),u=Tt(a);return Math.max(-(o-i),n-u)},scrollToRight:function(e,n){var a=e.navsContainer,r=e.navsWrap,l=e.rightOperations,o=e.toRightBtn,i=Tt(l),u=Tt(o),c=Tt(a),v=Tt(r);return Math.min(n+c-i-u,v-c+i-u)}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var UM=ne({name:"TTabNavItem",props:{index:Number,active:{type:Boolean},theme:Lt.theme,size:Lt.size,placement:Lt.placement,label:{type:null},disabled:ii.disabled,removable:ii.removable,value:ii.value,onClick:Function,onRemove:Function},setup:function(e){var n=G();fr(n);var a=ee("tabs__nav-item"),r=at({CloseIcon:pa}),l=r.CloseIcon,o=ee(),i=ft(),u=i.STATUS,c=i.SIZE,v=function(m){var b=m.e;b.stopPropagation(),e.onRemove({e:b,value:e.value,index:e.index})},s=function(m){e.disabled||e.onClick(m)},d=B(function(){return N(N(N(N(N(N(N(N({},a.value,!0),"".concat(o.value,"-tabs__nav--card"),e.theme==="card"),u.value.disabled,e.disabled),u.value.active,e.active),"".concat(o.value,"-is-left"),e.placement==="left"),"".concat(o.value,"-is-right"),e.placement==="right"),c.value.medium,e.size==="medium"),c.value.large,e.size==="large")}),f=function(){return g("div",{class:d.value,onClick:s,ref:n},[g("span",{class:"".concat(a.value,"-text-wrapper")},[e.label]),e.removable&&!e.disabled?g(l,{class:"remove-btn",onClick:v},null):null])},p=function(){return g("div",{class:d.value,onClick:s},[g("div",{class:["".concat(a.value,"-wrapper"),N(N({},u.value.disabled,e.disabled),u.value.active,e.active)],ref:n},[g("span",{class:"".concat(a.value,"-text-wrapper")},[e.label])]),e.removable&&!e.disabled?g(l,{class:"remove-btn",onClick:v},null):null])};return function(){return e.theme==="card"?f():p()}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var YM=ne({props:{navs:{type:Array},placement:Lt.placement,value:Lt.value},setup:function(e){var n=ee("tabs"),a=ee(),r=B(function(){return["".concat(n.value,"__bar"),"".concat(a.value,"-is-").concat(e.placement)]}),l=G(null),o=function(){for(var u,c=["left","right"].includes(e.placement.toLowerCase()),v=c?["height","top"]:["width","left"],s=be(v,2),d=s[0],f=s[1],p=0,h=0;h<e.navs.length;h++){var m;if(e.navs[h].props.value===e.value)break;p+=((m=e.navs[h])===null||m===void 0||(m=m.el)===null||m===void 0?void 0:m["client".concat(Qd(d))])||0}return e.navs[h]?N(N({},f,"".concat(p,"px")),d,"".concat(((u=e.navs[h].el)===null||u===void 0?void 0:u["client".concat(Qd(d))])||0,"px")):{}};return Ae(function(){Je(function(){l.value=o()})}),le([function(){return e.navs},function(){return e.value},function(){return e.placement}],function(){Je(function(){l.value=o()})}),function(){return g("div",{class:r.value,style:l.value},null)}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function GM(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=qM(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,i;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return l=c.done,c},e:function(c){o=!0,i=c},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(o)throw i}}}}function qM(t,e){if(t){if(typeof t=="string")return gf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gf(t,e)}}function gf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}var py=function(e,n){var a=GM(e),r;try{for(a.s();!(r=a.n()).done;){var l=r.value;l.getAttribute("draggable")&&n(l)}}catch(o){a.e(o)}finally{a.f()}},hf=function(e,n){var a;return py(n,function(r){r.contains(e)&&(a=r)}),a};function XM(t){var e=null,n,a=[],r=function(d){var f=d.target;n=f,f.style.opacity="0.5"},l=function(d){d.target.style.opacity=""},o=function(d){d.preventDefault()},i=function(d){var f=hf(d.target,e.children);f&&f!==n&&f.draggable&&(f.firstChild.style.outline="1px dashed #0052d9",a.includes(f)||a.push(f))},u=function(d){for(var f=d.target,p=0,h=a;p<h.length;p++){var m=h[p];m.contains(f)||(m.firstChild.style.outline="none")}},c=function(d){d.preventDefault(),py(e.children,function(C){C.firstChild.style.outline="none"});var f=hf(d.target,e.children);if(f&&f.parentNode!==n&&f.draggable){var p,h=[].indexOf.call(e.children,n),m=[].indexOf.call(e.children,f);m>h&&(f=e.children[m+1]),e.insertBefore(n,f);var b=t.theme==="card"?h:h-1,y=t.theme==="card"?m:m-1;(p=t.onDragSort)===null||p===void 0||p.call(t,{currentIndex:b,current:t.panels[b].value,targetIndex:y,target:t.panels[y].value})}};function v(s){e=s,e.addEventListener("dragstart",r,!1),e.addEventListener("dragend",l,!1),e.addEventListener("dragover",o,!1),e.addEventListener("dragenter",i,!1),document.addEventListener("dragleave",u,!1),document.addEventListener("mousemove",u,!1),e.addEventListener("drop",c,!1)}return ba(function(){e.removeEventListener("dragstart",r),e.removeEventListener("dragend",l),e.removeEventListener("dragover",o),e.removeEventListener("dragenter",i),document.removeEventListener("dragleave",u),document.removeEventListener("mousemove",u),e.removeEventListener("drop",c)}),{setNavsWrap:v}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function mf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function yr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var JM=pl.calculateCanToLeft,ZM=pl.calculateCanToRight,QM=pl.calcScrollLeft,eN=pl.scrollToLeft,tN=pl.scrollToRight,nN=pl.moveActiveTabIntoView,aN=ne(yr(yr({name:"TTabNav"},{resizeObserver:null}),{},{props:{theme:Lt.theme,panels:{type:Array,default:function(){return[]}},action:Lt.action,value:Lt.value,placement:Lt.placement,size:Lt.size,disabled:Lt.disabled,addable:Lt.addable,onChange:Lt.onChange,onAdd:Lt.onAdd,onRemove:Lt.onRemove,dragSort:Lt.dragSort,onDragSort:Lt.onDragSort},setup:function(e){var n=ee("tabs"),a=at({ChevronLeftIcon:uo,ChevronRightIcon:Qr,AddIcon:Ui}),r=a.ChevronLeftIcon,l=a.ChevronRightIcon,o=a.AddIcon,i=ee(),u=ft(),c=u.SIZE,v=G(0),s=G(!1),d=G(!1),f=G(),p=G(),h=G(),m=G(),b=G(),y=G(),C=G(),O=function(){return{navsContainer:f.value,navsWrap:p.value,leftOperations:h.value,toLeftBtn:m.value,rightOperations:b.value,toRightBtn:y.value}},_=B(function(){return["left","right"].includes(e.placement.toLowerCase())}),$=B(function(){return _.value?{}:{transform:"translate3d(".concat(-v.value,"px, 0, 0)")}}),I=B(function(){return e.addable?{"min-height":"48px"}:null}),x=B(function(){return N(N(N({},"".concat(n.value,"__btn"),!0),c.value.medium,e.size==="medium"),c.value.large,e.size==="large")}),S=B(function(){return yr(N({},"".concat(n.value,"__btn--left"),!0),x.value)}),E=B(function(){return yr(N({},"".concat(n.value,"__btn--right"),!0),x.value)}),D=B(function(){return yr(N({},"".concat(n.value,"__add-btn"),!0),x.value)}),j=B(function(){return N(N(N(N({},"".concat(n.value,"__nav-container"),!0),"".concat(n.value,"__nav--card"),e.theme==="card"),"".concat(i.value,"-is-").concat(e.placement),!0),"".concat(i.value,"-is-addable"),e.addable)}),T=B(function(){return N(N({},"".concat(n.value,"__nav-scroll"),!0),"".concat(i.value,"-is-scrollable"),s.value||d.value)}),F=B(function(){return["".concat(n.value,"__nav-wrap"),"".concat(i.value,"-is-smooth"),N({},"".concat(i.value,"-is-vertical"),_.value)]}),w=function(){Je(function(){R(),A()})};le([v,function(){return e.placement},function(){return e.panels}],w),SF(Ra(w),f.value),Ae(function(){P(),w()});var P=function(){_.value||Je(function(){var X=f.value,J=C.value,Z=(J==null?void 0:J.offsetWidth)||0,oe=(X==null?void 0:X.offsetWidth)||0,se=Array.prototype.indexOf.call(p.value.children,J),me=z.value.length-se>=Math.round((oe-Z)/Z)?1:0,Te=J==null?void 0:J.offsetLeft;Te>oe-Z&&(v.value=Te-me*Z)})},A=function(){v.value=QM(O(),v.value)},R=function(){s.value=JM(O(),v.value,e.placement),d.value=ZM(O(),v.value,e.placement)},k=function(X){X==="left"?v.value=eN(O(),v.value):v.value=tN(O(),v.value)},M=function(X){var J;(J=e.onAdd)===null||J===void 0||J.call(e,{e:X})},V=function(X,J){var Z=J.value,oe=J.disabled;if(oe||e.value===Z)return!1;e.onChange(Z)},W=function(X){var J=X.e,Z=X.value,oe=X.index;e.onRemove({e:J,value:Z,index:oe})},U=function(X){(X==null?void 0:X.value)===e.value&&C.value!==X.$el&&(C.value=X.$el,v.value=nN(yr({activeTab:C.value},O()),v.value))},H=XM(e),L=H.setNavsWrap;Ae(function(){L(p.value)});var z=B(function(){return e.panels.map(function(q,X){var J,Z;q!=null&&(J=q.children)!==null&&J!==void 0&&J.label?Z=q.children.label():pe(q.label)?Z=q.label(He):Z=q.label||"选项卡".concat(X+1);var oe=e.dragSort;return oe&&q.draggable===!1&&(oe=q.draggable),g(UM,{ref:U,draggable:oe,key:q.value,index:X,theme:e.theme,size:e.size,placement:e.placement,label:Z,active:q.value===e.value,disabled:e.disabled||q.disabled,removable:q.removable,value:q.value,onClick:function(me){return V(me,q)},onRemove:W},null)})}),K=function(){return[g("div",{ref:h,class:["".concat(n.value,"__operations"),"".concat(n.value,"__operations--left")]},[g(nr,{name:"fade",mode:"out-in",appear:!0},{default:function(){return[s.value?g("div",{ref:m,class:S.value,onClick:function(){return k("left")}},[g(r,null,null)]):null]}})]),g("div",{ref:b,class:["".concat(n.value,"__operations"),"".concat(n.value,"__operations--right")]},[g(nr,{name:"fade",mode:"out-in",appear:!0},{default:function(){return[d.value?g("div",{ref:y,class:E.value,onClick:function(){return k("right")}},[g(l,null,null)]):null]}}),e.addable?g("div",{class:D.value,onClick:M},[g(o,null,null)]):null,e.action])]},Y=function(){return g("div",{class:j.value},[g("div",{class:T.value},[g("div",{ref:p,class:F.value,style:$.value},[e.theme!=="card"&&g(YM,{placement:e.placement,value:e.value,navs:z.value},null),z.value])])])};return function(){return g("div",{ref:f,class:["".concat(n.value,"__nav")],style:I.value},[K(),Y()])}}}));/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var rN=ne({name:"TTabs",props:Lt,setup:function(e){var n=ee("tabs"),a=ee(),r=xe(),l=_e(e),o=l.value,i=l.modelValue,u=ht(o,i,e.defaultValue||"",e.onChange),c=be(u,2),v=c[0],s=c[1];wt("tabs",{value:v});var d=function(C){var O;(O=e.onAdd)===null||O===void 0||O.call(e,{e:C.e})},f=function(C){s(C)},p=function(C){var O=C.e,_=C.value,$=C.index;e.onRemove({value:_,index:$,e:O})},h=function(){var C=r("default");if(!C)return[];var O=function _($){return $.map(function(I){return I.children&&ke(I.children)?_(I.children):I}).flat().filter(function(I){return I.type.name==="TTabPanel"})};return O(C)},m=function(){var C,O=((C=e.list)!==null&&C!==void 0&&C.length?e.list:h())||[],_=r("action"),$=O.map(function(x){var S=x;return x.props&&Object.keys(x.props).forEach(function(E){S[E]=x.props[E]}),S}),I={theme:e.theme,value:v.value,size:e.size,disabled:e.disabled,placement:e.placement,addable:e.addable,panels:$,dragSort:e.dragSort,action:_};return g("div",{class:N(N({},"".concat(a.value,"-tabs__header"),!0),"".concat(a.value,"-is-").concat(e.placement),!0)},[g(aN,ve(I,{onDragSort:e.onDragSort,onChange:f,onAdd:d,onRemove:p}),null)])},b=function(){var C,O=h();if((C=e.list)!==null&&C!==void 0&&C.length)return e.list.map(function(_){return g(my,ve(_,{onRemove:p}),null)});if(O&&O.length)return g("div",{class:["".concat(a.value,"-tabs__content")]},[O])};return function(){return g("div",{class:[n.value]},[e.placement!=="bottom"?[m(),b()]:[b(),m()]])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var lN=ye(rN),oN=ye(my);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var iN={content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,icon:{type:Function},popupProps:{type:Object},title:{type:[String,Function]},value:{type:[String,Number]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Hl=ne({name:"TFakeArrow",props:{isActive:{type:Boolean},overlayClassName:{type:[String,Object,Array]},overlayStyle:{type:Object||String}},setup:function(e){var n=ee("fake-arrow"),a=B(function(){return[n.value,N({},"".concat(n.value,"--active"),e.isActive),e.overlayClassName]});return{classes:a}},render:function(){return g("svg",{class:this.classes,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:this.overlayStyle},[g("path",{d:"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921",stroke:"black","stroke-opacity":"0.9","stroke-width":"1.3"},null)])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function by(){var t=function(i){i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.height="0",i.style.paddingTop="0",i.style.paddingBottom="0"},e=function(i){i.dataset.oldOverflow=i.style.overflow,i.style.height="".concat(i.scrollHeight,"px"),i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom,i.style.overflow="hidden"},n=function(i){i.style.height="",i.style.overflow=i.dataset.oldOverflow},a=function(i){i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.height="".concat(i.scrollHeight,"px"),i.style.overflow="hidden"},r=function(i){i.scrollHeight!==0&&(i.style.height="0",i.style.paddingTop="0",i.style.paddingBottom="0")},l=function(i){i.style.height="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom};return{beforeEnter:t,enter:e,afterEnter:n,beforeLeave:a,leave:r,afterLeave:l}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function pf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function uN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var cN=ne({name:"TSubmenu",props:iN,setup:function(e,n){var a=ee(),r=vt("TdMenu"),l=r.theme,o=r.activeValues,i=r.expandValues,u=r.isHead,c=r.open,v=vt("TdSubmenu",{}),s=v.setSubPopup,d=v.closeParentPopup,f=B(function(){return n.attrs.expandType||r.mode.value}),p=G([]),h=B(function(){return o.value.indexOf(e.value)>-1}),m=G(!1),b=G(!1),y=B(function(){return l.value==="light"?"#E7E7E7":"#383838"}),C=B(function(){var L;return f.value==="popup"?m.value:i?(L=i.value)===null||L===void 0?void 0:L.includes(e.value):!1}),O=G(!1),_=G(),$=G(),I=G(),x=ee("slide-down");fr(I,y);var S=B(function(){return["".concat(a.value,"-submenu"),N(N({},"".concat(a.value,"-is-disabled"),e.disabled),"".concat(a.value,"-is-opened"),C.value)]}),E=B(function(){var L;return["".concat(a.value,"-menu__popup"),"".concat(a.value,"-is-").concat(u?"horizontal":"vertical"),N({},"".concat(a.value,"-is-opened"),m.value),(L=e.popupProps)===null||L===void 0?void 0:L.overlayInnerClassName]}),D=B(function(){var L;return["".concat(a.value,"-menu--").concat(l.value),u&&"".concat(a.value,"-is-head-menu"),N({},"".concat(a.value,"-menu-is-nested"),O.value),(L=e.popupProps)===null||L===void 0?void 0:L.overlayClassName]}),j=B(function(){return["".concat(a.value,"-menu__item"),"".concat(a.value,"-menu__item-spacer"),"".concat(a.value,"-menu__item-spacer--").concat(u&&!O.value?"bottom":"right"),N(N(N({},"".concat(a.value,"-is-disabled"),e.disabled),"".concat(a.value,"-is-opened"),C.value),"".concat(a.value,"-is-active"),h.value)]}),T=B(function(){return["".concat(a.value,"-menu__sub"),N({},"".concat(a.value,"-is-opened"),C.value)]}),F=B(function(){return[N({},"".concat(a.value,"-fake-arrow--active"),C.value)]}),w=function(z){pe(s)&&s(z)},P=function(){e.disabled||setTimeout(function(){m.value||(c(e.value),Je().then(function(){w(_.value)})),m.value=!0},0)},A=function(z){return z==null?void 0:z.classList.contains("".concat(a.value,"-menu__popup"))},R=function L(z){return z?A(z)||L(z.parentElement):!1},k=function(z){setTimeout(function(){var K=A(z.relatedTarget);b.value||K||(m.value=!1)},0)},M=function(z){var K=z.toElement,Y=z.relatedTarget,q=K||Y;if(q!==$.value){for(var X=function(Z){return Z===I.value};q!==null&&q!==document&&!X(q);)q=q.parentNode;b.value=!1,X(q)||(m.value=!1),d==null||d(z)}},V=function(){b.value=!0},W=function(){e.disabled||c(e.value)};le(m,function(L){r.open(e.value,L?"add":"remove")});var U=_e(e),H=U.value;return wt("TdSubmenu",jt({value:H,addMenuItem:function(z){p.value.push(z),v&&v.addMenuItem(z)},setSubPopup:function(z){$.value=z},closeParentPopup:function(z){var K=z.relatedTarget;R(K)||M(z)}})),le(_,function(){w(_.value)}),Ae(function(){var L;r==null||(L=r.vMenu)===null||L===void 0||L.add({value:e.value,parent:v==null?void 0:v.value,vnode:n.slots.default});for(var z=It(),K=z.parent;K&&!/^t(head)?menu/i.test((Y=K)===null||Y===void 0?void 0:Y.type.name);){var Y,q,X;if(/submenu/i.test((q=K)===null||q===void 0?void 0:q.type.name)){O.value=!0;break}K=(X=K)===null||X===void 0?void 0:X.parent}}),{classPrefix:a,menuItems:p,mode:f,theme:l,isHead:u,isNested:O,classes:S,subClass:T,isOpen:C,transitionClass:x,arrowClass:F,overlayInnerClassName:E,overlayClassName:D,submenuClass:j,submenuRef:I,popupWrapperRef:_,popupVisible:m,isCursorInPopup:b,handleEnterPopup:V,handleMouseEnter:P,handleMouseLeave:k,handleMouseLeavePopup:M,handleSubmenuItemClick:W}},methods:{renderPopup:function(e){var n,a=this,r="right-top";!this.isNested&&this.isHead&&(r="bottom-left");var l=g("div",{ref:"popupWrapperRef",class:["".concat(this.classPrefix,"-menu__spacer"),"".concat(this.classPrefix,"-menu__spacer--").concat(!this.isNested&&this.isHead?"top":"left")],onMouseenter:this.handleEnterPopup,onMouseleave:this.handleMouseLeavePopup},[g("ul",{class:"".concat(this.classPrefix,"-menu__popup-wrapper")},[kn(this,"default","content")])]),o={content:function(){return l}},i=g(Ma,ve((n=this.popupProps)!==null&&n!==void 0?n:{},{overlayInnerClassName:ce(this.overlayInnerClassName),overlayClassName:ce(this.overlayClassName),visible:this.popupVisible,placement:r}),uN({default:function(){return[g("div",{ref:"submenuRef",class:a.submenuClass},[e])]}},o));return i},renderHeadSubmenu:function(){var e=Bt(this,"icon"),n=[g("div",{ref:"submenuRef",class:this.submenuClass,onClick:this.handleSubmenuItemClick},[e,g("span",{class:["".concat(this.classPrefix,"-menu__content")]},[Bt(this,"title",{silent:!0})])]),g("ul",{style:"opacity: 0; width: 0; height: 0; overflow: hidden"},[kn(this,"default","content")])],a=this.mode==="popup"&&this.isNested,r=[e,g("span",{class:["".concat(this.classPrefix,"-menu__content")]},[Bt(this,"title",{silent:!0})]),g(Hl,{overlayClassName:/menu/i.test(this.$parent.$options.name)?this.arrowClass:null,overlayStyle:{transform:"rotate(".concat(a?-90:0,"deg)")}},null)];return this.mode==="normal"?n:this.renderPopup(r)},renderSubmenu:function(){for(var e=this,n=this.$slots.content||this.$slots.default,a=Bt(this,"icon"),r=kn(this,"default","content"),l=It(),o=l.parent,i=44;o&&o.type.name!=="TMenu";)o.type.name==="TSubmenu"&&(i+=16),o=o.parent;var u=by(),c=u.beforeEnter,v=u.enter,s=u.afterEnter,d=u.beforeLeave,f=u.leave,p=u.afterLeave,h=this.mode==="popup"&&this.isNested,m=[g("div",{ref:"submenuRef",class:this.submenuClass,onClick:this.handleSubmenuItemClick},[a,g("span",{class:["".concat(this.classPrefix,"-menu__content")]},[Bt(this,"title",{silent:!0})]),n&&g(Hl,{overlayClassName:this.arrowClass,overlayStyle:{transform:"rotate(".concat(h?-90:0,"deg)")}},null)]),g(nr,{name:this.transitionClass,onBeforeEnter:c,onEnter:v,onAfterEnter:s,onBeforeLeave:d,onLeave:f,onAfterLeave:p},{default:function(){return[tr(g("ul",{class:e.subClass,style:{"--padding-left":"".concat(i,"px")}},[r]),[[el,e.isOpen]])]}})],b=[a,g("span",{class:["".concat(this.classPrefix,"-menu__content")]},[Bt(this,"title",{silent:!0})]),g(Hl,{overlayClassName:/menu/i.test(this.$parent.$options.name)?this.arrowClass:null,overlayStyle:{transform:"rotate(".concat(h?-90:0,"deg)"),"margin-left":"auto"}},null)];return this.mode==="normal"?m:this.renderPopup(b)}},render:function(){var e=null,n={};return this.mode==="popup"&&(n={onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave}),Object.keys(this.$slots).length>0&&(e=this.isHead?this.renderHeadSubmenu():this.renderSubmenu()),g("li",ve({class:this.classes},n),[e])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function bf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function yf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function sN(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var vN=ne({name:"THeadMenu",props:yf({},zM),setup:function(e,n){var a,r,l,o,i=ee(),u=It(),c=u.proxy;Nr(function(){n.slots.options&&We.warnOnce("TMenu","`options` slot is going to be deprecated, please use `operations` for slot instead.")});var v=_e(e),s=v.value,d=v.modelValue,f=v.expanded,p=ht(s,d,e.defaultValue,e.onChange),h=be(p,2),m=h[0],b=h[1],y=Nt(f,e.defaultExpanded,e.onExpand,"expanded"),C=be(y,2),O=C[0],_=C[1],$=G([]),I=B(function(){return e.theme}),x=B(function(){return["".concat(i.value,"-menu"),"".concat(i.value,"-head-menu"),"".concat(i.value,"-menu--").concat(e.theme)]}),S=G(e.expandType),E=jt([]),D=new hy({isMutex:!0,expandValues:O.value});wt("TdMenu",{mode:S,theme:I,vMenu:D,isHead:!0,expandValues:O,activeValue:m,activeValues:$,select:function(U){b(U)},open:function(U,H){var L=ce(O.value),z=L.indexOf(U);S.value==="popup"?H==="add"?z===-1&&L.push(U):H==="remove"&&L.splice(z,1):S.value==="normal"&&U!==void 0&&(L.splice(0,1),z===-1&&L.push(U)),_(L)}});var j=function(U){b(U),w(U)},T=function(U){var H=D.getChild(U);E.length=0,E.push.apply(E,ce(H))};le(O,function(W){S.value==="normal"&&T(W[0])});var F=function(U){$.value=D.select(U)};le(m,F),le(function(){return e.expandType},function(W){S.value=W}),Ae(function(){var W;$.value=D.select(m.value),((W=O.value)===null||W===void 0?void 0:W.length)>0&&T(O.value[0])});var w=function(U){var H,L=E.find(function(X){return X.value===U});(H=L.onClick)===null||H===void 0||H.call(L,{value:U});var z=L.to,K=L.href,Y=L.replace;K&&(window.location.href=L.href);var q=L.router||c.$router;z&&q&&(Y?q.replace(z):q.push(z))},P=function(){var U;return E.length===0?null:g("ul",{class:["".concat(i.value,"-head-menu__submenu"),"".concat(i.value,"-submenu")]},[g(lN,{value:m.value,onChange:j},sN(U=E.map(function(H){var L;return g(oN,{value:H.value,label:(L=H.vnode()[0])===null||L===void 0?void 0:L.children},null)}))?U:{default:function(){return[U]}})])},A=G(),R=G(),k=G(),M=G(),V=function W(U,H){U.forEach(function(L){var z,K,Y,q,X=(z=L.props)===null||z===void 0?void 0:z.value;if((((K=L.type)===null||K===void 0?void 0:K.name)==="TSubmenu"||((Y=L.type)===null||Y===void 0?void 0:Y.name)==="TMenuItem")&&D.add(yf({value:X,parent:H,vnode:L.children.default},L.props)),pe((q=L.children)===null||q===void 0?void 0:q.default)){W(L.children.default(),X);return}ke(L.children)&&W(L.children,X)})};return V(((a=(r=n.slots).default)===null||a===void 0?void 0:a.call(r))||((l=(o=n.slots).content)===null||l===void 0?void 0:l.call(o))||[]),function(){var W,U,H,L,z,K,Y,q,X,J,Z,oe,se=((W=e.logo)===null||W===void 0?void 0:W.call(e,He))||((U=(H=n.slots).logo)===null||U===void 0?void 0:U.call(H)),me=((L=e.operations)===null||L===void 0?void 0:L.call(e,He))||((z=(K=n.slots).operations)===null||z===void 0?void 0:z.call(K))||((Y=(q=n.slots).options)===null||Y===void 0?void 0:Y.call(q)),Te=((X=(J=n.slots).default)===null||X===void 0?void 0:X.call(J))||((Z=(oe=n.slots).content)===null||Z===void 0?void 0:Z.call(oe))||[];return g("div",{class:x.value},[g("div",{class:"".concat(i.value,"-head-menu__inner"),ref:R},[se&&g("div",{class:"".concat(i.value,"-menu__logo"),ref:k},[se]),g("ul",{class:"".concat(i.value,"-menu"),ref:A},[Te]),me&&g("div",{class:"".concat(i.value,"-menu__operations"),ref:M},[me])]),S.value==="normal"&&P()])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var dN={content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,href:{type:String,default:""},icon:{type:Function},replace:Boolean,router:{type:Object},routerLink:Boolean,target:{type:String,default:"_self",validator:function(e){return e?["_blank","_self","_parent","_top"].includes(e):!0}},to:{type:[String,Object]},value:{type:[String,Number]},onClick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function fN(t,e){var n;Be(e)&&(n=AM(e));for(var a=arguments.length,r=new Array(a>2?a-2:0),l=2;l<a;l++)r[l-2]=arguments[l];if(pe(t.$props[n])){var o;(o=t.$props)[n].apply(o,r)}else t.$emit.apply(t,[e].concat(r))}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Cf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function wf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function gN(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var hN=ne({name:"TMenuItem",props:wf({},dN),emits:["click"],setup:function(e,n){var a=_e(e),r=a.href,l=a.target,o=ee(),i=vt("TdMenu"),u=G();fr(u);var c=vt("TdSubmenu",null),v=B(function(){return i.activeValue.value===e.value}),s=B(function(){var f;return(f=i.collapsed)===null||f===void 0?void 0:f.value}),d=B(function(){return["".concat(o.value,"-menu__item"),N(N(N(N({},"".concat(o.value,"-is-active"),v.value),"".concat(o.value,"-is-disabled"),e.disabled),"".concat(o.value,"-menu__item--plain"),!n.slots.icon&&!e.icon),"".concat(o.value,"-submenu__item"),!!c&&!i.isHead)]});return Ae(function(){var f;i==null||(f=i.vMenu)===null||f===void 0||f.add(wf({value:e.value,parent:c==null?void 0:c.value,vnode:n.slots.default},e))}),{classPrefix:o,menu:i,active:v,collapsed:s,classes:d,itemRef:u,href:r,target:l,submenu:c}},methods:{handleClick:function(e){var n,a;if(e.stopPropagation(),!this.disabled){if(this.menu.select(this.value),fN(this,"click",{e,value:this.value}),this.to||this.routerLink&&this.href){var r=this.router||this.$router,l=this.replace?"replace":"push";r[l](this.to||this.href).catch(function(o){if(o.name!=="NavigationDuplicated"&&!o.message.includes("Avoided redundant navigation to current location"))throw o})}(n=this.submenu)===null||n===void 0||(a=n.closeParentPopup)===null||a===void 0||a.call(n,e)}}},render:function(){var e=this,n=this.router||this.$router,a=g("li",{ref:"itemRef",class:this.classes,onClick:this.handleClick},[Bt(this,"icon"),this.routerLink?g("a",{href:this.href?this.href:this.to?n==null?void 0:n.resolve(this.to).href:"",target:this.target,class:"".concat(this.classPrefix,"-menu__item-link"),onClick:function(i){return i.preventDefault()}},[g("span",{class:"".concat(this.classPrefix,"-menu__content")},[kn(this,"default","content")])]):this.href?g("a",{href:this.href,target:this.target,class:"".concat(this.classPrefix,"-menu__item-link"),onClick:function(i){return e.disabled&&i.preventDefault()}},[g("span",{class:"".concat(this.classPrefix,"-menu__content")},[kn(this,"default","content")])]):g("span",{class:"".concat(this.classPrefix,"-menu__content")},[kn(this,"default","content")])]),r=It(),l=r.parent;return this.collapsed&&/tmenu/i.test(l==null?void 0:l.type.name)?g(er,{content:function(){return kn(e,"default","content")},placement:"right"},gN(a)?a:{default:function(){return[a]}}):a}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var mN={title:{type:[String,Function]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var pN=ne({name:"TMenuGroup",props:mN,setup:function(){var e=ee();return{classPrefix:e}},render:function(){var e=this.classPrefix;return g("div",{class:"".concat(e,"-menu-group")},[g("div",{class:"".concat(e,"-menu-group__title")},[this.title]),Bt(this,"default")])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var W9=ye(KM),U9=ye(vN),Y9=ye(cN),G9=ye(hN);ye(pN);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var bN={align:{type:String,default:"left",validator:function(e){return e?["left","center","right"].includes(e):!0}},allowInputOverMax:Boolean,autoWidth:Boolean,autocomplete:{type:String,default:void 0},autofocus:Boolean,borderless:Boolean,clearable:Boolean,disabled:Boolean,format:{type:Function},inputClass:{type:[String,Object,Array]},label:{type:[String,Function]},maxcharacter:{type:Number},maxlength:{type:[String,Number]},name:{type:String,default:""},placeholder:{type:String,default:void 0},prefixIcon:{type:Function},readonly:Boolean,showClearIconOnEmpty:Boolean,showLimitNumber:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,default:void 0,validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tips:{type:[String,Function]},type:{type:String,default:"text",validator:function(e){return e?["text","number","url","tel","password","search","submit","hidden"].includes(e):!0}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onCompositionend:Function,onCompositionstart:Function,onEnter:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onValidate:Function,onWheel:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Jt(t){var e=It(),n=B(function(){return e.props.disabled}),a=vt("formDisabled",Object.create(null)),r=a.disabled;return B(function(){return n.value||(r==null?void 0:r.value)||(t==null?void 0:t.value)||!1})}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var yy=function(){var e=ee();return B(function(){var n="".concat(e.value,"-form"),a="".concat(e.value,"-input"),r="".concat(e.value,"-is");return{form:n,label:"".concat(n,"__label"),labelTop:"".concat(n,"__label--top"),inline:"".concat(n,"-inline"),formItem:"".concat(n,"__item"),formItemWithHelp:"".concat(n,"__item-with-help"),formItemWithExtra:"".concat(n,"__item-with-extra"),controls:"".concat(n,"__controls"),controlsContent:"".concat(n,"__controls-content"),status:"".concat(n,"__status"),extra:"".concat(a,"__extra"),help:"".concat(a,"__help"),success:"".concat(r,"-success"),successBorder:"".concat(n,"--success-border"),error:"".concat(r,"-error"),warning:"".concat(r,"-warning")}})},la=function(t){return t.TO_BE_VALIDATED="not",t.SUCCESS="success",t.FAIL="fail",t}(la||{}),Cy=Symbol("FormProvide"),zs=Symbol("FormItemProvide");/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function yN(t){var e=function(i){var u=t.value,c=u.allowInputOverMax,v=u.maxlength,s=u.maxcharacter;if(!(v||s)||c||!i)return i;if(v)return Zw(i,v);if(s){var d=Cv(i,s);if(Ve(d))return d.characters}},n=B(function(){var o=t.value,i=o.maxlength,u=o.maxcharacter,c=o.value;if(ct(c))return String(c);if(i&&u&&We.warn("Input","Pick one of maxlength and maxcharacter please."),i){var v=c!=null&&c.length?Jw(c):0;return"".concat(v,"/").concat(i)}return u?"".concat(Cv(c||""),"/").concat(u):""}),a=B(function(){if(n.value){var o=n.value.split("/"),i=be(o,2),u=i[0],c=i[1];return Number(u)>Number(c)?"error":""}return""}),r=B(function(){var o=t.value.status;return o||a.value}),l=function(){var i,u;(i=(u=t.value).onValidate)===null||i===void 0||i.call(u,{error:a.value?"exceed-maximum":void 0})};return le(a,l),Ae(function(){a.value&&l()}),{tStatus:r,limitNumber:n,getValueByLimitNumber:e}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ui(t,e){return e==="number"?t||t===0?Number(t):void 0:t}function CN(t,e){var n=_e(t),a=n.value,r=n.modelValue,l=G(),o=G(!1),i=G(),u=G(null),c=G(),v=Jt(),s=ht(a,r,t.defaultValue,t.onChange),d=be(s,2),f=d[0],p=d[1],h=G(!1),m=G(!1),b=G(t.type),y=G(null),C=B(function(){return{value:[void 0,null].includes(f.value)?void 0:String(f.value),status:t.status,maxlength:Number(t.maxlength),maxcharacter:t.maxcharacter,allowInputOverMax:t.allowInputOverMax,onValidate:t.onValidate}}),O=yN(C),_=O.limitNumber,$=O.getValueByLimitNumber,I=O.tStatus,x=B(function(){return(f.value&&!v.value&&t.clearable&&!t.readonly||t.showClearIconOnEmpty)&&h.value}),S=function(){var L;m.value=!0,(L=y.value)===null||L===void 0||L.focus()},E=function(){var L;m.value=!1,(L=y.value)===null||L===void 0||L.blur()},D=function(L){var z;h.value&&m.value||(l.value=f.value,!t.disabled&&(m.value=!0,(z=t.onFocus)===null||z===void 0||z.call(t,f.value,{e:L})))},j=function(L){var z,K=L.e,Y=t.type==="number"?void 0:"";p(Y,{e:K,trigger:"clear"}),(z=t.onClear)===null||z===void 0||z.call(t,{e:K})},T=function(L){c.value=L.target},F=function(){var L=b.value==="password"?"text":"password";b.value=L},w=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=y.value;if(z){var K=String(L);z.value&&z.value!==K&&(z.value=K)}},P=function(L){var z,K=L.target,Y=K.value;t.type!=="number"&&typeof f.value=="string"&&Y.length>((z=f.value)===null||z===void 0?void 0:z.length)&&(Y=$(Y)),p(ui(Y,t.type),{e:L,trigger:"input"}),Je(function(){w(f.value)})},A=function(L){var z=L.inputType&&L.inputType==="insertCompositionText",K=L.currentTarget.value;if(z||o.value){i.value=K;return}P(L)},R=function(){var L,z=c.value;if(!z||!z.tagName||!((L=u.value)!==null&&L!==void 0&&L.$el)||!["path","svg"].includes(z.tagName))return!1;for(;z;){var K;if(((K=u.value)===null||K===void 0?void 0:K.$el)===z)return!0;z=z.parentNode}return!1},k=vt(zs,void 0),M=function(L){if(!h.value)if(R())S();else{var z;t.format&&(l.value=typeof f.value=="number"||t.type==="number"?f.value:t.format(f.value)),m.value=!1,(z=t.onBlur)===null||z===void 0||z.call(t,f.value,{e:L}),k==null||k.handleBlur()}},V=function(L){var z;o.value=!1,i.value="",P(L),(z=t.onCompositionend)===null||z===void 0||z.call(t,String(f.value),{e:L})},W=function(L){var z;o.value=!0;var K=L.currentTarget.value;i.value=K,(z=t.onCompositionstart)===null||z===void 0||z.call(t,String(f.value),{e:L})},U=function(L){var z,K;(z=y.value)===null||z===void 0||z.focus(),(K=t.onClick)===null||K===void 0||K.call(t,{e:L})};return le(function(){return t.autofocus},function(H){H===!0&&Je(function(){var L;(L=y.value)===null||L===void 0||L.focus()})},{immediate:!0}),le(f,function(H,L){var z=t.type==="number";L===void 0&&t.format&&typeof H!="number"&&!z?l.value=t.format(H):l.value=H;var K=typeof H=="number"?H:$(H);K!==H&&!z&&p(K,{trigger:"initial"})},{immediate:!0}),le(function(){return t.type},function(H){b.value=H},{immediate:!0}),e({inputRef:y,focus:S,blur:E}),{isHover:h,focused:m,renderType:b,showClear:x,inputRef:y,clearIconRef:u,inputValue:l,isComposition:o,compositionValue:i,limitNumber:_,tStatus:I,emitFocus:D,formatAndEmitBlur:M,onHandleCompositionend:V,onHandleCompositionstart:W,onRootClick:U,emitPassword:F,handleInput:A,emitClear:j,onClearIconMousedown:T,innerValue:f}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function wN(t,e){var n=function(s){if(!t.disabled){var d=s.code,f=ui(s.currentTarget.value,t.type);if(/enter/i.test(d)||/enter/i.test(s.key)){var p;(p=t.onEnter)===null||p===void 0||p.call(t,f,{e:s})}else{var h;(h=t.onKeydown)===null||h===void 0||h.call(t,f,{e:s})}}},a=function(s){var d;if(!t.disabled){var f=ui(s.currentTarget.value,t.type);(d=t.onKeyup)===null||d===void 0||d.call(t,f,{e:s})}},r=function(s){var d;if(!t.disabled){var f=ui(s.currentTarget.value,t.type);(d=t.onKeypress)===null||d===void 0||d.call(t,f,{e:s})}},l=function(s){var d;if(!t.disabled){var f=s.clipboardData||window.clipboardData;(d=t.onPaste)===null||d===void 0||d.call(t,{e:s,pasteValue:f==null?void 0:f.getData("text/plain")})}},o=function(s){return e.value=s},i=function(s){var d;return(d=t.onWheel)===null||d===void 0?void 0:d.call(t,{e:s})},u=function(s){var d;o(!0),(d=t.onMouseenter)===null||d===void 0||d.call(t,{e:s})},c=function(s){var d;o(!1),(d=t.onMouseleave)===null||d===void 0||d.call(t,{e:s})};return{isHover:e,handleKeydown:n,handleKeyUp:a,handleKeypress:r,onHandlePaste:l,onHandleMousewheel:i,onInputMouseenter:u,onInputMouseleave:c}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var ON=100;function _N(t,e,n){var a=_e(t),r=a.autoWidth,l=a.placeholder,o=G(null),i=G(null),u=function(){if(!(!o.value||!e.value)){var s=o.value.getBoundingClientRect(),d=s.width;e.value.style.width="".concat(d||0,"px")}};bo(e,function(){r.value&&(i.value=setTimeout(function(){u(),clearTimeout(i.value)},ON))}),Ft(function(){clearTimeout(i.value)});var c=function(){le([n,l],function(){r.value&&Je(function(){u()})},{immediate:!0})};return Ae(function(){r.value&&c()}),{inputPreRef:o}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var SN=["isHover","tStatus","inputRef","renderType","showClear","focused","inputValue","isComposition","compositionValue","innerValue","limitNumber"];function Of(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function _f(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Of(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function Sf(t){var e={};return Object.keys(t).forEach(function(n){Xt(t[n])||(e[n]=t[n])}),e}var xN=ne({name:"TInput",props:_f(_f({},bN),{},{showInput:{type:Boolean,default:!0},keepWrapperWidth:{type:Boolean,default:!1}}),setup:function(e,n){var a=n.expose,r=Ke("input"),l=r.globalConfig,o=at({BrowseIcon:ls,BrowseOffIcon:IC,CloseCircleFilledIcon:co}),i=o.BrowseIcon,u=o.BrowseOffIcon,c=o.CloseCircleFilledIcon,v=Jt(),s=ee("input"),d=ee("input__wrap"),f=ee("input__tips"),p=ft(),h=p.STATUS,m=p.SIZE,b=ee(),y=xe(),C=CN(e,a),O=C.isHover,_=C.tStatus,$=C.inputRef,I=C.renderType,x=C.showClear,S=C.focused,E=C.inputValue,D=C.isComposition,j=C.compositionValue,T=C.innerValue,F=C.limitNumber,w=cr(C,SN),P=_N(e,$,T),A=P.inputPreRef,R=wN(e,O),k=B(function(){var U;return(U=e.placeholder)!==null&&U!==void 0?U:l.value.placeholder}),M=B(function(){var U;return Sf({autofocus:e.autofocus,disabled:v.value,readonly:e.readonly,placeholder:k.value,maxlength:!e.allowInputOverMax&&e.maxlength||void 0,name:e.name||void 0,type:I.value,autocomplete:(U=e.autocomplete)!==null&&U!==void 0?U:l.value.autocomplete||void 0,unselectable:e.readonly?"on":void 0})}),V=B(function(){return[d.value,N({},"".concat(s.value,"--auto-width"),e.autoWidth&&!e.keepWrapperWidth)]}),W=Sf({onFocus:w.emitFocus,onBlur:w.formatAndEmitBlur,onKeydown:R.handleKeydown,onKeyup:R.handleKeyUp,onKeypress:R.handleKeypress,onPaste:R.onHandlePaste,onCompositionend:w.onHandleCompositionend,onCompositionstart:w.onHandleCompositionstart});return function(){var U,H,L=y("prefixIcon"),z=y("suffixIcon"),K=y("passwordIcon"),Y=y("label",{silent:!0}),q=y("suffix"),X=F.value&&e.showLimitNumber?g("div",{class:["".concat(b.value,"-input__limit-number"),N({},"".concat(b.value,"-is-disabled"),v.value)]},[F.value]):null,J=Y?g("div",{class:"".concat(s.value,"__prefix")},[Y]):null,Z=q||X?g("div",{class:"".concat(s.value,"__suffix")},[q,X]):null;e.type==="password"&&(I.value==="password"?z=g(u,{class:"".concat(s.value,"__suffix-clear"),onClick:w.emitPassword},null):I.value==="text"&&(z=g(i,{class:"".concat(s.value,"__suffix-clear"),onClick:w.emitPassword},null))),x.value&&(e.type==="password"?K=g(c,{ref:w.clearIconRef,class:"".concat(s.value,"__suffix-clear"),onClick:w.emitClear,onMousedown:w.onClearIconMousedown},null):z=g(c,{ref:w.clearIconRef,class:"".concat(s.value,"__suffix-clear"),onClick:w.emitClear,onMousedown:w.onClearIconMousedown},null));var oe=[s.value,e.inputClass,N(N(N(N(N(N(N(N(N({},m.value[e.size],e.size!=="medium"),h.value.disabled,v.value),h.value.focused,S.value),"".concat(b.value,"-is-").concat(_.value),_.value&&_.value!=="default"),"".concat(b.value,"-align-").concat(e.align),e.align!=="left"),"".concat(b.value,"-is-readonly"),e.readonly),"".concat(s.value,"--prefix"),L||J),"".concat(s.value,"--suffix"),z||Z),"".concat(s.value,"--focused"),S.value)],se=y("tips"),me=[f.value,"".concat(b.value,"-tips"),"".concat(b.value,"-is-").concat(_.value||"default")];return tr(g("div",{class:V.value},[g("div",{class:oe,onClick:w.onRootClick,onMouseenter:R.onInputMouseenter,onMouseleave:R.onInputMouseleave,onWheel:R.onHandleMousewheel},[L?g("span",{class:["".concat(s.value,"__prefix"),"".concat(s.value,"__prefix-icon")]},[L]):null,J,g("input",ve({class:["".concat(s.value,"__inner"),N({},"".concat(s.value,"--soft-hidden"),!e.showInput)]},M.value,W,{ref:$,value:D.value?(U=j.value)!==null&&U!==void 0?U:"":(H=E.value)!==null&&H!==void 0?H:"",onInput:function(Ie){return w.handleInput(Ie)}}),null),e.autoWidth&&g("span",{ref:A,class:"".concat(b.value,"-input__input-pre")},[T.value||k.value]),Z,K?g("span",{class:["".concat(s.value,"__suffix"),"".concat(s.value,"__suffix-icon"),"".concat(s.value,"__clear")]},[K]):null,z?g("span",{class:["".concat(s.value,"__suffix"),"".concat(s.value,"__suffix-icon"),N({},"".concat(s.value,"__clear"),x.value)]},[z]):null]),se&&g("div",{class:me},[se])]),[[el,e.type!=="hidden"]])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var PN={separate:Boolean};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var EN=ne({name:"TInputGroup",props:PN,setup:function(e){var n=ee("input-group"),a=xe(),r=B(function(){return[n.value,N({},"".concat(n.value,"--separate"),e.separate)]});return function(){return g("div",{class:r.value},[a("default")])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var ja=ye(xN);ye(EN);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var TN={align:{type:String,validator:function(e){return e?["left","center","right"].includes(e):!0}},allowInputOverLimit:{type:Boolean,default:!0},autoWidth:Boolean,decimalPlaces:{type:Number,default:void 0},disabled:Boolean,format:{type:Function},inputProps:{type:Object},label:{type:[String,Function]},largeNumber:Boolean,max:{type:[String,Number],default:1/0},min:{type:[String,Number],default:-1/0},placeholder:{type:String,default:void 0},readonly:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},step:{type:[String,Number],default:1},suffix:{type:[String,Function]},theme:{type:String,default:"row",validator:function(e){return e?["column","row","normal"].includes(e):!0}},tips:{type:[String,Function]},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onEnter:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onValidate:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ao(t){return new Array(t).fill(0).join("")}function wy(t){if(!t)return!0;if(ct(t))return!Number.isNaN(t);var e=/^[0-9|e|E|-]+\.*[0-9|e|E|-]*$/.test(t);if(!e)return!1;for(var n=0,a=0,r=0,l=0,o=t.length;l<o;l++)if(t[l]==="."&&(r+=1,r>1)||/(e|E)+/.test(t[l])&&(n+=1,n>1)||t[l]==="-"&&(a+=1,a>2))return!1;return!0}function gn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t.indexOf(".")!==-1?(We.error("InputNumber","num is not a integer number."),t):!t||t==="0"&&e?"":t==="0"?t:(e?t.replace(/0+$/,""):t.replace(/^0+/,""))||"0"}function Bu(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=gn(t,n),r=gn(e,n),l=a.length>r.length,o=l?a:r,i=l?r:a,u=[],c=[],v=n?0:o.length-i.length,s=n?i.length:o.length,d=s-1;d>=0;d--){var f=d-v,p=Number(o[d])+(Number(i[f])||0)+(c[d]||0);p>=10&&(c[d-1]=1),u.unshift(String(p%10))}return c[-1]&&u.unshift("1"),n?u.concat(o.slice(s,o.length)).join(""):u.join("")}function Ur(t,e){var n=t.split("."),a=be(n,2),r=a[0],l=r===void 0?"0":r,o=a[1],i=o===void 0?"0":o,u=e.split("."),c=be(u,2),v=c[0],s=v===void 0?"0":v,d=c[1],f=d===void 0?"0":d,p=Bu(l,s);if(i==="0"&&f==="0")return p;var h=gn(i,!0),m=gn(f,!0),b=Bu(h,m,!0),y=b.length;return y>h.length&&y>m.length?[gn(Bu(p,"1")),gn(b.slice(1),!0)].filter(function(C){return C}).join("."):[gn(p),gn(b,!0)].filter(function(C){return C}).join(".")}function Oy(t,e){var n=gn(t),a=gn(e);if(n.length===a.length){for(var r=0,l=n.length;r<l;r++){if(n[r]>a[r])return 1;if(n[r]<a[r])return-1}return 0}return n.length>a.length?1:-1}function _y(t,e){for(var n=t&&t!=="0"?t.replace(/0+$/,""):"0",a=e&&e!=="0"?e.replace(/0+$/,""):"0",r=Math.max(n.length,a.length),l=0,o=r;l<o;l++){if((n[l]||0)>(a[l]||0))return 1;if((n[l]||0)<(a[l]||0))return-1}return 0}function kc(t){var e=t.split("e"),n=be(e,2),a=n[0],r=n[1];if(!r)return t;var l=t.split("."),o=be(l,2),i=o[0],u=o[1],c=u===void 0?"":u,v=Number(r),s=c.split("e"),d=be(s,1),f=d[0];if(v>f.length){var p=ao(v-f.length);return a.replace(/(^0+|\.)/g,"")+p}var h=i.replace(/^0+/,"")+f.slice(0,v),m=f.slice(v);return m?[h,m].join("."):h}function DN(t,e){var n=kc(t).split("."),a=be(n,2),r=a[0],l=a[1],o=kc(e).split("."),i=be(o,2),u=i[0],c=i[1],v=Oy(r.replace("-",""),u.replace("-","")),s=r.includes("-"),d=u.includes("-");return s&&!d?-1:!s&&d?1:s&&d?v===0?0:v>0?-1:1:v===0?_y(l,c):v}function xf(t){return[-1/0,1/0].includes(Number(t))}function Pf(t){return Number(t)<Number.MAX_SAFE_INTEGER&&Number(t)>Number.MIN_SAFE_INTEGER}function lr(t,e,n){var a=Pf(t)&&Pf(e)&&!n,r=xf(t)||xf(e);return a||r?Number(t)===Number(e)?0:Number(t)>Number(e)?1:-1:DN(String(t),String(e))}function Sl(t,e,n){if(t===e)return"0";for(var a=n||{},r=a.decimal,l=a.stayZero,o=gn(t),i=gn(e),u=Oy(o,i)>0,c=u?o:i,v=u?i:o,s=[],d=[],f=r?0:c.length-v.length,p=r?v.length:c.length,h=p-1;h>=0;h--){var m=h-f,b=Number(c[h])-(Number(v[m])||0)-(d[h]||0);b<0&&(d[h-1]=1,b+=10),s.unshift(String(b))}if(r)return s.concat(c.slice(p,c.length)).join("");var y=s.join("");return l||(y=y.replace(/^0+/,"")),gn(u?y:"-".concat(y))}function Si(t,e){if(t===e)return"0";var n=lr(t,e,!0)>0,a=n?t:e,r=n?e:t,l=a.split("."),o=be(l,2),i=o[0],u=o[1],c=u===void 0?"0":u,v=r.split("."),s=be(v,2),d=s[0],f=s[1],p=f===void 0?"0":f,h=Sl(i,d);if(c==="0"&&p==="0")return n?h:"-".concat(h);var m="",b=c;c.length<p.length&&(b="".concat(c).concat(ao(p.length-c.length))),_y(b,p)>=0?m=Sl(b,p,{decimal:!0}):(c.length<p.length||c==="0"?(m=Sl("1".concat(b),p,{stayZero:!0}),m=ao(p.length-m.length)+m):m=Sl(c,p,{decimal:!0}),h=Sl(h,"1"));var y=m?[h,m].join("."):h;return n?y:"-".concat(y)}function IN(t,e){var n=t[0]==="-",a=e[0]==="-";if(n&&!a){var r=Ur(t.slice(1),e);return"-".concat(r)}return n&&a?Si(e.slice(1),t.slice(1)):!n&&a?Ur(t,e.slice(1)):Si(t,e)}function jN(t,e){var n=t[0]==="-",a=e[0]==="-";if(n&&!a)return Si(e,t.slice(1));if(n&&a){var r=Ur(e.slice(1),t.slice(1));return"-".concat(r)}return!n&&a?Si(t,e.slice(1)):Ur(t,e)}function xi(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!n)return Number(t).toFixed(e);if(!Be(t))return String(t);var a=t.split("."),r=be(a,2),l=r[0],o=r[1];if(!o)return e?[t,ao(e)].join("."):t;if(e===0)return Number(o[0])>=5?Ur(l,"1"):l;var i=o.slice(0,e);return o.length<e?i+=ao(e-o.length):i=Number(o[e])>=5?Ur(i,"1"):i,[l,i].join(".")}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function $N(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t&&t!==0?!0:n&&Be(t)?lr(t,e,n)<0:t<e}function FN(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t&&t!==0?!0:n&&Be(t)?lr(t,e,n)>0:t>e}function kN(t,e){if(t!==""){var n=e.max,a=e.min,r=e.lastValue,l=e.largeNumber;return wy(t)?l&&(Be(n)||n===1/0)&&(Be(a)||a===-1/0)?lr(n,t,l)<0?n:lr(a,t,l)>0?a:t:Math.max(Number(a),Math.min(Number(n),Number(t))):r}}function ro(t,e){var n,a;if(!t||!e)return(t||0)+(e||0);var r=((n=t.toString().split(".")[1])===null||n===void 0?void 0:n.length)||0,l=((a=e.toString().split(".")[1])===null||a===void 0?void 0:a.length)||0;if(!r&&!l)return t+e;var o=t,i=e,u=Math.abs(r-l),c=Math.pow(10,Math.max(r,l));if(u>0){var v=Math.pow(10,u);r>l?(o=Number(t.toString().replace(".","")),i=Number(e.toString().replace(".",""))*v):(o=Number(t.toString().replace(".",""))*v,i=Number(e.toString().replace(".","")))}else o=Number(t.toString().replace(".","")),i=Number(e.toString().replace(".",""));return(o+i)/c}function lo(t,e){var n,a;if(!t||!e)return(t||0)-(e||0);var r=((n=t.toString().split(".")[1])===null||n===void 0?void 0:n.length)||0,l=((a=e.toString().split(".")[1])===null||a===void 0?void 0:a.length)||0,o=Math.pow(10,Math.max(r,l)),i=r>=l?r:l;return Number(((t*o-e*o)/o).toFixed(i))}function AN(t,e){return t<0&&e>0?lo(e,Math.abs(t)):t<0&&e<0?ro(Math.abs(t),Math.abs(e))*-1:t>0&&e<0?lo(t,Math.abs(e)):ro(t,e)}function RN(t,e){return t<0&&e>0?ro(Math.abs(t),e)*-1:t<0&&e<0?lo(Math.abs(e),Math.abs(t)):t>0&&e<0?ro(t,Math.abs(e)):lo(t,e)}function MN(t){var e=t.op,n=t.step,a=t.lastValue,r=t.max,l=t.min,o=t.largeNumber;if(n<=0)return We.error("InputNumber","step must be larger than 0."),a;var i=ct(n)?String(n):n,u;return e==="add"?o&&Be(a)?u=jN(String(a),String(i)):u=AN(Number(a||0),Number(n)):e==="reduce"&&(o&&Be(a)?u=IN(String(a),String(i)):u=RN(Number(a||0),Number(n))),Xt(a)&&(u=kN(u,{max:r,min:l,lastValue:a,largeNumber:o})),o?u:Number(u)}function Vu(t){var e=t.largeNumber,n=t.value,a=t.max,r=t.min;if(!Xt(e)){e&&ct(n)&&We.warn("InputNumber","largeNumber value must be a string.");var l;return lr(n,a,e)>0?l="exceed-maximum":lr(n,r,e)<0?l="below-minimum":l=void 0,l}}var NN=["-",".","e","E","+"];function LN(t,e){var n;if(["",null,void 0].includes(t))return!0;if(t.slice(0,2)==="00"||((n=t.match(/\./g))===null||n===void 0?void 0:n.length)>1)return!1;var a=t.slice(1);if(/(\+|-)/.test(a)&&!/e+/i.test(a))return!1;var r=e&&wy(t)||!Number.isNaN(Number(t));return!(!r&&!NN.includes(t.slice(-1))||/e/i.test(t)&&!/\de/i.test(t))}function BN(t,e){return parseFloat(t)!==e&&!Number.isNaN(Number(t))}function Hu(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(["",null,void 0].includes(t)||!/\d+/.test(t))){var n=e.decimalPlaces,a=e.largeNumber,r=e.isToFixed,l=t.replace(/[.|+|\-|e]$/,"");return a&&(l=kc(l)),n!==void 0&&(l=xi(l,n,a)),a||r?l:parseFloat(l)}}function VN(t){var e=/^[-+]?\d{1,3}(,\d{3})*(\.(\d*))?$/;return e.test(t)?t.replace(/,/g,""):t}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function HN(t){var e=Ls(),n=e.classPrefix,a=e.sizeClassNames,r=e.statusClassNames,l=_e(t),o=l.value,i=l.modelValue,u=l.max,c=l.min,v=ht(o,i,t.defaultValue,t.onChange),s=be(v,2),d=s[0],f=s[1],p=G(),h=G(""),m=Jt(),b=G(),y=B(function(){return m.value||!FN(d.value,t.min,t.largeNumber)}),C=B(function(){return m.value||!$N(d.value,t.max,t.largeNumber)}),O=B(function(){return["".concat(n.value,"-input-number"),a[t.size],N(N(N(N({},r.disabled,m.value),"".concat(n.value,"-is-controls-right"),t.theme==="column"),"".concat(n.value,"-input-number--").concat(t.theme),t.theme),"".concat(n.value,"-input-number--auto-width"),t.autoWidth)]}),_=B(function(){return["".concat(n.value,"-input-number__decrease"),N({},r.disabled,y.value)]}),$=B(function(){return["".concat(n.value,"-input-number__increase"),N({},r.disabled,C.value)]}),I=function(W){var U;if(!W&&W!==0)return"";var H=W||W===0?String(W):"";if(!((U=p.value)!==null&&U!==void 0&&(U=U.inputRef)!==null&&U!==void 0&&U.contains(document.activeElement))){var L=Hu(H,{decimalPlaces:t.decimalPlaces,largeNumber:t.largeNumber,isToFixed:!0});H=L||L===0?String(L):"",t.format&&(H=String(t.format(W,{fixedNumber:H})))}return H};le(d,function(V){var W=t.largeNumber,U=t.decimalPlaces,H=[void 0,null].includes(V)?"":String(V);if(!W&&!Number.isNaN(h.value)){parseFloat(h.value)!==V&&(h.value=I(H));var L=Number(xi(H,U,W));U!==void 0&&![void 0,null].includes(V)&&Number(L)!==Number(d.value)&&f(L,{type:"props",e:void 0})}W&&(h.value=I(H),U!==void 0&&xi(H,U,W)!==V&&f(h.value,{type:"props",e:void 0}))},{immediate:!0}),le([d,u,c],function(){var V;if(![void 0,"",null].includes(d.value)){var W=t.max,U=t.min,H=t.largeNumber,L=Vu({value:d.value,largeNumber:H,max:W,min:U});b.value=L,(V=t.onValidate)===null||V===void 0||V.call(t,{error:L})}},{immediate:!0});var x=function(W){var U=MN({op:W,step:t.step,max:t.max,min:t.min,lastValue:d.value,largeNumber:t.largeNumber}),H=t.largeNumber,L=t.max,z=t.min,K=Vu({value:U,largeNumber:H,max:L,min:z});return{overLimit:K,newValue:U}},S=function(W){if(!(y.value||t.readonly)){var U=x("reduce");U.overLimit&&!t.allowInputOverLimit||f(U.newValue,{type:"reduce",e:W})}},E=function(W){if(!(C.value||t.readonly)){var U=x("add");U.overLimit&&!t.allowInputOverLimit||f(U.newValue,{type:"add",e:W})}},D=function(W,U){var H=U.e,L=VN(W);if(LN(L,t.largeNumber)){if(h.value=L,t.largeNumber){f(L,{type:"input",e:H});return}if(BN(String(L),Number(d.value))){var z=L===""?void 0:Number(L);f(z,{type:"input",e:H})}}},j=function(W,U){var H,L=t.largeNumber,z=t.max,K=t.min,Y=t.decimalPlaces;if(!t.allowInputOverLimit&&d.value!==void 0){var q=Vu({value:d.value,largeNumber:L,max:z,min:K});if(q==="below-minimum"){var X;f(K,{type:"blur",e:U.e}),(X=t.onBlur)===null||X===void 0||X.call(t,K,U);return}if(q==="exceed-maximum"){var J;f(z,{type:"blur",e:U.e}),(J=t.onBlur)===null||J===void 0||J.call(t,z,U);return}}var Z=Hu(W,{decimalPlaces:Y,largeNumber:L});h.value=I(Z),Z!==d.value&&f(Z,{type:"blur",e:U.e}),(H=t.onBlur)===null||H===void 0||H.call(t,Z,U)},T=function(W,U){var H;h.value=d.value||d.value===0?String(d.value):"",(H=t.onFocus)===null||H===void 0||H.call(t,W,U)},F=function(W,U){var H;if(!m.value){var L=U.e,z={ArrowUp:E,ArrowDown:S},K=L.code||L.key;z[K]!==void 0&&z[K](L),(H=t.onKeydown)===null||H===void 0||H.call(t,W,U)}},w=function(W,U){var H;(H=t.onKeyup)===null||H===void 0||H.call(t,W,U)},P=function(W,U){var H;(H=t.onKeypress)===null||H===void 0||H.call(t,W,U)},A=function(W,U){var H;h.value=I(W);var L=Hu(W,{decimalPlaces:t.decimalPlaces,largeNumber:t.largeNumber});L!==W&&String(L)!==W&&f(L,{type:"enter",e:U.e}),(H=t.onEnter)===null||H===void 0||H.call(t,L,U)},R=function(){p.value.focus()},k=function(){p.value.blur()},M={onBlur:j,onFocus:T,onKeydown:F,onKeyup:w,onKeypress:P,onEnter:A,onClick:R};return{classPrefix:n,wrapClasses:O,reduceClasses:_,addClasses:$,tDisabled:m,isError:b,listeners:M,userInput:h,tValue:d,inputRef:p,focus:R,blur:k,handleReduce:S,handleAdd:E,onInnerInputChange:D}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Ef(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function KN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ef(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var zN=ne({name:"TInputNumber",props:TN,setup:function(e,n){var a=xe(),r=at({AddIcon:Ui,RemoveIcon:jC,ChevronDownIcon:Yi,ChevronUpIcon:pp}),l=r.AddIcon,o=r.RemoveIcon,i=r.ChevronDownIcon,u=r.ChevronUpIcon,c=HN(e),v=c.inputRef;return n.expose(KN({},c)),function(){var s=e.theme==="column"?g(i,{size:e.size},null):g(o,{size:e.size},null),d=e.theme==="column"?g(u,{size:e.size},null):g(l,{size:e.size},null),f=c.isError.value?"error":e.status,p=c.classPrefix.value,h=a("tips");return g("div",{class:c.wrapClasses.value},[e.theme!=="normal"&&g(Ot,{class:c.reduceClasses.value,disabled:c.tDisabled.value,onClick:c.handleReduce,variant:"outline",shape:"square",icon:function(){return s}},null),g(ja,ve({ref:v,disabled:c.tDisabled.value,readonly:e.readonly,autocomplete:"off",placeholder:e.placeholder,unselectable:e.readonly?"on":"off",autoWidth:e.autoWidth,align:e.align||(e.theme==="row"?"center":void 0),status:f,label:e.label,suffix:e.suffix},c.listeners,e.inputProps,{value:c.userInput.value,onChange:c.onInnerInputChange}),n.slots),e.theme!=="normal"&&g(Ot,{class:c.addClasses.value,disabled:c.tDisabled.value,onClick:c.handleAdd,variant:"outline",shape:"square",icon:function(){return d}},null),h&&g("div",{class:"".concat(p,"-input__tips ").concat(p,"-tips ").concat(p,"-is-").concat(f)},[h])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Ws=ye(zN);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var WN=ds,UN=fl,YN=au,Tf=Ve,GN=gl;function qN(t,e,n,a){if(!Tf(t))return t;e=UN(e,t);for(var r=-1,l=e.length,o=l-1,i=t;i!=null&&++r<l;){var u=GN(e[r]),c=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return t;if(r!=o){var v=i[u];c=a?a(v,u,i):void 0,c===void 0&&(c=Tf(v)?v:YN(e[r+1])?[]:{})}WN(i,u,c),i=i[u]}return t}var Sy=qN;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var XN=gu,JN=Sy,ZN=fl;function QN(t,e,n){for(var a=-1,r=e.length,l={};++a<r;){var o=e[a],i=XN(t,o);n(i,o)&&JN(l,ZN(o,t),i)}return l}var xy=QN;function eL(t,e){return t!=null&&e in Object(t)}var tL=eL,nL=fl,aL=so,rL=ke,lL=au,oL=fs,iL=gl;function uL(t,e,n){e=nL(e,t);for(var a=-1,r=e.length,l=!1;++a<r;){var o=iL(e[a]);if(!(l=t!=null&&n(t,o)))break;t=t[o]}return l||++a!=r?l:(r=t==null?0:t.length,!!r&&oL(r)&&lL(o,r)&&(rL(t)||aL(t)))}var cL=uL,sL=tL,vL=cL;function dL(t,e){return t!=null&&vL(t,e,sL)}var Py=dL,fL=xy,gL=Py;function hL(t,e){return fL(t,e,function(n,a){return gL(t,a)})}var mL=hL,pL=mL,bL=vy,yL=bL(function(t,e){return t==null?{}:pL(t,e)}),Ta=yL;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var CL=gu;function wL(t,e,n){var a=t==null?void 0:CL(t,e);return a===void 0?n:a}var fe=wL;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var OL="__lodash_hash_undefined__";function _L(t){return this.__data__.set(t,OL),this}var SL=_L;function xL(t){return this.__data__.has(t)}var PL=xL,EL=ss,TL=SL,DL=PL;function Pi(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new EL;++e<n;)this.add(t[e])}Pi.prototype.add=Pi.prototype.push=TL;Pi.prototype.has=DL;var hu=Pi;function IL(t,e,n,a){for(var r=t.length,l=n+(a?1:-1);a?l--:++l<r;)if(e(t[l],l,t))return l;return-1}var jL=IL;function $L(t){return t!==t}var FL=$L;function kL(t,e,n){for(var a=n-1,r=t.length;++a<r;)if(t[a]===e)return a;return-1}var AL=kL,RL=jL,ML=FL,NL=AL;function LL(t,e,n){return e===e?NL(t,e,n):RL(t,ML,n)}var BL=LL,VL=BL;function HL(t,e){var n=t==null?0:t.length;return!!n&&VL(t,e,0)>-1}var Us=HL;function KL(t,e,n){for(var a=-1,r=t==null?0:t.length;++a<r;)if(n(e,t[a]))return!0;return!1}var Ys=KL;function zL(t,e){return t.has(e)}var mu=zL;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var WL=hu,UL=Us,YL=Ys,GL=dr,qL=fo,Df=mu,XL=Math.min;function JL(t,e,n){for(var a=n?YL:UL,r=t[0].length,l=t.length,o=l,i=Array(l),u=1/0,c=[];o--;){var v=t[o];o&&e&&(v=GL(v,qL(e))),u=XL(v.length,u),i[o]=!n&&(e||r>=120&&v.length>=120)?new WL(o&&v):void 0}v=t[0];var s=-1,d=i[0];e:for(;++s<r&&c.length<u;){var f=v[s],p=e?e(f):f;if(f=n||f!==0?f:0,!(d?Df(d,p):a(c,p,n))){for(o=l;--o;){var h=i[o];if(!(h?Df(h,p):a(t[o],p,n)))continue e}d&&d.push(p),c.push(f)}}return c}var ZL=JL,QL=Cs;function eB(t){return QL(t)?t:[]}var tB=eB,nB=dr,aB=ZL,rB=lu,lB=tB,oB=rB(function(t){var e=nB(t,lB);return e.length&&e[0]===t[0]?aB(e):[]}),or=oB;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var iB={allowInput:Boolean,autoWidth:Boolean,autofocus:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},disabled:Boolean,inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number]},keys:{type:Object},label:{type:[String,Function]},loading:Boolean,minCollapsedNum:{type:Number,default:0},multiple:Boolean,panel:{type:[String,Function]},placeholder:{type:String,default:""},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:Boolean,readonly:Boolean,reserveKeyword:Boolean,status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tag:{type:[String,Function]},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Boolean,Object,Array,Date],default:void 0},valueDisplay:{type:[String,Function]},onBlur:Function,onClear:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onPopupVisibleChange:Function,onTagChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var uB=["tips"];function If(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function qt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?If(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var cB=["status","clearable","disabled","label","placeholder","readonly","suffix","suffixIcon","onPaste","onMouseenter","onMouseleave"],sB={label:"label",value:"value",children:"children"};function vB(t,e){var n=qt(qt({},sB),e);return Ve(t)?t[n.label]:t}function dB(t,e,n){var a,r=_e(t),l=r.value,o=r.keys,i=r.inputValue,u=ee(),c=G(t.autofocus),v=G(),s=Nt(i,(a=t.defaultInputValue)!==null&&a!==void 0?a:"",t.onInputChange,"inputValue"),d=be(s,2),f=d[0],p=d[1],h=xe(),m=Jt(),b=B(function(){return qt(qt({},Ta(t,cB)),{},{disabled:m.value})}),y=function(S){var E,D;S==null||(E=S.e)===null||E===void 0||E.stopPropagation(),(D=t.onClear)===null||D===void 0||D.call(t,S),p("",{trigger:"clear"})},C=function(S,E){t.allowInput&&p(S,qt(qt({},E),{},{trigger:E.trigger||"input"}))},O=function(S){var E,D=h("valueDisplay"),j=S&&t.allowInput?f.value:vB(l.value,o.value),T=_(D,S),F=qt(qt({},b.value),{},{value:$(D,j,S),label:T.length?function(){return T}:void 0,autoWidth:t.autoWidth,readonly:!t.allowInput||t.readonly,placeholder:I(D),suffixIcon:!m.value&&t.loading?function(){return g(bn,{loading:!0,size:"small"},null)}:t.suffixIcon,showClearIconOnEmpty:!!(t.clearable&&(f.value||j)&&!m.value&&!t.readonly)},t.inputProps),w=e.slots;w.tips;var P=cr(w,uB),A=S?["".concat(u.value,"-input--focused"),"".concat(u.value,"-is-focused"),F==null?void 0:F.inputClass]:F==null?void 0:F.inputClass,R=function(W,U){var H;(H=t.onEnter)===null||H===void 0||H.call(t,l.value,qt(qt({},U),{},{inputValue:W}))},k=function(W,U){var H,L,z=(H=n.value)===null||H===void 0?void 0:H.getOverlayState();c.value||z!=null&&z.hover||(c.value=!0,(L=t.onFocus)===null||L===void 0||L.call(t,l.value,qt(qt({},U),{},{inputValue:W})))},M=function(W,U){var H,L,z=(H=n.value)===null||H===void 0?void 0:H.getOverlayState();z!=null&&z.hover||(c.value=!1,(L=t.onBlur)===null||L===void 0||L.call(t,l.value,qt(qt({},U),{},{inputValue:W})))};return g(ja,ve({ref:v,style:(E=e.attrs)===null||E===void 0?void 0:E.style},qt({onChange:C,onClear:y,onEnter:R,onFocus:k,onBlur:M},F),{inputClass:A}),P)},_=function(S,E){var D=h("label");if(!D&&!S)return[];if(S){var j,T;if((j=t.valueDisplayOptions)!==null&&j!==void 0&&j.usePlaceholder&&!l.value||(T=t.valueDisplayOptions)!==null&&T!==void 0&&T.useInputDisplay&&E)return[D]}return[D,S]},$=function(S,E,D){if(S){var j,T;if(!((j=t.valueDisplayOptions)!==null&&j!==void 0&&j.useInputDisplay)||(T=t.valueDisplayOptions)!==null&&T!==void 0&&T.useInputDisplay&&!D)return}return E},I=function(S){if(S){var E,D;if(!((E=t.valueDisplayOptions)!==null&&E!==void 0&&E.usePlaceholder)||(D=t.valueDisplayOptions)!==null&&D!==void 0&&D.usePlaceholder&&l.value)return""}return t.placeholder};return{inputRef:v,isSingleFocus:c,commonInputProps:b,singleInputValue:f,onInnerClear:y,renderSelectSingle:O}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var fB={autoWidth:Boolean,clearable:Boolean,collapsedItems:{type:Function},disabled:Boolean,dragSort:Boolean,excessTagsDisplayType:{type:String,default:"break-line",validator:function(e){return e?["scroll","break-line"].includes(e):!0}},inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number],default:""},label:{type:[String,Function]},max:{type:Number},minCollapsedNum:{type:Number,default:0},placeholder:{type:String,default:void 0},prefixIcon:{type:Function},readonly:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tag:{type:[String,Function]},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},valueDisplay:{type:[String,Function]},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onDragSort:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onRemove:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function gB(t){var e=G(),n=_e(t),a=n.excessTagsDisplayType,r=n.readonly,l=n.disabled,o=G(0),i=G(),u=G(),c=G(!1),v=function(_){var $=_.children[0];i.value=$},s=function(){o.value=i.value.scrollWidth-i.value.clientWidth},d=function(_){var $;pe(($=i.value)===null||$===void 0?void 0:$.scroll)&&i.value.scroll({left:_,behavior:"smooth"})},f=function(){s(),d(o.value),setTimeout(function(){c.value=!0},200)},p=function(){d(0)},h=function(_){var $=_.e;if(!(r.value||l.value)&&i.value)if($.deltaX>0){var I=Math.min(i.value.scrollLeft+120,o.value);d(I)}else{var x=Math.max(i.value.scrollLeft-120,0);d(x)}},m=function(){a.value==="scroll"&&(u.value=setTimeout(function(){f(),clearTimeout(u.value)},100))},b=function(){a.value==="scroll"&&(c.value=!1,d(0),clearTimeout(u.value))},y=function(){var _,$=(_=e.value)===null||_===void 0?void 0:_.$el;$&&v($)},C=function(){clearTimeout(u.value)};return Ae(y),ba(C),{tagInputRef:e,scrollElement:i,scrollDistance:o,scrollTo:d,scrollToRight:f,scrollToLeft:p,updateScrollElement:v,updateScrollDistance:s,onWheel:h,scrollToRightOnEnter:m,scrollToLeftOnLeave:b,isScrollable:c}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var hB={closable:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,icon:{type:Function,default:void 0},maxWidth:{type:[String,Number]},shape:{type:String,default:"square",validator:function(e){return e?["square","round","mark"].includes(e):!0}},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},theme:{type:String,default:"default",validator:function(e){return e?["default","primary","warning","danger","success"].includes(e):!0}},variant:{type:String,default:"dark",validator:function(e){return e?["dark","light","outline","light-outline"].includes(e):!0}},onClick:Function,onClose:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Ey=ne({name:"TTag",props:hB,setup:function(e){var n=Ke("tag"),a=n.globalConfig,r=ee("tag"),l=at({CloseIcon:pa}),o=l.CloseIcon,i=xe(),u=_t(),c=ft(),v=c.SIZE,s=B(function(){return["".concat(r.value),"".concat(r.value,"--").concat(e.theme),"".concat(r.value,"--").concat(e.variant),N(N(N(N({},"".concat(r.value,"--ellipsis"),e.maxWidth),"".concat(r.value,"--close"),e.closable),"".concat(r.value,"--disabled"),e.disabled),v.value[e.size],e.size!=="medium"),e.shape!=="square"&&"".concat(r.value,"--").concat(e.shape)]}),d=B(function(){var h=e.maxWidth;return e.maxWidth?{maxWidth:isNaN(Number(h))?String(h):"".concat(h,"px")}:{}}),f=function(m){var b;e.disabled||(b=e.onClick)===null||b===void 0||b.call(e,{e:m})},p=function(){if(!e.closable)return null;var m="".concat(r.value,"__icon-close");return a.value.closeIcon?He(a.value.closeIcon(He),{class:m}):g(o,{onClick:function(y){var C,O=y.e;O.stopPropagation(),(C=e.onClose)===null||C===void 0||C.call(e,{e:O})},class:m},null)};return function(){var h=p(),m=u("default","content"),b=i("icon"),y=Be(m)?m:"",C=y&&e.maxWidth?y:void 0;return g("div",{class:s.value,style:d.value,onClick:f},[b,e.maxWidth?g("span",{class:N({},"".concat(r.value,"--text"),e.maxWidth),title:C},[m]):m,!e.disabled&&h])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var mB={checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,checkedProps:{type:Object},content:{type:[String,Number,Array,Function]},default:{type:[String,Function]},disabled:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},uncheckedProps:{type:Object},value:{type:[String,Number]},onChange:Function,onClick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Ty=/^ArrowDown$/i,Dy=/^ArrowUp$/i,Iy=/^Escape$/i,Ei=/^Space$/i,pB=/^Enter$/i,jf=/^(Shift|ShiftLeft|ShiftRight)$/i,jy=/^KeyC$/i,$y=/^(KeyA|KeyL)$/i,Ti=/^(Enter|Space)$/i;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function $f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Ff(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$f(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$f(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function bB(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var Fy=ne({name:"TCheckTag",props:mB,setup:function(e){var n=ee("tag"),a=ft(),r=a.SIZE,l=_t(),o=_e(e),i=o.checked,u=o.modelValue,c=ht(i,u,e.defaultChecked,e.onChange,"checked"),v=be(c,2),s=v[0],d=v[1],f=B(function(){return["".concat(n.value),"".concat(n.value,"--check"),r.value[e.size],N(N({},"".concat(n.value,"--checked"),s.value),"".concat(n.value,"--disabled"),e.disabled)]}),p=B(function(){var C=Ff({theme:"primary"},e.checkedProps),O=Ff({},e.uncheckedProps);return s.value?C:O}),h=function(O){var _=O.e;if(!e.disabled){var $;($=e.onClick)===null||$===void 0||$.call(e,{e:_}),d(!s.value,{e:_,value:e.value})}},m=function(O){var _,$=O.code||((_=O.key)===null||_===void 0?void 0:_.trim()),I=Ei.test($)||pB.test($);I&&(O.preventDefault(),d(!s.value,{e:O,value:e.value}))},b=function(O){O.currentTarget.addEventListener("keydown",m)},y=function(O){O.currentTarget.removeEventListener("keydown",m)};return function(){var C=l("default","content");return g(Ey,ve({class:f.value,disabled:e.disabled,tabindex:e.disabled?void 0:"0",onFocus:b,onBlur:y},p.value,{onClick:h}),bB(C)?C:{default:function(){return[C]}})}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var yB={checkedProps:{type:Object},multiple:Boolean,options:{type:Array},uncheckedProps:{type:Object},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function CB(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var wB=ne({name:"TCheckTagGroup",props:yB,setup:function(e,n){var a=_e(e),r=a.value,l=a.modelValue,o=a.options,i=ee("check-tag-group"),u=B(function(){return[i.value]}),c=ht(r,l,e.defaultValue,e.onChange),v=be(c,2),s=v[0],d=v[1],f=function(m,b){var y=b.value;if(m)e.multiple?d(s.value.concat(y),{e:b.e,type:"check",value:y}):d([y],{e:b.e,type:"check",value:y});else{var C=[];e.multiple&&(C=s.value.filter(function(O){return O!==y})),d(C,{e:b.e,type:"uncheck",value:y})}},p=function(m){return n.slots.option?n.slots.option(m):n.slots.label?n.slots.label(m):m.label?pe(m.label)?m.label(He):m.label:m.content&&pe(m.content)?m.content(He):m.default&&pe(m.default)?m.default(He):m.value};return function(){return g("div",{class:u.value},[(o.value||[]).map(function(h){var m;return g(Fy,{key:h.value,value:h.value,checkedProps:e.checkedProps,uncheckedProps:e.uncheckedProps,checked:s.value.includes(h.value),onChange:f,disabled:h.disabled,size:h.size,"data-value":h.value},CB(m=p(h))?m:{default:function(){return[m]}})})])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var kf=ye(Ey),q9=ye(Fy),X9=ye(wB);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Af(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function xl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Af(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function OB(t){var e=xe(),n=ee(),a=_e(t),r=a.value,l=a.modelValue,o=a.onRemove,i=a.max,u=a.minCollapsedNum,c=a.size,v=a.disabled,s=a.readonly,d=a.tagProps,f=a.getDragProps,p=ht(r,l,t.defaultValue||[],t.onChange),h=be(p,2),m=h[0],b=h[1],y=G(),C=function(E){var D,j=ce(m.value);j.splice(E.index,1),b(j,xl({trigger:"tag-remove"},E)),(D=o.value)===null||D===void 0||D.call(o,xl(xl({},E),{},{trigger:"tag-remove",value:j}))},O=function(E){b([],{trigger:"clear",e:E.e})},_=function(E,D){var j,T,F=E?String(E).trim():"",w=i&&((j=m.value)===null||j===void 0?void 0:j.length)>=i.value,P=m.value;!w&&F&&(P=m.value instanceof Array?m.value.concat(String(F)):[F],b(P,{trigger:"enter",index:P.length-1,item:F,e:D.e})),t==null||(T=t.onEnter)===null||T===void 0||T.call(t,P,xl(xl({},D),{},{inputValue:E}))},$=function(E){!m.value||!m.value.length||(y.value=E)},I=function(E,D){var j=D.e;if(!(!m.value||!m.value.length||j.key==="Process")){var T=/(Backspace|NumpadDelete)/i.test(j.code)||/(Backspace|NumpadDelete)/i.test(j.key);if(!E&&T){var F,w=m.value.length-1,P=m.value[w],A="backspace",R=m.value.slice(0,-1);b(R,{e:j,index:w,item:P,trigger:A}),(F=o.value)===null||F===void 0||F.call(o,{e:j,index:w,item:P,trigger:A,value:R})}y.value=E}},x=function(E){var D,j=E.displayNode,T=E.label,F=u.value?m.value.slice(0,u.value):m.value,w=j?[j]:(F==null||(D=F.map)===null||D===void 0?void 0:D.call(F,function(R,k){var M,V=e("tag",{params:{value:R}});return g(kf,ve({key:"".concat(R).concat(k),size:c.value,disabled:v.value,onClose:function(U){return C({e:U.e,item:R,index:k})},closable:!s.value&&!v.value},(M=f.value)===null||M===void 0?void 0:M.call(f,k,R),d.value),{default:function(){return[V??R]}})}))||[];if([null,void 0,""].includes(T)||w.unshift(g("div",{class:"".concat(n.value,"-tag-input__prefix"),key:"label"},[T])),F.length!==(m.value||[]).length){var P=m.value.length-F.length,A=e("collapsedItems",{params:{value:m.value,count:m.value.length-u.value,collapsedTags:m.value.slice(u.value,m.value.length),collapsedSelectedItems:m.value.slice(u.value,m.value.length)}});w.push(A??g(kf,{key:"more"},{default:function(){return["+",P]}}))}return w};return{tagValue:m,clearAll:O,onClose:C,onInnerEnter:_,onInputBackspaceKeyUp:$,onInputBackspaceKeyDown:I,renderLabel:x}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function _B(t){var e=t.disabled,n=t.readonly,a=t.onMouseenter,r=t.onMouseleave,l=G(!1),o=function(c){n||e||(l.value=!0,a==null||a(c))},i=function(c){n||e||(l.value=!1,r==null||r(c))};return{isHover:l,addHover:o,cancelHover:i}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function SB(t){var e=t.sortOnDraggable,n=t.onDragSort,a=t.onDragOverCheck,r=G(-1),l=G(null),o=G(null),i=jt({nodeX:0,nodeWidth:0,mouseX:0}),u=function(p,h,m){if(p.preventDefault(),!(r.value===h||r.value===-1)){var b=p.target;if(!(a!=null&&a.targetClassNameRegExp&&!(a!=null&&a.targetClassNameRegExp.test(b.className)))){if(a!=null&&a.x&&b){if(!i.nodeWidth)return;var y=b.getBoundingClientRect(),C=y.x,O=y.width,_=C+O/2,$=p.clientX-(i.mouseX-i.nodeX),I=$+i.nodeWidth,x=!1;if($>C&&$<C+O?x=$<_:x=I>_,!x)return}n==null||n({currentIndex:r.value,current:l,target:m,targetIndex:h}),r.value=h}}};if(!e)return{};function c(f,p,h){r.value=p,l.value=h;var m=f.target;if(a&&m){var b=m.getBoundingClientRect(),y=b.x,C=b.width;i.nodeX=y,i.nodeWidth=C,i.mouseX=f.clientX}}function v(){o.value=!0}function s(){o.value,o.value=!1,r.value=-1,l.value=null}function d(f,p){return e?{draggable:!0,onDragstart:function(m){c(m,f,p)},onDragover:function(m){u(m,f,p)},onDrop:function(){v()},onDragend:function(){s()}}:{}}return{onDragStart:c,onDragOver:u,onDrop:v,onDragEnd:s,getDragProps:d,dragging:r.value!==-1}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Rf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Wa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Rf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var xB=function(){return{NAME_CLASS:ee("tag-input"),CLEAR_CLASS:ee("tag-input__suffix-clear"),BREAK_LINE_CLASS:ee("tag-input--break-line")}},PB=ne({name:"TTagInput",props:Wa({},fB),setup:function(e){var n=xB(),a=n.NAME_CLASS,r=n.CLEAR_CLASS,l=n.BREAK_LINE_CLASS,o=at({CloseCircleFilledIcon:co}),i=o.CloseCircleFilledIcon,u=_e(e),c=u.inputValue,v=u.inputProps,s=Nt(c,e.defaultInputValue,e.onInputChange,"inputValue"),d=be(s,2),f=d[0],p=d[1],h=_e(e),m=h.excessTagsDisplayType,b=h.readonly,y=h.disabled,C=h.clearable,O=h.placeholder,_=_B({readonly:e.readonly,disabled:e.disabled,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave}),$=_.isHover,I=_.addHover,x=_.cancelHover,S=G(!1),E=Ke(),D=E.classPrefix,j=G(!1),T=SB(Wa(Wa({},e),{},{sortOnDraggable:e.dragSort,onDragOverCheck:{x:!0,targetClassNameRegExp:new RegExp("^".concat(D.value,"-tag"))}})),F=T.getDragProps,w=gB(e),P=w.scrollToRight,A=w.onWheel,R=w.scrollToRightOnEnter,k=w.scrollToLeftOnLeave,M=w.tagInputRef,V=w.isScrollable,W=OB(jt(Wa(Wa({},_e(e)),{},{getDragProps:F}))),U=W.tagValue,H=W.onInnerEnter,L=W.onInputBackspaceKeyUp,z=W.onInputBackspaceKeyDown,K=W.clearAll,Y=W.renderLabel,q=W.onClose,X=B(function(){var Ee=!(ke(U.value)&&U.value.length);return[a.value,N(N(N({},l.value,m.value==="break-line"),"".concat(D.value,"-is-empty"),Ee),"".concat(D.value,"-tag-input--with-tag"),!Ee)]}),J=B(function(){var Ee;return(Ee=U.value)!==null&&Ee!==void 0&&Ee.length?"":O.value}),Z=B(function(){var Ee;return!!(!b.value&&!y.value&&C.value&&$.value&&(!((Ee=U.value)===null||Ee===void 0)&&Ee.length||f.value))}),oe=function(ge,Q){var te,ae;(te=Q.e)===null||te===void 0||(ae=te.preventDefault)===null||ae===void 0||ae.call(te),p("",{e:Q.e,trigger:"enter"}),!S.value&&H(ge,Q),Je(function(){P(),S.value=!1})},se=function(ge,Q){var te,ae;S.value=!0,(te=v.value)===null||te===void 0||(ae=te.onCompositionstart)===null||ae===void 0||ae.call(te,ge,Q)},me=function(ge,Q){var te,ae;S.value=!1,(te=v.value)===null||te===void 0||(ae=te.onCompositionend)===null||ae===void 0||ae.call(te,ge,Q)},Te=function(ge){var Q;y.value||(j.value=!0,M.value.focus(),(Q=e.onClick)===null||Q===void 0||Q.call(e,ge))},Ie=function(ge){var Q;K(ge),p("",{e:ge.e,trigger:"clear"}),(Q=e.onClear)===null||Q===void 0||Q.call(e,ge)},re=function(){M.value.focus()},ue=function(){M.value.blur()},ie=function(ge){I(ge),R()},Ce=function(ge){x(ge),k()},Oe=function(ge,Q){var te;j.value||(j.value=!0,(te=e.onFocus)===null||te===void 0||te.call(e,U.value,{e:Q.e,inputValue:ge}))},De=function(ge,Q){var te;j.value=!1,p("",{e:Q.e,trigger:"blur"}),(te=e.onBlur)===null||te===void 0||te.call(e,U.value,{e:Q.e,inputValue:ge})},Re=function(ge,Q){p(ge,Wa(Wa({},Q),{},{trigger:"input"}))};return le(function(){return V.value},function(Ee){if(e.excessTagsDisplayType==="scroll"){var ge="".concat(D.value,"-input__prefix"),Q=M.value.$el.querySelector(".".concat(ge));Ee?Q.classList.add("".concat(ge,"--scrollable")):Q.classList.remove("".concat(ge,"--scrollable"))}}),{CLEAR_CLASS:r,CloseCircleFilledIcon:i,tagValue:U,tInputValue:f,isHover:$,tagInputPlaceholder:J,showClearIcon:Z,tagInputRef:M,classPrefix:D,isFocused:j,focus:re,blur:ue,setTInputValue:p,onMouseEnter:ie,onMouseLeave:Ce,onInnerFocus:Oe,onInnerBlur:De,onInnerChange:Re,addHover:I,cancelHover:x,onInputEnter:oe,onInnerEnter:H,onInputBackspaceKeyUp:L,onInputBackspaceKeyDown:z,renderLabel:Y,onWheel:A,scrollToRightOnEnter:R,scrollToLeftOnLeave:k,onClick:Te,onClearClick:Ie,onClose:q,onInputCompositionstart:se,onInputCompositionend:me,classes:X}},render:function(){var e=this,n,a=this.CloseCircleFilledIcon,r=this.showClearIcon?g(a,{class:this.CLEAR_CLASS,onClick:this.onClearClick},null):Bt(this,"suffixIcon"),l=Bt(this,"prefixIcon"),o="".concat(this.classPrefix,"-tag-input__with-suffix-icon");r&&!this.classes.includes(o)&&this.classes.push(o);var i=Bt(this,"valueDisplay",{params:{value:this.tagValue,onClose:function(d,f){return e.onClose({index:d,item:f})}}}),u=Bt(this,"label",{silent:!0}),c=this.inputProps,v=this.readonly||(c==null?void 0:c.readonly);return g(ja,ve({ref:"tagInputRef",readonly:v,showInput:!v||!this.tagValue||!((n=this.tagValue)!==null&&n!==void 0&&n.length),value:this.tInputValue,autoWidth:!0,size:this.size,disabled:this.disabled,label:function(){return e.renderLabel({displayNode:i,label:u})},class:this.classes,tips:this.tips,status:this.status,placeholder:this.tagInputPlaceholder,suffix:this.suffix,suffixIcon:function(){return r},prefixIcon:function(){return l},keepWrapperWidth:!this.autoWidth,onWheel:this.onWheel,onChange:this.onInnerChange,onPaste:this.onPaste,onEnter:this.onInputEnter,onKeyup:this.onInputBackspaceKeyUp,onKeydown:this.onInputBackspaceKeyDown,onMouseenter:this.onMouseEnter,onMouseleave:this.onMouseLeave,onFocus:this.onInnerFocus,onBlur:this.onInnerBlur,onClick:this.onClick,onCompositionstart:this.onInputCompositionstart,onCompositionend:this.onInputCompositionend},this.inputProps),{suffix:this.$slots.suffix})}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var EB=ye(PB);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var TB=["tips"];function Mf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Dn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var DB={label:"label",key:"key",children:"children"};function IB(t,e,n){var a=_e(t),r=a.inputValue,l=ee(),o=G(),i=G(t.autofocus),u=Nt(r,t.defaultInputValue,t.onInputChange,"inputValue"),c=be(u,2),v=c[0],s=c[1],d=Jt(),f=B(function(){return Dn(Dn({},DB),t.keys)}),p=B(function(){return t.value instanceof Array?t.value.map(function($){return Ve($)?$[f.value.label]:$}):Ve(t.value)?[t.value[f.value.label]]:[t.value]}),h=B(function(){return!p.value||!p.value.length?t.placeholder:""}),m=function(I,x){var S;if(x.trigger==="tag-remove"){var E;(E=x.e)===null||E===void 0||E.stopPropagation()}(S=t.onTagChange)===null||S===void 0||S.call(t,I,x)},b=function(I,x){x.trigger==="enter"||x.trigger==="blur"||s(I,{trigger:x.trigger,e:x.e})},y=function(I,x){var S,E,D=(S=n.value)===null||S===void 0?void 0:S.getOverlayState();D!=null&&D.hover||(i.value=!1,(E=t.onBlur)===null||E===void 0||E.call(t,t.value,Dn(Dn({},x),{},{tagInputValue:I})))},C=function(I,x){var S,E,D=(S=n.value)===null||S===void 0?void 0:S.getOverlayState();if(!(i.value||D!=null&&D.hover)){i.value=!0;var j=Dn(Dn({},x),{},{tagInputValue:I});(E=t.onFocus)===null||E===void 0||E.call(t,t.value,j)}},O=function(I,x){var S,E=Dn(Dn({},x),{},{tagInputValue:I});(S=t.onEnter)===null||S===void 0||S.call(t,t.value,E)},_=function(I){var x=Dn(Dn({},I.commonInputProps),{},{tagProps:t.tagProps,label:t.label,autoWidth:t.autoWidth,readonly:t.readonly,placeholder:h.value,minCollapsedNum:t.minCollapsedNum,collapsedItems:t.collapsedItems,tag:t.tag,value:p.value,valueDisplay:t.valueDisplay,inputValue:I.popupVisible&&I.allowInput?v.value:"",inputProps:Dn({readonly:!t.allowInput||t.readonly,inputClass:N({},"".concat(l.value,"-input--focused"),I.popupVisible)},t.inputProps),suffixIcon:!d.value&&t.loading?function(){return g(bn,{loading:!0,size:"small"},null)}:t.suffixIcon},t.tagInputProps),S=e.slots;S.tips;var E=cr(S,TB);return g(EB,ve({ref:o},x,{onInputChange:b,onChange:m,onClear:I.onInnerClear,onBlur:y,onEnter:O,onFocus:C}),E)};return{tags:p,tPlaceholder:h,tagInputRef:o,isMultipleFocus:i,multipleInputValue:v,renderSelectMultiple:_}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Nf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Lf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var jB=1e3,$B=0;function ky(t){var e=_e(t),n=e.popupProps,a=e.autoWidth,r=G(!1),l=Jt(),o=function(s,d){var f=d.scrollHeight>d.offsetHeight?$B:0,p=d.offsetWidth+f>=s.offsetWidth?d.offsetWidth:s.offsetWidth,h={};return n.value&&qe(n.value.overlayInnerStyle)==="object"&&!n.value.overlayInnerStyle.width&&(h=n.value.overlayInnerStyle),Lf({width:"".concat(Math.min(p,jB),"px")},h)},i=function(s,d){if(!(l.value||t.readonly)){var f=d.trigger==="trigger-element-click"&&t.allowInput?!0:s;if(t.popupVisible!==f){var p;r.value=f,(p=t.onPopupVisibleChange)===null||p===void 0||p.call(t,f,d)}}},u=function(s,d){var f;return Lf({width:"".concat(Math.max(s.offsetWidth,d.offsetWidth),"px")},(f=n.value)===null||f===void 0?void 0:f.overlayInnerStyle)},c=B(function(){var v,s={},d=((v=n.value)===null||v===void 0?void 0:v.overlayInnerStyle)||{};return pe(d)||Ve(d)&&d.width?s=d:a.value?s=u:s=o,s});return{tOverlayInnerStyle:c,innerPopupVisible:r,onInnerPopupVisibleChange:i}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Bf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ta(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var FB=function(){return{NAME_CLASS:ee("select-input"),BASE_CLASS_BORDERLESS:ee("select-input--borderless"),BASE_CLASS_MULTIPLE:ee("select-input--multiple"),BASE_CLASS_POPUP_VISIBLE:ee("select-input--popup-visible"),BASE_CLASS_EMPTY:ee("select-input--empty")}},kB=ne({name:"TSelectInput",props:ta(ta({},iB),{},{valueDisplayOptions:{type:Object}}),setup:function(e,n){var a=FB(),r=a.NAME_CLASS,l=a.BASE_CLASS_BORDERLESS,o=a.BASE_CLASS_MULTIPLE,i=a.BASE_CLASS_POPUP_VISIBLE,u=a.BASE_CLASS_EMPTY,c=ee(),v=xe(),s=G(),d=G(),f=_e(e),p=f.multiple,h=f.value,m=f.popupVisible,b=f.borderless,y=ky(e),C=y.tOverlayInnerStyle,O=y.innerPopupVisible,_=y.onInnerPopupVisibleChange,$=dB(e,n,d),I=$.isSingleFocus,x=$.commonInputProps,S=$.onInnerClear,E=$.renderSelectSingle,D=IB(e,n,d),j=D.isMultipleFocus,T=D.tagInputRef,F=D.renderSelectMultiple,w=B(function(){return e.multiple?j.value:I.value}),P=B(function(){var k;return["".concat(r.value),N(N(N(N({},o.value,p.value),l.value,b.value),i.value,(k=m.value)!==null&&k!==void 0?k:O.value),u.value,h.value instanceof Array?!h.value.length:!h.value)]}),A=function(M){var V,W=M.code||((V=M.key)===null||V===void 0?void 0:V.trim());if(/(ArrowDown|ArrowUp)/.test(W)&&!m.value){var U,H=ta(ta({},n),{},{trigger:"trigger-element-focus"});(U=e.onPopupVisibleChange)===null||U===void 0||U.call(e,!0,H)}};le([w],function(k){var M=be(k,1),V=M[0];m.value||(V?s.value.addEventListener("keydown",A):s.value.removeEventListener("keydown",A))}),Ae(function(){!m.value&&w&&s.value.addEventListener("keydown",A)}),Ft(function(){s.value.removeEventListener("keydown",A)});var R=function(M){var V,W;(V=M.e)===null||V===void 0||V.stopPropagation(),!(M.e.target.tabIndex>=0)&&e.multiple&&((W=T.value)===null||W===void 0||W.focus())};return{classPrefix:c,NAME_CLASS:r,innerPopupVisible:O,commonInputProps:x,tOverlayInnerStyle:C,selectInputRef:s,popupRef:d,classes:P,onInnerClear:S,renderTNodeJSX:v,renderSelectSingle:E,renderSelectMultiple:F,onOverlayClick:R,onInnerPopupVisibleChange:_}},render:function(){var e,n,a=this,r={visible:(e=this.popupVisible)!==null&&e!==void 0?e:this.innerPopupVisible},l=g(Ma,ve({ref:"popupRef",trigger:((n=this.popupProps)===null||n===void 0?void 0:n.trigger)||"click",placement:"bottom-left"},r,{content:this.panel,hideEmptyPopup:!0},ta(ta({onVisibleChange:this.onInnerPopupVisibleChange,onOverlayClick:this.onOverlayClick},this.popupProps),{},{overlayInnerStyle:this.tOverlayInnerStyle})),ta({default:function(){return[a.multiple?a.renderSelectMultiple({commonInputProps:a.commonInputProps,onInnerClear:a.onInnerClear,popupVisible:r.visible,allowInput:a.allowInput}):a.renderSelectSingle(r.visible)]}},ta(ta({},this.$slots),{},{content:this.$slots.panel}))),o=this.renderTNodeJSX("tips"),i=["".concat(this.classPrefix,"-input__tips"),"".concat(this.classPrefix,"-tips"),"".concat(this.classPrefix,"-is-").concat(this.status)];return g("div",{ref:"selectInputRef",class:this.classes},[l,o&&g("div",{class:i},[o])])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Ay=ye(kB);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var AB={checkAll:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,label:{type:String,default:""},title:{type:String,default:""},value:{type:[String,Number]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var RB={checkAll:Boolean,checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:{type:[String,Function]},lazyLoad:Boolean,name:{type:String,default:""},readonly:Boolean,value:{type:[String,Number,Boolean]},onChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Ry=Symbol("CheckboxGroupProvide");/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function pu(t,e,n,a){if(typeof window>"u")return null;if(!window||!window.IntersectionObserver)return n(),null;var r=null;try{r=new window.IntersectionObserver(function(l){var o=l[0];o.isIntersecting&&(n(),r.unobserve(t))},{rootMargin:"0px 0px ".concat(a,"px 0px"),root:e}),r.observe(t)}catch(l){console.error(l),n()}return r}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function MB(t,e){var n=G(),a=G(!0),r=function(){if(e.value){a.value=!1;var o=pu(t.value,null,function(){a.value=!0},0);n.value=o}};return Ae(r),le([e,t],r),Ft(function(){e.value&&n.value.unobserve(t.value)}),{showCheckbox:a}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function NB(t){var e=function(l){var o=Ti.test(l.key)||Ti.test(l.code);if(o){l.preventDefault();var i=l.currentTarget.querySelector("input"),u=i.disabled;!u&&t(l)}},n=function(l){l.currentTarget.addEventListener("keydown",e)},a=function(l){l.currentTarget.removeEventListener("keydown",e)};return{onCheckboxFocus:n,onCheckboxBlur:a}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Vf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Hf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var My=ne({name:"TCheckbox",props:Hf(Hf({},RB),{},{needRipple:Boolean,stopLabelTrigger:Boolean,index:Number,data:Object}),setup:function(e){var n=G();e.needRipple&&fr(n);var a=ft(),r=a.STATUS,l=_e(e),o=l.checked,i=l.modelValue,u=l.lazyLoad,c=ht(o,i,e.defaultChecked,e.onChange,"checked"),v=be(c,2),s=v[0],d=v[1],f=vt(Ry,void 0),p=G();le(function(){return[e.name,f==null?void 0:f.value.name].join("_")},function(){var w=e.name||(f==null?void 0:f.value.name);w&&(p.value=w)},{immediate:!0});var h=G(!1),m=function(){var P=e.value,A=e.checkAll;return A?f==null?void 0:f.value.isCheckAll:f!=null&&f.value?f.value.checkedValues.includes(P):s.value};le(function(){var w;return[s.value,f==null?void 0:f.value.isCheckAll,f==null||(w=f.value.checkedValues)===null||w===void 0?void 0:w.join(",")]},function(){h.value=m()},{immediate:!0});var b=B(function(){return!e.checkAll&&!h.value&&f!==null&&f!==void 0&&f.value.maxExceeded?!0:null}),y=B(function(){return f==null?void 0:f.value.disabled}),C=du({beforeDisabled:b,afterDisabled:y}),O=G(!1);le(function(){return[e.checkAll,e.indeterminate,f==null?void 0:f.value.indeterminate]},function(){O.value=e.checkAll?f==null?void 0:f.value.indeterminate:e.indeterminate},{immediate:!0});var _=ee("checkbox"),$=G({});le([h,C,O],function(){$.value=["".concat(_.value),N(N(N({},r.value.checked,h.value),r.value.disabled,C.value),r.value.indeterminate,O.value)]},{immediate:!0});var I=function(P){if(!e.readonly){var A=!h.value;d(A,{e:P}),f!=null&&f.value.handleCheckboxChange&&f.value.onCheckedChange({checked:A,checkAll:e.checkAll,e:P,option:e})}},x=_t(),S=function(P){e.stopLabelTrigger&&P.preventDefault()},E=MB(n,u),D=E.showCheckbox,j=NB(I),T=j.onCheckboxFocus,F=j.onCheckboxBlur;return function(){return g("label",{ref:n,class:$.value,tabindex:C.value?void 0:"0",onFocus:T,onBlur:F},[D.value?[g("input",{type:"checkbox",tabindex:"-1",class:"".concat(_.value,"__former"),disabled:C.value,readonly:e.readonly,indeterminate:O.value,name:p.value,value:e.value?e.value:void 0,checked:h.value,onChange:I,key:"input"},null),g("span",{class:"".concat(_.value,"__input"),key:"input-span"},null),g("span",{class:"".concat(_.value,"__label"),key:"label",onClick:S},[x("default","label")])]:null])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var LB={disabled:{type:Boolean,default:void 0},lazyLoad:Boolean,max:{type:Number,default:void 0},name:{type:String,default:""},options:{type:Array},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var BB=ne({name:"TCheckboxGroup",props:LB,setup:function(e){var n=ee("checkbox-group"),a=xe(),r=Array.isArray,l=_e(e),o=l.value,i=l.modelValue,u=ht(o,i,e.defaultValue,e.onChange),c=be(u,2),v=c[0],s=c[1],d=G([]),f=B(function(){if(!r(v.value))return 0;var I=d.value.map(function(S){return S.value}),x=or(v.value,I);return x.length}),p=B(function(){var I=d.value.filter(function(S){return!S.disabled&&!S.checkAll}).map(function(S){return S.value}),x=or(I,v.value);return x.length===I.length}),h=B(function(){return!p.value&&f.value<d.value.length&&f.value!==0}),m=B(function(){return!Xt(e.max)&&v.value.length===e.max});Nr(function(){if(!e.options)return[];d.value=e.options.map(function(I){return Ve(I)?I:{label:String(I),value:I}})});var b=function(){for(var x=new Set,S=0,E=d.value.length;S<E;S++){var D=d.value[S];if(!D.checkAll&&!D.disabled&&(x.add(D.value),m.value))break}return ce(x)},y=function(x,S){var E=x?b():[];s(E,{e:S.e,type:x?"check":"uncheck",current:void 0,option:void 0})},C=function(x){var S=x.option.value;if(!r(v.value)){console.warn("TDesign CheckboxGroup Warn: `value` must be an array, instead of ".concat(qe(v.value)));return}var E=ce(v.value);if(x.checked)E.push(S);else{var D=E.indexOf(S);E.splice(D,1)}s(E,{e:x.e,current:x.option.value,option:x.option,type:x.checked?"check":"uncheck"})},O=function(x){var S=x.checked,E=x.checkAll,D=x.e;E?y(S,{e:D}):C(x)},_=dl(),$=function(){var x=_("Checkbox"),S=[];return x==null||x.forEach(function(E){var D=E.props;D&&((D["check-all"]===""||D["check-all"]===!0)&&(D.checkAll=!0),S.push(D))}),S};return wt(Ry,B(function(){return{name:e.name,isCheckAll:p.value,checkedValues:v.value||[],maxExceeded:m.value,disabled:e.disabled,indeterminate:h.value,handleCheckboxChange:C,onCheckedChange:O}})),function(){var I,x=null;if((I=e.options)!==null&&I!==void 0&&I.length){var S;x=(S=d.value)===null||S===void 0?void 0:S.map(function(D,j){var T;return g(My,ve({key:"".concat(D.value||"").concat(j),lazyLoad:e.lazyLoad},D,{index:j,checked:(T=v.value)===null||T===void 0?void 0:T.includes(D.value),data:D}),null)})}else{var E=a("default");d.value=$(),x=E}return g("div",{class:n.value,role:"group","aria-label":"checkbox-group"},[x])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Di=ye(My),Ny=ye(BB);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function VB(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=HB(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,i;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return l=c.done,c},e:function(c){o=!0,i=c},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(o)throw i}}}}function HB(t,e){if(t){if(typeof t=="string")return Kf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kf(t,e)}}function Kf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}var bu=Symbol("selectProvide"),Ac=function(e,n){var a=n.value.get(e);return(a==null?void 0:a.label)||(e==null?void 0:e.toString())},KB=function(e,n){var a=[],r=VB(e),l;try{for(r.s();!(l=r.n()).done;){var o=l.value,i=Ac(o,n);i&&a.push(i)}}catch(u){r.e(u)}finally{r.f()}return a},Ly=function(e,n){var a=Xn(e),r=a.indexOf(n);return r<0?a.push(n):a.splice(r,1),{value:a,isCheck:r<0}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function zf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Wf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function zB(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var Rc=ne({name:"TOption",props:Wf(Wf({},AB),{},{createAble:Boolean,multiple:Boolean,index:Number,rowIndex:Number,trs:Map,scrollType:String,isVirtual:Boolean,bufferSize:Number,checkAll:Boolean}),emits:["row-mounted"],setup:function(e,n){var a=vt(bu),r=Jt(),l=B(function(){return a.value.max!==0&&a.value.max<=a.value.selectValue.length}),o=B(function(){return r.value||e.multiple&&l.value&&!p.value&&!a.value.isCheckAll}),i=_t(),u=ee("select"),c=ft(),v=c.STATUS,s=c.SIZE,d=G(),f=G(!1),p=B(function(){return a.value.isCheckAll&&!e.disabled?!0:e.multiple?a.value.selectValue.includes(e.value):a.value.selectValue===e.value}),h=B(function(){return e.checkAll?a.value.indeterminate:!1}),m=B(function(){return["".concat(u.value,"-option"),[s.value[a.value.size]],N(N(N({},v.value.disabled,o.value),v.value.selected,p.value),"".concat(u.value,"-option__hover"),(f.value||a.value.hoverIndex===e.index)&&!o.value)]}),b=B(function(){return e.label||e.value}),y=function(_){if(!(e.disabled||o.value)){if(e.multiple){C(!p.value,{e:_}),_.preventDefault();return}if(e.createAble){var $,I;if(($=(I=a.value).handleCreate)===null||$===void 0||$.call(I,e.value),a.value.multiple){a.value.selectValue.push(e.value),a.value.handleValueChange(a.value.selectValue,{selectedOptions:a.value.getSelectedOptions(),trigger:"check",e:_});return}}var x=a.value.getSelectedOptions(e.value);a.value.handleValueChange(e.value,{option:x==null?void 0:x[0],selectedOptions:x,trigger:"check",e:_}),a.value.handlePopupVisibleChange(!1,{e:_})}},C=function(_,$){if(e.checkAll){a.value.onCheckAllChange(_);return}var I=Ly(a.value.selectValue,e.value),x=a.value.getSelectedOptions(I.value);a.value.handleValueChange(I.value,{option:x.find(function(S){return S.value===e.value}),selectedOptions:x,trigger:_?"check":"uncheck",e:$.e}),a.value.reserveKeyword||a.value.handlerInputChange("")};return Ae(function(){var O=e.trs,_=e.rowIndex,$=e.isVirtual;$&&(O.set(_,d.value),n.emit("row-mounted"))}),Ft(function(){if(e.isVirtual){var O=e.trs,_=e.rowIndex;O.delete(_)}}),fr(d),function(){var O=i("default","content")||b.value;return g("li",{ref:d,class:m.value,title:e.title||"".concat(b.value),onMouseenter:function(){return f.value=!0},onMouseleave:function(){return f.value=!1},onClick:y},[a&&e.multiple?g(Di,{checked:p.value,disabled:o.value,onChange:C,indeterminate:h.value},zB(O)?O:{default:function(){return[O]}}):g("span",null,[O])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var WB={divider:{type:Boolean,default:!0},label:{type:String,default:""}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Uf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function UB(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Uf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var By=ne({name:"TOptionGroup",props:UB({},WB),setup:function(e){var n=vt(bu),a=ee("select-option-group"),r=ft(),l=r.SIZE,o=xe(),i=B(function(){return[a.value,l.value[n.value.size],N({},"".concat(a.value,"__divider"),e.divider)]});return function(){return g("li",{class:i.value},[g("div",{class:"".concat(a.value,"__header")},[e.label]),o("default")])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var cn={autoWidth:Boolean,autofocus:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},creatable:Boolean,disabled:Boolean,empty:{type:[String,Function]},filter:{type:Function},filterable:Boolean,inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number]},keys:{type:Object},label:{type:[String,Function]},loading:Boolean,loadingText:{type:[String,Function]},max:{type:Number,default:0},minCollapsedNum:{type:Number,default:0},multiple:Boolean,options:{type:Array},panelBottomContent:{type:[String,Function]},panelTopContent:{type:[String,Function]},placeholder:{type:String,default:void 0},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:Boolean,prefixIcon:{type:Function},readonly:Boolean,reserveKeyword:Boolean,scroll:{type:Object},selectInputProps:{type:Object},showArrow:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Boolean,Object,Array],default:void 0},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Object,Array],default:void 0},valueDisplay:{type:[String,Function]},valueType:{type:String,default:"value",validator:function(e){return e?["value","object"].includes(e):!0}},onBlur:Function,onChange:Function,onClear:Function,onCreate:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onPopupVisibleChange:Function,onRemove:Function,onSearch:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var YB=function(e){var n,a,r,l,o,i=B(function(){var S,E,D;return((S=e.scroll)===null||S===void 0?void 0:S.type)==="virtual"&&((E=e.options.value)===null||E===void 0?void 0:E.length)>(((D=e.scroll)===null||D===void 0?void 0:D.threshold)||100)}),u=((n=e.scroll)===null||n===void 0?void 0:n.type)==="virtual"?WA({container:e.popupContentRef,data:e.options,fixedHeight:((a=e.scroll)===null||a===void 0?void 0:a.isFixedRowHeight)||!1,lineHeight:((r=e.scroll)===null||r===void 0?void 0:r.rowHeight)||28,bufferSize:((l=e.scroll)===null||l===void 0?void 0:l.bufferSize)||20,threshold:((o=e.scroll)===null||o===void 0?void 0:o.threshold)||100}):{},c=u.trs,v=c===void 0?null:c,s=u.visibleData,d=s===void 0?null:s,f=u.handleScroll,p=f===void 0?null:f,h=u.scrollHeight,m=h===void 0?null:h,b=u.translateY,y=b===void 0?null:b,C=u.handleRowMounted,O=C===void 0?null:C,_=-1,$=function(E){if(i.value){var D=E.target,j=D.scrollTop;Math.abs(_-j)>5?(p(),_=j):_=-1}};Ae(function(){var S;(S=e.popupContentRef.value)===null||S===void 0||S.addEventListener("scroll",$)}),Ft(function(){var S;(S=e.popupContentRef.value)===null||S===void 0||S.removeEventListener("scroll",$)});var I=B(function(){return{position:"absolute",width:"1px",height:"1px",transition:"transform 0.2s",transform:"translate(0, ".concat(m.value,"px)"),"-ms-transform":"translate(0, ".concat(m.value,"px)"),"-moz-transform":"translate(0, ".concat(m.value,"px)"),"-webkit-transform":"translate(0, ".concat(m.value,"px)")}}),x=B(function(){return{transform:"translate(0, ".concat(y.value,"px)"),"-ms-transform":"translate(0, ".concat(y.value,"px)"),"-moz-transform":"translate(0, ".concat(y.value,"px)"),"-webkit-transform":"translate(0, ".concat(y.value,"px)")}});return{trs:v,scrollHeight:m,translateY:y,visibleData:d,handleRowMounted:O,isVirtual:i,cursorStyle:I,panelStyle:x}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function GB(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var qB=ne({name:"TSelectPanel",props:{inputValue:cn.inputValue,panelTopContent:cn.panelTopContent,panelBottomContent:cn.panelBottomContent,empty:cn.empty,creatable:cn.creatable,loading:cn.loading,loadingText:cn.loadingText,multiple:cn.multiple,filterable:cn.filterable,filter:cn.filter,scroll:cn.scroll,size:cn.size},setup:function(e,n){var a=n.expose,r=ee("select"),l=xe(),o=ka(),i=Ke("select"),u=i.t,c=i.globalConfig,v=vt(bu),s=G(null),d=B(function(){return v.value.popupContentRef.value}),f=B(function(){return e.creatable&&e.filterable&&e.inputValue}),p=B(function(){return v.value.displayOptions}),h=YB({scroll:e.scroll,popupContentRef:d,options:p}),m=h.trs,b=h.visibleData,y=h.handleRowMounted,C=h.isVirtual,O=h.panelStyle,_=h.cursorStyle,$=B(function(){return!p.value.length}),I=function(){return g("ul",{class:["".concat(r.value,"__create-option"),"".concat(r.value,"__list")]},[g(Rc,{value:e.inputValue,label:"".concat(e.inputValue),createAble:!0,class:"".concat(r.value,"__create-option--special")},null)])},x=function D(j){return g("ul",{class:"".concat(r.value,"__list")},[j.map(function(T,F){var w,P;if(T.group){var A;return g(By,{label:T.group,divider:T.divider},GB(A=D(T.children))?A:{default:function(){return[A]}})}return g(Rc,ve(ga(T,"index","$index","className","tagName"),C.value?{rowIndex:T.$index,trs:m,scrollType:(w=e.scroll)===null||w===void 0?void 0:w.type,isVirtual:C.value,bufferSize:(P=e.scroll)===null||P===void 0?void 0:P.bufferSize,key:"".concat(T.$index||"","_").concat(F)}:{key:"".concat(F,"_").concat(T.value)},{index:F,multiple:e.multiple,onRowMounted:y}),T.slots)})])},S=B(function(){return{small:"s",medium:"m",large:"l"}[v.value.size]});a({innerRef:s,visibleData:b,isVirtual:C,displayOptions:p});var E=function(j,T){return g("div",{ref:s,class:["".concat(r.value,"__dropdown-inner"),"".concat(r.value,"__dropdown-inner--size-").concat(S.value)],style:T},[f.value&&I(),e.loading&&o("loadingText",{defaultNode:g("div",{class:"".concat(r.value,"__loading-tips")},[u(c.value.loadingText)])}),!e.loading&&$.value&&!f.value&&o("empty",{defaultNode:g("div",{class:"".concat(r.value,"__empty")},[u(c.value.empty)])}),!$.value&&!e.loading&&x(j)])};return{renderPanel:E,panelStyle:O,cursorStyle:_,isVirtual:C,displayOptions:p,visibleData:b,renderTNodeJSX:l}},render:function(){return this.isVirtual?g(Ct,null,[this.renderTNodeJSX("panelTopContent"),g("div",null,[g("div",{style:this.cursorStyle},null),this.renderPanel(this.visibleData,this.panelStyle)]),this.renderTNodeJSX("panelBottomContent")]):g(Ct,null,[this.renderTNodeJSX("panelTopContent"),this.renderPanel(this.displayOptions),this.renderTNodeJSX("panelBottomContent")])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function jo(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=XB(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,i;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return l=c.done,c},e:function(c){o=!0,i=c},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(o)throw i}}}}function XB(t,e){if(t){if(typeof t=="string")return Yf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yf(t,e)}}function Yf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function Gf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Cn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var JB=function(e,n,a){var r=dl(),l=G([]),o=B(function(){var v,s=0,d=((v=e.options)===null||v===void 0?void 0:v.map(function(T){var F=function(P){var A=n.value,R=A.value,k=A.label,M=A.disabled,V=Cn(Cn({},P),{},{index:s,label:fe(P,k),value:fe(P,R),disabled:fe(P,M)});return s++,V};return T.group&&T.children?Cn(Cn({},T),{},{children:T.children.map(function(w){return F(w)})}):F(T)}))||[],f=r("Option"),p=r("OptionGroup");if(ke(p)){var h=jo(p),m;try{for(h.s();!(m=h.n()).done;){var b,y,C,O=m.value,_=Cn(Cn({group:(b=O.props)===null||b===void 0?void 0:b.label},O.props),{},{children:[]}),$=O.children.default();if(ke($)&&((y=$[0])!==null&&y!==void 0&&y.children)){var I=jo($==null||(C=$[0])===null||C===void 0?void 0:C.children),x;try{for(I.s();!(x=I.n()).done;){var S=x.value;_.children.push(Cn(Cn({},S.props),{},{slots:S.children,index:s})),s++}}catch(T){I.e(T)}finally{I.f()}d.push(_)}}}catch(T){h.e(T)}finally{h.f()}}if(ke(f)){var E=jo(f),D;try{for(E.s();!(D=E.n()).done;){var j=D.value;d.push(Cn(Cn({},j.props),{},{slots:j.children,index:s})),s++}}catch(T){E.e(T)}finally{E.f()}}return d}),i=B(function(){var v=[],s=function d(f){var p=jo(f),h;try{for(p.s();!(h=p.n()).done;){var m=h.value;m.group?d(m.children):v.push(m)}}catch(b){p.e(b)}finally{p.f()}};return s(o.value),v}),u=B(function(){var v=new Map;return l.value.concat(i.value).forEach(function(s){v.set(s.value,s)}),v}),c=B(function(){if(e.onSearch&&e.filterable||!a.value||!(e.filterable||pe(e.filter)))return o.value;var v=function(f){var p,h;return pe(e.filter)?e.filter("".concat(a.value),f):((p=f.label)===null||p===void 0||(h=p.toLowerCase)===null||h===void 0?void 0:h.call(p).indexOf("".concat(a.value).toLowerCase()))>-1},s=[];return o.value.forEach(function(d){d.group&&d.children&&s.push(Cn(Cn({},d),{},{children:d.children.filter(v)})),v(d)&&s.push(d)}),s});return{options:o,optionsMap:u,optionsList:i,optionsCache:l,displayOptions:c}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ZB(t){var e=t.displayOptions,n=t.optionsList,a=t.innerPopupVisible,r=t.setInnerPopupVisible,l=t.selectPanelRef,o=t.isFilterable,i=t.getSelectedOptions,u=t.setInnerValue,c=t.innerValue,v=t.popupContentRef,s=t.multiple,d=t.max,f=G(-1),p=G([]),h=G([]),m=ee(),b=function(C){var O,_,$=e.value.length,I=f.value;switch(C.code){case"ArrowUp":C.preventDefault(),f.value===-1?I=0:f.value===0||f.value>e.value.length-1?I=$-1:I--,(O=n.value[I])!==null&&O!==void 0&&O.disabled&&I--,f.value=I;break;case"ArrowDown":C.preventDefault(),f.value===-1||f.value>=$-1?I=0:I++,(_=n.value[I])!==null&&_!==void 0&&_.disabled&&I++,f.value=I;break;case"Enter":if(f.value===-1)break;var x=l.value.isVirtual&&o.value&&h.value.length?h.value:p.value;if(x.length||(x=n.value),!a.value){r(!0,{e:C});break}if(s){var E;if(f.value===-1)return;var D=(E=x[f.value])===null||E===void 0?void 0:E.value;if(!D)return;var j=Ly(c.value,D);if(d>0&&j.value.length>d)return;var T=i(j.value);u(j.value,{option:T.find(function(F){return F.value==D}),selectedOptions:T,trigger:j.isCheck?"check":"uncheck",e:C})}else{var S=i(x[f.value].value);u(x[f.value].value,{option:S==null?void 0:S[0],selectedOptions:i(x[f.value].value),trigger:"check",e:C}),r(!1,{e:C})}break;case"Escape":r(!1,{e:C});break}};return le(a,function(y){y&&(f.value=-1,h.value=[],p.value=[])}),le(f,function(y){var C,O=(C=l.value)===null||C===void 0||(C=C.innerRef)===null||C===void 0?void 0:C.querySelector(".".concat(m.value,"-select-option")).clientHeight,_=O*y;v.value.scrollTo({top:_,behavior:"smooth"})}),{hoverIndex:f,handleKeyDown:b,virtualFilteredOptions:h,filteredOptions:p}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var QB=["overlayClassName"];function eV(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=tV(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,i;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return l=c.done,c},e:function(c){o=!0,i=c},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(o)throw i}}}}function tV(t,e){if(t){if(typeof t=="string")return qf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qf(t,e)}}function qf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function Xf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function zn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var nV=ne({name:"TSelect",props:zn(zn({},cn),{},{valueDisplayOptions:{type:Object}}),setup:function(e,n){var a=n.slots,r=ee(),l=Jt(),o=xe(),i=ee("select"),u=Ke("select"),c=u.globalConfig,v=u.t,s=_e(e),d=s.popupVisible,f=s.inputValue,p=s.modelValue,h=s.value,m=Nt(f,e.defaultInputValue,e.onInputChange,"inputValue"),b=be(m,2),y=b[0],C=b[1],O=ht(h,p,e.defaultValue,e.onChange),_=be(O,2),$=_[0],I=_[1],x=G(null),S=G(null),E=B(function(){var Q,te,ae;return{label:((Q=e.keys)===null||Q===void 0?void 0:Q.label)||"label",value:((te=e.keys)===null||te===void 0?void 0:te.value)||"value",disabled:((ae=e.keys)===null||ae===void 0?void 0:ae.disabled)||"disabled"}}),D=JB(e,E,y),j=D.optionsMap,T=D.optionsList,F=D.optionsCache,w=D.displayOptions,P=B(function(){return $.value===void 0?e.multiple?[]:void 0:e.valueType==="object"?e.multiple?$.value.map(function(Q){return Q[E.value.value]}):$.value[E.value.value]:$.value}),A=function(te,ae){if(e.valueType==="object"){var he=E.value,Se=he.value,je=he.label,$e=function(Ue){if(Ue!==void 0){var Qe=j.value.get(Ue);return N(N({},Se,fe(Qe,Se)),je,fe(Qe,je))}};te=e.multiple?te.map(function(Fe){return $e(Fe)}):$e(te)}te!==$.value&&I(te,zn({selectedOptions:X(te)},ae))},R=Nt(d,!1,function(Q,te){var ae;(ae=e.onPopupVisibleChange)===null||ae===void 0||ae.call(e,Q,te)},"popupVisible"),k=be(R,2),M=k[0],V=k[1],W=B(function(){var Q;return(Q=!e.multiple&&M.value&&Ac(P.value,j)||e.placeholder)!==null&&Q!==void 0?Q:v(c.value.placeholder)}),U=B(function(){return e.multiple?KB(P.value,j):Ac(P.value,j)}),H=B(function(){var Q=e.multiple&&ke(P.value)?P.value.map(function(he){var Se;return{value:he,label:(Se=j.value.get(he))===null||Se===void 0?void 0:Se.label}}):P.value,te={value:Q,onClose:e.multiple?function(he){return z(he)}:function(){}};if(e.minCollapsedNum&&e.multiple){var ae;return zn(zn({},te),{},{displayValue:Q==null||(ae=Q.slice)===null||ae===void 0?void 0:ae.call(Q,0,e.minCollapsedNum)})}return te}),L=B(function(){return!!(e.filterable||c.value.filterable||pe(e.filter))}),z=function(te,ae){var he;ae&&ae.stopPropagation();var Se=Xn(P.value),je=Se[te];Se.splice(te,1),A(Se,{selectedOptions:X(Se),trigger:"tag-remove",e:ae}),(he=e.onRemove)===null||he===void 0||he.call(e,{value:je,data:j.value.get(je),e:ae})},K=function(){var te;y.value&&((te=e.onCreate)===null||te===void 0||te.call(e,y.value),C(""))},Y=B(function(){var Q;return(Q=S.value)===null||Q===void 0?void 0:Q.popupRef.getOverlay()}),q=B(function(){return T.value.filter(function(Q){return!Q.disabled&&!Q["check-all"]&&!Q.checkAll})}),X=function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P.value;return T.value.filter(function(ae){if(!ae.checkAll)return ke(te)?te.includes(ae.value):te===ae.value})},J=ZB({displayOptions:w,optionsList:T,innerPopupVisible:M,setInnerPopupVisible:V,selectPanelRef:x,isFilterable:L,getSelectedOptions:X,setInnerValue:A,innerValue:P,popupContentRef:Y,multiple:e.multiple,max:e.max}),Z=J.hoverIndex,oe=J.virtualFilteredOptions,se=J.handleKeyDown,me=J.filteredOptions,Te=function(te){if(e.multiple){var ae=te?q.value.map(function(he){return he.value}):[];A(ae,{selectedOptions:X(ae),trigger:te?"check":"clear"})}},Ie=B(function(){var Q=q.value.map(function(ae){return ae.value}),te=or(P.value,Q);return te.length}),re=B(function(){return Ie.value===q.value.length}),ue=B(function(){return!re.value&&Ie.value!==0}),ie=B(function(){return{max:e.max,multiple:e.multiple,hoverIndex:Z.value,selectValue:P.value,reserveKeyword:e.reserveKeyword,handleValueChange:A,handlerInputChange:C,handlePopupVisibleChange:V,handleCreate:K,size:e.size,popupContentRef:Y,indeterminate:ue.value,isCheckAll:re.value,onCheckAllChange:Te,getSelectedOptions:X,displayOptions:w.value}});wt(bu,ie);var Ce=function(){!e.multiple&&ke($.value)&&I(void 0,{selectedOptions:[],trigger:"default"}),e.multiple&&!ke($.value)&&I([],{selectedOptions:[],trigger:"default"})},Oe=Ra(function(Q,te){var ae,he=te.e;(ae=e.onSearch)===null||ae===void 0||ae.call(e,"".concat(Q),{e:he})},300),De=function(te,ae){te&&V(!0,{e:ae.e}),C(te),Oe("".concat(te),{e:ae.e}),Je(function(){var he,Se;oe.value=(he=x.value)===null||he===void 0?void 0:he.visibleData,me.value=(Se=x.value)===null||Se===void 0?void 0:Se.displayOptions})},Re=function(te,ae){V(te,ae),te&&ae.trigger==="trigger-element-click"&&C("")},Ee=function(te){if(e.multiple){var ae=[],he=eV(te||[]),Se;try{for(he.s();!(Se=he.n()).done;){var je=Se.value,$e=j.value.get(je);$e&&ae.push($e)}}catch(Ue){he.e(Ue)}finally{he.f()}F.value=Array.from(new Set([].concat(ae,ce(F.value))))}else{var Fe=j.value.get(te);Fe&&(F.value=Array.from(new Set([Fe].concat(ce(F.value)))))}};le($,function(Q){Ce(),Je(function(){Ee(Q)})},{immediate:!0}),le(function(){return e.multiple},function(){Ce()});var ge=function(te){var ae;if(x.value){var he=(ae=x.value)===null||ae===void 0||(ae=ae.innerRef)===null||ae===void 0?void 0:ae.querySelector(".".concat(r.value,"-is-selected"));Je(function(){if(he&&te){var Se=getComputedStyle(he),je=Se.paddingBottom,$e=getComputedStyle(te),Fe=$e.marginBottom,Ue=parseInt(je,10)+parseInt(Fe,10),Qe=he.offsetTop-te.offsetTop-(te.clientHeight-he.clientHeight)+Ue;te.scrollTop=Qe}})}};return wt("updateScrollTop",ge),function(){var Q=e.popupProps||{},te=Q.overlayClassName,ae=cr(Q,QB);return g("div",{class:"".concat(i.value,"__wrap")},[g(Ay,ve({autoWidth:e.autoWidth,readonly:e.readonly,borderless:e.borderless,multiple:e.multiple,clearable:e.clearable,loading:e.loading,status:e.status,tips:e.tips,minCollapsedNum:e.minCollapsedNum,autofocus:e.autofocus,suffix:e.suffix,valueDisplayOptions:e.valueDisplayOptions},{ref:S,class:i.value,value:U.value,disabled:l.value,popupVisible:M.value,inputValue:M.value?y.value:"",placeholder:"".concat(W.value),allowInput:L.value,"collapsed-items":e.collapsedItems,inputProps:zn(zn({size:e.size,autofocus:e.autofocus},e.inputProps),{},{onkeydown:se}),tagInputProps:zn({size:e.size},e.tagInputProps),onTagChange:function(Se,je){z(je.index)},tagProps:zn({},e.tagProps),popupProps:zn({overlayClassName:["".concat(i.value,"__dropdown"),te]},ae),label:e.label,prefixIcon:e.prefixIcon,suffix:e.suffix,suffixIcon:function(){return e.suffixIcon||a.suffixIcon?o("suffixIcon"):e.showArrow&&g(Hl,{overlayClassName:"".concat(i.value,"__right-icon"),isActive:M.value},null)},valueDisplay:function(){return o("valueDisplay",{params:H.value})},onPopupVisibleChange:Re,onInputChange:De,onClear:function(Se){var je,$e=Se.e;A(e.multiple?[]:void 0,{option:null,selectedOptions:X(e.multiple?[]:void 0),trigger:"clear",e:$e}),(je=e.onClear)===null||je===void 0||je.call(e,{e:$e})},onEnter:function(Se,je){var $e,Fe=je.e;($e=e.onEnter)===null||$e===void 0||$e.call(e,{inputValue:"".concat(y.value),e:Fe,value:P.value}),K()},onBlur:function(Se,je){var $e,Fe=je.e;($e=e.onBlur)===null||$e===void 0||$e.call(e,{e:Fe,value:P.value})},onFocus:function(Se,je){var $e,Fe=je.e;($e=e.onFocus)===null||$e===void 0||$e.call(e,{e:Fe,value:P.value})}},e.selectInputProps),{label:a.label,prefixIcon:a.prefixIcon,suffix:a.suffix,panel:function(){return g(qB,ve({ref:x},Ta(e,["size","multiple","empty","loading","loadingText","filterable","creatable","panelTopContent","panelBottomContent","filter","scroll"]),{inputValue:y.value}),a)},collapsedItems:a.collapsedItems})])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Ii=ye(nV),aV=ye(Rc);ye(By);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var rV={append:{type:[String,Function]},prepend:{type:[String,Function]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var lV=ne({name:"TInputAdornment",inheritAttrs:!1,props:rV,setup:function(e,n){var a=n.slots,r=ee("input-adornment"),l=xe(),o=function(u,c,v){var s,d=Be(v)||ct(v);return!a[c]&&Be(v)&&!v?null:(a[c]?a[c](null).length===1&&typeof a[c](null)[0].children=="string"?s=g("span",{class:"".concat(r.value,"__text")},[a[c](null)]):s=a[c](null):pe(v)?s=v(u):s=d?g("span",{class:"".concat(r.value,"__text")},[v]):v,s&&g("span",{class:"".concat(r.value,"__").concat(c)},[s]))};return function(){var i=o(He,"prepend",e.prepend),u=o(He,"append",e.append),c=l("default")||[null],v=[r.value,N(N({},"".concat(r.value,"--prepend"),i),"".concat(r.value,"--append"),u)];return!i&&!u?c[0]:g("div",{class:v},[i,c[0],u])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var oV=ye(lV);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var iV={current:{type:Number,default:void 0},modelValue:{type:Number,default:void 0},defaultCurrent:{type:Number,default:1},disabled:Boolean,foldedMaxPageBtn:{type:Number,default:5},maxPageBtn:{type:Number,default:10},pageEllipsisMode:{type:String,default:"mid",validator:function(e){return e?["mid","both-ends"].includes(e):!0}},pageSize:{type:Number,default:void 0},defaultPageSize:{type:Number,default:10},pageSizeOptions:{type:Array,default:function(){return[5,10,20,50]}},selectProps:{type:Object},showFirstAndLastPageBtn:Boolean,showJumper:Boolean,showPageNumber:{type:Boolean,default:!0},showPageSize:{type:Boolean,default:!0},showPreviousAndNextBtn:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium"].includes(e):!0}},theme:{type:String,default:"default",validator:function(e){return e?["default","simple"].includes(e):!0}},total:{type:Number,default:0},totalContent:{type:[Boolean,Function],default:!0},onChange:Function,onCurrentChange:Function,onPageSizeChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function uV(t,e,n,a){var r=ft(),l=r.SIZE,o=r.STATUS,i=B(function(){var C=Math.ceil(t.total/n.value);return C>0?C:1}),u=B(function(){return["".concat(a.value),l.value[t.size],N(N({},o.value.disabled,t.disabled),"".concat(a.value,"-ie"),da()<11)]}),c=B(function(){return["".concat(a.value,"__total")]}),v=B(function(){return["".concat(a.value,"__select")]}),s=B(function(){return["".concat(a.value,"__btn"),"".concat(a.value,"__btn-prev"),N({},o.value.disabled,t.disabled||e.value===1)]}),d=B(function(){return["".concat(a.value,"__btn"),"".concat(a.value,"__btn-next"),N({},o.value.disabled,t.disabled||e.value===i.value)]}),f=B(function(){return["".concat(a.value,"__pager")]}),p=B(function(){return["".concat(a.value,"__number"),"".concat(a.value,"__number--more"),N({},o.value.disabled,t.disabled)]}),h=B(function(){return["".concat(a.value,"__jump")]}),m=B(function(){return["".concat(a.value,"__input")]}),b=B(function(){return["".concat(a.value,"__select")]}),y=function(O){return["".concat(a.value,"__number"),N(N({},o.value.disabled,t.disabled),o.value.current,e.value===O)]};return{pageCount:i,paginationClass:u,totalClass:c,sizerClass:v,preBtnClass:s,nextBtnClass:d,btnWrapClass:f,btnMoreClass:p,jumperClass:h,jumperInputClass:m,simpleClass:b,getButtonClass:y}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function cV(t,e,n){var a=G(!1),r=G(!1),l=B(function(){return Math.ceil((t.foldedMaxPageBtn-1)/2)}),o=B(function(){return Math.floor((t.foldedMaxPageBtn-1)/2)}),i=B(function(){return 2+l.value<n.value}),u=B(function(){return e.value-1-o.value>n.value});return{prevMore:a,nextMore:r,curPageLeftCount:l,curPageRightCount:o,isPrevMoreShow:i,isNextMoreShow:u}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var sV=ct;function vV(t){return sV(t)&&t!=+t}var dV=vV,fV=["pageCount"],Ua=1,gV=ne({name:"TPagination",props:iV,setup:function(e){var n=It(),a=n.emit,r=_e(e),l=r.modelValue,o=r.pageSize,i=r.current,u=xe(),c=ht(i,l,e.defaultCurrent,e.onCurrentChange,"current"),v=be(c,2),s=v[0],d=v[1],f=Nt(o,e.defaultPageSize,e.onPageSizeChange,"pageSize"),p=be(f,2),h=p[0],m=p[1],b=Ke("pagination"),y=b.t,C=b.globalConfig,O=ee("pagination"),_=at({PageFirstIcon:$C,PageLastIcon:FC,ChevronLeftIcon:uo,ChevronRightIcon:Qr,ChevronLeftDoubleIcon:kC,ChevronRightDoubleIcon:AC,EllipsisIcon:RC}),$=_.PageFirstIcon,I=_.PageLastIcon,x=_.ChevronLeftIcon,S=_.ChevronRightIcon,E=_.ChevronLeftDoubleIcon,D=_.ChevronRightDoubleIcon,j=_.EllipsisIcon,T=uV(e,s,h,O),F=T.pageCount,w=cr(T,fV),P=cV(e,F,s),A=P.prevMore,R=P.isPrevMoreShow,k=P.curPageLeftCount,M=P.nextMore,V=P.isNextMoreShow,W=P.curPageRightCount,U=G(s.value),H=B(function(){return F.value>e.maxPageBtn}),L=B(function(){var Z=e.pageSizeOptions,oe=Z.map(function(se){return Ve(se)?se:{label:y(C.value.itemsPerPage,{size:se}),value:Number(se)}});return oe.sort(function(se,me){return se.value-me.value})}),z=B(function(){return e.pageEllipsisMode==="mid"}),K=B(function(){var Z=[],oe,se;if(H.value)if(R.value&&V.value)oe=s.value-k.value,se=s.value+W.value;else{var me=z.value?2:1,Te=z.value?F.value-1:F.value;R.value?oe=Math.min(s.value-1,F.value-e.foldedMaxPageBtn+1):oe=me,V.value?se=Math.max(s.value+1,e.foldedMaxPageBtn):se=Te}else oe=1,se=F.value;for(var Ie=oe;Ie<=se;Ie++)Z.push(Ie);return Z});le(function(){return F.value},function(){s.value>F.value&&(s.value=1)}),le(function(){return s.value},function(Z){return U.value=Z});var Y=function(oe,se){if(!e.disabled){var me=oe;if(oe<Ua?me=Ua:oe>F.value&&(me=F.value),s.value!==me){var Te=s.value,Ie={current:me,previous:Te,pageSize:h.value};if(se!==!1){var re;d(me,Ie),(re=e.onChange)===null||re===void 0||re.call(e,Ie)}else a("update:modelValue",me)}}},q=function(oe){var se={prevPage:function(){return Y(s.value-1)},nextPage:function(){return Y(s.value+1)},prevMorePage:function(){return Y(Math.max(2,s.value-e.foldedMaxPageBtn))},nextMorePage:function(){return Y(Math.min(s.value+e.foldedMaxPageBtn,F.value-1))}};se[oe]()},X=function(oe){var se;if(!e.disabled){var me=parseInt(oe,10),Te=1;me>0&&(Te=Math.max(Math.ceil(e.total/me),1));var Ie=!1;s.value>Te&&(Ie=!0);var re={current:Ie?Te:s.value,previous:s.value,pageSize:me};(se=e.onChange)===null||se===void 0||se.call(e,re),m(me,re),Ie&&Y(Te,!1)}},J=function(oe){var se=Math.trunc(+oe);dV(se)||(U.value=se,Y(se))};return function(){var Z=e.total,oe=e.pageSizeOptions,se=e.size,me=e.disabled,Te=e.showPageSize;if(F.value<1)return null;var Ie=g("div",{class:w.jumperClass.value},[y(C.value.jumpTo),g(oV,{append:"/ ".concat(F.value," ").concat(y(C.value.page))},{default:function(){return[g(Ws,{class:w.jumperInputClass.value,modelValue:U.value,"onUpdate:modelValue":function(ie){return U.value=ie},onBlur:J,onEnter:J,max:F.value,min:Ua,size:se,disabled:me,theme:"normal",placeholder:""},null)]}})]);return g("div",{class:w.paginationClass.value},[u("totalContent",g("div",{class:w.totalClass.value},[y(C.value.total,{total:Z})])),Te&&oe.length>0&&g(Ii,ve({size:se,value:h,disabled:me,class:w.sizerClass.value,autoWidth:!0,onChange:X,options:L.value},e.selectProps),null),e.showFirstAndLastPageBtn?g("div",{class:w.preBtnClass.value,onClick:function(){return Y(1)},disabled:e.disabled||e.current===Ua},[g($,null,null)]):null,e.showPreviousAndNextBtn?g("div",{class:w.preBtnClass.value,onClick:function(){return q("prevPage")},disabled:me||s.value===Ua},[g(x,null,null)]):null,e.showPageNumber&&e.theme==="default"?g("ul",{class:w.btnWrapClass.value},[H.value&&z.value&&g("li",{class:w.getButtonClass(1),onClick:function(){return Y(Ua)}},[Ua]),H.value&&R.value&&z.value?g("li",{class:w.btnMoreClass.value,onClick:function(){return q("prevMorePage")},onMouseOver:function(){return A.value=!0},onMouseOut:function(){return A.value=!1}},[A.value?g(E,null,null):g(j,null,null)]):null,K.value.map(function(re){return g("li",{class:w.getButtonClass(re),key:re,onClick:function(){return Y(re)}},[re])}),H.value&&V.value&&z.value?g("li",{class:w.btnMoreClass.value,onClick:function(){return q("nextMorePage")},onMouseOver:function(){return M.value=!0},onMouseOut:function(){return M.value=!1}},[M.value?g(D,null,null):g(j,null,null)]):null,H.value&&z.value?g("li",{class:w.getButtonClass(F.value),onClick:function(){return Y(F.value)}},[F.value]):null]):null,e.theme==="simple"&&Ie,e.showPreviousAndNextBtn?g("div",{class:w.nextBtnClass.value,onClick:function(){return q("nextPage")},disabled:me||s.value===F.value},[g(S,null,null)]):null,e.showFirstAndLastPageBtn?g("div",{class:w.nextBtnClass.value,onClick:function(){return Y(F.value)},disabled:me||s.value===F.value},[g(I,null,null)]):null,e.theme==="default"&&e.showJumper&&Ie])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var hV={disabled:{type:[Boolean,Object]},layout:{type:String,default:"horizontal",validator:function(e){return e?["horizontal","vertical"].includes(e):!0}},showCurrent:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},tips:{type:Object},variant:{type:String,default:"text",validator:function(e){return e?["text","outline"].includes(e):!0}},onChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Jf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function mV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jf(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var pV=ne({name:"TPaginationMini",props:mV({},hV),setup:function(e){var n=ee("pagination-mini"),a=at({ChevronLeftIcon:uo,RoundIcon:MC,ChevronRightIcon:Qr,ChevronUpIcon:pp,ChevronDownIcon:Yi}),r=a.ChevronLeftIcon,l=a.RoundIcon,o=a.ChevronRightIcon,i=a.ChevronUpIcon,u=a.ChevronDownIcon,c=B(function(){return Ve(e.tips)?e.tips:e.tips===!0?{prev:"上一页",current:"当前",next:"下一页"}:{}}),v=B(function(){return Ve(e.disabled)?e.disabled:e.disabled===!0?{prev:!0,current:!0,next:!0}:{prev:!1,current:!1,next:!1}});return function(){var s=[n.value,N({},"".concat(n.value,"--outline"),e.variant==="outline")];return g("div",{class:s},[g(Ot,{title:c.value.prev,variant:e.variant,size:e.size,shape:"square",onClick:function(f){var p;return(p=e.onChange)===null||p===void 0?void 0:p.call(e,{e:f,trigger:"prev"})},icon:e.layout==="horizontal"?function(){return g(r,null,null)}:function(){return g(i,null,null)},class:"".concat(n.value,"__prev"),disabled:v.value.prev},null),e.showCurrent&&g(Ot,{title:c.value.current,variant:e.variant,size:e.size,shape:"square",onClick:function(f){var p;return(p=e.onChange)===null||p===void 0?void 0:p.call(e,{e:f,trigger:"current"})},icon:function(){return g(l,null,null)},class:"".concat(n.value,"__current"),disabled:v.value.current},null),g(Ot,{title:c.value.next,variant:e.variant,size:e.size,shape:"square",onClick:function(f){var p;return(p=e.onChange)===null||p===void 0?void 0:p.call(e,{e:f,trigger:"next"})},icon:e.layout==="horizontal"?function(){return g(o,null,null)}:function(){return g(u,null,null)},class:"".concat(n.value,"__next"),disabled:v.value.next},null)])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var bV=ye(gV),yV=ye(pV);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function CV(t){var e=-1,n=Array(t.size);return t.forEach(function(a){n[++e]=a}),n}var Gs=CV;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function wV(t,e){for(var n=-1,a=t==null?0:t.length;++n<a;)if(e(t[n],n,t))return!0;return!1}var OV=wV,_V=hu,SV=OV,xV=mu,PV=1,EV=2;function TV(t,e,n,a,r,l){var o=n&PV,i=t.length,u=e.length;if(i!=u&&!(o&&u>i))return!1;var c=l.get(t),v=l.get(e);if(c&&v)return c==e&&v==t;var s=-1,d=!0,f=n&EV?new _V:void 0;for(l.set(t,e),l.set(e,t);++s<i;){var p=t[s],h=e[s];if(a)var m=o?a(h,p,s,e,t,l):a(p,h,s,t,e,l);if(m!==void 0){if(m)continue;d=!1;break}if(f){if(!SV(e,function(b,y){if(!xV(f,y)&&(p===b||r(p,b,n,a,l)))return f.push(y)})){d=!1;break}}else if(!(p===h||r(p,h,n,a,l))){d=!1;break}}return l.delete(t),l.delete(e),d}var Vy=TV;function DV(t){var e=-1,n=Array(t.size);return t.forEach(function(a,r){n[++e]=[r,a]}),n}var IV=DV,Zf=tl,Qf=Rp,jV=nl,$V=Vy,FV=IV,kV=Gs,AV=1,RV=2,MV="[object Boolean]",NV="[object Date]",LV="[object Error]",BV="[object Map]",VV="[object Number]",HV="[object RegExp]",KV="[object Set]",zV="[object String]",WV="[object Symbol]",UV="[object ArrayBuffer]",YV="[object DataView]",eg=Zf?Zf.prototype:void 0,Ku=eg?eg.valueOf:void 0;function GV(t,e,n,a,r,l,o){switch(n){case YV:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case UV:return!(t.byteLength!=e.byteLength||!l(new Qf(t),new Qf(e)));case MV:case NV:case VV:return jV(+t,+e);case LV:return t.name==e.name&&t.message==e.message;case HV:case zV:return t==e+"";case BV:var i=FV;case KV:var u=a&AV;if(i||(i=kV),t.size!=e.size&&!u)return!1;var c=o.get(t);if(c)return c==e;a|=RV,o.set(t,e);var v=$V(i(t),i(e),a,r,l,o);return o.delete(t),v;case WV:if(Ku)return Ku.call(t)==Ku.call(e)}return!1}var qV=GV,tg=Up,XV=1,JV=Object.prototype,ZV=JV.hasOwnProperty;function QV(t,e,n,a,r,l){var o=n&XV,i=tg(t),u=i.length,c=tg(e),v=c.length;if(u!=v&&!o)return!1;for(var s=u;s--;){var d=i[s];if(!(o?d in e:ZV.call(e,d)))return!1}var f=l.get(t),p=l.get(e);if(f&&p)return f==e&&p==t;var h=!0;l.set(t,e),l.set(e,t);for(var m=o;++s<u;){d=i[s];var b=t[d],y=e[d];if(a)var C=o?a(y,b,d,e,t,l):a(b,y,d,t,e,l);if(!(C===void 0?b===y||r(b,y,n,a,l):C)){h=!1;break}m||(m=d=="constructor")}if(h&&!m){var O=t.constructor,_=e.constructor;O!=_&&"constructor"in t&&"constructor"in e&&!(typeof O=="function"&&O instanceof O&&typeof _=="function"&&_ instanceof _)&&(h=!1)}return l.delete(t),l.delete(e),h}var eH=QV,zu=ru,tH=Vy,nH=qV,aH=eH,ng=go,ag=ke,rg=Da.exports,rH=tu,lH=1,lg="[object Arguments]",og="[object Array]",$o="[object Object]",oH=Object.prototype,ig=oH.hasOwnProperty;function iH(t,e,n,a,r,l){var o=ag(t),i=ag(e),u=o?og:ng(t),c=i?og:ng(e);u=u==lg?$o:u,c=c==lg?$o:c;var v=u==$o,s=c==$o,d=u==c;if(d&&rg(t)){if(!rg(e))return!1;o=!0,v=!1}if(d&&!v)return l||(l=new zu),o||rH(t)?tH(t,e,n,a,r,l):nH(t,e,u,n,a,r,l);if(!(n&lH)){var f=v&&ig.call(t,"__wrapped__"),p=s&&ig.call(e,"__wrapped__");if(f||p){var h=f?t.value():t,m=p?e.value():e;return l||(l=new zu),r(h,m,n,a,l)}}return d?(l||(l=new zu),aH(t,e,n,a,r,l)):!1}var uH=iH,cH=uH,ug=pn;function Hy(t,e,n,a,r){return t===e?!0:t==null||e==null||!ug(t)&&!ug(e)?t!==t&&e!==e:cH(t,e,n,a,Hy,r)}var Ky=Hy;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var sH=hu,vH=Us,dH=Ys,fH=dr,gH=fo,hH=mu,mH=200;function pH(t,e,n,a){var r=-1,l=vH,o=!0,i=t.length,u=[],c=e.length;if(!i)return u;n&&(e=fH(e,gH(n))),a?(l=dH,o=!1):e.length>=mH&&(l=hH,o=!1,e=new sH(e));e:for(;++r<i;){var v=t[r],s=n==null?v:n(v);if(v=a||v!==0?v:0,o&&s===s){for(var d=c;d--;)if(e[d]===s)continue e;u.push(v)}else l(e,s,a)||u.push(v)}return u}var bH=pH;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var zy={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(Kt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,l=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},u=function(m){return(m=+m)+(m>68?1900:2e3)},c=function(m){return function(b){this[m]=+b}},v=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var b=m.match(/([+-]|\d\d)/g),y=60*b[1]+(+b[2]||0);return y===0?0:b[0]==="+"?-y:y}(h)}],s=function(m){var b=i[m];return b&&(b.indexOf?b:b.s.concat(b.f))},d=function(m,b){var y,C=i.meridiem;if(C){for(var O=1;O<=24;O+=1)if(m.indexOf(C(O,0,b))>-1){y=O>12;break}}else y=m===(b?"pm":"PM");return y},f={A:[o,function(h){this.afternoon=d(h,!1)}],a:[o,function(h){this.afternoon=d(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[l,c("seconds")],ss:[l,c("seconds")],m:[l,c("minutes")],mm:[l,c("minutes")],H:[l,c("hours")],h:[l,c("hours")],HH:[l,c("hours")],hh:[l,c("hours")],D:[l,c("day")],DD:[r,c("day")],Do:[o,function(h){var m=i.ordinal,b=h.match(/\d+/);if(this.day=b[0],m)for(var y=1;y<=31;y+=1)m(y).replace(/\[|\]/g,"")===h&&(this.day=y)}],M:[l,c("month")],MM:[r,c("month")],MMM:[o,function(h){var m=s("months"),b=(s("monthsShort")||m.map(function(y){return y.slice(0,3)})).indexOf(h)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[o,function(h){var m=s("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,c("year")],Z:v,ZZ:v};function p(h){var m,b;m=h,b=i&&i.formats;for(var y=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(S,E,D){var j=D&&D.toUpperCase();return E||b[D]||n[D]||b[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,F,w){return F||w.slice(1)})})).match(a),C=y.length,O=0;O<C;O+=1){var _=y[O],$=f[_],I=$&&$[0],x=$&&$[1];y[O]=x?{regex:I,parser:x}:_.replace(/^\[|\]$/g,"")}return function(S){for(var E={},D=0,j=0;D<C;D+=1){var T=y[D];if(typeof T=="string")j+=T.length;else{var F=T.regex,w=T.parser,P=S.slice(j),A=F.exec(P)[0];w.call(E,A),S=S.replace(A,"")}}return function(R){var k=R.afternoon;if(k!==void 0){var M=R.hours;k?M<12&&(R.hours+=12):M===12&&(R.hours=0),delete R.afternoon}}(E),E}}return function(h,m,b){b.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var y=m.prototype,C=y.parse;y.parse=function(O){var _=O.date,$=O.utc,I=O.args;this.$u=$;var x=I[1];if(typeof x=="string"){var S=I[2]===!0,E=I[3]===!0,D=S||E,j=I[2];E&&(j=I[2]),i=this.$locale(),!S&&j&&(i=b.Ls[j]),this.$d=function(P,A,R){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*P);var k=p(A)(P),M=k.year,V=k.month,W=k.day,U=k.hours,H=k.minutes,L=k.seconds,z=k.milliseconds,K=k.zone,Y=new Date,q=W||(M||V?1:Y.getDate()),X=M||Y.getFullYear(),J=0;M&&!V||(J=V>0?V-1:Y.getMonth());var Z=U||0,oe=H||0,se=L||0,me=z||0;return K?new Date(Date.UTC(X,J,q,Z,oe,se,me+60*K.offset*1e3)):R?new Date(Date.UTC(X,J,q,Z,oe,se,me)):new Date(X,J,q,Z,oe,se,me)}catch{return new Date("")}}(_,x,$),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),D&&_!=this.format(x)&&(this.$d=new Date("")),i={}}else if(x instanceof Array)for(var T=x.length,F=1;F<=T;F+=1){I[1]=x[F-1];var w=b.apply(this,I);if(w.isValid()){this.$d=w.$d,this.$L=w.$L,this.init();break}F===T&&(this.$d=new Date(""))}else C.call(this,O)}}})})(zy);var qs=zy.exports,yH=Qb,cg=1/0,CH=17976931348623157e292;function wH(t){if(!t)return t===0?t:0;if(t=yH(t),t===cg||t===-cg){var e=t<0?-1:1;return e*CH}return t===t?t:0}var Wy=wH,OH=Wy;function _H(t){var e=OH(t),n=e%1;return e===e?n?e-n:e:0}var Uy=_H;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Yy={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(Kt,function(){return function(n,a){a.prototype.isoWeeksInYear=function(){var r=this.isLeapYear(),l=this.endOf("y").day();return l===4||r&&l===5?53:52}}})})(Yy);var SH=Yy.exports,Gy={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(Kt,function(){return function(n,a){a.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}})})(Gy);var xH=Gy.exports;function PH(t){if(t==null)throw new TypeError("Cannot destructure "+t)}function Mc(){return Mc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Mc.apply(this,arguments)}var qy={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(Kt,function(){return function(n,a,r){a.prototype.isBetween=function(l,o,i,u){var c=r(l),v=r(o),s=(u=u||"()")[0]==="(",d=u[1]===")";return(s?this.isAfter(c,i):!this.isBefore(c,i))&&(d?this.isBefore(v,i):!this.isAfter(v,i))||(s?this.isBefore(c,i):!this.isAfter(c,i))&&(d?this.isAfter(v,i):!this.isBefore(v,i))}}})})(qy);var EH=qy.exports,Xy={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(Kt,function(){var n="week",a="year";return function(r,l,o){var i=l.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var v=o(this).startOf(a).add(1,a).date(c),s=o(this).endOf(n);if(v.isBefore(s))return 1}var d=o(this).startOf(a).date(c).startOf(n).subtract(1,"millisecond"),f=this.diff(d,n,!0);return f<0?o(this).startOf("week").week():Math.ceil(f)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Xy);var TH=Xy.exports,Jy={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(Kt,function(){return function(n,a){a.prototype.weekYear=function(){var r=this.month(),l=this.week(),o=this.year();return l===1&&r===11?o+1:r===0&&l>=52?o-1:o}}})})(Jy);var DH=Jy.exports,Zy={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(Kt,function(){return function(n,a,r){var l=a.prototype,o=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,f,p,h,m){var b=d.name?d:d.$locale(),y=o(b[f]),C=o(b[p]),O=y||C.map(function($){return $.slice(0,h)});if(!m)return O;var _=b.weekStart;return O.map(function($,I){return O[(I+(_||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(d,f){return d.formats[f]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,m,b){return m||b.slice(1)})}(d.formats[f.toUpperCase()])},v=function(){var d=this;return{months:function(p){return p?p.format("MMMM"):i(d,"months")},monthsShort:function(p){return p?p.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):i(d,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(d.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return v.bind(this)()},r.localeData=function(){var s=u();return{firstDayOfWeek:function(){return s.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(f){return c(s,f)},meridiem:s.meridiem,ordinal:s.ordinal}},r.months=function(){return i(u(),"months")},r.monthsShort=function(){return i(u(),"monthsShort","months",3)},r.weekdays=function(s){return i(u(),"weekdays",null,null,s)},r.weekdaysShort=function(s){return i(u(),"weekdaysShort","weekdays",3,s)},r.weekdaysMin=function(s){return i(u(),"weekdaysMin","weekdays",2,s)}}})})(Zy);var IH=Zy.exports,Qy={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(Kt,function(){var n="month",a="quarter";return function(r,l){var o=l.prototype;o.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var i=o.add;o.add=function(c,v){return c=Number(c),this.$utils().p(v)===a?this.add(3*c,n):i.bind(this)(c,v)};var u=o.startOf;o.startOf=function(c,v){var s=this.$utils(),d=!!s.u(v)||v;if(s.p(c)===a){var f=this.quarter()-1;return d?this.month(3*f).startOf(n).startOf("day"):this.month(3*f+2).endOf(n).endOf("day")}return u.bind(this)(c,v)}}})})(Qy);var jH=Qy.exports,e0={exports:{}};(function(t,e){(function(n,a){t.exports=a()})(Kt,function(){return function(n,a){var r=a.prototype,l=r.format;r.format=function(o){var i=this,u=this.$locale();if(!this.isValid())return l.bind(this)(o);var c=this.$utils(),v=(o||"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(s){switch(s){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return c.s(i.week(),s==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),s==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),s==="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 s}});return l.bind(this)(v)}}})})(e0);var $H=e0.exports,FH=Es,kH=ou,AH=Uy,RH=Math.ceil,MH=Math.max;function NH(t,e,n){(n?kH(t,e,n):e===void 0)?e=1:e=MH(AH(e),0);var a=t==null?0:t.length;if(!a||e<1)return[];for(var r=0,l=0,o=Array(RH(a/e));r<a;)o[l++]=FH(t,r,r+=e);return o}var yu=NH;function sg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function vg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}de.extend(TH);de.extend(DH);de.extend(IH);de.extend(jH);de.extend($H);de.extend(qs);de.extend(EH);function LH(t){return t&&t[0].toUpperCase().concat(t.substring(1,t.length))}function BH(t){var e=t.year,n=t.month;return new Date(e,n,1)}function t0(t){var e=t.year,n=t.month;return new Date(e,n+1,0).getDate()}function VH(t){var e=t.year,n=t.month;return new Date(e,n,t0({year:e,month:n}))}function Xs(t,e){return t.getFullYear()===e.getFullYear()}function HH(t,e){return Xs(t,e)&&de(t).quarter()===de(e).quarter()}function Js(t,e){return Xs(t,e)&&t.getMonth()===e.getMonth()}function KH(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"zh-cn";return Js(t,e)&&de(t).locale(n).week()===de(e).locale(n).week()}function zH(t,e){return Js(t,e)&&t.getDate()===e.getDate()}function dg(t,e){var n=t.getTime(),a=e.getTime();return n<a?-1:n>a?1:0}function ca(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"date",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"zh-cn",r={isSameYear:Xs,isSameQuarter:HH,isSameMonth:Js,isSameWeek:KH,isSameDate:zH};return r["isSame".concat(LH(n))](t,e,a)}function kr(t,e,n){return e&&dg(t,e)===-1||n&&dg(t,n)===1}function Cu(){var t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0)}function wu(t,e){return de(t).subtract(e,"month").toDate()}function Ou(t,e){return de(t).add(e,"month").toDate()}function fg(t,e){var n=t.year,a=t.month,r=e.firstDayOfWeek,l=e.showWeekOfYear,o=l===void 0?!1:l,i=e.disableDate,u=i===void 0?function(){return!1}:i,c=e.minDate,v=e.maxDate,s=e.dayjsLocale,d=s===void 0?"zh-cn":s,f=e.cancelRangeSelectLimit,p=f===void 0?!1:f,h=BH({year:n,month:a}),m=VH({year:n,month:a}),b=t0({year:n,month:a}),y=[],C=1,O=Cu();for(C;C<=b;C++){var _=new Date(n,a,C);y.push({text:C,active:!1,value:_,disabled:pe(u)&&u(_)||!p&&kr(_,c,v),now:ca(O,_),firstDayOfMonth:C===1,lastDayOfMonth:C===b,type:"current-month",dayjsObj:de(_).locale(d)})}if(h.getDay()!==r)for(h.setDate(0);y.unshift({text:h.getDate().toString(),active:!1,value:new Date(h),disabled:pe(u)&&u(h)||!p&&kr(h,c,v),additional:!0,type:"prev-month",dayjsObj:de(h).locale(d)}),h.setDate(h.getDate()-1),h.getDay()!==Math.abs(r+6)%7;);for(var $=42;y.length<$;)m.setDate(m.getDate()+1),y.push({text:m.getDate(),active:!1,value:new Date(m),disabled:pe(u)&&u(m)||!p&&kr(m,c,v),additional:!0,type:"next-month",dayjsObj:de(m).locale(d)});var I=yu(y,7);return o&&I.forEach(function(x){x.unshift(vg(vg({},x[0]),{},{active:!1,value:x[0].value,text:de(x[0].value).locale(d).week(),dayjsObj:de(x[0].value).locale(d)}))}),I}function WH(t,e){for(var n=e.disableDate,a=n===void 0?function(){return!1}:n,r=e.minDate,l=e.maxDate,o=e.quarterLocal,i=e.dayjsLocale,u=i===void 0?"zh-cn":i,c=e.cancelRangeSelectLimit,v=c===void 0?!1:c,s=[],d=Cu(),f=1;f<=4;f++){var p=de(new Date(t,0)).quarter(f).toDate();s.push({value:p,now:ca(p,d,"quarter"),disabled:pe(a)&&a(p)||!v&&kr(p,r,l),active:!1,text:o[f-1],dayjsObj:de(p).locale(u)})}return yu(s,4)}function UH(t,e){for(var n=e.disableDate,a=n===void 0?function(){return!1}:n,r=e.minDate,l=e.maxDate,o=e.dayjsLocale,i=o===void 0?"zh-cn":o,u=e.cancelRangeSelectLimit,c=u===void 0?!1:u,v=parseInt((t/10).toString(),10)*10,s=v+9,d=[],f=Cu(),p=v;p<=s;p++){var h=new Date(p,1);d.push({value:h,now:ca(h,f,"year"),disabled:pe(a)&&a(h)||!c&&kr(h,r,l),active:!1,text:"".concat(h.getFullYear()),dayjsObj:de(h).locale(i)})}return yu(d,3)}function YH(t,e){for(var n=e.disableDate,a=n===void 0?function(){return!1}:n,r=e.minDate,l=e.maxDate,o=e.monthLocal,i=e.dayjsLocale,u=i===void 0?"zh-cn":i,c=e.cancelRangeSelectLimit,v=c===void 0?!1:c,s=[],d=Cu(),f=0;f<=11;f++){var p=new Date(t,f);s.push({value:p,now:ca(p,d,"month"),disabled:pe(a)&&a(p)||!v&&kr(p,r,l),active:!1,text:o[p.getMonth()],dayjsObj:de(p).locale(u)})}return yu(s,3)}function GH(t,e){var n=Mc({},(PH(e),e)),a=n.start,r=n.end,l=n.hoverStart,o=n.hoverEnd,i=n.type,u=i===void 0?"date":i,c=n.isRange,v=c===void 0?!1:c;return u==="week"?t:v?t.map(function(s){return s.map(function(d){var f=d,p=d.value,h=a&&ca(a,p,u),m=l&&ca(l,p,u),b=r&&ca(r,p,u),y=o&&ca(o,p,u);return f.active=(h||b)&&!f.additional,a&&r&&(f.highlight=de(p).isBetween(a,r,u,"[]")&&!f.additional,f.startOfRange=h,f.endOfRange=b),l&&o&&(f.hoverHighlight=de(p).isBetween(l,o,u,"[]")&&!f.additional,f.hoverStartOfRange=m,f.hoverEndOfRange=y),f})}):t.map(function(s){return s.map(function(d){var f=d;return f.active=a&&ca(d.value,a,u)&&!f.additional,f})})}function Zs(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=t.match(/(a\s)?h{1,2}(:m{1,2})?(:s{1,2})?(\sa)?/i);return e?e[0]:null}function Yr(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=t.match(/[ap]m/i)||[""],n=/\d{1,2}(:\d{1,2})?(:\d{1,2})?(:\d{1,3})?/,a=t.match(n)||["0:0:0:0"],r=a[0].split(":"),l=be(r,4),o=l[0],i=o===void 0?0:o,u=l[1],c=u===void 0?0:u,v=l[2],s=v===void 0?0:v,d=l[3],f=d===void 0?0:d;return{hours:+i,minutes:+c,seconds:+s,milliseconds:+f,meridiem:e[0]}}de.extend(SH);de.extend(xH);var Pl="HH:mm:ss";function Me(t,e,n,a){if(t===""||t===null)return de();var r=t;if(/[w|W]/g.test(e)){Be(r)||(r=de(r).locale(a||"zh-cn").format(e));var l=r.split(/[-/.\s]/)[0],o=r.split(/[-/.\s]/)[1],i=e.split(/[-/.\s]/)[1],u=de(l,"YYYY").locale(a||"zh-cn").startOf("year");(u.day()>4||u.day()===0)&&(u=u.add(1,"week"));for(var c=de(l,"YYYY").locale(a||"zh-cn").isoWeeksInYear(),v=0;v<=c;v+=1){var s=u.add(v,"week");if(n==="start"&&(s=s.subtract(5,"day")),s.format(i)===o)return s}}if(/Q/g.test(e)){Be(r)||(r=de(r).locale(a||"zh-cn").format(e));for(var d=r.split(/[-/.\s]/)[0],f=r.split(/[-/.\s]/)[1],p=e.split(/[-/.\s]/)[1],h=de(d,"YYYY").startOf("year"),m=0;m<4;m+=1){var b=h.add(m,"quarter");if(b.format(p)===f)return b}}var y=de(r,e).isValid()?de(r,e):de(r);return y.isValid()?y:(We.error("DatePicker",`Check whether the format、value format is valid.
 value: '`.concat(t,"', format: '").concat(e,"'")),de())}function qH(t){var e=t.newDate,n=t.format,a=t.dayjsLocale,r=t.targetFormat,l=t.autoSwap;if(!e||!Array.isArray(e))return[];var o=e.map(function(i){return i&&Me(i,n).locale(a)});return l&&o[0]&&o[1]&&o[0].toDate().getTime()>o[1].toDate().getTime()&&(o=[o[1],o[0]]),o.some(function(i){return i&&!i.isValid()})?(We.error("DatePicker",`Check whether the value、format、valueType format is valid.
format: '`.concat(n,"' value: '").concat(e,"' valueType: '").concat(r,"'")),[]):r==="time-stamp"?o.map(function(i){return i&&i.toDate().getTime()}):r==="Date"?o.map(function(i){return i&&i.toDate()}):o.map(function(i){return i&&i.format(r||n)})}function XH(t){var e=t.newDate,n=t.format,a=t.targetFormat,r=t.dayjsLocale;if(!e)return"";var l=Me(e,n).locale(r);return l.isValid()?a==="time-stamp"?l.toDate().getTime():a==="Date"?l.toDate():l.format(a||n):(We.error("DatePicker",`Check whether the format、value format is valid.
format: '`.concat(n,"' value: '").concat(e,"'")),"")}function Ht(t,e){return Array.isArray(t)?t.every(function(n){return n===""?!0:de(n,e).isValid()||de(n).isValid()}):t===""?!0:de(t,e).isValid()||de(t).isValid()}function ze(t,e){var n=e.format,a=e.targetFormat,r=e.dayjsLocale,l=r===void 0?"zh-cn":r,o=e.autoSwap,i;return Array.isArray(t)?i=qH({newDate:t,format:n,dayjsLocale:l,targetFormat:a,autoSwap:o}):i=XH({newDate:t,format:n,dayjsLocale:l,targetFormat:a}),i}function gg(t,e){if(t&&e){var n=t.split(":"),a=e.split(":");return n.slice(0,a.length).join(":")}return t}function Gr(t,e,n,a){var r,l=Array.isArray(t)?t:[t];return a=Array.isArray(a)?a:[a,a],l=l.map(function(o,i){return o?de(o,typeof o=="string"?e:void 0).format(n):gg(a[i],n)}),l=l.length?l:a.map(function(o){return gg(o,n)}),Array.isArray(t)?l:(r=l)===null||r===void 0?void 0:r[0]}function Ln(t){var e=t.mode,n=e===void 0?"date":e,a=t.format,r=t.valueType,l=t.enableTimePicker;return n==="year"?{format:a||"YYYY",valueType:r||a||"YYYY",timeFormat:Pl}:n==="month"?{format:a||"YYYY-MM",valueType:r||a||"YYYY-MM",timeFormat:Pl}:n==="quarter"?{format:a||"YYYY-[Q]Q",valueType:r||a||"YYYY-[Q]Q",timeFormat:Pl}:n==="week"?{format:a||"YYYY-wo",valueType:r||a||"YYYY-wo",timeFormat:Pl}:n==="date"?{format:a||"YYYY-MM-DD".concat(l?" HH:mm:ss":""),valueType:r||a||"YYYY-MM-DD".concat(l?" HH:mm:ss":""),timeFormat:Zs(a||"YYYY-MM-DD".concat(l?" HH:mm:ss":""))||Pl}:(We.error("DatePicker","Invalid mode: ".concat(n)),{})}function ci(t){var e=t.value,n=t.mode,a=n===void 0?"date":n,r=t.format,l=t.timeFormat,o=l===void 0?"HH:mm:ss":l,i=t.enableTimePicker,u={year:[de().year(),de().year()],month:[de().month(),de().month()],time:[de().format(o),de().format(o)]};return a==="year"?u.year[1]+=10:a==="month"||a==="quarter"?u.year[1]+=1:(a==="date"||a==="week")&&!i&&(u.month[0]===11?(u.year[1]+=1,u.month[1]=0):u.month[1]+=1),!e||!Array.isArray(e)||!e.length?u:{year:e.map(function(c){return Me(c,r).year()}),month:e.map(function(c){return Me(c,r).month()}),time:e.map(function(c){return Me(c,r).format(o)})}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function n0(t){var e=_e(t),n=e.value,a=e.modelValue,r=ht(n,a,t.defaultValue,t.onChange),l=be(r,2),o=l[0],i=l[1],u=B(function(){return Ln({mode:t.mode,format:t.format,enableTimePicker:t.enableTimePicker})});t.enableTimePicker&&(Zs(u.value.format)||console.error("format: ".concat(u.value.format," 不规范，包含时间选择必须要有时间格式化 HH:mm:ss")));var c=G(Gr(o.value,u.value.format,u.value.timeFormat,t.defaultTime)),v=G(Me(o.value,u.value.format).month()),s=G(Me(o.value,u.value.format).year()),d=G(ze(o.value,{format:u.value.format}));return Nr(function(){if(!o.value){d.value="";return}Ht(o.value,u.value.format)&&(d.value=ze(o.value,{format:u.value.format}),c.value=Gr(o.value,u.value.format,u.value.timeFormat,t.defaultTime))}),{year:s,month:v,value:o,time:c,cacheValue:d,onChange:i}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function hg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Fo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function JH(t){var e=ee("date-picker"),n=Ke("datePicker"),a=n.globalConfig,r=at({CalendarIcon:bp}),l=r.CalendarIcon,o=Jt(),i=xe(),u=G(),c=n0(t),v=c.value,s=c.onChange,d=c.time,f=c.month,p=c.year,h=c.cacheValue,m=B(function(){return Ln({mode:t.mode,format:t.format,valueType:t.valueType,enableTimePicker:t.enableTimePicker})}),b=G(!1),y=G(!1),C=G(ze(v.value,{format:m.value.format})),O=B(function(){return Fo(Fo({},t.inputProps),{},{size:t.size,ref:u,prefixIcon:function(){return i("prefixIcon")},readonly:!t.allowInput,placeholder:t.placeholder||a.value.placeholder[t.mode],suffixIcon:function(){return i("suffixIcon")||g(l,null,null)},class:[N({},"".concat(e.value,"__input--placeholder"),y.value)],onClear:function(I){var x;I==null||(x=I.e)===null||x===void 0||x.stopPropagation(),b.value=!1,s==null||s("",{dayjsValue:de(),trigger:"clear"})},onBlur:function(I,x){var S;(S=t.onBlur)===null||S===void 0||S.call(t,{value:I,e:x.e})},onFocus:function(I,x){var S,E=x.e;(S=t.onFocus)===null||S===void 0||S.call(t,{value:v.value,e:E})},onChange:function(I){if(C.value=I,!!Ht(I,m.value.format)){h.value=I;var x=Me(I,m.value.format).month(),S=Me(I,m.value.format).year(),E=Gr(I,m.value.format,m.value.timeFormat,t.defaultTime);!Number.isNaN(S)&&(p.value=S),!Number.isNaN(x)&&(f.value=x),!Number.isNaN(E)&&(d.value=E)}},onEnter:function(I){if(!I){s("",{dayjsValue:de(),trigger:"enter"}),b.value=!1;return}!Ht(I,m.value.format)&&!Ht(v.value,m.value.format)||(b.value=!1,Ht(I,m.value.format)?s==null||s(ze(I,{format:m.value.format,targetFormat:m.value.valueType}),{dayjsValue:Me(I,m.value.format),trigger:"enter"}):Ht(v.value,m.value.format)?C.value=ze(v.value,{format:m.value.format}):C.value="")}})}),_=B(function(){var $,I,x;return Fo(Fo({expandAnimation:!0},t.popupProps),{},{disabled:o.value,overlayInnerStyle:($=(I=t.popupProps)===null||I===void 0?void 0:I.overlayInnerStyle)!==null&&$!==void 0?$:{width:"auto"},overlayClassName:[(x=t.popupProps)===null||x===void 0?void 0:x.overlayClassName,"".concat(e.value,"__panel-container")],onVisibleChange:function(E,D){var j,T;if(!o.value){if((j=t.popupProps)===null||j===void 0||(T=j.onVisibleChange)===null||T===void 0||T.call(j,E,D),D.trigger==="trigger-element-click"){b.value=!0;return}b.value=E}}})});return le(v,function($){if(!$){C.value="";return}Ht($,m.value.format)&&(C.value=ze($,{format:m.value.format}))}),{year:p,month:f,value:v,time:d,inputValue:C,popupVisible:b,inputProps:O,popupProps:_,inputRef:u,cacheValue:h,isHoverCell:y,onChange:s}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var sn={allowInput:Boolean,clearable:Boolean,defaultTime:{type:String,default:"00:00:00"},disableDate:{type:[Object,Array,Function]},disabled:Boolean,enableTimePicker:Boolean,firstDayOfWeek:{type:Number,validator:function(e){return e?[1,2,3,4,5,6,7].includes(e):!0}},format:{type:String,default:void 0},inputProps:{type:Object},mode:{type:String,default:"date",validator:function(e){return e?["year","quarter","month","week","date"].includes(e):!0}},placeholder:{type:[String,Array],default:void 0},popupProps:{type:Object},prefixIcon:{type:Function},presets:{type:Object},presetsPlacement:{type:String,default:"bottom",validator:function(e){return e?["left","top","right","bottom"].includes(e):!0}},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffixIcon:{type:Function},timePickerProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Array,Date],default:void 0},modelValue:{type:[String,Number,Array,Date],default:void 0},defaultValue:{type:[String,Number,Array,Date],default:""},valueType:{type:String,default:""},onBlur:Function,onChange:Function,onConfirm:Function,onFocus:Function,onPick:Function,onPresetClick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var ZH=ne({name:"TDatePickerHeader",props:{mode:{type:String,default:"date"},year:Number,month:Number,onMonthChange:Function,onYearChange:Function,onJumperClick:Function},setup:function(e){var n=Ke("classPrefix"),a=n.classPrefix,r=ee("date-picker__header"),l=Ke("datePicker"),o=l.globalConfig,i=G(s(e.year)),u=e.mode==="date"||e.mode==="week",c=B(function(){var b;return((b=i.value.find(function(y){return y.value-e.year<=9&&y.value-e.year>=0}))===null||b===void 0?void 0:b.value)||e.year}),v=B(function(){return o.value.months.map(function(b,y){return{label:b,value:y}})});function s(b){var y=[];if(e.mode==="year")for(var C=b%10,O=b-C-100,_=b-C+100,$=O;$<=_;$+=10)y.push({label:"".concat($," - ").concat($+9),value:$+9});else{y.push({label:"".concat(b),value:b});for(var I=1;I<=10;I++)y.push({label:"".concat(b+I),value:b+I}),y.unshift({label:"".concat(b-I),value:b-I})}return y}function d(b,y){var C=[];if(e.mode==="year"){var O=b%10;if(y==="add")for(var _=b-O+10;_<=b-O+50;_+=10)C.push({label:"".concat(_," - ").concat(_+9),value:_});else for(var $=b-O-1;$>b-O-50;$-=10)C.unshift({label:"".concat($-9," - ").concat($),value:$})}else if(y==="add")for(var I=b+1;I<=b+10;I++)C.push({label:"".concat(I),value:I});else for(var x=b-1;x>b-10;x--)C.unshift({label:"".concat(x),value:x});return C}var f=B(function(){return{year:{prev:o.value.preDecade,current:o.value.now,next:o.value.nextDecade},month:{prev:o.value.preYear,current:o.value.now,next:o.value.nextYear},date:{prev:o.value.preMonth,current:o.value.now,next:o.value.nextMonth}}});function p(b){var y=b.e;y.target.scrollTop===0?h(y):y.target.scrollTop===y.target.scrollHeight-y.target.clientHeight&&m(y)}function h(b){var y;b==null||(y=b.stopPropagation)===null||y===void 0||y.call(b);var C=i.value[0].value,O=d(C,"reduce");i.value=[].concat(ce(O),ce(i.value))}function m(b){var y;b==null||(y=b.stopPropagation)===null||y===void 0||y.call(b);var C=i.value.slice(-1)[0].value,O=d(C,"add");i.value=[].concat(ce(i.value),ce(O))}return function(){return g("div",{class:r.value},[g("div",{class:"".concat(r.value,"-controller")},[u&&g(Ii,{class:"".concat(r.value,"-controller-month"),value:e.month,options:v.value,onChange:function(y){var C;return(C=e.onMonthChange)===null||C===void 0?void 0:C.call(e,y)},popupProps:{attach:function(y){return y.parentNode},overlayClassName:"".concat(r.value,"-controller-month-popup")}},null),g(Ii,{class:"".concat(r.value,"-controller-year"),value:e.mode==="year"?c.value:e.year,options:i.value,onChange:function(y){var C;return(C=e.onYearChange)===null||C===void 0?void 0:C.call(e,y)},popupProps:{onScroll:p,attach:function(y){return y.parentNode},overlayClassName:"".concat(r.value,"-controller-year-popup")},panelTopContent:function(){return g("div",{class:"".concat(a.value,"-select-option"),onClick:h},[gv("...")])},panelBottomContent:function(){return g("div",{class:"".concat(a.value,"-select-option"),onClick:m},[gv("...")])}},null)]),g(yV,{tips:f.value[e.mode],size:"small",onChange:e.onJumperClick},null)])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var QH=ne({name:"TDatePickerCell",props:{time:String,text:[String,Number],value:Date,active:Boolean,highlight:Boolean,disabled:Boolean,startOfRange:Boolean,endOfRange:Boolean,hoverHighlight:Boolean,hoverStartOfRange:Boolean,hoverEndOfRange:Boolean,additional:Boolean,now:Boolean,firstDayOfMonth:Boolean,lastDayOfMonth:Boolean,onClick:Function,onMouseEnter:Function,dayjsObj:iu.exports.Dayjs},setup:function(e){var n=ee("date-picker__cell"),a=B(function(){var o;return[n.value,(o={},N(N(N(N(N(N(N(N(N(N(o,"".concat(n.value,"--now"),e.now),"".concat(n.value,"--active"),e.active),"".concat(n.value,"--disabled"),e.disabled),"".concat(n.value,"--highlight"),e.highlight),"".concat(n.value,"--hover-highlight"),e.hoverHighlight),"".concat(n.value,"--active-start"),e.startOfRange),"".concat(n.value,"--active-end"),e.endOfRange),"".concat(n.value,"--hover-start"),e.hoverStartOfRange),"".concat(n.value,"--hover-end"),e.hoverEndOfRange),"".concat(n.value,"--additional"),e.additional),N(N(o,"".concat(n.value,"--first-day-of-month"),e.firstDayOfMonth),"".concat(n.value,"--last-day-of-month"),e.lastDayOfMonth))]});function r(o){var i;if(!e.disabled){if(e.time){var u=Yr(e.time),c=u.hours,v=u.minutes,s=u.seconds,d=u.milliseconds,f=u.meridiem,p=c;/am/i.test(f)&&p===12&&(p-=12),/pm/i.test(f)&&p<12&&(p+=12),e.value.setHours(p),e.value.setMinutes(v),e.value.setSeconds(s),e.value.setMilliseconds(d)}(i=e.onClick)===null||i===void 0||i.call(e,e.value,{e:o})}}function l(){var o;if(!e.disabled){if(e.time){var i=Yr(e.time),u=i.hours,c=i.minutes,v=i.seconds,s=i.milliseconds,d=i.meridiem,f=u;/am/i.test(d)&&f===12&&(f-=12),/pm/i.test(d)&&f<12&&(f+=12),e.value.setHours(f),e.value.setMinutes(c),e.value.setSeconds(v),e.value.setMilliseconds(s)}(o=e.onMouseEnter)===null||o===void 0||o.call(e,e.value)}}return function(){return g("td",{class:a.value,onClick:r,onMouseenter:l},[g("div",{class:"".concat(n.value,"-inner")},[e.text])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function mg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function eK(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var tK=ne({name:"TDatePickerTable",props:{mode:{type:String,default:"date"},value:[String,Number,Array,Date],format:String,firstDayOfWeek:Number,data:Array,time:String,onCellClick:Function,onCellMouseEnter:Function,onCellMouseLeave:Function},setup:function(e){var n=ee("date-picker__table"),a=Ke("datePicker"),r=a.globalConfig,l=r.value.dayjsLocale,o=B(function(){for(var c=[],v=e.firstDayOfWeek-1,s=r.value.weekdays.length;c.length<s;)c.push(r.value.weekdays[v]),v=(v+s+1)%s;return e.mode==="week"&&c.unshift(r.value.weekAbbreviation),c}),i=B(function(){return e.mode==="date"||e.mode==="week"}),u=function(v,s,d){if(e.mode!=="week"||!v)return{};if(ke(v)){var f,p,h,m;if(!v.length)return{};var b=v.map(function(F){return F&&Me(F,s)}),y=be(b,2),C=y[0],O=y[1],_=C&&C.year(),$=C==null||(f=C.locale)===null||f===void 0||(f=f.call(C,l))===null||f===void 0||(p=f.week)===null||p===void 0?void 0:p.call(f),I=O&&O.year(),x=O==null||(h=O.locale)===null||h===void 0||(h=h.call(O,l))===null||h===void 0||(m=h.week)===null||m===void 0?void 0:m.call(h),S=Me(d,s),E=S.year(),D=S.week(),j=E===_&&D===$||E===I&&D===x,T=E>=_&&E<=I&&D>$&&D<x;return N(N({},"".concat(n.value,"-").concat(e.mode,"-row--active"),j),"".concat(n.value,"-").concat(e.mode,"-row--range"),T)}return N({},"".concat(n.value,"-").concat(e.mode,"-row--active"),Me(v,s).locale(l).week()===Me(d,s).locale(l).week())};return function(){return g("div",{class:n.value,onMouseleave:function(v){var s;return(s=e.onCellMouseLeave)===null||s===void 0?void 0:s.call(e,{e:v})}},[g("table",null,[i.value&&g("thead",null,[g("tr",null,[o.value.map(function(c,v){return g("th",{key:v},[c])})])]),g("tbody",null,[e.data.map(function(c,v){return g("tr",{key:v,class:eK(N({},"".concat(n.value,"-").concat(e.mode,"-row"),!0),u(e.value,e.format,c[0].value))},[c.map(function(s,d){return g(QH,ve(s,{key:d,time:e.time,onClick:e.onCellClick,onMouseEnter:e.onCellMouseEnter}),null)})])})])])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var si="am",vi="pm",pg=[si,vi],nK=[1,1,1],aK="HH:mm:ss",bt=function(t){return t.hour="hour",t.minute="minute",t.second="second",t.milliSecond="millisecond",t.meridiem="meridiem",t}(bt||{}),rK=/(a\s+|A\s+)?(h+|H+)?:?(m+)?:?(s+)?:?(S+)?(\s+a|\s+A)?/,bg=/[h]{1}/;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var a0={allowInput:Boolean,clearable:Boolean,disableTime:{type:Function},disabled:Boolean,format:{type:String,default:"HH:mm:ss"},hideDisabledTime:{type:Boolean,default:!0},inputProps:{type:Object},placeholder:{type:String,default:void 0},popupProps:{type:Object},presets:{type:Object},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},steps:{type:Array,default:function(){return[1,1,1]}},tips:{type:[String,Function]},value:{type:String,default:void 0},modelValue:{type:String,default:void 0},defaultValue:{type:String,default:""},onBlur:Function,onChange:Function,onClose:Function,onFocus:Function,onInput:Function,onOpen:Function,onPick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function yg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Fn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var ko={type:Boolean,default:!0,validator:function(e){return An(e)}},lK=function(){return{disabled:Fn(Fn({},ko),{default:!1}),isFocus:Fn(Fn({},ko),{default:!1}),value:{type:String,default:""},format:{type:String,default:"HH:mm:ss"},steps:Fn({type:Array},{default:[1,1,1]}),isShowPanel:Fn(Fn({},ko),{default:!0}),activeIndex:{type:Number},presets:{type:Object},hideDisabledTime:Fn({},a0.hideDisabledTime),disableTime:{type:Function},isFooterDisplay:Fn({},ko)}},oK=function(){return{format:{type:String,default:"HH:mm:ss"},cols:{type:Array,default:function(){return[bt.hour,bt.minute,bt.second]}},value:{type:String,default:""},range:{type:Array,default:function(){return[]}},steps:Fn({type:Array},{default:[1,1,1]}),hideDisabledTime:Fn({},a0.hideDisabledTime),disableTime:{type:Function},localeMeridiems:{type:Array}}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function iK(t){return function(e){return e==null?void 0:e[t]}}var r0=iK;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function uK(t,e,n){return n<=1?e:t.sort(function(a,r){return Math.abs(e+1-a)-Math.abs(e+1-r)})[0]}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var cK=Math.ceil,sK=Math.max;function vK(t,e,n,a){for(var r=-1,l=sK(cK((e-t)/(n||1)),0),o=Array(l);l--;)o[a?l:++r]=t,t+=n;return o}var dK=vK,fK=dK,gK=ou,Wu=Wy;function hK(t){return function(e,n,a){return a&&typeof a!="number"&&gK(e,n,a)&&(n=a=void 0),e=Wu(e),n===void 0?(n=e,e=0):n=Wu(n),a=a===void 0?e<n?1:-1:Wu(a),fK(e,n,a,t)}}var mK=hK,pK=mK,bK=pK(),Cg=bK,yK=9007199254740991,CK=Math.floor;function wK(t,e){var n="";if(!t||e<1||e>yK)return n;do e%2&&(n+=t),e=CK(e/2),e&&(t+=t);while(e);return n}var OK=wK,_K=r0,SK=_K("length"),xK=SK,l0="\\ud800-\\udfff",PK="\\u0300-\\u036f",EK="\\ufe20-\\ufe2f",TK="\\u20d0-\\u20ff",DK=PK+EK+TK,IK="\\ufe0e\\ufe0f",jK="["+l0+"]",Nc="["+DK+"]",Lc="\\ud83c[\\udffb-\\udfff]",$K="(?:"+Nc+"|"+Lc+")",o0="[^"+l0+"]",i0="(?:\\ud83c[\\udde6-\\uddff]){2}",u0="[\\ud800-\\udbff][\\udc00-\\udfff]",FK="\\u200d",c0=$K+"?",s0="["+IK+"]?",kK="(?:"+FK+"(?:"+[o0,i0,u0].join("|")+")"+s0+c0+")*",AK=s0+c0+kK,RK="(?:"+[o0+Nc+"?",Nc,i0,u0,jK].join("|")+")",wg=RegExp(Lc+"(?="+Lc+")|"+RK+AK,"g");function MK(t){for(var e=wg.lastIndex=0;wg.test(t);)++e;return e}var NK=MK,LK=xK,BK=su,VK=NK;function HK(t){return BK(t)?VK(t):LK(t)}var v0=HK,Og=OK,KK=cb,zK=sb,WK=su,UK=v0,YK=pb,GK=Math.ceil;function qK(t,e){e=e===void 0?" ":KK(e);var n=e.length;if(n<2)return n?Og(e,t):e;var a=Og(e,GK(t/UK(e)));return WK(e)?zK(YK(a),0,t).join(""):a.slice(0,t)}var XK=qK,JK=XK,ZK=v0,QK=Uy,ez=Fa;function tz(t,e,n){t=ez(t),e=QK(e);var a=e?ZK(t):0;return e&&a<e?JK(e-a,n)+t:t}var _g=tz;function Sg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function xg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Sg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}de.extend(qs);var na=[bt.hour,bt.minute,bt.second,bt.milliSecond],nz={top:15,bottom:21},az=ne({name:"TTimePickerPanelCol",props:xg(xg({},oK()),{},{position:String,triggerScroll:Boolean,onChange:Function,resetTriggerScroll:Function,isShowPanel:Boolean}),setup:function(e){var n=Ke("timePicker"),a=n.globalConfig,r=ee("time-picker__panel"),l=ft(),o=l.STATUS,i=_e(e),u=i.steps,c=i.value,v=i.format,s=i.position,d=i.triggerScroll,f=G([]),p=G(),h=G(null),m=jt({0:null,1:null,2:null,3:null,4:null,5:null}),b=B(function(){var D=!!u.value.filter(function(j){return Number(j)>1}).length;return c.value?de(c.value,v.value):D?de().hour(0).minute(0).second(0):de()});le(function(){return b.value},function(){b.value&&c.value&&S(!0)}),le(function(){return d.value},function(){d.value&&S(!0)}),Ae(function(){var D=v.value.match(rK),j=be(D,7),T=j[1],F=j[2],w=j[3],P=j[4],A=j[5],R=j[6],k=bt.meridiem,M=bt.hour,V=bt.minute,W=bt.second,U=bt.milliSecond,H=[T&&k,F&&M,w&&V,P&&W,A&&U,R&&k].filter(function(L){return!!L});f.value=H});var y=function(){var j,T=(j=h.value)===null||j===void 0?void 0:j.querySelector("div");return T?{offsetHeight:parseFloat(getComputedStyle(T).height),margin:parseFloat(getComputedStyle(T).marginTop)}:{offsetHeight:0,margin:0}},C=function(j,T){var F=na.indexOf(j);if(F!==-1){var w,P=[b.value.hour(),b.value.minute(),b.value.second(),b.value.millisecond()];return P[F]=Number(T),!((w=e.disableTime)!==null&&w!==void 0&&(w=w.call.apply(w,[e].concat(P,[{partial:s.value||"start"}])))!==null&&w!==void 0&&(w=w[j])!==null&&w!==void 0&&w.includes(Number(T)))}return!0},O=function(j){var T=0;if(na.includes(j)){var F=na.indexOf(j),w=u.value[F]||1;j===bt.hour?T=bg.test(v.value)?11:23:j===bt.milliSecond?T=999:T=59;var P=Cg(0,T+1,Number(w)).map(function(A){return _g(String(A),2,"0")})||[];return e.hideDisabledTime&&e.disableTime?P.filter(function(A){var R,k=[b.value.hour(),b.value.minute(),b.value.second(),b.value.millisecond()];return k[F]=Number(A),!((R=e.disableTime)!==null&&R!==void 0&&(R=R.call.apply(R,[e].concat(k,[{partial:s.value||"start"}])))!==null&&R!==void 0&&(R=R[j])!==null&&R!==void 0&&R.includes(Number(A)))}):P}return pg},_=function(j,T){j===bt.hour&&/[h]{1}/.test(v.value)&&(T%=12);var F=O(j).indexOf(_g(String(T),2,"0")),w=y(),P=w.offsetHeight,A=w.margin,R=P+A,k=Math.abs(Math.max(0,F)*R);return k},$=function(j,T,F){var w,P,A,R;if(e.isShowPanel){var k=(((w=m[T])===null||w===void 0?void 0:w.scrollTop)||0)+nz.top,M=y(),V=M.offsetHeight,W=M.margin,U=V+W,H=Math.abs(Math.round(k/U+.5)),L=pg[Math.min(H-1,1)].toLowerCase();if(Number.isNaN(H)&&(H=1),na.includes(j)){var z=59;j===bt.hour?z=/[h]{1}/.test(v.value)?11:23:j===bt.milliSecond&&(z=999);var K=na.indexOf(j),Y=Cg(0,z+1,Number(u.value[K])||1);A=uK(Y,Number(O(j)[Math.min(H-1,z+1,Y.length-1)]),Number(u.value[K])||1),Number.isNaN(A)&&(A=Y[Y.length-1]),j===bt.hour&&f.value.includes(bt.meridiem)&&b.value.hour()>=12&&(A=Number(A)+12)}else A=L;var q=_(j,A);if(!(!de(b.value).isValid()||c.value&&!de(c.value,v.value,!0).isValid())){if(na.includes(j)){var X,J;C(j,A)?R=(X=(J=b.value)[j])===null||X===void 0?void 0:X.call(J,A).format(v.value):R=b.value.format(v.value)}else{var Z=b.value.hour();L===si&&Z>=12?R=b.value.hour(Z-12).format(v.value):L===vi&&Z<12?R=b.value.hour(Z+12).format(v.value):R=b.value.format(v.value)}if(R!==c.value&&((P=e.onChange)===null||P===void 0||P.call(e,R,F)),q!==k){var oe,se=m[f.value.indexOf(j)];if(!se||se.scrollTop===q)return;(oe=se.scrollTo)===null||oe===void 0||oe.call(se,{top:q,behavior:"smooth"})}}}},I=function(j,T,F){var w,P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",A=_(j,T),R=m[F];!R||R.scrollTop===A||!C(j,T)||(w=R.scrollTo)===null||w===void 0||w.call(R,{top:A,behavior:P})},x=function(j,T,F,w){if(C(j,T))if(na.includes(j))j===bt.hour&&b.value.format("a")===vi&&f.value.includes(bt.meridiem)&&(T=Number(T)+12),I(j,T,F,"smooth");else{var P=b.value.hour();if(T===si&&P>=12){var A;(A=e.onChange)===null||A===void 0||A.call(e,b.value.hour(P-12).format(v.value),w)}else if(T===vi&&P<12){var R;(R=e.onChange)===null||R===void 0||R.call(e,b.value.hour(P+12).format(v.value),w)}}},S=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,T=c.value&&!j?"smooth":"auto",F=!!u.value.filter(function(w){return Number(w)>1}).length;Je(function(){f.value.forEach(function(w,P){if(!F||F&&c.value){var A,R;I(w,na.includes(w)?(A=(R=b.value)[w])===null||A===void 0?void 0:A.call(R):b.value.format("a"),P,T)}else{var k;I(w,(k=O(w))===null||k===void 0?void 0:k[0],P,T)}})}),e.resetTriggerScroll()},E=function(j,T){var F,w,P;if(j===bt.meridiem){var A=b.value.format("a");return A===T}return P=(F=(w=b.value)[j])===null||F===void 0?void 0:F.call(w),j===bt.hour&&/[h]{1}/.test(v.value)&&(P%=12),P===Number(T)};return function(){var D,j,T,F;return g("div",{class:"".concat(r.value,"-body"),ref:p},[g("div",{class:"".concat(r.value,"-body-active-mask"),ref:h},[(D=(j=f.value).map)===null||D===void 0?void 0:D.call(j,function(w,P){return g("div",{key:"".concat(w,"_").concat(P)},null)})]),(T=(F=f.value).map)===null||T===void 0?void 0:T.call(F,function(w,P){return g("ul",{key:"".concat(w,"_").concat(P),ref:function(R){return m[P]=R},class:"".concat(r.value,"-body-scroll"),onScroll:Ra(function(A){return $(w,P,A)},50)},[O(w).map(function(A){return g("li",{key:A,class:["".concat(r.value,"-body-scroll-item"),N(N({},o.value.disabled,!C(w,A)),o.value.current,E(w,A))],onClick:function(k){return x(w,A,P,k)}},[na.includes(w)?bg.test(v.value)&&w===bt.hour&&A==="00"?"12":A:a.value[A===si?"anteMeridiem":"postMeridiem"]])})])})])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Pg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Eg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Pg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function rz(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}de.extend(qs);var lz=ne({name:"TTimePickerPanel",props:Eg(Eg({},lK()),{},{isFooterDisplay:Boolean,handleConfirmClick:Function,onChange:Function}),setup:function(e){var n=Ke("timePicker"),a=n.globalConfig,r=ee("time-picker__panel"),l=_e(e),o=l.steps,i=l.isFooterDisplay,u=l.isShowPanel,c=G(!1),v=G(),s=B(function(){return!!o.value.filter(function(m){return Number(m)>1}).length}),d=B(function(){var m=s.value,b=de(e.value,e.format);return e.value&&b.isValid()?b.format(e.format):de().hour(0).minute(0).second(0).format(e.format)}),f=function(){Je(function(){c.value=!0})},p=function(){c.value=!1},h=function(b){var y=typeof b=="function"?b():b;if(typeof e.activeIndex=="number")if(Array.isArray(y)){var C;(C=e.onChange)===null||C===void 0||C.call(e,y[e.activeIndex])}else We.error("TimePicker","preset: ".concat(e.presets," 预设值必须是数组!"));else{var O;(O=e.onChange)===null||O===void 0||O.call(e,y)}};return Ae(function(){f()}),le(function(){return u.value},function(){f()}),function(){return g("div",{class:r.value},[g("div",{class:"".concat(r.value,"-section-body")},[g(az,ve(e,{ref:v,format:e.format||aK,steps:e.steps||nK,value:de(e.value,e.format).isValid()?e.value:d.value,triggerScroll:c.value,onChange:e.onChange,resetTriggerScroll:p,isShowPanel:e.isShowPanel}),null)]),i.value?g("div",{class:"".concat(r.value,"-section-footer")},[g(ri,{theme:"primary",variant:"base",disabled:!e.value,onClick:function(){var b;return(b=e.handleConfirmClick)===null||b===void 0?void 0:b.call(e,d.value)},size:"small"},{default:function(){return[a.value.confirm]}}),s.value?null:g(ri,{theme:"primary",variant:"text",size:"small",onClick:function(){var b;return(b=e.onChange)===null||b===void 0?void 0:b.call(e,de().format(e.format))}},{default:function(){return[a.value.now]}}),e.presets&&Object.keys(e.presets).map(function(m){return g(ri,{key:m,theme:"primary",size:"small",variant:"text",onClick:function(){return h(e.presets[m])}},rz(m)?m:{default:function(){return[m]}})})]):null])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Tg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function oz(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var di=ne({name:"TPanelContent",props:{mode:String,format:String,enableTimePicker:Boolean,timePickerProps:{type:Object,default:function(){return{}}},year:Number,month:Number,tableData:Array,time:String,firstDayOfWeek:Number,partial:String,popupVisible:Boolean,onYearChange:Function,onMonthChange:Function,onJumperClick:Function,onCellMouseEnter:Function,onCellClick:Function,onCellMouseLeave:Function,onTimePickerChange:Function,value:[String,Number,Array,Date]},setup:function(e){var n=ee("date-picker__panel"),a=Ln({mode:e.mode,format:e.format,enableTimePicker:e.enableTimePicker}),r=a.timeFormat,l="00:00:00";return function(){return g("div",{class:"".concat(n.value,"-content")},[g("div",{class:"".concat(n.value,"-").concat(e.mode)},[g(ZH,{mode:e.mode,year:e.year,month:e.month,onMonthChange:function(i){var u;return(u=e.onMonthChange)===null||u===void 0?void 0:u.call(e,i,{partial:e.partial})},onYearChange:function(i){var u;return(u=e.onYearChange)===null||u===void 0?void 0:u.call(e,i,{partial:e.partial})},onJumperClick:function(i){var u,c=i.trigger;return(u=e.onJumperClick)===null||u===void 0?void 0:u.call(e,{trigger:c,partial:e.partial})}},null),g(tK,{mode:e.mode,data:e.tableData,time:e.time,value:e.value,format:e.format,firstDayOfWeek:e.firstDayOfWeek,onCellClick:function(i,u){var c,v=u.e;return(c=e.onCellClick)===null||c===void 0?void 0:c.call(e,i,{e:v,partial:e.partial})},onCellMouseEnter:function(i){var u;return(u=e.onCellMouseEnter)===null||u===void 0?void 0:u.call(e,i,{partial:e.partial})},onCellMouseLeave:e.onCellMouseLeave},null)]),e.enableTimePicker&&g("div",{class:"".concat(n.value,"-time")},[g("div",{class:"".concat(n.value,"-time-viewer")},[e.time||l]),g(lz,oz({key:e.partial,isShowPanel:e.popupVisible,format:r,value:e.time||l,onChange:e.onTimePickerChange},e.timePickerProps),null)])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Dg(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var iz=ne({name:"TDatePickerTable",props:{enableTimePicker:Boolean,presetsPlacement:String,presets:Object,selectedValue:[Date,String,Number],onPresetClick:Function,onConfirmClick:Function},setup:function(e){var n=ee("date-picker__footer"),a=ee("date-picker__presets"),r=Ke("datePicker"),l=r.t,o=r.globalConfig,i=B(function(){return[n.value,"".concat(n.value,"--").concat(e.presetsPlacement)]});return function(){var u;return g("div",{class:i.value},[g("div",{class:a.value},[e.presets&&Object.keys(e.presets).map(function(c){return g(Ot,{key:c,size:"small",variant:"text",onClick:function(s){var d;return(d=e.onPresetClick)===null||d===void 0?void 0:d.call(e,e.presets[c],{e:s,preset:N({},c,e.presets[c])})}},Dg(c)?c:{default:function(){return[c]}})})]),e.enableTimePicker&&g(Ot,{disabled:!e.selectedValue,size:"small",theme:"primary",onClick:function(v){var s;return(s=e.onConfirmClick)===null||s===void 0?void 0:s.call(e,{e:v})}},Dg(u=l(o.value.confirm))?u:{default:function(){return[u]}})])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var ji=ne({name:"TExtraContent",props:{presets:Object,enableTimePicker:Boolean,presetsPlacement:String,onPresetClick:Function,onConfirmClick:Function,selectedValue:[String,Number,Array,Date]},setup:function(e){var n=B(function(){return e.enableTimePicker||e.presets});return function(){return n.value?g(iz,{presets:e.presets,onPresetClick:e.onPresetClick,enableTimePicker:e.enableTimePicker,onConfirmClick:e.onConfirmClick,presetsPlacement:e.presetsPlacement,selectedValue:e.selectedValue},null):null}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Bc(t){var e,n=Ke("datePicker"),a=n.globalConfig,r={minDate:t.minDate,maxDate:t.maxDate,disableDate:t.disableDate,firstDayOfWeek:(e=t.firstDayOfWeek)!==null&&e!==void 0?e:a.value.firstDayOfWeek,monthLocal:a.value.months,quarterLocal:a.value.quarters,showWeekOfYear:t.mode==="week",dayjsLocale:a.value.dayjsLocale,cancelRangeSelectLimit:t.cancelRangeSelectLimit},l=[];return t.mode==="date"?l=fg({year:t.year,month:t.month},r):t.mode==="week"?l=fg({year:t.year,month:t.month},r):t.mode==="quarter"?l=WH(t.year,r):t.mode==="month"?l=YH(t.year,r):t.mode==="year"&&(l=UH(t.year,r)),GH(l,{start:t.start,end:t.end,hoverStart:t.hoverStart,hoverEnd:t.hoverEnd,type:t.mode,isRange:t.isRange})}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function d0(t){return{disableDate:function(n){return!uz({disableDate:t.disableDate,format:t.format,mode:t.mode,value:n})},minDate:Ve(t.disableDate)&&"before"in t.disableDate?new Date(t.disableDate.before):t.start,maxDate:Ve(t.disableDate)&&"after"in t.disableDate?new Date(t.disableDate.after):t.end}}function uz(t){if(!t.disableDate)return!0;var e=!0;if(pe(t.disableDate))return!t.disableDate(t.value);if(ke(t.disableDate)){var n=!1,a=t.disableDate.map(function(d){return de(d,t.format)});return a.forEach(function(d){d.isSame(de(t.value))&&(n=!0)}),!n}if(t.disableDate.from&&t.disableDate.to){var r=de(new Date(t.disableDate.from)),l=de(new Date(t.disableDate.to));return!de(t.value).isBetween(r,l,t.mode,"[]")}var o=t.disableDate.before?new Date(t.disableDate.before):null,i=t.disableDate.after?new Date(t.disableDate.after):null;if(i&&o){var u=de(new Date(o)),c=de(new Date(i));e=de(t.value).isBetween(u,c,t.mode,"[]")}else if(o){var v=de(new Date(o));e=!de(t.value).isBefore(v,t.mode)}else if(i){var s=de(new Date(i));e=!de(t.value).isAfter(s,t.mode)}return e}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Ig(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function cz(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ig(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ig(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var f0=ne({name:"TSinglePanel",props:{disableDate:[Object,Array,Function],mode:{type:String,default:"date"},format:String,presetsPlacement:{type:String,default:"bottom"},value:[String,Number,Array,Date],timePickerProps:Object,presets:Object,enableTimePicker:Boolean,firstDayOfWeek:Number,year:Number,month:Number,time:String,popupVisible:Boolean,onPanelClick:Function,onCellClick:Function,onCellMouseEnter:Function,onCellMouseLeave:Function,onJumperClick:Function,onConfirmClick:Function,onPresetClick:Function,onYearChange:Function,onMonthChange:Function,onTimePickerChange:Function},setup:function(e){var n=ee("date-picker__panel"),a=Ke("datePicker"),r=a.globalConfig,l=Ln({mode:e.mode,format:e.format,enableTimePicker:e.enableTimePicker}),o=l.format,i=B(function(){return d0({format:o,mode:e.mode,disableDate:e.disableDate})}),u=B(function(){return Bc(cz({year:e.year,month:e.month,mode:e.mode,start:e.value?Me(e.value,o).toDate():void 0,firstDayOfWeek:e.firstDayOfWeek||r.value.firstDayOfWeek},i.value))}),c=B(function(){return{format:o,value:e.value,mode:e.mode,year:e.year,month:e.month,firstDayOfWeek:e.firstDayOfWeek||r.value.firstDayOfWeek,tableData:u.value,popupVisible:e.popupVisible,enableTimePicker:e.enableTimePicker,timePickerProps:e.timePickerProps,time:e.time,onMonthChange:e.onMonthChange,onYearChange:e.onYearChange,onJumperClick:e.onJumperClick,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter,onCellMouseLeave:e.onCellMouseLeave,onTimePickerChange:e.onTimePickerChange}}),v=B(function(){return{presets:e.presets,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,onPresetClick:e.onPresetClick,onConfirmClick:e.onConfirmClick,selectedValue:e.value}});return function(){return g("div",{class:[n.value,N({},"".concat(n.value,"--direction-row"),["left","right"].includes(e.presetsPlacement))],onClick:function(d){var f;return(f=e.onPanelClick)===null||f===void 0?void 0:f.call(e,{e:d})}},[["top","left"].includes(e.presetsPlacement)?g(ji,v.value,null):null,g(di,c.value,null),["bottom","right"].includes(e.presetsPlacement)?g(ji,v.value,null):null])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function jg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function sz(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var vz=ne({name:"TDatePicker",props:sz({},sn),setup:function(e){var n=ee("date-picker"),a=JH(e),r=a.inputValue,l=a.popupVisible,o=a.inputProps,i=a.popupProps,u=a.isHoverCell,c=a.cacheValue,v=a.value,s=a.year,d=a.month,f=a.time,p=a.inputRef,h=a.onChange,m=Jt(),b=B(function(){return Ln({mode:e.mode,format:e.format,valueType:e.valueType,enableTimePicker:e.enableTimePicker})});le(l,function(j){c.value=ze(v.value,{format:b.value.format}),r.value=ze(v.value,{format:b.value.format}),j?(s.value=Me(v.value,b.value.format).year(),d.value=Me(v.value,b.value.format).month(),f.value=Gr(v.value,b.value.format,b.value.timeFormat,e.defaultTime)):u.value=!1});function y(j){u.value=!0,r.value=ze(j,{format:b.value.format})}function C(){u.value=!1,r.value=ze(c.value,{format:b.value.format})}function O(j){var T;u.value=!1,e.mode==="date"&&(s.value=j.getFullYear(),d.value=j.getMonth()),e.enableTimePicker?c.value=ze(j,{format:b.value.format}):(h==null||h(ze(j,{format:b.value.format,targetFormat:b.value.valueType}),{dayjsValue:Me(j,b.value.format),trigger:"pick"}),l.value=!1),(T=e.onPick)===null||T===void 0||T.call(e,j)}function _(j){var T=j.trigger,F={date:1,week:1,month:12,quarter:12,year:120},w=F[e.mode]||0,P=new Date(s.value,d.value),A=null;T==="prev"?A=wu(P,w):T==="current"?A=new Date:T==="next"&&(A=Ou(P,w));var R=A.getFullYear(),k=A.getMonth();s.value=R,d.value=k}function $(j){var T;f.value=j;var F=Yr(j),w=F.hours,P=F.minutes,A=F.seconds,R=F.milliseconds,k=F.meridiem,M=w;/am/i.test(k)&&M===12&&(M-=12),/pm/i.test(k)&&M<12&&(M+=12);var V=de(r.value,b.value.format).isValid()?de(r.value,b.value.format):de(),W=V.hour(M).minute(P).second(A).millisecond(R).toDate();r.value=ze(W,{format:b.value.format}),c.value=ze(W,{format:b.value.format}),(T=e.onPick)===null||T===void 0||T.call(e,W)}function I(j){var T=j.e,F=ze(r.value,{format:b.value.format});if(F){var w;e==null||(w=e.onConfirm)===null||w===void 0||w.call(e,{date:de(F).toDate(),e:T}),h==null||h(ze(r.value,{format:b.value.format,targetFormat:b.value.valueType}),{dayjsValue:Me(r.value,b.value.format),trigger:"confirm"})}else r.value=ze(v.value,{format:b.value.format});l.value=!1}function x(j){var T=pe(j)?j():j;h==null||h(ze(T,{format:b.value.format,targetFormat:b.value.valueType}),{dayjsValue:Me(T,b.value.format),trigger:"preset"}),l.value=!1}function S(j){s.value=j}function E(j){d.value=j}var D=B(function(){return{value:c.value,year:s.value,month:d.value,format:b.value.format,mode:e.mode,presets:e.presets,time:f.value,disableDate:e.disableDate,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,popupVisible:l.value,onCellClick:O,onCellMouseEnter:y,onCellMouseLeave:C,onJumperClick:_,onConfirmClick:I,onPresetClick:x,onYearChange:S,onMonthChange:E,onTimePickerChange:$,onPanelClick:function(){var T,F;return(T=p.value)===null||T===void 0||(F=T.focus)===null||F===void 0?void 0:F.call(T)}}});return function(){return g("div",{class:n.value},[g(Ay,{disabled:m.value,value:r.value,status:e.status,tips:e.tips,clearable:e.clearable,popupProps:i.value,inputProps:o.value,popupVisible:l.value,panel:function(){return g(f0,D.value,null)}},null)])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var dz={defaultTime:{type:String,default:"00:00:00"},onCellClick:Function,onChange:Function,onConfirm:Function,onMonthChange:Function,onPanelClick:Function,onPresetClick:Function,onTimeChange:Function,onYearChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function $g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function fz(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$g(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$g(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var gz=ne({name:"TDatePickerPanel",props:fz({value:sn.value,defaultValue:sn.defaultValue,modelValue:sn.modelValue,disabled:sn.disabled,disableDate:sn.disableDate,enableTimePicker:sn.enableTimePicker,firstDayOfWeek:sn.firstDayOfWeek,format:sn.format,mode:sn.mode,presets:sn.presets,presetsPlacement:sn.presetsPlacement,timePickerProps:sn.timePickerProps},dz),setup:function(e){var n=n0(e),a=n.cacheValue,r=n.value,l=n.year,o=n.month,i=n.time,u=n.onChange,c=B(function(){return Ln({mode:e.mode,format:e.format,enableTimePicker:e.enableTimePicker})});function v(y,C){var O,_=C.e;(O=e.onCellClick)===null||O===void 0||O.call(e,{date:y,e:_}),e.mode==="date"&&(l.value=y.getFullYear(),o.value=y.getMonth()),e.enableTimePicker?a.value=ze(y,{format:c.value.format}):u==null||u(ze(y,{format:c.value.format}),{dayjsValue:Me(y,c.value.format),trigger:"pick"})}function s(y){var C=y.trigger,O={prev:"arrow-previous",next:"arrow-next"},_={date:1,week:1,month:12,quarter:12,year:120},$=_[e.mode]||0,I=new Date(l.value,o.value),x=null;C==="prev"?x=wu(I,$):C==="current"?x=new Date:C==="next"&&(x=Ou(I,$));var S=x.getFullYear(),E=x.getMonth();if(l.value!==S){var D;(D=e.onYearChange)===null||D===void 0||D.call(e,{year:S,date:de(r.value).toDate(),trigger:C==="current"?"today":"year-".concat(O[C])})}if(o.value!==E){var j;(j=e.onMonthChange)===null||j===void 0||j.call(e,{month:E,date:de(r.value).toDate(),trigger:C==="current"?"today":"month-".concat(O[C])})}l.value=S,o.value=E}function d(y){var C;i.value=y;var O=Yr(y),_=O.hours,$=O.minutes,I=O.seconds,x=O.milliseconds,S=O.meridiem,E=_;/am/i.test(S)&&E===12&&(E-=12),/pm/i.test(S)&&E<12&&(E+=12);var D=de(a.value,c.value.format).isValid()?de(a.value,c.value.format):de(),j=D.hour(E).minute($).second(I).millisecond(x).toDate();a.value=ze(j,{format:c.value.format}),(C=e.onTimeChange)===null||C===void 0||C.call(e,{time:y,date:de(r.value).toDate(),trigger:"time-hour"})}function f(y){var C,O=y.e;u==null||u(ze(a.value,{format:c.value.format}),{dayjsValue:Me(a.value,c.value.format),trigger:"confirm"}),(C=e.onConfirm)===null||C===void 0||C.call(e,{date:de(a.value).toDate(),e:O})}function p(y,C){var O,_=pe(y)?y():y;u==null||u(ze(_,{format:c.value.format}),{dayjsValue:Me(_,c.value.format),trigger:"preset"}),(O=e.onPresetClick)===null||O===void 0||O.call(e,C)}function h(y){var C;l.value=y,(C=e.onYearChange)===null||C===void 0||C.call(e,{year:l.value,date:de(r.value).toDate(),trigger:"year-select"})}function m(y){var C;o.value=y,(C=e.onMonthChange)===null||C===void 0||C.call(e,{month:o.value,date:de(r.value).toDate(),trigger:"month-select"})}var b=B(function(){return{value:a.value,year:l.value,month:o.value,mode:e.mode,format:c.value.format,presets:e.presets,time:i.value,disableDate:e.disableDate,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,popupVisible:!0,panelClick:e.onPanelClick,onCellClick:v,onJumperClick:s,onConfirmClick:f,onPresetClick:p,onYearChange:h,onMonthChange:m,onTimePickerChange:d}});return function(){return g(f0,b.value,null)}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var tn={allowInput:Boolean,clearable:Boolean,defaultTime:{type:Array,default:function(){return["00:00:00","23:59:59"]}},disableDate:{type:[Object,Array,Function]},disabled:Boolean,enableTimePicker:Boolean,firstDayOfWeek:{type:Number,validator:function(e){return e?[1,2,3,4,5,6,7].includes(e):!0}},format:{type:String,default:""},mode:{type:String,default:"date",validator:function(e){return e?["year","quarter","month","week","date"].includes(e):!0}},panelPreselection:{type:Boolean,default:!0},placeholder:{type:[String,Array]},popupProps:{type:Object},prefixIcon:{type:Function},presets:{type:Object},presetsPlacement:{type:String,default:"bottom",validator:function(e){return e?["left","top","right","bottom"].includes(e):!0}},rangeInputProps:{type:Object},separator:{type:String,default:""},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffixIcon:{type:Function},timePickerProps:{type:Object},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},valueType:{type:String,validator:function(e){return e?["time-stamp","Date","YYYY","YYYY-MM","YYYY-MM-DD","YYYY-MM-DD HH","YYYY-MM-DD HH:mm","YYYY-MM-DD HH:mm:ss","YYYY-MM-DD HH:mm:ss:SSS"].includes(e):!0}},cancelRangeSelectLimit:{type:Boolean,default:!1},onBlur:Function,onChange:Function,onConfirm:Function,onFocus:Function,onInput:Function,onPick:Function,onPresetClick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var hz={activeIndex:{type:Number},clearable:Boolean,disabled:Boolean,format:{type:[Array,Function]},inputProps:{type:[Object,Array]},label:{type:[String,Function]},placeholder:{type:[String,Array]},prefixIcon:{type:Function},readonly:Boolean,separator:{type:[String,Function],default:"-"},showClearIconOnEmpty:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onEnter:Function,onFocus:Function,onMouseenter:Function,onMouseleave:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Fg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function kg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function Uu(t){return ke(t)?t:[t,t]}var g0=ne({name:"TRangeInput",inheritAttrs:!1,props:hz,setup:function(e,n){var a=n.expose,r=n.attrs,l=_e(e),o=l.value,i=l.modelValue,u=ft(),c=u.STATUS,v=u.SIZE,s=ee(),d=Jt(),f=ee("range-input"),p=at({CloseCircleFilledIcon:co}),h=p.CloseCircleFilledIcon,m=xe(),b=G(!1),y=G(!1),C=B(function(){return Uu(e.format)}),O=B(function(){return Uu(e.inputProps)}),_=B(function(){return Uu(e.placeholder)}),$=ht(o,i,e.defaultValue,e.onChange),I=be($,2),x=I[0],S=I[1],E=B(function(){var R;return(e.clearable&&((R=e.value)===null||R===void 0?void 0:R.length)&&!d.value||e.showClearIconOnEmpty)&&y.value}),D={firstInputRef:G(),secondInputRef:G()};function j(R){var k;(k=e.onClear)===null||k===void 0||k.call(e,R),S(["",""],kg(kg({},R),{},{trigger:"clear",position:"all"}))}function T(R,k){var M;(M=e.onEnter)===null||M===void 0||M.call(e,R,k)}function F(R,k){var M;b.value=!0,(M=e.onFocus)===null||M===void 0||M.call(e,R,k)}function w(R,k){var M;b.value=!1,(M=e.onBlur)===null||M===void 0||M.call(e,R,k)}function P(R){var k;y.value=!0,e==null||(k=e.onMouseenter)===null||k===void 0||k.call(e,{e:R})}function A(R){var k;y.value=!1,e==null||(k=e.onMouseleave)===null||k===void 0||k.call(e,{e:R})}return a({firstInputElement:D.firstInputRef.value,secondInputElement:D.secondInputRef.value,focus:function(k){var M,V=k||{},W=V.position,U=W===void 0?"first":W;(M=D["".concat(U,"InputRef")].value)===null||M===void 0||M.focus()},blur:function(k){var M,V=k||{},W=V.position,U=W===void 0?"first":W;(M=D["".concat(U,"InputRef")].value)===null||M===void 0||M.blur()},select:function(k){var M,V=k||{},W=V.position,U=W===void 0?"first":W;(M=D["".concat(U,"InputRef")].value)===null||M===void 0||M.select()}}),function(){var R,k,M=m("label"),V=m("prefixIcon"),W=m("suffix"),U=m("suffixIcon"),H=m("tips"),L=g("div",ve(r,{class:[f.value,N(N(N(N(N(N(N(N({},v.value[e.size],e.size!=="medium"),c.value.disabled,d.value),c.value.focused,b.value),c.value.success,e.status==="success"),c.value.warning,e.status==="warning"),c.value.error,e.status==="error"),"".concat(f.value,"--prefix"),V||M),"".concat(f.value,"--suffix"),W||U)],onMouseenter:P,onMouseleave:A}),[g("div",{class:"".concat(f.value,"__inner")},[V&&g("div",{class:"".concat(f.value,"__prefix")},[V]),M?g("div",{class:"".concat(f.value,"__prefix")},[M]):null,g(ja,ve({ref:D.firstInputRef,class:"".concat(f.value,"__inner-left"),inputClass:N({},"".concat(s.value,"-is-focused"),e.activeIndex===0),placeholder:_.value[0],disabled:d.value,readonly:e.readonly,format:C.value[0],value:(R=x.value)===null||R===void 0?void 0:R[0],onClick:function(Y){var q,X=Y.e;return(q=e.onClick)===null||q===void 0?void 0:q.call(e,{e:X,position:"first"})},onClear:function(){return S([],{position:"first",trigger:"input"})},onEnter:function(Y,q){var X,J=q.e;return T([Y,(X=x.value)===null||X===void 0?void 0:X[1]],{e:J,position:"first"})},onFocus:function(Y,q){var X,J=q.e;return F([Y,(X=x.value)===null||X===void 0?void 0:X[1]],{e:J,position:"first"})},onBlur:function(Y,q){var X,J=q.e;return w([Y,(X=x.value)===null||X===void 0?void 0:X[1]],{e:J,position:"first"})},onChange:function(Y,q){var X,J=q.e;return S([Y,(X=x.value)===null||X===void 0?void 0:X[1]],{e:J,position:"first",trigger:"input"})}},O.value[0]),null),g("div",{class:"".concat(f.value,"__inner-separator")},[e.separator]),g(ja,ve({ref:D.secondInputRef,class:"".concat(f.value,"__inner-right"),inputClass:N({},"".concat(s.value,"-is-focused"),e.activeIndex===1),placeholder:_.value[1],disabled:d.value,readonly:e.readonly,format:C.value[1],value:(k=x.value)===null||k===void 0?void 0:k[1],onClick:function(Y){var q,X=Y.e;return(q=e.onClick)===null||q===void 0?void 0:q.call(e,{e:X,position:"second"})},onClear:function(){return S([],{position:"second",trigger:"input"})},onEnter:function(Y,q){var X,J=q.e;return T([(X=x.value)===null||X===void 0?void 0:X[0],Y],{e:J,position:"second"})},onFocus:function(Y,q){var X,J=q.e;return F([(X=x.value)===null||X===void 0?void 0:X[0],Y],{e:J,position:"second"})},onBlur:function(Y,q){var X,J=q.e;return w([(X=x.value)===null||X===void 0?void 0:X[0],Y],{e:J,position:"second"})},onChange:function(Y,q){var X,J=q.e;return S([(X=x.value)===null||X===void 0?void 0:X[0],Y],{e:J,position:"second",trigger:"input"})}},O.value[1]),null),W?g("div",{class:"".concat(f.value,"__suffix")},[W]):null,U&&g("span",{class:"".concat(f.value,"__suffix ").concat(f.value,"__suffix-icon")},[E.value?g(h,{class:"".concat(f.value,"__suffix-clear"),onClick:j},null):U])])]),z=["".concat(f.value,"__tips"),"".concat(s.value,"-tips"),"".concat(s.value,"-is-").concat(e.status)];return g(Ct,null,[L,H&&g("div",{class:z},[H])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var mz={autoWidth:Boolean,disabled:Boolean,inputValue:{type:Array,default:void 0},defaultInputValue:{type:Array},panel:{type:[String,Function]},popupProps:{type:Object},popupVisible:Boolean,rangeInputProps:{type:Object},readonly:Boolean,status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},tips:{type:[String,Function]},onInputChange:Function,onPopupVisibleChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Ag(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Rg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ag(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var pz=ne({name:"TRangeInputPopup",props:mz,setup:function(e){var n=ee("range-input-popup"),a=ky(e),r=a.tOverlayInnerStyle,l=a.innerPopupVisible,o=a.onInnerPopupVisibleChange,i=B(function(){return[n.value,N({},"".concat(n.value,"--visible"),e.popupVisible||l.value)]});return function(){return g("div",{class:i.value},[g(Ma,ve({hideEmptyPopup:!0,content:e.panel,trigger:"click",placement:"bottom-left",disabled:e.disabled,visible:e.popupVisible||l.value},Rg({overlayInnerStyle:r.value,onVisibleChange:o},e.popupProps)),{default:function(){return[g(g0,Rg({value:e.inputValue,onChange:e.onInputChange,disabled:e.disabled,status:e.status,tips:e.tips},e.rangeInputProps),null)]}})])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */ye(g0);var bz=ye(pz);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Mg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Ao(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var h0=ne({name:"TRangePanel",props:{hoverValue:Array,activeIndex:Number,isFirstValueSelected:Boolean,disableDate:[Object,Array,Function],mode:{type:String,default:"date"},format:String,presetsPlacement:{type:String,default:"bottom"},value:Array,timePickerProps:Object,presets:Object,popupVisible:Boolean,enableTimePicker:Boolean,panelPreselection:Boolean,firstDayOfWeek:Number,year:Array,month:Array,time:Array,cancelRangeSelectLimit:Boolean,onClick:Function,onCellClick:Function,onCellMouseEnter:Function,onCellMouseLeave:Function,onJumperClick:Function,onConfirmClick:Function,onPresetClick:Function,onYearChange:Function,onMonthChange:Function,onTimePickerChange:Function},setup:function(e){var n=ee("date-range-picker__panel"),a=Ke("datePicker"),r=a.globalConfig,l=Ln({mode:e.mode,format:e.format,enableTimePicker:e.enableTimePicker}),o=l.format,i=!e.panelPreselection&&e.value.length===2,u=B(function(){return d0({format:o,mode:e.mode,disableDate:e.disableDate,start:e.isFirstValueSelected&&e.activeIndex===1?new Date(Me(e.value[0],o,"start").toDate().setHours(0,0,0)):void 0,end:e.isFirstValueSelected&&e.activeIndex===0?new Date(Me(e.value[1],o).toDate().setHours(23,59,59)):void 0})}),c=B(function(){return Bc(Ao(Ao({isRange:!0,start:e.value[0]?Me(e.value[0],o).toDate():void 0,end:e.value[1]?Me(e.value[1],o).toDate():void 0,hoverStart:!i&&e.hoverValue[0]?Me(e.hoverValue[0],o).toDate():void 0,hoverEnd:!i&&e.hoverValue[1]?Me(e.hoverValue[1],o).toDate():void 0,year:e.year[0],month:e.month[0],mode:e.mode,firstDayOfWeek:e.firstDayOfWeek||r.value.firstDayOfWeek},u.value),{},{cancelRangeSelectLimit:e.cancelRangeSelectLimit}))}),v=B(function(){return Bc(Ao(Ao({isRange:!0,start:e.value[0]?Me(e.value[0],o).toDate():void 0,end:e.value[1]?Me(e.value[1],o).toDate():void 0,hoverStart:!i&&e.hoverValue[0]?Me(e.hoverValue[0],o).toDate():void 0,hoverEnd:!i&&e.hoverValue[1]?Me(e.hoverValue[1],o).toDate():void 0,year:e.year[1],month:e.month[1],mode:e.mode,firstDayOfWeek:e.firstDayOfWeek||r.value.firstDayOfWeek},u.value),{},{cancelRangeSelectLimit:e.cancelRangeSelectLimit}))}),s=B(function(){return{format:o,mode:e.mode,firstDayOfWeek:e.firstDayOfWeek||r.value.firstDayOfWeek,popupVisible:e.popupVisible,enableTimePicker:e.enableTimePicker,timePickerProps:e.timePickerProps,onMonthChange:e.onMonthChange,onYearChange:e.onYearChange,onJumperClick:e.onJumperClick,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter,onCellMouseLeave:e.onCellMouseLeave,onTimePickerChange:e.onTimePickerChange}});return function(){return g("div",{class:[n.value,N({},"".concat(n.value,"--direction-row"),["left","right"].includes(e.presetsPlacement))],onClick:function(f){var p;return(p=e.onClick)===null||p===void 0?void 0:p.call(e,{e:f})}},[["top","left"].includes(e.presetsPlacement)?g(ji,{presets:e.presets,selectedValue:e.value[e.activeIndex],enableTimePicker:e.enableTimePicker,onPresetClick:e.onPresetClick,onConfirmClick:e.onConfirmClick,presetsPlacement:e.presetsPlacement},null):null,g("div",{class:"".concat(n.value,"-content-wrapper")},[e.enableTimePicker?g(di,ve({key:"start",partial:e.activeIndex?"end":"start",year:e.activeIndex?e.year[1]:e.year[0],month:e.activeIndex?e.month[1]:e.month[0],time:e.activeIndex?e.time[1]:e.time[0],value:e.value,tableData:e.activeIndex?v.value:c.value},s.value),null):[g(di,ve({key:"startPanel",partial:"start",year:e.year[0],month:e.month[0],time:e.time[0],value:e.value,tableData:c.value},s.value),null),g(di,ve({key:"endPanel",partial:"end",year:e.year[1],month:e.month[1],time:e.time[1],value:e.value,tableData:v.value},s.value),null)]]),["bottom","right"].includes(e.presetsPlacement)?g(ji,{presets:e.presets,selectedValue:e.value[e.activeIndex],enableTimePicker:e.enableTimePicker,onPresetClick:e.onPresetClick,onConfirmClick:e.onConfirmClick,presetsPlacement:e.presetsPlacement},null):null])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function m0(t){var e=_e(t),n=e.value,a=e.modelValue,r=ht(n,a,t.defaultValue,t.onChange),l=be(r,2),o=l[0],i=l[1],u=B(function(){return Ln({mode:t.mode,format:t.format,enableTimePicker:t.enableTimePicker})});t.enableTimePicker&&(Zs(u.value.format)||console.error("format: ".concat(u.value.format," 不规范，包含时间选择必须要有时间格式化 HH:mm:ss"))),ke(o.value)?Ht(o.value,u.value.format)||console.error("value: ".concat(o.value," is invalid dateTime! Check whether the value is consistent with format: ").concat(u.value.format)):console.error("typeof value: ".concat(o.value," must be Array!"));var c=G(!1),v=G(ci({value:o.value,mode:t.mode,format:u.value.format,timeFormat:u.value.timeFormat}).time),s=G(ci({value:o.value,mode:t.mode,format:u.value.format,enableTimePicker:t.enableTimePicker}).month),d=G(ci({value:o.value,mode:t.mode,format:u.value.format}).year),f=G(ze(o.value,{format:u.value.format}));return Nr(function(){if(!o.value){f.value=[];return}Ht(o.value,u.value.format)&&(f.value=ze(o.value,{format:u.value.format}),v.value=Gr(o.value,u.value.format,u.value.timeFormat,t.defaultTime))}),{year:d,month:s,value:o,time:v,isFirstValueSelected:c,cacheValue:f,onChange:i}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Ng(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Ro(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ng(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ng(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Lg={first:"start",second:"end"};function yz(t){var e=ee("date-range-picker"),n=Ke("datePicker"),a=n.globalConfig,r=at({CalendarIcon:bp}),l=r.CalendarIcon,o=xe(),i=G(!1),u=G(),c=m0(t),v=c.value,s=c.onChange,d=c.time,f=c.month,p=c.year,h=c.cacheValue,m=c.isFirstValueSelected,b=B(function(){return Ln({mode:t.mode,format:t.format,valueType:t.valueType,enableTimePicker:t.enableTimePicker})}),y=G(!1),C=G(!1),O=G(0),_=G(ze(t.value,{format:b.value.format})),$=B(function(){return Ro(Ro({},t.rangeInputProps),{},{size:t.size,ref:u,clearable:t.clearable,prefixIcon:function(){return o("prefixIcon")},readonly:!t.allowInput,separator:t.separator||a.value.rangeSeparator,placeholder:t.placeholder||a.value.placeholder[t.mode],activeIndex:y.value?O.value:void 0,suffixIcon:function(){return o("suffixIcon")||g(l,null,null)},class:N({},"".concat(e.value,"__input--placeholder"),C.value),onClick:function(S){var E=S.position;O.value=E==="first"?0:1},onClear:function(S){var E=S.e;E.stopPropagation(),y.value=!1,s==null||s([],{dayjsValue:[],trigger:"clear"})},onBlur:function(S,E){var D,j=E.e,T=E.position;(D=t.onBlur)===null||D===void 0||D.call(t,{value:S,partial:Lg[T],e:j})},onFocus:function(S,E){var D,j=E.e,T=E.position;(D=t.onFocus)===null||D===void 0||D.call(t,{value:S,partial:Lg[T],e:j}),O.value=T==="first"?0:1},onChange:function(S,E){if(E.e,E.position,_.value=S,!!Ht(S,b.value.format)){h.value=S;var D=[],j=[],T=[];S.forEach(function(F){D.push(Me(F,b.value.format).year()),j.push(Me(F,b.value.format).month()),T.push(Me(F,b.value.format).format(b.value.timeFormat))}),p.value=D,f.value=j,d.value=T}},onEnter:function(S){!Ht(S,b.value.format)&&!Ht(v.value,b.value.format)||(y.value=!1,Ht(S,b.value.format)?s==null||s(ze(S,{format:b.value.format,targetFormat:b.value.valueType,autoSwap:!0}),{dayjsValue:S.map(function(E){return Me(E,b.value.format)}),trigger:"enter"}):Ht(v.value,b.value.format)?_.value=ze(v.value,{format:b.value.format}):_.value=[])}})}),I=B(function(){var x,S,E;return Ro(Ro({expandAnimation:!0},t.popupProps),{},{overlayInnerStyle:(x=(S=t.popupProps)===null||S===void 0?void 0:S.overlayInnerStyle)!==null&&x!==void 0?x:{width:"auto"},overlayClassName:[(E=t.popupProps)===null||E===void 0?void 0:E.overlayClassName,"".concat(e.value,"__panel-container")],onVisibleChange:function(j,T){var F,w;if((F=t.popupProps)===null||F===void 0||(w=F.onVisibleChange)===null||w===void 0||w.call(F,j,T),T.trigger==="trigger-element-click"){var P={0:"first",1:"second"};u.value.focus({position:P[O.value]}),y.value=!0;return}y.value=j}})});return le(v,function(x){if(!x){_.value=[];return}Ht(x,b.value.format)&&(_.value=ze(x,{format:b.value.format}))},{immediate:!0}),le(O,function(x){var S,E;if(!i.value){i.value=!0;return}if(y.value){var D={0:"first",1:"second"};(S=u.value)===null||S===void 0||(E=S.focus)===null||E===void 0||E.call(S,{position:D[x]})}},{immediate:!0}),{year:p,month:f,value:v,time:d,inputValue:_,popupVisible:y,rangeInputProps:$,popupProps:I,isHoverCell:C,activeIndex:O,isFirstValueSelected:m,cacheValue:h,onChange:s}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Bg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Cz(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var wz=ne({name:"TDateRangePicker",props:Cz({},tn),setup:function(e,n){var a=n.slots,r=ee("date-range-picker"),l=yz(e),o=l.inputValue,i=l.popupVisible,u=l.rangeInputProps,c=l.popupProps,v=l.value,s=l.year,d=l.month,f=l.time,p=l.cacheValue,h=l.activeIndex,m=l.isHoverCell,b=l.isFirstValueSelected,y=l.onChange,C=Jt(),O=B(function(){return Ln({mode:e.mode,enableTimePicker:e.enableTimePicker,format:e.format,valueType:e.valueType})}),_=G(!1);le(i,function(P){if(P)if(_.value=!1,p.value=ze(v.value||[],{format:O.value.format}),f.value=Gr(v.value||[de().format(O.value.timeFormat),de().format(O.value.timeFormat)],O.value.format,O.value.timeFormat,e.defaultTime),v.value.length)if(v.value.length===2&&!e.enableTimePicker){var M=v.value.map(function(V){return Me(V,O.value.format).month()});s.value=v.value.map(function(V){return Me(V,O.value.format).year()}),s.value[0]===s.value[1]&&M[0]===M[1]&&(M[0]===11?M[0]-=1:M[1]+=1),d.value=M,(e.mode==="month"||e.mode==="quarter")&&s.value[0]===s.value[1]&&(s.value=[s.value[0],s.value[0]+1])}else s.value=v.value.map(function(V){return Me(V,O.value.format).year()}),s.value.length===1&&(s.value=[s.value[0],s.value[0]]),d.value=v.value.map(function(V){return Me(V,O.value.format).month()}),d.value.length===1&&(d.value=[d.value[0],Math.min(d.value[0]+1,11)]);else{var A=ci({value:v.value,mode:e.mode,format:O.value.format,enableTimePicker:e.enableTimePicker}),R=A.year,k=A.month;s.value=R,d.value=k}else h.value=0,m.value=!1,b.value=!1,o.value=ze(v.value,{format:O.value.format})});function $(P){m.value=!0;var A=ce(o.value);A[h.value]=ze(P,{format:O.value.format}),o.value=A}function I(){m.value=!1,o.value=p.value}function x(P,A){var R,k=A.e,M=A.partial;(R=e.onPick)===null||R===void 0||R.call(e,P,{e:k,partial:h.value?"end":"start"}),m.value=!1,_.value=!0;var V=ce(o.value);if(V[h.value]=ze(P,{format:O.value.format}),p.value=V,o.value=V,e.mode==="date"){var W=M==="start"?0:1,U=de(P).month()!==d.value[W];U&&(h.value===0&&(d.value=[de(P).month(),Math.min(de(P).month()+1,11)]),h.value===1&&(d.value=[Math.max(de(P).month()-1,0),de(P).month()]))}if(!e.enableTimePicker){var H=V.findIndex(function(z){return!z||!Ht(z,O.value.format)});if(H===-1&&V.length===2&&(!b.value&&Me(V[0],O.value.format).isAfter(Me(V[1],O.value.format))?(V[h.value?0:1]="",p.value=V,o.value=V):y==null||y(ze(V,{format:O.value.format,targetFormat:O.value.valueType,autoSwap:!0}),{dayjsValue:V.map(function(z){return Me(z,O.value.format)}),trigger:"pick"})),b.value)i.value=!1;else{var L=H;L===-1&&(L=h.value?0:1),h.value=L,b.value=!0}}}function S(P){var A=P.trigger,R=P.partial,k=R==="start"?0:1,M={date:1,week:1,month:12,quarter:12,year:120},V=M[e.mode]||0,W=new Date(s.value[k],d.value[k]),U=null;A==="prev"?U=wu(W,V):A==="current"?U=new Date:A==="next"&&(U=Ou(W,V));var H=ce(s.value);H[k]=U.getFullYear();var L=ce(d.value);L[k]=U.getMonth(),k===0&&(H[1]=Math.max(H[0],H[1]),H[0]===H[1]&&(L[1]=Math.max(L[0],L[1]))),k===1&&(H[0]=Math.min(H[0],H[1]),H[0]===H[1]&&(L[0]=Math.min(L[0],L[1]))),s.value=H,d.value=L}function E(P){var A=Yr(P),R=A.hours,k=A.minutes,M=A.seconds,V=A.milliseconds,W=A.meridiem,U=ce(o.value),H=o.value[h.value],L=de(H,O.value.format).isValid()?de(H,O.value.format):de().year(s.value[h.value]).month(d.value[h.value]),z=R;/am/i.test(W)&&z===12&&(z-=12),/pm/i.test(W)&&z<12&&(z+=12);var K=L.hour(z).minute(k).second(M).millisecond(V).toDate();U[h.value]=K;var Y=ce(f.value);Y[h.value]=P,f.value=Y,_.value=!0,o.value=ze(U,{format:O.value.format}),p.value=ze(U,{format:O.value.format})}function D(P){var A=P.e,R=ce(o.value),k=R.findIndex(function(W){return!W||!Ht(W,O.value.format)});if(k===-1&&R.length===2)if(!b.value&&Me(R[0],O.value.format).isAfter(Me(R[1],O.value.format)))R[h.value?0:1]="",p.value=R,o.value=R;else{var M;e==null||(M=e.onConfirm)===null||M===void 0||M.call(e,{date:R.map(function(W){return de(W).toDate()}),e:A,partial:h.value?"end":"start"}),y==null||y(ze(R,{format:O.value.format,targetFormat:O.value.valueType,autoSwap:!0}),{dayjsValue:R.map(function(W){return Me(W,O.value.format)}),trigger:"confirm"})}if(!b.value||R.length===1){var V=k;V===-1&&(V=h.value?0:1),h.value=V,b.value=!0}else R.length===2&&(i.value=!1)}function j(P,A){var R=P;if(pe(P)&&(R=P()),!ke(R))console.error("preset: ".concat(P," 预设值必须是数组!"));else{var k;y==null||y(ze(R,{format:O.value.format,targetFormat:O.value.valueType,autoSwap:!0}),{dayjsValue:R.map(function(M){return Me(M,O.value.format)}),trigger:"preset"}),i.value=!1,(k=e.onPresetClick)===null||k===void 0||k.call(e,A)}}function T(P,A){var R=A.partial,k=R==="start"?0:1;e.enableTimePicker&&(k=h.value);var M=ce(s.value);M[k]=P,k===0&&(M[1]=Math.max(M[0],M[1])),k===1&&(M[0]=Math.min(M[0],M[1])),s.value=M}function F(P,A){var R=A.partial,k=R==="start"?0:1;e.enableTimePicker&&(k=h.value);var M=ce(d.value);M[k]=P,s.value[0]===s.value[1]&&(k===0&&(M[1]=Math.max(M[0],M[1])),k===1&&(M[0]=Math.min(M[0],M[1]))),d.value=M}var w=B(function(){return{hoverValue:m.value?o.value:[],value:_.value?p.value:v.value,isFirstValueSelected:b.value,activeIndex:h.value,year:s.value,month:d.value,format:O.value.format,mode:e.mode,presets:e.presets,time:f.value,disableDate:e.disableDate,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,popupVisible:i.value,panelPreselection:e.panelPreselection,cancelRangeSelectLimit:e.cancelRangeSelectLimit,onCellClick:x,onCellMouseEnter:$,onCellMouseLeave:I,onJumperClick:S,onConfirmClick:D,onPresetClick:j,onYearChange:T,onMonthChange:F,onTimePickerChange:E}});return function(){return g("div",{class:r.value},[g(bz,{disabled:C.value,status:e.status,tips:e.tips||a.tips,inputValue:o.value,popupProps:c.value,rangeInputProps:u.value,popupVisible:i.value,panel:function(){return g(h0,w.value,null)}},null)])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Oz={defaultTime:{type:Array,default:function(){return["00:00:00","23:59:59"]}},onCellClick:Function,onChange:Function,onConfirm:Function,onMonthChange:Function,onPanelClick:Function,onPresetClick:Function,onTimeChange:Function,onYearChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Vg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function _z(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Sz=ne({name:"TDateRangePickerPanel",props:_z({value:tn.value,defaultValue:tn.defaultValue,modelValue:tn.modelValue,disabled:tn.disabled,disableDate:tn.disableDate,enableTimePicker:tn.enableTimePicker,firstDayOfWeek:tn.firstDayOfWeek,format:tn.format,mode:tn.mode,presets:tn.presets,presetsPlacement:tn.presetsPlacement,timePickerProps:tn.timePickerProps,panelPreselection:tn.panelPreselection},Oz),setup:function(e){var n=m0(e),a=n.value,r=n.year,l=n.month,o=n.time,i=n.cacheValue,u=n.isFirstValueSelected,c=n.onChange,v=B(function(){return Ln({mode:e.mode,enableTimePicker:e.enableTimePicker,format:e.format})}),s=G(!1),d=G(!1),f=G([]),p=B(function(){return u.value?1:0});function h(S){d.value=!0;var E=ce(f.value);E[p.value]=ze(S,{format:v.value.format}),f.value=E}function m(){d.value=!1,f.value=i.value}function b(S,E){var D,j=E.e;(D=e.onCellClick)===null||D===void 0||D.call(e,{e:j,partial:p.value?"end":"start",date:a.value.map(function(F){return de(F).toDate()})}),d.value=!1,s.value=!0;var T=ce(i.value);T[p.value]=ze(S,{format:v.value.format}),i.value=T,!e.enableTimePicker&&(T.length===2&&u.value?(c==null||c(ze(T,{format:v.value.format,autoSwap:!0}),{dayjsValue:T.map(function(F){return Me(F,v.value.format)}),trigger:"pick"}),u.value=!1):u.value=!0)}function y(S){var E=S.trigger,D=S.partial,j=D==="start"?0:1,T={prev:"arrow-previous",next:"arrow-next"},F={date:1,month:12,year:120},w=F[e.mode]||0,P=new Date(r.value[j],l.value[j]),A=null;E==="prev"?A=wu(P,w):E==="current"?A=new Date:E==="next"&&(A=Ou(P,w));var R=ce(r.value);R[j]=A.getFullYear();var k=ce(l.value);if(k[j]=A.getMonth(),j===0&&(R[1]=Math.max(R[0],R[1]),R[0]===R[1]&&(k[1]=Math.max(k[0],k[1]))),j===1&&(R[0]=Math.min(R[0],R[1]),R[0]===R[1]&&(k[0]=Math.min(k[0],k[1]))),r.value.some(function(W){return!R.includes(W)})){var M;(M=e.onYearChange)===null||M===void 0||M.call(e,{partial:D,year:R[j],date:a.value.map(function(W){return de(W).toDate()}),trigger:E==="current"?"today":"year-".concat(T[E])})}if(l.value.some(function(W){return!k.includes(W)})){var V;(V=e.onMonthChange)===null||V===void 0||V.call(e,{partial:D,month:k[j],date:a.value.map(function(W){return de(W).toDate()}),trigger:E==="current"?"today":"month-".concat(T[E])})}r.value=R,l.value=k}function C(S){var E,D=Yr(S),j=D.hours,T=D.minutes,F=D.seconds,w=D.milliseconds,P=D.meridiem,A=ce(i.value),R=i.value[p.value],k=de(R,v.value.format).isValid()?de(R,v.value.format):de().year(r.value[p.value]).month(l.value[p.value]),M=j;/am/i.test(P)&&M===12&&(M-=12),/pm/i.test(P)&&M<12&&(M+=12);var V=k.hour(M).minute(T).second(F).millisecond(w).toDate();A[p.value]=V;var W=ce(o.value);W[p.value]=S,o.value=W,s.value=!0,i.value=ze(A,{format:v.value.format}),(E=e.onTimeChange)===null||E===void 0||E.call(e,{time:S,date:a.value.map(function(U){return Me(U,v.value.format).toDate()}),partial:p.value?"end":"start",trigger:"time-hour"})}function O(S){var E,D=S.e,j=ce(i.value);j.length===2&&u.value?(c==null||c(ze(j,{format:v.value.format,autoSwap:!0}),{dayjsValue:j.map(function(T){return Me(T,v.value.format)}),trigger:"confirm"}),r.value=j.map(function(T){return de(T,v.value.format).year()}),l.value=j.map(function(T){return de(T,v.value.format).month()}),u.value=!1):u.value=!0,(E=e.onConfirm)===null||E===void 0||E.call(e,{date:a.value.map(function(T){return de(T).toDate()}),e:D})}function _(S,E){var D=S;if(pe(S)&&(D=S()),!ke(D))console.error("preset: ".concat(S," 预设值必须是数组!"));else{var j;c==null||c(ze(D,{format:v.value.format,autoSwap:!0}),{dayjsValue:D.map(function(T){return Me(T,v.value.format)}),trigger:"preset"}),(j=e.onPresetClick)===null||j===void 0||j.call(e,E)}}function $(S,E){var D,j=E.partial,T=j==="start"?0:1;e.enableTimePicker&&(T=p.value);var F=ce(r.value);F[T]=S,T===0&&(F[1]=Math.max(F[0],F[1])),T===1&&(F[0]=Math.min(F[0],F[1])),r.value=F,(D=e.onYearChange)===null||D===void 0||D.call(e,{partial:j,year:F[T],date:a.value.map(function(w){return de(w).toDate()}),trigger:"year-select"})}function I(S,E){var D,j=E.partial,T=j==="start"?0:1;e.enableTimePicker&&(T=p.value);var F=ce(l.value);F[T]=S,r.value[0]===r.value[1]&&(T===0&&(F[1]=Math.max.apply(Math,ce(F))),T===1&&(F[0]=Math.min.apply(Math,ce(F)))),l.value=F,(D=e.onMonthChange)===null||D===void 0||D.call(e,{partial:j,month:F[T],date:a.value.map(function(w){return de(w).toDate()}),trigger:"month-select"})}var x=B(function(){return{hoverValue:d.value?f.value:[],value:s.value?i.value:a.value,activeIndex:p.value,year:r.value,month:l.value,mode:e.mode,format:v.value.format,presets:e.presets,time:o.value,disableDate:e.disableDate,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,panelPreselection:e.panelPreselection,popupVisible:!0,panelClick:e.onPanelClick,onCellClick:b,onCellMouseEnter:h,onCellMouseLeave:m,onJumperClick:y,onConfirmClick:O,onPresetClick:_,onYearChange:$,onMonthChange:I,onTimePickerChange:C}});return function(){return g(h0,x.value,null)}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var J9=ye(vz);ye(gz);var Z9=ye(wz);ye(Sz);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var xz=Sy;function Pz(t,e,n){return t==null?t:xz(t,e,n)}var ir=Pz;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Vc={exports:{}},qr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;for(var l in r)typeof a[l]>"u"&&(a[l]=r[l]);return a}t.exports=e.default,t.exports.default=e.default})(qr,qr.exports);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=p;var n=a(qr.exports);function a(h){return h&&h.__esModule?h:{default:h}}function r(h,m){return i(h)||o(h,m)||c(h,m)||l()}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(h,m){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(h)))){var b=[],y=!0,C=!1,O=void 0;try{for(var _=h[Symbol.iterator](),$;!(y=($=_.next()).done)&&(b.push($.value),!(m&&b.length===m));y=!0);}catch(I){C=!0,O=I}finally{try{!y&&_.return!=null&&_.return()}finally{if(C)throw O}}return b}}function i(h){if(Array.isArray(h))return h}function u(h,m){var b;if(typeof Symbol>"u"||h[Symbol.iterator]==null){if(Array.isArray(h)||(b=c(h))||m&&h&&typeof h.length=="number"){b&&(h=b);var y=0,C=function(){};return{s:C,n:function(){return y>=h.length?{done:!0}:{done:!1,value:h[y++]}},e:function(x){throw x},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var O=!0,_=!1,$;return{s:function(){b=h[Symbol.iterator]()},n:function(){var x=b.next();return O=x.done,x},e:function(x){_=!0,$=x},f:function(){try{!O&&b.return!=null&&b.return()}finally{if(_)throw $}}}}function c(h,m){if(h){if(typeof h=="string")return v(h,m);var b=Object.prototype.toString.call(h).slice(8,-1);if(b==="Object"&&h.constructor&&(b=h.constructor.name),b==="Map"||b==="Set")return Array.from(h);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return v(h,m)}}function v(h,m){(m==null||m>h.length)&&(m=h.length);for(var b=0,y=new Array(m);b<m;b++)y[b]=h[b];return y}var s={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};function d(h){return/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(h)}function f(h,m){for(var b=[],y=Math.min(h.length,m.length),C=0;C<y;C++)b.push([h[C],m[C]]);return b}function p(h,m){if(typeof m=="string"?m=(0,n.default)({format:m},s):m=(0,n.default)(m,s),typeof h=="string"&&d(m.format)){var b=m.delimiters.find(function(T){return m.format.indexOf(T)!==-1}),y=m.strictMode?b:m.delimiters.find(function(T){return h.indexOf(T)!==-1}),C=f(h.split(y),m.format.toLowerCase().split(b)),O={},_=u(C),$;try{for(_.s();!($=_.n()).done;){var I=r($.value,2),x=I[0],S=I[1];if(x.length!==S.length)return!1;O[S.charAt(0)]=x}}catch(T){_.e(T)}finally{_.f()}var E=O.y;if(O.y.length===2){var D=parseInt(O.y,10);if(isNaN(D))return!1;var j=new Date().getFullYear()%100;D<j?E="20".concat(O.y):E="19".concat(O.y)}return new Date("".concat(E,"-").concat(O.m,"-").concat(O.d)).getDate()===+O.d}return m.strictMode?!1:Object.prototype.toString.call(h)==="[object Date]"&&isFinite(h)}t.exports=e.default,t.exports.default=e.default})(Vc,Vc.exports);var Ez=Xi(Vc.exports),Hc={exports:{}},ur={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;function n(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(o){return typeof o}:n=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},n(r)}function a(r){var l=typeof r=="string"||r instanceof String;if(!l){var o=n(r);throw r===null?o="null":o==="object"&&(o=r.constructor.name),new TypeError("Expected a string but received a ".concat(o))}}t.exports=e.default,t.exports.default=e.default})(ur,ur.exports);var Kc={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var n=a(ur.exports);function a(o){return o&&o.__esModule?o:{default:o}}function r(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(u){return typeof u}:r=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r(o)}function l(o,i){(0,n.default)(o);var u,c;r(i)==="object"?(u=i.min||0,c=i.max):(u=arguments[1],c=arguments[2]);var v=encodeURI(o).split(/%..|./).length-1;return v>=u&&(typeof c>"u"||v<=c)}t.exports=e.default,t.exports.default=e.default})(Kc,Kc.exports);var $i={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var n=r(ur.exports),a=r(qr.exports);function r(i){return i&&i.__esModule?i:{default:i}}var l={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function o(i,u){(0,n.default)(i),u=(0,a.default)(u,l),u.allow_trailing_dot&&i[i.length-1]==="."&&(i=i.substring(0,i.length-1)),u.allow_wildcard===!0&&i.indexOf("*.")===0&&(i=i.substring(2));var c=i.split("."),v=c[c.length-1];return u.require_tld&&(c.length<2||!u.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(v)||/\s/.test(v))||!u.allow_numeric_tld&&/^\d+$/.test(v)?!1:c.every(function(s){return!(s.length>63&&!u.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(s)||/[\uff01-\uff5e]/.test(s)||/^-|-$/.test(s)||!u.allow_underscores&&/_/.test(s))})}t.exports=e.default,t.exports.default=e.default})($i,$i.exports);var Fi={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var n=a(ur.exports);function a(v){return v&&v.__esModule?v:{default:v}}var r="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",l="(".concat(r,"[.]){3}").concat(r),o=new RegExp("^".concat(l,"$")),i="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(i,":){7}(?:").concat(i,"|:)|")+"(?:".concat(i,":){6}(?:").concat(l,"|:").concat(i,"|:)|")+"(?:".concat(i,":){5}(?::").concat(l,"|(:").concat(i,"){1,2}|:)|")+"(?:".concat(i,":){4}(?:(:").concat(i,"){0,1}:").concat(l,"|(:").concat(i,"){1,3}|:)|")+"(?:".concat(i,":){3}(?:(:").concat(i,"){0,2}:").concat(l,"|(:").concat(i,"){1,4}|:)|")+"(?:".concat(i,":){2}(?:(:").concat(i,"){0,3}:").concat(l,"|(:").concat(i,"){1,5}|:)|")+"(?:".concat(i,":){1}(?:(:").concat(i,"){0,4}:").concat(l,"|(:").concat(i,"){1,6}|:)|")+"(?::((?::".concat(i,"){0,5}:").concat(l,"|(?::").concat(i,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function c(v){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.default)(v),s=String(s),s?s==="4"?o.test(v):s==="6"?u.test(v):!1:c(v,4)||c(v,6)}t.exports=e.default,t.exports.default=e.default})(Fi,Fi.exports);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=b;var n=i(ur.exports),a=i(Kc.exports),r=i($i.exports),l=i(Fi.exports),o=i(qr.exports);function i(y){return y&&y.__esModule?y:{default:y}}var u={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,v=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,s=/^[a-z\d]+$/,d=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,h=254;function m(y){var C=y.replace(/^"(.+)"$/,"$1");if(!C.trim())return!1;var O=/[\.";<>]/.test(C);if(O){if(C===y)return!1;var _=C.split('"').length===C.split('\\"').length;if(!_)return!1}return!0}function b(y,C){if((0,n.default)(y),C=(0,o.default)(C,u),C.require_display_name||C.allow_display_name){var O=y.match(c);if(O){var _=O[1];if(y=y.replace(_,"").replace(/(^<|>$)/g,""),_.endsWith(" ")&&(_=_.slice(0,-1)),!m(_))return!1}else if(C.require_display_name)return!1}if(!C.ignore_max_length&&y.length>h)return!1;var $=y.split("@"),I=$.pop(),x=I.toLowerCase();if(C.host_blacklist.includes(x)||C.host_whitelist.length>0&&!C.host_whitelist.includes(x))return!1;var S=$.join("@");if(C.domain_specific_validation&&(x==="gmail.com"||x==="googlemail.com")){S=S.toLowerCase();var E=S.split("+")[0];if(!(0,a.default)(E.replace(/\./g,""),{min:6,max:30}))return!1;for(var D=E.split("."),j=0;j<D.length;j++)if(!s.test(D[j]))return!1}if(C.ignore_max_length===!1&&(!(0,a.default)(S,{max:64})||!(0,a.default)(I,{max:254})))return!1;if(!(0,r.default)(I,{require_tld:C.require_tld,ignore_max_length:C.ignore_max_length,allow_underscores:C.allow_underscores})){if(!C.allow_ip_domain)return!1;if(!(0,l.default)(I)){if(!I.startsWith("[")||!I.endsWith("]"))return!1;var T=I.slice(1,-1);if(T.length===0||!(0,l.default)(T))return!1}}if(S[0]==='"')return S=S.slice(1,S.length-1),C.allow_utf8_local_part?p.test(S):d.test(S);for(var F=C.allow_utf8_local_part?f:v,w=S.split("."),P=0;P<w.length;P++)if(!F.test(w[P]))return!1;return!(C.blacklisted_chars&&S.search(new RegExp("[".concat(C.blacklisted_chars,"]+"),"g"))!==-1)}t.exports=e.default,t.exports.default=e.default})(Hc,Hc.exports);var Tz=Xi(Hc.exports),zc={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=b;var n=o(ur.exports),a=o($i.exports),r=o(Fi.exports),l=o(qr.exports);function o(y){return y&&y.__esModule?y:{default:y}}function i(y,C){return d(y)||s(y,C)||c(y,C)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(y,C){if(y){if(typeof y=="string")return v(y,C);var O=Object.prototype.toString.call(y).slice(8,-1);if(O==="Object"&&y.constructor&&(O=y.constructor.name),O==="Map"||O==="Set")return Array.from(y);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return v(y,C)}}function v(y,C){(C==null||C>y.length)&&(C=y.length);for(var O=0,_=new Array(C);O<C;O++)_[O]=y[O];return _}function s(y,C){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(y)))){var O=[],_=!0,$=!1,I=void 0;try{for(var x=y[Symbol.iterator](),S;!(_=(S=x.next()).done)&&(O.push(S.value),!(C&&O.length===C));_=!0);}catch(E){$=!0,I=E}finally{try{!_&&x.return!=null&&x.return()}finally{if($)throw I}}return O}}function d(y){if(Array.isArray(y))return y}var f={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},p=/^\[([^\]]+)\](?::([0-9]+))?$/;function h(y){return Object.prototype.toString.call(y)==="[object RegExp]"}function m(y,C){for(var O=0;O<C.length;O++){var _=C[O];if(y===_||h(_)&&_.test(y))return!0}return!1}function b(y,C){if((0,n.default)(y),!y||/[\s<>]/.test(y)||y.indexOf("mailto:")===0||(C=(0,l.default)(C,f),C.validate_length&&y.length>=2083)||!C.allow_fragments&&y.includes("#")||!C.allow_query_components&&(y.includes("?")||y.includes("&")))return!1;var O,_,$,I,x,S,E,D;if(E=y.split("#"),y=E.shift(),E=y.split("?"),y=E.shift(),E=y.split("://"),E.length>1){if(O=E.shift().toLowerCase(),C.require_valid_protocol&&C.protocols.indexOf(O)===-1)return!1}else{if(C.require_protocol)return!1;if(y.slice(0,2)==="//"){if(!C.allow_protocol_relative_urls)return!1;E[0]=y.slice(2)}}if(y=E.join("://"),y==="")return!1;if(E=y.split("/"),y=E.shift(),y===""&&!C.require_host)return!0;if(E=y.split("@"),E.length>1){if(C.disallow_auth||E[0]===""||(_=E.shift(),_.indexOf(":")>=0&&_.split(":").length>2))return!1;var j=_.split(":"),T=i(j,2),F=T[0],w=T[1];if(F===""&&w==="")return!1}I=E.join("@"),S=null,D=null;var P=I.match(p);if(P?($="",D=P[1],S=P[2]||null):(E=I.split(":"),$=E.shift(),E.length&&(S=E.join(":"))),S!==null&&S.length>0){if(x=parseInt(S,10),!/^[0-9]+$/.test(S)||x<=0||x>65535)return!1}else if(C.require_port)return!1;return C.host_whitelist?m($,C.host_whitelist):$===""&&!C.require_host?!0:!(!(0,r.default)($)&&!(0,a.default)($,C)&&(!D||!(0,r.default)(D,6))||($=$||D,C.host_blacklist&&m($,C.host_blacklist)))}t.exports=e.default,t.exports.default=e.default})(zc,zc.exports);var Dz=Xi(zc.exports);function Hg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Kg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function p0(t){var e=Object.prototype.toString.call(t),n={Date:"[object Date]"};return e===n.Date?!1:Ve(t)?Ql(t):["",void 0,null].includes(t)}var Iz={date:Ez,url:Dz,email:Tz,required:function(e){return!p0(e)},whitespace:function(e){return!(/^\s+$/.test(e)||e==="")},boolean:function(e){return An(e)},max:function(e,n){return ct(e)?e<=n:Vl(e)<=n},min:function(e,n){return ct(e)?e>=n:Vl(e)>=n},len:function(e,n){return Vl(e)===n},number:function(e){return ct(e)},enum:function(e,n){return n.includes(e)},idcard:function(e){return/^(\d{18,18}|\d{15,15}|\d{17,17}x)$/i.test(e)},telnumber:function(e){return/^1[3-9]\d{9}$/.test(e)},pattern:function(e,n){return n.test(e)},validator:function(e,n){return n(e)}};function jz(t,e){return Wc.apply(this,arguments)}function Wc(){return Wc=an(dt.mark(function t(e,n){var a,r,l,o,i,u,c;return dt.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:a={result:!0},r=Object.keys(n),i=0;case 3:if(!(i<r.length)){s.next=15;break}if(u=r[i],!(!n.required&&p0(e)&&!n.validator)){s.next=7;break}return s.abrupt("return",a);case 7:if(c=Iz[u],!(c&&(n[u]||n[u]===0))){s.next=12;break}return l=n[u]===!0?void 0:n[u],o=c,s.abrupt("break",15);case 12:i++,s.next=3;break;case 15:if(!o){s.next=23;break}return s.next=18,o(e,l);case 18:if(a=s.sent,!An(a)){s.next=21;break}return s.abrupt("return",Kg(Kg({},n),{},{result:a}));case 21:if(!Ve(a)){s.next=23;break}return s.abrupt("return",a);case 23:return s.abrupt("return",a);case 24:case"end":return s.stop()}},t)})),Wc.apply(this,arguments)}function Qs(t,e){return Uc.apply(this,arguments)}function Uc(){return Uc=an(dt.mark(function t(e,n){var a,r;return dt.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return a=n.map(function(i){return jz(e,i)}),o.next=3,Promise.all(a);case 3:return r=o.sent,o.abrupt("return",r);case 5:case"end":return o.stop()}},t)})),Uc.apply(this,arguments)}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var $z={for:{type:String,default:""},help:{type:[String,Function]},label:{type:[String,Function],default:""},labelAlign:{type:String,validator:function(e){return e?["left","right","top"].includes(e):!0}},labelWidth:{type:[String,Number]},name:{type:String,default:""},requiredMark:{type:Boolean,default:void 0},rules:{type:Array},showErrorMessage:{type:Boolean,default:void 0},status:{type:String,default:""},statusIcon:{type:[Boolean,Function],default:void 0},successBorder:Boolean,tips:{type:[String,Function]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Fz=vr,kz=Os,Az=il,Rz=kz(function(t,e,n,a){Fz(e,Az(e),t,a)}),Mz=Rz,Nz=Qn,Lz=pn,Bz=ws,Vz="[object DOMException]",Hz="[object Error]";function Kz(t){if(!Lz(t))return!1;var e=Nz(t);return e==Hz||e==Vz||typeof t.message=="string"&&typeof t.name=="string"&&!Bz(t)}var b0=Kz,zz=Jp,Wz=lu,Uz=b0,Yz=Wz(function(t,e){try{return zz(t,void 0,e)}catch(n){return Uz(n)?n:new Error(n)}}),Gz=Yz,qz=dr;function Xz(t,e){return qz(e,function(n){return t[n]})}var Jz=Xz,Zz=nl,y0=Object.prototype,Qz=y0.hasOwnProperty;function e5(t,e,n,a){return t===void 0||Zz(t,y0[n])&&!Qz.call(a,n)?e:t}var t5=e5,n5={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function a5(t){return"\\"+n5[t]}var r5=a5,l5=/<%=([\s\S]+?)%>/g,C0=l5,o5=bb,i5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},u5=o5(i5),c5=u5,s5=c5,v5=Fa,w0=/[&<>"']/g,d5=RegExp(w0.source);function f5(t){return t=v5(t),t&&d5.test(t)?t.replace(w0,s5):t}var g5=f5,h5=/<%-([\s\S]+?)%>/g,m5=h5,p5=/<%([\s\S]+?)%>/g,b5=p5,y5=g5,C5=m5,w5=b5,O5=C0,_5={escape:C5,evaluate:w5,interpolate:O5,variable:"",imports:{_:{escape:y5}}},S5=_5,zg=Mz,x5=Gz,P5=Jz,Wg=t5,E5=r5,T5=b0,D5=ou,I5=ho,j5=C0,Ug=S5,$5=Fa,F5="Invalid `variable` option passed into `_.template`",k5=/\b__p \+= '';/g,A5=/\b(__p \+=) '' \+/g,R5=/(__e\(.*?\)|\b__t\)) \+\n'';/g,M5=/[()=,{}\[\]\/\s]/,N5=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Mo=/($^)/,L5=/['\n\r\u2028\u2029\\]/g,B5=Object.prototype,Yg=B5.hasOwnProperty;function V5(t,e,n){var a=Ug.imports._.templateSettings||Ug;n&&D5(t,e,n)&&(e=void 0),t=$5(t),e=zg({},e,a,Wg);var r=zg({},e.imports,a.imports,Wg),l=I5(r),o=P5(r,l),i,u,c=0,v=e.interpolate||Mo,s="__p += '",d=RegExp((e.escape||Mo).source+"|"+v.source+"|"+(v===j5?N5:Mo).source+"|"+(e.evaluate||Mo).source+"|$","g"),f=Yg.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
`:"";t.replace(d,function(m,b,y,C,O,_){return y||(y=C),s+=t.slice(c,_).replace(L5,E5),b&&(i=!0,s+=`' +
__e(`+b+`) +
'`),O&&(u=!0,s+=`';
`+O+`;
__p += '`),y&&(s+=`' +
((__t = (`+y+`)) == null ? '' : __t) +
'`),c=_+m.length,m}),s+=`';
`;var p=Yg.call(e,"variable")&&e.variable;if(!p)s=`with (obj) {
`+s+`
}
`;else if(M5.test(p))throw new Error(F5);s=(u?s.replace(k5,""):s).replace(A5,"$1").replace(R5,"$1;"),s="function("+(p||"obj")+`) {
`+(p?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(i?", __e = _.escape":"")+(u?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+s+`return __p
}`;var h=x5(function(){return Function(l,f+"return "+s).apply(void 0,o)});if(h.source=s,T5(h))throw h;return h}var H5=V5;function Gg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Yu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function O0(t,e){return e?"".concat(t,"__").concat(e).replace(/(\[|\]\.)/g,"_"):""}var K5=ne({name:"TFormItem",props:Yu({},$z),setup:function(e,n){var a=n.slots,r=xe(),l=yy(),o=Ke("form"),i=o.globalConfig,u=at({CheckCircleFilledIcon:$a,CloseCircleFilledIcon:co,ErrorCircleFilledIcon:ma}),c=u.CheckCircleFilledIcon,v=u.CloseCircleFilledIcon,s=u.ErrorCircleFilledIcon,d=vt(Cy,void 0),f=ee(),p=ee("form-item"),h=B(function(){var re,ue,ie=(re=(ue=e.requiredMark)!==null&&ue!==void 0?ue:d==null?void 0:d.requiredMark)!==null&&re!==void 0?re:i.value.requiredMark,Ce=V.value.filter(function(Oe){return Oe.required}).length>0;return ie??Ce}),m=B(function(){return a.label||e.label}),b=B(function(){return!!(d!=null&&d.colon&&m.value)}),y=ee("form__label"),C=B(function(){return eo(e.labelAlign)?d==null?void 0:d.labelAlign:e.labelAlign}),O=B(function(){return eo(e.labelWidth)?d==null?void 0:d.labelWidth:e.labelWidth}),_=B(function(){return[l.value.label,N(N(N(N(N({},"".concat(y.value,"--required"),h.value),"".concat(y.value,"--colon"),b.value),"".concat(y.value,"--top"),m.value&&(C.value==="top"||!O.value)),"".concat(y.value,"--left"),C.value==="left"&&O.value),"".concat(y.value,"--right"),C.value==="right"&&O.value)]}),$=function(){if(Number(O.value)!==0){var ue={};return O.value&&C.value!=="top"&&(ct(O.value)?ue={width:"".concat(O.value,"px")}:ue={width:O.value}),g("div",{class:_.value,style:ue},[g("label",{for:e.for},[r("label")])])}},I=function(){var ue=function(Re){return g("span",{class:l.value.status},[g(Re,null,null)])},ie=j.value;if(F.value===la.SUCCESS)return ue(c);if(ie!=null&&ie[0]){var Ce=ie[0].type||"error",Oe={error:v,warning:s}[Ce]||c;return ue(Oe)}return null},x=function(){var ue=e.statusIcon;if(ue!==!1){var ie=r("statusIcon",{defaultNode:I()});if(ie)return g("span",{class:l.value.status},[ie]);if(ie!==!1&&(ie=d==null?void 0:d.renderContent("statusIcon",{defaultNode:I(),params:e}),ie))return ie}},S=B(function(){if(!Z.value)return"";if(F.value===la.SUCCESS)return e.successBorder?[l.value.success,l.value.successBorder].join(" "):l.value.success;if(j.value.length){var re=j.value[0].type||"error";return re==="error"?l.value.error:l.value.warning}}),E=B(function(){return[l.value.controls,S.value]}),D=B(function(){var re={};return O.value&&C.value!=="top"&&(ct(O.value)?re={marginLeft:"".concat(O.value,"px")}:re={marginLeft:O.value}),re}),j=G([]),T=G([]),F=G(la.TO_BE_VALIDATED),w=G(!1),P=G(!1),A=function(){P.value=!1,j.value=[],T.value=[],F.value=la.TO_BE_VALIDATED},R=function(){var ue=Object.prototype.toString.call(fe(d==null?void 0:d.data,e.name)),ie;return ue==="[object String]"&&(ie=""),ue==="[object Array]"&&(ie=[]),ue==="[object Object]"&&(ie={}),ie},k=function(){var re=an(dt.mark(function ue(){var ie,Ce=arguments;return dt.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(ie=Ce.length>0&&Ce[0]!==void 0?Ce[0]:d==null?void 0:d.resetType,e.name){De.next=3;break}return De.abrupt("return");case 3:return ie==="empty"?ir(d==null?void 0:d.data,e.name,R()):ie==="initial"&&ir(d==null?void 0:d.data,e.name,K.value),De.next=6,Je();case 6:w.value?P.value=!0:A();case 7:case"end":return De.stop()}},ue)}));return function(){return re.apply(this,arguments)}}(),M=B(function(){var re;return(re=d==null?void 0:d.errorMessage)!==null&&re!==void 0?re:i.value.errorMessage}),V=B(function(){var re;if((re=e.rules)!==null&&re!==void 0&&re.length)return e.rules;if(!e.name)return[];var ue="".concat(e.name).lastIndexOf(".")||-1,ie="".concat(e.name).slice(ue+1);return fe(d==null?void 0:d.rules,e.name)||fe(d==null?void 0:d.rules,ie)||[]}),W=function(){var re=an(dt.mark(function ue(ie){var Ce,Oe;return dt.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(Oe={successList:[],errorList:[],rules:[],resultList:[],allowSetValue:!1},Oe.rules=ie==="all"?V.value:V.value.filter(function(Ee){return(Ee.trigger||"change")===ie}),!(V.value.length&&!((Ce=Oe.rules)!==null&&Ce!==void 0&&Ce.length))){Re.next=4;break}return Re.abrupt("return",Oe);case 4:return Oe.allowSetValue=!0,Re.next=7,Qs(z.value,Oe.rules);case 7:return Oe.resultList=Re.sent,Oe.errorList=Oe.resultList.filter(function(Ee){return Ee.result!==!0}).map(function(Ee){return Object.keys(Ee).forEach(function(ge){if(!Ee.message&&M.value[ge]){var Q=H5(M.value[ge]),te=Be(e.label)?e.label:e.name;Ee.message=Q({name:te,validate:Ee[ge]})}}),Ee}),Oe.successList=Oe.resultList.filter(function(Ee){return Ee.result===!0&&Ee.message&&Ee.type==="success"}),Re.abrupt("return",Oe);case 11:case"end":return Re.stop()}},ue)}));return function(ie){return re.apply(this,arguments)}}(),U=function(){var re=an(dt.mark(function ue(ie,Ce){var Oe,De,Re,Ee,ge,Q;return dt.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return w.value=!0,J.value=Ce,ae.next=4,W(ie);case 4:return Oe=ae.sent,De=Oe.successList,Re=Oe.errorList,Ee=Oe.rules,ge=Oe.resultList,Q=Oe.allowSetValue,Q&&(T.value=De,j.value=Re),Ee.length&&(F.value=Re.length?la.FAIL:la.SUCCESS),P.value&&A(),w.value=!1,ae.abrupt("return",N({},e.name,Re.length===0?!0:ge));case 15:case"end":return ae.stop()}},ue)}));return function(ie,Ce){return re.apply(this,arguments)}}(),H=function(){var re=an(dt.mark(function ue(ie){var Ce,Oe,De;return dt.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,W(ie);case 2:return Ce=Ee.sent,Oe=Ce.errorList,De=Ce.resultList,Ee.abrupt("return",N({},e.name,Oe.length===0?!0:De));case 6:case"end":return Ee.stop()}},ue)}));return function(ie){return re.apply(this,arguments)}}(),L=function(ue){!ue&&!ke(ue)||(ue.length===0&&(j.value=[],F.value=la.SUCCESS),j.value=ue.map(function(ie){return Yu(Yu({},ie),{},{result:!1})}),F.value=la.FAIL)},z=B(function(){return(d==null?void 0:d.data)&&fe(d==null?void 0:d.data,e.name)}),K=G(void 0),Y=_e(e),q=Y.name,X=jt({name:q,resetHandler:A,resetField:k,validate:U,validateOnly:H,setValidateMessage:L});Ae(function(){K.value=Xn(z.value),d==null||d.children.push(X)}),Ft(function(){d&&(d.children=d==null?void 0:d.children.filter(function(re){return re!==X}))}),le(z,an(dt.mark(function re(){return dt.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,U("change");case 2:case"end":return ie.stop()}},re)})),{deep:!0}),le(function(){return[e.name,JSON.stringify(e.rules)].join(",")},function(){U("change")});var J=G(void 0),Z=B(function(){return An(J.value)?J.value:An(e.showErrorMessage)?e.showErrorMessage:d==null?void 0:d.showErrorMessage}),oe=B(function(){return[l.value.formItem,O0(p.value,e.name),N(N({},l.value.formItemWithHelp,se.value),l.value.formItemWithExtra,me.value)]}),se=B(function(){var re=r("help");return re?g("div",{class:l.value.help},[re]):null}),me=B(function(){var re,ue=function(Oe){return g("div",{class:l.value.extra,title:Oe},[Oe])},ie=j.value;return Z.value&&ie!==null&&ie!==void 0&&(re=ie[0])!==null&&re!==void 0&&re.message?ue(ie[0].message):T.value.length?ue(T.value[0].message):null}),Te=B(function(){var re=r("tips");if(!re)return null;var ue=["".concat(p.value,"-tips"),"".concat(f.value,"-tips"),"".concat(f.value,"-is-").concat(e.status||"default")];return g("div",{class:ue},[re])}),Ie=function(){var re=an(dt.mark(function ue(){return dt.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,U("blur");case 2:case"end":return Ce.stop()}},ue)}));return function(){return re.apply(this,arguments)}}();return wt(zs,{handleBlur:Ie}),function(){return g("div",{class:oe.value},[$(),g("div",{class:E.value,style:D.value},[g("div",{class:l.value.controlsContent},[r("default"),x()]),se.value,Te.value,me.value])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var z5={colon:Boolean,data:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:void 0},errorMessage:{type:Object},formControlledComponents:{type:Array},labelAlign:{type:String,default:"right",validator:function(e){return e?["left","right","top"].includes(e):!0}},labelWidth:{type:[String,Number],default:"100px"},layout:{type:String,default:"vertical",validator:function(e){return e?["vertical","inline"].includes(e):!0}},preventSubmitDefault:{type:Boolean,default:!0},requiredMark:{type:Boolean,default:void 0},resetType:{type:String,default:"empty",validator:function(e){return e?["empty","initial"].includes(e):!0}},rules:{type:Object},scrollToFirstError:{type:String,validator:function(e){return e?["","smooth","auto"].includes(e):!0}},showErrorMessage:{type:Boolean,default:!0},statusIcon:{type:[Boolean,Function],default:void 0},submitWithWarningMessage:Boolean,onReset:Function,onSubmit:Function,onValidate:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function qg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function W5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var U5=ne({name:"TForm",props:W5({},z5),setup:function(e,n){var a=n.expose,r=xe(),l=_e(e),o=l.disabled;wt("formDisabled",{disabled:o});var i=G(null),u=G([]),c=_e(e),v=c.showErrorMessage,s=c.labelWidth,d=c.labelAlign,f=c.data,p=c.colon,h=c.requiredMark,m=c.rules,b=c.errorMessage,y=c.resetType;wt(Cy,jt({showErrorMessage:v,labelWidth:s,labelAlign:d,data:f,colon:p,requiredMark:h,rules:m,errorMessage:b,resetType:y,children:u,renderContent:r}));var C=ee("form"),O=yy(),_=B(function(){return[O.value.form,N({},"".concat(C.value,"-inline"),e.layout==="inline")]}),$=ee("form-item"),I=function(W){if(An(W))return"";var U=Object.keys(W),H=be(U,1),L=H[0];if(e.scrollToFirstError){var z=O0($.value,L);x(z)}var K=W[L];return ke(K)?K.filter(function(Y){return!Y.result})[0].message:""},x=function(W){var U=i.value.getElementsByClassName(W),H=be(U,1),L=H[0],z=e.scrollToFirstError;z&&L&&L.scrollIntoView({behavior:z})},S=function(W,U){return!U||!ke(U)?!0:U.indexOf("".concat(W))!==-1},E=function(W){var U=W.reduce(function(H,L){return Object.assign(H||{},L)},{});return Object.keys(U).forEach(function(H){U[H]===!0&&delete U[H]}),Ql(U)?!0:U},D=function(){var V=an(dt.mark(function W(U){var H,L,z,K,Y,q,X,J,Z,oe;return dt.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return L=U||{},z=L.fields,K=L.trigger,Y=K===void 0?"all":K,q=L.showErrorMessage,X=u.value.filter(function(Te){return pe(Te.validate)&&S(String(Te.name),z)}).map(function(Te){return Te.validate(Y,q)}),me.next=4,Promise.all(X);case 4:return J=me.sent,Z=E(J),oe=I(Z),(H=e.onValidate)===null||H===void 0||H.call(e,{validateResult:Z,firstError:oe}),me.abrupt("return",Z);case 9:case"end":return me.stop()}},W)}));return function(U){return V.apply(this,arguments)}}(),j=function(){var V=an(dt.mark(function W(U){var H,L,z,K,Y,q;return dt.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return H=U||{},L=H.fields,z=H.trigger,K=z===void 0?"all":z,Y=u.value.filter(function(Z){return pe(Z.validateOnly)&&S(String(Z.name),L)}).map(function(Z){return Z.validateOnly(K)}),J.next=4,Promise.all(Y);case 4:return q=J.sent,J.abrupt("return",E(q));case 6:case"end":return J.stop()}},W)}));return function(U){return V.apply(this,arguments)}}(),T=G(),F=function(W){e.preventSubmitDefault&&W&&(W.preventDefault(),W.stopPropagation()),D(T.value).then(function(U){var H;(H=e.onSubmit)===null||H===void 0||H.call(e,{validateResult:U,firstError:I(U),e:W})}),T.value=void 0},w=function(){var V=an(dt.mark(function W(U){return dt.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:T.value=U,II(i.value);case 2:case"end":return L.stop()}},W)}));return function(U){return V.apply(this,arguments)}}(),P=G(),A=function(W){var U;e.preventSubmitDefault&&W&&(W.preventDefault(),W.stopPropagation()),u.value.filter(function(H){var L;return pe(H.resetField)&&S(String(H.name),(L=P.value)===null||L===void 0?void 0:L.fields)}).forEach(function(H){var L;return H.resetField((L=P.value)===null||L===void 0?void 0:L.type)}),P.value=void 0,(U=e.onReset)===null||U===void 0||U.call(e,{e:W})},R=function(W){P.value=W,i.value.reset()},k=function(W){u.value.forEach(function(U){pe(U.resetHandler)&&S(String(U.name),W)&&U.resetHandler()})},M=function(W){var U=Object.keys(W);if(U.length){var H=u.value.filter(function(L){return pe(L.setValidateMessage)&&U.includes("".concat(L.name))}).map(function(L){return L.setValidateMessage(W[L.name])});Promise.all(H)}};return a({validate:D,submit:w,reset:R,clearValidate:k,setValidateMessage:M,validateOnly:j}),function(){return g("form",{ref:i,class:_.value,onSubmit:function(W){return F(W)},onReset:function(W){return A(W)}},[r("default")])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Q9=ye(U5),e7=ye(K5);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var _0={allowUncheck:Boolean,checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},label:{type:[String,Function]},name:{type:String,default:""},readonly:Boolean,value:{type:[String,Number,Boolean],default:void 0},onChange:Function,onClick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var S0=Symbol("RadioGroupProvide"),x0=Symbol("RadioButtonProvide");/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Xg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Y5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function G5(t){var e={};return Object.keys(t).forEach(function(n){Xt(t[n])||(e[n]=t[n])}),e}var ev=ne({name:"TRadio",inheritAttrs:!1,props:Y5({},_0),setup:function(e,n){var a=n.attrs,r=G(),l=_e(e),o=l.checked,i=l.modelValue,u=ht(o,i,e.defaultChecked,e.onChange,"checked"),c=be(u,2),v=c[0],s=c[1],d=B(function(){return f?e.value===f.value:v.value}),f=vt(S0,void 0),p=B(function(){return!!(e.allowUncheck||f!=null&&f.allowUncheck)}),h=function(w){w.stopPropagation()},m=function(w){var P;if(!(O.value||e.readonly)&&((P=e.onClick)===null||P===void 0||P.call(e,{e:w}),!(d.value&&!p.value)))if(f){var A=d.value&&p.value?void 0:e.value;f.setValue(A,{e:w})}else{var R=p.value?!d.value:!0;s(R,{e:w})}},b=B(function(){return G5({focus:a.onFocus,blur:a.onBlur,keydown:a.onKeydown,keyup:a.onKeyup,keypresss:a.onKeypresss})}),y=B(function(){var F=[].concat(ce(Object.keys(b.value)),["input","change"]).map(function(w){return"on".concat(w[0].toUpperCase()).concat(w.slice(1))});return Ks(a,F)}),C=B(function(){return f==null?void 0:f.disabled}),O=Jt(C),_=B(function(){return{name:f?f.name:e.name,checked:d.value,disabled:O.value,readonly:e.readonly,value:e.value}}),$=ft(),I=$.STATUS,x=vt(x0,void 0),S=ee("radio-button"),E=ee("radio"),D=B(function(){return x?S.value:E.value}),j=B(function(){return["".concat(D.value),N(N({},I.value.checked,_.value.checked),I.value.disabled,_.value.disabled)]}),T=_t();return function(){return g("label",ve({ref:r,class:j.value},y.value,{tabindex:O.value?void 0:"0",onClick:m}),[g("input",ve({type:"radio",class:"".concat(D.value,"__former")},b.value,_.value,{onClick:h,tabindex:"-1","data-value":Be(e.value)?"'".concat(e.value,"'"):e.value,"data-allow-uncheck":p.value||void 0}),null),g("span",{class:"".concat(D.value,"__input")},null),g("span",{class:"".concat(D.value,"__label")},[T("default","label")])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var q5=Ra,X5=Ve,J5="Expected a function";function Z5(t,e,n){var a=!0,r=!0;if(typeof t!="function")throw new TypeError(J5);return X5(n)&&(a="leading"in n?!!n.leading:a,r="trailing"in n?!!n.trailing:r),q5(t,e,{leading:a,maxWait:e,trailing:r})}var P0=Z5;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Q5={allowUncheck:Boolean,disabled:Boolean,name:{type:String,default:""},options:{type:Array},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean]},variant:{type:String,default:"outline",validator:function(e){return e?["outline","primary-filled","default-filled"].includes(e):!0}},onChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function eW(t,e){var n=function(r){var l=Ti.test(r.key)||Ti.test(r.code);if(l){r.preventDefault();var o=r.target.querySelector("input"),i=o.dataset;if(o.checked&&i.allowUncheck)e(void 0,{e:r});else{var u=isNaN(Number(i.value))?i.value:Number(i.value);u=Be(u)&&{true:!0,false:!1}[u]||u,u=Be(u)&&u[0]==="'"?u.replace(/'/g,""):u,e(u,{e:r})}}};Ae(function(){ot(t.value,"keydown",n)}),is(function(){Xe(t.value,"keydown",n)})}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var tW=["window"],nW=typeof window<"u"?window:void 0;function aW(t){var e,n=iw(t);return(e=n==null?void 0:n.$el)!==null&&e!==void 0?e:n}function rW(t){return uw()?(cw(t),!0):!1}function lW(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.window,r=a===void 0?nW:a,l=cr(n,tW),o,i=r&&"MutationObserver"in r,u=function(){o&&(o.disconnect(),o=void 0)},c=le(function(){return aW(t)},function(s){u(),i&&r&&s&&(o=new MutationObserver(e),o.observe(s,l))},{immediate:!0}),v=function(){u(),c()};return rW(v),{isSupported:i,stop:v}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Jg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Gu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var oW=ne({name:"TRadioGroup",props:Gu({},Q5),setup:function(e){var n=_e(e),a=n.value,r=n.modelValue,l=ht(a,r,e.defaultValue,e.onChange),o=be(l,2),i=o[0],u=o[1],c=G(),v=ee("radio-button"),s=ft(),d=s.STATUS,f=s.SIZE;eW(c,u);var p=B(function(){return".".concat(v.value,".").concat(d.value.checked)}),h=G({width:"0px",height:"0px",left:"0px",top:"0px","transition-property":"none"}),m=function(){var j=document.createElement("div");j.setAttribute("style","position: absolute; visibility: hidden;"),j.appendChild(c.value.cloneNode(!0)),document.body.appendChild(j);var T=j.querySelector(p.value),F=T.offsetWidth,w=T.offsetHeight,P=T.offsetLeft,A=T.offsetTop;h.value=Gu(Gu({},h.value),{},{width:"".concat(F,"px"),height:"".concat(w,"px"),left:"".concat(P,"px"),top:"".concat(A,"px")}),document.body.removeChild(j)},b=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(e.variant!=="outline"){var T=c.value.querySelector(p.value),F=j?"none":"all";if(!T){h.value={"transition-property":F,width:"0px",height:"9px",left:"0px",top:"0px"};return}var w=T.offsetWidth,P=T.offsetHeight,A=T.offsetLeft,R=T.offsetTop;w?h.value={"transition-property":F,width:"".concat(w,"px"),height:"".concat(P,"px"),left:"".concat(A,"px"),top:"".concat(R,"px")}:m()}},y;le(i,an(dt.mark(function D(){return dt.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,Je();case 2:b();case 3:case"end":return T.stop()}},D)}))),Ae(function(){b(!0),bo(c,P0(an(dt.mark(function j(){return dt.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,Je();case 2:b();case 3:case"end":return F.stop()}},j)})),300));var D=c.value.querySelector("".concat(p.value," .").concat(v.value,"__label"));D&&(y=lW(D,function(j){j.forEach(function(T){T.type==="characterData"&&b()})},{attributes:!0,childList:!0,characterData:!0,subtree:!0}))}),ba(function(){var D;(D=y)===null||D===void 0||D.stop()});var C=_e(e),O=C.name,_=C.disabled;wt(S0,jt({name:O,disabled:_,value:i,allowUncheck:e.allowUncheck,setValue:u}));var $=ee("radio-group"),I=ka(),x=function(){if(e.variant.includes("filled")&&!eo(i.value))return g("div",{style:h.value,class:"".concat($.value,"__bg-block")},null)},S=function(){var j;return(j=e.options)===null||j===void 0?void 0:j.map(function(T){var F=T;return(ct(T)||Be(T))&&(F={value:T,label:T.toString()}),g(ev,{key:"radio-group-options-".concat(F.value,"-").concat(Math.random()),name:e.name,checked:i.value===F.value,disabled:"disabled"in F?F.disabled:e.disabled,value:F.value},{default:function(){return[pe(F.label)?F.label(He):F.label]}})})},E=B(function(){return["".concat($.value),f.value[e.size],N(N(N({},"".concat($.value,"__outline"),e.variant==="outline"),"".concat($.value,"--filled"),e.variant.includes("filled")),"".concat($.value,"--primary-filled"),e.variant==="primary-filled")]});return function(){return g("div",{ref:c,class:E.value},[I("default")||S(),x()])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Zg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function qu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function iW(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var uW=ne({name:"TRadioButton",inheritAttrs:!1,props:qu({},_0),setup:function(e,n){var a=n.attrs;wt(x0,jt({}));var r=B(function(){var o=qu(qu({},e),Ks(a,Object.keys(a).filter(function(i){return i.startsWith("on")})));return o}),l=_t();return function(){var o;return g(ev,r.value,iW(o=l("default","label"))?o:{default:function(){return[o]}})}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var cW=ye(ev),E0=ye(oW),sW=ye(uW);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var vW={customValue:{type:Array},disabled:{type:Boolean,default:void 0},label:{type:[Array,Function],default:function(){return[]}},loading:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean]},onChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Qg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function dW(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qg(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qg(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var fW=ne({name:"TSwitch",props:dW({},vW),setup:function(e,n){var a=n.slots,r=du(),l=ee("switch"),o=ft(),i=o.STATUS,u=o.SIZE,c=_e(e),v=c.value,s=c.modelValue,d=ht(v,s,e.defaultValue,e.onChange),f=be(d,2),p=f[0],h=f[1],m=B(function(){return e.customValue&&e.customValue.length>0?e.customValue[0]:!0}),b=B(function(){return e.customValue&&e.customValue.length>1?e.customValue[1]:!1});function y(x){var S=p.value===m.value?b.value:m.value;h(S,{e:x})}function C(x){r.value||e.loading||y(x)}var O=B(function(){return["".concat(l.value),u.value[e.size],N(N(N({},i.value.disabled,r.value),i.value.loading,e.loading),i.value.checked,p.value===m.value||e.modelValue===m.value)]}),_=B(function(){return["".concat(l.value,"__handle"),N(N({},i.value.disabled,r.value),i.value.loading,e.loading)]}),$=B(function(){return["".concat(l.value,"__content"),u.value[e.size],N({},i.value.disabled,r.value)]});le(p,function(x){if(e.customValue&&e.customValue.length&&!e.customValue.includes(x))throw new Error("value is not in ".concat(JSON.stringify(e.customValue)))},{immediate:!0});var I=B(function(){if(pe(e.label))return e.label(He,{value:p.value});if(Be(e.label))return e.label;if(ke(e.label)&&e.label.length){var x=p.value===m.value?e.label[0]:e.label[1];if(!x)return;if(Be(x))return x;if(pe(x))return x(He)}return a.label?a.label({value:p.value}):null});return function(){var x,S;return e.loading?S=g(bn,{size:"small"},null):I.value&&(x=I.value),g("div",{class:O.value,disabled:r.value,onClick:C},[g("span",{class:_.value},[S]),g("div",{class:$.value},[x])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var t7=ye(fW);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var wn,gW=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important
`,hW=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function mW(t){if(!(typeof window>"u")){var e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing")||e.getPropertyValue("-moz-box-sizing")||e.getPropertyValue("-webkit-box-sizing"),a=parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),r=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width")),l=hW.map(function(o){return"".concat(o,":").concat(e.getPropertyValue(o))}).join(";");return{sizingStyle:l,paddingSize:a,borderSize:r,boxSizing:n}}}function eh(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;wn||(wn=document.createElement("textarea"),document.body.appendChild(wn));var a=mW(t),r=a.paddingSize,l=a.borderSize,o=a.boxSizing,i=a.sizingStyle;wn.setAttribute("style","".concat(i,";").concat(gW)),wn.value=t.value||t.placeholder||"";var u=wn.scrollHeight,c={};o==="border-box"?u+=l:o==="content-box"&&(u-=r),wn.value="";var v=wn.scrollHeight-r;if(e!==null){var s=v*e;o==="border-box"&&(s=s+r+l),u=Math.max(s,u),c.minHeight="".concat(s,"px")}if(n!==null){var d=v*n;o==="border-box"&&(d=d+r+l),u=Math.min(d,u)}return c.height="".concat(u,"px"),wn.parentNode&&wn.parentNode.removeChild(wn),wn=null,c}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var pW={autofocus:Boolean,autosize:{type:[Boolean,Object],default:!1},disabled:Boolean,maxcharacter:{type:Number},maxlength:{type:[Number,String]},name:{type:String,default:""},placeholder:{type:String,default:void 0},readonly:Boolean,status:{type:String,validator:function(e){return["default","success","warning","error"].includes(e)}},tips:{type:[String,Function]},value:{type:[String,Number]},modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function th(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function bW(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?th(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):th(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function nh(t){var e={};return Object.keys(t).forEach(function(n){Xt(t[n])||(e[n]=t[n])}),e}var yW=ne({name:"TTextarea",inheritAttrs:!1,props:bW({},pW),setup:function(e,n){var a=n.attrs,r=n.expose,l=ee(),o=ee("textarea"),i=B(function(){return"".concat(o.value,"__tips")}),u=B(function(){return"".concat(o.value,"__limit")}),c=_e(e),v=c.value,s=c.modelValue,d=ht(v,s,e.defaultValue,e.onChange),f=be(d,2),p=f[0],h=f[1],m=Jt(),b=G({}),y=G(),C=G(!1),O=G(!1),_=function(){var L;return(L=y.value)===null||L===void 0?void 0:L.focus()},$=function(){var L;return(L=y.value)===null||L===void 0?void 0:L.blur()},I=function(){var L;if(e.autosize===!0)b.value=eh(y.value);else if(e.autosize&&qe(e.autosize)==="object"){var z=e.autosize,K=z.minRows,Y=z.maxRows;b.value=eh(y.value,K,Y)}else a.rows?b.value={height:"auto",minHeight:"auto"}:a.style&&(L=y.value)!==null&&L!==void 0&&(L=L.style)!==null&&L!==void 0&&L.height&&(b.value={height:y.value.style.height})},x=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=y.value,K=String(L);z&&z.value!==K&&(z.value=K,p.value=K)},S=function(L){var z=L.target,K=z.value;if(e.maxcharacter&&e.maxcharacter>=0){var Y=Vl(K,e.maxcharacter);K=qe(Y)==="object"&&Y.characters}!O.value&&h(K,{e:L}),Je(function(){return x(K)}),I()},E=function(L){S(L)},D=function(){O.value=!0},j=function(L){O.value=!1,S(L)},T=function(L,z){var K;if(!m.value){var Y="on".concat(L[0].toUpperCase()).concat(L.slice(1));(K=e[Y])===null||K===void 0||K.call(e,p.value,{e:z})}},F=function(L){T("keydown",L)},w=function(L){T("keyup",L)},P=function(L){T("keypress",L)},A=function(L){var z;I(),!m.value&&(C.value=!0,(z=e.onFocus)===null||z===void 0||z.call(e,p.value,{e:L}))},R=vt(zs,void 0),k=function(L){var z;I(),C.value=!1,(z=e.onBlur)===null||z===void 0||z.call(e,p.value,{e:L}),R==null||R.handleBlur()},M=B(function(){return[o.value,N(N({},"".concat(l.value,"-is-disabled"),m.value),"".concat(l.value,"-is-readonly"),e.readonly)]}),V=B(function(){return nh({autofocus:e.autofocus,disabled:m.value,readonly:e.readonly,placeholder:e.placeholder,maxlength:e.maxlength||void 0,name:e.name||void 0})}),W=B(function(){var H=Vl(String(p.value||""));return qe(H)==="object"?H.length:H});le(function(){return p.value},function(){return I()}),le(y,function(H){H&&I()}),le(function(){return e.autofocus},function(H){H&&y.value.focus()}),le(b,function(H){var L=a.style;Xl(y.value,_s(L,H))}),le(p,function(){Je(function(){return I()})}),le(function(){return e.autosize},I,{deep:!0}),r({focus:_,blur:$}),Ae(function(){I()});var U=xe();return function(){var H,L=nh({onFocus:A,onBlur:k,onKeydown:F,onKeyup:w,onKeypress:P}),z=ft(),K=z.STATUS,Y=B(function(){return["".concat(o.value,"__inner"),N(N(N(N({},"".concat(l.value,"-is-").concat(e.status),e.status),K.value.disabled,m.value),K.value.focused,C.value),"".concat(l.value,"-resize-none"),qe(e.autosize)==="object"),"narrow-scrollbar"]}),q=U("tips"),X=q&&g("div",{class:"".concat(i.value," ").concat(o.value,"__tips--").concat(e.status||"normal")},[q]),J=e.maxcharacter&&g("span",{class:u.value},["".concat(W.value,"/").concat(e.maxcharacter)])||!e.maxcharacter&&e.maxlength&&g("span",{class:u.value},["".concat(p.value?(H=String(p.value))===null||H===void 0?void 0:H.length:0,"/").concat(e.maxlength)]);return g("div",ve({class:M.value},Ks(a,["style"])),[g("textarea",ve({onInput:E,onCompositionstart:D,onCompositionend:j,ref:y,value:p.value,class:Y.value},L,V.value),null),X||J?g("div",{class:["".concat(o.value,"__info_wrapper"),N({},"".concat(o.value,"__info_wrapper_align"),!X)]},[X,J]):null])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var n7=ye(yW);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var CW=ru,wW=Ky,OW=1,_W=2;function SW(t,e,n,a){var r=n.length,l=r,o=!a;if(t==null)return!l;for(t=Object(t);r--;){var i=n[r];if(o&&i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++r<l;){i=n[r];var u=i[0],c=t[u],v=i[1];if(o&&i[2]){if(c===void 0&&!(u in t))return!1}else{var s=new CW;if(a)var d=a(c,v,u,t,e,s);if(!(d===void 0?wW(v,c,OW|_W,a,s):d))return!1}}return!0}var xW=SW,PW=Ve;function EW(t){return t===t&&!PW(t)}var T0=EW,TW=T0,DW=ho;function IW(t){for(var e=DW(t),n=e.length;n--;){var a=e[n],r=t[a];e[n]=[a,r,TW(r)]}return e}var jW=IW;function $W(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var D0=$W,FW=xW,kW=jW,AW=D0;function RW(t){var e=kW(t);return e.length==1&&e[0][2]?AW(e[0][0],e[0][1]):function(n){return n===t||FW(n,t,e)}}var MW=RW,NW=Ky,LW=fe,BW=Py,VW=Vs,HW=T0,KW=D0,zW=gl,WW=1,UW=2;function YW(t,e){return VW(t)&&HW(e)?KW(zW(t),e):function(n){var a=LW(n,t);return a===void 0&&a===e?BW(n,t):NW(e,a,WW|UW)}}var GW=YW,qW=gu;function XW(t){return function(e){return qW(e,t)}}var JW=XW,ZW=r0,QW=JW,eU=Vs,tU=gl;function nU(t){return eU(t)?ZW(tU(t)):QW(t)}var aU=nU,rU=MW,lU=GW,oU=ys,iU=ke,uU=aU;function cU(t){return typeof t=="function"?t:t==null?oU:qe(t)=="object"?iU(t)?lU(t[0],t[1]):rU(t):uU(t)}var sU=cU;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var I0=function(e,n){var a,r,l=G([]),o=G((((a=n.value.data)===null||a===void 0?void 0:a.length)||0)*(((r=n.value.scroll)===null||r===void 0?void 0:r.rowHeight)||50)),i=G(0),u=G([]),c=G([]),v=G(0),s=G(0),d=G([0,15]),f=B(function(){var x,S=n.value.scroll;return S?{bufferSize:S.bufferSize||10,isFixedRowHeight:(x=S.isFixedRowHeight)!==null&&x!==void 0?x:!1,rowHeight:S.rowHeight||47,threshold:S.threshold||100,type:S.type}:{}}),p=B(function(){var x=n.value.data;return f.value.type==="virtual"&&f.value.threshold<x.length}),h=function(S,E){for(var D=[],j=n.value.data,T=0,F=j.length;T<F;T++)D[T]=(D[T-1]||E)+(S[T]||f.value.rowHeight);return D},m=B(function(){return f.value.bufferSize*3}),b=function(S,E){for(var D=-1,j=0,T=S.length;j<T;j++)if(S[j]>E){D=j;break}if(!(D<0)){var F=Math.min(D,S.length-m.value),w=F+m.value;if(d.value.join()!==[F,w].join()&&F>=0){l.value=n.value.data.slice(F,w);var P=S[F-1],A=P>0?P-v.value:0;o.value=A,d.value=[F,w]}}},y=function(S){var E;if(!(!p.value||!S||f.value.isFixedRowHeight||!e.value)){var D=(E=S.ref.value)===null||E===void 0?void 0:E.getBoundingClientRect().height,j=S.data.VIRTUAL_SCROLL_INDEX,T=c.value;if(T[j]!==D){T[j]=D;var F=h(T,v.value);u.value=F;var w=F.length-1;i.value=F[w]-v.value,b(F,e.value.scrollTop)}}},C=function(){p.value&&b(u.value,e.value.scrollTop)},O=function(S){var E=be(S,1),D=E[0].contentRect,j=16;Math.abs(D.width-s.value)>j&&(e.value.scrollTop=0,o.value=0),s.value=D.width,v.value=D.height},_=function(S){S.forEach(function(E,D){E.VIRTUAL_SCROLL_INDEX=D})},$=function(S){var E=S.index,D=S.top,j=D===void 0?0:D,T=S.behavior,F=u.value[E]-v.value-j;e.value.scrollTo({top:F,behavior:T||"auto"})},I=function(S){if($(S),!f.value.isFixedRowHeight)var E,D=(E=S.time)!==null&&E!==void 0?E:60,j=setTimeout(function(){$(S),clearTimeout(j)},D)};return bo(p.value?e:void 0,O),le(function(){return[[].concat(ce(n.value.data),[f.value,p.value,e.value])]},function(){if(p.value){var x=n.value.data;_(x);var S=d.value[0];l.value=x.slice(S,S+m.value);var E=setTimeout(function(){if(e.value){v.value=e.value.getBoundingClientRect().height;var D=h(c.value||[],v.value);u.value=D}clearTimeout(E)},0)}},{immediate:!0}),{visibleData:l,translateY:o,scrollHeight:i,isVirtualScroll:p,handleScroll:C,handleRowMounted:y,scrollToElement:I}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var bl={clearable:Boolean,closeBtn:{type:[String,Boolean,Function],default:!0},colorModes:{type:Array,default:function(){return["monochrome","linear-gradient"]}},disabled:Boolean,enableAlpha:Boolean,enableMultipleGradient:{type:Boolean,default:!0},format:{type:String,default:"RGB",validator:function(e){return e?["RGB","RGBA","HSL","HSLA","HSB","HSV","HSVA","HEX","CMYK","CSS"].includes(e):!0}},inputProps:{type:Object},multiple:Boolean,popupProps:{type:Object},recentColors:{type:Array,default:void 0},defaultRecentColors:{type:Array,default:function(){return[]}},selectInputProps:{type:Object},showPrimaryColorPreview:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},swatchColors:{type:Array},value:{type:String,default:void 0},modelValue:{type:String,default:void 0},defaultValue:{type:String,default:""},onChange:Function,onPaletteBarChange:Function,onRecentColorsChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var ah=100,Xu={monochrome:"单色","linear-gradient":"渐变"},vU="#001F97",rh="linear-gradient(90deg, rgba(241,29,0,1) 0%, rgba(73,106,220,1) 100%);",dU=["#ECF2FE","#D4E3FC","#BBD3FB","#96BBF8","#699EF5","#4787F0","#266FE8","#0052D9","#0034B5","#001F97","#FDECEE","#F9D7D9","#F8B9BE","#F78D94","#F36D78","#E34D59","#C9353F","#B11F26","#951114","#680506","#FEF3E6","#F9E0C7","#F7C797","#F2995F","#ED7B2F","#D35A21","#BA431B","#9E3610","#842B0B","#5A1907","#E8F8F2","#BCEBDC","#85DBBE","#48C79C","#00A870","#078D5C","#067945","#056334","#044F2A","#033017"],lh=230,oh=168,ih=186,Ju=176;/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var fU=["HEX","RGB","HSL","HSV","CMYK","CSS"];/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var gU="color-picker",Bn=function(e){var n=ee(gU);return B(function(){return e?"".concat(n.value,"-").concat(e):n.value})};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function uh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ch(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function hU(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var mU=ne({name:"PanelHeader",props:ch(ch({},bl),{},{mode:{type:String,default:"color"},togglePopup:{type:Function},onModeChange:{type:Function,default:function(){return function(){}}}}),setup:function(e){var n=Bn(),a=G(e.mode),r=function(o){return e.onModeChange(o)};return le(function(){return e.mode},function(l){return a.value=l}),{baseClassName:n,modeValue:a,handleModeChange:r}},render:function(){var e,n,a,r=this;if(((n=this.colorModes)===null||n===void 0?void 0:n.length)===1)return null;var l=this.baseClassName;return g("div",{class:"".concat(l,"__head")},[g("div",{class:"".concat(l,"__mode")},[((a=this.colorModes)===null||a===void 0?void 0:a.length)===1?Xu[this.colorModes[0]]:g(E0,{variant:"default-filled",size:"small",modelValue:r.modeValue,"onUpdate:modelValue":function(i){return r.modeValue=i},onChange:this.handleModeChange},hU(e=Object.keys(Xu).map(function(o){return g(sW,{key:o,value:o},{default:function(){return[Xu[o]]}})}))?e:{default:function(){return[e]}})])])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var pU=function(e,n,a){var r=0,l=0,o=0,i=0,u=parseInt("".concat(e).replace(/\s/g,""),10),c=parseInt("".concat(n).replace(/\s/g,""),10),v=parseInt("".concat(a).replace(/\s/g,""),10);if(u===0&&c===0&&v===0)return i=1,[0,0,0,1];r=1-u/255,l=1-c/255,o=1-v/255;var s=Math.min(r,Math.min(l,o));return r=(r-s)/(1-s),l=(l-s)/(1-s),o=(o-s)/(1-s),i=s,[r,l,o,i]},bU=function(e,n,a,r){var l=e/100,o=n/100,i=a/100,u=r/100;l=l*(1-u)+u,o=o*(1-u)+u,i=i*(1-u)+u;var c=1-l,v=1-o,s=1-i;return c=Math.round(255*c),v=Math.round(255*v),s=Math.round(255*s),{r:c,g:v,b:s}},yU=/cmyk\((\d+%?),(\d+%?),(\d+%?),(\d+%?)\)/,No=function(e){return Math.max(0,Math.min(255,parseInt(e,10)))},CU=function(e){if(/cmyk/i.test(e)){var n=e.replace(/\s/g,""),a=n.match(yU),r=No(a[1]),l=No(a[2]),o=No(a[3]),i=No(a[4]),u=bU(r,l,o,i),c=u.r,v=u.g,s=u.b;return"rgb(".concat(c,", ").concat(v,", ").concat(s,")")}return e};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ki(t){"@babel/helpers - typeof";return ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ki(t)}var wU=/^\s+/,OU=/\s+$/;function Pe(t,e){if(t=t||"",e=e||{},t instanceof Pe)return t;if(!(this instanceof Pe))return new Pe(t,e);var n=_U(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.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._ok=n.ok}Pe.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),n,a,r,l,o,i;return n=e.r/255,a=e.g/255,r=e.b/255,n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),.2126*l+.7152*o+.0722*i},setAlpha:function(e){return this._a=j0(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=vh(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=vh(this._r,this._g,this._b),n=Math.round(e.h*360),a=Math.round(e.s*100),r=Math.round(e.v*100);return this._a==1?"hsv("+n+", "+a+"%, "+r+"%)":"hsva("+n+", "+a+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=sh(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=sh(this._r,this._g,this._b),n=Math.round(e.h*360),a=Math.round(e.s*100),r=Math.round(e.l*100);return this._a==1?"hsl("+n+", "+a+"%, "+r+"%)":"hsla("+n+", "+a+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return dh(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return EU(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(xt(this._r,255)*100)+"%",g:Math.round(xt(this._g,255)*100)+"%",b:Math.round(xt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(xt(this._r,255)*100)+"%, "+Math.round(xt(this._g,255)*100)+"%, "+Math.round(xt(this._b,255)*100)+"%)":"rgba("+Math.round(xt(this._r,255)*100)+"%, "+Math.round(xt(this._g,255)*100)+"%, "+Math.round(xt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:LU[dh(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+fh(this._r,this._g,this._b,this._a),a=n,r=this._gradientType?"GradientType = 1, ":"";if(e){var l=Pe(e);a="#"+fh(l._r,l._g,l._b,l._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+n+",endColorstr="+a+")"},toString:function(e){var n=!!e;e=e||this._format;var a=!1,r=this._a<1&&this._a>=0,l=!n&&r&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return l?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(a=this.toRgbString()),e==="prgb"&&(a=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(a=this.toHexString()),e==="hex3"&&(a=this.toHexString(!0)),e==="hex4"&&(a=this.toHex8String(!0)),e==="hex8"&&(a=this.toHex8String()),e==="name"&&(a=this.toName()),e==="hsl"&&(a=this.toHslString()),e==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},clone:function(){return Pe(this.toString())},_applyModification:function(e,n){var a=e.apply(null,[this].concat([].slice.call(n)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(jU,arguments)},brighten:function(){return this._applyModification($U,arguments)},darken:function(){return this._applyModification(FU,arguments)},desaturate:function(){return this._applyModification(TU,arguments)},saturate:function(){return this._applyModification(DU,arguments)},greyscale:function(){return this._applyModification(IU,arguments)},spin:function(){return this._applyModification(kU,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(MU,arguments)},complement:function(){return this._applyCombination(AU,arguments)},monochromatic:function(){return this._applyCombination(NU,arguments)},splitcomplement:function(){return this._applyCombination(RU,arguments)},triad:function(){return this._applyCombination(gh,[3])},tetrad:function(){return this._applyCombination(gh,[4])}};Pe.fromRatio=function(t,e){if(ki(t)=="object"){var n={};for(var a in t)t.hasOwnProperty(a)&&(a==="a"?n[a]=t[a]:n[a]=jl(t[a]));t=n}return Pe(t,e)};function _U(t){var e={r:0,g:0,b:0},n=1,a=null,r=null,l=null,o=!1,i=!1;return typeof t=="string"&&(t=KU(t)),ki(t)=="object"&&(aa(t.r)&&aa(t.g)&&aa(t.b)?(e=SU(t.r,t.g,t.b),o=!0,i=String(t.r).substr(-1)==="%"?"prgb":"rgb"):aa(t.h)&&aa(t.s)&&aa(t.v)?(a=jl(t.s),r=jl(t.v),e=PU(t.h,a,r),o=!0,i="hsv"):aa(t.h)&&aa(t.s)&&aa(t.l)&&(a=jl(t.s),l=jl(t.l),e=xU(t.h,a,l),o=!0,i="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=j0(n),{ok:o,format:t.format||i,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function SU(t,e,n){return{r:xt(t,255)*255,g:xt(e,255)*255,b:xt(n,255)*255}}function sh(t,e,n){t=xt(t,255),e=xt(e,255),n=xt(n,255);var a=Math.max(t,e,n),r=Math.min(t,e,n),l,o,i=(a+r)/2;if(a==r)l=o=0;else{var u=a-r;switch(o=i>.5?u/(2-a-r):u/(a+r),a){case t:l=(e-n)/u+(e<n?6:0);break;case e:l=(n-t)/u+2;break;case n:l=(t-e)/u+4;break}l/=6}return{h:l,s:o,l:i}}function xU(t,e,n){var a,r,l;t=xt(t,360),e=xt(e,100),n=xt(n,100);function o(c,v,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?c+(v-c)*6*s:s<1/2?v:s<2/3?c+(v-c)*(2/3-s)*6:c}if(e===0)a=r=l=n;else{var i=n<.5?n*(1+e):n+e-n*e,u=2*n-i;a=o(u,i,t+1/3),r=o(u,i,t),l=o(u,i,t-1/3)}return{r:a*255,g:r*255,b:l*255}}function vh(t,e,n){t=xt(t,255),e=xt(e,255),n=xt(n,255);var a=Math.max(t,e,n),r=Math.min(t,e,n),l,o,i=a,u=a-r;if(o=a===0?0:u/a,a==r)l=0;else{switch(a){case t:l=(e-n)/u+(e<n?6:0);break;case e:l=(n-t)/u+2;break;case n:l=(t-e)/u+4;break}l/=6}return{h:l,s:o,v:i}}function PU(t,e,n){t=xt(t,360)*6,e=xt(e,100),n=xt(n,100);var a=Math.floor(t),r=t-a,l=n*(1-e),o=n*(1-r*e),i=n*(1-(1-r)*e),u=a%6,c=[n,o,l,l,i,n][u],v=[i,n,n,o,l,l][u],s=[l,l,i,n,n,o][u];return{r:c*255,g:v*255,b:s*255}}function dh(t,e,n,a){var r=[Rn(Math.round(t).toString(16)),Rn(Math.round(e).toString(16)),Rn(Math.round(n).toString(16))];return a&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function EU(t,e,n,a,r){var l=[Rn(Math.round(t).toString(16)),Rn(Math.round(e).toString(16)),Rn(Math.round(n).toString(16)),Rn($0(a))];return r&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function fh(t,e,n,a){var r=[Rn($0(a)),Rn(Math.round(t).toString(16)),Rn(Math.round(e).toString(16)),Rn(Math.round(n).toString(16))];return r.join("")}Pe.equals=function(t,e){return!t||!e?!1:Pe(t).toRgbString()==Pe(e).toRgbString()};Pe.random=function(){return Pe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function TU(t,e){e=e===0?0:e||10;var n=Pe(t).toHsl();return n.s-=e/100,n.s=_u(n.s),Pe(n)}function DU(t,e){e=e===0?0:e||10;var n=Pe(t).toHsl();return n.s+=e/100,n.s=_u(n.s),Pe(n)}function IU(t){return Pe(t).desaturate(100)}function jU(t,e){e=e===0?0:e||10;var n=Pe(t).toHsl();return n.l+=e/100,n.l=_u(n.l),Pe(n)}function $U(t,e){e=e===0?0:e||10;var n=Pe(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),Pe(n)}function FU(t,e){e=e===0?0:e||10;var n=Pe(t).toHsl();return n.l-=e/100,n.l=_u(n.l),Pe(n)}function kU(t,e){var n=Pe(t).toHsl(),a=(n.h+e)%360;return n.h=a<0?360+a:a,Pe(n)}function AU(t){var e=Pe(t).toHsl();return e.h=(e.h+180)%360,Pe(e)}function gh(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Pe(t).toHsl(),a=[Pe(t)],r=360/e,l=1;l<e;l++)a.push(Pe({h:(n.h+l*r)%360,s:n.s,l:n.l}));return a}function RU(t){var e=Pe(t).toHsl(),n=e.h;return[Pe(t),Pe({h:(n+72)%360,s:e.s,l:e.l}),Pe({h:(n+216)%360,s:e.s,l:e.l})]}function MU(t,e,n){e=e||6,n=n||30;var a=Pe(t).toHsl(),r=360/n,l=[Pe(t)];for(a.h=(a.h-(r*e>>1)+720)%360;--e;)a.h=(a.h+r)%360,l.push(Pe(a));return l}function NU(t,e){e=e||6;for(var n=Pe(t).toHsv(),a=n.h,r=n.s,l=n.v,o=[],i=1/e;e--;)o.push(Pe({h:a,s:r,v:l})),l=(l+i)%1;return o}Pe.mix=function(t,e,n){n=n===0?0:n||50;var a=Pe(t).toRgb(),r=Pe(e).toRgb(),l=n/100,o={r:(r.r-a.r)*l+a.r,g:(r.g-a.g)*l+a.g,b:(r.b-a.b)*l+a.b,a:(r.a-a.a)*l+a.a};return Pe(o)};Pe.readability=function(t,e){var n=Pe(t),a=Pe(e);return(Math.max(n.getLuminance(),a.getLuminance())+.05)/(Math.min(n.getLuminance(),a.getLuminance())+.05)};Pe.isReadable=function(t,e,n){var a=Pe.readability(t,e),r,l;switch(l=!1,r=zU(n),r.level+r.size){case"AAsmall":case"AAAlarge":l=a>=4.5;break;case"AAlarge":l=a>=3;break;case"AAAsmall":l=a>=7;break}return l};Pe.mostReadable=function(t,e,n){var a=null,r=0,l,o,i,u;n=n||{},o=n.includeFallbackColors,i=n.level,u=n.size;for(var c=0;c<e.length;c++)l=Pe.readability(t,e[c]),l>r&&(r=l,a=Pe(e[c]));return Pe.isReadable(t,a,{level:i,size:u})||!o?a:(n.includeFallbackColors=!1,Pe.mostReadable(t,["#fff","#000"],n))};var Yc=Pe.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},LU=Pe.hexNames=BU(Yc);function BU(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function j0(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function xt(t,e){VU(t)&&(t="100%");var n=HU(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function _u(t){return Math.min(1,Math.max(0,t))}function vn(t){return parseInt(t,16)}function VU(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function HU(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Rn(t){return t.length==1?"0"+t:""+t}function jl(t){return t<=1&&(t=t*100+"%"),t}function $0(t){return Math.round(parseFloat(t)*255).toString(16)}function hh(t){return vn(t)/255}var jn=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+a),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+a),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+a),hsva:new RegExp("hsva"+r),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 aa(t){return!!jn.CSS_UNIT.exec(t)}function KU(t){t=t.replace(wU,"").replace(OU,"").toLowerCase();var e=!1;if(Yc[t])t=Yc[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=jn.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=jn.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=jn.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=jn.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=jn.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=jn.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=jn.hex8.exec(t))?{r:vn(n[1]),g:vn(n[2]),b:vn(n[3]),a:hh(n[4]),format:e?"name":"hex8"}:(n=jn.hex6.exec(t))?{r:vn(n[1]),g:vn(n[2]),b:vn(n[3]),format:e?"name":"hex"}:(n=jn.hex4.exec(t))?{r:vn(n[1]+""+n[1]),g:vn(n[2]+""+n[2]),b:vn(n[3]+""+n[3]),a:hh(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=jn.hex3.exec(t))?{r:vn(n[1]+""+n[1]),g:vn(n[2]+""+n[2]),b:vn(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function zU(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}var Cr=function(e,n){for(var a="",r=0;r<e.length;r++)Be(e[r])?a+=e[r]:a+=e[r].source;return new RegExp(a,n)},WU=function(){var e="gi",n=/(?:[+-]?\d*\.?\d+)(?:deg|grad|rad|turn)/,a=/to\s+((?:(?:left|right|top|bottom)(?:\s+(?:top|bottom|left|right))?))/,r=/\s*,\s*/,l=/#(?:[a-f0-9]{6}|[a-f0-9]{3})/,o=/\(\s*(?:\d{1,3}\s*,\s*){2}\d{1,3}\s*\)/,i=/\(\s*(?:\d{1,3}\s*,\s*){2}\d{1,3}\s*,\s*\d*\.?\d+\)/,u=/(?:[+-]?\d*\.?\d+)(?:%|[a-z]+)?/,c=/[_a-z-][_a-z0-9-]*/,v=Cr(["(?:",l,"|","(?:rgb|hsl)",o,"|","(?:rgba|hsla)",i,"|",c,")"],""),s=Cr([v,"(?:\\s+",u,"(?:\\s+",u,")?)?"],""),d=Cr(["(?:",s,r,")*",s],""),f=Cr(["(?:(",n,")|",a,")"],""),p=Cr(["(?:(",f,")",r,")?(",d,")"],e),h=Cr(["\\s*(",v,")","(?:\\s+","(",u,"))?","(?:",r,"\\s*)?"],e);return{gradientSearch:p,colorStopSearch:h}},UU=function(e,n){var a,r,l;e.gradientSearch.lastIndex=0;var o=e.gradientSearch.exec(n);if(!yv(o))for(a={original:o[0],colorStopList:[]},o[1]&&(a.line=o[1]),o[2]&&(a.angle=o[2]),o[3]&&(a.sideCorner=o[3]),e.colorStopSearch.lastIndex=0,r=e.colorStopSearch.exec(o[4]);!yv(r);)l={color:r[1]},r[2]&&(l.position=r[2]),a.colorStopList.push(l),r=e.colorStopSearch.exec(o[4]);return a},YU=WU(),mh=/.*gradient\s*\(((?:\([^)]*\)|[^)(]*)*)\)/gim,F0=function(e){return mh.lastIndex=0,mh.exec(e)},GU={top:0,right:90,bottom:180,left:270,"top left":225,"left top":225,"top right":135,"right top":135,"bottom left":315,"left bottom":315,"bottom right":45,"right bottom":45},Ai=function(e){var n=F0(e);if(!n)return!1;var a={points:[],degree:0},r=UU(YU,n[1]);if(r.original.trim()!==n[1].trim())return!1;var l=r.colorStopList.map(function(i){var u=i.color,c=i.position,v=Object.create(null);return v.color=Pe(u).toRgbString(),v.left=parseFloat(c),v});a.points=l;var o=parseInt(r.angle,10);return Number.isNaN(o)&&(o=GU[r.sideCorner]||90),a.degree=o,a};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Gc;function ph(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function bh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ph(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Rt=Math.round,Zu=function(e){return Pe(e).toRgb()},qU=function(e){return Pe(e).toHsv()},XU=function(e){return Pe(e).toHsl()},Ri=function(e){var n=e.points,a=e.degree,r=n.sort(function(l,o){return l.left-o.left}).map(function(l){return"".concat(l.color," ").concat(Math.round(l.left*100)/100,"%")});return"linear-gradient(".concat(a,"deg,").concat(r.join(","),")")},JU=function(){return(1+Math.random()*4294967295).toString(16)},k0=function(e,n){return{id:JU(),left:e,color:n}},Mn=function(){function t(e){hl(this,t),N(this,"states",{s:100,v:100,h:100,a:1}),N(this,"originColor",void 0),N(this,"isGradient",void 0),N(this,"gradientStates",{colors:[],degree:0,selectedId:null,css:""}),this.update(e)}return ml(t,[{key:"update",value:function(n){if(n!==this.originColor){if(this.isGradient){var a=Pe(n).toHsv();this.states=a,this.updateCurrentGradientColor();return}this.originColor=n,this.isGradient=!1;var r=Ai(n),l=n;if(r){var o,i;this.isGradient=!0;var u=r,c=u.points.map(function(v){return k0(v.left,v.color)});this.gradientStates={colors:c,degree:u.degree,selectedId:((o=c[0])===null||o===void 0?void 0:o.id)||null},this.gradientStates.css=this.linearGradient,l=(i=this.gradientSelectedPoint)===null||i===void 0?void 0:i.color}this.updateStates(l)}}},{key:"saturation",get:function(){return this.states.s},set:function(n){this.states.s=Math.max(0,Math.min(100,n)),this.updateCurrentGradientColor()}},{key:"value",get:function(){return this.states.v},set:function(n){this.states.v=Math.max(0,Math.min(100,n)),this.updateCurrentGradientColor()}},{key:"hue",get:function(){return this.states.h},set:function(n){this.states.h=Math.max(0,Math.min(360,n)),this.updateCurrentGradientColor()}},{key:"alpha",get:function(){return this.states.a},set:function(n){this.states.a=Math.max(0,Math.min(1,Math.round(n*100)/100)),this.updateCurrentGradientColor()}},{key:"rgb",get:function(){var n=Zu(this.states),a=n.r,r=n.g,l=n.b;return"rgb(".concat(Rt(a),", ").concat(Rt(r),", ").concat(Rt(l),")")}},{key:"rgba",get:function(){var n=Zu(this.states),a=n.r,r=n.g,l=n.b,o=n.a;return"rgba(".concat(Rt(a),", ").concat(Rt(r),", ").concat(Rt(l),", ").concat(o,")")}},{key:"hsv",get:function(){var n=this.getHsva(),a=n.h,r=n.s,l=n.v;return"hsv(".concat(a,", ").concat(r,"%, ").concat(l,"%)")}},{key:"hsva",get:function(){var n=this.getHsva(),a=n.h,r=n.s,l=n.v,o=n.a;return"hsva(".concat(a,", ").concat(r,"%, ").concat(l,"%, ").concat(o,")")}},{key:"hsl",get:function(){var n=this.getHsla(),a=n.h,r=n.s,l=n.l;return"hsl(".concat(a,", ").concat(r,"%, ").concat(l,"%)")}},{key:"hsla",get:function(){var n=this.getHsla(),a=n.h,r=n.s,l=n.l,o=n.a;return"hsla(".concat(a,", ").concat(r,"%, ").concat(l,"%, ").concat(o,")")}},{key:"hex",get:function(){return Pe(this.states).toHexString()}},{key:"hex8",get:function(){return Pe(this.states).toHex8String()}},{key:"cmyk",get:function(){var n=this.getCmyk(),a=n.c,r=n.m,l=n.y,o=n.k;return"cmyk(".concat(a,", ").concat(r,", ").concat(l,", ").concat(o,")")}},{key:"css",get:function(){return this.isGradient?this.linearGradient:this.rgba}},{key:"linearGradient",get:function(){var n=this.gradientColors,a=this.gradientDegree;return Ri({points:n,degree:a})}},{key:"gradientColors",get:function(){return this.gradientStates.colors},set:function(n){this.gradientStates.colors=n,this.gradientStates.css=this.linearGradient}},{key:"gradientSelectedId",get:function(){return this.gradientStates.selectedId},set:function(n){var a;n!==this.gradientSelectedId&&(this.gradientStates.selectedId=n,this.updateStates((a=this.gradientSelectedPoint)===null||a===void 0?void 0:a.color))}},{key:"gradientDegree",get:function(){return this.gradientStates.degree},set:function(n){this.gradientStates.degree=Math.max(0,Math.min(360,n)),this.gradientStates.css=this.linearGradient}},{key:"gradientSelectedPoint",get:function(){var n=this.gradientColors,a=this.gradientSelectedId;return n.find(function(r){return r.id===a})}},{key:"getFormatsColorMap",value:function(){return{HEX:this.hex,CMYK:this.cmyk,RGB:this.rgb,RGBA:this.rgba,HSL:this.hsl,HSLA:this.hsla,HSV:this.hsv,HSVA:this.hsva,CSS:this.css,HEX8:this.hex8}}},{key:"updateCurrentGradientColor",value:function(){var n=this.isGradient,a=this.gradientColors,r=this.gradientSelectedId,l=a.length,o=this.gradientSelectedPoint;if(!n||l===0||!o)return!1;var i=a.findIndex(function(c){return c.id===r}),u=bh(bh({},o),{},{color:this.rgba});return a.splice(i,1,u),this.gradientColors=a,this}},{key:"updateStates",value:function(n){var a=Pe(CU(n)),r=a.toHsv();this.states=r}},{key:"getRgba",value:function(){var n=Zu(this.states),a=n.r,r=n.g,l=n.b,o=n.a;return{r:Rt(a),g:Rt(r),b:Rt(l),a:o}}},{key:"getCmyk",value:function(){var n=this.getRgba(),a=n.r,r=n.g,l=n.b,o=pU(a,r,l),i=be(o,4),u=i[0],c=i[1],v=i[2],s=i[3];return{c:Rt(u*100),m:Rt(c*100),y:Rt(v*100),k:Rt(s*100)}}},{key:"getHsva",value:function(){var n=qU(this.states),a=n.h,r=n.s,l=n.v,o=n.a;return a=Rt(a),r=Rt(r*100),l=Rt(l*100),o*=1,{h:a,s:r,v:l,a:o}}},{key:"getHsla",value:function(){var n=XU(this.states),a=n.h,r=n.s,l=n.l,o=n.a;return a=Rt(a),r=Rt(r*100),l=Rt(l*100),o*=1,{h:a,s:r,l,a:o}}},{key:"equals",value:function(n){return Pe.equals(this.rgba,n)}}],[{key:"isValid",value:function(n){return Ai(n)?!0:Pe(n).isValid()}},{key:"hsva2color",value:function(n,a,r,l){return Pe({h:n,s:a,v:r,a:l}).toHsvString()}},{key:"hsla2color",value:function(n,a,r,l){return Pe({h:n,s:a,l:r,a:l}).toHslString()}},{key:"rgba2color",value:function(n,a,r,l){return Pe({r:n,g:a,b:r,a:l}).toHsvString()}},{key:"hex2color",value:function(n,a){var r=Pe(n);return r.setAlpha(a),r.toHexString()}},{key:"object2color",value:function(n,a){if(a==="CMYK"){var r=n.c,l=n.m,o=n.y,i=n.k;return"cmyk(".concat(r,", ").concat(l,", ").concat(o,", ").concat(i,")")}var u=Pe(n,{format:a});return u.toRgbString()}}]),t}();Gc=Mn;N(Mn,"isGradientColor",function(t){return!!F0(t)});N(Mn,"compare",function(t,e){var n=Gc.isGradientColor(t),a=Gc.isGradientColor(e);if(n&&a){var r=Ri(Ai(t)),l=Ri(Ai(e));return r===l}return!n&&!a?Pe.equals(t,e):!1});var ZU=["alpha","css","hex","hex8","hsl","hsla","hsv","hsva","rgb","rgba","saturation","value","isGradient"],yh=function(e){if(!e)return null;var n=Object.create(null);return ZU.forEach(function(a){return n[a]=e[a]}),e.isGradient&&(n.linearGradient=e.linearGradient),n};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Ch(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function wh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ch(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ch(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function Lo(t,e){QU(t,e),e.add(t)}function QU(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ar(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}var e6={start:function(e,n){},drag:function(e,n){},end:function(e,n){}},Oh=new WeakSet,_h=new WeakSet,Sh=new WeakSet,Su=new WeakSet,A0=function(){function t(e,n){hl(this,t),Lo(this,Su),Lo(this,Sh),Lo(this,_h),Lo(this,Oh),N(this,"dragging",!1),N(this,"$el",void 0),N(this,"props",void 0),N(this,"handles",void 0),this.$el=e,this.props=wh(wh({},e6),n),this.handles={start:Ar(this,Oh,t6).bind(this),drag:Ar(this,_h,n6).bind(this),end:Ar(this,Sh,a6).bind(this)},this.$el.addEventListener("mousedown",this.handles.start,!1)}return ml(t,[{key:"destroy",value:function(){this.$el.removeEventListener("mousedown",this.handles.start,!1),window.removeEventListener("mousemove",this.handles.drag,!1),window.removeEventListener("mouseup",this.handles.end,!1),window.removeEventListener("contextmenu",this.handles.end,!1)}}]),t}();function t6(t){this.dragging||(window.addEventListener("mousemove",this.handles.drag,!1),window.addEventListener("mouseup",this.handles.end,!1),window.addEventListener("contextmenu",this.handles.end,!1),this.dragging=!0,this.props.start(Ar(this,Su,tv).call(this,t),t))}function n6(t){this.dragging&&this.props.drag(Ar(this,Su,tv).call(this,t),t)}function a6(t){var e=this;setTimeout(function(){e.dragging=!1,e.props.end(Ar(e,Su,tv).call(e,t),t)},0),window.removeEventListener("mousemove",this.handles.drag,!1),window.removeEventListener("mouseup",this.handles.end,!1),window.removeEventListener("contextmenu",this.handles.end,!1)}function tv(t){var e=this.$el.getBoundingClientRect(),n=t,a=n.clientX-e.left,r=n.clientY-e.top;return{y:Math.min(Math.max(0,r),e.height),x:Math.min(Math.max(0,a),e.width)}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var yo={disabled:Boolean,color:{type:Object},onChange:{type:Function,default:function(){return function(){}}}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function xh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Ph(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var r6=["delete","backspace"],l6=ne({name:"LinearGradient",inheritAttrs:!1,props:Ph(Ph({},yo),{},{enableMultipleGradient:{type:Boolean,default:!0}}),setup:function(e){var n=Bn(),a=ft(),r=a.STATUS,l=r.value,o=G(null),i=jt({left:0,width:Ju}),u=G(!1),c=G(!1),v=G(e.color.gradientDegree),s=G(e.color.gradientSelectedId),d=G(Xn(e.color.gradientColors));le(function(){return e.color.gradientDegree},function(I){return v.value=I}),le(function(){return e.color.gradientSelectedId},function(I){return s.value=I}),le(function(){return e.color.gradientColors},function(I){d.value=Xn(I)},{deep:!0});var f=function(x,S,E){e.disabled||e.onChange({key:x,payload:S,addUsedColor:E})},p=function(x){e.disabled||x===e.color.gradientDegree||(v.value=x,f("degree",x,!0))},h=function(x){e.disabled||(s.value=x,f("selectedId",x))},m=function(x,S){e.disabled||(d.value=x,f("colors",x,S))},b=function(x){var S=d.value.findIndex(function(j){return j.id===s.value});if(S!==-1){var E=d.value[S];x=Math.max(0,Math.min(i.width,x));var D=x/i.width*100;d.value.splice(S,1,{color:E.color,left:D,id:E.id}),m(d.value)}},y=function(x){var S=o.value.getBoundingClientRect();i.left=S.left,i.width=S.width||Ju,!(u.value||e.disabled)&&(c.value=!1,u.value=!0,h(x),o.value.focus(),window.addEventListener("mousemove",C,!1),window.addEventListener("mouseup",O,!1),window.addEventListener("contextmenu",O,!1))},C=function(x){if(!(!u.value||e.disabled)){var S=x.clientX-i.left;c.value=!0,b(S)}},O=function I(){u.value&&(setTimeout(function(){u.value=!1},0),c.value&&(m(d.value,!0),c.value=!1),window.removeEventListener("mousemove",C,!1),window.removeEventListener("mouseup",I,!1),window.removeEventListener("contextmenu",I,!1))},_=function(x){if(!e.disabled){var S=d.value,E=S.findIndex(function(T){return T.id===s.value}),D=S.length;if(r6.includes(x.key.toLocaleLowerCase())&&D>2&&E>=0&&E<=D-1){S.splice(E,1),S[E]||(E=S[E+1]?E+1:S[E-1]?E-1:0);var j=S[E];m(S,!0),h(j==null?void 0:j.id)}}},$=function(x){if(!(e.disabled||!e.enableMultipleGradient)){var S=x.clientX-i.left;S=Math.max(0,Math.min(i.width,S));var E=S/i.width*100,D=k0(E,e.color.rgba);d.value.push(D),m(d.value,!0),h(D.id)}};return Ae(function(){var I=o.value.getBoundingClientRect();i.left=I.left,i.width=I.width||Ju}),Ft(function(){window.removeEventListener("mousemove",C,!1),window.removeEventListener("mouseup",O,!1),window.removeEventListener("contextmenu",O,!1)}),{baseClassName:n,statusClassNames:l,refSlider:o,degree:v,selectedId:s,colors:d,handleDegreeChange:p,handleStart:y,handleMove:C,handleEnd:O,handleKeyup:_,handleThumbBarClick:$}},render:function(){var e=this,n=this.color,a=n.linearGradient,r=n.gradientColors,l=this.colors,o=this.selectedId,i=this.degree,u=this.disabled,c=this.baseClassName,v=this.statusClassNames,s=Ri({points:r,degree:90});return g("div",{class:"".concat(c,"__gradient")},[g("div",{class:"".concat(c,"__gradient-slider")},[g("div",{class:["".concat(c,"__slider"),"".concat(c,"--bg-alpha")],onKeyup:this.handleKeyup,tabindex:0,ref:"refSlider"},[g("ul",{class:"gradient-thumbs",onClick:this.handleThumbBarClick,style:{background:s}},[l.map(function(d){var f="".concat(Math.round(d.left*100)/100,"%");return g("li",{class:["".concat(c,"__thumb"),"gradient-thumbs__item",o===d.id?v.active:""],key:d.id,title:"".concat(d.color," ").concat(f),style:{color:d.color,left:f},onClick:function(h){return h.stopPropagation()},onMousedown:function(){return e.handleStart(d.id)}},[g("span",{class:["gradient-thumbs__item-inner","".concat(c,"--bg-alpha")]},null)])})])])]),g("div",{class:"".concat(c,"__gradient-degree"),title:"".concat(i,"deg")},[g(Ws,{size:"small",theme:"normal",min:0,max:360,step:1,format:function(f){return"".concat(f,"°")},modelValue:e.degree,"onUpdate:modelValue":function(f){return e.degree=f},onBlur:this.handleDegreeChange,onEnter:this.handleDegreeChange,disabled:u},null)]),g("div",{class:["".concat(c,"__gradient-preview"),"".concat(c,"--bg-alpha")]},[g("span",{class:"preview-inner",style:{background:a}},null)])])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Eh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function o6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Eh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Eh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var i6=ne({name:"SaturationPanel",props:o6({},yo),setup:function(e){var n=Bn(),a=G(null),r=G(null),l=G(null),o=jt({width:lh,height:oh}),i=B(function(){var d=e.color,f=d.saturation,p=d.value,h=o.width,m=o.height,b=Math.round((1-p)*m),y=Math.round(f*h);return{color:e.color.rgb,left:"".concat(y,"px"),top:"".concat(b,"px")}}),u=function(f){var p=o.width,h=o.height,m=f.x,b=f.y,y=Math.round(m/p*100),C=Math.round((1-b/h)*100);return{saturation:y,value:C}},c=function(f,p){if(!e.disabled){var h=u(f),m=h.saturation,b=h.value;e.onChange({saturation:m/100,value:b/100,addUsedColor:p})}},v=function(f){e.disabled||Je(function(){c(f,!0)})},s=B(function(){return"hsl(".concat(e.color.hue,", 100%, 50%)")});return Ae(function(){o.width=a.value.offsetWidth||lh,o.height=a.value.offsetHeight||oh,l.value=new A0(a.value,{start:function(){o.width=a.value.offsetWidth,o.height=a.value.offsetHeight},drag:function(f){c(f)},end:v})}),Ft(function(){l.value.destroy()}),{baseClassName:n,refThumb:r,refPanel:a,styles:i,panelBackground:s}},render:function(){var e=this.baseClassName,n=this.styles,a=this.panelBackground;return g("div",{class:["".concat(e,"__saturation")],ref:"refPanel",style:{background:a}},[g("span",{class:["".concat(e,"__thumb")],role:"slider",tabindex:0,ref:"refThumb",style:n},null)])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Th(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Dh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Th(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Th(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var R0=ne({name:"ColorSlider",props:Dh(Dh({},yo),{},{className:{type:String,default:""},value:{type:Number,default:0},maxValue:{type:Number,default:360},railStyle:{type:Object},type:{type:String,default:"hue"}}),setup:function(e){var n=Bn(),a=G(null),r=G(null),l=G(null),o=jt({width:ih}),i=B(function(){var v=o.width;if(v){var s=Math.round(e.value/e.maxValue*v);return{left:"".concat(s,"px"),color:e.color.rgb}}}),u=function(s,d){if(!e.disabled){var f=o.width,p=s.x,h=Math.round(p/f*e.maxValue*100)/100;e.onChange(h,d)}},c=function(s){e.disabled||u(s,!0)};return Ae(function(){o.width=a.value.offsetWidth||ih,l.value=new A0(a.value,{start:function(){o.width=a.value.offsetWidth},drag:function(s){u(s)},end:c})}),Ft(function(){l.value.destroy()}),{baseClassName:n,refThumb:r,refPanel:a,styles:i}},render:function(){var e=this.baseClassName,n=this.className,a=this.railStyle,r=this.styles,l=this.type,o=this.color,i={background:"linear-gradient(90deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.0) 93%, ".concat(o.rgb," 93%, ").concat(o.rgb," 100%)")};return g("div",{class:["".concat(e,"__slider-wrapper"),"".concat(e,"__slider-wrapper--").concat(l,"-type")]},[l==="alpha"&&g("div",{className:"".concat(e,"__slider-padding"),style:i},null),g("div",{class:["".concat(e,"__slider"),n],ref:"refPanel"},[g("div",{class:"".concat(e,"__rail"),style:a},null),g("span",{class:["".concat(e,"__thumb")],role:"slider",tabindex:0,ref:"refThumb",style:r},null)])])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Ih(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function u6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ih(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ih(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var c6=ne({name:"HueSlider",inheritAttrs:!1,props:u6({},yo),setup:function(){var e=Bn();return{baseClassName:e}},render:function(){return g(R0,{class:"".concat(this.baseClassName,"__hue"),color:this.color,value:this.color.hue,onChange:this.onChange,disabled:this.disabled,type:"hue"},null)}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var s6=ne({name:"AlphaSlider",inheritAttrs:!1,props:{color:{type:Object},disabled:{type:Boolean,default:!1},onChange:{type:Function,default:function(){return function(){}}}},setup:function(e){var n=Bn(),a=function(o,i){e.onChange(o/100,i)},r=B(function(){return{background:"linear-gradient(to right, rgba(0, 0, 0, 0), ".concat(e.color.rgb,")")}});return{baseClassName:n,railStyle:r,handleChange:a}},render:function(){var e=this.baseClassName;return g(R0,{class:["".concat(e,"__alpha"),"".concat(e,"--bg-alpha")],color:this.color,value:this.color.alpha*100,onChange:this.handleChange,"rail-style":this.railStyle,"max-value":100,disabled:this.disabled,type:"alpha"},null)}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var v6={RGB:[{key:"r",min:0,max:255,type:"inputNumber"},{key:"g",min:0,max:255,type:"inputNumber"},{key:"b",min:0,max:255,type:"inputNumber"}],HSV:[{key:"h",min:0,max:360,type:"inputNumber"},{key:"s",min:0,max:100,type:"inputNumber"},{key:"v",min:0,max:100,type:"inputNumber"}],HSL:[{key:"h",min:0,max:360,type:"inputNumber"},{key:"s",min:0,max:100,type:"inputNumber"},{key:"l",min:0,max:100,type:"inputNumber"}],CMYK:[{key:"c",min:0,max:255,type:"inputNumber"},{key:"m",min:0,max:255,type:"inputNumber"},{key:"y",min:0,max:255,type:"inputNumber"},{key:"k",min:0,max:255,type:"inputNumber"}],CSS:[{key:"css",type:"input",flex:3}],HEX:[{key:"hex",type:"input",flex:3}]};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function jh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Qu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var d6=ne({name:"FormatInputs",inheritAttrs:!1,props:Qu(Qu({},bl),{},{color:{type:Object},onInputChange:{type:Function,default:function(){return function(){}}}}),setup:function(e){var n=B(function(){var c=ce(v6[e.format]);return e.enableAlpha&&c.push({type:"inputNumber",key:"a",min:0,max:100,format:function(s){return"".concat(s,"%")},flex:1.15}),c}),a=jt({}),r=jt({}),l=function(v){var s=e.color;return v==="encode"?{HSV:s.getHsva(),HSL:s.getHsla(),RGB:s.getRgba(),CMYK:s.getCmyk(),CSS:{css:s.css},HEX:{hex:s.hex}}:{HSV:Mn.object2color(a,"HSV"),HSL:Mn.object2color(a,"HSL"),RGB:Mn.object2color(a,"RGB"),CMYK:Mn.object2color(a,"CMYK"),CSS:a.css,HEX:a.hex}},o=function(){var v=e.format,s=e.color,d=l("encode")[v];d.a=Math.round(s.alpha*100),Object.keys(d).forEach(function(f){a[f]=d[f],r[f]=d[f]})};o();var i=P0(o,100);le(function(){var c=e.color,v=c.saturation,s=c.hue,d=c.value,f=c.alpha;return[v,s,d,f,e.format]},i);var u=function(v,s){if(s!==r[v]){var d=l("decode")[e.format];e.onInputChange(d,a.a/100,v,s)}};return{modelValue:a,inputConfigs:n,handleChange:u}},render:function(){var e=this,n=Qu({},this.inputProps||{});return g("div",{class:"input-group"},[this.inputConfigs.map(function(a){return g("div",{class:"input-group__item",key:a.key,style:{flex:a.flex||1}},[a.type==="input"?g(ja,ve(n,{align:"center",size:"small",disabled:e.disabled,modelValue:e.modelValue[a.key],"onUpdate:modelValue":function(l){return e.modelValue[a.key]=l},maxlength:e.format==="HEX"?9:void 0,title:e.modelValue[a.key],onBlur:function(l){return e.handleChange(a.key,l)},onEnter:function(l){return e.handleChange(a.key,l)}}),null):g(Ws,ve(n,{align:"center",size:"small",disabled:e.disabled,modelValue:e.modelValue[a.key],"onUpdate:modelValue":function(l){return e.modelValue[a.key]=l},title:e.modelValue[a.key],min:a.min,max:a.max,step:1,format:a.format,theme:"normal",onBlur:function(l){return e.handleChange(a.key,l)},onEnter:function(l){return e.handleChange(a.key,l)}}),null)])})])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var f6=Ts,g6=f6(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),h6=g6;function $h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function wr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$h(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$h(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function m6(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var p6=ne({name:"FormatPanel",inheritAttrs:!1,props:wr(wr({},bl),{},{color:{type:Object},onModeChange:{type:Function,default:function(){return function(){}}},onInputChange:{type:Function,default:function(){return function(){}}}}),setup:function(e){var n=Bn(),a=G(e.format);le(function(){return[e.format]},function(){return a.value=e.format});var r=function(o){a.value=o,e.onModeChange(o)};return{formatModel:a,baseClassName:n,handleModeChange:r}},render:function(){var e=this,n,a=ce(fU),r=this.baseClassName,l=this.handleModeChange,o=wr(wr({},this.$props),{},{format:this.formatModel}),i=wr({},this.selectInputProps||{});return g("div",{class:"".concat(r,"__format")},[g("div",{class:"".concat(r,"__format--item")},[g(Ii,ve({size:"small",class:"".concat(r,"__format-mode-select")},i,{popupProps:wr({overlayClassName:"".concat(r,"__select-options")},i.popupProps),modelValue:e.formatModel,"onUpdate:modelValue":function(c){return e.formatModel=c},onChange:l}),m6(n=a.map(function(u){return g(aV,{key:u,value:u,label:h6(u),style:{fontSize:"12px"}},null)}))?n:{default:function(){return[n]}})]),g("div",{class:"".concat(r,"__format--item")},[g(d6,o,null)])])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Fh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function kh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Ah=ne({name:"SwatchesPanel",props:kh(kh({},yo),{},{colors:{type:Array,default:function(){return[]}},title:{type:String,default:"系统色彩"},editable:{type:Boolean,default:!1},onSetColor:{type:Function,default:function(){return function(){}}},handleAddColor:{type:Function,default:function(){return function(){}}}}),setup:function(e){var n=Bn(),a=at({DeleteIcon:os,AddIcon:Ui}),r=a.DeleteIcon,l=a.AddIcon,o=ft(),i=o.STATUS,u=i.value,c=G(!1),v=function(m){c.value=m},s=function(m){return e.onSetColor(m)},d=function(m){return Mn.compare(m,e.color.css)},f=B(function(){return e.colors.findIndex(function(h){return d(h)})}),p=function(){var m=ce(e.colors),b=f.value;b>-1?m.splice(b,1):m.length=0,e.onChange(m),v(!1)};return{baseClassName:n,DeleteIcon:r,AddIcon:l,statusClassNames:u,selectedColorIndex:f,visiblePopConfirm:c,setVisiblePopConfirm:v,handleClick:s,isEqualCurrentColor:d,handleRemoveColor:p}},render:function(){var e=this,n=this.baseClassName,a=this.DeleteIcon,r=this.AddIcon,l=this.statusClassNames,o=this.title,i=this.editable,u="".concat(n,"__swatches"),c=function(){return i?g("div",{class:"".concat(u,"--actions")},[g("span",{role:"button",class:"".concat(n,"__icon"),onClick:function(){return e.handleAddColor()}},[g(r,null,null)]),e.colors.length>0?g("span",{role:"button",class:"".concat(n,"__icon"),onClick:function(){return e.handleRemoveColor()}},[g(a,null,null)]):null]):null};return g("div",{class:u},[g("h3",{class:"".concat(u,"--title")},[g("span",null,[o]),c()]),g("ul",{class:["".concat(u,"--items"),"narrow-scrollbar"]},[this.colors.map(function(v){return g("li",{class:["".concat(u,"--item"),e.isEqualCurrentColor(v)&&i?l.active:""],title:v,key:v,onClick:function(){e.disabled||e.handleClick(v)}},[g("div",{class:["".concat(u,"--color"),"".concat(n,"--bg-alpha")]},[g("span",{class:"".concat(u,"--inner"),style:{background:v}},null)])])})])])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Rh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Mh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Rh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var M0=ne({name:"ColorPanel",props:Mh(Mh({},bl),{},{togglePopup:{type:Function}}),setup:function(e){var n,a=Bn(),r=ft(),l=r.STATUS,o=Ke("colorPicker"),i=o.t,u=o.globalConfig,c=l.value,v=_e(e),s=v.value,d=v.modelValue,f=v.recentColors,p=ht(s,d,e.defaultValue,e.onChange),h=be(p,2),m=h[0],b=h[1],y=B(function(){return O.value?rh:vU}),C=G(((n=e.colorModes)===null||n===void 0?void 0:n.length)===1?e.colorModes[0]:"monochrome"),O=B(function(){return C.value==="linear-gradient"}),_=G(new Mn(m.value||y.value)),$=function(){return _.value.update(m.value||y.value)},I=G(_.value.isGradient?"CSS":"RGB"),x=Nt(f,e.defaultRecentColors,e.onRecentColorsChange,"recentColors"),S=be(x,2),E=S[0],D=S[1],j=function(){return C.value==="linear-gradient"?_.value.linearGradient:_.value.getFormatsColorMap()[e.format]||_.value.css},T=function(){if(!(E.value===null||E.value===!1)){var L=Xn(E.value)||[],z=_.value.isGradient?_.value.linearGradient:_.value.rgba,K=L.indexOf(z);K>-1&&L.splice(K,1),L.unshift(z),L.length>ah&&(L.length=ah),F(L)}},F=function(L){D(L)},w=function(L){b(j(),{color:yh(_.value),trigger:L||"palette-saturation-brightness"})};le(function(){return[e.defaultValue,e.enableAlpha]},$),le(function(){return m.value},function(H){H!==j()&&($(),C.value=_.value.isGradient?"linear-gradient":"monochrome")});var P=function(L){C.value=L,L==="linear-gradient"?_.value.update(_.value.gradientColors.length>0?_.value.linearGradient:rh):_.value.update(_.value.rgba),w()},A=function(L){return I.value=L},R=function(L){var z=L.saturation,K=L.value,Y=_.value,q=Y.saturation,X=Y.value,J="palette-saturation-brightness";if(K!==X&&z!==q)_.value.saturation=z,_.value.value=K,J="palette-saturation-brightness";else if(z!==q)_.value.saturation=z,J="palette-saturation";else if(K!==X)_.value.value=K,J="palette-brightness";else return;w(J)},k=function(L){var z;_.value.hue=L,w("palette-hue-bar"),(z=e.onPaletteBarChange)===null||z===void 0||z.call(e,{color:yh(_.value)})},M=function(L){_.value.alpha=L,w("palette-alpha-bar")},V=function(L,z){_.value.update(L),_.value.alpha=z,w("input")},W=function(L){var z=L.key,K=L.payload,Y="palette-saturation-brightness";switch(z){case"degree":_.value.gradientDegree=K,Y="input";break;case"selectedId":_.value.gradientSelectedId=K;break;case"colors":_.value.gradientColors=K;break}w(Y)},U=function(L,z){var K=Mn.isGradientColor(z);K?e.colorModes.includes("linear-gradient")?(C.value="linear-gradient",_.value.update(z),_.value.updateCurrentGradientColor()):console.warn("该模式不支持渐变色"):C.value==="linear-gradient"?(_.value.updateStates(z),_.value.updateCurrentGradientColor()):_.value.update(z),w()};return{baseClassName:a,statusClassNames:c,t:i,globalConfig:u,color:_,mode:C,formatModel:I,recentlyUsedColors:E,isGradient:O,addRecentlyUsedColor:T,handleModeChange:P,handleSatAndValueChange:R,handleHueChange:k,handleAlphaChange:M,handleGradientChange:W,handleSetColor:U,handleFormatModeChange:A,handleInputChange:V,handleRecentlyUsedColorsChange:F}},render:function(){var e,n=this,a=this.t,r=this.baseClassName,l=this.statusClassNames,o=this.globalConfig,i=this.recentColors,u=this.swatchColors,c=this.showPrimaryColorPreview,v=this.isGradient,s={color:this.color,disabled:this.disabled},d=i!==null&&i!==!1,f=u;f===void 0&&(f=ce(dU));var p=((e=f)===null||e===void 0?void 0:e.length)>0,h=function(){return!p&&!d?null:g(Ct,null,[g("div",{class:"".concat(r,"__swatches-wrap")},[d?g(Ah,ve(s,{title:a(o.recentColorTitle),editable:!0,colors:n.recentlyUsedColors,handleAddColor:n.addRecentlyUsedColor,onSetColor:function(y){return n.handleSetColor("used",y)},onChange:n.handleRecentlyUsedColorsChange}),null):null,p?g(Ah,ve(s,{title:a(o.swatchColorTitle),colors:f,onSetColor:function(y){return n.handleSetColor("system",y)}}),null):null])])};return g("div",{class:["".concat(r,"__panel"),this.disabled?l.disabled:!1]},[g(mU,ve(this.$props,{mode:this.mode,onModeChange:this.handleModeChange}),null),g("div",{class:["".concat(r,"__body")]},[v?g(l6,ve(s,{onChange:this.handleGradientChange,enableMultipleGradient:this.enableMultipleGradient}),null):null,g(i6,ve(s,{onChange:this.handleSatAndValueChange}),null),g("div",{class:["".concat(r,"__sliders-wrapper")]},[g("div",{class:["".concat(r,"__sliders")]},[g(c6,ve(s,{onChange:this.handleHueChange}),null),this.enableAlpha?g(s6,ve(s,{onChange:this.handleAlphaChange}),null):null]),c?g("div",{class:["".concat(r,"__sliders-preview"),"".concat(r,"--bg-alpha")]},[g("span",{class:"".concat(r,"__sliders-preview-inner"),style:{background:v?this.color.linearGradient:this.color.rgba}},null)]):null]),g(p6,ve(this.$props,{color:this.color,format:this.formatModel,onModeChange:this.handleFormatModeChange,onInputChange:this.handleInputChange}),null),h()])])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var b6=dr,y6=sU,C6=xy,w6=bs;function O6(t,e){if(t==null)return{};var n=b6(w6(t),function(a){return[a]});return e=y6(e),C6(t,n,function(a,r){return e(a,r[0])})}var _6=O6;function Nh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ec(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var S6=ne({name:"TColorPickerPanel",inheritAttrs:!1,props:ec({},bl),setup:function(e,n){var a=n.attrs,r=B(function(){return _6(ec(ec({},e),a),function(o){return o!==void 0})}),l=ee();return function(){return g(M0,ve(r.value,{popupProps:null,"close-btn":!1,class:"".concat(l.value,"-is-inline")}),null)}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var x6=ne({name:"DefaultTrigger",inheritAttrs:!1,props:{color:{type:String,default:""},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},inputProps:{type:Object,default:function(){return{autoWidth:!0}}},onTriggerChange:{type:Function,default:function(){return function(){}}},size:{type:String,default:"medium"}},setup:function(e){var n=Bn(),a=G(e.color),r=ft(),l=r.SIZE;le(function(){return[e.color]},function(){return a.value=e.color});var o=function(u){u!==e.color&&(u&&!Mn.isValid(u)?a.value=e.color:a.value=u,e.onTriggerChange(a.value))};return{baseClassName:n,value:a,handleChange:o,sizeClassNames:l}},render:function(){var e=this,n=this.baseClassName,a=this.sizeClassNames,r={label:function(){return g("div",{class:["".concat(n,"__trigger--default__color"),"".concat(n,"--bg-alpha")]},[g("span",{class:["color-inner",N({},a[e.size],e.size!=="medium")],style:{background:e.value}},null)])}};return g(ja,ve({clearable:this.clearable,size:this.size,modelValue:e.value,"onUpdate:modelValue":function(o){return e.value=o},disabled:this.disabled,onBlur:this.handleChange},this.inputProps),r)}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Lh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Bo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Lh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var P6=ne({name:"TColorPicker",props:Bo({},bl),setup:function(e){var n=Bn(),a=G(!1),r=function(h){return a.value=h},l=_e(e),o=l.value,i=l.modelValue,u=ht(o,i,e.defaultValue,e.onChange),c=be(u,2),v=c[0],s=c[1],d=G(),f=function(){if(e.disabled)return null;var h=Bo({},e);return delete h.onChange,g(M0,ve(h,{disabled:e.disabled,value:v.value,togglePopup:r,onChange:function(b,y){return s(b,y)}}),null)};return{baseClassName:n,innerValue:v,visible:a,refTrigger:d,renderPopupContent:f,setVisible:r,setInnerValue:s}},render:function(){var e=this,n=this.popupProps,a=this.baseClassName,r=Bo(Bo({placement:"bottom-left"},n||{}),{},{trigger:"click",attach:"body",overlayClassName:[a],visible:this.visible,overlayInnerStyle:{padding:0},onVisibleChange:function(o,i){i.trigger==="document"&&e.setVisible(!1)}});return g(Ma,ve(r,{content:this.renderPopupContent}),{default:function(){return[g("div",{class:"".concat(a,"__trigger"),onClick:function(){return e.setVisible(!e.visible)},ref:"refTrigger"},[aF(e,"default",g(x6,{color:e.innerValue,disabled:e.disabled,clearable:e.clearable,"input-props":e.inputProps,onTriggerChange:e.setInnerValue,size:e.size},null))])]}})}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var a7=ye(S6);ye(P6);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var E6={alt:{type:String,default:""},content:{type:[String,Function]},default:{type:[String,Function]},hideOnLoadFailed:Boolean,icon:{type:Function},image:{type:String,default:""},imageProps:{type:Object},shape:{type:String,default:"circle",validator:function(e){return e?["circle","round"].includes(e):!0}},size:{type:String,default:""},onError:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var T6={alt:{type:String,default:""},error:{type:[String,Function]},fallback:{type:String,default:""},fit:{type:String,default:"fill",validator:function(e){return e?["contain","cover","fill","none","scale-down"].includes(e):!0}},gallery:Boolean,lazy:Boolean,loading:{type:[String,Function]},overlayContent:{type:[String,Function]},overlayTrigger:{type:String,default:"always",validator:function(e){return e?["always","hover"].includes(e):!0}},placeholder:{type:[String,Function]},position:{type:String,default:"center"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin",validator:function(e){return e?["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"].includes(e):!0}},shape:{type:String,default:"square",validator:function(e){return e?["circle","round","square"].includes(e):!0}},src:{type:[String,Object]},srcset:{type:Object},onError:Function,onLoad:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var D6=ne({name:"TImage",props:T6,setup:function(e){var n=G(null),a=G(null),r=null,l=_e(e),o=l.src,i=xe();Ae(function(){var w;if((w=a.value)!==null&&w!==void 0&&w.complete&&!e.lazy&&y(),!(!e.lazy||!n.value)){var P=pu(n.value,null,h,0);r=P}}),ba(function(){n.value&&r&&r.unobserve(n.value)});var u=Ke("image"),c=u.classPrefix,v=u.globalConfig,s=G(o.value);le([o,v],function(w){var P=be(w,2),A=P[0],R=P[1],k=R||{},M=k.replaceImageSrc,V=pe(M)?M(e):A;V===s.value&&s.value||(s.value=V)},{immediate:!0});var d=_i(s),f=d.previewUrl;le([f],function(){C.value=!1,m.value=!1});var p=G(!e.lazy),h=function(){p.value=!0},m=G(!1),b=function(P){var A;m.value=!0,(A=e.onLoad)===null||A===void 0||A.call(e,{e:P})},y=function(){var P=new Event("load");Object.defineProperty(P,"target",{value:a.value,enumerable:!0}),b(P)},C=G(!1),O=function(P){var A;C.value=!0,(A=e.onError)===null||A===void 0||A.call(e,{e:P}),e.fallback&&(s.value=e.fallback,C.value=!1)},_=B(function(){return e.overlayTrigger==="hover"}),$=B(function(){return["".concat(c.value,"-image"),"".concat(c.value,"-image--fit-").concat(e.fit),"".concat(c.value,"-image--position-").concat(e.position)]}),I=G(!_.value),x=function(){_.value&&(I.value=!I.value)},S=function(){var P=i("placeholder");return P?g("div",{class:"".concat(c.value,"-image__placeholder")},[P]):null},E=function(){return e.gallery?g("div",{class:"".concat(c.value,"-image__gallery-shadow")},null):null},D=function(){var P=F("overlayContent");return P?g("div",{class:["".concat(c.value,"-image__overlay-content"),!I.value&&"".concat(c.value,"-image__overlay-content--hidden")]},[P]):null};function j(){return g("picture",null,[Object.entries(e.srcset).map(function(w){var P=be(w,2),A=P[0],R=P[1];return g("source",{type:A,srcset:R},null)}),T()])}function T(){var w=typeof s.value=="string"?s.value:f.value;return g("img",{ref:a,src:w,onError:O,onLoad:b,class:$.value,alt:e.alt,referrerpolicy:e.referrerpolicy},null)}var F=ka();return function(){return g("div",ve({ref:n,class:["".concat(c.value,"-image__wrapper"),"".concat(c.value,"-image__wrapper--shape-").concat(e.shape),e.gallery&&"".concat(c.value,"-image__wrapper--gallery"),_.value&&"".concat(c.value,"-image__wrapper--need-hover")],onMouseenter:x,onMouseleave:x},ga(e,["src","alt","fit","position","shape","placeholder","loading","error","overlayTrigger","overlayContent","lazy","gallery","onLoad","onError"])),[S(),E(),(C.value||!p.value)&&g("div",{class:"".concat(c.value,"-image")},null),!(C.value||!p.value)&&(e.srcset&&Object.keys(e.srcset).length?j():T()),!(C.value||!p.value)&&!m.value&&g("div",{class:"".concat(c.value,"-image__loading")},[i("loading")||g(Od,{direction:"vertical",size:8,align:"center"},{default:function(){return[g(yp,{size:"24px"},null),typeof e.loading=="string"?e.loading:v.value.loadingText]}})]),C.value&&g("div",{class:"".concat(c.value,"-image__error")},[F("error",{defaultNode:g(Od,{direction:"vertical",size:8,align:"center"},{default:function(){return[g(Cp,{size:"24px"},null),typeof e.error=="string"?e.error:v.value.errorText]}})})]),D()])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Xr=ye(D6);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Bh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function tc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var N0=ne({name:"TAvatar",props:E6,setup:function(e){var n=ee("avatar"),a=_t(),r=xe(),l=ft(),o=l.SIZE,i=vt("avatarGroup",void 0),u=G(null),c=G(null),v=G(!0),s=G(4),d=G(""),f=B(function(){return e.size||(i==null?void 0:i.size)}),p=B(function(){return f.value&&!o.value[f.value]}),h=B(function(){return p.value?{width:f.value,height:f.value,"font-size":"".concat(Number.parseInt(f.value,10)/2,"px")}:{}}),m=B(function(){return p.value?{height:f.value,width:f.value}:{}}),b=B(function(){return{transform:d.value}}),y=function(_){var $,I=_.e,x=e.hideOnLoadFailed;v.value=!x,($=e.onError)===null||$===void 0||$.call(e,{e:I})},C=function(){var _=u.value,$=c.value,I=_==null?void 0:_.offsetWidth,x=$==null?void 0:$.offsetWidth;s.value*2<I&&(d.value=x>I-s.value*2?"scale(".concat((I-s.value*2)/x,")"):"scale(1)")};return Ae(function(){Je(function(){C()})}),qi(function(){Je(function(){C()})}),function(){var O=a("default","content"),_=r("icon"),$=_&&!O,I=e.shape,x=e.image,S=e.alt,E=["".concat(n.value),o.value[f.value],N(N(N({},"".concat(n.value,"--circle"),I==="circle"),"".concat(n.value,"--round"),I==="round"),"".concat(n.value,"__icon"),!!$)];return O=g("span",{ref:c,style:tc({},b.value)},[O]),_&&(O=[_,$?"":O]),x&&v.value&&(O=g(Xr,ve({style:tc({},m.value),src:x,alt:S,onError:y},e.imageProps),null)),g("div",{ref:u,class:E,style:tc({},h.value)},[O])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var I6={cascading:{type:String,default:"right-up",validator:function(e){return e?["left-up","right-up"].includes(e):!0}},collapseAvatar:{type:[String,Function]},max:{type:Number},popupProps:{type:Object},size:{type:String,default:""}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function j6(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var $6=ne({name:"TAvatarGroup",props:I6,setup:function(e){wt("avatarGroup",e);var n=xe(),a=ee("avatar"),r=ee("avatar-group"),l=function(u){if((u==null?void 0:u.length)>e.max){var c=o(u),v=u.slice(0,e.max);return v.push(g(N0,{class:"".concat(a.value,"__collapse"),size:e.size},j6(c)?c:{default:function(){return[c]}})),[v]}return[u]},o=function(u){return n("collapseAvatar")||"+".concat(u.length-e.max)};return function(){var i=n("default"),u=e.cascading,c=e.max,v=["".concat(r.value),N(N({},"".concat(a.value,"--offset-right"),u==="right-up"),"".concat(a.value,"--offset-left"),u==="left-up")],s=c&&c>=0?[l(i)]:[i];return g("div",{class:v},[s])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var r7=ye(N0);ye($6);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var F6={color:{type:String,default:""},content:{type:[String,Function]},count:{type:[String,Number,Function],default:0},default:{type:[String,Function]},dot:Boolean,maxCount:{type:Number,default:99},offset:{type:Array},shape:{type:String,default:"circle",validator:function(e){return["circle","round"].includes(e)}},showZero:Boolean,size:{type:String,default:"medium",validator:function(e){return["small","medium"].includes(e)}}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Vh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function k6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var A6=ne({name:"TBadge",inheritAttrs:!1,props:k6({},F6),setup:function(e,n){var a=n.attrs,r=_t(),l=xe(),o=B(function(){var f=l("count");return Number.isNaN(Number(f))?f:(f=Number(e.count),f>e.maxCount?"".concat(e.maxCount,"+"):f)}),i=function(){if(!e.offset)return{};var p=be(e.offset,2),h=p[0],m=p[1];return h=Number.isNaN(Number(h))?h:"".concat(h,"px"),m=Number.isNaN(Number(m))?m:"".concat(m,"px"),{xOffset:h,yOffset:m}},u=ee(),c=ee("badge"),v=B(function(){return!e.showZero&&(o.value===0||o.value==="0")}),s=B(function(){return[N(N(N(N({},"".concat(c.value,"--dot"),!!e.dot),"".concat(c.value,"--circle"),!e.dot&&e.shape==="circle"),"".concat(c.value,"--round"),!e.dot&&e.shape==="round"),"".concat(u.value,"-size-s"),e.size==="small")]}),d=B(function(){var f=i(),p=f.xOffset,h=f.yOffset;return{background:"".concat(e.color),right:p,top:h}});return function(){return g("div",ve({class:c.value},a),[r("default","content"),v.value?null:g("sup",{class:s.value,style:d.value},[e.dot?null:o.value])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var l7=ye(A6);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var R6={actions:{type:[String,Function]},avatar:{type:[String,Function]},bordered:{type:Boolean,default:!0},content:{type:[String,Function]},cover:{type:[String,Function]},default:{type:[String,Function]},description:{type:[String,Function]},footer:{type:[String,Function]},header:{type:[String,Function]},headerBordered:Boolean,hoverShadow:Boolean,loading:{type:[Boolean,Function],default:!1},loadingProps:{type:Object},shadow:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["medium","small"].includes(e):!0}},status:{type:String,default:""},subtitle:{type:[String,Function]},theme:{type:String,default:"normal",validator:function(e){return e?["normal","poster1","poster2"].includes(e):!0}},title:{type:[String,Function]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function M6(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var N6=ne({name:"TCard",props:R6,setup:function(e,n){var a=n.slots,r=xe(),l=ee("card"),o=ft(),i=o.SIZE,u=B(function(){var M=[l.value];return e.size==="small"&&M.push("".concat(i.value[e.size])),e.bordered&&M.push("".concat(l.value,"--bordered")),e.shadow&&M.push("".concat(l.value,"--shadow")),e.hoverShadow&&M.push("".concat(l.value,"--shadow-hover")),M}),c=B(function(){var M=["".concat(l.value,"__header")];return e.headerBordered?M.concat("".concat(l.value,"__title--bordered")):["".concat(l.value,"__header")]}),v=ee("card__header-wrapper"),s=ee("card__avatar"),d=ee("card__title"),f=ee("card__subtitle"),p=ee("card__description"),h=ee("card__actions"),m=ee("card__body"),b=ee("card__cover"),y=ee("card__footer"),C=ee("card__footer-wrapper"),O=B(function(){return e.theme==="poster2"}),_=B(function(){return e.title||a.title}),$=B(function(){return e.header||a.header}),I=B(function(){return e.subtitle||a.subtitle}),x=B(function(){return e.avatar||a.avatar}),S=B(function(){return e.description||a.description}),E=B(function(){return e.status||a.status}),D=B(function(){return e.actions||a.actions}),j=B(function(){return e.footer||a.footer}),T=B(function(){return e.cover||a.cover}),F=B(function(){return e.loading||a.loading}),w=B(function(){return e.content||a.content||e.default||a.default}),P=B(function(){return $.value||_.value||I.value||S.value||x.value||E.value&&O.value||D.value&&!O.value}),A=B(function(){return j.value||D.value&&O.value}),R=function(){return $.value?g("div",{class:c.value},[r("header")]):g("div",{class:c.value},[g("div",{class:v.value},[x.value&&g("div",{class:s.value},[r("avatar")]),g("div",null,[_.value&&g("div",{class:d.value},[r("title")]),I.value&&g("div",{class:f.value},[r("subtitle")]),S.value&&g("p",{class:p.value},[r("description")])])]),D.value&&!O.value&&g("div",{class:h.value},[r("actions")]),E.value&&g("div",{class:h.value},[r("status")])])},k=function(){var V=Be(e.cover);return g("div",{class:b.value},[V?g("img",{src:e.cover},null):r("cover")])};return function(){var M=g("div",{class:u.value},[P.value?R():null,T.value?k():null,w.value&&g("div",{class:m.value},[r("default")||r("content")]),A.value&&g("div",{class:y.value},[g("div",{class:C.value},[r("footer")]),D.value&&O.value&&g("div",{class:h.value},[r("actions")])])]);return F.value?r("loading")||g(bn,e.loadingProps,M6(M)?M:{default:function(){return[M]}}):M}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var o7=ye(N6);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var L6={actions:{type:Array},author:{type:[String,Function]},avatar:{type:[String,Object,Function]},content:{type:[String,Function]},datetime:{type:[String,Function]},quote:{type:[String,Function]},reply:{type:[String,Function]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function B6(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var V6=ne({name:"TComment",props:L6,setup:function(){var e=ee("comment"),n=xe();return function(){var a=n("reply"),r=n("author"),l=n("datetime"),o=n("quote"),i=n("actions"),u=n("content"),c=n("avatar"),v=B(function(){return r||l}),s=a?g("div",{class:"".concat(e.value,"__reply")},[a]):null,d=o?g("div",{class:"".concat(e.value,"__quote")},[o]):null,f=c?g("div",{class:"".concat(e.value,"__avatar")},[Be(c)?g("img",{src:c,alt:"",class:"".concat(e.value,"__avatar-image")},null):c]):null,p=v.value&&g("div",{class:"".concat(e.value,"__author")},[r&&g("span",{class:"".concat(e.value,"__name")},[r]),l&&g("span",{class:"".concat(e.value,"__time")},[l])]),h=function(){return!i||!i.length?null:g("div",{class:"".concat(e.value,"__actions")},[(ke(i)?i:[i]).map(function(y,C){return g(Ot,{key:"action-".concat(C),size:"small",variant:"text"},B6(y)?y:{default:function(){return[y]}})})])},m=g("div",{class:"".concat(e.value,"__content")},[p,g("div",{class:"".concat(e.value,"__detail")},[u]),d,h()]);return g("div",{class:e.value},[g("div",{class:"".concat(e.value,"__inner")},[f,m]),s])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var i7=ye(V6);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var $l={closeBtn:{type:[Boolean,Function],default:!0},closeOnEscKeydown:{type:Boolean,default:!0},closeOnOverlay:Boolean,draggable:{type:Boolean,default:void 0},imageScale:{type:Object},images:{type:Array,default:function(){return[]}},index:{type:Number,default:void 0},defaultIndex:{type:Number,default:0},mode:{type:String,default:"modal",validator:function(e){return e?["modal","modeless"].includes(e):!0}},navigationArrow:{type:[Boolean,Function],default:!0},showOverlay:{type:Boolean,default:void 0},title:{type:[String,Function]},trigger:{type:[String,Function]},viewerScale:{type:Object},visible:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultVisible:Boolean,zIndex:{type:Number},onClose:Function,onIndexChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var ia=ne({name:"TImageModalIcon",props:{disabled:Boolean,onClick:Function,label:String,icon:Function},setup:function(e){var n=ee(),a=xe(),r=B(function(){return["".concat(n.value,"-image-viewer__modal-icon"),N({},"".concat(n.value,"-is-disabled"),e.disabled)]});return function(){return g("div",{class:r.value,onClick:e.onClick},[a("icon"),e.label&&g("span",{class:"".concat(n.value,"-image-viewer__modal-icon-label")},[e.label])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Hh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function H6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var K6=function(e){var n,a,r,l=new Image,o=(e==null||(n=e.split)===null||n===void 0||(n=n.call(e,"?"))===null||n===void 0||(n=n[0])===null||n===void 0||(a=n.split)===null||a===void 0||(a=a.call(n,"#"))===null||a===void 0||(a=a[0])===null||a===void 0||(r=a.split)===null||r===void 0?void 0:r.call(a,"/").pop())||Math.random().toString(32).slice(2);l.setAttribute("crossOrigin","anonymous"),l.onload=function(){var i=document.createElement("canvas");i.width=l.width,i.height=l.height;var u=i.getContext("2d");u.drawImage(l,0,0,l.width,l.height),i.toBlob(function(c){var v=URL.createObjectURL(c),s=document.createElement("a");s.download=o,s.href=v,s.click(),s.remove(),URL.revokeObjectURL(v)})},l.src=e},z6=function(e){return!!e&&!Be(e)&&!(e instanceof File)},W6=function(e){return ke(e)?e.map(function(n){return z6(n)?H6({download:!0,thumbnail:n.mainImage},n):{mainImage:n,thumbnail:n,download:!0}}):[]},U6=function(e){return e.showOverlay!==void 0?e.showOverlay:e.mode==="modal"};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var L0=ne({name:"TImageViewerUtils",props:{scale:Number,onRotate:Function,onZoomIn:Function,onZoomOut:Function,onMirror:Function,onReset:Function,currentImage:{type:Object,default:function(){return{}}}},setup:function(e){var n=ee(),a=B(function(){return e.currentImage.mainImage}),r=_i(a),l=r.previewUrl,o=Ke("imageViewer"),i=o.globalConfig;return function(){return g("div",{class:"".concat(n.value,"-image-viewer__utils")},[g("div",{class:"".concat(n.value,"-image-viewer__utils-content")},[g(er,{overlayClassName:"".concat(n.value,"-image-viewer__utils--tip"),content:i.value.mirrorTipText,destroyOnClose:!0,placement:"top",showArrow:!0,theme:"default"},{default:function(){return[g(ia,{onClick:e.onMirror,icon:function(){return g(NC,{size:"medium"},null)}},null)]}}),g(er,{overlayClassName:"".concat(n.value,"-image-viewer__utils--tip"),content:i.value.rotateTipText,destroyOnClose:!0,placement:"top",showArrow:!0,theme:"default"},{default:function(){return[g(ia,{onClick:e.onRotate,icon:function(){return g(LC,{size:"medium"},null)}},null)]}}),g(ia,{icon:function(){return g(BC,{size:"medium"},null)},onClick:e.onZoomOut},null),g(ia,{class:"".concat(n.value,"-image-viewer__utils-scale"),size:"medium",label:"".concat(xi(String(e.scale*100)),"%")},null),g(ia,{icon:function(){return g(VC,{size:"medium"},null)},onClick:e.onZoomIn},null),g(er,{overlayClassName:"".concat(n.value,"-image-viewer__utils--tip"),content:i.value.originalSizeTipText,destroyOnClose:!0,placement:"top",showArrow:!0,theme:"default"},{default:function(){return[g("div",{class:"".concat(n.value,"-image-viewer__modal-icon")},[g(ia,{icon:function(){return g(yp,{size:"medium"},null)},onClick:e.onReset},null)])]}}),e.currentImage.download&&g(ia,{icon:function(){return g(HC,{size:"medium"},null)},onClick:function(){K6(l.value)}},null)])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Kh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Y6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function G6(t){var e=G(t),n=function(l){var o=l.pageX,i=l.pageY,u=e.value,c=u.translateX,v=u.translateY,s=function(p){var h=p.pageX,m=p.pageY;e.value={translateX:c+h-o,translateY:v+m-i}},d=function f(){document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",f)};document.addEventListener("mousemove",s),document.addEventListener("mouseup",d)},a=function(){e.value=Y6({},t)};return{transform:e,mouseDownHandler:n,resetTransform:a}}function q6(){var t=G(1),e=function(){t.value*=-1},n=function(){t.value=1};return{mirror:t,onMirror:e,resetMirror:n}}function X6(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{max:2,min:.5,step:.5},e=t.max,n=t.min,a=t.step,r=t.defaultScale,l=G(r??1),o=function(){var s=ro(l.value,a);c(s)},i=function(){var s=lo(l.value,a);c(s)},u=function(){l.value=r??1},c=function(s){var d=s;s<n&&(d=n),s>e&&(d=e),l.value=d};return le(function(){return t},function(){return u()}),{scale:l,onZoomIn:o,onZoomOut:i,resetScale:u}}function J6(){var t=G(0),e=90,n=function(){t.value+=e},a=function(){t.value=0};return{rotate:t,onRotate:n,resetRotate:a}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var B0=ne({name:"TImageItem",props:{rotate:Number,scale:Number,mirror:Number,src:[String,Object],placementSrc:[String,Object]},setup:function(e){var n=_e(e),a=n.src,r=n.placementSrc,l=ee(),o=G(!1),i=G(!1),u=G6({translateX:0,translateY:0}),c=u.transform,v=u.mouseDownHandler,s=Ke("imageViewer"),d=s.globalConfig,f=d.value.errorText,p=B(function(){return{transform:"rotate(".concat(e.rotate,"deg) scale(").concat(e.scale,")"),display:!e.placementSrc||i.value?"block":"none"}}),h=B(function(){return{transform:"rotate(".concat(e.rotate,"deg) scale(").concat(e.scale,")"),display:i.value?"none":"block"}}),m=B(function(){var $=c.value,I=$.translateX,x=$.translateY;return{transform:"translate(".concat(I,"px, ").concat(x,"px) scale(").concat(e.mirror,", 1)")}}),b=function(){o.value=!1,i.value=!1},y=_i(a),C=y.previewUrl,O=_i(r),_=O.previewUrl;return le([C,_],function(){b()}),function(){return g("div",{class:"".concat(l.value,"-image-viewer__modal-pic")},[g("div",{class:"".concat(l.value,"-image-viewer__modal-box"),style:m.value},[o.value&&g("div",{class:"".concat(l.value,"-image-viewer__img-error")},[g("div",{class:"".concat(l.value,"-image-viewer__img-error-content")},[g(Cp,{size:"4em"},null),g("div",{class:"".concat(l.value,"-image-viewer__img-error-text")},[f])])]),!o.value&&!!e.placementSrc&&_.value&&g("img",{class:"".concat(l.value,"-image-viewer__modal-image"),onMousedown:function(I){I.stopPropagation(),v(I)},src:_.value,style:h.value,alt:"image",draggable:"false"},null),!o.value&&C.value&&g("img",{class:"".concat(l.value,"-image-viewer__modal-image"),onMousedown:function(I){I.stopPropagation(),v(I)},src:C.value,onLoad:function(){return i.value=!0},onError:function(){return o.value=!0},style:p.value,alt:"image",draggable:"false"},null)])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Z6={attach:{type:[String,Function]},body:{type:[String,Function]},cancelBtn:{type:[String,Object,Function]},closeBtn:{type:[String,Boolean,Function],default:!0},closeOnEscKeydown:{type:Boolean,default:void 0},closeOnOverlayClick:{type:Boolean,default:void 0},confirmBtn:{type:[String,Object,Function]},confirmLoading:{type:Boolean,default:void 0},confirmOnEnter:Boolean,default:{type:[String,Function]},destroyOnClose:Boolean,draggable:Boolean,footer:{type:[Boolean,Function],default:!0},header:{type:[String,Boolean,Function],default:!0},mode:{type:String,default:"modal",validator:function(e){return e?["modal","modeless","normal","full-screen"].includes(e):!0}},placement:{type:String,default:"top",validator:function(e){return e?["top","center"].includes(e):!0}},preventScrollThrough:{type:Boolean,default:!0},showInAttachedElement:Boolean,showOverlay:{type:Boolean,default:!0},theme:{type:String,default:"default",validator:function(e){return e?["default","info","warning","danger","success"].includes(e):!0}},top:{type:[String,Number]},visible:Boolean,width:{type:[String,Number]},zIndex:{type:Number},onCancel:Function,onClose:Function,onCloseBtnClick:Function,onClosed:Function,onConfirm:Function,onEscKeydown:Function,onOpened:Function,onOverlayClick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function zh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Or(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function nv(t){var e=It(),n=xe(),a=function(c){var v,s=c.globalConfirm,d=c.theme,f=c.globalConfirmBtnTheme,p=((v=ga(f,["info"]))===null||v===void 0?void 0:v[d])||"primary",h={theme:p,size:c.size,onClick:function(b){t.confirmBtnAction(b)}};return Be(s)?h.content=s:Ve(s)&&(h=Or(Or({},h),s)),h},r=function(c){var v=c.globalCancel,s={theme:"default",size:c.size,onClick:function(f){t.cancelBtnAction(f)}};return Be(v)?s.content=v:Ve(v)&&(s=Or(Or({},s),v)),s},l=function(c,v){var s=v.defaultButtonProps,d=v.className,f=v.confirmLoading,p=s;return Be(c)?p.content=c:Ve(c)&&(p=Or(Or({},p),c)),f!==void 0&&(p.loading=f),g(Ot,ve({class:d},p),null)},o=function(c){var v=c.confirmBtn,s=c.className,d=c.confirmLoading;if(v===null)return null;v&&e.slots.confirmBtn&&console.warn("Both $props.confirmBtn and $scopedSlots.confirmBtn exist, $props.confirmBtn is preferred.");var f=a(c);return!v&&!e.slots.confirmBtn?g(Ot,ve({class:s,loading:d},f),null):v&&["string","object"].includes(qe(v))?l(v,{defaultButtonProps:f,className:s,confirmLoading:d}):n("confirmBtn")},i=function(c){var v=c.cancelBtn,s=c.className;if(v===null)return null;v&&e.slots.cancelBtn&&console.warn("Both $props.cancelBtn and $scopedSlots.cancelBtn exist, $props.cancelBtn is preferred.");var d=r(c);return!v&&!e.slots.cancelBtn?g(Ot,ve({class:s},d),null):v&&["string","object"].includes(qe(v))?l(v,{defaultButtonProps:d}):n("cancelBtn")};return{getConfirmBtn:o,getCancelBtn:i}}function Q6(t){var e=!1,n=!1,a=function(i){e&&n&&t(i),e=!1,n=!1},r=function(i){e=i.target===i.currentTarget},l=function(i){n=i.target===i.currentTarget};return{onClick:a,onMousedown:r,onMouseup:l}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function e3(){var t=6;if(typeof navigator>"u"||!navigator||/(Chrome|Safari)/i.test(navigator.userAgent))return t;var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),/Firefox/.test(navigator.userAgent)&&(n-=4),da()<=11&&(n=12),n}function V0(){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var t3=1e3,n3=5e3,a3=1,r3=ml(function t(){var e=this;hl(this,t),N(this,"popupStack",{popup:new Set,dialog:new Set,message:new Set}),N(this,"getNextZIndex",function(n){var a=n==="message"?Array.from(e.popupStack.message).pop()||n3:Array.from(e.popupStack.popup).pop()||t3;return a+a3}),N(this,"add",function(n){var a=e.getNextZIndex(n);return e.popupStack[n].add(a),n==="dialog"&&e.popupStack.popup.add(a),a}),N(this,"delete",function(n,a){e.popupStack[a].delete(n),a==="dialog"&&e.popupStack.popup.delete(n)}),N(this,"isLastDialog",function(n){return e.popupStack.dialog.size>1?n===Array.from(e.popupStack.dialog).pop():!0})}),nc=new r3;function H0(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.visible,a=e.runOnMounted,r=G(0),l=function(){r.value=nc.add(t)},o=function(){nc.delete(r.value,t)},i=function(){return t==="dialog"?nc.isLastDialog(r.value):!1};return le(function(){return n==null?void 0:n.value},function(u){u?l():o()},{immediate:!0}),a&&(Ae(function(){l()}),Ft(function(){o()})),{zIndex:sw(r),open:l,close:o,isLastDialog:i}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Wh(t){return Number.isNaN(Number(t))?t:"".concat(Number(t),"px")}var Kl,l3=function(e){Kl={x:e.clientX,y:e.clientY},setTimeout(function(){Kl=null},100)};typeof window<"u"&&window.document&&window.document.documentElement&&document.documentElement.addEventListener("click",l3,!0);function o3(t){var e=t,n=window.innerWidth||document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;e.addEventListener("mousedown",function(r){var l=r.clientX-e.offsetLeft,o=r.clientY-e.offsetTop,i=e.offsetWidth,u=e.offsetHeight;if(i>n||u>a)return;function c(s){var d=s.clientX-l,f=s.clientY-o;d<0&&(d=0),f<0&&(f=0),n-e.offsetWidth-d<0&&(d=n-e.offsetWidth),a-e.offsetHeight-f<0&&(f=a-e.offsetHeight),e.style.position="absolute",e.style.left="".concat(d,"px"),e.style.top="".concat(f,"px")}function v(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",v)}document.addEventListener("mousemove",c),document.addEventListener("mouseup",v),document.addEventListener("dragend",v)})}var i3=1,K0=ne({name:"TDialog",directives:{draggable:function(e,n){e&&n&&n.value&&o3(e)}},inheritAttrs:!1,props:Z6,emits:["update:visible"],setup:function(e,n){var a=this,r=ee("dialog"),l=ee(),o=_t(),i=xe(),u=G(null),c=Ke("dialog"),v=c.globalConfig,s=at({CloseIcon:pa,InfoCircleFilledIcon:io,CheckCircleFilledIcon:$a,ErrorCircleFilledIcon:ma}),d=s.CloseIcon,f=s.InfoCircleFilledIcon,p=s.CheckCircleFilledIcon,h=s.ErrorCircleFilledIcon,m=function(ue){var ie;(ie=e.onConfirm)===null||ie===void 0||ie.call(e,{e:ue})},b=function(ue){var ie;(ie=e.onCancel)===null||ie===void 0||ie.call(e,{e:ue}),se({e:ue,trigger:"cancel"})},y=nv({confirmBtnAction:m,cancelBtnAction:b}),C=y.getConfirmBtn,O=y.getCancelBtn,_=Ds(function(){return e.attach});ey();var $=G(),I=G(),x=B(function(){return e.mode==="modal"}),S=B(function(){return e.mode==="modeless"}),E=B(function(){return e.mode==="normal"}),D=B(function(){return e.mode==="full-screen"}),j=B(function(){return e.visible}),T=B(function(){return["".concat(r.value,"__mask"),!e.showOverlay&&"".concat(l.value,"-is-hidden")]}),F=B(function(){return E.value?[]:D.value?["".concat(r.value,"__position_fullscreen")]:["".concat(r.value,"__position"),!!e.top&&"".concat(r.value,"--top"),"".concat(e.placement&&!e.top?"".concat(r.value,"--").concat(e.placement):"")]}),w=B(function(){return[!E.value&&"".concat(r.value,"__wrap")]}),P=B(function(){if(D.value)return{};var re=e.top,ue={};if(re!==void 0){var ie=Wh(re);ue={paddingTop:ie}}return ue}),A=B(function(){var re=["".concat(r.value),"".concat(r.value,"__modal-").concat(e.theme),S.value&&e.draggable&&"".concat(r.value,"--draggable")];return D.value?re.push("".concat(r.value,"__fullscreen")):re.push.apply(re,["".concat(r.value,"--default"),"".concat(r.value,"--").concat(e.placement)]),re}),R=B(function(){return D.value?{}:{width:Wh(e.width)}}),k=H0("dialog",{visible:j}),M=k.isLastDialog;le(function(){return e.visible},function(re){if(re){var ue;(x.value&&!e.showInAttachedElement||D.value)&&(e.preventScrollThrough&&document.body.appendChild(I.value),Je(function(){Kl&&u.value&&(u.value.style.transformOrigin="".concat(Kl.x-u.value.offsetLeft,"px ").concat(Kl.y-u.value.offsetTop,"px"))})),(ue=document.activeElement)===null||ue===void 0||ue.blur()}else W();U(re)});function V(){var re,ue;(re=I.value.parentNode)===null||re===void 0||(ue=re.removeChild)===null||ue===void 0||ue.call(re,I.value)}function W(){clearTimeout($.value),$.value=setTimeout(function(){V()},150)}var U=function(ue){ue?(document.addEventListener("keydown",L),e.confirmOnEnter&&document.addEventListener("keydown",H)):(document.removeEventListener("keydown",L),e.confirmOnEnter&&document.removeEventListener("keydown",H))},H=function(ue){var ie=ue.target;if(ie.tagName.toLowerCase()!=="input"){var Ce=ue.code;if((Ce==="Enter"||Ce==="NumpadEnter")&&M()){var Oe;(Oe=e.onConfirm)===null||Oe===void 0||Oe.call(e,{e:ue})}}},L=function(ue){if(ue.code==="Escape"&&M()){var ie,Ce;(ie=e.onEscKeydown)===null||ie===void 0||ie.call(e,{e:ue}),((Ce=e.closeOnEscKeydown)!==null&&Ce!==void 0?Ce:v.value.closeOnEscKeydown)&&se({e:ue,trigger:"esc"})}},z=function(ue){var ie;if(e.showOverlay&&((ie=e.closeOnOverlayClick)!==null&&ie!==void 0?ie:v.value.closeOnOverlayClick)){var Ce;(Ce=e.onOverlayClick)===null||Ce===void 0||Ce.call(e,{e:ue}),se({e:ue,trigger:"overlay"})}},K=Q6(z),Y=K.onClick,q=K.onMousedown,X=K.onMouseup,J=function(ue){var ie;(ie=e.onCloseBtnClick)===null||ie===void 0||ie.call(e,{e:ue}),se({trigger:"close-btn",e:ue})},Z=function(){var ue;(ue=e.onOpened)===null||ue===void 0||ue.call(e)},oe=function(){var ue;S.value&&e.draggable&&u.value&&(u.value.style.position="relative",u.value.style.left="unset",u.value.style.top="unset"),(ue=e.onClosed)===null||ue===void 0||ue.call(e)},se=function(ue){var ie;(ie=e.onClose)===null||ie===void 0||ie.call(e,ue),n.emit("update:visible",!1)},me=function(ue){var ie,Ce=(ie=a._events)===null||ie===void 0?void 0:ie[ue];return!!(Ce!=null&&Ce.length)},Te=function(){var ue={info:g(f,{class:"".concat(l.value,"-is-info")},null),warning:g(h,{class:"".concat(l.value,"-is-warning")},null),danger:g(h,{class:"".concat(l.value,"-is-error")},null),success:g(p,{class:"".concat(l.value,"-is-success")},null)};return ue[e.theme]},Ie=function(){var ue=g("h5",{class:"title"},null),ie=g(d,null,null),Ce=o("default","body"),Oe=g("div",null,[O({cancelBtn:e.cancelBtn,globalCancel:v.value.cancel,className:"".concat(r.value,"__cancel")}),C({theme:e.theme,confirmBtn:e.confirmBtn,globalConfirm:v.value.confirm,globalConfirmBtnTheme:v.value.confirmBtnTheme,className:"".concat(r.value,"__confirm"),confirmLoading:e.confirmLoading})]),De=D.value?["".concat(r.value,"__header"),"".concat(r.value,"__header--fullscreen")]:"".concat(r.value,"__header"),Re=D.value?["".concat(r.value,"__close"),"".concat(r.value,"__close--fullscreen")]:"".concat(r.value,"__close"),Ee=e.theme==="default"?["".concat(r.value,"__body")]:["".concat(r.value,"__body__icon")],ge=i("footer",Oe);D.value&&ge?Ee.push("".concat(r.value,"__body--fullscreen")):D.value&&Ee.push("".concat(r.value,"__body--fullscreen--without-footer"));var Q=D.value?["".concat(r.value,"__footer"),"".concat(r.value,"__footer--fullscreen")]:"".concat(r.value,"__footer"),te=function(he){S.value&&e.draggable&&he.stopPropagation()};return g("div",{class:w.value},[g("div",{class:F.value,style:P.value,onClick:Y,onMousedown:q,onMouseup:X},[tr(g("div",{key:"dialog",class:A.value,style:R.value,ref:u},[g("div",{class:De,onMousedown:te},[g("div",{class:"".concat(r.value,"__header-content")},[Te(),i("header",ue)]),e.closeBtn?g("span",{class:Re,onClick:J},[i("closeBtn",ie)]):null]),g("div",{class:Ee,onMousedown:te},[Ce]),ge&&g("div",{class:Q,onMousedown:te},[ge])]),[[vw("draggable"),S.value&&e.draggable]])])])};return Ae(function(){var re=document.documentElement.scrollHeight>document.documentElement.clientHeight,ue=re?V0():0;I.value=document.createElement("style"),I.value.dataset.id="td_dialog_".concat(+new Date,"_").concat(i3+=1),I.value.innerHTML=`
        html body {
          overflow-y: hidden;
          width: calc(100% - `.concat(ue,`px);
        }
      `)}),Ft(function(){U(!1),V()}),{COMPONENT_NAME:r,isModal:x,isModeLess:S,isFullScreen:D,maskClass:T,dialogClass:A,dialogStyle:R,dialogEle:u,afterEnter:Z,afterLeave:oe,hasEventOn:me,renderDialog:Ie,teleportElement:_}},render:function(){var e=this,n=this.COMPONENT_NAME,a=(this.isModal||this.isFullScreen)&&g("div",{key:"mask",class:this.maskClass},null),r=this.renderDialog(),l=[a,r],o={zIndex:this.zIndex},i=["".concat(n,"__ctx"),N(N(N({},"".concat(n,"__ctx--fixed"),this.isModal||this.isFullScreen),"".concat(n,"__ctx--absolute"),this.isModal&&this.showInAttachedElement),"".concat(n,"__ctx--modeless"),this.isModeLess)];return g(Mr,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[g(nr,{duration:300,name:"".concat(n,"-zoom__vue"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave},{default:function(){return[(!e.destroyOnClose||e.visible)&&tr(g("div",ve({class:i,style:o},e.$attrs),[l]),[[el,e.visible]])]}})]}})}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Uh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Fl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Uh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Uh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var xu=function(e){var n=Fl({},e),a=document.createElement("div"),r=G(!1),l=n.className,o=n.style,i=l,u=function(h,m){if(h){if(i&&i!==h){var b;(b=a.firstElementChild.classList).remove.apply(b,ce(i.split(" ").map(function(y){return y.trim()})))}h.split(" ").forEach(function(y){a.firstElementChild.classList.add(y.trim())})}m&&(a.firstElementChild.style.cssText+=m),i=h},c=ne({setup:function(h,m){var b=m.expose,y=G(n);Ae(function(){r.value=!0,document.activeElement.blur(),Je(function(){u(l,o)})});var C=function(_){y.value=Fl(Fl({},n),_)};return b({update:C}),function(){var O=n.onClose||function(){r.value=!1};return delete n.className,delete n.style,He(K0,Fl({onClose:O,visible:r.value},y.value))}}}),v=Gi(c),s=v.mount(a),d=cl(n.attach);d?d.appendChild(a):console.error("attach is not exist");var f={show:function(){r.value=!0},hide:function(){r.value=!1},update:function(h){s.update(ga(h,["className","style"])),u(h.className,h.style)},destroy:function(){r.value=!1,setTimeout(function(){v.unmount(),a.remove()},300)},setConfirmLoading:function(h){s.update({confirmLoading:h})}};return f},u3=function(e){return xu(e)},c3=function(e){var n=Fl({},e);return n.cancelBtn=null,xu(n)},Mi={confirm:u3,alert:c3},av=xu;av.install=function(t){t.config.globalProperties.$dialog=xu,Object.keys(Mi).forEach(function(e){t.config.globalProperties.$dialog[e]=Mi[e]})};Object.keys(Mi).forEach(function(t){av[t]=Mi[t]});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var s3=ye(K0);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var v3=ne({name:"TImageViewerModal",props:{zIndex:Number,visible:Boolean,index:Number,images:$l.images,scale:Number,rotate:Number,mirror:Number,title:$l.title,currentImage:{type:Object,default:function(){return{}}},onRotate:Function,onZoomIn:Function,onZoomOut:Function,onMirror:Function,onReset:Function,onClose:$l.onClose,draggable:{type:Boolean,default:!0},viewerScale:{type:Object,default:function(){return{}}},showOverlay:Boolean,closeBtn:$l.closeBtn},setup:function(e){var n=ee(),a=xe(),r=B(function(){return{minWidth:e.viewerScale.minWidth,minHeight:e.viewerScale.minHeight}});return function(){return g(s3,{destroyOnClose:!0,attach:"body",onClose:e.onClose,visible:e.visible,placement:"center",mode:"modeless",width:1e3,cancelBtn:null,confirmBtn:null,draggable:e.draggable,zIndex:e.zIndex,showOverlay:e.showOverlay,class:"".concat(n.value,"-image-viewer__dialog"),header:a("title",""),footer:function(){return g("div",{class:"".concat(n.value,"-image-viewer-mini__footer")},[g(L0,{onZoomIn:e.onZoomIn,onZoomOut:e.onZoomOut,scale:e.scale,currentImage:e.currentImage,onRotate:e.onRotate,onMirror:e.onMirror,onReset:e.onReset},null)])}},{default:function(){return[g("div",{class:"".concat(n.value,"-image-viewer-mini__content"),style:r.value},[g(B0,{rotate:e.rotate,scale:e.scale,mirror:e.mirror,src:e.currentImage.mainImage,placementSrc:e.currentImage.thumbnail},null)])]}})}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Tr=function(t){return t.left="ArrowLeft",t.up="ArrowUp",t.right="ArrowRight",t.down="ArrowDown",t.esc="Escape",t}(Tr||{});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Yh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function d3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var f3=ne({name:"TImageViewer",props:d3({},$l),setup:function(e){var n,a=ee(),r=ee("image-viewer"),l=xe(),o=G(!0),i=B(function(){return U6(e)}),u=_e(e),c=u.index,v=u.visible,s=u.modelValue,d=Nt(c,(n=e.defaultIndex)!==null&&n!==void 0?n:0,e.onIndexChange,"index"),f=be(d,2),p=f[0],h=f[1],m=ht(v,s,e.defaultVisible,function(){},"visible"),b=be(m,2),y=b[0],C=b[1],O=G(!0),_=G(),$=B(function(){return[r.value,"".concat(r.value,"-preview-image"),N({},"".concat(a.value,"-is-hide"),!y.value)]}),I=B(function(){return["".concat(a.value,"-image-viewer__modal-header"),N({},"".concat(a.value,"-is-show"),o.value)]}),x=B(function(){var Oe;return(Oe=e.zIndex)!==null&&Oe!==void 0?Oe:2600}),S=function(){o.value=!o.value},E=q6(),D=E.mirror,j=E.onMirror,T=E.resetMirror,F=X6(e.imageScale),w=F.scale,P=F.onZoomIn,A=F.onZoomOut,R=F.resetScale,k=J6(),M=k.rotate,V=k.onRotate,W=k.resetRotate,U=function(){T(),R(),W()},H=B(function(){return W6(e.images)}),L=B(function(){var Oe;return(Oe=H.value[p.value])!==null&&Oe!==void 0?Oe:{mainImage:""}}),z=H0("dialog",{visible:y}),K=z.isLastDialog,Y=function(){var De=p.value-1;U(),h(De<0?0:De,{trigger:"prev"})},q=function(){var De=p.value+1;U(),h(De>=H.value.length?p.value:De,{trigger:"next"})},X=function(De){h(De,{trigger:"current"})},J=function(){C(!0)},Z=function(De){var Re;C(!1),(Re=e.onClose)===null||Re===void 0||Re.call(e,De)},oe=function(De){Z({e:De,trigger:"close-btn"})},se=function(De){e.closeOnOverlay&&Z({e:De,trigger:"overlay"})},me=function(De){switch(De.stopPropagation(),De.code){case Tr.left:Y();break;case Tr.right:q();break;case Tr.up:P();break;case Tr.down:A();break;case Tr.esc:e.closeOnEscKeydown&&K()&&Z({e:De,trigger:"esc"});break}},Te=G();le(function(){return y.value},function(Oe){clearTimeout(_.value),Oe?(O.value=!1,Je().then(function(){var De,Re;(De=Te.value)===null||De===void 0||(Re=De.focus)===null||Re===void 0||Re.call(De)}),U()):_.value=setTimeout(function(){O.value=!0},200)});var Ie=function(De){De.preventDefault();var Re=De.deltaY;Re>0?A():P()},re=B(function(){return{transform:"translateX(calc(-".concat(p.value," * (40px / 9 * 16 + 4px)))")}}),ue=function(){return g("div",{class:I.value},[g(ia,{icon:function(){return g(Yi,null,null)},class:"".concat(r.value,"__header-pre-bt"),onClick:S},null),g("div",{class:"".concat(r.value,"__header-prev")},[g("div",{class:"".concat(r.value,"__header-trans"),style:re.value},[H.value.map(function(De,Re){return g("div",{key:Re,class:["".concat(r.value,"__header-box"),N({},"".concat(a.value,"-is-active"),Re===p.value)]},[g(Xr,{src:De.thumbnail||De.mainImage,error:"",className:"".concat(r.value,"__header-img"),onClick:function(){return X(Re)}},null)])})])])])},ie=function(De){var Re=De==="prev"?0:180,Ee=l("navigationArrow",g(uo,{style:{transform:"rotate(".concat(Re,"deg)")},size:"24px"},null));return g(ia,{class:"".concat(r.value,"__modal-").concat(De,"-bt"),onClick:De==="prev"?Y:q,icon:function(){return Ee}},null)},Ce=function(){if(e.closeBtn!==!1)return g("div",{class:["".concat(r.value,"__modal-icon"),"".concat(r.value,"__modal-close-bt")],onClick:oe},[l("closeBtn",g(pa,{size:"24px"},null))])};return function(){return e.mode==="modeless"?g(Ct,null,[l("trigger",{params:{open:J}}),g(v3,{zIndex:x.value,visible:y.value,index:p.value,images:H.value,scale:w.value,rotate:M.value,mirror:D.value,currentImage:L.value,onRotate:V,onZoomIn:P,onZoomOut:A,onMirror:j,onReset:U,onClose:Z,draggable:e.draggable,showOverlay:i.value,title:e.title},null)]):g(Ct,null,[l("trigger",{params:{open:J}}),g(Mr,{to:"body"},{default:function(){return[g(nr,null,{default:function(){return[(y.value||!O.value)&&tr(g("div",{ref:Te,class:$.value,style:{zIndex:x.value},onWheel:Ie,tabindex:-1,onKeydown:me},[!!i.value&&g("div",{class:"".concat(r.value,"__modal-mask"),onClick:se},null),H.value.length>1&&g(Ct,null,[ue(),g("div",{class:"".concat(r.value,"__modal-index")},[e.title&&l("title"),"".concat(p.value+1,"/").concat(H.value.length)]),ie("prev"),ie("next")]),Ce(),g(L0,{onZoomIn:P,onZoomOut:A,onMirror:j,onReset:U,onRotate:V,scale:w.value,currentImage:L.value},null),g(B0,{scale:w.value,rotate:M.value,mirror:D.value,src:L.value.mainImage,placementSrc:L.value.thumbnail},null)]),[[el,y.value]])]}})]}})])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var rv=ye(f3);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var z0={asyncLoading:{type:[String,Function]},footer:{type:[String,Function]},header:{type:[String,Function]},layout:{type:String,default:"horizontal",validator:function(e){return e?["horizontal","vertical"].includes(e):!0}},scroll:{type:Object},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},split:Boolean,stripe:Boolean,onLoadMore:Function,onScroll:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var W0=ne({name:"TListItem",props:z0,setup:function(){var e=ee("list-item"),n=xe();return function(){var a=n("content"),r=n("default"),l=n("action");return g("li",{class:e.value},[g("div",{class:"".concat(e.value,"-main")},[r||a,l&&g("li",{class:"".concat(e.value,"__action")},[l])])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Gh="load-more",g3="loading";/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function qh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Xh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function h3(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=m3(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,i;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return l=c.done,c},e:function(c){o=!0,i=c},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(o)throw i}}}}function m3(t,e){if(t){if(typeof t=="string")return Jh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jh(t,e)}}function Jh(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}var p3=function(){var e=dl(),n=B(function(){var a=[],r=e("ListItem");if(ke(r)){var l=h3(r),o;try{for(l.s();!(o=l.n()).done;){var i=o.value;a.push(Xh(Xh({},i.props),{},{slots:i.children}))}}catch(u){l.e(u)}finally{l.f()}}return a});return{listItems:n}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var b3=function(e,n,a){var r=B(function(){return{data:a.value,scroll:e}}),l=I0(n,r),o=B(function(){return l.isVirtualScroll.value}),i=-1,u=function(d){var f=d.target||d.srcElement,p=f.scrollTop;i!==p?l.isVirtualScroll.value&&l.handleScroll():i=-1,i=p},c=B(function(){return{position:"absolute",width:"1px",height:"1px",transition:"transform 0.2s",transform:"translate(0, ".concat(l.scrollHeight.value,"px)"),"-ms-transform":"translate(0, ".concat(l.scrollHeight.value,"px)"),"-moz-transform":"translate(0, ".concat(l.scrollHeight.value,"px)"),"-webkit-transform":"translate(0, ".concat(l.scrollHeight.value,"px)")}}),v=B(function(){return{transform:"translate(0, ".concat(l.translateY.value,"px)"),"-ms-transform":"translate(0, ".concat(l.translateY.value,"px)"),"-moz-transform":"translate(0, ".concat(l.translateY.value,"px)"),"-webkit-transform":"translate(0, ".concat(l.translateY.value,"px)")}});return{virtualConfig:l,cursorStyle:c,listStyle:v,isVirtualScroll:o,onInnerVirtualScroll:u}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Zh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function y3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var C3=ne({name:"TList",props:y3({},z0),setup:function(e){var n=G(),a=Ke("list"),r=a.globalConfig,l=ee("list"),o=ft(),i=o.SIZE,u=xe(),c=p3(),v=c.listItems,s=b3(e.scroll,n,v),d=s.virtualConfig,f=s.cursorStyle,p=s.listStyle,h=s.isVirtualScroll,m=s.onInnerVirtualScroll,b=B(function(){return["".concat(l.value),i.value[e.size],N(N(N({},"".concat(l.value,"--split"),e.split),"".concat(l.value,"--stripe"),e.stripe),"".concat(l.value,"--vertical-action"),e.layout==="vertical")]}),y=function(){var x=u("header"),S=u("footer"),E=d.isVirtualScroll.value;return g(Ct,null,[x?g("div",{class:"".concat(l.value,"__header")},[x]):null,E?g(Ct,null,[g("div",{style:f.value},null),g("ul",{class:"".concat(l.value,"__inner"),style:p.value},[d.visibleData.value.map(function(D){return g(Ct,null,[g(W0,ga(D,"slots"),D.slots)])})])]):g("ul",{class:"".concat(l.value,"__inner")},[u("default")]),S?g("div",{class:"".concat(l.value,"__footer")},[S]):null])},C=function(x){var S,E=x.target,D=E.scrollTop,j=E.scrollHeight,T=E.clientHeight;h.value&&m(x),(S=e.onScroll)===null||S===void 0||S.call(e,{e:x,scrollTop:D,scrollBottom:j-T-D})},O=B(function(){return Be(e.asyncLoading)&&["loading","load-more"].includes(e.asyncLoading)?"".concat(l.value,"__load ").concat(l.value,"__load--").concat(e.asyncLoading):"".concat(l.value,"__load")}),_=function(){if(e.asyncLoading&&Be(e.asyncLoading)){if(e.asyncLoading===g3)return g("div",null,[g(bn,null,null),g("span",null,[r.value.loadingText])]);if(e.asyncLoading===Gh)return g("span",null,[r.value.loadingMoreText])}return u("asyncLoading")},$=function(x){var S;Be(e.asyncLoading)&&e.asyncLoading!==Gh||(S=e.onLoadMore)===null||S===void 0||S.call(e,{e:x})};return{COMPONENT_NAME:l,listClass:b,loadingClass:O,renderLoading:_,renderContent:y,handleScroll:C,handleLoadMore:$,listRef:n,isVirtualScroll:h}},render:function(){var e=this.renderContent();return e=[e,g("div",{class:this.loadingClass,onClick:this.handleLoadMore},[this.renderLoading()])],g("div",{class:this.listClass,onScroll:this.handleScroll,ref:"listRef"},[e])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var w3={avatar:{type:[String,Function]},description:{type:[String,Function]},image:{type:[String,Function]},title:{type:[String,Function]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var O3=ne({name:"TListItemMeta",props:w3,setup:function(e,n){var a=ee("list-item__meta"),r=_t(),l=xe(),o=function(){(e.avatar||n.slots.avatar)&&console.warn("`avatar` is going to be deprecated, please use `image` instead");var u=r("avatar","image");if(u)return Be(u)?g("div",{class:"".concat(a.value,"-avatar")},[g("img",{src:u},null)]):g("div",{class:"".concat(a.value,"-avatar")},[u])};return function(){var i=l("title"),u=l("description"),c=[o(),g("div",{class:"".concat(a.value,"-content")},[i&&g("h3",{class:"".concat(a.value,"-title")},[i]),u&&g("p",{class:"".concat(a.value,"-description")},[u])])];return g("div",{class:a.value},[c])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var u7=ye(C3),c7=ye(W0);ye(O3);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var _3={animation:{type:String,default:"none",validator:function(e){return e?["gradient","flashed","none"].includes(e):!0}},delay:{type:Number,default:0},loading:{type:Boolean,default:!0},rowCol:{type:Array},theme:{type:String,validator:function(e){return e?["text","avatar","paragraph","avatar-text","tab","article"].includes(e):!0}}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Qh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function S3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qh(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qh(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var x3={text:[1],avatar:[{type:"circle",size:"56px"}],paragraph:[1,1,{width:"70%"}],"avatar-text":[[{type:"circle"},{type:"text",height:"32px"}]],tab:[{height:"30px"},{height:"200px"}],article:[{type:"rect",height:"30px",width:"100%"},{type:"rect",height:"200px",width:"100%"},[{type:"text",height:"30px"},{type:"text",height:"30px"},{type:"text",height:"30px"}],[{type:"text",height:"30px"},{type:"text",height:"30px"}],[{type:"text",height:"30px"},{type:"text",height:"30px"}],[{type:"text",height:"30px"},{type:"text",height:"30px"}]]},P3=function(e){var n=["width","height","marginRight","marginLeft","margin","size","background","backgroundColor"],a=Object.create(null);return n.forEach(function(r){if(r in e){var l=ct(e[r])?"".concat(e[r],"px"):e[r];if(r==="size"){var o=[l,l];a.width=o[0],a.height=o[1]}else a[r]=l}}),a},E3=ne({name:"TSkeleton",props:S3({},_3),setup:function(e,n){var a=n.slots,r=G(!1),l=ee("skeleton"),o=_t(),i=function(s){return["".concat(l.value,"__col"),"".concat(l.value,"--type-").concat(s.type||"text"),N({},"".concat(l.value,"--animation-").concat(e.animation),e.animation)]},u=function(s){var d=[];return ke(s)?d=s:ct(s)?d=new Array(s).fill({type:"text"}):d=[s],d.map(function(f){return g("div",{class:i(f),style:P3(f)},[pe(f.content)?f.content(He):f.content])})},c=function(s){var d=s||e.rowCol,f=function(){return["".concat(l.value,"__row")]};return d.map(function(p){return g("div",{class:f()},[u(p)])})};return le(function(){return e.loading},function(v){if(!v||e.delay===0){r.value=v;return}setTimeout(function(){r.value=v},e.delay)},{immediate:!0}),function(){var v=o("default","content");if(a.default&&!r.value)return g("div",null,[v]);if(r.value){var s=[];return e.theme&&s.push(c(x3[e.theme])),e.rowCol&&s.push(c(e.rowCol)),!e.theme&&!e.rowCol&&s.push(c([1,1,1,{width:"70%"}])),g("div",{class:l.value},[s])}}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var T3=ye(E3);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var D3={animation:{type:Object},animationStart:Boolean,color:{type:String,validator:function(e){return e?["black","blue","red","orange","green"].includes(e):!0}},decimalPlaces:{type:Number},extra:{type:[String,Function]},format:{type:Function},loading:Boolean,prefix:{type:[String,Function]},separator:{type:String,default:","},suffix:{type:[String,Function]},title:{type:[String,Function]},trend:{type:String,validator:function(e){return e?["increase","decrease"].includes(e):!0}},trendPlacement:{type:String,default:"left",validator:function(e){return e?["left","right"].includes(e):!0}},unit:{type:[String,Function]},value:{type:Number}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var em=function(e){return 1-Math.abs(Math.pow(e-1,4))},I3=function(){function t(e){var n=this,a=e.from,r=e.to,l=e.duration,o=l===void 0?200:l,i=e.onStart,u=e.onUpdate,c=u===void 0?function(){}:u,v=e.onFinish;hl(this,t),N(this,"from",void 0),N(this,"to",void 0),N(this,"duration",void 0),N(this,"onStart",void 0),N(this,"onUpdate",void 0),N(this,"onFinish",void 0),N(this,"startTime",void 0),N(this,"started",void 0),N(this,"finished",void 0),N(this,"timer",void 0),N(this,"keys",void 0),N(this,"time",0),N(this,"elapsed",0),this.from=a,this.to=r,this.duration=o,this.onStart=i,this.onUpdate=c,this.onFinish=v,this.startTime=Date.now(),this.started=!1,this.finished=!1,this.timer=null,this.keys={},Object.entries(a).forEach(function(s){var d=be(s,2),f=d[0],p=d[1];n.to[f]===void 0&&(n.to[f]=p)}),Object.entries(r).forEach(function(s){var d=be(s,2),f=d[0],p=d[1];n.from[f]===void 0&&(n.from[f]=p)})}return ml(t,[{key:"update",value:function(){var n=this;if(this.time=Date.now(),!(this.time<this.startTime||this.finished)){if(this.elapsed>=this.duration){var a;this.finished=!0,(a=this.onFinish)===null||a===void 0||a.call(this,this.keys);return}var r=Math.min(this.time-this.startTime,this.duration);this.elapsed=r;var l=em(r/this.duration);if(Object.keys(this.to).forEach(function(i){var u=n.to[i]-n.from[i];n.keys[i]=n.from[i]+u*l}),!this.started){var o;(o=this.onStart)===null||o===void 0||o.call(this,this.keys),this.started=!0}this.onUpdate(this.keys)}}},{key:"polyfillStart",value:function(){var n=this,a=Date.now()-this.startTime,r=em(a/this.duration);this.timer=setInterval(function(){n.update(),n.finished&&clearInterval(n.timer)},r)}},{key:"normalStart",value:function(){var n=this,a=function r(){n.update(),n.timer=requestAnimationFrame(r),n.finished&&(cancelAnimationFrame(n.timer),n.timer=null)};a()}},{key:"start",value:function(){this.startTime=Date.now(),da()<10?this.polyfillStart():this.normalStart()}},{key:"stop",value:function(){da()<10?clearInterval(this.timer):cancelAnimationFrame(this.timer),this.timer=null}}]),t}();/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var j3={blue:"var(--td-brand-color)",red:"var(--td-error-color)",orange:"var(--td-warning-color)",green:"var(--td-success-color)"};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var $3=ne({name:"TStatistic",props:D3,setup:function(e,n){var a,r,l=n.expose,o=ee("statistic"),i=xe(),u=at({ArrowTriangleUpFilledIcon:KC,ArrowTriangleDownFilledIcon:zC}),c=u.ArrowTriangleUpFilledIcon,v=u.ArrowTriangleDownFilledIcon,s={increase:g(c,null,null),decrease:g(v,null,null)},d=B(function(){return ct(e.value)?e.value:0}),f=G((a=(r=e.animation)===null||r===void 0?void 0:r.valueFrom)!==null&&a!==void 0?a:e.value),p=B(function(){var _,$,I;return(_=($=e.decimalPlaces)!==null&&$!==void 0?$:(I=d.value.toString().split(".")[1])===null||I===void 0?void 0:I.length)!==null&&_!==void 0?_:0}),h=G(),m=_e(e),b=m.value,y=function(){var $,I,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:($=(I=e.animation)===null||I===void 0?void 0:I.valueFrom)!==null&&$!==void 0?$:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.value;if(x!==S){var E;h.value=new I3({from:{value:x},to:{value:S},duration:e.animation.duration,onUpdate:function(j){f.value=Number(j.value.toFixed(p.value))},onFinish:function(){f.value=S}}),(E=h.value)===null||E===void 0||E.start()}},C=B(function(){var _=f.value,$=e.decimalPlaces,I=e.separator;if(pe(e.format))return e.format(_);var x={minimumFractionDigits:$||0,maximumFractionDigits:$||20,useGrouping:!!I};return _=_.toLocaleString(void 0,x).replace(/,|，/g,I),_}),O=B(function(){var _=e.color;return{color:j3[_]||_}});return le(function(){return e.animationStart},function(_){e.animation&&_&&!h.value&&y()}),le(b,function(_){if(h.value){var $;($=h.value)===null||$===void 0||$.stop(),h.value=null}f.value=_,e.animationStart&&e.animation&&y()}),Ae(function(){return e.animation&&e.animationStart&&y()}),l({start:y}),function(){var _=e.trend?s[e.trend]:null,$=i("prefix")||(_&&e.trendPlacement!=="right"?_:null),I=i("suffix")||(_&&e.trendPlacement==="right"?_:null),x=i("title"),S=i("unit"),E=i("extra");return g("div",{class:o.value},[x&&g("div",{class:"".concat(o.value,"-title")},[x]),g(T3,{animation:"gradient",theme:"text",loading:!!e.loading},{default:function(){return[g("div",{class:"".concat(o.value,"-content"),style:O.value},[$&&g("span",{class:"".concat(o.value,"-content-prefix")},[$]),g("span",{class:"".concat(o.value,"-content-value")},[C.value]),S&&g("span",{class:"".concat(o.value,"-content-unit")},[S]),I&&g("span",{class:"".concat(o.value,"-content-suffix")},[I])])]}}),E&&g("div",{class:"".concat(o.value,"-extra")},[E])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var s7=ye($3);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var U0={animation:{type:String,default:"slide",validator:function(e){return e?["slide","fade"].includes(e):!0}},autoplay:{type:Boolean,default:!0},current:{type:Number,default:0},defaultCurrent:{type:Number,default:0},direction:{type:String,default:"horizontal",validator:function(e){return e?["horizontal","vertical"].includes(e):!0}},duration:{type:Number,default:300},height:{type:Number},interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},navigation:{type:[Object,Function]},stopOnHover:{type:Boolean,default:!0},theme:{type:String,default:"light",validator:function(e){return e?["light","dark"].includes(e):!0}},trigger:{type:String,default:"hover",validator:function(e){return e?["hover","click"].includes(e):!0}},type:{type:String,default:"default",validator:function(e){return e?["default","card"].includes(e):!0}},onChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function tm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function nm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var F3={index:{type:Number},currentIndex:{type:Number},isSwitching:{type:Boolean,default:!1},getWrapAttribute:{type:Function},swiperItemLength:{type:Number,default:0}},Vo=210/332,Ho=.415,Y0=ne({name:"TSwiperItem",props:nm(nm({},U0),F3),setup:function(e,n){var a=n.slots,r=ee(),l=B(function(){return e.index===e.currentIndex}),o=B(function(){return e.type!=="card"?0:e.currentIndex===0&&e.index===e.swiperItemLength-1?-1:e.currentIndex===e.swiperItemLength-1&&e.index===0?e.swiperItemLength:e.index<e.currentIndex-1&&e.currentIndex-e.index>=e.swiperItemLength/2?e.swiperItemLength+1:e.index>e.currentIndex+1&&e.index-e.currentIndex>=e.swiperItemLength/2?-2:e.index}),i=B(function(){if(e.type!=="card")return 0;var v=e.getWrapAttribute("offsetWidth")||0,s=!l.value&&e.swiperItemLength>2?o.value:e.index,d=Math.abs(s-e.currentIndex)<=1;return d?v*((s-e.currentIndex)*(1-Ho*Vo)-Ho+1)/2:s<e.currentIndex?-Ho*(1+Vo)*v/2:(2+Ho*(Vo-1))*v/2}),u=B(function(){if(e.type!=="card")return 0;var v=!l.value&&e.swiperItemLength>2?o.value:e.index,s=v===e.currentIndex,d=Math.round(Math.abs(v-e.currentIndex))<=1;return s?2:d?1:0}),c=B(function(){if(e.animation==="fade")return{opacity:l.value?1:0,transition:e.isSwitching?"opacity ".concat(e.duration/1e3,"s"):"",zIndex:l.value?1:0};if(e.type==="card"){var v=!l.value&&e.swiperItemLength>2?o.value:e.index,s=v===e.currentIndex;return{transform:"translateX(".concat(i.value,"px) scale(").concat(s?1:Vo,")"),transition:"transform ".concat(e.duration/1e3,"s ease"),zIndex:u.value}}return{}});return function(){var v;return g("div",{class:["".concat(r.value,"-swiper__container__item"),N(N(N({},"".concat(r.value,"-swiper__card"),e.type==="card"),"".concat(r.value,"-is-active"),e.type==="card"&&l.value),"".concat(r.value,"-swiper__fade"),e.animation==="fade")],style:c.value},[((v=a.default)===null||v===void 0?void 0:v.call(a,{}))||[]])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function am(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function El(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?am(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):am(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function k3(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var A3={placement:"inside",showSlideBtn:"always",size:"medium",type:"bars"},R3=ne({name:"TSwiper",props:El({},U0),emits:["update:current"],setup:function(e,n){var a=n.emit,r=ee(),l=xe(),o=at({ChevronLeftIcon:uo,ChevronRightIcon:Qr}),i=o.ChevronLeftIcon,u=o.ChevronRightIcon,c=null,v=0,s=!1,d=!1,f=G(e.current||e.defaultCurrent),p=G(e.current||e.defaultCurrent),h=G(!1),m=G(!1),b=G(!1),y=G(),C=dl(),O=G(0),_=B(function(){return El(El({},A3),Ze(e.navigation)?{}:e.navigation)}),$=B(function(){return e.type==="card"?!e.loop&&f.value+1>=O.value:!e.loop&&f.value+2>=O.value}),I=B(function(){return[e.autoplay,f.value,e.duration,e.interval]}),x=B(function(){return N(N(N(N(N(N({},"".concat(r.value,"-swiper__wrap"),!0),"".concat(r.value,"-swiper--inside"),_.value.placement==="inside"),"".concat(r.value,"-swiper--outside"),_.value.placement==="outside"),"".concat(r.value,"-swiper--vertical"),e.direction==="vertical"),"".concat(r.value,"-swiper--large"),_.value.size==="large"),"".concat(r.value,"-swiper--small"),_.value.size==="small")}),S=B(function(){var L=e.height?"".concat(e.height,"px"):"".concat(M("offsetHeight"),"px");if(e.type==="card"||e.animation==="fade")return{height:L};if(e.animation==="slide"){var z={transition:m.value?"transform ".concat(e.duration/1e3,"s ease"):""},K=f.value;return O.value>1&&(K+=1,(s||d)&&(z.transition="")),e.direction==="vertical"?(z.height=L,z.transform="translate3d(0, -".concat(K*100,"%, 0px)")):z.transform="translate3d(-".concat(K*100,"%, 0px, 0px)"),["msTransform","WebkitTransform"].forEach(function(Y){z[Y]=z.transform}),z}return{}}),E=function(){var z=C("SwiperItem");O.value=z.length;var K=z.map(function(X,J){var Z,oe=El(El({},e),X.props);return g(Y0,ve({index:J,currentIndex:f.value,isSwitching:m.value,getWrapAttribute:M,swiperItemLength:O.value},oe),k3(Z=X.children.default())?Z:{default:function(){return[Z]}})});if(e.animation==="slide"&&K.length>1){var Y=hv(K[0],{key:"swiper-item-append-".concat(0)}),q=hv(K[K.length-1],{key:"swiper-item-prepend-".concat(K.length-1)});K.unshift(q),K.push(Y)}return K},D=function(z,K){var Y,q=z%O.value;p.value=q,a("update:current",q),(Y=e.onChange)===null||Y===void 0||Y.call(e,q,K),m.value=!0,e.animation==="slide"&&O.value>1&&e.type!=="card"&&(q=z,s=!1,d=!1,z>=O.value&&(j(),setTimeout(function(){d=!0,f.value=0},e.duration)),f.value===0&&(O.value>2&&z===O.value-1||O.value===2&&z===0)&&(q=-1,p.value=O.value-1,j(),setTimeout(function(){s=!0,f.value=O.value-1},e.duration))),f.value=q},j=function(){c&&(clearTimeout(c),c=null)},T=function(){e.autoplay&&e.interval>0&&(j(),c=setTimeout(function(){D(f.value+1,{source:"autoplay"})},f.value===0?e.interval-(e.duration+50):e.interval))},F=function(){h.value=!0,e.stopOnHover&&j(),_.value.showSlideBtn==="hover"&&(b.value=!0)},w=function(){h.value=!1,$.value||T(),_.value.showSlideBtn==="hover"&&(b.value=!1)},P=function(z){e.trigger==="hover"&&D(z,{source:"hover"})},A=function(z){e.trigger==="click"&&D(z,{source:"click"})},R=function(z){if(!m.value)return e.type==="card"?D(f.value+1>=O.value?0:f.value+1,z):D(f.value+1,z)},k=function(z){if(!m.value)return f.value-1<0?e.animation==="slide"&&O.value===2?D(0,z):D(O.value-1,z):D(f.value-1,z)},M=function(z){var K;return(K=y.value)===null||K===void 0||(K=K.parentNode)===null||K===void 0?void 0:K[z]},V=function(){var z=f.value+1>O.value?1:f.value+1;return g("div",{class:"".concat(r.value,"-swiper__arrow")},[g("div",{class:"".concat(r.value,"-swiper__arrow-left"),onClick:function(){return k({source:"click"})}},[g(i,null,null)]),g("div",{class:"".concat(r.value,"-swiper__navigation-text-fraction")},[z,"/",O.value]),g("div",{class:"".concat(r.value,"-swiper__arrow-right"),onClick:function(){return R({source:"click"})}},[g(u,null,null)])])},W=function(){return b.value?g("div",{class:["".concat(r.value,"-swiper__arrow"),"".concat(r.value,"-swiper__arrow--default")]},[g("div",{class:"".concat(r.value,"-swiper__arrow-left"),onClick:function(){return k({source:"click"})}},[g(i,null,null)]),g("div",{class:"".concat(r.value,"-swiper__arrow-right"),onClick:function(){return R({source:"click"})}},[g(u,null,null)])]):null},U=function(){if(Ze(e.navigation))return e.navigation;var z=l("navigation");if(z&&Ze(z==null?void 0:z[0]))return z;if(_.value.type==="fraction")return g("div",{class:["".concat(r.value,"-swiper__navigation"),"".concat(r.value,"-swiper__navigation--fraction")]},[V()]);var K=C("SwiperItem");return g("ul",{class:["".concat(r.value,"-swiper__navigation"),N(N(N({},"".concat(r.value,"-swiper__navigation-bars"),_.value.type==="bars"),"".concat(r.value,"-swiper__navigation-dots"),_.value.type==="dots"),"".concat(r.value,"-swiper__navigation-dots-bar"),_.value.type==="dots-bar")]},[K.map(function(Y,q){return g("li",{key:q,class:["".concat(r.value,"-swiper__navigation-item"),N({},"".concat(r.value,"-is-active"),q===p.value)],onMouseenter:function(){return P(q)},onClick:function(){return A(q)}},[g("span",null,null)])})])},H=function(){return E()};return le(function(){return I.value},function(){T()}),le(function(){return m.value},function(){m.value&&(v&&clearTimeout(v),v=setTimeout(function(){m.value=!1,v=0,$.value&&j()},e.duration+50))}),le(function(){return e.current},function(){D(e.current,{source:"autoplay"})}),Ae(function(){T(),b.value=_.value.showSlideBtn==="always"}),function(){return g("div",{class:["".concat(r.value,"-swiper")],onMouseenter:F,onMouseleave:w,ref:y},[g("div",{class:x.value},[g("div",{class:["".concat(r.value,"-swiper__content"),N(N({},"".concat(r.value,"-swiper-fade"),e.animation==="fade"),"".concat(r.value,"-swiper-card"),e.type==="card")]},[g("div",{class:"".concat(r.value,"-swiper__container"),style:S.value},[H()])]),U(),W()])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var v7=ye(R3),d7=ye(Y0);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Jr={activeRowKeys:{type:Array,default:void 0},defaultActiveRowKeys:{type:Array,default:function(){return[]}},activeRowType:{type:String,default:""},allowResizeColumnWidth:{type:Boolean,default:void 0},attach:{type:[String,Function]},bordered:Boolean,bottomContent:{type:[String,Function]},cellEmptyContent:{type:[String,Function]},columns:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},disableDataPage:Boolean,disableSpaceInactiveRow:{type:Boolean,default:void 0},empty:{type:[String,Function],default:""},firstFullRow:{type:[String,Function]},fixedRows:{type:Array},footData:{type:Array,default:function(){return[]}},footerAffixProps:{type:Object},footerAffixedBottom:{type:[Boolean,Object],default:!1},footerSummary:{type:[String,Function]},headerAffixProps:{type:Object},headerAffixedTop:{type:[Boolean,Object],default:!1},height:{type:[String,Number]},horizontalScrollAffixedBottom:{type:[Boolean,Object]},hover:Boolean,keyboardRowHover:{type:Boolean,default:!0},lastFullRow:{type:[String,Function]},lazyLoad:Boolean,loading:{type:[Boolean,Function],default:void 0},loadingProps:{type:Object},locale:{type:Object},maxHeight:{type:[String,Number]},pagination:{type:Object},paginationAffixedBottom:{type:[Boolean,Object]},resizable:Boolean,rowAttributes:{type:[Object,Array,Function]},rowClassName:{type:[String,Object,Array,Function]},rowKey:{type:String,default:"id",required:!0},rowspanAndColspan:{type:Function},rowspanAndColspanInFooter:{type:Function},scroll:{type:Object},showHeader:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},stripe:Boolean,tableContentWidth:{type:String,default:""},tableLayout:{type:String,default:"fixed",validator:function(e){return e?["auto","fixed"].includes(e):!0}},topContent:{type:[String,Function]},verticalAlign:{type:String,default:"middle",validator:function(e){return e?["top","middle","bottom"].includes(e):!0}},onActiveChange:Function,onActiveRowAction:Function,onCellClick:Function,onColumnResizeChange:Function,onPageChange:Function,onRowClick:Function,onRowDblclick:Function,onRowMousedown:Function,onRowMouseenter:Function,onRowMouseleave:Function,onRowMouseover:Function,onRowMouseup:Function,onScroll:Function,onScrollX:Function,onScrollY:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function G0(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=n,r=0,l=t.length;r<l;r++){var o,i=t[r];if(e.set(i,n),i!=null&&(o=i.children)!==null&&o!==void 0&&o.length){var u=G0(i.children,e,n+1);u>a&&(a=u)}}return a}function q0(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e,a=(t==null?void 0:t.children)||[],r=0,l=a.length;r<l;r++){var o=a[r];o.children?n=q0(o,n):n+=1}return n}function M3(t){var e=new Map,n=G0(t,e),a=new Map,r=function o(i,u){for(var c=0,v=i.length;c<v;c++){var s,d=i[c],f=d.children?1:n-e.get(d)+1,p=d.children?q0(d):1,h={};f>1&&(h.rowspan=f),p>1&&(h.colspan=p),a.set(d,h),d!=null&&(s=d.children)!==null&&s!==void 0&&s.length?o(d.children,u):u.push(d)}},l=[];return r(t,l),{rowspanAndColspanMap:a,leafColumns:l}}function N3(t){var e=function a(r,l){for(var o,i=[],u=[],c=0,v=r.length;c<v;c++){var s,d=r[c],f=[d];i=i.concat(f),d!=null&&(s=d.children)!==null&&s!==void 0&&s.length&&(u=u.concat(d.children))}return(o=u)!==null&&o!==void 0&&o.length&&a(u,l),l.push(i),i},n=[];return e(t,n),n=n.reverse(),n}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function on(){var t=ee(),e={classPrefix:t.value,tableBaseClass:{table:"".concat(t.value,"-table"),columnResizableTable:"".concat(t.value,"-table--column-resizable"),overflowVisible:"".concat(t.value,"-table--overflow-visible"),body:"".concat(t.value,"-table__body"),content:"".concat(t.value,"-table__content"),topContent:"".concat(t.value,"-table__top-content"),bottomContent:"".concat(t.value,"-table__bottom-content"),paginationWrap:"".concat(t.value,"-table__pagination-wrap"),tdLastRow:"".concat(t.value,"-table__td-last-row"),tdFirstCol:"".concat(t.value,"-table__td-first-col"),thCellInner:"".concat(t.value,"-table__th-cell-inner"),tableRowEdit:"".concat(t.value,"-table--row-edit"),cellEditable:"".concat(t.value,"-table__cell--editable"),cellEditWrap:"".concat(t.value,"-table__cell-wrap"),bordered:"".concat(t.value,"-table--bordered"),striped:"".concat(t.value,"-table--striped"),hover:"".concat(t.value,"-table--hoverable"),loading:"".concat(t.value,"-table--loading"),rowspanAndColspan:"".concat(t.value,"-table--rowspan-colspan"),empty:"".concat(t.value,"-table__empty"),emptyRow:"".concat(t.value,"-table__empty-row"),headerFixed:"".concat(t.value,"-table--header-fixed"),columnFixed:"".concat(t.value,"-table--column-fixed"),widthOverflow:"".concat(t.value,"-table--width-overflow"),multipleHeader:"".concat(t.value,"-table--multiple-header"),footerAffixed:"".concat(t.value,"-table--footer-affixed"),horizontalBarAffixed:"".concat(t.value,"-table--horizontal-bar-affixed"),affixedHeader:"".concat(t.value,"-table--affixed-header"),affixedHeaderElm:"".concat(t.value,"-table__affixed-header-elm"),affixedFooterElm:"".concat(t.value,"-table__affixed-footer-elm"),affixedFooterWrap:"".concat(t.value,"-table__affixed-footer-wrap"),scrollbarDivider:"".concat(t.value,"-table__scroll-bar-divider"),fullHeight:"".concat(t.value,"-table--full-height"),resizeLine:"".concat(t.value,"-table__resize-line"),obviousScrollbar:"".concat(t.value,"-table__scrollbar--obvious"),affixedHeaderWrap:"".concat(t.value,"-table__affixed-header-elm-wrap")},tdAlignClasses:{left:"".concat(t.value,"-align-left"),right:"".concat(t.value,"-align-right"),center:"".concat(t.value,"-align-center")},tableHeaderClasses:{header:"".concat(t.value,"-table__header"),thBordered:"".concat(t.value,"-table__header-th--bordered"),fixed:"".concat(t.value,"-table__header--fixed"),multipleHeader:"".concat(t.value,"-table__header--multiple")},tableFooterClasses:{footer:"".concat(t.value,"-table__footer"),fixed:"".concat(t.value,"-table__footer--fixed")},tableAlignClasses:{top:"".concat(t.value,"-vertical-align-top"),middle:"".concat(t.value,"-vertical-align-middle"),bottom:"".concat(t.value,"-vertical-align-bottom")},tableRowFixedClasses:{top:"".concat(t.value,"-table__row--fixed-top"),bottom:"".concat(t.value,"-table__row--fixed-bottom"),firstBottom:"".concat(t.value,"-table__row--fixed-bottom-first"),withoutBorderBottom:"".concat(t.value,"-table__row--without-border-bottom")},tableColFixedClasses:{left:"".concat(t.value,"-table__cell--fixed-left"),right:"".concat(t.value,"-table__cell--fixed-right"),lastLeft:"".concat(t.value,"-table__cell--fixed-left-last"),firstRight:"".concat(t.value,"-table__cell--fixed-right-first"),leftShadow:"".concat(t.value,"-table__content--scrollable-to-left"),rightShadow:"".concat(t.value,"-table__content--scrollable-to-right")},tableLayoutClasses:{auto:"".concat(t.value,"-table--layout-auto"),fixed:"".concat(t.value,"-table--layout-fixed")},tdEllipsisClass:"".concat(t.value,"-table-td--ellipsis"),tableFullRowClasses:{base:"".concat(t.value,"-table__row--full"),innerFullRow:"".concat(t.value,"-table__row-full-inner"),innerFullElement:"".concat(t.value,"-table__row-full-element"),firstFullRow:"".concat(t.value,"-table__first-full-row"),lastFullRow:"".concat(t.value,"-table__last-full-row")},tableExpandClasses:{iconBox:"".concat(t.value,"-table__expand-box"),iconCell:"".concat(t.value,"-table__expandable-icon-cell"),row:"".concat(t.value,"-table__expanded-row"),rowInner:"".concat(t.value,"-table__expanded-row-inner"),expanded:"".concat(t.value,"-table__row--expanded"),collapsed:"".concat(t.value,"-table__row--collapsed")},tableSortClasses:{sortable:"".concat(t.value,"-table__cell--sortable"),sortColumn:"".concat(t.value,"-table__sort-column"),title:"".concat(t.value,"-table__cell--title"),trigger:"".concat(t.value,"-table__cell--sort-trigger"),doubleIcon:"".concat(t.value,"-table__double-icons"),sortIcon:"".concat(t.value,"-table__sort-icon"),iconDirection:{asc:"".concat(t.value,"-table-sort-asc"),desc:"".concat(t.value,"-table-sort-desc")},iconActive:"".concat(t.value,"-table__sort-icon--active"),iconDefault:"".concat(t.value,"-icon-sort--default")},tableSelectedClasses:{selected:"".concat(t.value,"-table__row--selected"),disabled:"".concat(t.value,"-table__row--disabled"),checkCell:"".concat(t.value,"-table__cell-check")},tableFilterClasses:{filterable:"".concat(t.value,"-table__cell--filterable"),popup:"".concat(t.value,"-table__filter-pop"),icon:"".concat(t.value,"-table__filter-icon"),popupContent:"".concat(t.value,"-table__filter-pop-content"),result:"".concat(t.value,"-table__filter-result"),inner:"".concat(t.value,"-table__row-filter-inner"),bottomButtons:"".concat(t.value,"-table__filter--bottom-buttons"),contentInner:"".concat(t.value,"-table__filter-pop-content-inner"),iconWrap:"".concat(t.value,"-table__filter-icon-wrap")},asyncLoadingClass:"".concat(t.value,"-table__async-loading"),isFocusClass:"".concat(t.value,"-is-focus"),isLoadingClass:"".concat(t.value,"-is-loading"),isLoadMoreClass:"".concat(t.value,"-is-load-more"),tableTreeClasses:{col:"".concat(t.value,"-table__tree-col"),inlineCol:"".concat(t.value,"-table__tree-col--inline"),icon:"".concat(t.value,"-table__tree-op-icon"),leafNode:"".concat(t.value,"-table__tree-leaf-node")},tableDraggableClasses:{rowDraggable:"".concat(t.value,"-table--row-draggable"),rowHandlerDraggable:"".concat(t.value,"-table--row-handler-draggable"),colDraggable:"".concat(t.value,"-table--col-draggable"),handle:"".concat(t.value,"-table__handle-draggable"),ghost:"".concat(t.value,"-table__ele--draggable-ghost"),chosen:"".concat(t.value,"-table__ele--draggable-chosen"),dragging:"".concat(t.value,"-table__ele--draggable-dragging"),dragSortTh:"".concat(t.value,"-table__th--drag-sort")},virtualScrollClasses:{cursor:"".concat(t.value,"-table__virtual-scroll-cursor"),header:"".concat(t.value,"-table__virtual-scroll-header")},positiveRotate90:"".concat(t.value,"-positive-rotate-90"),negativeRotate180:"".concat(t.value,"-negative-rotate-180")};return e}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function rm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function L3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function B3(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var lv=ne({name:"TEllipsis",props:{content:{type:[String,Function]},default:{type:[String,Function]},tooltipContent:{type:[String,Number,Function]},placement:String,attach:[String,Function],tooltipProps:Object,zIndex:Number,overlayClassName:String,classPrefix:{type:String,default:"t"}},setup:function(e){var n=G(),a=G(!1),r=B(function(){return["".concat(e.classPrefix,"-table__ellipsis"),"".concat(e.classPrefix,"-text-ellipsis")]}),l=B(function(){return["".concat(e.classPrefix,"-table__ellipsis-content"),e.overlayClassName]}),o=function(){n.value&&(a.value=yi(n.value))},i=function(){n.value&&(a.value=yi(n.value))},u=Ra(function(c){c.type==="mouseleave"?i():o()},80);return{root:n,isOverflow:a,ellipsisClasses:r,innerEllipsisClassName:l,onMouseAround:u}},render:function(){var e=kn(this,"default","content"),n=g("div",{ref:"root",class:this.ellipsisClasses,onMouseenter:this.onMouseAround,onMouseleave:this.onMouseAround},[e]),a=null,r=this.tooltipProps;if(this.isOverflow){var l=L3({content:this.tooltipContent||function(){return e},destroyOnClose:!0,zIndex:this.zIndex,attach:this.attach,placement:this.placement,overlayClassName:r!=null&&r.overlayClassName?this.innerEllipsisClassName.concat(r.overlayClassName):this.innerEllipsisClassName},r);a=g(er,l,B3(n)?n:{default:function(){return[n]}})}else a=n;return a}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function lm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function om(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function V3(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}function Pu(t,e,n){var a={col:e,colIndex:n};return pe(e.title)?e.title(He,a):Be(e.title)&&t[e.title]?t[e.title](a):pe(e.render)&&e.render(He,om(om({},a),{},{type:"title",row:{},rowIndex:-1}))||e.title}function X0(t){var e=on(),n=e.tableSortClasses,a=e.tableFilterClasses,r=B(function(){return M3(t.columns)}),l=B(function(){return N3(t.columns)}),o=B(function(){return l.value.length>1}),i=function(c,v,s,d,f,p){var h=be(c,3),m=h[0],b=h[1],y=h[2],C=N(N({},n.sortable,b),a.filterable,y),O=pe(d)?d(He,{col:v,colIndex:s}):void 0,_=d!==void 0?!!d:!!v.ellipsis;return g("div",{class:C},[g("div",{class:n.title},[_?g(lv,{placement:"bottom",attach:t.attach||(f?function(){return f}:void 0),tooltipContent:O&&function(){return O},tooltipProps:qe(d)==="object"?d:void 0,classPrefix:p==null?void 0:p.classPrefix,overlayClassName:p==null?void 0:p.ellipsisOverlayClassName},V3(m)?m:{default:function(){return[m]}}):g("div",null,[m]),!!(b||y)&&g("div",{class:a.iconWrap},[b,y])])])};return{thList:l,isMultipleHeader:o,spansAndLeafNodes:r,renderTitleWidthIcon:i}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function im(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function H3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?im(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):im(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var K3=80,z3=600,um=8;function W3(t){var e=t.isWidthOverflow,n=t.tableContentRef,a=t.showColumnShadow,r=t.getThWidthList,l=t.updateThWidthList,o=t.setTableElmWidth,i=t.updateTableAfterColumnResize,u=t.onColumnResizeChange,c=G(),v=G({}),s=G([]),d,f;Ae(function(){var j=typeof document<"u";d=j?document.onselectstart:null,f=j?document.ondragstart:null});var p=function(T,F,w){for(var P=F;T[P]&&T[P].resizable===!1;)w==="next"?P+=1:P-=1;return T[P]},h=function j(T,F){T&&(s.value=T,T.forEach(function(w,P){var A=p(T,P-1,"prev"),R=p(T,P+1,"next"),k=F?v.value[F.colKey].prev:R,M=F?v.value[F.colKey].next:A,V=P===0?k:A,W=P===T.length-1?M:R;v.value[w.colKey]={prev:V,next:W,current:{prevSibling:p(T,P-1,"prev"),nextSibling:p(T,P+1,"next")}},j(w.children,w)}))},m={isDragging:!1,draggingCol:null,draggingStart:0,effectCol:"next"},b=jt({display:"none",height:"10px",left:"10px",bottom:"0"}),y=function(T){return T.fixed==="right"&&a.right},C=function(T,F){if(!(!c.value||m.isDragging||!T.target)){var w=T.target.closest("th"),P=w.getAttribute("data-colkey");if(s.value.find(function(q){return q.colKey===P})){var A=w.getBoundingClientRect(),R=A.right-T.pageX<=um,k=T.pageX-A.left<=um,M=y(F);if(R||M){var V,W=(V=F.resizable)!==null&&V!==void 0?V:!0;if(W){w.style.cursor=R||M&&k?"col-resize":"";var U=R&&!M||M&&k;m.draggingCol=U?w:w.nextElementSibling,m.effectCol="next";return}}else if(k){var H=w.previousElementSibling;if(H){var L,z,K=(L=v.value[F.colKey])===null||L===void 0?void 0:L.prev,Y=(z=K==null?void 0:K.resizable)!==null&&z!==void 0?z:!0;if(Y){w.style.cursor="col-resize",m.draggingCol=H,m.effectCol="prev";return}}}w.style.cursor="",m.draggingCol=null,m.effectCol=null}}},O=function(T){var F,w,P=ct(T.minWidth)?T.minWidth:parseInt(T.minWidth||"0",10);return{minColWidth:Math.max(((F=T.resize)===null||F===void 0?void 0:F.minWidth)||K3,P),maxColWidth:((w=T.resize)===null||w===void 0?void 0:w.maxWidth)||z3}},_=function(T,F,w,P){var A=w.right-P.left,R=w.left-P.left,k=m.effectCol==="next"?T:F,M=O(k),V=M.minColWidth,W=M.maxColWidth;return{resizeLinePos:A,minResizeLineLeft:R+V,maxResizeLineLeft:R+W}},$=function(T,F,w,P,A){var R=P.left-A.left,k=T.dataset.colkey===F.colKey?F:w,M=P.left-A.left,V=O(k),W=V.minColWidth,U=V.maxColWidth;return{resizeLinePos:R,minResizeLineLeft:M+(P.width-U),maxResizeLineLeft:M+(P.width-W)}},I=function(T,F){var w=T.left-F.left,P=T.left-F.left;return{resizeLinePos:w,minResizeLineLeft:P,maxResizeLineLeft:P}},x=function(T){var F=0;return s.value.forEach(function(w){F+=T[w.colKey]}),F},S=function(T,F,w,P){var A=!0;if(F){var R=O(F),k=R.minColWidth,M=R.maxColWidth,V=T[F.colKey]+w;A=V<k||V>M}return!(A||e.value||P===s.value.length-1)},E=function(T,F,w,P){return F?_(T,F,w,P):I(w,P)},D=function(T,F,w){var P,A,R;if(m.draggingCol){var k=m.draggingCol,M=k.getBoundingClientRect(),V=(P=n.value)===null||P===void 0?void 0:P.getBoundingClientRect(),W=(A=v.value[F.colKey])===null||A===void 0?void 0:A.next,U=(R=v.value[F.colKey])===null||R===void 0?void 0:R.prev,H=y(F)?$(k,F,W,M,V):E(F,W,M,V),L=H.resizeLinePos,z=H.minResizeLineLeft,K=H.maxResizeLineLeft;if(m.isDragging=!0,m.draggingStart=T.x,c!=null&&c.value){b.display="block",b.height="".concat(V.bottom-M.top,"px"),b.left="".concat(L,"px");var Y=n.value.parentElement.getBoundingClientRect();b.bottom="".concat(Y.bottom-V.bottom,"px")}var q=function J(){var Z;if(m.isDragging){var oe=L-parseFloat(b.left)||0,se=r("calculate"),me=(Z=v.value[F.colKey])===null||Z===void 0?void 0:Z.current,Te=m.effectCol==="next"?me.nextSibling:me.prevSibling,Ie=H3({},se),re=F.resizable!==!1?F:Te,ue=m.effectCol==="next"?me.nextSibling:F,ie=S(Ie,ue,oe,w);m.effectCol==="next"?y(F)?k.dataset.colkey!==F.colKey?Ie[W.colKey]+=oe:Ie[re.colKey]+=oe:(Ie[re.colKey]-=oe,ie&&(Ie[W.colKey]+=oe)):m.effectCol==="prev"&&(ie&&(Ie[re.colKey]+=oe),U&&(Ie[U.colKey]-=oe)),l(Ie);var Ce=x(Ie);o(Math.round(Ce)),i(),m.isDragging=!1,m.draggingCol=null,m.effectCol=null,k.style.cursor="",b.display="none",b.left="0",Xe(document,"mouseup",J),Xe(document,"mousemove",X),document.onselectstart=d,document.ondragstart=f,u==null||u({columnsWidth:Ie})}},X=function(Z){if(m.isDragging){var oe=L+Z.x-m.draggingStart;b.left="".concat(Math.min(Math.max(oe,z),K),"px")}};ot(document,"mouseup",q),ot(document,"mousemove",X),document.onselectstart=function(){return!1},document.ondragstart=function(){return!1}}};return{resizeLineRef:c,resizeLineStyle:b,onColumnMouseover:C,onColumnMousedown:D,setEffectColMap:h}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function U3(){}var Y3=U3,ac=Lp,G3=Y3,q3=Gs,X3=1/0,J3=ac&&1/q3(new ac([,-0]))[1]==X3?function(t){return new ac(t)}:G3,Z3=J3,Q3=hu,e8=Us,t8=Ys,n8=mu,a8=Z3,r8=Gs,l8=200;function o8(t,e,n){var a=-1,r=e8,l=t.length,o=!0,i=[],u=i;if(n)o=!1,r=t8;else if(l>=l8){var c=e?null:a8(t);if(c)return r8(c);o=!1,r=n8,u=new Q3}else u=e?[]:i;e:for(;++a<l;){var v=t[a],s=e?e(v):v;if(v=n||v!==0?v:0,o&&s===s){for(var d=u.length;d--;)if(u[d]===s)continue e;e&&u.push(s),i.push(v)}else r(u,s,n)||(u!==i&&u.push(s),i.push(v))}return i}var i8=o8,u8=bH,c8=sy,cm=i8;function s8(t,e,n){var a=t.length;if(a<2)return a?cm(t[0]):[];for(var r=-1,l=Array(a);++r<a;)for(var o=t[r],i=-1;++i<a;)i!=r&&(l[r]=u8(l[r]||o,t[i],e,n));return cm(c8(l,1),e,n)}var v8=s8,d8=Hp,f8=lu,g8=v8,h8=Cs,m8=uy,p8=f8(function(t){var e=m8(t);return e=typeof e=="function"?e:void 0,g8(d8(t,h8),void 0,e)}),b8=p8;function sm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function _r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function ov(t,e,n,a){var r=n==null?void 0:n.get(t.colKey||e);if(!r)return{};var l=N(N(N(N({},a.left,t.fixed==="left"),a.right,t.fixed==="right"),a.lastLeft,t.fixed==="left"&&r.lastLeftFixedCol),a.firstRight,t.fixed==="right"&&r.firstRightFixedCol),o={left:t.fixed==="left"?"".concat(r.left,"px"):void 0,right:t.fixed==="right"?"".concat(r.right,"px"):void 0};return{style:o,classes:l}}function y8(t,e,n,a,r,l){if(!a||!a.length)return{style:void 0,classes:void 0};var o=e<a[0],i=e>n-1-a[1],u=n-a[1],c=(r==null?void 0:r.get(t))||{},v=N(N(N(N({},l.top,o),l.bottom,i),l.firstBottom,e===u),l.withoutBorderBottom,e===u-1),s={top:o?"".concat(c.top,"px"):void 0,bottom:i?"".concat(c.bottom,"px"):void 0};return{style:s,classes:v}}function C8(t,e,n,a){var r=_e(t),l=r.columns,o=r.tableLayout,i=r.tableContentWidth,u=r.fixedRows,c=r.firstFullRow,v=r.lastFullRow,s=r.maxHeight,d=r.headerAffixedTop,f=r.footerAffixedBottom,p=r.bordered,h=r.resizable,m=r.allowResizeColumnWidth,b=G([]),y=G(),C=G(),O=G(!1),_=G(!1),$=G(),I=G(6),x=G(new Map),S=jt({left:!1,right:!1}),E=G({left:0,top:0}),D=G(0),j=G(0),T=G({}),F=G(!1),w=G(!1),P=G(!1),A=B(function(){var ge,Q;return(ge=(Q=m.value)!==null&&Q!==void 0?Q:h.value)!==null&&ge!==void 0?ge:!1}),R=B(function(){var ge;return!(t.headerAffixedTop||t.footerAffixedBottom||t.horizontalScrollAffixedBottom||((ge=t.scroll)===null||ge===void 0?void 0:ge.type)==="virtual")});function k(ge){$.value=ge}function M(ge){for(var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Map,te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],ae=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,he=arguments.length>4?arguments[4]:void 0,Se=0,je=ge.length;Se<je;Se++){var $e,Fe=ge[Se];["left","right"].includes(Fe.fixed)&&(F.value=!0),Fe.fixed==="right"&&(w.value=!0),Fe.fixed==="left"&&(P.value=!0);var Ue=Fe.colKey||Se,Qe={col:Fe,parent:he,index:Se};Q.set(Ue,Qe),($e=Fe.children)!==null&&$e!==void 0&&$e.length&&M(Fe.children,Q,te,ae+1,Qe),te[ae]?te[ae].push(Qe):te[ae]=[Qe]}return{newColumnsMap:Q,levelNodes:te}}var V=function ge(Q,te){for(var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=0,Se=Q.length;he<Se;he++){var je,$e=Q[he];if($e.fixed==="right")return;for(var Fe=te.get($e.colKey||he),Ue=he-1;Ue>=0&&Q[Ue].fixed!=="left";)Ue-=1;var Qe=Q[Ue],st=he===0&&(ae==null?void 0:ae.left)||0,kt=te.get((Qe==null?void 0:Qe.colKey)||he-1);Fe&&(Fe.left=((kt==null?void 0:kt.left)||st)+((kt==null?void 0:kt.width)||0)),(je=$e.children)!==null&&je!==void 0&&je.length&&ge($e.children,te,Fe)}},W=function ge(Q,te){for(var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=Q.length-1;he>=0;he--){var Se,je=Q[he];if(je.fixed==="left")return;for(var $e=te.get(je.colKey||he),Fe=he+1;Fe<Q.length&&Q[Fe].fixed!=="right";)Fe+=1;var Ue=Q[Fe],Qe=he===Q.length-1&&(ae==null?void 0:ae.right)||0,st=te.get((Ue==null?void 0:Ue.colKey)||he+1);$e&&($e.right=((st==null?void 0:st.right)||Qe)+((st==null?void 0:st.width)||0)),(Se=je.children)!==null&&Se!==void 0&&Se.length&&ge(je.children,te,$e)}},U=function(Q,te){if(Q){for(var ae=0,he=Q.length;ae<he;ae++)for(var Se=Q[ae].children,je=0,$e=Se.length;je<$e;je++){var Fe,Ue=Se[je],Qe=Ue.dataset.colkey;Qe||We.warn("TDesign Table","".concat(Ue.innerText," missing colKey. colKey is required for fixed column feature."));var st=te.get(Qe||je);st!=null&&(Fe=st.col)!==null&&Fe!==void 0&&Fe.fixed&&te.set(Qe,_r(_r({},st),{},{width:Ue.getBoundingClientRect().width}))}V(l.value,te),W(l.value,te)}},H=function(Q,te,ae,he){for(var Se=u.value||[],je=be(Se,2),$e=je[0],Fe=je[1],Ue=t.data,Qe=t.rowKey,st=Qe===void 0?"id":Qe,kt=0;kt<$e;kt++){var ea=Q[kt],Ca=fe(Ue[kt],st),Yt=te.get(Ca)||{},En=fe(Ue[kt-1],st),gr=te.get(En)||{},hr=0;kt===0&&(hr=(ae==null?void 0:ae.getBoundingClientRect().height)||0),Yt.top=(gr.top||hr)+(gr.height||0),te.set(Ca,_r(_r({},Yt),{},{height:(ea==null?void 0:ea.getBoundingClientRect().height)||0}))}for(var un=Ue.length-1;un>=Ue.length-Fe;un--){var et=Q[un],Ye=fe(Ue[un],st),mt=te.get(Ye)||{},zt=fe(Ue[un+1],st),At=te.get(zt)||{},Zt=0;un===Ue.length-1&&(Zt=(he==null?void 0:he.getBoundingClientRect().height)||0),mt.bottom=(At.bottom||Zt)+(At.height||0),te.set(Ye,_r(_r({},mt),{},{height:(et==null?void 0:et.getBoundingClientRect().height)||0}))}},L=function(Q,te){if(x.value.clear(),!!Q){var ae=Q.querySelector("thead");ae&&U(ae.children,te);var he=Q.querySelector("tbody"),Se=Q.querySelector("tfoot");he&&H(he.children,te,ae,Se),x.value=te}},z,K=function(Q,te){if(!(!F.value||!Q)){var ae=Q.scrollLeft;if(!(z===ae&&(!te||!te.skipScrollLimit))){z=ae;var he=Q.clientWidth+ae<Q.scrollWidth,Se=ae>0;S.left===Se&&S.right===he||(S.left=Se&&P.value,S.right=he&&w.value)}}},Y=function(Q){for(var te=0;te<Q.length;te++)for(var ae=Q[te],he=0,Se=ae.length;he<Se;he++){var je=ae[he],$e=ae[he+1],Fe=je.parent,Ue=!Fe||(Fe==null?void 0:Fe.lastLeftFixedCol);Ue&&je.col.fixed==="left"&&($e==null?void 0:$e.col.fixed)!=="left"&&(je.lastLeftFixedCol=!0);var Qe=ae[he-1],st=!Fe||(Fe==null?void 0:Fe.firstRightFixedCol);st&&je.col.fixed==="right"&&(Qe==null?void 0:Qe.col.fixed)!=="right"&&(je.firstRightFixedCol=!0)}},q=function(){var Q=M(l.value),te=Q.newColumnsMap,ae=Q.levelNodes;Y(ae);var he=setTimeout(function(){var Se;(F.value||(Se=u.value)!==null&&Se!==void 0&&Se.length)&&L(C.value,te),clearTimeout(he)},0);return function(){clearTimeout(he)}},X=function(){var Q=setTimeout(function(){if(C.value){O.value=C.value.scrollHeight>C.value.clientHeight,_.value=C.value.scrollWidth>C.value.clientWidth;var te=C.value.getBoundingClientRect();E.value={top:te.top,left:te.left},clearTimeout(Q)}},0)},J=function(Q){j.value!==Q&&(j.value=Q)},Z=function(){var Q,te,ae=(Q=C.value)===null||Q===void 0?void 0:Q.getBoundingClientRect();if(ae){var he=O.value?I.value:0;D.value=ae.width-he-(t.bordered?1:0);var Se=$==null||(te=$.value)===null||te===void 0?void 0:te.getBoundingClientRect();Se!=null&&Se.width&&J(Se.width)}},oe=function(){var Q,te,ae,he,Se,je,$e,Fe;(Q=a.paginationAffixRef.value)===null||Q===void 0||(te=Q.handleScroll)===null||te===void 0||te.call(Q),(ae=a.horizontalScrollAffixRef.value)===null||ae===void 0||(he=ae.handleScroll)===null||he===void 0||he.call(ae),(Se=a.headerTopAffixRef.value)===null||Se===void 0||(je=Se.handleScroll)===null||je===void 0||je.call(Se),($e=a.footerBottomAffixRef.value)===null||$e===void 0||(Fe=$e.handleScroll)===null||Fe===void 0||Fe.call($e)},se=function(Q){for(var te={},ae=0,he=Q.length;ae<he;ae++)for(var Se=Q[ae].children,je=0,$e=Se.length;je<$e;je++){var Fe=Se[je],Ue=Fe.dataset.colkey;te[Ue]=Fe.getBoundingClientRect().width}return te},me=function(Q){if(Q instanceof HTMLCollection){if(A.value)return;T.value=se(Q)}else T.value=T.value||{},Object.entries(Q).forEach(function(te){var ae=be(te,2),he=ae[0],Se=ae[1];T.value[he]=Se});return T.value},Te=function(){var Q=setTimeout(function(){var te;if(Z(),!R.value){var ae=(te=C.value)===null||te===void 0?void 0:te.querySelector("thead");ae&&(me(ae.children),clearTimeout(Q))}},0)},Ie=function(){T.value={}},re=function(Q){var te,ae,he;(te=t.onScrollX)===null||te===void 0||te.call(t,{e:Q}),(ae=t.onScrollY)===null||ae===void 0||ae.call(t,{e:Q}),(he=t.onScroll)===null||he===void 0||he.call(t,{e:Q})},ue=function(Q){if(Q==="calculate"){var te,ae=(te=C.value)===null||te===void 0||(te=te.querySelector("thead"))===null||te===void 0?void 0:te.children;return se(ae)}return T.value||{}};le([b,l,p,o,i,O,_,F,u,c,v],q,{immediate:!0}),le([F,l],function(){var ge=setTimeout(function(){F.value&&K(C.value),clearTimeout(ge)},0)},{immediate:!0}),le([s,b,l,p],X,{immediate:!0}),le(n,function(){Ie()}),le([b,p,o,u,O,d,f,i],function(){var ge=setTimeout(function(){Te(),oe(),clearTimeout(ge)},60)},{immediate:!0}),le([n],function(ge,Q){var te=be(ge,1),ae=te[0],he=be(Q,1),Se=he[0],je=ae.map(function(Yt){return Yt.colKey}),$e=Se.map(function(Yt){return Yt.colKey});if(je.length<$e.length){var Fe=b8($e,je),Ue=ue("calculate"),Qe=0;Fe.forEach(function(Yt){Qe+=Ue[Yt]});var st=Ta(Ue,$e),kt=Object.values(st).reduce(function(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,En=arguments.length>1?arguments[1]:void 0;return Yt+En}),ea=C.value.clientWidth,Ca=kt-Qe;J(Math.max(ea,Ca))}});var ie=function(){Te(),X(),oe(),(F.value||O.value)&&(q(),K(C.value,{skipScrollLimit:!0}))},Ce=Ra(function(){ie()},30),Oe=null;function De(ge){typeof window>"u"||da()<11||typeof window.ResizeObserver>"u"||(Xe(window,"resize",Ce),Oe=new window.ResizeObserver(function(){var Q=setTimeout(function(){ie(),clearTimeout(Q)},60)}),Oe.observe(ge),y.value=ge)}Ae(function(){var ge=e3();I.value=ge,Te();var Q=F.value||O.value||!R.value||!b.value.length,te=typeof window<"u",ae=te&&typeof window.ResizeObserver<"u";(Q&&da()<11||!ae)&&ot(window,"resize",Ce)}),Ft(function(){var ge,Q;typeof window<"u"&&Xe(window,"resize",Ce),(ge=Oe)===null||ge===void 0||ge.unobserve(y.value),(Q=Oe)===null||Q===void 0||Q.disconnect()});var Re=function(Q){b.value=Q},Ee=function(){q(),X()};return{tableWidth:D,tableElmWidth:j,thWidthList:T,isFixedHeader:O,isWidthOverflow:_,tableContentRef:C,isFixedColumn:F,showColumnShadow:S,rowAndColFixedPosition:x,virtualScrollHeaderPos:E,scrollbarWidth:I,setData:Re,refreshTable:ie,setTableElmWidth:J,emitScrollEvent:re,updateThWidthListHandler:Te,updateColumnFixedShadow:K,setUseFixedTableElmRef:k,getThWidthList:ue,updateThWidthList:me,addTableResizeObserver:De,updateTableAfterColumnResize:Ee}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function vm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function w8(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function O8(t,e){var n=_e(t),a=n.pagination,r=n.data,l=n.disableDataPage,o=Ke(),i=o.classPrefix,u=G(t.pagination),c=G([]),v=G(!1),s=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:10,m=t.data,b=!l.value&&m.length>h;if(v.value=b,b){var y=(p-1)*h,C=p*h;c.value=m.slice(y,C)}else c.value=m};le(function(){var f,p;return[(f=a.value)===null||f===void 0?void 0:f.current,(p=a.value)===null||p===void 0?void 0:p.pageSize,r.value.length,l]},function(){if(!(!a.value||!a.value.current)){var f=a.value,p=f.current,h=f.pageSize;u.value={current:p,pageSize:h},s(a.value.current,a.value.pageSize)}},{immediate:!0}),le([r],function(){var f,p;if(!(!a.value||!a.value.defaultCurrent)){var h=!!a.value.current;h||s((f=u.value.current)!==null&&f!==void 0?f:a.value.defaultCurrent,(p=u.value.pageSize)!==null&&p!==void 0?p:a.value.defaultPageSize)}},{immediate:!0});var d=function(){if(!t.pagination)return null;var p=w8({},t.pagination);return delete p.onChange,g("div",{class:"".concat(i.value,"-table__pagination")},[g(bV,ve(p,{onChange:function(m){var b,y,C;(b=t.pagination)===null||b===void 0||(y=b.onChange)===null||y===void 0||y.call(b,m),u.value=m,s(m.current,m.pageSize),(C=t.onPageChange)===null||C===void 0||C.call(t,m,c.value)}}),{totalContent:e.slots.totalContent})])};return{isPaginateData:v,dataSource:c,innerPagination:u,renderPagination:d}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function _8(t){var e=G(),n=G(),a=G(),r=G(),l=G(),o=G(!0),i=G(!0),u=G(!0),c=!1,v=!1,s=B(function(){return t.scroll&&t.scroll.type==="virtual"&&(t.scroll.threshold||100)<t.data.length}),d=B(function(){return!!(t.headerAffixedTop||t.footerAffixedBottom||t.horizontalScrollAffixedBottom)}),f=0,p=function(Y){if(!(!d.value&&!s.value)){var q=Y;if(!q&&e.value&&(f=0,q=e.value),!!q){var X=q.scrollLeft;if(f!==X){f=X;for(var J=[e.value,n.value,a.value,r.value],Z=0,oe=J.length;Z<oe;Z++)J[Z]&&Y!==J[Z]&&(J[Z].scrollLeft=X)}}}},h=function(Y,q,X){return q.top+X<Y.top&&Y.top>Y.height},m=function(Y){return An(Y)?0:Y.offsetTop||0},b=function(){var Y,q,X;if(!(!d.value&&!s.value)){var J=(Y=e.value)===null||Y===void 0?void 0:Y.getBoundingClientRect(),Z=(q=e.value)===null||q===void 0||(q=q.querySelector("thead"))===null||q===void 0?void 0:q.getBoundingClientRect(),oe=(Z==null?void 0:Z.height)||0,se=(X=a.value)===null||X===void 0?void 0:X.getBoundingClientRect();if((t.headerAffixedTop||s.value)&&n.value){var me=m(t.headerAffixProps||t.headerAffixedTop),Te=(se==null?void 0:se.height)||0,Ie=Math.abs(J.top)<J.height-oe-me-Te;s.value&&(Ie=J.top>-1*Z.height),o.value=Ie}if(t.footerAffixedBottom&&a!==null&&a!==void 0&&a.value)i.value=h(se,J,oe);else if(t.horizontalScrollAffixedBottom&&r!==null&&r!==void 0&&r.value){var re=r.value.getBoundingClientRect();i.value=h(re,J,oe)}if(t.paginationAffixedBottom&&l.value){var ue=l.value.getBoundingClientRect();u.value=h(ue,J,oe)}}},y=function(){b()},C=function(){p(a.value)},O=function(){p(n.value)},_=function(){p(r.value)},$=function(){p(e.value)},I=function(){ot(a.value,"scroll",C)},x=function(){Xe(a.value,"scroll",C)},S=function(){ot(n.value,"scroll",O),A()},E=function(){c||Xe(n.value,"scroll",O),R()},D=function(){ot(r.value,"scroll",_)},j=function(){Xe(r.value,"scroll",_)},T=function(){ot(e.value,"scroll",$),A()},F=function(){c||Xe(e.value,"scroll",$),R()},w=function(){c=!0},P=function(){c=!1,v||(Xe(n.value,"scroll",O),Xe(e.value,"scroll",$))},A=function(){v=!0},R=function(){v=!1},k=[],M=function(Y){var q=Ra(function(oe){Xe(Y,"scroll",oe)},200);function X(){p(Y),q(X)}function J(oe){oe.composedPath().includes(Y)&&(k.forEach(function(se){return se()}),k.length=0,ot(Y,"scroll",X),q(X),k.push(function(){Xe(Y,"scroll",X)}))}ot(Y,"touchstart",J);function Z(){Xe(Y,"touchstart",J)}return{removeElementTouchScrollListener:Z}},V=[],W=function(){V.forEach(function(Y){return Y()}),V.length=0},U=function(){Xe(window,"mousedown",w),Xe(window,"mouseup",P),W(),n.value&&(Xe(n.value,"mouseenter",S),Xe(n.value,"mouseleave",E)),a.value&&(Xe(a.value,"mouseenter",I),Xe(a.value,"mouseleave",x)),e.value&&(Xe(e.value,"mouseenter",T),Xe(e.value,"mouseleave",F)),r.value&&(Xe(r.value,"mouseenter",D),Xe(r.value,"mouseleave",j))},H=function(){if(ot(window,"mousedown",w),ot(window,"mouseup",P),U(),n.value){ot(n.value,"mouseenter",S),ot(n.value,"mouseleave",E);var Y=M(n.value),q=Y.removeElementTouchScrollListener;V.push(q)}if(t.footerAffixedBottom&&a.value){ot(a.value,"mouseenter",I),ot(a.value,"mouseleave",x);var X=M(a.value),J=X.removeElementTouchScrollListener;V.push(J)}if(t.horizontalScrollAffixedBottom&&r.value){ot(r.value,"mouseenter",D),ot(r.value,"mouseleave",j);var Z=M(r.value),oe=Z.removeElementTouchScrollListener;V.push(oe)}if((d.value||s.value)&&e.value){ot(e.value,"mouseenter",T),ot(e.value,"mouseleave",F);var se=M(e.value),me=se.removeElementTouchScrollListener;V.push(me)}},L=function(){if(!(!d.value&&!t.paginationAffixedBottom))var Y=setTimeout(function(){d.value||t.paginationAffixedBottom?ot(document,"scroll",y):Xe(document,"scroll",y),clearTimeout(Y)})};le([n,a,r,e],function(){H(),p(),b()}),le(d,L),le(function(){return[t.data,t.columns,t.headerAffixedTop,t.footerAffixedBottom,t.horizontalScrollAffixedBottom]},function(){p()}),Ft(function(){Xe(document,"scroll",y),U(),n.value=null,a.value=null,r.value=null,e.value=null});var z=function(Y){e.value=Y,L()};return{showAffixHeader:o,showAffixFooter:i,showAffixPagination:u,affixHeaderRef:n,affixFooterRef:a,horizontalScrollbarRef:r,paginationRef:l,onHorizontalScroll:p,setTableContentRef:z,updateAffixHeaderOrFooter:b}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function iv(t,e){if(t){for(var n=t instanceof Array?t:[t],a={},r=0;r<n.length;r++){var l=n[r];if(l){var o=pe(l)?l(e):l;a=o instanceof Array?iv(o,e):Object.assign(a,o)}}return a}}function uv(t,e,n){for(var a=t instanceof Array?t:[t],r=e.row,l=e.rowIndex,o=[],i=0,u=a.length;i<u;i++){var c=a[i],v=pe(c)?c(e):c;if(Ve(v)&&!(v instanceof Array)){v[l]&&(v=v[l]);var s=fe(r,n||"id");v[s]&&(v=v[s])}else v instanceof Array&&(v=uv(v,e,n));o=o.concat(v)}return o}function J0(t,e){for(var n=t instanceof Array?t:[t],a=[],r=0,l=n.length;r<l;r++){var o=n[r];pe(o)?a.push(o(e)):a.push(o)}return a}function Z0(t,e){if(!(!t||!e)){var n=t==null?void 0:t.find(function(i){return i.colKey===e});if(n)return n;for(var a=0,r=t.length;a<r;a++){var l;if((l=t[a])!==null&&l!==void 0&&(l=l.children)!==null&&l!==void 0&&l.length){var o;return Z0((o=t[a])===null||o===void 0?void 0:o.children,e)}}}}function Ko(t,e){return qe(t)==="object"?t:qe(e)==="object"?e:{}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function S8(t,e,n){var a=B(function(){return Math.max(n.rowHeight||48,48)}),r=G(!1),l=B(function(){return(n==null?void 0:n.type)==="lazy"&&!r.value}),o=!ar&&window.requestAnimationFrame||function(u){return setTimeout(u,16.6)},i=function(){r.value||o(function(){r.value=!0})};return Ae(function(){(n==null?void 0:n.type)==="lazy"&&Je(function(){var u=Math.max(10,n.bufferSize||10),c=a.value*u;!(e!=null&&e.value)||!(t!=null&&t.value)||pu(e.value,t.value,i,c)})}),{hasLazyLoadHolder:l,tRowHeight:a}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function oo(t,e,n,a){var r=fe(t,e);return r===void 0&&We.error("Table","rowKey is wrong, can not get unique identifier of row."),[r,n||a].join("_")}function Q0(t,e,n,a){var r=G(new Map),l=function(u,c){var v=u.rowIndex,s=u.colIndex;if(!(!c.rowspan&&!c.colspan)){for(var d=v+(c.rowspan||1),f=s+(c.colspan||1),p=v;p<d;p++)for(var h=s;h<f;h++)if(p!==v||h!==s){if(!t.value[p]||!e.value[h])return;var m=oo(t.value[p],n.value,e.value[h].colKey,h),b=r.value.get(m)||{};b.skipped=!0,r.value.set(m,b)}}},o=function(u,c,v){var s;if((s=r.value)===null||s===void 0||s.clear(),!(!u||!v))for(var d=0,f=u.length;d<f;d++)for(var p=u[d],h=0,m=c.length;h<m;h++){var b=c[h],y={row:p,col:b,rowIndex:d,colIndex:h},C=oo(p,n.value,b.colKey,h),O=r.value.get(C)||{},_=v(y)||{};(_.rowspan||_.colspan||O.rowspan||O.colspan)&&(_.rowspan&&(O.rowspan=_.rowspan),_.colspan&&(O.colspan=_.colspan),r.value.set(C,O)),l==null||l(y,O)}};return le(function(){return[t.value,e.value,a]},function(){o(t.value,e.value,a==null?void 0:a.value)},{immediate:!0}),{skipSpansMap:r}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function dm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function nn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function x8(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var eC=["rowKey","rowClassName","columns","fixedRows","footData","rowAttributes","rowspanAndColspan","scroll","cellEmptyContent","pagination","attach","onCellClick","onRowClick","onRowDblclick","onRowMouseover","onRowMousedown","onRowMouseenter","onRowMouseleave","onRowMouseup"],P8=["click","dblclick","mouseover","mousedown","mouseenter","mouseleave","mouseup"];function Ni(t,e,n){var a=t.col,r=t.row,l=t.rowIndex;if(a.colKey==="serial-number"){var o=(n==null?void 0:n.pagination)||{},i=o.current,u=o.pageSize,c=o.defaultCurrent,v=o.defaultPageSize,s=i||c,d=u||v;return d&&s?d*(s-1)+l+1:l+1}if(pe(a.cell))return a.cell(He,t);if(e[a.colKey])return e[a.colKey](t);if(Be(a.cell)&&e[a.cell])return e[a.cell](t);if(pe(a.render))return a.render(He,nn(nn({},t),{},{type:"cell"}));var f=fe(r,a.colKey);return[void 0,"",null].includes(f)?n!=null&&n.cellEmptyContent?pe(n.cellEmptyContent)?n.cellEmptyContent(He,t):n.cellEmptyContent:e.cellEmptyContent?e.cellEmptyContent(t):e["cell-empty-content"]?e["cell-empty-content"](t):f:f}var E8=ne({name:"TR",props:nn(nn({row:Object,rowIndex:Number,dataLength:Number,ellipsisOverlayClassName:String,classPrefix:String,rowAndColFixedPosition:Map,skipSpansMap:Map,virtualConfig:Object,active:Boolean,isHover:Boolean},Ta(Jr,eC)),{},{tableElm:{},tableContentElm:{}}),emits:["row-mounted"],setup:function(e,n){var a=_e(e),r=a.tableContentElm,l=a.active,o=a.isHover,i=G(null),u=on(),c=u.tdEllipsisClass,v=u.tableBaseClass,s=u.tableColFixedClasses,d=u.tableRowFixedClasses,f=u.tdAlignClasses,p=u.tableDraggableClasses,h=B(function(){return y8(fe(e.row,e.rowKey||"id"),e.rowIndex,e.dataLength,e.fixedRows,e.rowAndColFixedPosition,d)}),m=B(function(){return iv(e.rowAttributes,{row:e.row,rowIndex:e.rowIndex,type:"body"})||{}}),b=B(function(){var x,S=uv(e.rowClassName,{row:e.row,rowIndex:e.rowIndex,type:"body"},e.rowKey||"id");return[(x=h.value)===null||x===void 0?void 0:x.classes,S,N(N({},"".concat(e.classPrefix,"-table__row--active"),l.value),"".concat(e.classPrefix,"-table__row--hover"),o.value)].filter(function(E){return E})}),y=S8(r,i,jt(nn(nn({},e.scroll),{},{rowIndex:e.rowIndex}))),C=y.hasLazyLoadHolder,O=y.tRowHeight,_=function(S,E){var D={};return P8.forEach(function(j){D["on".concat(xc(j))]=function(T){var F,w={e:T,row:S,index:E};(F=e["onRow".concat(xc(j))])===null||F===void 0||F.call(e,w)}}),D};le([i],function(){var x;(x=e.virtualConfig)!==null&&x!==void 0&&x.isVirtualScroll.value&&n.emit("row-mounted",{ref:i,data:e.row})});function $(x,S){var E=S.cellNode,D=x.col,j=x.colIndex,T;pe(D.ellipsis)?T=D.ellipsis(He,x):qe(D.ellipsis)==="object"&&pe(D.ellipsis.content)?T=D.ellipsis.content(He,x):n.slots["ellipsis-".concat(D.colKey)]?T=n.slots["ellipsis-".concat(D.colKey)](x):n.slots.ellipsis&&(T=n.slots.ellipsis(x));var F={};qe(D.ellipsis)==="object"&&(F="props"in D.ellipsis?D.ellipsis.props:D.ellipsis||void 0);var w=e.tableElm,P=j===0?"top-left":"top";return P=j===e.columns.length-1?"top-right":P,g(lv,{placement:P,attach:w?function(){return w}:void 0,tooltipContent:T&&function(){return T},tooltipProps:F,overlayClassName:e.ellipsisOverlayClassName,classPrefix:e.classPrefix},x8(E)?E:{default:function(){return[E]}})}function I(x,S){var E=x.col,D=x.colIndex,j=x.rowIndex,T=S.cellSpans,F=S.dataLength,w=S.rowAndColFixedPosition,P=Ni(x,n.slots,{cellEmptyContent:S.cellEmptyContent,pagination:e.pagination}),A=ov(E,D,w,s),R=J0(E.className,nn(nn({},x),{},{type:"td"})),k=[A.classes,R,N(N(N(N(N({},c,E.ellipsis),v.tdLastRow,j+T.rowspan===F),v.tdFirstCol,D===0&&e.rowspanAndColspan),f[E.align],E.align&&E.align!=="left"),p.handle,E.colKey==="drag")],M=function(H){var L,z=nn(nn({},x),{},{e:H});E.stopPropagation&&H.stopPropagation(),(L=e.onCellClick)===null||L===void 0||L.call(e,z)},V=pe(E.attrs)?E.attrs(nn(nn({},x),{},{type:"td"})):E.attrs,W=nn(nn({},V),T);return g("td",ve({key:E.colKey||D,class:k,style:A.style},W,{onClick:M}),[E.ellipsis?$(x,{cellNode:P}):P])}return function(){var x,S=e.columns,E=e.skipSpansMap,D=e.row,j=e.dataLength,T=e.rowAndColFixedPosition,F=S==null?void 0:S.map(function(w,P){var A={},R={row:D,col:w,rowIndex:e.rowIndex,colIndex:P},k=null;if(e.skipSpansMap.size){var M,V,W=oo(D,e.rowKey,w.colKey,P);if(k=E.get(W)||{},((M=k)===null||M===void 0?void 0:M.rowspan)>1&&(A.rowspan=k.rowspan),((V=k)===null||V===void 0?void 0:V.colspan)>1&&(A.colspan=k.colspan),k.skipped)return null}return I(R,{dataLength:j,rowAndColFixedPosition:T,columnLength:S.length,cellSpans:A,cellEmptyContent:e.cellEmptyContent})});return g("tr",ve({ref:i},m.value,{style:(x=h.value)===null||x===void 0?void 0:x.style,class:b.value},_(D,e.rowIndex)),[C.value?[g("td",{style:{height:"".concat(O.value,"px"),border:"none"}},null)]:F])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function fm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function zo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var tC=["bordered","rowKey","rowClassName","rowAttributes","loading","empty","fixedRows","firstFullRow","lastFullRow","rowspanAndColspan","scroll","cellEmptyContent","pagination","attach","onCellClick","onPageChange","onRowClick","onRowDblclick","onRowMouseover","onRowMousedown","onRowMouseenter","onRowMouseleave","onRowMouseup","onScroll","onScrollX","onScrollY"],T8=ne({name:"TBody",props:zo({classPrefix:String,data:Array,columns:Array,ellipsisOverlayClassName:String,rowAndColFixedPosition:Map,showColumnShadow:Object,tableElm:{},tableWidth:Number,isWidthOverflow:Boolean,virtualConfig:Object,tableContentElm:{},handleRowMounted:Function,renderExpandedRow:Function,firstFullRow:[String,Function],lastFullRow:[String,Function],activeRow:[Array],hoverRow:[String,Number]},Ta(Jr,tC)),setup:function(e){var n=xe(),a=_e(e),r=a.data,l=a.columns,o=a.rowKey,i=a.rowspanAndColspan,u=Ke("table",e.locale),c=u.t,v=u.globalConfig,s=on(),d=s.tableFullRowClasses,f=s.tableBaseClass,p=Q0(r,l,o,i),h=p.skipSpansMap,m=B(function(){return[f.body]});return{t:c,globalConfig:v,renderTNode:n,tableFullRowClasses:d,tbodyClasses:m,tableBaseClass:f,skipSpansMap:h}},render:function(){var e=this,n,a,r,l,o=function(b){var y=e.bordered?e.tableWidth-2:e.tableWidth;return g("tr",{class:[e.tableBaseClass.emptyRow,N({},e.tableFullRowClasses.base,e.isWidthOverflow)]},[g("td",{colspan:b.length},[g("div",{class:[e.tableBaseClass.empty,N({},e.tableFullRowClasses.innerFullRow,e.isWidthOverflow)],style:e.isWidthOverflow?{width:"".concat(y,"px")}:{}},[e.renderTNode("empty")||e.t(e.globalConfig.empty)])])])},i=function(b,y){var C=Ia(y),O=e.renderTNode(C);if(["",null,void 0,!1].includes(O))return null;var _=e.isWidthOverflow&&e.columns.find(function(x){return x.fixed==="left"}),$=[e.tableFullRowClasses.base,e.tableFullRowClasses[C]],I=e.bordered?e.tableWidth-2:e.tableWidth;return g("tr",{class:$,key:"key-full-row-".concat(y)},[g("td",{colspan:b},[g("div",{class:N({},e.tableFullRowClasses.innerFullRow,_),style:_?{width:"".concat(I,"px")}:{}},[g("div",{class:e.tableFullRowClasses.innerFullElement},[O])])])])},u=this.columns.length,c=this.data.length,v=[],s=["classPrefix","ellipsisOverlayClassName","rowAndColFixedPosition","scroll","tableElm","tableContentElm","pagination","attach"];(n=this.data)===null||n===void 0||n.forEach(function(m,b){var y,C=e.rowKey||"id",O=fe(m,C),_=zo(zo({},Ta(e.$props,eC)),{},{rowKey:C,row:m,columns:e.columns,rowIndex:m.VIRTUAL_SCROLL_INDEX||b,dataLength:c,skipSpansMap:e.skipSpansMap,virtualConfig:e.virtualConfig,active:(y=e.activeRow)===null||y===void 0?void 0:y.includes(O),isHover:e.hoverRow===O},Ta(e.$props,s));e.onCellClick&&(_.onCellClick=e.onCellClick);var $=g(E8,ve({key:fe(m,e.rowKey||"id")||b},_,{onRowMounted:e.handleRowMounted}),e.$slots);if(v.push($),e.renderExpandedRow){var I={row:m,index:b,columns:e.columns,tableWidth:e.tableWidth,isWidthOverflow:e.isWidthOverflow},x=e.renderExpandedRow(I);x&&v.push(x)}});var d=[i(u,"first-full-row")].concat(v,[i(u,"last-full-row")]),f=!((a=this.data)!==null&&a!==void 0&&a.length)&&!this.loading&&!this.firstFullRow&&!this.lastFullRow,p="translateY(".concat((r=this.virtualConfig)===null||r===void 0?void 0:r.translateY.value,"px)"),h=(l=this.virtualConfig)!==null&&l!==void 0&&l.isVirtualScroll.value?{transform:p,"-ms-transform":p,"-moz-transform":p,"-webkit-transform":p}:void 0;return g("tbody",{class:this.tbodyClasses,style:zo({},h)},[f?o(this.columns):d])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function zl(t){return t&&(isNaN(Number(t))?t:"".concat(t,"px"))}function nC(t){var e=_e(t),n=e.size,a=e.bordered,r=e.stripe,l=e.hover,o=e.verticalAlign,i=e.height,u=e.maxHeight,c=e.tableContentWidth,v=on(),s=v.tableBaseClass,d=v.tableAlignClasses,f=Ls(),p=f.sizeClassNames,h=B(function(){return[s.table,N(N(N(N(N(N(N(N({},p[n.value],n.value!=="medium"),s.bordered,a.value),s.striped,r.value),s.hover,l.value),s.loading,t.loading),s.affixedHeader,t.headerAffixedTop),s.rowspanAndColspan,t.rowspanAndColspan),d[o.value],o.value!=="middle")]}),m=B(function(){return{height:zl(i.value),maxHeight:zl(u.value)}}),b=B(function(){return{width:zl(c.value)}});return{tableClasses:h,sizeClassNames:p,tableElementStyles:b,tableContentStyles:m}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function gm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function _a(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function D8(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var hm=ne({name:"THead",props:{classPrefix:String,ellipsisOverlayClassName:String,isFixedHeader:Boolean,thDraggable:Boolean,maxHeight:[String,Number],height:[String,Number],rowAndColFixedPosition:Map,thWidthList:Object,bordered:Boolean,isMultipleHeader:Boolean,resizable:Boolean,attach:[String,Function],spansAndLeafNodes:Object,thList:Array,columnResizeParams:Object,showColumnShadow:Object},setup:function(e,n){var a=n.slots,r=G(),l=on(),o=l.tableHeaderClasses,i=l.tableBaseClass,u=B(function(){return[o.header,N(N(N({},o.fixed,!!(e.maxHeight||e.height)),i.bordered,e.bordered&&e.isMultipleHeader),o.multipleHeader,e.isMultipleHeader)]}),c=B(function(){for(var s={},d=e.thList[0],f=0,p=d.length;f<p;f++){var h=d[f];if(h.colspan>1)for(var m=f+1;m<f+h.colspan;m++)d[m]&&(s[d[m].colKey]=!0)}return s}),v=function(d){for(var f=d;f;){var p;if(f=f.parentNode,(p=f)!==null&&p!==void 0&&(p=p.classList)!==null&&p!==void 0&&p.contains("".concat(e.classPrefix,"-table")))break}return f};return _a(_a({},l),{},{colspanSkipMap:c,theadClasses:u,theadRef:r,slots:a,getTableNode:v})},render:function(){var e=this,n=function(r,l){var o=new Map,i=e.spansAndLeafNodes.rowspanAndColspanMap;return e.thList.map(function(u,c){var v=u.map(function(s,d){var f;if(e.colspanSkipMap[s.colKey])return null;var p=i.get(s);if(d===0&&p.rowspan>1)for(var h=c+1;h<c+p.rowspan;h++)o.set(e.thList[h][0],!0);var m=ov(s,d,r,e.tableColFixedClasses),b={col:s,colIndex:d,row:{},rowIndex:-1},y=J0(s.className,_a(_a({},b),{},{type:"th"})),C=e.showColumnShadow.left&&s.fixed==="left",O=e.showColumnShadow.right&&s.fixed==="right",_=e.thDraggable&&!(C||O),$=[m.classes,y,s.thClassName,N(N(N(N({},e.tableHeaderClasses.thBordered,o.get(s)),"".concat(e.classPrefix,"-table__th-").concat(s.colKey),s.colKey),e.tdAlignClasses[s.align],s.align&&s.align!=="left"),e.tableDraggableClasses.dragSortTh,_)],I=!((f=s.children)!==null&&f!==void 0&&f.length),x=I&&l!==null&&l!==void 0&&l[s.colKey]?"".concat(l==null?void 0:l[s.colKey],"px"):void 0,S=_a(_a({},m.style||{}),{},{width:x}),E=Pu(e.slots,s,d),D=e.resizable||!_?{onMousedown:function(P){if(e.resizable){var A,R;(A=e.columnResizeParams)===null||A===void 0||(R=A.onColumnMousedown)===null||R===void 0||R.call(A,P,s,d)}if(!_)var k=setTimeout(function(){var M,V=e.theadRef.querySelectorAll("th");(M=V[d])===null||M===void 0||M.removeAttribute("draggable"),clearTimeout(k)},10)},onMousemove:function(P){var A,R;e.resizable&&((A=e.columnResizeParams)===null||A===void 0||(R=A.onColumnMouseover)===null||R===void 0||R.call(A,P,s))}}:{},j=pe(s.ellipsisTitle)?s.ellipsisTitle(He,{col:s,colIndex:d}):void 0,T=s.ellipsisTitle!==void 0?!!s.ellipsisTitle:!!s.ellipsis,F=(pe(s.attrs)?s.attrs(_a(_a({},b),{},{type:"th"})):s.attrs)||{};return s.colspan>1&&(F.colspan=s.colspan),g("th",ve({key:s.colKey,"data-colkey":s.colKey,class:$,style:S},F,p,D),[g("div",{class:e.tableBaseClass.thCellInner},[T?g(lv,{placement:"bottom",attach:e.attach||(e.theadRef?function(){return e.getTableNode(e.theadRef)}:void 0),tooltipContent:j&&function(){return j},tooltipProps:qe(s.ellipsisTitle)==="object"?s.ellipsisTitle:void 0,overlayClassName:e.ellipsisOverlayClassName,classPrefix:e.classPrefix},D8(E)?E:{default:function(){return[E]}}):E])])});return g("tr",{key:c},[v])})};return g("thead",{ref:"theadRef",class:this.theadClasses},[n(this.rowAndColFixedPosition,this.thWidthList)])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function mm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Wo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var pm=ne({name:"TFoot",props:{rowKey:String,isFixedHeader:Boolean,rowAndColFixedPosition:Map,footData:Array,columns:Array,rowAttributes:[Array,Object,Function],rowClassName:[Array,String,Object,Function],thWidthList:[Object],footerSummary:[String,Function],rowspanAndColspanInFooter:Function},setup:function(e,n){var a=xe(),r=on(),l=_e(e),o=l.footData,i=l.columns,u=l.rowKey,c=l.rowspanAndColspanInFooter,v=Q0(o,i,u,c),s=v.skipSpansMap,d=function(p){var h=p.col,m=p.row;return pe(h.foot)?h.foot(He,p):Be(h.foot)&&n.slots[h.foot]?n.slots[h.foot](p)||h.foot:h.foot||fe(m,h.colKey)};return Wo(Wo({skipSpansMap:s},r),{},{renderTFootCell:d,renderTNode:a})},render:function(){var e,n=this;if(!this.columns)return null;var a=[this.tableFooterClasses.footer,N({},this.tableFooterClasses.fixed,this.isFixedHeader)],r=(e=this.footData)===null||e===void 0?void 0:e.map(function(o,i){var u=iv(n.rowAttributes,{row:o,rowIndex:i,type:"foot"}),c=uv(n.rowClassName,{row:o,rowIndex:i,type:"foot"},n.rowKey||"id");return g("tr",ve(u,{key:i,class:c}),[n.columns.map(function(v,s){var d,f={},p=null;if(n.skipSpansMap.size){var h,m,b=oo(o,n.rowKey,v.colKey,s);if(p=n.skipSpansMap.get(b)||{},((h=p)===null||h===void 0?void 0:h.rowspan)>1&&(f.rowspan=p.rowspan),((m=p)===null||m===void 0?void 0:m.colspan)>1&&(f.colspan=p.colspan),p.skipped)return null}var y=ov(v,s,n.rowAndColFixedPosition,n.tableColFixedClasses),C=Wo({},y.style);return(d=n.thWidthList)!==null&&d!==void 0&&d[v.colKey]&&(C.width="".concat(n.thWidthList[v.colKey],"px")),g("td",ve(Wo({key:v.colKey},f),{class:y.classes,style:C}),[n.renderTFootCell({row:o,rowIndex:i,col:v,colIndex:s})])})])}),l=this.renderTNode("footerSummary");return!l&&(!this.footData||!this.footData.length)?null:g("tfoot",{ref:"tFooterRef",class:a},[l&&g("tr",{class:this.tableFullRowClasses.base},[g("td",{colspan:this.columns.length},[g("div",{class:this.tableFullRowClasses.innerFullElement},[l])])]),r])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function I8(t,e){var n=_e(t),a=n.data,r=n.activeRowType,l=n.activeRowKeys,o=n.defaultActiveRowKeys,i=n.disableSpaceInactiveRow,u=G(-1),c=G(!1),v=G(!1),s=G(-1),d=Nt(l,o.value,t.onActiveChange,"activeRowKeys"),f=be(d,2),p=f[0],h=f[1],m=function(T){var F=T.row,w=T.index,P=fe(F,t.rowKey);if(r.value==="single"){var A=p.value.length>1?[P]:[];h(A,{type:"inactive",activeRowList:[{row:F,rowIndex:w}],currentRowData:F})}else if(r.value==="multiple"){var R=p.value.filter(function(k){return k!==P});h(R,{type:"inactive",activeRowList:[],currentRowData:F})}},b=function(T){var F=T.row,w=fe(F,t.rowKey);if(r.value==="single")h([w],{activeRowList:[{row:F,rowIndex:T.index}],currentRowData:F,type:"active"});else{for(var P=p.value.concat(w),A=[],R=0,k=a.value.length;R<k;R++){var M=a.value[R];P.includes(fe(M,t.rowKey))&&A.push({row:M,rowIndex:R})}h(P,{activeRowList:A,currentRowData:F,type:"active"})}},y=function(T){document.getSelection().removeAllRanges();for(var F=T.row,w=u.value,P=Math.min(s.value,w),A=Math.max(s.value,w),R=[],k=P;k<=A;k++)R.push({row:a.value[k],rowIndex:k});var M=R.map(function(V){return fe(V.row,t.rowKey)});h(M,{activeRowList:R,type:"active",currentRowData:F})},C=function(){for(var T=[],F=0,w=a.value.length;F<w;F++){var P=a.value[F],A=fe(P,t.rowKey);p.value.includes(A)&&T.push({row:P,rowIndex:F})}return T},O=function(T,F){if(r.value){var w=T.row,P=T.index,A=fe(w,t.rowKey);c.value?(u.value=P,y(T),v.value=!0):p.value.includes(A)&&(F==null?void 0:F.action)!=="active"?i.value||(m(T),u.value=P):(b(T),u.value=P)}},_=function(){var T;h([],{activeRowList:[],currentRowData:void 0,type:"inactive"}),(T=t.onActiveRowAction)===null||T===void 0||T.call(t,{action:"clear",activeRowList:[]}),u.value=-1},$=function(){var T,F=a.value.map(function(P){return fe(P,t.rowKey)}),w=a.value.map(function(P,A){return{row:P,rowIndex:A}});h(F,{activeRowList:w,currentRowData:void 0,type:"active"}),(T=t.onActiveRowAction)===null||T===void 0||T.call(t,{action:"select-all",activeRowList:w}),u.value=-1},I=function(){v.value=!1},x=function(T){var F,w=T.code||((F=T.key)===null||F===void 0?void 0:F.trim());if(Ty.test(w)){T.preventDefault();var P=Math.min(a.value.length-1,u.value+1);r.value==="single"?O({row:a.value[P],index:P,e:T},{action:"active"}):u.value=P}else if(Dy.test(w)){T.preventDefault();var A=Math.max(0,u.value-1);r.value==="single"?O({row:a.value[A],index:A,e:T},{action:"active"}):u.value=A}else if(Ei.test(w)){T.preventDefault();var R=u.value;if(v.value){var k;(k=t.onActiveRowAction)===null||k===void 0||k.call(t,{action:"shift-area-selection",activeRowList:C()})}else if(!i.value)O({row:a.value[R],index:R,e:T});else{var M;(M=t.onActiveRowAction)===null||M===void 0||M.call(t,{action:"space-one-selection",activeRowList:C()})}}else jf.test(w)?(c.value=!0,s.value=u.value):Iy.test(w)||jy.test(w)?(_(),I()):$y.test(w)&&$();Ei.test(w)||I()},S=function(T){var F,w=T.code||((F=T.key)===null||F===void 0?void 0:F.trim());jf.test(w)&&(c.value=!1)},E=function(){ot(e.value,"keydown",x),ot(e.value,"keyup",S)},D=function(){Xe(e.value,"keydown",x),Xe(e.value,"keyup",S)};return{tActiveRow:p,onHighlightRow:O,addHighlightKeyboardListener:E,removeHighlightKeyboardListener:D}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function j8(t,e){var n=_e(t),a=n.hover,r=n.data,l=n.activeRowType,o=n.keyboardRowHover,i=n.disableSpaceInactiveRow,u=G(),c=G(-1),v=B(function(){return l.value==="single"?!1:l.value==="multiple"?!0:a.value||o.value}),s=function(b,y){var C=fe(b.row,t.rowKey);u.value===C&&(y==null?void 0:y.action)!=="hover"?i.value||(u.value=void 0):u.value=C,c.value=b.index},d=function(){u.value=void 0,c.value=-1},f=function(b){var y;if(v.value){var C=b.code||((y=b.key)===null||y===void 0?void 0:y.trim());if(Ty.test(C)){b.preventDefault();var O=Math.min(r.value.length-1,c.value+1);s({row:r.value[O],index:O,e:b},{action:"hover"})}else if(Dy.test(C)){b.preventDefault();var _=Math.max(0,c.value-1);s({row:r.value[_],index:_,e:b},{action:"hover"})}else if(Ei.test(C)&&t.activeRowType!=="multiple"){var $=c.value;if(s({row:r.value[$],index:$,e:b}),!t.activeRowType){var I;(I=t.onActiveRowAction)===null||I===void 0||I.call(t,{action:"space-one-selection",activeRowList:[{row:r.value[$],rowIndex:$}]})}}else if(Iy.test(C)&&!t.activeRowType){var x;u.value=void 0,(x=t.onActiveRowAction)===null||x===void 0||x.call(t,{action:"clear",activeRowList:[]})}else if($y.test(C)&&!t.activeRowType){var S;(S=t.onActiveRowAction)===null||S===void 0||S.call(t,{action:"select-all",activeRowList:[]})}else if(jy.test(C)&&!t.activeRowType){var E;(E=t.onActiveRowAction)===null||E===void 0||E.call(t,{action:"clear",activeRowList:[]})}}},p=function(){ot(e.value,"keydown",f)},h=function(){Xe(e.value,"keydown",f)};return{hoverRow:u,needKeyboardRowHover:v,clearHoverRow:d,addRowHoverKeyboardListener:p,removeRowHoverKeyboardListener:h}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function $8(t,e){var n=G(),a=G(!0),r=function(){if(!(!e.value||!t.value||n.value)){a.value=!1;var o=pu(t.value,null,function(){a.value=!0},10);n.value=o}};return Ae(r),e.value&&le([e,t],r),Ft(function(){var l,o;e.value&&((l=n.value)===null||l===void 0||(o=l.unobserve)===null||o===void 0||o.call(l,t.value))}),{showElement:a}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function bm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Qt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function ym(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var aC=ne({name:"TBaseTable",props:Qt(Qt({},Jr),{},{renderExpandedRow:Function,onLeafColumnsChange:Function,thDraggable:Boolean}),emits:["show-element-change"],setup:function(e,n){var a=_e(e),r=a.lazyLoad,l=xe(),o=G(),i=G(),u=G(),c=G(),v=G(0),s=on(),d=s.classPrefix,f=s.virtualScrollClasses,p=s.tableLayoutClasses,h=s.tableBaseClass,m=s.tableColFixedClasses,b=nC(e),y=b.tableClasses,C=b.sizeClassNames,O=b.tableContentStyles,_=b.tableElementStyles,$=Ke("table",e.locale),I=$.globalConfig,x=X0(e),S=x.isMultipleHeader,E=x.spansAndLeafNodes,D=x.thList,j=B(function(){var gt;return((gt=E.value)===null||gt===void 0?void 0:gt.leafColumns)||e.columns}),T=$8(o,r),F=T.showElement,w=G(),P=G(),A=G(),R=G(),k=C8(e,n,j,{paginationAffixRef:w,horizontalScrollAffixRef:P,headerTopAffixRef:A,footerBottomAffixRef:R}),M=k.scrollbarWidth,V=k.virtualScrollHeaderPos,W=k.tableWidth,U=k.tableElmWidth,H=k.tableContentRef,L=k.isFixedHeader,z=k.isWidthOverflow,K=k.isFixedColumn,Y=k.thWidthList,q=k.showColumnShadow,X=k.rowAndColFixedPosition,J=k.setData,Z=k.refreshTable,oe=k.setTableElmWidth,se=k.emitScrollEvent,me=k.setUseFixedTableElmRef,Te=k.updateColumnFixedShadow,Ie=k.getThWidthList,re=k.updateThWidthList,ue=k.addTableResizeObserver,ie=k.updateTableAfterColumnResize,Ce=_8(e),Oe=Ce.affixHeaderRef,De=Ce.affixFooterRef,Re=Ce.horizontalScrollbarRef,Ee=Ce.paginationRef,ge=Ce.showAffixHeader,Q=Ce.showAffixFooter,te=Ce.showAffixPagination,ae=Ce.onHorizontalScroll,he=Ce.setTableContentRef,Se=Ce.updateAffixHeaderOrFooter,je=O8(e,n),$e=je.dataSource,Fe=je.innerPagination,Ue=je.isPaginateData,Qe=je.renderPagination,st=W3({isWidthOverflow:z,tableContentRef:H,showColumnShadow:q,getThWidthList:Ie,updateThWidthList:re,setTableElmWidth:oe,updateTableAfterColumnResize:ie,onColumnResizeChange:e.onColumnResizeChange}),kt=st.resizeLineRef,ea=st.resizeLineStyle,Ca=st.setEffectColMap,Yt=B(function(){return[y.value,N(N(N(N(N(N(N(N({},h.headerFixed,L.value),h.columnFixed,K.value),h.widthOverflow,z.value),h.multipleHeader,S.value),m.leftShadow,q.left),m.rightShadow,q.right),h.columnResizableTable,e.resizable),"".concat(d,"-table__row--active-").concat(e.activeRowType),e.activeRowType)]}),En=B(function(){return[[p[e.tableLayout]]]}),gr=B(function(){return e.bordered&&L.value&&(S.value&&z.value||!S.value)}),hr=B(function(){var gt,it;if(!e.bordered)return 0;var rt=(gt=c.value)===null||gt===void 0?void 0:gt.getBoundingClientRect(),Et=(it=Ee.value)===null||it===void 0?void 0:it.getBoundingClientRect();return((rt==null?void 0:rt.height)||0)+((Et==null?void 0:Et.height)||0)}),un=I8(e,o),et=un.tActiveRow,Ye=un.onHighlightRow,mt=un.addHighlightKeyboardListener,zt=un.removeHighlightKeyboardListener,At=j8(e,o),Zt=At.hoverRow,Na=At.needKeyboardRowHover,_o=At.clearHoverRow,La=At.addRowHoverKeyboardListener,Ba=At.removeRowHoverKeyboardListener;le(i,function(){me(i.value)}),le(function(){return[e.data,$e]},function(){J(Ue.value?$e.value:e.data)}),le(E,function(){var gt;(gt=e.onLeafColumnsChange)===null||gt===void 0||gt.call(e,E.value.leafColumns),Ca(E.value.leafColumns,null)},{immediate:!0});var Va=function(){Je(function(){ae(),Se()})},Ha=B(function(){return{data:e.data,scroll:e.scroll}}),Tn=I0(H,Ha),tt=-1,mr=function(it){var rt=it.target||it.srcElement,Et=rt.scrollTop;tt!==Et?Tn.isVirtualScroll.value&&Tn.handleScroll():(tt=-1,Te(rt)),tt=Et,se(it)},wa=function(){var it;i.value&&(v.value=(it=i.value.querySelector("tfoot"))===null||it===void 0?void 0:it.getBoundingClientRect().height)},yl=function(it){if(H.value){for(var rt=H.value.querySelector('th[data-colkey="'.concat(it,'"]')),Et=H.value.querySelectorAll("th.t-table__cell--fixed-left"),Kn=0,Oa=0,Cl=Et.length;Oa<Cl;Oa++)Kn+=Et[Oa].getBoundingClientRect().width;var So=rt.getBoundingClientRect(),EC=H.value.getBoundingClientRect(),TC=So.left-EC.left-Kn;H.value.scrollTo({left:TC,behavior:"smooth"})}};le(H,function(){he(H.value)}),le(i,wa),le(o,function(gt){ue(gt)}),Ae(function(){wa(),he(H.value),ue(o.value)});var Ka=function(){e.activeRowType&&mt(),Na.value&&La()},Vn=function(){e.activeRowType&&zt(),Na.value&&Ba()},Hn=function(it){var rt;(rt=e.onRowClick)===null||rt===void 0||rt.call(e,it),e.activeRowType&&Ye(it),Na.value&&_o()};le([F],function(gt){var it=be(gt,1),rt=it[0];n.emit("show-element-change",rt)},{immediate:!0});var Tu=B(function(){return Ue.value?$e.value:e.data}),Du=function(it){var rt=it.index;if(!rt&&rt!==0){var Et;if(!it.key){We.error("Table","scrollToElement: one of `index` or `key` must exist.");return}rt=(Et=Tu.value)===null||Et===void 0?void 0:Et.findIndex(function(Kn){return fe(Kn,e.rowKey)===it.key}),rt<0&&We.error("Table","".concat(it.key," does not exist in data, check `rowKey` or `data` please."))}Tn.scrollToElement(Qt(Qt({},it),{},{index:rt-1}))};return{thList:D,classPrefix:d,innerPagination:Fe,globalConfig:I,tableFootHeight:v,virtualScrollHeaderPos:V,tableWidth:W,tableElmWidth:U,tableRef:o,tableElmRef:i,sizeClassNames:C,tableBaseClass:h,spansAndLeafNodes:E,dynamicBaseTableClasses:Yt,tableContentStyles:O,tableElementStyles:_,dividerBottom:hr,virtualScrollClasses:f,tableLayoutClasses:p,tableElmClasses:En,tableContentRef:H,isFixedHeader:L,isWidthOverflow:z,isFixedColumn:K,rowAndColFixedPosition:X,showColumnShadow:q,thWidthList:Y,isPaginateData:Ue,dataSource:$e,affixHeaderRef:Oe,affixFooterRef:De,bottomContentRef:c,paginationRef:Ee,showAffixHeader:ge,showAffixFooter:Q,scrollbarWidth:M,isMultipleHeader:S,showRightDivider:gr,resizeLineRef:kt,resizeLineStyle:ea,columnResizeParams:st,horizontalScrollbarRef:Re,tableBodyRef:u,virtualConfig:Tn,showAffixPagination:te,tActiveRow:et,hoverRow:Zt,showElement:F,scrollToElement:Du,renderPagination:Qe,renderTNode:l,onFixedChange:Va,onHorizontalScroll:ae,updateAffixHeaderOrFooter:Se,onInnerVirtualScroll:mr,refreshTable:Z,scrollColumnIntoView:yl,onTableFocus:Ka,onTableBlur:Vn,onInnerRowClick:Hn,paginationAffixRef:w,horizontalScrollAffixRef:P,headerTopAffixRef:A,footerBottomAffixRef:R}},render:function(){var e,n,a=this,r,l,o;if(!this.showElement)return g("div",{ref:"tableRef"},null);var i=this.rowAndColFixedPosition,u=this.tableLayout,c=this.isPaginateData?this.dataSource:this.data,v=((e=this.spansAndLeafNodes)===null||e===void 0?void 0:e.leafColumns)||this.columns,s=(n=this.allowResizeColumnWidth)!==null&&n!==void 0?n:this.resizable;s&&u==="auto"&&We.warn("Table","table-layout can not be `auto`, cause you are using column resizable, set `table-layout: fixed` please.");var d=u==="fixed"&&this.isWidthOverflow?"100px":void 0,f=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return g("colgroup",null,[v.map(function(z){var K={width:zl((L||s?a.thWidthList[z.colKey]:void 0)||z.width)||d};return z.minWidth&&(K.minWidth=zl(z.minWidth)),!K.width&&!z.minWidth&&a.tableLayout==="fixed"&&(K.minWidth="80px"),g("col",{key:z.colKey,style:K},null)})])},p=function(){return a.showHeader===!1?null:!!(a.virtualConfig.isVirtualScroll.value||a.headerAffixedTop)&&(a.headerAffixedTop?g(To,ve({offsetTop:0},Ko(a.headerAffixedTop),{onFixedChange:a.onFixedChange,ref:"headerTopAffixRef"}),ym(E)?E:{default:function(){return[E]}}):a.isFixedHeader&&E)},h=function(){return g(To,ve({offsetBottom:0},Ko(a.horizontalScrollAffixedBottom),{style:{marginTop:"-".concat(a.scrollbarWidth*2,"px")},horizontalScrollAffixedBottom:!0,ref:"horizontalScrollAffixRef"}),{default:function(){return[g("div",{ref:"horizontalScrollbarRef",class:["scrollbar",a.tableBaseClass.obviousScrollbar],style:{width:"".concat(a.tableWidth,"px"),overflow:"auto",opacity:Number(a.showAffixFooter)}},[g("div",{style:{width:"".concat(a.tableElmWidth,"px"),height:"5px"}},null)])]}})},m={isFixedHeader:this.isFixedHeader,rowAndColFixedPosition:this.rowAndColFixedPosition,isMultipleHeader:this.isMultipleHeader,bordered:this.bordered,maxHeight:this.maxHeight,height:this.height,spansAndLeafNodes:this.spansAndLeafNodes,thList:this.thList,thWidthList:this.thWidthList,resizable:this.resizable,columnResizeParams:this.columnResizeParams,classPrefix:this.classPrefix,ellipsisOverlayClassName:this.size!=="medium"?this.sizeClassNames[this.size]:"",attach:this.attach,showColumnShadow:this.showColumnShadow,thDraggable:this.thDraggable},b=da()<=11?4:0,y=this.isWidthOverflow?this.scrollbarWidth:0,C=G((((r=this.affixHeaderRef)===null||r===void 0?void 0:r.getBoundingClientRect().height)||0)-b),O=setTimeout(function(){var H;C.value=(((H=a.affixHeaderRef)===null||H===void 0?void 0:H.getBoundingClientRect().height)||0)-b,clearTimeout(O)},0),_=B(function(){return C.value-y}),$=Jr.headerAffixedTop?Number(this.showAffixHeader):1,I=B(function(){return{width:"".concat(a.tableWidth,"px"),height:"".concat(_.value,"px"),opacity:$}}),x=this.bordered?1:0,S=!!((this.headerAffixedTop||this.virtualConfig.isVirtualScroll.value)&&this.tableWidth)&&g("div",{ref:"affixHeaderRef",style:{width:"".concat(this.tableWidth-x,"px"),opacity:Number(this.showAffixHeader)},class:["scrollbar",N({},this.tableBaseClass.affixedHeaderElm,this.headerAffixedTop||this.virtualConfig.isVirtualScroll.value)]},[g("table",{class:this.tableElmClasses,style:Qt(Qt({},this.tableElementStyles),{},{width:"".concat(this.tableElmWidth,"px")})},[f(!0),g(hm,m,this.$slots)])]),E=g("div",{class:this.tableBaseClass.affixedHeaderWrap,style:I.value},[S]),D=this.isWidthOverflow?this.scrollbarWidth:0;this.bordered&&(D+=1);var j=!!(this.footerAffixedBottom&&(!((l=this.footData)===null||l===void 0)&&l.length)&&this.tableWidth)&&g(To,ve({class:this.tableBaseClass.affixedFooterWrap,onFixedChange:this.onFixedChange,offsetBottom:D||0},Ko(this.footerAffixedBottom),{style:{marginTop:"".concat(-1*(this.tableFootHeight+D),"px")},ref:"footerBottomAffixRef"}),{default:function(){return[g("div",{ref:"affixFooterRef",style:{width:"".concat(a.tableWidth-x,"px"),opacity:Number(a.showAffixFooter)},class:["scrollbar",N({},a.tableBaseClass.affixedFooterElm,a.footerAffixedBottom||a.isVirtual)]},[g("table",{class:a.tableElmClasses,style:Qt(Qt({},a.tableElementStyles),{},{width:"".concat(a.tableElmWidth,"px")})},[f(!0),g(pm,{rowKey:a.rowKey,isFixedHeader:a.isFixedHeader,rowAndColFixedPosition:i,footData:a.footData,columns:v,rowAttributes:a.rowAttributes,rowClassName:a.rowClassName,thWidthList:a.thWidthList,footerSummary:a.footerSummary,rowspanAndColspanInFooter:a.rowspanAndColspanInFooter},a.$slots)])])]}}),T="translate(0, ".concat(this.virtualConfig.scrollHeight.value,"px)"),F={transform:T,"-ms-transform":T,"-moz-transform":T,"-webkit-transform":T},w=this.virtualConfig,P=Qt(Qt({classPrefix:this.classPrefix,ellipsisOverlayClassName:this.size!=="medium"?this.sizeClassNames[this.size]:"",rowAndColFixedPosition:i,showColumnShadow:this.showColumnShadow,data:w.isVirtualScroll.value?w.visibleData.value:c,virtualConfig:this.virtualConfig,columns:this.spansAndLeafNodes.leafColumns,tableElm:this.tableRef,tableWidth:this.tableWidth,isWidthOverflow:this.isWidthOverflow,scroll:this.scroll,cellEmptyContent:this.cellEmptyContent,tableContentElm:this.tableContentRef,handleRowMounted:this.virtualConfig.handleRowMounted,renderExpandedRow:this.renderExpandedRow},Ta(this.$props,tC)),{},{pagination:this.innerPagination,attach:this.attach,hoverRow:this.hoverRow,activeRow:this.tActiveRow,onRowClick:this.onInnerRowClick}),A=g("div",{ref:"tableContentRef",class:this.tableBaseClass.content,style:this.tableContentStyles,onScroll:this.onInnerVirtualScroll},[this.virtualConfig.isVirtualScroll.value&&g("div",{class:this.virtualScrollClasses.cursor,style:F},null),g("table",{ref:"tableElmRef",class:this.tableElmClasses,style:Qt(Qt({},this.tableElementStyles),{},{width:this.resizable&&this.isWidthOverflow&&this.tableElmWidth?"".concat(this.tableElmWidth,"px"):this.tableElementStyles.width})},[f(!1),this.showHeader&&g(hm,Qt(Qt({},m),{},{thWidthList:s?this.thWidthList:{}}),this.$slots),g(T8,P,this.$slots),g(pm,{rowKey:this.rowKey,isFixedHeader:this.isFixedHeader,rowAndColFixedPosition:i,footData:this.footData,columns:v,rowAttributes:this.rowAttributes,rowClassName:this.rowClassName,footerSummary:this.footerSummary,rowspanAndColspanInFooter:this.rowspanAndColspanInFooter},this.$slots)])]),R=pe(this.loading)?this.loading:this.$slots.loading,k=this.loading!==void 0&&g(bn,ve({loading:!!this.loading,text:R,attach:this.tableRef?function(){return a.tableRef}:void 0,showOverlay:!0,size:"small"},this.loadingProps),null),M=this.renderTNode("topContent"),V=this.renderTNode("bottomContent"),W=g("div",{ref:"paginationRef",class:this.tableBaseClass.paginationWrap,style:{opacity:Number(this.showAffixPagination)}},[this.renderPagination()]),U=!!V&&g("div",{ref:"bottomContentRef",class:this.tableBaseClass.bottomContent},[V]);return g("div",{ref:"tableRef",tabindex:"0",class:this.dynamicBaseTableClasses,onFocus:this.onTableFocus,onBlur:this.onTableBlur},[!!M&&g("div",{class:this.tableBaseClass.topContent},[M]),p(),A,j,k,U,this.showRightDivider&&g("div",{class:this.tableBaseClass.scrollbarDivider,style:{right:"".concat(this.scrollbarWidth,"px"),bottom:this.dividerBottom?"".concat(this.dividerBottom,"px"):void 0,height:"".concat((o=this.tableContentRef)===null||o===void 0?void 0:o.getBoundingClientRect().height,"px")}},null),this.horizontalScrollAffixedBottom&&h(),this.paginationAffixedBottom?g(To,ve({offsetBottom:0},Ko(this.paginationAffixedBottom),{ref:"paginationAffixRef"}),ym(W)?W:{default:function(){return[W]}}):W,g("div",{ref:"resizeLineRef",class:this.tableBaseClass.resizeLine,style:this.resizeLineStyle},null)])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var rC={asyncLoading:{type:[String,Function]},columnController:{type:Object},columnControllerVisible:{type:Boolean,default:void 0},defaultColumnControllerVisible:{type:Boolean,default:void 0},columns:{type:Array,default:function(){return[]}},displayColumns:{type:Array,default:void 0},defaultDisplayColumns:{type:Array},dragSort:{type:String,validator:function(e){return e?["row","row-handler","col","row-handler-col","drag-col"].includes(e):!0}},dragSortOptions:{type:Object},editableCellState:{type:Function},editableRowKeys:{type:Array},expandIcon:{type:[Boolean,Function],default:!0},expandOnRowClick:Boolean,expandedRow:{type:[String,Function]},expandedRowKeys:{type:Array,default:void 0},defaultExpandedRowKeys:{type:Array,default:function(){return[]}},filterIcon:{type:Function},filterRow:{type:[String,Function]},filterValue:{type:Object,default:void 0},defaultFilterValue:{type:Object},hideSortTips:Boolean,indeterminateSelectedRowKeys:{type:Array},multipleSort:Boolean,reserveSelectedRowOnPaginate:{type:Boolean,default:!0},rowSelectionAllowUncheck:Boolean,rowSelectionType:{type:String,validator:function(e){return e?["single","multiple"].includes(e):!0}},selectOnRowClick:Boolean,selectedRowKeys:{type:Array,default:void 0},defaultSelectedRowKeys:{type:Array,default:function(){return[]}},showSortColumnBgColor:Boolean,sort:{type:[Object,Array],default:void 0},defaultSort:{type:[Object,Array]},sortIcon:{type:Function},sortOnRowDraggable:Boolean,onAsyncLoadingClick:Function,onCellClick:Function,onChange:Function,onColumnChange:Function,onColumnControllerVisibleChange:Function,onDataChange:Function,onDisplayColumnsChange:Function,onDragSort:Function,onExpandChange:Function,onFilterChange:Function,onRowEdit:Function,onRowValidate:Function,onSelectChange:Function,onSortChange:Function,onValidate:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Cm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function wm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var F8=ne({name:"ColumnCheckboxGroup",props:{checkboxProps:Object,options:{type:Array,default:function(){return[]}},label:String,uniqueKey:String,value:Array,onChange:Function},setup:function(e){var n=_e(e),a=n.checkboxProps,r=n.value,l=n.options,o=ee(),i=B(function(){var p=[];return l.value.forEach(function(h){if(qe(h)==="object"){if(h.disabled)return;h.value?p.push(h.value):typeof h.label=="string"&&p.push(h.label)}else p.push(h)}),p}),u=B(function(){return or(i.value,r.value)}),c=B(function(){var p=u.value.length;return!!(p&&i.value.length===p)}),v=B(function(){var p=u.value.length;return!!(p<i.value.length&&p)}),s=function(h,m){var b={e:m.e,type:"check",current:void 0,option:void 0};if(h){var y,C=ce(new Set(r.value.concat(i.value)));(y=e.onChange)===null||y===void 0||y.call(e,C,b)}else{var O,_=r.value.filter(function($){return!i.value.includes($)});(O=e.onChange)===null||O===void 0||O.call(e,_,wm(wm({},b),{},{type:"uncheck"}))}},d=function(h,m){var b;(b=e.onChange)===null||b===void 0||b.call(e,h,m)},f=B(function(){return["".concat(o.value,"-table__column-controller-item"),N({},"".concat(o.value,"-table__").concat(e.uniqueKey),e.uniqueKey)]});return function(){return g("div",{class:f.value},[g("div",{class:"".concat(o.value,"-table__column-controller-block")},[g(Di,{indeterminate:v.value,checked:c.value,onChange:s,disabled:!i.value.length},{default:function(){return[e.label]}})]),g("div",{class:"".concat(o.value,"-table__column-controller-block")},[g(Ny,ve({options:l.value},a.value,{modelValue:r.value,onChange:d}),null)])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Om(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function rc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Om(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Om(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function qc(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set,n=0,a=t.length;n<a;n++){var r,l=t[n];(r=l.children)!==null&&r!==void 0&&r.length?qc(l.children,e):l.colKey&&e.add(l.colKey)}return e}function k8(t,e){var n=Ke("table",t.locale),a=n.classPrefix,r=n.globalConfig,l=at({SettingIcon:WC}),o=l.SettingIcon,i=_e(t),u=i.columns,c=i.columnController,v=i.displayColumns,s=i.columnControllerVisible,d=G(null),f=xe(),p=B(function(){var j,T=(((j=c.value)===null||j===void 0?void 0:j.fields)||ce(qc(u.value))).filter(function(F){return F});return new Set(T)}),h=ce(qc(u.value)),m=Nt(v,t.defaultDisplayColumns||h,t.onDisplayColumnsChange,"displayColumns"),b=be(m,2),y=b[0],C=b[1],O=G(v.value||t.defaultDisplayColumns||h),_=B(function(){var j;if((j=c.value)!==null&&j!==void 0&&(j=j.groupColumns)!==null&&j!==void 0&&j.length)return I(u.value);var T={label:r.value.selectAllText,options:x(u.value)};return[T]});le([v],function(j){var T=be(j,1),F=T[0];O.value=F||t.defaultDisplayColumns||h});function $(j,T){return{label:function(){return Pu(e.slots,j,T)},value:j.colKey,disabled:!p.value.has(j.colKey)}}function I(j){var T,F=(T=c.value)===null||T===void 0?void 0:T.groupColumns;if(!(F!=null&&F.length))return[];var w=[],P=function A(R){for(var k=0,M=R.length;k<M;k++){for(var V,W=R[k],U=$(W,k),H=0,L=F.length;H<L;H++){var z,K=F[H];K.columns.includes(W.colKey)&&((z=w[H])!==null&&z!==void 0&&(z=z.options)!==null&&z!==void 0&&z.length?w[H].options.push(U):w[H]=rc(rc({},F[H]),{},{options:[U]}))}(V=W.children)!==null&&V!==void 0&&V.length&&A(W.children)}};return P(j),w}function x(j){var T,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if((T=c.value)!==null&&T!==void 0&&(T=T.groupColumns)!==null&&T!==void 0&&T.length)return[];for(var w=0,P=j.length;w<P;w++){var A,R=j[w];(A=R.children)!==null&&A!==void 0&&A.length?x(R.children,F):R.colKey&&F.push($(R,w))}return F}var S=function(T,F){var w;O.value=T;var P={columns:T,type:F.type,currentColumn:Z0(u.value,String(F.current)),e:F.e};(w=t.onColumnChange)===null||w===void 0||w.call(t,P)},E=function(){var T;if(d.value){d.value.show();return}d.value=av.confirm(rc({header:r.value.columnConfigTitleText,body:function(){var w,P=((w=c.value)===null||w===void 0?void 0:w.displayType)==="fixed-width"?"fixed":"auto",A=c.value||{},R=A.columnControllerTopContent,k=A.columnControllerBottomContent,M=g("div",{class:["".concat(a.value,"-table__column-controller"),"".concat(a.value,"-table__column-controller--").concat(P)]},[g("div",{class:"".concat(a.value,"-table__column-controller-body")},[pe(R)?R(He):f("columnControllerTopContent"),r.value.columnConfigDescriptionText&&g("p",{class:"".concat(a.value,"-table__column-controller-desc")},[r.value.columnConfigDescriptionText]),_.value.map(function(V,W){var U,H,L=(U=c.value)!==null&&U!==void 0&&(U=U.groupColumns)!==null&&U!==void 0&&U.length?String(V.value||W):void 0;return g(F8,{key:V.value||W,uniqueKey:L,value:O.value,label:V.label,options:V.options,onChange:S,checkboxProps:(H=c.value)===null||H===void 0?void 0:H.checkboxProps},null)}),pe(k)?k(He):f("columnControllerBottomContent")])]);return M},confirmBtn:r.value.confirmText,cancelBtn:r.value.cancelText,width:612,onConfirm:function(){if(C(ce(O.value)),s.value===void 0)d.value.hide();else{var w;(w=t.onColumnControllerVisibleChange)===null||w===void 0||w.call(t,!1,{trigger:"confirm"}),e.emit("update:columnControllerVisible",!1)}},onClose:function(){if(s.value===void 0)d.value.hide();else{var w;(w=t.onColumnControllerVisibleChange)===null||w===void 0||w.call(t,!1,{trigger:"cancel"}),e.emit("update:columnControllerVisible",!1)}}},((T=c.value)===null||T===void 0?void 0:T.dialogProps)||{}))};le([s],function(j){var T=be(j,1),F=T[0];F!==void 0&&(d.value?F?d.value.show():d.value.hide():F&&E())},{immediate:!0});var D=function(){var T,F=!!(c.value&&Object.keys(c.value).length),w=F?c.value.placement||"top-right":"";if(F&&c.value.hideTriggerButton)return null;var P=["".concat(a.value,"-table__column-controller-trigger"),N({},"".concat(a.value,"-align-").concat(w),!!w)];return g("div",{class:P},[g(Ot,ve({theme:"default",variant:"outline",onClick:E,content:r.value.columnConfigButtonText},(T=t.columnController)===null||T===void 0?void 0:T.buttonProps),{icon:function(){return g(o,null,null)}})])};return{tDisplayColumns:y,columnCheckboxKeys:O,renderColumnController:D}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function A8(t,e){var n=_e(t),a=n.expandedRowKeys,r=xe(),l=Ke("table",t.locale),o=l.t,i=l.globalConfig,u=at({ChevronRightCircleIcon:UC}),c=u.ChevronRightCircleIcon,v=on(),s=v.tableExpandClasses,d=v.positiveRotate90,f=v.tableFullRowClasses,p=Nt(a,t.defaultExpandedRowKeys||[],t.onExpandChange,"expandedRowKeys"),h=be(p,2),m=h[0],b=h[1],y=B(function(){return!!(t.expandedRow||e.slots.expandedRow||e.slots["expanded-row"])}),C=B(function(){return t.expandIcon!==!1&&y.value}),O=B(function(){var E;return((E=t.columns)===null||E===void 0||(E=E[0])===null||E===void 0?void 0:E.fixed)==="left"}),_=function(D,j){t.expandOnRowClick&&D.stopPropagation();var T=fe(j,t.rowKey||"id"),F=m.value.indexOf(T),w=ce(m.value);F!==-1?w.splice(F,1):w.push(T),b(w,{expandedRowData:t.data.filter(function(P){return w.includes(fe(P,t.rowKey||"id"))}),currentRowData:j})},$=function(D,j){var T=j.row,F=j.rowIndex,w=fe(T,t.rowKey||"id"),P=m.value.includes(w),A=r("expandIcon",{defaultNode:o(i.value.expandIcon)||g(c,null,null),params:{row:T,index:F}});if(!A)return null;var R=[s.iconBox,s[P?"expanded":"collapsed"],N({},d,P)];return g("span",{class:R,onClick:function(M){return _(M,T)}},[A])},I=function(){var D={colKey:"__EXPAND_ROW_ICON_COLUMN__",width:46,className:s.iconCell,fixed:O.value?"left":void 0,cell:$,stopPropagation:!0};return D},x=function(D){var j=fe(D.row,t.rowKey||"id");if(!m.value||!m.value.includes(j))return null;var T=D.isWidthOverflow&&t.columns.find(function(F){return F.fixed==="left"});return g("tr",{key:"expand_".concat(j),class:[s.row,N({},f.base,T)]},[g("td",{colspan:D.columns.length},[g("div",{class:[s.rowInner,N({},f.innerFullRow,T)],style:T?{width:"".concat(D.tableWidth,"px")}:{}},[g("div",{class:f.innerFullElement},[r("expandedRow",{params:D})])])])])},S=function(D){_(D.e,D.row)};return{showExpandedRow:y,showExpandIconColumn:C,getExpandColumn:I,renderExpandedRow:x,onInnerExpandRowClick:S}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Xc(t,e,n){if(!t)return!1;var a=pe(t.disabled)?t.disabled({row:e,rowIndex:n}):t.disabled;return t.checkProps&&(pe(t.checkProps)?a=a||t.checkProps({row:e,rowIndex:n}).disabled:t.checkProps==="object"&&(a=a||t.checkProps.disabled)),!!a}function R8(t,e,n){for(var a={},r=0,l=e.length;r<l;r++){var o=fe(e[r],n);t.includes(o)&&(a[o]=!0)}return a}function Li(t,e){for(var n=0,a=t.length;n<a;n++){var r;if(t[n].colKey===e)return t[n];if((r=t[n].children)!==null&&r!==void 0&&r.length){var l=Li(t[n].children,e);if(l)return l}}return null}function _m(t,e){for(var n=0,a=t.length;n<a;n++){var r;if(t[n].colKey===e)return n;if((r=t[n].children)!==null&&r!==void 0&&r.length){var l=Li(t[n].children,e);if(l)return n}}return-1}function lC(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=0,a=t.length;n<a;n++){var r,l=t[n];l.filter&&"resetValue"in l.filter&&(e[l.colKey]=l.filter.resetValue),(r=l.children)!==null&&r!==void 0&&r.length&&lC(l.children,e)}return e}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Sm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Uo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Sm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function M8(t,e){var n=_e(t),a=n.selectedRowKeys,r=n.columns,l=n.rowKey,o=n.data,i=n.reserveSelectedRowOnPaginate,u=G(o.value),c=G(),v=Nt(a,t.defaultSelectedRowKeys||[],t.onSelectChange,"selectedRowKeys"),s=be(v,2),d=s[0],f=s[1],p=G(new Map),h=B(function(){return t.columns.find(function(w){var P=w.type;return["multiple","single"].includes(P)})}),m=B(function(){var w;return t.rowSelectionType||((w=h.value)===null||w===void 0?void 0:w.type)||"single"}),b=B(function(){var w=i.value?o.value:u.value;return w.filter(function(P,A){return!O(P,A)})}),y=B(function(){return or(d.value,b.value.map(function(w){return fe(w,t.rowKey||"id")}))}),C=B(function(){var w;if(t.rowSelectionAllowUncheck)return!0;var P=m.value==="single";return!P||!h.value||!("allowUncheck"in((w=h.value)===null||w===void 0?void 0:w.checkProps))?!1:h.value.checkProps.allowUncheck});le([o,r,d,h,l],function(){var w,P=function(W){return h.value.disabled(W)?e.disabled:""},A=(w=h.value)!==null&&w!==void 0&&w.disabled?P:void 0,R=new Set(d.value),k=function(W){var U=W.row,H=fe(U,t.rowKey||"id");return R.has(H)?e.selected:""},M=R.size?k:void 0;c.value=[A,M]},{immediate:!0});function O(w,P){return Xc(h.value,w,P)}function _(){return function(){var w=y.value.length>0&&y.value.length<b.value.length,P=y.value.length!==0&&b.value.length!==0&&y.value.length===b.value.length;return g(Di,{checked:P,indeterminate:w,disabled:!b.value.length,onChange:S},null)}}function $(w){var P=w.col,A=w.row,R=w.rowIndex,k=pe(P.disabled)?P.disabled({row:A,rowIndex:R}):P.disabled,M=pe(P.checkProps)?P.checkProps({row:A,rowIndex:R}):P.checkProps;return{disabled:k||(M==null?void 0:M.disabled),checkProps:M}}function I(w){var P=w.col,A=w.row,R=A===void 0?{}:A,k=d.value.includes(fe(R,t.rowKey||"id")),M=$(w),V=M.disabled,W=M.checkProps,U=Uo(Uo({checked:k,disabled:V},W),{},{onClick:function(K){if(qe(K)==="object"&&"e"in K){var Y;(Y=K.e)===null||Y===void 0||Y.stopPropagation()}else K==null||K.stopPropagation()},onChange:function(){return x(R)}});if(P.type==="single")return g(cW,U,null);if(P.type==="multiple"){var H,L=(H=t.indeterminateSelectedRowKeys)!==null&&H!==void 0&&H.length?t.indeterminateSelectedRowKeys.includes(fe(R,t.rowKey)):!1;return g(Di,ve({indeterminate:L},U),null)}return null}function x(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=ce(d.value),A=t.rowKey||"id",R=fe(w,A),k=P.indexOf(R),M=k!==-1;if(m.value==="multiple")M?P.splice(k,1):P.push(R);else if(m.value==="single")P=M&&C.value?[]:[R];else{We.warn("Table","`column.type` must be one of `multiple` and `single`");return}f(P,{selectedRowData:P.map(function(V){return p.value.get(V)}),currentRowKey:R,currentRowData:w,type:M?"uncheck":"check"})}function S(w){var P,A=t.rowKey||"id",R=b.value.map(function(V){return fe(V,A)}),k=((P=a.value)===null||P===void 0?void 0:P.filter(function(V){return!R.includes(V)}))||[],M=w?[].concat(ce(k),ce(R)):ce(k);f(M,{selectedRowData:w?M.map(function(V){return p.value.get(V)}):[],type:w?"check":"uncheck",currentRowKey:"CHECK_ALL_BOX"})}function E(w){var P=["multiple","single"].includes(w.type);return P?Uo(Uo({},w),{},{width:w.width||64,className:[e.checkCell,w.className],cell:function(R,k){return I(k)},title:w.type==="multiple"?_():w.title}):w}var D=function(P){var A=P.row,R=P.index,k=t.columns.findIndex(function(W){return W.colKey==="row-select"}),M=!1;if(k!==-1){var V;M=(V=$({row:A,rowIndex:R,col:t.columns[k],colIndex:k}))===null||V===void 0?void 0:V.disabled}M||x(A)};le([o,l],function(){for(var w=0,P=o.value.length;w<P;w++)p.value.set(fe(o.value[w],l.value||"id"),o.value[w])},{immediate:!0});var j=B(function(){return!!(h.value||t.selectOnRowClick||t.selectedRowKeys)}),T=function(){f([],{selectedRowData:[],currentRowKey:void 0,currentRowData:void 0,type:"uncheck"})},F=function(P){var A=P.activeRowList,R=P.action;if(j.value){if(R==="clear"){T();return}if(R==="select-all"){S(!0);return}if(m.value==="single"){R==="space-one-selection"&&x(A[0].row);return}var k=A.filter(function(z){var K=z.row,Y=z.rowIndex;return!$({row:K,rowIndex:Y,col:h.value,colIndex:void 0}).disabled});if(k.length){var M=k.map(function(z){var K=z.row;return fe(K,t.rowKey)}),V=or(d.value,M),W=V.length!==M.length,U=d.value.filter(function(z){return!M.includes(z)}),H=W?ce(new Set(d.value.concat(M))):U,L=R==="space-one-selection"?A[0].row:void 0;f(H,{selectedRowData:A,currentRowKey:fe(L,t.rowKey),currentRowData:L,type:W?"check":"uncheck"})}}};return{selectColumn:h,showRowSelect:j,selectedRowClassNames:c,currentPaginateData:u,setTSelectedRowKeys:f,formatToRowSelectColumn:E,onInnerSelectRowClick:D,handleRowSelectWithAreaSelection:F}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function N8(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var L8=ne({name:"TSorterButton",props:{sortType:{type:String,default:"all"},sortOrder:{type:String,default:function(){return""}},locale:Object,sortIcon:Function,tooltipProps:Object,hideSortTips:Boolean},emits:["sort-icon-click"],setup:function(e,n){var a=on(),r=a.tableSortClasses,l=a.negativeRotate180,o=ka(),i=Ke("table",e.locale),u=i.t,c=i.globalConfig,v=at({ChevronDownIcon:Yi}),s=v.ChevronDownIcon,d=B(function(){return e.sortType==="all"?["asc","desc"]:[e.sortType]}),f=function(m,b){n.emit("sort-icon-click",m,{descending:b==="desc"})},p=function(m,b){var y=u(c.value.sortIcon)||g(s,null,null),C=o("sortIcon",y),O=[b,r.sortIcon,r.iconDirection[m],N({},l,m==="asc")];return g("span",{class:O,onClick:function($){return f($,m)}},[C])};return{t:u,globalConfig:c,tableSortClasses:r,negativeRotate180:l,allowSortTypes:d,getSortIcon:p}},render:function(){var e=this,n=this.tableSortClasses,a=[n.trigger,N({},n.doubleIcon,this.allowSortTypes.length>1)],r={asc:this.globalConfig.sortAscendingOperationText,desc:this.globalConfig.sortDescendingOperationText},l=this.allowSortTypes.map(function(o){var i,u,c=o===e.sortOrder?n.iconActive:n.iconDefault,v=e.globalConfig.sortCancelOperationText,s=o===e.sortOrder?v:r[o];return((u=e.hideSortTips)!==null&&u!==void 0?u:e.globalConfig.hideSortTips)?e.getSortIcon(o,c):g(er,ve({content:s,placement:"right",showArrow:!1,class:e.tableSortClasses.iconDirection[o]},e.tooltipProps),N8(i=e.getSortIcon(o,c))?i:{default:function(){return[i]}})});return g("div",{class:a},[l])}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function xm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function B8(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function V8(t,e){var n=e.slots,a=_e(t),r=a.sort,l=a.data,o=G(),i=Nt(r,t.defaultSort,t.onSortChange,"sort"),u=be(i,2),c=u[0],v=u[1],s=Nt(l,[],t.onDataChange,"data"),d=be(s,2),f=d[0],p=d[1],h=B(function(){return C(t.columns)}),m=G(),b=B(function(){var D=c.value;return D?ke(D)?D:[D]:[]}),y=B(function(){var D={};return b.value.forEach(function(j,T){var F=j.sortBy;D[F]=B8({index:T},j)}),D});function C(D){for(var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=0,F=D.length;T<F;T++){var w,P=D[T];pe(P.sorter)&&(j[P.colKey]=P.sorter),(w=P.children)!==null&&w!==void 0&&w.length&&C(P.children,j)}return j}function O(D){var j=D;if(Object.keys(h.value).length){o.value||(o.value=f.value);var T=!j||j instanceof Array&&!j.length,F=!(j instanceof Array)&&!(j!=null&&j.sortBy);if(T||F)return p(o.value,{trigger:"sort"}),o.value;var w=j instanceof Array?j:[j],P=f.value.slice().sort(function(A,R){for(var k=0,M=0,V=w.length;M<V;M++){var W=w[M],U=h.value[W.sortBy];if(k===0&&U)k=W.descending?U(R,A):U(A,R);else break}return k});if(JSON.stringify(P)!==JSON.stringify(f.value))return p(P,{trigger:"sort"}),P}}function _(D,j){var T,F;if(t.multipleSort)F=x(D,j);else{var w=c.value instanceof Array?c.value[0]:c.value;F=I(D,w,j)}var P=O(F),A=P||f.value,R=A;v(F,{currentDataSource:R,col:D}),(T=t.onChange)===null||T===void 0||T.call(t,{sorter:F},{currentData:A,trigger:"sorter"}),m.value=F}function $(D){if(D!==void 0)return D?"desc":"asc"}function I(D,j,T){if(!(j&&j.sortBy===D.colKey&&j.descending===T.descending))return{sortBy:D.colKey,descending:T.descending}}function x(D,j){Array.isArray(c.value)||(c.value=c.value?[c.value]:[]);for(var T=c.value,F=D.colKey,w=ce(T),P=0,A=T.length;P<A;P++)if(T[P].sortBy===F){var R=I(D,T[P],j);return R?w[P]=R:w.splice(P,1),w}return w.push({sortBy:F,descending:j.descending}),w}function S(D){var j,T=D.col;if(!T.sorter)return null;var F={sortType:T.sortType,sortOrder:$((j=y.value[T.colKey])===null||j===void 0?void 0:j.descending),sortIcon:t.sortIcon,hideSortTips:t.hideSortTips,locale:t.locale};return g(L8,ve(F,{onSortIconClick:function(P,A){return _(T,A)}}),{sortIcon:n.sortIcon})}var E=function(j,T){var F=ke(j)?j:[j],w=ke(T)?T:[T];if(F.length&&!T)return!1;for(var P=function(){var V=F[R],W=w.find(function(U){return U.sortBy===V.sortBy});return W?{v:V.descending===W.descending}:{v:!1}},A,R=0,k=F.length;R<k;R++)if(A=P(),A)return A.v};return le(function(){return[c,t.data]},function(){!c.value||!Object.keys(c.value).length||!f.value.length||E(c.value,m.value)||O(c.value)},{immediate:!0}),{renderSortIcon:S}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Pm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Yo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Pm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var H8=ne({name:"TableFilterController",props:{locale:Object,column:Object,colIndex:Number,tFilterValue:Object,innerFilterValue:Object,tableFilterClasses:Object,isFocusClass:String,primaryTableElement:{},popupProps:Object,attach:[String,Function],onVisibleChange:Function},emits:["inner-filter-change","reset","confirm"],setup:function(e,n){var a=G(null),r=ka(),l=Ke("table",e.locale),o=l.t,i=l.globalConfig,u=at({FilterIcon:YC}),c=u.FilterIcon,v=G(!1),s=function(b){var y;v.value=b,(y=e.onVisibleChange)===null||y===void 0||y.call(e,b)},d=function(b,y,C){if(!C)return null;var O=!!C.setup;if(pe(b.filter.component)&&!O)return b.filter.component(function($,I){var x=qe(I)==="object"&&"attrs"in I?I.attrs:{};return He($,{props:Yo(Yo({},y),x)})});var _=b.filter||{};return g(C,ve({class:_.classNames,style:_.style},_.attrs,y),null)},f=function(b){var y,C,O=["single","multiple","input"];if(b.type&&!O.includes(b.filter.type)){console.error("TDesign Table Error: column.filter.type must be the following: ".concat(JSON.stringify(O)));return}var _=e.innerFilterValue,$=_===void 0?{}:_,I={single:E0,multiple:Ny,input:ja}[b.filter.type]||b.filter.component;if(!(!I&&!b.filter.component)){var x=Yo(Yo({options:["single","multiple"].includes(b.filter.type)?(y=b.filter)===null||y===void 0?void 0:y.list:void 0},((C=b.filter)===null||C===void 0?void 0:C.props)||{}),{},{onChange:function(E,D){var j,T;if(n.emit("inner-filter-change",E,b),(j=b.filter.props)!==null&&j!==void 0&&j.onChange){var F,w;(F=(w=b.filter.props).onChange)===null||F===void 0||F.call(w,E,D)}(T=b.filter)!==null&&T!==void 0&&(T=T.confirmEvents)!==null&&T!==void 0&&T.includes("onChange")&&(v.value=!1)}});return b.colKey&&$&&b.colKey in $&&(x.value=$==null?void 0:$[b.colKey]),b.filter.confirmEvents&&b.filter.confirmEvents.forEach(function(S){S!=="onChange"&&(x[S]=function(){n.emit("confirm",b),v.value=!1})}),g("div",{class:e.tableFilterClasses.contentInner},[d(b,x,I)])}},p=function(b){if(b.filter.showConfirmAndReset)return g("div",{class:e.tableFilterClasses.bottomButtons},[g(Ot,{theme:"default",size:"small",onClick:function(){n.emit("reset",b),v.value=!1}},{default:function(){return[i.value.resetText]}}),g(Ot,{theme:"primary",size:"small",onClick:function(){n.emit("confirm",b),v.value=!1}},{default:function(){return[i.value.confirmText]}})])},h=function(){return g("div",{class:e.tableFilterClasses.popupContent},[f(e.column),p(e.column)])};return{t:o,globalConfig:i,FilterIcon:c,filterPopupVisible:v,triggerElementRef:a,renderTNode:r,getContent:h,onFilterPopupVisibleChange:s}},render:function(){var e,n=this,a=this.column,r=this.popupProps,l=this.FilterIcon;if(!a.filter||a.filter&&!Object.keys(a.filter).length)return null;var o=this.t(this.globalConfig.filterIcon)||g(l,null,null),i=(e=this.tFilterValue)===null||e===void 0?void 0:e[a.colKey],u=qe(i)==="object"&&!Ql(i),c=![null,void 0,""].includes(i)&&qe(i)!=="object";return g(Ma,ve({attach:this.attach||(this.primaryTableElement?function(){return n.primaryTableElement}:void 0),visible:this.filterPopupVisible,destroyOnClose:!0,trigger:"click",placement:"bottom-right",showArrow:!0,overlayClassName:this.tableFilterClasses.popup,onVisibleChange:function(s){return n.onFilterPopupVisibleChange(s)},class:[this.tableFilterClasses.icon,N({},this.isFocusClass,u||c)],content:this.getContent},r),{default:function(){return[g("div",{ref:"triggerElementRef"},[n.renderTNode("filterIcon",{defaultNode:o,params:{col:a,colIndex:n.colIndex}})])]}})}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Em(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Go(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Em(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Em(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function oC(t){var e=t instanceof Array&&t.length,n=qe(t)==="object"&&!(t instanceof Array),a=n&&Object.keys(t).length;return e||a||!["null","","undefined"].includes(String(t))}function K8(t){var e={};return Object.keys(t).forEach(function(n){var a=t[n];oC(a)&&(e[n]=a)}),e}function z8(t,e){var n=G(null),a=Ke("table",t.locale),r=a.t,l=a.globalConfig,o=ka(),i=_e(t),u=i.filterValue,c=i.columns,v=on(),s=v.tableFilterClasses,d=v.isFocusClass,f=G(),p=Nt(u,t.defaultFilterValue,t.onFilterChange,"filterValue"),h=be(p,2),m=h[0],b=h[1],y=G(m.value),C=B(function(){var w=K8(m.value||{});return!m.value||!Object.keys(w).length});le([m],function(w){var P=be(w,1),A=P[0];y.value=A});function O(){var w,P;if(C.value)return null;var A=g("div",{class:s.result},[g("span",null,[r(l.value.searchResultText,{result:_(),count:((w=t.pagination)===null||w===void 0?void 0:w.total)||((P=t.data)===null||P===void 0?void 0:P.length)})]),g(Ot,{theme:"primary",variant:"text",onClick:E},{default:function(){return[l.value.clearFilterResultButtonText]}})]),R=o("filterRow");return t.filterRow&&!R||t.filterRow===null?null:g("div",{class:s.inner},[R||A])}function _(){var w=[],P=[];return $(t.columns,P),P.filter(function(A){return A.filter}).forEach(function(A,R){var k=m.value[A.colKey];if(A.filter.list&&!["null"].includes(String(k))){var M=k instanceof Array?k:[k],V=[];A.filter.list.forEach(function(z){M.includes(z.value)&&V.push(z.label)}),k=V.join()}if(oC(k)){var W,U,H=pe((W=A.filter)===null||W===void 0?void 0:W.label)?A.filter.label(He):(U=A.filter)===null||U===void 0?void 0:U.label,L=Pu(e.slots,A,R);w.push("".concat(H||L,"：").concat(k))}}),w.join("；")}function $(w,P){w.forEach(function(A){A.children&&$(A.children,P),P.push(A)})}function I(w,P){var A=Go(Go({},y.value),{},N({},P.colKey,w));y.value=A,P.filter.showConfirmAndReset||x(A,"filter-change",P)}function x(w,P,A){var R;b(w,{col:A,trigger:P}),(R=t.onChange)===null||R===void 0||R.call(t,{filter:w},{trigger:"filter"})}function S(w){var P,A,R=Go(Go({},m.value),{},N({},w.colKey,(P=(A=w.filter.resetValue)!==null&&A!==void 0?A:{single:"",multiple:[],input:""}[w.filter.type])!==null&&P!==void 0?P:""));x(R,"reset",w)}function E(){var w=lC(c.value);x(w,"clear",void 0)}function D(w){x(y.value,"confirm",w)}function j(w){var P,A=w.col,R=w.colIndex;return g(H8,{column:A,colIndex:R,filterIcon:t.filterIcon,tFilterValue:m.value,innerFilterValue:y.value,tableFilterClasses:s,isFocusClass:d,popupProps:A.filter.popupProps,attach:t.attach,locale:t.locale,onReset:S,onConfirm:D,onInnerFilterChange:I,primaryTableElement:(P=n.value)===null||P===void 0?void 0:P.$el,onVisibleChange:F},{filterIcon:e.slots.filterIcon})}function T(w){n.value=w}function F(w){w&&!f.value&&(f.value=!w)}return{hasEmptyCondition:C,isTableOverflowHidden:f,renderFilterIcon:j,renderFirstFilterRow:O,setFilterPrimaryTableRef:T}}/**!
 * Sortable 1.15.0
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */function Tm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Zn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tm(Object(n),!0).forEach(function(a){W8(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function fi(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fi=function(e){return typeof e}:fi=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fi(t)}function W8(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ha(){return ha=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ha.apply(this,arguments)}function U8(t,e){if(t==null)return{};var n={},a=Object.keys(t),r,l;for(l=0;l<a.length;l++)r=a[l],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function Y8(t,e){if(t==null)return{};var n=U8(t,e),a,r;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r<l.length;r++)a=l[r],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}var G8="1.15.0";function va(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var ya=va(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Co=va(/Edge/i),Dm=va(/firefox/i),Wl=va(/safari/i)&&!va(/chrome/i)&&!va(/android/i),iC=va(/iP(ad|od|hone)/i),uC=va(/chrome/i)&&va(/android/i),cC={capture:!1,passive:!1};function lt(t,e,n){t.addEventListener(e,n,!ya&&cC)}function nt(t,e,n){t.removeEventListener(e,n,!ya&&cC)}function Bi(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function q8(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Yn(t,e,n,a){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Bi(t,e):Bi(t,e))||a&&t===n)return t;if(t===n)break}while(t=q8(t))}return null}var Im=/\s+/g;function dn(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var a=(" "+t.className+" ").replace(Im," ").replace(" "+e+" "," ");t.className=(a+(n?" "+e:"")).replace(Im," ")}}function Le(t,e,n){var a=t&&t.style;if(a){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in a)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),a[e]=n+(typeof n=="string"?"":"px")}}function Rr(t,e){var n="";if(typeof t=="string")n=t;else do{var a=Le(t,"transform");a&&a!=="none"&&(n=a+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function sC(t,e,n){if(t){var a=t.getElementsByTagName(e),r=0,l=a.length;if(n)for(;r<l;r++)n(a[r],r);return a}return[]}function qn(){var t=document.scrollingElement;return t||document.documentElement}function Mt(t,e,n,a,r){if(!(!t.getBoundingClientRect&&t!==window)){var l,o,i,u,c,v,s;if(t!==window&&t.parentNode&&t!==qn()?(l=t.getBoundingClientRect(),o=l.top,i=l.left,u=l.bottom,c=l.right,v=l.height,s=l.width):(o=0,i=0,u=window.innerHeight,c=window.innerWidth,v=window.innerHeight,s=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!ya))do if(r&&r.getBoundingClientRect&&(Le(r,"transform")!=="none"||n&&Le(r,"position")!=="static")){var d=r.getBoundingClientRect();o-=d.top+parseInt(Le(r,"border-top-width")),i-=d.left+parseInt(Le(r,"border-left-width")),u=o+l.height,c=i+l.width;break}while(r=r.parentNode);if(a&&t!==window){var f=Rr(r||t),p=f&&f.a,h=f&&f.d;f&&(o/=h,i/=p,s/=p,v/=h,u=o+v,c=i+s)}return{top:o,left:i,bottom:u,right:c,width:s,height:v}}}function jm(t,e,n){for(var a=Ea(t,!0),r=Mt(t)[e];a;){var l=Mt(a)[n],o=void 0;if(n==="top"||n==="left"?o=r>=l:o=r<=l,!o)return a;if(a===qn())break;a=Ea(a,!1)}return!1}function Zr(t,e,n,a){for(var r=0,l=0,o=t.children;l<o.length;){if(o[l].style.display!=="none"&&o[l]!==Ne.ghost&&(a||o[l]!==Ne.dragged)&&Yn(o[l],n.draggable,t,!1)){if(r===e)return o[l];r++}l++}return null}function cv(t,e){for(var n=t.lastElementChild;n&&(n===Ne.ghost||Le(n,"display")==="none"||e&&!Bi(n,e));)n=n.previousElementSibling;return n||null}function _n(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Ne.clone&&(!e||Bi(t,e))&&n++;return n}function $m(t){var e=0,n=0,a=qn();if(t)do{var r=Rr(t),l=r.a,o=r.d;e+=t.scrollLeft*l,n+=t.scrollTop*o}while(t!==a&&(t=t.parentNode));return[e,n]}function X8(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var a in e)if(e.hasOwnProperty(a)&&e[a]===t[n][a])return Number(n)}return-1}function Ea(t,e){if(!t||!t.getBoundingClientRect)return qn();var n=t,a=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=Le(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return qn();if(a||e)return n;a=!0}}while(n=n.parentNode);return qn()}function J8(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function lc(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Ul;function vC(t,e){return function(){if(!Ul){var n=arguments,a=this;n.length===1?t.call(a,n[0]):t.apply(a,n),Ul=setTimeout(function(){Ul=void 0},e)}}}function Z8(){clearTimeout(Ul),Ul=void 0}function dC(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function fC(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var hn="Sortable"+new Date().getTime();function Q8(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var a=[].slice.call(this.el.children);a.forEach(function(r){if(!(Le(r,"display")==="none"||r===Ne.ghost)){t.push({target:r,rect:Mt(r)});var l=Zn({},t[t.length-1].rect);if(r.thisAnimationDuration){var o=Rr(r,!0);o&&(l.top-=o.f,l.left-=o.e)}r.fromRect=l}})}},addAnimationState:function(a){t.push(a)},removeAnimationState:function(a){t.splice(X8(t,{target:a}),1)},animateAll:function(a){var r=this;if(!this.options.animation){clearTimeout(e),typeof a=="function"&&a();return}var l=!1,o=0;t.forEach(function(i){var u=0,c=i.target,v=c.fromRect,s=Mt(c),d=c.prevFromRect,f=c.prevToRect,p=i.rect,h=Rr(c,!0);h&&(s.top-=h.f,s.left-=h.e),c.toRect=s,c.thisAnimationDuration&&lc(d,s)&&!lc(v,s)&&(p.top-s.top)/(p.left-s.left)===(v.top-s.top)/(v.left-s.left)&&(u=t4(p,d,f,r.options)),lc(s,v)||(c.prevFromRect=v,c.prevToRect=s,u||(u=r.options.animation),r.animate(c,p,s,u)),u&&(l=!0,o=Math.max(o,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(e),l?e=setTimeout(function(){typeof a=="function"&&a()},o):typeof a=="function"&&a(),t=[]},animate:function(a,r,l,o){if(o){Le(a,"transition",""),Le(a,"transform","");var i=Rr(this.el),u=i&&i.a,c=i&&i.d,v=(r.left-l.left)/(u||1),s=(r.top-l.top)/(c||1);a.animatingX=!!v,a.animatingY=!!s,Le(a,"transform","translate3d("+v+"px,"+s+"px,0)"),this.forRepaintDummy=e4(a),Le(a,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Le(a,"transform","translate3d(0,0,0)"),typeof a.animated=="number"&&clearTimeout(a.animated),a.animated=setTimeout(function(){Le(a,"transition",""),Le(a,"transform",""),a.animated=!1,a.animatingX=!1,a.animatingY=!1},o)}}}}function e4(t){return t.offsetWidth}function t4(t,e,n,a){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*a.animation}var Sr=[],oc={initializeByDefault:!0},wo={mount:function(e){for(var n in oc)oc.hasOwnProperty(n)&&!(n in e)&&(e[n]=oc[n]);Sr.forEach(function(a){if(a.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Sr.push(e)},pluginEvent:function(e,n,a){var r=this;this.eventCanceled=!1,a.cancel=function(){r.eventCanceled=!0};var l=e+"Global";Sr.forEach(function(o){n[o.pluginName]&&(n[o.pluginName][l]&&n[o.pluginName][l](Zn({sortable:n},a)),n.options[o.pluginName]&&n[o.pluginName][e]&&n[o.pluginName][e](Zn({sortable:n},a)))})},initializePlugins:function(e,n,a,r){Sr.forEach(function(i){var u=i.pluginName;if(!(!e.options[u]&&!i.initializeByDefault)){var c=new i(e,n,e.options);c.sortable=e,c.options=e.options,e[u]=c,ha(a,c.defaults)}});for(var l in e.options)if(e.options.hasOwnProperty(l)){var o=this.modifyOption(e,l,e.options[l]);typeof o<"u"&&(e.options[l]=o)}},getEventProperties:function(e,n){var a={};return Sr.forEach(function(r){typeof r.eventProperties=="function"&&ha(a,r.eventProperties.call(n[r.pluginName],e))}),a},modifyOption:function(e,n,a){var r;return Sr.forEach(function(l){e[l.pluginName]&&l.optionListeners&&typeof l.optionListeners[n]=="function"&&(r=l.optionListeners[n].call(e[l.pluginName],a))}),r}};function n4(t){var e=t.sortable,n=t.rootEl,a=t.name,r=t.targetEl,l=t.cloneEl,o=t.toEl,i=t.fromEl,u=t.oldIndex,c=t.newIndex,v=t.oldDraggableIndex,s=t.newDraggableIndex,d=t.originalEvent,f=t.putSortable,p=t.extraEventProperties;if(e=e||n&&n[hn],!!e){var h,m=e.options,b="on"+a.charAt(0).toUpperCase()+a.substr(1);window.CustomEvent&&!ya&&!Co?h=new CustomEvent(a,{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent(a,!0,!0)),h.to=o||n,h.from=i||n,h.item=r||n,h.clone=l,h.oldIndex=u,h.newIndex=c,h.oldDraggableIndex=v,h.newDraggableIndex=s,h.originalEvent=d,h.pullMode=f?f.lastPutMode:void 0;var y=Zn(Zn({},p),wo.getEventProperties(a,e));for(var C in y)h[C]=y[C];n&&n.dispatchEvent(h),m[b]&&m[b].call(e,h)}}var a4=["evt"],en=function(e,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=a.evt,l=Y8(a,a4);wo.pluginEvent.bind(Ne)(e,n,Zn({dragEl:we,parentEl:Dt,ghostEl:Ge,rootEl:St,nextEl:Ja,lastDownEl:gi,cloneEl:Pt,cloneHidden:Pa,dragStarted:kl,putSortable:Vt,activeSortable:Ne.active,originalEvent:r,oldIndex:jr,oldDraggableIndex:Yl,newIndex:fn,newDraggableIndex:xa,hideGhostForTarget:pC,unhideGhostForTarget:bC,cloneNowHidden:function(){Pa=!0},cloneNowShown:function(){Pa=!1},dispatchSortableEvent:function(i){Gt({sortable:n,name:i,originalEvent:r})}},l))};function Gt(t){n4(Zn({putSortable:Vt,cloneEl:Pt,targetEl:we,rootEl:St,oldIndex:jr,oldDraggableIndex:Yl,newIndex:fn,newDraggableIndex:xa},t))}var we,Dt,Ge,St,Ja,gi,Pt,Pa,jr,fn,Yl,xa,qo,Vt,Dr=!1,Vi=!1,Hi=[],Ya,In,ic,uc,Fm,km,kl,xr,Gl,ql=!1,Xo=!1,hi,Wt,cc=[],Jc=!1,Ki=[],Eu=typeof document<"u",Jo=iC,Am=Co||ya?"cssFloat":"float",r4=Eu&&!uC&&!iC&&"draggable"in document.createElement("div"),gC=function(){if(Eu){if(ya)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),hC=function(e,n){var a=Le(e),r=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),l=Zr(e,0,n),o=Zr(e,1,n),i=l&&Le(l),u=o&&Le(o),c=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Mt(l).width,v=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Mt(o).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(l&&i.float&&i.float!=="none"){var s=i.float==="left"?"left":"right";return o&&(u.clear==="both"||u.clear===s)?"vertical":"horizontal"}return l&&(i.display==="block"||i.display==="flex"||i.display==="table"||i.display==="grid"||c>=r&&a[Am]==="none"||o&&a[Am]==="none"&&c+v>r)?"vertical":"horizontal"},l4=function(e,n,a){var r=a?e.left:e.top,l=a?e.right:e.bottom,o=a?e.width:e.height,i=a?n.left:n.top,u=a?n.right:n.bottom,c=a?n.width:n.height;return r===i||l===u||r+o/2===i+c/2},o4=function(e,n){var a;return Hi.some(function(r){var l=r[hn].options.emptyInsertThreshold;if(!(!l||cv(r))){var o=Mt(r),i=e>=o.left-l&&e<=o.right+l,u=n>=o.top-l&&n<=o.bottom+l;if(i&&u)return a=r}}),a},mC=function(e){function n(l,o){return function(i,u,c,v){var s=i.options.group.name&&u.options.group.name&&i.options.group.name===u.options.group.name;if(l==null&&(o||s))return!0;if(l==null||l===!1)return!1;if(o&&l==="clone")return l;if(typeof l=="function")return n(l(i,u,c,v),o)(i,u,c,v);var d=(o?i:u).options.group.name;return l===!0||typeof l=="string"&&l===d||l.join&&l.indexOf(d)>-1}}var a={},r=e.group;(!r||fi(r)!="object")&&(r={name:r}),a.name=r.name,a.checkPull=n(r.pull,!0),a.checkPut=n(r.put),a.revertClone=r.revertClone,e.group=a},pC=function(){!gC&&Ge&&Le(Ge,"display","none")},bC=function(){!gC&&Ge&&Le(Ge,"display","")};Eu&&!uC&&document.addEventListener("click",function(t){if(Vi)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Vi=!1,!1},!0);var Ga=function(e){if(we){e=e.touches?e.touches[0]:e;var n=o4(e.clientX,e.clientY);if(n){var a={};for(var r in e)e.hasOwnProperty(r)&&(a[r]=e[r]);a.target=a.rootEl=n,a.preventDefault=void 0,a.stopPropagation=void 0,n[hn]._onDragOver(a)}}},i4=function(e){we&&we.parentNode[hn]._isOutsideThisEl(e.target)};function Ne(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=ha({},e),t[hn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return hC(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,i){o.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Ne.supportPointer!==!1&&"PointerEvent"in window&&!Wl,emptyInsertThreshold:5};wo.initializePlugins(this,t,n);for(var a in n)!(a in e)&&(e[a]=n[a]);mC(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:r4,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?lt(t,"pointerdown",this._onTapStart):(lt(t,"mousedown",this._onTapStart),lt(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(lt(t,"dragover",this),lt(t,"dragenter",this)),Hi.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ha(this,Q8())}Ne.prototype={constructor:Ne,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(xr=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,we):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,a=this.el,r=this.options,l=r.preventOnFilter,o=e.type,i=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(i||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,v=r.filter;if(h4(a),!we&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Wl&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Yn(u,r.draggable,a,!1),!(u&&u.animated)&&gi!==u)){if(jr=_n(u),Yl=_n(u,r.draggable),typeof v=="function"){if(v.call(this,e,u,this)){Gt({sortable:n,rootEl:c,name:"filter",targetEl:u,toEl:a,fromEl:a}),en("filter",n,{evt:e}),l&&e.cancelable&&e.preventDefault();return}}else if(v&&(v=v.split(",").some(function(s){if(s=Yn(c,s.trim(),a,!1),s)return Gt({sortable:n,rootEl:s,name:"filter",targetEl:u,fromEl:a,toEl:a}),en("filter",n,{evt:e}),!0}),v)){l&&e.cancelable&&e.preventDefault();return}r.handle&&!Yn(c,r.handle,a,!1)||this._prepareDragStart(e,i,u)}}},_prepareDragStart:function(e,n,a){var r=this,l=r.el,o=r.options,i=l.ownerDocument,u;if(a&&!we&&a.parentNode===l){var c=Mt(a);if(St=l,we=a,Dt=we.parentNode,Ja=we.nextSibling,gi=a,qo=o.group,Ne.dragged=we,Ya={target:we,clientX:(n||e).clientX,clientY:(n||e).clientY},Fm=Ya.clientX-c.left,km=Ya.clientY-c.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,we.style["will-change"]="all",u=function(){if(en("delayEnded",r,{evt:e}),Ne.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Dm&&r.nativeDraggable&&(we.draggable=!0),r._triggerDragStart(e,n),Gt({sortable:r,name:"choose",originalEvent:e}),dn(we,o.chosenClass,!0)},o.ignore.split(",").forEach(function(v){sC(we,v.trim(),sc)}),lt(i,"dragover",Ga),lt(i,"mousemove",Ga),lt(i,"touchmove",Ga),lt(i,"mouseup",r._onDrop),lt(i,"touchend",r._onDrop),lt(i,"touchcancel",r._onDrop),Dm&&this.nativeDraggable&&(this.options.touchStartThreshold=4,we.draggable=!0),en("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Co||ya))){if(Ne.eventCanceled){this._onDrop();return}lt(i,"mouseup",r._disableDelayedDrag),lt(i,"touchend",r._disableDelayedDrag),lt(i,"touchcancel",r._disableDelayedDrag),lt(i,"mousemove",r._delayedDragTouchMoveHandler),lt(i,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&lt(i,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(u,o.delay)}else u()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){we&&sc(we),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;nt(e,"mouseup",this._disableDelayedDrag),nt(e,"touchend",this._disableDelayedDrag),nt(e,"touchcancel",this._disableDelayedDrag),nt(e,"mousemove",this._delayedDragTouchMoveHandler),nt(e,"touchmove",this._delayedDragTouchMoveHandler),nt(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?lt(document,"pointermove",this._onTouchMove):n?lt(document,"touchmove",this._onTouchMove):lt(document,"mousemove",this._onTouchMove):(lt(we,"dragend",this),lt(St,"dragstart",this._onDragStart));try{document.selection?mi(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Dr=!1,St&&we){en("dragStarted",this,{evt:n}),this.nativeDraggable&&lt(document,"dragover",i4);var a=this.options;!e&&dn(we,a.dragClass,!1),dn(we,a.ghostClass,!0),Ne.active=this,e&&this._appendGhost(),Gt({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(In){this._lastX=In.clientX,this._lastY=In.clientY,pC();for(var e=document.elementFromPoint(In.clientX,In.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(In.clientX,In.clientY),e!==n);)n=e;if(we.parentNode[hn]._isOutsideThisEl(e),n)do{if(n[hn]){var a=void 0;if(a=n[hn]._onDragOver({clientX:In.clientX,clientY:In.clientY,target:e,rootEl:n}),a&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);bC()}},_onTouchMove:function(e){if(Ya){var n=this.options,a=n.fallbackTolerance,r=n.fallbackOffset,l=e.touches?e.touches[0]:e,o=Ge&&Rr(Ge,!0),i=Ge&&o&&o.a,u=Ge&&o&&o.d,c=Jo&&Wt&&$m(Wt),v=(l.clientX-Ya.clientX+r.x)/(i||1)+(c?c[0]-cc[0]:0)/(i||1),s=(l.clientY-Ya.clientY+r.y)/(u||1)+(c?c[1]-cc[1]:0)/(u||1);if(!Ne.active&&!Dr){if(a&&Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))<a)return;this._onDragStart(e,!0)}if(Ge){o?(o.e+=v-(ic||0),o.f+=s-(uc||0)):o={a:1,b:0,c:0,d:1,e:v,f:s};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Le(Ge,"webkitTransform",d),Le(Ge,"mozTransform",d),Le(Ge,"msTransform",d),Le(Ge,"transform",d),ic=v,uc=s,In=l}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Ge){var e=this.options.fallbackOnBody?document.body:St,n=Mt(we,!0,Jo,!0,e),a=this.options;if(Jo){for(Wt=e;Le(Wt,"position")==="static"&&Le(Wt,"transform")==="none"&&Wt!==document;)Wt=Wt.parentNode;Wt!==document.body&&Wt!==document.documentElement?(Wt===document&&(Wt=qn()),n.top+=Wt.scrollTop,n.left+=Wt.scrollLeft):Wt=qn(),cc=$m(Wt)}Ge=we.cloneNode(!0),dn(Ge,a.ghostClass,!1),dn(Ge,a.fallbackClass,!0),dn(Ge,a.dragClass,!0),Le(Ge,"transition",""),Le(Ge,"transform",""),Le(Ge,"box-sizing","border-box"),Le(Ge,"margin",0),Le(Ge,"top",n.top),Le(Ge,"left",n.left),Le(Ge,"width",n.width),Le(Ge,"height",n.height),Le(Ge,"opacity","0.8"),Le(Ge,"position",Jo?"absolute":"fixed"),Le(Ge,"zIndex","100000"),Le(Ge,"pointerEvents","none"),Ne.ghost=Ge,e.appendChild(Ge),Le(Ge,"transform-origin",Fm/parseInt(Ge.style.width)*100+"% "+km/parseInt(Ge.style.height)*100+"%")}},_onDragStart:function(e,n){var a=this,r=e.dataTransfer,l=a.options;if(en("dragStart",this,{evt:e}),Ne.eventCanceled){this._onDrop();return}en("setupClone",this),Ne.eventCanceled||(Pt=fC(we),Pt.removeAttribute("id"),Pt.draggable=!1,Pt.style["will-change"]="",this._hideClone(),dn(Pt,this.options.chosenClass,!1),Ne.clone=Pt),a.cloneId=mi(function(){en("clone",a),!Ne.eventCanceled&&(a.options.removeCloneOnHide||St.insertBefore(Pt,we),a._hideClone(),Gt({sortable:a,name:"clone"}))}),!n&&dn(we,l.dragClass,!0),n?(Vi=!0,a._loopId=setInterval(a._emulateDragOver,50)):(nt(document,"mouseup",a._onDrop),nt(document,"touchend",a._onDrop),nt(document,"touchcancel",a._onDrop),r&&(r.effectAllowed="move",l.setData&&l.setData.call(a,r,we)),lt(document,"drop",a),Le(we,"transform","translateZ(0)")),Dr=!0,a._dragStartId=mi(a._dragStarted.bind(a,n,e)),lt(document,"selectstart",a),kl=!0,Wl&&Le(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,a=e.target,r,l,o,i=this.options,u=i.group,c=Ne.active,v=qo===u,s=i.sort,d=Vt||c,f,p=this,h=!1;if(Jc)return;function m(R,k){en(R,p,Zn({evt:e,isOwner:v,axis:f?"vertical":"horizontal",revert:o,dragRect:r,targetRect:l,canSort:s,fromSortable:d,target:a,completed:y,onMove:function(V,W){return Zo(St,n,we,r,V,Mt(V),e,W)},changed:C},k))}function b(){m("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function y(R){return m("dragOverCompleted",{insertion:R}),R&&(v?c._hideClone():c._showClone(p),p!==d&&(dn(we,Vt?Vt.options.ghostClass:c.options.ghostClass,!1),dn(we,i.ghostClass,!0)),Vt!==p&&p!==Ne.active?Vt=p:p===Ne.active&&Vt&&(Vt=null),d===p&&(p._ignoreWhileAnimating=a),p.animateAll(function(){m("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===we&&!we.animated||a===n&&!a.animated)&&(xr=null),!i.dragoverBubble&&!e.rootEl&&a!==document&&(we.parentNode[hn]._isOutsideThisEl(e.target),!R&&Ga(e)),!i.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function C(){fn=_n(we),xa=_n(we,i.draggable),Gt({sortable:p,name:"change",toEl:n,newIndex:fn,newDraggableIndex:xa,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),a=Yn(a,i.draggable,n,!0),m("dragOver"),Ne.eventCanceled)return h;if(we.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return y(!1);if(Vi=!1,c&&!i.disabled&&(v?s||(o=Dt!==St):Vt===this||(this.lastPutMode=qo.checkPull(this,c,we,e))&&u.checkPut(this,c,we,e))){if(f=this._getDirection(e,a)==="vertical",r=Mt(we),m("dragOverValid"),Ne.eventCanceled)return h;if(o)return Dt=St,b(),this._hideClone(),m("revert"),Ne.eventCanceled||(Ja?St.insertBefore(we,Ja):St.appendChild(we)),y(!0);var O=cv(n,i.draggable);if(!O||v4(e,f,this)&&!O.animated){if(O===we)return y(!1);if(O&&n===e.target&&(a=O),a&&(l=Mt(a)),Zo(St,n,we,r,a,l,e,!!a)!==!1)return b(),O&&O.nextSibling?n.insertBefore(we,O.nextSibling):n.appendChild(we),Dt=n,C(),y(!0)}else if(O&&s4(e,f,this)){var _=Zr(n,0,i,!0);if(_===we)return y(!1);if(a=_,l=Mt(a),Zo(St,n,we,r,a,l,e,!1)!==!1)return b(),n.insertBefore(we,_),Dt=n,C(),y(!0)}else if(a.parentNode===n){l=Mt(a);var $=0,I,x=we.parentNode!==n,S=!l4(we.animated&&we.toRect||r,a.animated&&a.toRect||l,f),E=f?"top":"left",D=jm(a,"top","top")||jm(we,"top","top"),j=D?D.scrollTop:void 0;xr!==a&&(I=l[E],ql=!1,Xo=!S&&i.invertSwap||x),$=d4(e,a,l,f,S?1:i.swapThreshold,i.invertedSwapThreshold==null?i.swapThreshold:i.invertedSwapThreshold,Xo,xr===a);var T;if($!==0){var F=_n(we);do F-=$,T=Dt.children[F];while(T&&(Le(T,"display")==="none"||T===Ge))}if($===0||T===a)return y(!1);xr=a,Gl=$;var w=a.nextElementSibling,P=!1;P=$===1;var A=Zo(St,n,we,r,a,l,e,P);if(A!==!1)return(A===1||A===-1)&&(P=A===1),Jc=!0,setTimeout(c4,30),b(),P&&!w?n.appendChild(we):a.parentNode.insertBefore(we,P?w:a),D&&dC(D,0,j-D.scrollTop),Dt=we.parentNode,I!==void 0&&!Xo&&(hi=Math.abs(I-Mt(a)[E])),C(),y(!0)}if(n.contains(we))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){nt(document,"mousemove",this._onTouchMove),nt(document,"touchmove",this._onTouchMove),nt(document,"pointermove",this._onTouchMove),nt(document,"dragover",Ga),nt(document,"mousemove",Ga),nt(document,"touchmove",Ga)},_offUpEvents:function(){var e=this.el.ownerDocument;nt(e,"mouseup",this._onDrop),nt(e,"touchend",this._onDrop),nt(e,"pointerup",this._onDrop),nt(e,"touchcancel",this._onDrop),nt(document,"selectstart",this)},_onDrop:function(e){var n=this.el,a=this.options;if(fn=_n(we),xa=_n(we,a.draggable),en("drop",this,{evt:e}),Dt=we&&we.parentNode,fn=_n(we),xa=_n(we,a.draggable),Ne.eventCanceled){this._nulling();return}Dr=!1,Xo=!1,ql=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Zc(this.cloneId),Zc(this._dragStartId),this.nativeDraggable&&(nt(document,"drop",this),nt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Wl&&Le(document.body,"user-select",""),Le(we,"transform",""),e&&(kl&&(e.cancelable&&e.preventDefault(),!a.dropBubble&&e.stopPropagation()),Ge&&Ge.parentNode&&Ge.parentNode.removeChild(Ge),(St===Dt||Vt&&Vt.lastPutMode!=="clone")&&Pt&&Pt.parentNode&&Pt.parentNode.removeChild(Pt),we&&(this.nativeDraggable&&nt(we,"dragend",this),sc(we),we.style["will-change"]="",kl&&!Dr&&dn(we,Vt?Vt.options.ghostClass:this.options.ghostClass,!1),dn(we,this.options.chosenClass,!1),Gt({sortable:this,name:"unchoose",toEl:Dt,newIndex:null,newDraggableIndex:null,originalEvent:e}),St!==Dt?(fn>=0&&(Gt({rootEl:Dt,name:"add",toEl:Dt,fromEl:St,originalEvent:e}),Gt({sortable:this,name:"remove",toEl:Dt,originalEvent:e}),Gt({rootEl:Dt,name:"sort",toEl:Dt,fromEl:St,originalEvent:e}),Gt({sortable:this,name:"sort",toEl:Dt,originalEvent:e})),Vt&&Vt.save()):fn!==jr&&fn>=0&&(Gt({sortable:this,name:"update",toEl:Dt,originalEvent:e}),Gt({sortable:this,name:"sort",toEl:Dt,originalEvent:e})),Ne.active&&((fn==null||fn===-1)&&(fn=jr,xa=Yl),Gt({sortable:this,name:"end",toEl:Dt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){en("nulling",this),St=we=Dt=Ge=Ja=Pt=gi=Pa=Ya=In=kl=fn=xa=jr=Yl=xr=Gl=Vt=qo=Ne.dragged=Ne.ghost=Ne.clone=Ne.active=null,Ki.forEach(function(e){e.checked=!0}),Ki.length=ic=uc=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":we&&(this._onDragOver(e),u4(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,a=this.el.children,r=0,l=a.length,o=this.options;r<l;r++)n=a[r],Yn(n,o.draggable,this.el,!1)&&e.push(n.getAttribute(o.dataIdAttr)||g4(n));return e},sort:function(e,n){var a={},r=this.el;this.toArray().forEach(function(l,o){var i=r.children[o];Yn(i,this.options.draggable,r,!1)&&(a[l]=i)},this),n&&this.captureAnimationState(),e.forEach(function(l){a[l]&&(r.removeChild(a[l]),r.appendChild(a[l]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Yn(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var a=this.options;if(n===void 0)return a[e];var r=wo.modifyOption(this,e,n);typeof r<"u"?a[e]=r:a[e]=n,e==="group"&&mC(a)},destroy:function(){en("destroy",this);var e=this.el;e[hn]=null,nt(e,"mousedown",this._onTapStart),nt(e,"touchstart",this._onTapStart),nt(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(nt(e,"dragover",this),nt(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Hi.splice(Hi.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Pa){if(en("hideClone",this),Ne.eventCanceled)return;Le(Pt,"display","none"),this.options.removeCloneOnHide&&Pt.parentNode&&Pt.parentNode.removeChild(Pt),Pa=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Pa){if(en("showClone",this),Ne.eventCanceled)return;we.parentNode==St&&!this.options.group.revertClone?St.insertBefore(Pt,we):Ja?St.insertBefore(Pt,Ja):St.appendChild(Pt),this.options.group.revertClone&&this.animate(we,Pt),Le(Pt,"display",""),Pa=!1}}};function u4(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Zo(t,e,n,a,r,l,o,i){var u,c=t[hn],v=c.options.onMove,s;return window.CustomEvent&&!ya&&!Co?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=t,u.dragged=n,u.draggedRect=a,u.related=r||e,u.relatedRect=l||Mt(e),u.willInsertAfter=i,u.originalEvent=o,t.dispatchEvent(u),v&&(s=v.call(c,u,o)),s}function sc(t){t.draggable=!1}function c4(){Jc=!1}function s4(t,e,n){var a=Mt(Zr(n.el,0,n.options,!0)),r=10;return e?t.clientX<a.left-r||t.clientY<a.top&&t.clientX<a.right:t.clientY<a.top-r||t.clientY<a.bottom&&t.clientX<a.left}function v4(t,e,n){var a=Mt(cv(n.el,n.options.draggable)),r=10;return e?t.clientX>a.right+r||t.clientX<=a.right&&t.clientY>a.bottom&&t.clientX>=a.left:t.clientX>a.right&&t.clientY>a.top||t.clientX<=a.right&&t.clientY>a.bottom+r}function d4(t,e,n,a,r,l,o,i){var u=a?t.clientY:t.clientX,c=a?n.height:n.width,v=a?n.top:n.left,s=a?n.bottom:n.right,d=!1;if(!o){if(i&&hi<c*r){if(!ql&&(Gl===1?u>v+c*l/2:u<s-c*l/2)&&(ql=!0),ql)d=!0;else if(Gl===1?u<v+hi:u>s-hi)return-Gl}else if(u>v+c*(1-r)/2&&u<s-c*(1-r)/2)return f4(e)}return d=d||o,d&&(u<v+c*l/2||u>s-c*l/2)?u>v+c/2?1:-1:0}function f4(t){return _n(we)<_n(t)?1:-1}function g4(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,a=0;n--;)a+=e.charCodeAt(n);return a.toString(36)}function h4(t){Ki.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var a=e[n];a.checked&&Ki.push(a)}}function mi(t){return setTimeout(t,0)}function Zc(t){return clearTimeout(t)}Eu&&lt(document,"touchmove",function(t){(Ne.active||Dr)&&t.cancelable&&t.preventDefault()});Ne.utils={on:lt,off:nt,css:Le,find:sC,is:function(e,n){return!!Yn(e,n,e,!1)},extend:J8,throttle:vC,closest:Yn,toggleClass:dn,clone:fC,index:_n,nextTick:mi,cancelNextTick:Zc,detectDirection:hC,getChild:Zr};Ne.get=function(t){return t[hn]};Ne.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(a){if(!a.prototype||!a.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));a.utils&&(Ne.utils=Zn(Zn({},Ne.utils),a.utils)),wo.mount(a)})};Ne.create=function(t,e){return new Ne(t,e)};Ne.version=G8;var $t=[],Al,Qc,es=!1,vc,dc,zi,Rl;function m4(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var a=n.originalEvent;this.sortable.nativeDraggable?lt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?lt(document,"pointermove",this._handleFallbackAutoScroll):a.touches?lt(document,"touchmove",this._handleFallbackAutoScroll):lt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var a=n.originalEvent;!this.options.dragOverBubble&&!a.rootEl&&this._handleAutoScroll(a)},drop:function(){this.sortable.nativeDraggable?nt(document,"dragover",this._handleAutoScroll):(nt(document,"pointermove",this._handleFallbackAutoScroll),nt(document,"touchmove",this._handleFallbackAutoScroll),nt(document,"mousemove",this._handleFallbackAutoScroll)),Rm(),pi(),Z8()},nulling:function(){zi=Qc=Al=es=Rl=vc=dc=null,$t.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,a){var r=this,l=(n.touches?n.touches[0]:n).clientX,o=(n.touches?n.touches[0]:n).clientY,i=document.elementFromPoint(l,o);if(zi=n,a||this.options.forceAutoScrollFallback||Co||ya||Wl){fc(n,this.options,i,a);var u=Ea(i,!0);es&&(!Rl||l!==vc||o!==dc)&&(Rl&&Rm(),Rl=setInterval(function(){var c=Ea(document.elementFromPoint(l,o),!0);c!==u&&(u=c,pi()),fc(n,r.options,c,a)},10),vc=l,dc=o)}else{if(!this.options.bubbleScroll||Ea(i,!0)===qn()){pi();return}fc(n,this.options,Ea(i,!1),!1)}}},ha(t,{pluginName:"scroll",initializeByDefault:!0})}function pi(){$t.forEach(function(t){clearInterval(t.pid)}),$t=[]}function Rm(){clearInterval(Rl)}var fc=vC(function(t,e,n,a){if(e.scroll){var r=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,o=e.scrollSensitivity,i=e.scrollSpeed,u=qn(),c=!1,v;Qc!==n&&(Qc=n,pi(),Al=e.scroll,v=e.scrollFn,Al===!0&&(Al=Ea(n,!0)));var s=0,d=Al;do{var f=d,p=Mt(f),h=p.top,m=p.bottom,b=p.left,y=p.right,C=p.width,O=p.height,_=void 0,$=void 0,I=f.scrollWidth,x=f.scrollHeight,S=Le(f),E=f.scrollLeft,D=f.scrollTop;f===u?(_=C<I&&(S.overflowX==="auto"||S.overflowX==="scroll"||S.overflowX==="visible"),$=O<x&&(S.overflowY==="auto"||S.overflowY==="scroll"||S.overflowY==="visible")):(_=C<I&&(S.overflowX==="auto"||S.overflowX==="scroll"),$=O<x&&(S.overflowY==="auto"||S.overflowY==="scroll"));var j=_&&(Math.abs(y-r)<=o&&E+C<I)-(Math.abs(b-r)<=o&&!!E),T=$&&(Math.abs(m-l)<=o&&D+O<x)-(Math.abs(h-l)<=o&&!!D);if(!$t[s])for(var F=0;F<=s;F++)$t[F]||($t[F]={});($t[s].vx!=j||$t[s].vy!=T||$t[s].el!==f)&&($t[s].el=f,$t[s].vx=j,$t[s].vy=T,clearInterval($t[s].pid),(j!=0||T!=0)&&(c=!0,$t[s].pid=setInterval((function(){a&&this.layer===0&&Ne.active._onTouchMove(zi);var w=$t[this.layer].vy?$t[this.layer].vy*i:0,P=$t[this.layer].vx?$t[this.layer].vx*i:0;typeof v=="function"&&v.call(Ne.dragged.parentNode[hn],P,w,t,zi,$t[this.layer].el)!=="continue"||dC($t[this.layer].el,P,w)}).bind({layer:s}),24))),s++}while(e.bubbleScroll&&d!==u&&(d=Ea(d,!1)));es=c}},30),yC=function(e){var n=e.originalEvent,a=e.putSortable,r=e.dragEl,l=e.activeSortable,o=e.dispatchSortableEvent,i=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(n){var c=a||l;i();var v=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,s=document.elementFromPoint(v.clientX,v.clientY);u(),c&&!c.el.contains(s)&&(o("spill"),this.onSpill({dragEl:r,putSortable:a}))}};function sv(){}sv.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,a=e.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var r=Zr(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(n,r):this.sortable.el.appendChild(n),this.sortable.animateAll(),a&&a.animateAll()},drop:yC};ha(sv,{pluginName:"revertOnSpill"});function vv(){}vv.prototype={onSpill:function(e){var n=e.dragEl,a=e.putSortable,r=a||this.sortable;r.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),r.animateAll()},drop:yC};ha(vv,{pluginName:"removeOnSpill"});Ne.mount(new m4);Ne.mount(vv,sv);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Mm(t,e,n){var a=ce(t);return n-e>0?(a.splice(n+1,0,a[e]),a.splice(e,1)):(a.splice(n,0,a[e]),a.splice(e+1,1)),a}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Nm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Tl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function p4(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function b4(t,e,n){var a=n===0?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,a)}function y4(t,e,n){var a=_e(t),r=a.sortOnRowDraggable,l=a.dragSort,o=a.data,i=G(t.pagination),u=on(),c=u.tableDraggableClasses,v=u.tableBaseClass,s=u.tableFullRowClasses,d=u.tableExpandClasses,f=G(t.columns||[]),p=n.value.onTableRefresh,h=G(null),m=B(function(){return f.value.find(function(T){return T.colKey==="drag"})}),b=B(function(){return r.value||["row","row-handler-col"].includes(l.value)}),y=B(function(){return["row-handler","row-handler-col"].includes(l.value)&&!!m.value}),C=B(function(){return["col","row-handler-col"].includes(l.value)}),O=G([]),_=null;t.sortOnRowDraggable&&We.error("Table","`sortOnRowDraggable` is going to be deprecated, use dragSort='row' instead."),le(function(){return ce(f.value)},function(T){O.value=T?T.map(function(F){return F.colKey}):[],p==null||p()});function $(T,F){var w,P,A=(w=F.current)!==null&&w!==void 0?w:F.defaultCurrent,R=(P=F.pageSize)!==null&&P!==void 0?P:F.defaultPageSize;return!t.disableDataPage&&F&&o.value.length>R?R*(A-1)+T:T}var I=function(F){if(!(!y.value&&!b.value)){var w=F==null?void 0:F.querySelector("tbody");if(!w)return console.error("tbody does not exist."),null;var P=Tl({animation:150,ghostClass:c.ghost,chosenClass:c.chosen,dragClass:c.dragging,filter:".".concat(s.base,",.").concat(d.row),onMove:function(R){return!xs(R.related,s.base)},onEnd:function(R){var k;if(R.newIndex!==R.oldIndex){p4(R.item),b4(R.from,R.item,R.oldIndex);var M=R.oldIndex,V=R.newIndex;(pe(t.firstFullRow)&&t.firstFullRow(He)||e.slots.firstFullRow||e.slots["first-full-row"])&&(M-=1,V-=1),i.value&&(M=$(M,i.value),V=$(V,i.value));var W={data:o.value,currentIndex:M,current:o.value[M],targetIndex:V,target:o.value[V],newData:Mm(ce(t.data),M,V),e:R,sort:"row"};W.currentData=W.newData,(k=t.onDragSort)===null||k===void 0||k.call(t,W)}}},t.dragSortOptions);w&&(b.value?new Ne(w,Tl({},P)):new Ne(w,Tl(Tl({},P),{},{handle:".".concat(c.handle)})))}},x=function(F,w){var P=Tl({animation:150,dataIdAttr:"data-colkey",direction:"vertical",ghostClass:c.ghost,chosenClass:c.chosen,dragClass:c.dragging,handle:".".concat(v.thCellInner),onEnd:function(R){var k;if(R.newIndex!==R.oldIndex){if(w){var M;(M=_)===null||M===void 0||M.sort(ce(O.value))}var V=R.oldIndex,W=R.newIndex,U=R.target,H=w?V:W,L=w?W:V,z=U.children[H],K=U.children[L],Y=Li(f.value,z.dataset.colkey),q=Li(f.value,K.dataset.colkey);(!Y||!Y.colKey)&&We.error("Table","colKey is missing in ".concat(JSON.stringify(Y))),(!q||!q.colKey)&&We.error("Table","colKey is missing in ".concat(JSON.stringify(q))),H=_m(t.columns,Y.colKey),L=_m(t.columns,q.colKey);var X={data:f.value,currentIndex:H,current:Y,targetIndex:L,target:q,newData:Mm(ce(t.columns),H,L),e:R,sort:"col"};X.currentData=X.newData,(k=t.onDragSort)===null||k===void 0||k.call(t,X)}}},t.dragSortOptions);if(F)return _=new Ne(F,P),_},S=function(F){if(!(!C.value||!F)){var w=F.querySelectorAll("thead > tr");if(w.length<=1){var P=be(w,1),A=P[0],R=x(A,!0);O.value=R==null?void 0:R.toArray()}else w==null||w.forEach(function(k){x(k,!1)})}};function E(T){h.value=T}function D(T){f.value=T}le([h,f,l,n],function(T){var F=be(T,4),w=F[0];F[1],F[2];var P=F[3];j(w,P)});function j(T,F){var w=T;if(!(!T||!w.$el||!F.showElement))var P=setTimeout(function(){I(w.$el),S(w.$el);var A=setTimeout(function(){w.$refs.affixHeaderRef&&S(w.$refs.affixHeaderRef),clearTimeout(A)});clearTimeout(P)},60)}return{innerPagination:i,isRowDraggable:b,isRowHandlerDraggable:y,isColDraggable:C,setDragSortPrimaryTableRef:E,setDragSortColumns:D}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function C4(t){var e=xe(),n=Ke("table",t.locale),a=n.globalConfig,r=on(),l=r.isLoadingClass,o=r.isLoadMoreClass,i=r.asyncLoadingClass,u=B(function(){return[i,N(N({},l,t.asyncLoading==="loading"),o,t.asyncLoading==="load-more")]});function c(){var s;Be(t.asyncLoading)&&((s=t.onAsyncLoadingClick)===null||s===void 0||s.call(t,{status:t.asyncLoading}))}function v(){var s=e("asyncLoading");if(Be(s)){var d=t.asyncLoading,f={"load-more":a.value.loadingMoreText,loading:a.value.loadingText}[String(d)];return g("div",{class:u.value,onClick:c},[g(bn,{indicator:d==="loading",loading:!!d,size:"small",text:f},null)])}return[null,!1,void 0].includes(s)?null:g("div",{class:u.value,onClick:c},[s])}return{renderAsyncLoading:v}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function CC(t){return Pp(t)||Sp(t)||us(t)||Ep()}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Lm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Lm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var w4=ne({name:"TableEditableCell",props:{row:Object,rowKey:String,rowIndex:Number,col:Object,colIndex:Number,oldCell:[Function,String],tableBaseClass:Object,cellEmptyContent:[Function,String],editable:{type:Boolean,default:void 0},readonly:{type:Boolean},errors:{type:Array,default:void 0},onChange:Function,onValidate:Function,onRuleChange:Function,onEditableChange:Function},emits:["update-edited-cell"],setup:function(e,n){var a,r=_e(e),l=r.row,o=r.col;G(null);var i=B(function(){var w;return(w=o.value.edit)===null||w===void 0?void 0:w.keepEditMode}),u=G(i.value||((a=e.col.edit)===null||a===void 0?void 0:a.defaultEditable)||!1),c=G(),v=G(),s=ee(),d=at({Edit1Icon:GC}),f=d.Edit1Icon,p=function(P){if(qe(P)==="object"&&("rowValue"in P||P.isUpdateCurrentRow)){var A=P.isUpdateCurrentRow?fe(l.value,e.rowKey):P.rowValue;delete P.rowValue,delete P.isUpdateCurrentRow,n.emit("update-edited-cell",A,l.value,P)}else c.value=P};le([i],function(w){w&&(u.value=!0)});var h=B(function(){var w,P;return((w=o.value.edit)===null||w===void 0||(P=w.on)===null||P===void 0?void 0:P.call(w,ut(ut({},m.value),{},{editedRow:b.value,updateEditedCellValue:p})))||{}}),m=B(function(){return{rowIndex:e.rowIndex,colIndex:e.colIndex,col:e.col,row:e.row}}),b=B(function(){var w=o.value.colKey,P=w.split(".")||[],A=CC(P),R=A[0],k=A.slice(1),M=ut({},l.value);return k.length?(M[R]=Xn(l.value[R]),ir(M[R],k.join("."),c.value)):ir(M,w,c.value),M}),y=B(function(){var w=Ni({row:b.value,col:ut(ut({},o.value),{},{cell:e.oldCell}),rowIndex:e.rowIndex,colIndex:e.colIndex},n.slots,{cellEmptyContent:e.cellEmptyContent});return w}),C=B(function(){var w=o.value.edit;return pe(w.props)?w.props(ut(ut({},m.value),{},{editedRow:b.value,updateEditedCellValue:p})):ut({},w.props)}),O=B(function(){var w,P=o.value.edit;if(!P)return{};var A=ut({},C.value);return delete A.onChange,delete A.value,(w=P.abortEditOnEvent)===null||w===void 0||w.forEach(function(R){delete A[R]}),A}),_=B(function(){var w,P=o.value.edit;return P?!!(!((w=P.abortEditOnEvent)===null||w===void 0)&&w.includes("onChange")):!1}),$=function(P){return new Promise(function(A){var R={result:[ut(ut({},m.value),{},{errorList:[],value:c.value})],trigger:P},k=pe(o.value.edit.rules)?o.value.edit.rules(m.value):o.value.edit.rules;if(!o.value.edit||!k||!k.length){var M;(M=e.onValidate)===null||M===void 0||M.call(e,R),A(!0);return}Qs(c.value,k).then(function(V){var W,U=V==null?void 0:V.filter(function(H){return!H.result});R.result[0].errorList=U,(W=e.onValidate)===null||W===void 0||W.call(e,R),!U||!U.length?(v.value=[],A(!0)):(v.value=U,A(U))})})},I=function(P,A){return Ve(P)&&Ve(A)?JSON.stringify(P)===JSON.stringify(A):P===A},x=function(P,A){for(var R=arguments.length,k=new Array(R>2?R-2:0),M=2;M<R;M++)k[M-2]=arguments[M];$("self").then(function(V){var W,U;if(V===!0){var H=fe(l.value,o.value.colKey);I(c.value,H)||(c.value=H,P==null||P.apply(void 0,k)),(W=(U=h.value)[A])===null||W===void 0||W.call(U,k[2]);var L=setTimeout(function(){var z;i.value||(u.value=!1),v.value=[],(z=e.onEditableChange)===null||z===void 0||z.call(e,ut(ut({},m.value),{},{value:c.value,editedRow:ut(ut({},e.row),{},N({},e.col.colKey,c.value)),validateEdit:$,isEdit:!1})),clearTimeout(L)},0)}})},S=B(function(){var w,P=o.value.edit,A=e.editable===void 0;if(!(!u.value||!A)){if(!(P!=null&&(w=P.abortEditOnEvent)!==null&&w!==void 0&&w.length))return{};var R={},k=P==null?void 0:P.onEdited;return P.abortEditOnEvent.forEach(function(M){M!=="onChange"&&(R[M]=function(){for(var V=arguments.length,W=new Array(V),U=0;U<V;U++)W[U]=arguments[U];x.apply(void 0,[k,M,ut(ut({},m.value),{},{trigger:M,newRowData:b.value})].concat(W))})}),R}}),E=function(P){var A,R,k,M,V,W,U;c.value=P;for(var H=ut(ut({},m.value),{},{value:P,editedRow:ut(ut({},e.row),{},N({},e.col.colKey,P))}),L=arguments.length,z=new Array(L>1?L-1:0),K=1;K<L;K++)z[K-1]=arguments[K];(A=C.value)===null||A===void 0||(R=A.onChange)===null||R===void 0||R.call.apply(R,[A,P].concat(z)),(k=e.onChange)===null||k===void 0||k.call(e,H),(M=e.onRuleChange)===null||M===void 0||M.call(e,H),(V=h.value)===null||V===void 0||(W=V.onChange)===null||W===void 0||W.call(V,H);var Y=e.editable===void 0;if(Y&&_.value){var q,X=(q=o.value.edit)===null||q===void 0?void 0:q.onEdited;x.apply(void 0,[X,"change",ut(ut({},m.value),{},{trigger:"onChange",newRowData:b.value})].concat(z))}((U=o.value.edit)===null||U===void 0?void 0:U.validateTrigger)==="change"&&$("self")},D=function(P){var A;if(!(!o.value.edit||!o.value.edit.component)&&u.value){var R=((A=P.composedPath)===null||A===void 0?void 0:A.call(P))||P.path||[],k=R.find(function(V){var W;return(W=V.classList)===null||W===void 0?void 0:W.contains("".concat(s.value,"-popup__content"))});if(!k){var M=o.value.edit.onEdited;x(M,"",ut(ut({},m.value),{},{trigger:"document",newRowData:b.value}))}}},j=function(){var P;(P=e.onEditableChange)===null||P===void 0||P.call(e,ut(ut({},m.value),{},{value:c.value,editedRow:e.row,isEdit:!0,validateEdit:$}))},T=function(P){u.value=!0,j(),P.stopPropagation()};Ae(function(){var w;(w=e.col.edit)!==null&&w!==void 0&&w.defaultEditable&&j()});var F=B(function(){return fe(l.value,o.value.colKey)});return le(F,function(w){c.value=w},{immediate:!0}),le(u,function(w){var P=e.editable===void 0;!o.value.edit||!o.value.edit.component||!P||(w?ot(document,"click",D):Xe(document,"click",D))},{immediate:!0}),le(function(){return[e.editable,e.row,e.col,e.rowIndex,e.colIndex]},function(w){var P=be(w,1),A=P[0];if(A===!1)c.value=F.value;else if(A===!0){var R;(R=e.onRuleChange)===null||R===void 0||R.call(e,ut(ut({},m.value),{},{value:F.value,editedRow:l.value}))}},{immediate:!0}),le(function(){return e.errors},function(w){v.value=w}),function(){var w,P,A,R;if(e.readonly)return y.value;if(e.editable===void 0&&!u.value||e.editable===!1){var k;return g("div",{class:e.tableBaseClass.cellEditable,onClick:T},[y.value,((k=o.value.edit)===null||k===void 0?void 0:k.showEditIcon)!==!1&&g(f,null,null)])}var M=(w=o.value.edit)===null||w===void 0?void 0:w.component;if(!M)return We.error("Table","edit.component is required."),null;var V=(P=v.value)===null||P===void 0||(P=P[0])===null||P===void 0?void 0:P.message,W=ut({},h.value);return delete W.onChange,(A=o.value.edit)!==null&&A!==void 0&&(A=A.abortEditOnEvent)!==null&&A!==void 0&&A.length&&o.value.edit.abortEditOnEvent.forEach(function(U){W[U]&&delete W[U]}),g("div",{class:e.tableBaseClass.cellEditWrap,onClick:function(H){H.stopPropagation()},ref:"tableEditableCellRef"},[g(M,ve({status:V?((R=v.value)===null||R===void 0||(R=R[0])===null||R===void 0?void 0:R.type)||"error":void 0,tips:V},O.value,S.value,W,{value:c.value,onChange:E}),null)])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Bm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Dl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function O4(t){var e=_e(t),n=e.editableRowKeys,a=new Map,r=G({}),l=B(function(){return R8(t.editableRowKeys,t.data,t.rowKey||"id")}),o=G({}),i=G({}),u=function(C){var O={};return C.forEach(function(_){var $=_.row,I=_.col,x=_.errorList,S=fe($,t.rowKey||"id"),E=[S,I.colKey].join("__");x!=null&&x.length?O[E]=x:delete O[E]}),O},c=function(C){var O=a.get(C);if(O){var _=O.map(function($){return new Promise(function(I){var x=$.editedRow,S=$.col,E=pe(S.edit.rules)?S.edit.rules($):S.edit.rules;if(!S.edit||!E||!E.length){I(Dl(Dl({},$),{},{errorList:[]}));return}Qs(fe(x,S.colKey),E).then(function(D){I(Dl(Dl({},$),{},{errorList:D.filter(function(j){return!j.result})}))})})});return new Promise(function($,I){Promise.all(_).then(function(x){$({errors:x.filter(function(S){var E;return(E=S.errorList)===null||E===void 0?void 0:E.length}),errorMap:u(x)})},I)})}},v=function(C){return new Promise(function(O,_){c(C).then(function($){var I,x=$.errors,S=$.errorMap;r.value=S;var E="parent";(I=t.onRowValidate)===null||I===void 0||I.call(t,{trigger:E,result:x}),O({trigger:E,result:x})},_)})},s=function(){var C=Object.keys(o.value),O=C.map(function(_){return o.value[_].validateEdit("parent")});return new Promise(function(_,$){Promise.all(O).then(function(I){var x,S={};I.forEach(function(E,D){E!==!0&&(S[C[D]]=E)}),(x=t.onValidate)===null||x===void 0||x.call(t,{result:S}),_({result:S})},$)})},d=function(){if(Object.keys(o.value).length)return s();for(var C=[],O=t.data||[],_=0,$=O.length;_<$;_++){var I=fe(O[_],t.rowKey||"id");C.push(c(I))}return new Promise(function(x,S){Promise.all(C).then(function(E){var D,j={};E.forEach(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{errors:[],errorMap:{}},F=T.errorMap;F&&Object.assign(j,F)}),r.value=j,(D=t.onValidate)===null||D===void 0||D.call(t,{result:j}),x({result:j})},S)})},f=function(C,O,_){i.value[C]||(i.value[C]=Xn(O)),Object.entries(_).forEach(function($){var I=be($,2),x=I[0],S=I[1];ir(i.value[C],x,S)})},p=function(C){if(t.editableRowKeys){var O=fe(C.row,t.rowKey||"id"),_=a.get(O);if(_){var $=_.findIndex(function(I){return I.col.colKey===C.col.colKey});$===-1?_.push(C):_[$]=C,a.set(O,_)}else a.set(O,[C])}},h=function(){r.value={}},m=function(C){var O=oo(C.row,t.rowKey,C.col.colKey,C.colIndex);C.isEdit?o.value[O]=C:delete o.value[O]},b=function(C){var O,_=C.row,$=C.col,I=fe(_,t.rowKey||"id"),x=i.value[I];if(x&&(O=t.editableRowKeys)!==null&&O!==void 0&&O.includes(I)){var S=Dl({},x);return ir(S,$.colKey,fe(x,$.colKey)),S}return _};return le(function(){var y;return(y=n.value)===null||y===void 0?void 0:y.join(",")},function(y){var C=y.split(","),O=Object.keys(i.value);O.forEach(function(_){C.includes(_)||delete i.value[_]})}),{editedFormData:i,errorListMap:r,editableKeysMap:l,validateTableData:d,validateRowData:v,onRuleChange:p,clearValidateData:h,onUpdateEditedCell:f,getEditRowData:b,onPrimaryTableCellEditChange:m}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Vm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ra(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var _4=["hideSortTips","dragSort","defaultExpandedRowKeys","defaultSelectedRowKeys","columnController","filterRow","sortOnRowDraggable","expandOnRowClick","expand-on-row-click","expanded-row","editable-row-keys","editable-cell-state","filter-value","multipleSort","expandIcon","expand-icon","reserveSelectedRowOnPaginate","expandedRowKeys","expandedRow","reserve-selected-row-on-paginate","reserveSelectedRowOnPaginate","selected-row-keys","selectedRowKeys","selectOnRowClick","column-controller","columnController","dragSort","drag-sort","hideSortTips","showSortColumnBgColor","filter-row","filterRow","multiple-sort","multipleSort","async-loading","onChange","onAsyncLoadingClick","onColumnChange","onColumnControllerVisibleChange","onDataChange","onDisplayColumnsChange","onDragSort","onExpandChange","onFilterChange","onSelectChange","onSortChange"],dv=ne({name:"TPrimaryTable",props:ra(ra({},Jr),rC),setup:function(e,n){var a=xe(),r=_e(e),l=r.columns,o=r.columnController,i=G(null),u=G(!1),c=on(),v=c.classPrefix,s=c.tableDraggableClasses,d=c.tableBaseClass,f=c.tableSelectedClasses,p=c.tableSortClasses,h=nC(e),m=h.sizeClassNames,b=k8(e,n),y=b.tDisplayColumns,C=b.renderColumnController,O=A8(e,n),_=O.showExpandedRow,$=O.showExpandIconColumn,I=O.getExpandColumn,x=O.renderExpandedRow,S=O.onInnerExpandRowClick,E=V8(e,n),D=E.renderSortIcon,j=M8(e,f),T=j.selectColumn,F=j.showRowSelect,w=j.selectedRowClassNames,P=j.currentPaginateData,A=j.formatToRowSelectColumn,R=j.setTSelectedRowKeys,k=j.onInnerSelectRowClick,M=j.handleRowSelectWithAreaSelection,V=z8(e,n),W=V.hasEmptyCondition,U=V.isTableOverflowHidden,H=V.renderFilterIcon,L=V.renderFirstFilterRow,z=V.setFilterPrimaryTableRef,K=G(1),Y=function(){K.value+=1},q=B(function(){return{showElement:u.value,onTableRefresh:Y,tableKey:K.value}}),X=y4(e,n,q),J=X.isRowHandlerDraggable,Z=X.isRowDraggable,oe=X.isColDraggable,se=X.innerPagination,me=X.setDragSortPrimaryTableRef,Te=X.setDragSortColumns,Ie=X0(e),re=Ie.renderTitleWidthIcon,ue=C4(e),ie=ue.renderAsyncLoading,Ce=O4(e),Oe=Ce.errorListMap,De=Ce.editableKeysMap,Re=Ce.validateRowData,Ee=Ce.validateTableData,ge=Ce.onRuleChange,Q=Ce.clearValidateData,te=Ce.onUpdateEditedCell,ae=Ce.getEditRowData,he=Ce.onPrimaryTableCellEditChange,Se=B(function(){return!!(_.value||F.value)}),je=B(function(){return!!(_.value||F.value)}),$e=B(function(){var et;return N(N(N(N(N(N(N(N({},s.colDraggable,oe.value),s.rowHandlerDraggable,J.value),s.rowDraggable,Z.value),d.overflowVisible,U.value===!1),d.tableRowEdit,e.editableRowKeys),"".concat(v,"-table--select-").concat((et=T.value)===null||et===void 0?void 0:et.type),T.value),"".concat(v,"-table--row-select"),F.value),"".concat(v,"-table--row-expandable"),_.value)}),Fe=B(function(){var et=[e.rowClassName,w.value];return et.filter(function(Ye){return Ye})}),Ue=B(function(){var et=[e.rowAttributes];return(J.value||Z.value)&&et.push(function(Ye){var mt=Ye.row;return{"data-id":fe(mt,e.rowKey||"id")}}),et.filter(function(Ye){return Ye})});Ae(function(){z(i.value),me(i.value)}),n.expose({validateRowData:Re,validateTableData:Ee,clearValidateData:Q,refreshTable:function(){i.value.refreshTable()},scrollToElement:function(Ye){i.value.scrollToElement(Ye)},scrollColumnIntoView:function(Ye){i.value.scrollColumnIntoView(Ye)},baseTableRef:i});var Qe=function(Ye){var mt;(mt=e.onRowEdit)===null||mt===void 0||mt.call(e,Ye);var zt=fe(Ye.editedRow,e.rowKey||"id");te(zt,Ye.row,N({},Ye.col.colKey,Ye.value))},st=function et(Ye){for(var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=[],At=function(){var La,Ba,Va,Ha,Tn,tt=ra({},Ye[Zt]),mr=((La=tt.children)===null||La===void 0?void 0:La.length)||((Ba=y.value)===null||Ba===void 0?void 0:Ba.includes(tt.colKey));if(!mr&&(e.columnController||e.displayColumns||e.defaultDisplayColumns)&&!mt)return 1;tt=A(tt);var wa=e.sort;if(tt.sorter&&e.showSortColumnBgColor){var yl=wa instanceof Array?wa:[wa],Ka=yl.find(function(it){return it&&it.sortBy===tt.colKey&&it.descending!==void 0});Ka&&(tt.className=tt.className instanceof Array?tt.className.concat(p.sortColumn):[tt.className,p.sortColumn])}if(tt.sorter||tt.filter){var Vn=Pu(n.slots,tt,Zt),Hn=tt,Tu=Hn.ellipsisTitle;tt.title=function(it,rt){var Et,Kn=tt.sorter?D(rt):null,Oa=tt.filter?H(rt):null,Cl=(Et=i.value)===null||Et===void 0?void 0:Et.tableContentRef;return re([Vn,Kn,Oa],rt.col,rt.colIndex,Tu,Cl,{classPrefix:v,ellipsisOverlayClassName:e.size!=="medium"?m[e.size]:""})},tt.ellipsisTitle=!1}if((Va=tt.edit)!==null&&Va!==void 0&&Va.component){var Du=tt.cell;tt.cell=function(it,rt){var Et=ra(ra({},rt),{},{row:ae(rt),oldCell:Du,rowKey:e.rowKey||"id",tableBaseClass:d,cellEmptyContent:e.cellEmptyContent,onChange:Qe,onValidate:e.onRowValidate,onRuleChange:ge,onEditableChange:he});if(e.editableRowKeys){var Kn,Oa=fe(rt.row,e.rowKey||"id");Et.editable=De.value[Oa]||!1;var Cl=[Oa,rt.col.colKey].join("__"),So=(Kn=Oe.value)===null||Kn===void 0?void 0:Kn[Cl];So&&(Et.errors=So)}return e.editableCellState&&(Et.readonly=!e.editableCellState(rt)),g(w4,ve(Et,{onUpdateEditedCell:te}),n.slots)}}if((Ha=tt.children)!==null&&Ha!==void 0&&Ha.length){var gt;tt.children=et(tt.children,mt||((gt=y.value)===null||gt===void 0?void 0:gt.includes(tt.colKey)))}(!tt.children||(Tn=tt.children)!==null&&Tn!==void 0&&Tn.length)&&zt.push(tt)},Zt=0,Na=Ye.length;Zt<Na;Zt++)At();return zt},kt=B(function(){var et=st(l.value);return $.value&&et.unshift(I()),et}),ea=function(Ye,mt){var zt,At;se.value=ra(ra({},se.value),Ye),P.value=mt,(zt=e.onPageChange)===null||zt===void 0||zt.call(e,Ye,mt);var Zt=[{pagination:Ye},{trigger:"pagination",currentData:mt}];(At=e.onChange)===null||At===void 0||At.call.apply(At,[e].concat(Zt)),e.reserveSelectedRowOnPaginate||R([],{selectedRowData:[],type:"uncheck",currentRowKey:"CLEAR_ON_PAGINATE"})},Ca=function(Ye){var mt;(mt=e.onActiveRowAction)===null||mt===void 0||mt.call(e,Ye),M(Ye)},Yt=function(Ye){e.expandOnRowClick&&S(Ye),e.selectOnRowClick&&k(Ye)},En,gr=250,hr=function(Ye){if(!e.onRowDblclick){Yt(Ye);return}En?(clearTimeout(En),En=void 0):En=setTimeout(function(){Yt(Ye),En=void 0},gr)},un=function(Ye){u.value=Ye};return function(){var et,Ye,mt=function(mr,wa,yl,Ka){if(!yl)return e[mr];var Vn=wa(He),Hn=a(mr);return Vn&&!Hn?function(){return Vn}:Hn&&!Vn?function(){return Hn}:Vn&&Hn?function(){return Ka!=null&&Ka.reverse?g("div",null,[Vn,Hn]):g("div",null,[Hn,Vn])}:null},zt=!!(o.value&&Object.keys(o.value).length),At=zt?o.value.placement||"top-right":"",Zt=zt&&(At==null?void 0:At.indexOf("bottom"))!==-1,Na=mt("topContent",C,zt&&!Zt),_o=mt("bottomContent",C,Zt,{reverse:!0}),La=mt("firstFullRow",L,!W.value),Ba=mt("lastFullRow",ie,!!e.asyncLoading),Va=It(),Ha=Va.vnode,Tn=ra(ra({},ga(Ha.props,_4)),{},{rowKey:e.rowKey,rowClassName:Fe.value,rowAttributes:Ue.value,columns:kt.value,keyboardRowHover:(et=e.keyboardRowHover)!==null&&et!==void 0?et:Se.value,disableSpaceInactiveRow:(Ye=e.disableSpaceInactiveRow)!==null&&Ye!==void 0?Ye:je.value,topContent:Na,bottomContent:_o,firstFullRow:La,lastFullRow:Ba,thDraggable:["col","row-handler-col"].includes(e.dragSort),onShowElementChange:un,onPageChange:ea,renderExpandedRow:_.value?x:void 0,onActiveRowAction:Ca});return(e.expandOnRowClick||e.selectOnRowClick)&&(Tn.onRowClick=hr),g(aC,ve(Tn,{ref:i,class:$e.value,onLeafColumnsChange:Te}),n.slots)}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var S4={beforeDragSort:{type:Function},expandedTreeNodes:{type:Array,default:void 0},defaultExpandedTreeNodes:{type:Array,default:function(){return[]}},tree:{type:Object},treeExpandAndFoldIcon:{type:Function},onAbnormalDragSort:Function,onExpandedTreeNodesChange:Function,onTreeExpandChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Hm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Qo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Km={code:1001,reason:"The same level of rows can not be swapped."};function ua(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=fe(t,e);return n||a?"".concat(r,"_").concat(n||0,"_").concat(a||0,"}"):r}var x4=function(){function t(){hl(this,t),N(this,"treeDataMap",new Map),N(this,"expandAllRowIndex",void 0),this.treeDataMap=new Map}return ml(t,[{key:"initialTreeStore",value:function(n,a,r){var l;(l=this.treeDataMap)===null||l===void 0||l.clear(),this.initialTreeDataMap(this.treeDataMap,n,a.find(function(o){return o.colKey==="row-select"}),r)}},{key:"getAllUniqueKeys",value:function(n,a){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],l=0,o=n.length;l<o;l++){var i=n[l];r.push(ua(i,a.rowKey));var u=fe(i,a.childrenKey);u!=null&&u.length&&this.getAllUniqueKeys(u,a,r)}return r}},{key:"getExpandedChildrenKeys",value:function(n,a){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],l=0,o=n.length;l<o;l++){var i=n[l],u=ua(i,a.rowKey),c=this.treeDataMap.get(u);c.expanded&&r.push(u);var v=fe(i,a.childrenKey);v!=null&&v.length&&this.getExpandedChildrenKeys(v,a,r)}return r}},{key:"expandTreeNode",value:function(n,a,r){var l=this;return n.length&&n.forEach(function(o){var i=l.treeDataMap.get(o);i&&l.toggleExpandData({row:i.row,rowIndex:i.rowIndex},a,r,"expand")}),a}},{key:"foldTreeNode",value:function(n,a,r){var l=this;return n.length&&n.forEach(function(o){var i=l.treeDataMap.get(o);i&&l.toggleExpandData({row:i.row,rowIndex:i.rowIndex},a,r,"fold")}),a}},{key:"toggleExpandData",value:function(n,a,r,l){var o;if(!n)return We.error("EnhancedTable","the node toggleExpanded doest not exist in `data`"),a;var i=fe(n.row,r.rowKey);if(Xt(i))return We.error("EnhancedTable","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`."),[];var u=fe(n.row,r.childrenKey);if(u===!0)return a;var c=this.treeDataMap.get(i);return l==="expand"&&c.expanded||l==="fold"&&!c.expanded?a:(c.rowIndex=(o=c.rowIndex)!==null&&o!==void 0?o:n.rowIndex,c.expanded=!c.expanded,this.treeDataMap.set(i,c),this.updateExpandRow(c,a,r))}},{key:"updateExpandRow",value:function(n,a,r){var l=n.row,o=n.rowIndex,i=n.expanded,u=this.treeDataMap,c=fe(l,r.childrenKey);if(!l||!c)return a;if(i)ts(u,n,i,r),Pr(u,l,c.length,"expand",r),a.splice.apply(a,[o+1,0].concat(c));else{ts(u,n,i,r);var v=n.expandChildrenLength||c.length;Pr(u,l,-1*v,"fold",r),a.splice(o+1,v)}return qa(u,a,{rowKey:r.rowKey,minRowIndex:o+1}),a}},{key:"getData",value:function(n){return this.treeDataMap.get(n)}},{key:"updateData",value:function(n,a,r,l){var o=ua(a,l.rowKey),i=this.treeDataMap.get(n);if(!i||i.rowIndex===-1)return OC(r,n,a,{rowKey:l.rowKey,childrenKey:l.childrenKey}),-1;if(fe(a,l.childrenKey)===!0){var u=fe(i.row,l.childrenKey);if(u!=null&&u.length)for(var c=0,v=u.length;c<v;c++){var s=ua(u[c],l.rowKey),d=this.treeDataMap.get(s);d&&this.treeDataMap.delete(s)}}var f=i.rowIndex;if(i.row=a,i.id=o,i.parent){var p=fe(i.parent.row,l.childrenKey),h=p.findIndex(function(m){return ua(m,l.rowKey)===n});p[h]=a}return this.treeDataMap.set(o,i),n!==o&&this.treeDataMap.delete(n),f}},{key:"remove",value:function(n,a,r){var l=this.treeDataMap.get(n);if(l&&l.rowIndex>=0){var o=(l.expandChildrenLength||0)+1;if(a.splice(l.rowIndex,o),l.parent){var i=fe(l.parent.row,r.childrenKey),u=i.findIndex(function(c){return fe(c,r.rowKey)===n});i.splice(u,1),Pr(this.treeDataMap,l.parent.row,-1*o,"delete",r)}this.treeDataMap.delete(n),qa(this.treeDataMap,a,{minRowIndex:l.rowIndex,rowKey:r.rowKey,type:"remove"})}else We.warn("EnhancedTable","Can not remove this node, which is not appeared.");return a}},{key:"removeChildren",value:function(n,a,r){var l=this.treeDataMap.get(n);if(l&&l.rowIndex>=0){var o=l.expandChildrenLength||0;o&&a.splice(l.rowIndex+1,o),l.parent&&Pr(this.treeDataMap,l.parent.row,-1*o,"delete",r),l.expandChildrenLength=0,l.expanded=!1,ir(l.row,r.childrenKey,void 0),this.treeDataMap.set(n,l),o&&qa(this.treeDataMap,a,{minRowIndex:l.rowIndex+1,rowKey:r.rowKey,type:"remove"})}else We.warn("EnhancedTable","Can not remove this node's children, which is not appeared.");return a}},{key:"appendTo",value:function(n,a,r,l){var o=this.treeDataMap.get(n);if(!this.validateDataExist(o,n))return r;for(var i=fe(o.row,l.childrenKey),u=o.expanded||!(i!=null&&i.length),c=a instanceof Array?a:[a],v=[],s=-1,d=0,f=c.length;d<f;d++){var p=c[d],h=ua(p,l.rowKey),m=this.treeDataMap.get(h);if(!this.validateDataDoubleExist(m,h))We.warn("Table","Duplicated Data `".concat(h,"` has been removed."));else{var b=u?o.rowIndex+(o.expandChildrenLength||0)+(d+1):-1;d===0&&(s=b);var y={id:h,row:p,rowIndex:b,level:o.level+1,expanded:!1,expandChildrenLength:0,disabled:!1,path:ce(o.path),parent:o};y.path=y.path.concat(y),v.push(p),this.treeDataMap.set(h,y)}}if(!v.length)return r;if(i!=null&&i.length?o.row[l.childrenKey]=o.row[l.childrenKey].concat(v):(o.row[l.childrenKey]=v,o.expanded=!0),u){r.splice.apply(r,[s,0].concat(v));var C=v.length||1;Pr(this.treeDataMap,o.row,C,"insert",{rowKey:l.rowKey,childrenKey:l.childrenKey}),qa(this.treeDataMap,r,{minRowIndex:s+v.length-1,rowKey:l.rowKey,type:"add",count:1})}return r}},{key:"appendToRoot",value:function(n,a,r){for(var l=a.concat(n),o=n instanceof Array?n:[n],i=a.length,u=0,c=o.length;u<c;u++){var v=fe(o[u],r.rowKey);if(!v){We.error("Table","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.");continue}var s={id:v,row:o[u],rowIndex:i+u,level:0,expanded:!1,expandChildrenLength:0,disabled:!1};s.path=[s],this.treeDataMap.set(v,s)}return l}},{key:"insertAfter",value:function(n,a,r,l){return this.insert(n,a,r,l,"after")}},{key:"insertBefore",value:function(n,a,r,l){return this.insert(n,a,r,l,"before")}},{key:"insert",value:function(n,a,r,l,o){var i=this.treeDataMap.get(n);if(!this.validateDataExist(i,n))return r;var u=fe(a,l.rowKey),c=this.treeDataMap.get(u);if(!this.validateDataDoubleExist(c,u))return r;var v=o==="after"?i.rowIndex+1:i.rowIndex,s={id:u,row:a,rowIndex:v,level:i.level,expanded:!1,expandChildrenLength:0,disabled:!1,path:i.path.slice(0,-1),parent:i.parent};s.path=s.path.concat(s);var d=o==="after"?i.rowIndex+(i.expandChildrenLength+1):i.rowIndex;r.splice(d,0,a);var f=o==="after"?1:0;if(i.parent){var p=i.parent.row[l.childrenKey].findIndex(function(h){return n===fe(h,l.rowKey)});i.parent.row[l.childrenKey].splice(p+f,0,a),Pr(this.treeDataMap,i.parent.row,1,"insert",l)}return this.treeDataMap.set(u,s),qa(this.treeDataMap,r,{rowKey:l.rowKey,minRowIndex:i.rowIndex+1,type:"add"}),r}},{key:"swapData",value:function(n,a,r){var l=a.currentIndex,o=a.targetIndex;if(l===o)return{dataSource:n,result:!0};var i=fe(a.current,r.rowKey),u=fe(a.target,r.rowKey),c=this.treeDataMap.get(i),v=this.treeDataMap.get(u);if(c.level!==v.level)return{dataSource:n,result:!1,code:Km.code,reason:Km.reason};var s=l+c.expandChildrenLength+1,d=o+v.expandChildrenLength+1,f=n.slice(l,s),p=n.slice(o,d);if(l>o){var h=n.slice(d,l),m=f.concat(p,h);n.splice(o,m.length),n.splice.apply(n,[o,0].concat(ce(m))),qa(this.treeDataMap,n,{rowKey:r.rowKey,minRowIndex:o,maxRowIndex:s})}else{var b=n.slice(s,o),y=b.concat(p,f);n.splice(l,y.length),n.splice.apply(n,[l,0].concat(ce(y))),qa(this.treeDataMap,n,{rowKey:r.rowKey,minRowIndex:l,maxRowIndex:d})}if(c.parent){for(var C=c.parent.row[r.childrenKey],O=0,_=-1,$=-1,I=0,x=C.length;I<x&&(fe(C[I],r.rowKey)===i&&(_=I,O+=1),fe(C[I],r.rowKey)===u&&($=I,O+=1),!(O>=2));I++);C[_]=a.target,C[$]=a.current}return{dataSource:n,result:!0}}},{key:"expandAll",value:function(n,a){var r=this;this.expandAllRowIndex=0;var l=[],o=function i(u,c){for(var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,s=0,d=u.length;s<d;s++){var f=u[s],p=fe(f,c.rowKey),h=r.treeDataMap.get(p),m=fe(f,c.childrenKey);if(h.rowIndex=r.expandAllRowIndex,m!==!0&&m!==null&&m!==void 0&&m.length&&(h.expanded=!0),h.expandChildrenLength=(m==null?void 0:m.length)||0,r.expandAllRowIndex+=1,l.push(f),r.treeDataMap.set(p,h),m!=null&&m.length){for(var b=v;(y=b)!==null&&y!==void 0&&y.row;){var y;b.expandChildrenLength+=m.length,r.treeDataMap.set(b.id,b),b=b.parent}i(m,c,h)}}};return o(n,a),l}},{key:"foldAll",value:function(n,a){for(var r=[],l=0,o=n.length;l<o;l++){var i=n[l],u=fe(i,a.rowKey),c=this.treeDataMap.get(u);c.rowIndex=c.level===0?l:-1,c.expanded=!1,c.expandChildrenLength=0,c.level===0&&r.push(i);var v=fe(i,a.childrenKey);v!=null&&v.length&&this.foldAll(v,a)}return r}},{key:"getTreeNode",value:function(n,a){for(var r=[],l=0,o=n.length;l<o;l++){var i=n[l],u=fe(i,a.rowKey),c=this.treeDataMap.get(u);c.level===0&&r.push(i)}return r}},{key:"getTreeExpandedRow",value:function(n,a){var r=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"data",o=[];return n.forEach(function(i){var u=fe(i,a.rowKey),c=r.treeDataMap.get(u);c.expanded&&(l==="unique"?o.push(u):l==="data"?o.push(i):o.push(c))}),o}},{key:"initialTreeDataMap",value:function(n,a,r,l){for(var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,u=0,c=a.length;u<c;u++){var v=a[u],s=ua(v,l.rowKey);if(Xt(s)){We.error("EnhancedTable","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.");return}var d=fe(v,l.childrenKey),f={id:s,row:v,rowIndex:o===0?u:-1,level:o,expanded:!1,expandChildrenLength:0,disabled:Xc(r,v,u),parent:i};f.path=i?i.path.concat(f):[f],n.set(s,f),d!=null&&d.length&&this.initialTreeDataMap(n,d,r,l,o+1,f)}}},{key:"updateDisabledState",value:function(n,a,r){for(var l=0,o=n.length;l<o;l++){var i=n[l],u=fe(i,r.rowKey);if(Xt(u)){We.error("EnhancedTable","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.");return}var c=this.treeDataMap.get(u);c.disabled=Xc(a,i,l),this.treeDataMap.set(u,c);var v=fe(i,r.childrenKey);v!=null&&v.length&&this.updateDisabledState(v,a,r)}}},{key:"validateDataExist",value:function(n,a){return n?!0:(We.warn("EnhancedTable","".concat(a," does not exist.")),!1)}},{key:"validateDataDoubleExist",value:function(n,a){return n?(We.warn("EnhancedTable","Duplicated Key. ".concat(a," already exists.")),!1):!0}}]),t}();function Pr(t,e,n,a,r){for(var l=e;l;){var o,i=t.get(fe(l,r.rowKey)),u=(i.expandChildrenLength||0)+n;i.expandChildrenLength=Math.max(0,u),l=i==null||(o=i.parent)===null||o===void 0?void 0:o.row}a==="fold"&&wC(t,e,r)}function wC(t,e,n){var a=fe(e,n.childrenKey);a!=null&&a.length&&a.forEach(function(r){var l=t.get(fe(r,n.rowKey));l&&(l.expandChildrenLength=0,wC(t,l.row,n))})}function ts(t,e,n,a){var r=e.row,l=e.rowIndex,o=fe(r,a.childrenKey);o.forEach(function(i,u){var c=fe(i,a.rowKey),v=n?l+1+u:-1,s=t.get(c),d=Qo(Qo({},s),{},{row:i,rowIndex:v,expanded:!1,parent:e});if(t.set(c,d),!n){var f=fe(i,a.childrenKey);f!=null&&f.length&&ts(t,Qo(Qo({},d),{},{rowIndex:-1,expanded:!1}),n,a)}})}function OC(t,e,n,a){for(var r=0,l=t.length;r<l;r++){var o=t[r];if(fe(o,a.rowKey)===e){t[r]=n;return}var i=fe(o,a.childrenKey)||[];i!=null&&i.length&&OC(i,e,n,a)}}function qa(t,e,n){for(var a=n.minRowIndex||0,r=n.maxRowIndex||e.length,l=a;l<r;l++){var o=e[l],i=t.get(fe(o,n.rowKey));i||We.warn("Table","tree map went wrong"),i.rowIndex=l+((n==null?void 0:n.count)||1)-1}}function P4(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],a=[],r=new Map,l=new Map,o=0,i=t.length;o<i;o++)r.set(t[o],!0);for(var u=0,c=e.length;u<c;u++)l.set(e[u],!0);for(var v=0,s=t.length;v<s;v++)l.get(t[v])||a.push(t[v]);for(var d=0,f=e.length;d<f;d++)r.get(e[d])||n.push(e[d]);return{removedList:n,addedList:a}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function zm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function gc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function E4(t,e){var n=e.store,a=e.dataSource,r=e.rowDataKeys,l=_e(t),o=l.data,i=l.expandedTreeNodes,u=l.tree,c=G(!1),v=G(!1),s=Nt(i,t.defaultExpandedTreeNodes,t.onExpandedTreeNodesChange,"expandedTreeNodes"),d=be(s,2),f=d[0],p=d[1],h=G({type:"props-change"});function m(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"expand-all",$=arguments.length>1?arguments[1]:void 0,I=$||o.value;a.value=n.value.expandAll(I,r.value);var x=a.value.map(function(S){return ua(S,r.value.rowKey)});p(x,{row:void 0,rowState:void 0,rowIndex:void 0,type:"expand",trigger:_}),h.value.type="expand-all"}function b(){a.value=ce(n.value.foldAll(a.value,r.value)),p([],{row:void 0,rowState:void 0,rowIndex:void 0,type:"fold",trigger:"fold-all"})}function y(_,$){var I,x=_.row,S=_.rowIndex;h.value=gc({type:"user-reaction-change"},_);var E=ua(x,r.value.rowKey),D=n.value.treeDataMap.get(E),j=ce(f.value);if(D.expanded){for(var T=n.value.getExpandedChildrenKeys([x],r.value),F=0,w=j.length;F<w;F++){var P=j[F];T.includes(P)&&(j[F]=void 0)}j=j.filter(Boolean)}else j.push(E);var A={row:x,rowIndex:S,rowState:D,trigger:$};p(j,gc(gc({},A),{},{type:D.expanded?"fold":"expand"})),(I=t.onTreeExpandChange)===null||I===void 0||I.call(t,A)}function C(_,$){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],x=P4($,I),S=x.addedList,E=x.removedList;return n.value.expandTreeNode(S,_,r.value),n.value.foldTreeNode(E,_,r.value),ce(_)}le([f],function(_,$){var I=be(_,1),x=I[0],S=be($,1),E=S[0];if(n.value.treeDataMap.size){if(h.value.type==="user-reaction-change"){var D=h.value||{},j=D.row,T=D.rowIndex;a.value=ce(n.value.toggleExpandData({row:j,rowIndex:T},ce(a.value),r.value))}else h.value.type==="props-change"&&C(a.value,x,E);h.value.type="props-change"}});var O=function($){var I,x;(I=u.value)!==null&&I!==void 0&&I.defaultExpandAll&&!c.value?(m("default-expand-all",ce($)),c.value=!0):(x=f.value)!==null&&x!==void 0&&x.length&&Je(function(){a.value=C(ce($),f.value,[])})};return{tExpandedTreeNode:f,isDefaultExpandAllExecute:c,isDefaultExpandedTreeNodesExecute:v,expandAll:m,foldAll:b,onExpandFoldIconClick:y,updateExpandOnDataChange:O}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Wm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function On(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function T4(t,e){var n=_e(t),a=n.data,r=n.columns,l=Ke("table",t.locale),o=l.t,i=l.globalConfig,u=at({AddRectangleIcon:qC,MinusRectangleIcon:XC}),c=u.AddRectangleIcon,v=u.MinusRectangleIcon,s=G(new x4),d=dw(),f=G([]),p=on(),h=p.tableTreeClasses,m=ka(),b=B(function(){var Y;return{rowKey:t.rowKey||"id",childrenKey:((Y=t.tree)===null||Y===void 0?void 0:Y.childrenKey)||"children"}}),y=E4(t,{store:s,dataSource:f,rowDataKeys:b}),C=y.tExpandedTreeNode,O=y.isDefaultExpandAllExecute,_=y.isDefaultExpandedTreeNodesExecute,$=y.expandAll,I=y.foldAll,x=y.updateExpandOnDataChange,S=y.onExpandFoldIconClick,E=B(function(){return r.value.find(function(Y){return Y.colKey==="row-select"})});le(E,function(Y){s.value&&s.value.updateDisabledState(f.value,Y,b.value)});var D=function(q){var X=On(On({},q),{},{type:"fold"}),J=o(i.value.treeExpandAndFoldIcon,He,X)||g(v,null,null);return m("treeExpandAndFoldIcon",{defaultNode:J,params:X})},j=function(q){var X=On(On({},q),{},{type:"expand"}),J=o(i.value.treeExpandAndFoldIcon,He,X)||g(c,null,null);return m("treeExpandAndFoldIcon",{defaultNode:J,params:X})};le([a],function(){t.tree?T(a.value):f.value=a.value},{immediate:!0}),ba(function(){var Y;t.tree&&((Y=s.value.treeDataMap)===null||Y===void 0||Y.clear(),s.value=null)}),le(function(){var Y;return[r,(Y=t.tree)===null||Y===void 0?void 0:Y.treeNodeColumnIndex]},function(){d.value=P()},{immediate:!0});function T(Y){var q,X=t.columns,J=t.expandedTreeNodes,Z=t.defaultExpandedTreeNodes,oe=t.tree;s.value.initialTreeStore(Y,X,b.value);var se=!!(!_.value&&(Z!=null&&Z.length)),me=!!(oe!=null&&oe.defaultExpandAll&&!O.value);(q=C.value)!==null&&q!==void 0&&q.length&&(J||se)||me?(x(Y),_.value=!0):f.value=ce(Y)}function F(Y){var q,X;if(Y!==void 0){var J=((q=t.tree)===null||q===void 0?void 0:q.indent)===void 0?24:(X=t.tree)===null||X===void 0?void 0:X.indent;return J?{paddingLeft:"".concat(Y*J||1,"px")}:{}}}function w(Y,q){var X,J,Z=On({},Y);Y.row.VIRTUAL_SCROLL_INDEX!==void 0&&(Z.rowIndex=Y.row.VIRTUAL_SCROLL_INDEX),f.value=ce(s.value.toggleExpandData(Z,f.value,b.value));var oe=fe(Y.row,b.value.rowKey),se=(X=s.value)===null||X===void 0||(X=X.treeDataMap)===null||X===void 0?void 0:X.get(oe);(J=t.onTreeExpandChange)===null||J===void 0||J.call(t,{row:Y.row,rowIndex:Y.rowIndex,rowState:se,trigger:q})}function P(){for(var Y,q=t.columns,X=((Y=t.tree)===null||Y===void 0?void 0:Y.treeNodeColumnIndex)||0;(J=q[X])!==null&&J!==void 0&&J.type||((Z=q[X])===null||Z===void 0?void 0:Z.colKey)==="__EXPAND_ROW_ICON_COLUMN__";){var J,Z;X+=1}return q[X]}function A(Y){if(!t.tree||Y.colKey!==d.value.colKey)return Y;var q=On({},d.value);return q.cell=function(X,J){var Z=Ni(On(On({},J),{},{col:On({},d.value)}),e.slots,{cellEmptyContent:t.cellEmptyContent}),oe=s.value.treeDataMap.get(fe(J.row,b.value.rowKey)),se=F(oe==null?void 0:oe.level),me=N({},h.inlineCol,!!Y.ellipsis),Te=fe(J.row,b.value.childrenKey);if(Te&&Te instanceof Array||Te===!0){var Ie,re=(Ie=s.value.treeDataMap.get(fe(J.row,b.value.rowKey)))!==null&&Ie!==void 0&&Ie.expanded?D(J):j(J);return g("div",{class:[h.col,me],style:se},[!!(Te.length||Te===!0)&&g("span",{class:h.icon,onClick:function(ie){S(J,"expand-fold-icon"),ie.stopPropagation()}},[re]),Z])}return g("div",{style:se,class:[me,h.leafNode]},[g("span",{class:h.icon},null),Z])},q.ellipsis===!0&&(q.ellipsis=function(X,J){return Ni(On(On({},J),{},{col:On({},d.value)}),e.slots)}),q}function R(Y,q){var X=s.value.updateData(Y,q,f.value,b.value),J=ce(f.value);J[X]=q,f.value=J}function k(Y){return s.value.getData(Y)}function M(Y){f.value=ce(s.value.remove(Y,f.value,b.value))}function V(Y){f.value=ce(s.value.removeChildren(Y,f.value,b.value))}function W(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",q=arguments.length>1?arguments[1]:void 0;if(!Y){f.value=s.value.appendToRoot(q,f.value,b.value);return}f.value=ce(s.value.appendTo(Y,q,f.value,b.value))}function U(Y,q){f.value=ce(s.value.insertAfter(Y,q,f.value,b.value))}function H(Y,q){f.value=ce(s.value.insertBefore(Y,q,f.value,b.value))}function L(Y){var q=s.value.swapData(f.value,Y,b.value);if(q.result)f.value=ce(q.dataSource);else{var X,J={code:q.code,reason:q.reason};(X=t.onAbnormalDragSort)===null||X===void 0||X.call(t,J)}}function z(){return s.value.getTreeNode(f.value,b.value)}function K(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data";return s.value.getTreeExpandedRow(f.value,b.value,Y)}return{store:s,rowDataKeys:b,dataSource:f,swapData:L,setData:R,getData:k,remove:M,removeChildren:V,appendTo:W,insertAfter:U,insertBefore:H,formatTreeColumn:A,toggleExpandData:w,expandAll:$,foldAll:I,getTreeNode:z,resetData:T,getTreeExpandedRow:K,onExpandFoldIconClick:S}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Um(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ei(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Um(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var ns=new Map;function Ml(t,e,n,a){if(ns.get(e))return ns.get(e);var r=a||{allChildren:[],allChildrenKeys:[],leafNodeKeys:[]},l=fe(e,n.childrenKey);if(!l||!l.length)return r;var o=l.filter(function(b){var y;return!((y=t.get(fe(b,n.rowKey)))!==null&&y!==void 0&&y.disabled)});r.allChildren=ce(new Set(r.allChildren.concat(o)));for(var i=0,u=l.length;i<u;i++){var c=l[i],v=fe(c,n.childrenKey);if(v!=null&&v.length){var s=Ml(t,c,n,r);r.allChildren=ce(new Set(r.allChildren.concat(s.allChildren)))}}for(var d=0,f=r.allChildren.length;d<f;d++){var p=r.allChildren[d],h=fe(p,n.childrenKey),m=fe(p,n.rowKey);r.allChildrenKeys.push(m),(!h||!h.length)&&r.leafNodeKeys.push(m)}return r.allChildrenKeys=ce(new Set(r.allChildrenKeys)),r.leafNodeKeys=ce(new Set(r.leafNodeKeys)),r}function D4(t,e){for(var n=t.selectedRowKeys,a=t.removeKeys,r=e||{data:[],keys:[]},l=0,o=n.length;l<o;l++){var i=n[l];a.includes(i)||r.keys.push(i)}return r}function I4(t){for(var e=t.treeDataMap,n=t.selectedRowKeys,a=[],r=0,l=n.length;r<l;r++){var o=n[r];a.push(e.get(o))}return a}function j4(t,e){var n=_e(t),a=n.selectedRowKeys,r=n.tree,l=n.data,o=n.indeterminateSelectedRowKeys,i=G([]),u=Nt(a,t.defaultSelectedRowKeys||[],t.onSelectChange,"selectedRowKeys"),c=be(u,2),v=c[0],s=c[1],d=B(function(){var y;return{rowKey:t.rowKey||"id",childrenKey:((y=t.tree)===null||y===void 0?void 0:y.childrenKey)||"children"}});le([r,e,l,v],function(y){var C=be(y,2),O=C[0],_=C[1];!O||!_.size||O.checkStrictly||f()});function f(){if(!(!r.value||r.value.checkStrictly)){if(!v.value.length){i.value=[];return}for(var y=[],C={},O=0,_=v.value.length;O<_;O++){var $=v.value[O],I=e.value.get($);if(I){var x=fe(I.row,d.value.childrenKey);if(!x||!x.length)for(var S=I.parent;S;){C[S.id]||(C[S.id]=[]),C[S.id].push(I.row);var E=C[S.id].length,D=Ml(e.value,S.row,d.value),j=D.allChildrenKeys,T=y.indexOf(S.id),F=v.value.indexOf(S.id);E>0&&E<j.length&&F===-1?T===-1&&y.push(S.id):T!==-1&&y.splice(T,1),S=S.parent}}}i.value=y}}function p(y,C,O){if(!(!r.value||r.value.checkStrictly)){for(var _=ce(y),$=e.value.get(C),I=$.parent;I;){var x=Ml(e.value,I.row,d.value),S=x.leafNodeKeys,E=or(S,y),D=_.indexOf(I.id);O==="uncheck"?D!==-1&&_.splice(D,1):E.length===S.length&&D===-1&&_.push(I.id),I=I.parent}return _}}function h(y,C){if(!r.value||r.value.checkStrictly){s(y,C);return}C.currentRowKey==="CHECK_ALL_BOX"?m(C):b(y,C)}function m(y){var C=[],O=[];if(y.type==="check")for(var _=ce(e.value.values()),$=0,I=_.length;$<I;$++){var x=_[$];x.disabled||(O.push(x.row),C.push(fe(x.row,d.value.rowKey)))}var S=ei(ei({},y),{},{selectedRowData:O||[]});s(C,S)}function b(y,C){var O,_=ce(y);if(((O=t.tree)===null||O===void 0?void 0:O.checkStrictly)===!1){if((C==null?void 0:C.type)==="check"){var $=Ml(e.value,C.currentRowData,d.value),I=$.allChildrenKeys;ns.set(C.currentRowData,$),_=ce(new Set(_.concat(I)))}else if((C==null?void 0:C.type)==="uncheck"){var x=Ml(e.value,C.currentRowData,d.value),S=D4({selectedRowKeys:y,removeKeys:x.allChildrenKeys});_=S.keys}}_=p(_,C.currentRowKey,C.type);var E=I4({treeDataMap:e.value,selectedRowKeys:_}),D=ei(ei({},C),{},{selectedRowData:E});s(_,D)}return{tIndeterminateSelectedRowKeys:o.value?o:i,onInnerSelectChange:h}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var $4=["store","dataSource","formatTreeColumn","swapData","onExpandFoldIconClick"];function Ym(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Wn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ym(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ym(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var F4=ne({name:"TEnhancedTable",props:Wn(Wn(Wn({},Jr),rC),S4),setup:function(e,n){var a=G(null),r=T4(e,n),l=r.store,o=r.dataSource,i=r.formatTreeColumn,u=r.swapData,c=r.onExpandFoldIconClick,v=cr(r,$4),s=ee(),d=G(l.value.treeDataMap),f=j4(e,d),p=f.tIndeterminateSelectedRowKeys,h=f.onInnerSelectChange,m=function $(I){for(var x=[],S=0,E=I.length;S<E;S++){var D,j,T=Wn({},I[S]);T=i(T),(D=T.children)!==null&&D!==void 0&&D.length&&(T.children=$(T.children)),(!T.children||(j=T.children)!==null&&j!==void 0&&j.length)&&x.push(T)}return x},b=B(function(){var $=!e.tree||!Object.keys(e.tree).length;return $?e.columns:m(e.columns)}),y=function(I){var x;e.beforeDragSort&&!e.beforeDragSort(I)||(u({current:I.current,target:I.target,currentIndex:I.currentIndex,targetIndex:I.targetIndex}),(x=e.onDragSort)===null||x===void 0||x.call(e,I))},C=function(I){var x,S;(x=e.tree)!==null&&x!==void 0&&x.expandTreeNodeOnClick&&c({row:I.row,rowIndex:I.index},"row-click"),(S=e.onRowClick)===null||S===void 0||S.call(e,I)},O=function $(I,x){if(!I)return-1;if(I.rowIndex>=0)return I.rowIndex;if(I.rowIndex<0)return $(I.parent)},_=function(I){var x=I.index;if(!x&&x!==0){if(!I.key){We.error("Table","scrollToElement: one of `index` or `key` must exist.");return}var S=d.value.get(I.key);x=O(S,I.key),(x<0||x===void 0)&&We.error("Table","".concat(I.key," does not exist in data, check `rowKey` or `data` please."))}a.value.scrollToElement(Wn(Wn({},I),{},{index:x}))};return n.expose(Wn(Wn({store:l.value,dataSource:o.value},v),{},{primaryTableRef:a,validateRowData:function(I){return a.value.validateRowData(I)},validateTableData:function(){return a.value.validateTableData()},clearValidateData:function(){a.value.clearValidateData()},refreshTable:function(){a.value.refreshTable()},scrollToElement:_})),function(){var $,I=It(),x=I.vnode,S=Wn(Wn({},x.props),{},{rowKey:e.rowKey||"id",data:o.value,columns:b.value,indeterminateSelectedRowKeys:p.value,disableDataPage:!!(e.tree&&Object.keys(e.tree).length),onSelectChange:h,onDragSort:y,rowClassName:function(D){var j=D.row,T=fe(j,e.rowKey||"id"),F=d.value.get(T);return F?["".concat(s.value,"-table-tr--level-").concat(F.level),e.rowClassName]:[e.rowClassName]}});return($=e.tree)!==null&&$!==void 0&&$.expandTreeNodeOnClick&&(S.onRowClick=C),g(dv,ve(S,{ref:a}),n.slots)}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var f7=ye(aC);ye(dv);ye(F4);var k4=Xn(dv),g7=ye(k4,"TTable");/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var A4={borderless:Boolean,defaultExpandAll:Boolean,disabled:Boolean,expandIcon:{type:[Boolean,Function],default:!0},expandIconPlacement:{type:String,default:"left",validator:function(e){return e?["left","right"].includes(e):!0}},expandMutex:Boolean,expandOnRowClick:{type:Boolean,default:!0},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array},onChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var R4=ne({name:"TCollapse",props:A4,setup:function(e){var n=ee("collapse"),a=ee("-border-less"),r=xe(),l=_e(e),o=l.value,i=l.expandMutex,u=l.borderless,c=l.modelValue,v=ht(o,c,e.defaultValue,e.onChange),s=be(v,2),d=s[0],f=s[1],p=function(y){var C=[].concat(d.value||[]),O=C.indexOf(y);O>=0?C.splice(O,1):i.value?C=[y]:C.push(y),f(C)},h=B(function(){return[n.value,N({},a.value,!!u.value)]}),m=function(){var b=0;return function(){return b++}}();return wt("collapseValue",d),wt("updateCollapseValue",p),wt("collapseProps",_e(e)),wt("getUniqId",m),wt("renderParentTNode",r),function(){var b=r("default");return g("div",{class:h.value},[b])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var M4={content:{type:[String,Function]},default:{type:[String,Function]},destroyOnCollapse:Boolean,disabled:{type:Boolean,default:void 0},expandIcon:{type:[Boolean,Function],default:void 0},header:{type:[String,Function]},headerRightContent:{type:[String,Function]},value:{type:[String,Number]}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function N4(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var L4=ne({name:"TCollapsePanel",props:M4,setup:function(e,n){var a=n.slots,r=xe(),l=_t(),o=ee("collapse-panel"),i=ee("is-disabled"),u=ee("is-clickable"),c=ee("slide-down"),v=_e(e),s=v.value,d=v.disabled,f=v.destroyOnCollapse,p=vt("collapseValue"),h=vt("updateCollapseValue"),m=vt("getUniqId",function(){},!1),b=vt("collapseProps"),y=b.defaultExpandAll,C=b.disabled,O=b.expandIconPlacement,_=b.expandOnRowClick,$=vt("renderParentTNode"),I=s.value||m();y.value&&h(I);var x=by(),S=x.beforeEnter,E=x.enter,D=x.afterEnter,j=x.beforeLeave,T=x.leave,F=x.afterLeave,w=G(),P=B(function(){return d.value||C.value}),A=B(function(){return p.value instanceof Array?p.value.includes(I):p.value===I}),R=B(function(){return[o.value,N({},i.value,P.value)]}),k=B(function(){return a.expandIcon||e.expandIcon}),M=function(J){var Z=_.value||J.currentTarget===w.value;Z&&!P.value&&h(I),J.stopPropagation()},V=function(J){J.stopPropagation()},W=function(){return g(Hl,{overlayClassName:"".concat(o.value,"__icon--default")},null)},U=function(){var J=k.value===void 0?$:r;return g("div",{ref:w,class:"".concat(o.value,"__icon ").concat(o.value,"__icon--").concat(O.value," ").concat(A.value?"".concat(o.value,"__icon--active"):""),onClick:M},[J("expandIcon",W())])},H=function(){return g("div",{class:"".concat(o.value,"__header--blank")},null)},L=function(){var J=r("headerRightContent");return J?g("div",{onClick:V},[J]):null},z=function(){var J=["".concat(o.value,"__header"),N({},u.value,_.value&&!P.value)];return g("div",{class:J,onClick:M},[O.value==="left"&&U(),r("header"),H(),L(),O.value==="right"&&U()])},K=function(){return tr(g("div",{class:"".concat(o.value,"__body")},[g("div",{class:"".concat(o.value,"__content")},[l("default","content")])]),[[el,A.value]])},Y=function(){return A.value?g("div",{class:"".concat(o.value,"__body")},[g("div",{class:"".concat(o.value,"__content")},[l("default","content")])]):null},q=function(){return f.value?Y():K()};return function(){var X;return g("div",{class:R.value},[g("div",{class:"".concat(o.value,"__wrapper")},[z(),g(nr,{name:c.value,onBeforeEnter:S,onEnter:E,onAfterEnter:D,onBeforeLeave:j,onLeave:T,onAfterLeave:F},N4(X=q())?X:{default:function(){return[X]}})])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var h7=ye(R4),m7=ye(L4);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var B4={close:{type:[String,Boolean,Function],default:!1},default:{type:[String,Function]},icon:{type:Function},maxLine:{type:Number,default:0},message:{type:[String,Function]},operation:{type:Function},theme:{type:String,default:"info",validator:function(e){return["success","info","warning","error"].includes(e)}},title:{type:[String,Function]},onClose:Function,onClosed:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var V4=ne({name:"TAlert",props:B4,setup:function(e){var n=Ke("alert"),a=n.globalConfig,r=n.classPrefix,l=at({CheckCircleFilledIcon:$a,CloseIcon:pa,ErrorCircleFilledIcon:ma,HelpCircleFilledIcon:mp,InfoCircleFilledIcon:io}),o=l.CheckCircleFilledIcon,i=l.CloseIcon,u=l.ErrorCircleFilledIcon,c=l.HelpCircleFilledIcon,v=l.InfoCircleFilledIcon,s=ee("alert"),d=xe(),f=KA(),p=G(null),h=G(null),m=G(0),b=G(!0),y=G(!0),C=function(){var j={info:v,success:o,warning:u,error:u,question:c},T=f("icon",j);return T?g("div",{class:"".concat(s.value,"__icon")},[T]):null},O=function(){var j=e.close,T=null;return j===!0||j===""?T=g(i,null,null):Be(j)?T=j:T=f("close"),T?g("div",{class:"".concat(s.value,"__close"),onClick:S},[T]):null},_=function(){var j=d("title");return j?g("div",{class:"".concat(s.value,"__title")},[" ",j]):null},$=function(){var j=d("operation");return g("div",{class:"".concat(s.value,"__message")},[I(),j?g("div",{class:"".concat(s.value,"__operation")},[j]):null])},I=function(){var j,T;T=d("default"),T||(T=d("message"));var F=ke(T)?T.length:1,w=e.maxLine>0&&e.maxLine<F,P=(j=h.value)===null||j===void 0||(j=j.children[0])===null||j===void 0?void 0:j.offsetHeight;return w&&y.value?(T=T.slice(0,e.maxLine),P&&(h.value.style.height="".concat(m.value,"px"))):w&&P&&(h.value.style.height="".concat(P*(F-e.maxLine)+m.value,"px")),g("div",{class:"".concat(s.value,"__description"),ref:h},[w?T.map(function(A){return g("div",null,[A])}):T,w?g("div",{class:"".concat(s.value,"__collapse"),onClick:function(){y.value=!y.value}},[y.value?a.value.expandText:a.value.collapseText]):null])},x=function(){return g("div",{class:"".concat(s.value,"__content")},[_(),$()])},S=function(j){var T;(T=e.onClose)===null||T===void 0||T.call(e,{e:j}),Ps(p.value,"".concat(s.value,"--closing"))},E=function(j){var T=j.target===p.value;if(j.propertyName==="opacity"&&T){var F;b.value=!1,(F=e.onClosed)===null||F===void 0||F.call(e,{e:j})}};return Ae(function(){ot(p.value,"transitionend",E),m.value=h.value.offsetHeight}),Ft(function(){Xe(p.value,"transitionend",E)}),function(){return g("div",{ref:p,class:["".concat(s.value),"".concat(s.value,"--").concat(e.theme),N({},"".concat(r.value,"-is-hidden"),!b.value)]},[C(),x(),O()])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var p7=ye(V4);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var H4={attach:{type:[String,Function],default:""},body:{type:[String,Function]},cancelBtn:{type:[String,Object,Function],default:""},closeBtn:{type:[String,Boolean,Function]},closeOnEscKeydown:{type:Boolean,default:void 0},closeOnOverlayClick:{type:Boolean,default:void 0},confirmBtn:{type:[String,Object,Function],default:""},default:{type:[String,Function]},destroyOnClose:Boolean,footer:{type:[Boolean,Function],default:!0},header:{type:[String,Boolean,Function],default:!0},mode:{type:String,default:"overlay",validator:function(e){return e?["overlay","push"].includes(e):!0}},placement:{type:String,default:"right",validator:function(e){return e?["left","right","top","bottom"].includes(e):!0}},preventScrollThrough:{type:Boolean,default:!0},showInAttachedElement:Boolean,showOverlay:{type:Boolean,default:!0},size:{type:String,default:void 0},sizeDraggable:Boolean,visible:Boolean,zIndex:{type:Number},onCancel:Function,onClose:Function,onCloseBtnClick:Function,onConfirm:Function,onEscKeydown:Function,onOverlayClick:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var K4=function(e){var n=G(!1),a=G(null),r=function(){document.addEventListener("mouseup",l,!0),document.addEventListener("mousemove",o,!0),n.value=!0},l=function u(){document.removeEventListener("mouseup",u,!0),document.removeEventListener("mousemove",o,!0),n.value=!1},o=function(c){var v=c.x,s=c.y,d=document.documentElement.clientHeight,f=document.documentElement.clientWidth,p=8,h=8;if(n.value&&e.sizeDraggable){if(e.placement==="right"){var m=Math.min(Math.max(f-v+h,h),f);a.value="".concat(m,"px")}if(e.placement==="left"){var b=Math.min(Math.max(v+h,h),f);a.value="".concat(b,"px")}if(e.placement==="top"){var y=Math.min(Math.max(s+p,p),d);a.value="".concat(y,"px")}if(e.placement==="bottom"){var C=Math.min(Math.max(d-s+p,p),d);a.value="".concat(C,"px")}}},i=B(function(){var u=["right","left"].includes(e.placement),c={left:"right",right:"left",top:"bottom",bottom:"top"};return N(N(N(N({zIndex:1,position:"absolute",background:"transparent"},c[e.placement],0),"width",u?"16px":"100%"),"height",u?"100%":"16px"),"cursor",u?"col-resize":"row-resize")});return{draggedSizeValue:a,enableDrag:r,draggableLineStyles:i}};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var z4=1,W4=ne({name:"TDrawer",inheritAttrs:!1,props:H4,emits:["update:visible"],setup:function(e,n){var a=G(!1),r=G(!1),l=G(),o=G(),i=Ke("drawer"),u=i.globalConfig,c=at({CloseIcon:pa}),v=c.CloseIcon,s=xe(),d=_t(),f=ee("drawer"),p=K4(e),h=p.draggedSizeValue,m=p.enableDrag,b=p.draggableLineStyles,y=Ds(function(){return e.attach}),C=function(z){var K;(K=e.onConfirm)===null||K===void 0||K.call(e,{e:z})},O=function(z){var K;(K=e.onCancel)===null||K===void 0||K.call(e,{e:z}),H({trigger:"cancel",e:z})},_=nv({confirmBtnAction:C,cancelBtnAction:O}),$=_.getConfirmBtn,I=_.getCancelBtn,x=G(null),S=B(function(){return[f.value,"".concat(f.value,"--").concat(e.placement),N(N(N({},"".concat(f.value,"--open"),r.value),"".concat(f.value,"--attach"),e.showInAttachedElement),"".concat(f.value,"--without-mask"),!e.showOverlay)]}),E=B(function(){var L;if(h.value)return h.value;var z=(L=e.size)!==null&&L!==void 0?L:u.value.size,K=isNaN(Number(z))?z:"".concat(z,"px");return{small:"300px",medium:"500px",large:"760px"}[z]||K}),D=B(function(){return{transform:r.value?"translateX(0)":void 0,width:["left","right"].includes(e.placement)?E.value:"",height:["top","bottom"].includes(e.placement)?E.value:""}}),j=B(function(){return["".concat(f.value,"__content-wrapper"),"".concat(f.value,"__content-wrapper--").concat(e.placement)]}),T=B(function(){return x.value&&x.value.parentNode}),F=B(function(){return[e.mode,e.placement].join()}),w=B(function(){return{display:"flex",justifyContent:e.placement==="right"?"flex-start":"flex-end"}}),P=function(z){var K;if((K=e.closeOnEscKeydown)!==null&&K!==void 0?K:u.value.closeOnEscKeydown&&z.key==="Escape"){var Y;(Y=e.onEscKeydown)===null||Y===void 0||Y.call(e,{e:z}),H({trigger:"esc",e:z})}},A=function(){clearTimeout(o.value),o.value=setTimeout(function(){var z,K;(z=l.value)===null||z===void 0||(z=z.parentNode)===null||z===void 0||(K=z.removeChild)===null||K===void 0||K.call(z,l.value)},150)},R=function(){e.mode==="push"&&Je(function(){T.value&&(T.value.style.cssText="transition: margin 300ms cubic-bezier(0.7, 0.3, 0.1, 1) 0s;")})},k=function(){if(T.value&&!(e.mode!=="push"||!T.value)){var z={left:"margin: 0 0 0 ".concat(E.value),right:"margin: 0 0 0 -".concat(E.value),top:"margin: ".concat(E.value," 0 0 0"),bottom:"margin: -".concat(E.value," 0 0 0")}[e.placement];r.value?T.value.style.cssText+=z:T.value.style.cssText=T.value.style.cssText.replace(/margin:.+;/,"")}},M=function(){var z=$({confirmBtn:e.confirmBtn,globalConfirm:u.value.confirm,className:"".concat(f.value,"__confirm")}),K=I({cancelBtn:e.cancelBtn,globalCancel:u.value.cancel,className:"".concat(f.value,"__cancel")});return g("div",{style:w.value},[e.placement==="right"?z:null,K,e.placement!=="right"?z:null])};le(F,function(){R()},{immediate:!0}),le(function(){return e.visible},function(L){ar||(L?!e.showInAttachedElement&&e.preventScrollThrough&&l.value&&document.head.appendChild(l.value):A(),e.destroyOnClose?L?(a.value=!1,setTimeout(function(){r.value=!0})):(r.value=!1,setTimeout(function(){a.value=!0},200)):a.value===!0&&L?(a.value=!1,setTimeout(function(){r.value=!0})):r.value=L)},{immediate:!0});var V=function(z){var K;(K=e.onCloseBtnClick)===null||K===void 0||K.call(e,{e:z}),H({trigger:"close-btn",e:z})},W=function(z){var K,Y;(K=e.onOverlayClick)===null||K===void 0||K.call(e,{e:z}),((Y=e.closeOnOverlayClick)!==null&&Y!==void 0?Y:u.value.closeOnOverlayClick)&&H({trigger:"overlay",e:z})},U=function(z){var K;if(((K=e.closeOnEscKeydown)!==null&&K!==void 0?K:u.value.closeOnEscKeydown)&&z.key==="Escape"){var Y;(Y=e.onEscKeydown)===null||Y===void 0||Y.call(e,{e:z}),H({trigger:"esc",e:z})}},H=function(z){var K;(K=e.onClose)===null||K===void 0||K.call(e,z),n.emit("update:visible",!1)};return qi(function(){k()}),Ae(function(){var L=document.documentElement.scrollHeight>document.documentElement.clientHeight,z=L?V0():0;l.value=document.createElement("style"),l.value.dataset.id="td_drawer_".concat(+new Date,"_").concat(z4+=1),l.value.innerHTML=`
        html body {
          overflow-y: hidden;
          transition: margin 300ms cubic-bezier(0.7, 0.3, 0.1, 1) 0s;
          `.concat(e.mode==="push"?"":"width: calc(100% - ".concat(z,"px);"),`
        }
      `),r.value&&!e.showInAttachedElement&&e.preventScrollThrough&&document.head.appendChild(l.value),window.addEventListener("keydown",P)}),Ft(function(){A(),window.removeEventListener("keydown",P)}),function(){if(!a.value){var L=d("body","default"),z=s("header"),K=M();return g(Mr,{disabled:!e.attach||!y.value,to:y.value},{default:function(){return[g("div",ve({ref:x,class:S.value,style:{zIndex:e.zIndex},onKeydown:U,tabindex:0},n.attrs),[e.showOverlay&&g("div",{class:"".concat(f.value,"__mask"),onClick:W},null),g("div",{class:j.value,style:D.value},[z&&g("div",{class:"".concat(f.value,"__header")},[z]),e.closeBtn&&g("div",{class:"".concat(f.value,"__close-btn"),onClick:V},[s("closeBtn",g(v,null,null))]),g("div",{class:["".concat(f.value,"__body"),"narrow-scrollbar"]},[L]),e.footer&&g("div",{class:"".concat(f.value,"__footer")},[s("footer",K)]),e.sizeDraggable&&g("div",{style:b.value,onMousedown:m},null)])])]}})}}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var b7=ye(W4);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var U4={closeBtn:{type:[String,Boolean,Function],default:void 0},content:{type:[String,Function]},default:{type:[String,Function]},duration:{type:Number,default:3e3},footer:{type:[String,Function]},icon:{type:[Boolean,Function],default:!0},theme:{type:String,default:"info",validator:function(e){return e?["info","success","warning","error"].includes(e):!0}},title:{type:[String,Function]},onCloseBtnClick:Function,onDurationEnd:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Y4=6e3,oa="16px",_C={"top-left":{left:oa,top:oa},"top-right":{right:oa,top:oa},"bottom-right":{right:oa,bottom:oa},"bottom-left":{left:oa,bottom:oa}},SC=Object.keys(_C);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var xC={duration:200,easing:"linear"},G4=function(e,n){if(e){var a=(e==null?void 0:e.offsetHeight)||0,r=(e==null?void 0:e.offsetWidth)||0,l=q4(n,r,a);l&&e.animate&&e.animate(l,xC)}},Gm=function(e,n,a){if(e){var r=(e==null?void 0:e.offsetHeight)||0,l=(e==null?void 0:e.offsetWidth)||0,o=X4(n,l,r);if(!o)return a();var i=e.animate&&e.animate(o,xC);i?i.onfinish=function(){a()}:(e.style.display="none",a())}},q4=function(e,n,a){if(!SC.includes(e))return null;if(e==="top-right")return[{opacity:0,transform:"translateX(".concat(n,"px)")},{opacity:1,transform:"translateX(0px)"}];if(e==="bottom-right")return[{opacity:0,transform:"translateX(".concat(n,"px)"),marginBottom:"-".concat(a,"px")},{opacity:1,transform:"translateX(0px)"}];if(e==="top-left")return[{opacity:0,transform:"translateX(-".concat(n,"px)")},{opacity:1,transform:"translateX(0px)"}];if(e==="bottom-left")return[{opacity:0,transform:"translateX(-".concat(n,"px)"),marginBottom:"-".concat(a,"px")},{opacity:1,transform:"translateX(0px)"}]},X4=function(e,n,a){if(!SC.includes(e))return null;if(e==="top-right")return[{opacity:1,transform:"translateX(0px)"},{opacity:0,transform:"translateX(".concat(n,"px)"),marginBottom:"-".concat(a,"px")}];if(e==="bottom-right")return[{opacity:1,transform:"translateX(0px)"},{opacity:0,transform:"translateX(".concat(n,"px)")}];if(e==="top-left")return[{opacity:1,transform:"translateX(0px)"},{opacity:0,transform:"translateX(-".concat(n,"px)"),marginBottom:"-".concat(a,"px")}];if(e==="bottom-left")return[{opacity:1,transform:"translateX(0px)"},{opacity:0,transform:"translateX(-".concat(n,"px)")}]};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function qm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Xm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var J4=ne({name:"TNotification",props:Xm(Xm({},U4),{},{placement:String}),setup:function(e,n){var a=n.slots,r=n.expose,l=ee("notification"),o=Ke("classPrefix"),i=o.classPrefix,u=at({InfoCircleFilledIcon:io,CheckCircleFilledIcon:$a,CloseIcon:pa}),c=u.InfoCircleFilledIcon,v=u.CheckCircleFilledIcon,s=u.CloseIcon,d=xe(),f=_t(),p=G(null),h=G(null),m=function(I){var x=h.value;Gm(x,e.placement,function(){var S;(S=e.onCloseBtnClick)===null||S===void 0||S.call(e,{e:I})})},b=function(){var I;if(e.icon===!1)return null;if(pe(e.icon))I=e.icon(He);else if(a.icon)I=a.icon(null);else if(e.theme){var x=e.theme==="success"?g(v,{class:"".concat(i.value,"-is-").concat(e.theme)},null):g(c,{class:"".concat(i.value,"-is-").concat(e.theme)},null);I=g("div",{class:"t-notification__icon"},[x])}return I},y=function(){var I=g(s,null,null);return g("span",{class:"".concat(i.value,"-message__close"),onClick:m},[d("closeBtn",I)])},C=function(){return g("div",{class:"".concat(l.value,"__content")},[f("default","content")])},O=function(){e.duration&&clearTimeout(p.value)},_=function(){e.duration&&(p.value=Number(setTimeout(function(){O();var I=h.value;Gm(I,e.placement,function(){var x;(x=e.onDurationEnd)===null||x===void 0||x.call(e)})},e.duration)))};return is(function(){e.duration&&_()}),Ae(function(){var $=h.value;G4($,e.placement)}),r({close:m}),function(){return g("div",{ref:h,class:"".concat(l.value),onMouseenter:O,onMouseleave:_},[b(),g("div",{class:"".concat(l.value,"__main")},[g("div",{class:"".concat(l.value,"__title__wrap")},[g("span",{class:"".concat(l.value,"__title")},[d("title")]),y()]),C(),d("footer")])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Jm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function hc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Z4=ne({props:{placement:{type:String,default:"top-right",validator:function(e){return["top-left","top-right","bottom-left","bottom-right"].indexOf(e)>-1}}},setup:function(e,n){var a=n.expose,r=ee("notification-list"),l=e.placement,o=G([]),i=G([]),u=B(function(){return hc({zIndex:Y4},_C[l])}),c=function(b){return o.value.push(b),o.value.length-1},v=function(b){o.value.splice(b,1)},s=function(){o.value=[]},d=function(b){if(b)return isNaN(Number(b))?b:"".concat(b,"px")},f=function(b){var y={marginBottom:oa};return b.offset&&(y.position="relative",y.left=d(b.offset[0]),y.top=d(b.offset[1])),b.zIndex&&(y["z-index"]=b.zIndex),y},p=function(b,y){return hc(hc({},y),{},{onCloseBtnClick:function(O){return y.onCloseBtnClick&&y.onCloseBtnClick(O),v(b)},onDurationEnd:function(){return y.onDurationEnd&&y.onDurationEnd(),v(b)}})},h=function(b){b&&i.value.push(b)};return a({add:c,remove:v,removeAll:s,list:o,notificationList:i}),function(){if(o.value.length)return g("div",{class:"".concat(r.value,"__show"),style:u.value},[o.value.map(function(m,b){return g(J4,ve({ref:h,key:m.id,style:f(m)},p(b,m)),null)})])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function Zm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function as(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zm(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zm(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Qm=0,Ir=new Map,Q4=function(e){Qm+=1;var n=as({placement:"top-right",zIndex:6e3,attach:"body",id:Qm},e);n.content=e.content?e.content:"";var a=cl(n.attach);Ir.get(a)||Ir.set(a,{});var r=Ir.get(a)[n.placement];if(r)r.add(n);else{var l=document.createElement("div"),o=Gi(Z4,{placement:n.placement}).mount(l);o.add(n),Ir.get(a)[n.placement]=o,r=o,a.appendChild(o.$el)}return new Promise(function(i){var u=Ir.get(a)[n.placement];Je(function(){var c=u.notificationList;i(c[c.length-1])})})},$r=function(e,n){var a=as(as({},n),{},{theme:e});return Q4(a)},Wi={info:function(e){return $r("info",e)},success:function(e){return $r("success",e)},warning:function(e){return $r("warning",e)},error:function(e){return $r("error",e)},close:function(e){e.then(function(n){return n.close()})},closeAll:function(){Ir.forEach(function(e){Object.keys(e).forEach(function(n){e[n].removeAll()})})}},PC=$r;PC.install=function(t){t.config.globalProperties.$notify=$r,Object.keys(Wi).forEach(function(e){t.config.globalProperties.$notify[e]=Wi[e]})};Object.keys(Wi).forEach(function(t){PC[t]=Wi[t]});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var e9={cancelBtn:{type:[String,Object,Function],default:""},confirmBtn:{type:[String,Object,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},destroyOnClose:{type:Boolean,default:!0},icon:{type:Function},placement:{type:String,default:"top",validator:function(e){return e?["top","left","right","bottom","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"].includes(e):!0}},popupProps:{type:Object},showArrow:{type:Boolean,default:!0},theme:{type:String,default:"default",validator:function(e){return e?["default","warning","danger"].includes(e):!0}},triggerElement:{type:[String,Function]},visible:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultVisible:Boolean,onCancel:Function,onConfirm:Function,onVisibleChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function ep(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function t9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ep(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var n9=ne({name:"TPopconfirm",props:e9,setup:function(e){var n=Ke("popconfirm"),a=n.globalConfig,r=ee("popconfirm"),l=at({InfoCircleFilledIcon:io,ErrorCircleFilledIcon:ma}),o=l.InfoCircleFilledIcon,i=l.ErrorCircleFilledIcon,u=_e(e),c=u.visible,v=u.modelValue,s=ht(c,v,e.defaultVisible,e.onVisibleChange,"visible"),d=be(s,2),f=d[0],p=d[1],h=function(D){var j;(j=e.onConfirm)===null||j===void 0||j.call(e,{e:D}),p(!1,{e:D,trigger:"confirm"})},m=function(D){var j;(j=e.onCancel)===null||j===void 0||j.call(e,{e:D}),p(!1,{e:D,trigger:"cancel"})},b=nv({confirmBtnAction:h,cancelBtnAction:m}),y=b.getConfirmBtn,C=b.getCancelBtn,O=xe(),_=B(function(){return t9({showArrow:e.showArrow,overlayClassName:r.value,trigger:"click",destroyOnClose:e.destroyOnClose,placement:e.placement},e.popupProps)}),$=ka(),I=function(){var D=C({cancelBtn:e.cancelBtn,globalCancel:a.value.cancel,className:"".concat(r.value,"__cancel"),size:"small"}),j=y({theme:e.theme,confirmBtn:e.confirmBtn,globalConfirm:a.value.confirm,globalConfirmBtnTheme:a.value.confirmBtnTheme,className:"".concat(r.value,"__confirm"),size:"small"}),T=function(){var w={default:o,warning:i,danger:i}[e.theme],P=e.theme||"default";return $("icon",g(w,{class:"".concat(r.value,"__icon--").concat(P)},null))};return g("div",{class:"".concat(r.value,"__content")},[g("div",{class:"".concat(r.value,"__body")},[T(),g("div",{class:"".concat(r.value,"__inner")},[O("content")])]),!!(D||j)&&g("div",{class:"".concat(r.value,"__buttons")},[D,j])])},x=function(D,j){p(D,j)},S=_t();return function(){return g(Ma,ve({visible:f.value},_.value,{onVisibleChange:x}),{default:function(){return[S("default","triggerElement")]},content:I})}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var y7=ye(n9);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var a9={abridgeName:{type:Array},accept:{type:String,default:""},action:{type:String,default:""},allowUploadDuplicateFile:Boolean,autoUpload:{type:Boolean,default:!0},beforeAllFilesUpload:{type:Function},beforeUpload:{type:Function},cancelUploadButton:{type:[Object,Function]},data:{type:Object},default:{type:[String,Function]},disabled:Boolean,dragContent:{type:[String,Function]},draggable:{type:Boolean,default:void 0},fileListDisplay:{type:Function},files:{type:Array,default:void 0},defaultFiles:{type:Array,default:function(){return[]}},format:{type:Function},formatRequest:{type:Function},formatResponse:{type:Function},headers:{type:Object},imageViewerProps:{type:Object},inputAttributes:{type:Object},isBatchUpload:Boolean,locale:{type:Object},max:{type:Number,default:0},method:{type:String,default:"POST",validator:function(e){return e?["POST","GET","PUT","OPTION","PATCH","post","get","put","option","patch"].includes(e):!0}},mockProgressDuration:{type:Number},multiple:Boolean,name:{type:String,default:"file"},placeholder:{type:String,default:""},requestMethod:{type:Function},showImageFileName:{type:Boolean,default:!0},showThumbnail:Boolean,showUploadProgress:{type:Boolean,default:!0},sizeLimit:{type:[Number,Object]},status:{type:String,validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},theme:{type:String,default:"file",validator:function(e){return e?["custom","file","file-input","file-flow","image","image-flow"].includes(e):!0}},tips:{type:[String,Function]},trigger:{type:Function},triggerButtonProps:{type:Object},uploadAllFilesInOneRequest:Boolean,uploadButton:{type:[Object,Function]},uploadPastedFiles:{type:Boolean,default:!0},useMockProgress:{type:Boolean,default:!0},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},withCredentials:Boolean,onCancelUpload:Function,onChange:Function,onDragenter:Function,onDragleave:Function,onDrop:Function,onFail:Function,onOneFileFail:Function,onOneFileSuccess:Function,onPreview:Function,onProgress:Function,onRemove:Function,onSelectChange:Function,onSuccess:Function,onValidate:Function,onWaitingUploadFilesChange:Function};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var Oo={accept:String,files:Array,toUploadFiles:Array,displayFiles:Array,theme:String,abridgeName:Array,placeholder:String,classPrefix:String,tips:[String,Function],status:String,locale:Object,sizeOverLimitMessage:String,autoUpload:Boolean,uploadPastedFiles:Boolean,onPasteFileChange:Function,disabled:Boolean,uploading:Boolean,tipsClasses:[String,Array,Object],errorClasses:[String,Array,Object],placeholderClass:[String,Array,Object],showUploadProgress:Boolean,default:Function,fileListDisplay:Function,onRemove:Function,imageViewerProps:Object};/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function tp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function r9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tp(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function l9(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var o9=ne({name:"UploadNormalFile",props:r9({multiple:Boolean},Oo),setup:function(e,n){var a=n.slots,r=_e(e),l=r.theme,o=r.disabled,i=r.classPrefix,u=B(function(){return e.locale}),c=at({CloseIcon:pa,TimeFilledIcon:wp,CheckCircleFilledIcon:$a,ErrorCircleFilledIcon:ma,CloseCircleFilledIcon:co}),v=c.CloseIcon,s=c.TimeFilledIcon,d=c.CheckCircleFilledIcon,f=c.ErrorCircleFilledIcon,p=c.CloseCircleFilledIcon,h=xe(),m="".concat(i.value,"-upload"),b=function(_){return g("div",{class:"".concat(m,"__single-progress")},[g(bn,null,null),e.showUploadProgress&&g("span",{class:"".concat(m,"__single-percent")},[_||0,"%"])])},y=function(_){var $;return l.value!=="file"||!e.multiple&&(($=_[0])===null||$===void 0?void 0:$.status)==="fail"&&e.autoUpload?null:_.map(function(I,x){var S=e.abridgeName&&I.name?Wr.apply(void 0,[I.name].concat(ce(e.abridgeName))):I.name;return g("div",{class:"".concat(m,"__single-display-text ").concat(m,"__display-text--margin"),key:I.name+x+I.percent+I.status},[I.url?g(Is,{href:I.url,target:"_blank",hover:"color",size:"small",class:"".concat(m,"__single-name")},l9(S)?S:{default:function(){return[S]}}):g("span",{class:"".concat(m,"__single-name")},[S]),I.status==="fail"&&g("div",{class:"".concat(m,"__flow-status ").concat(m,"__file-fail")},[g(f,null,null)]),I.status==="waiting"&&g("div",{class:"".concat(m,"__flow-status ").concat(m,"__file-waiting")},[g(s,null,null)]),I.status==="progress"&&b(I.percent),!o.value&&I.status!=="progress"&&g(v,{class:"".concat(m,"__icon-delete"),onClick:function(D){var j=D.e;return e.onRemove({e:j,file:I,index:x})}},null)])})},C=function(){var _;if(l.value==="file-input"){var $=e.displayFiles[0]||[],I=["".concat(i.value,"-input__inner"),N({},"".concat(m,"__placeholder"),!e.displayFiles[0])],x=o.value?"".concat(i.value,"-is-disabled"):"",S=(_=e.abridgeName)!==null&&_!==void 0&&_.length&&$!==null&&$!==void 0&&$.name?Wr.apply(void 0,[$.name].concat(ce(e.abridgeName))):$==null?void 0:$.name;return g("div",{class:"".concat(m,"__single-input-preview ").concat(i.value,"-input ").concat(x)},[g("div",{class:I},[g("span",{class:["".concat(m,"__single-input-text"),N({},e.placeholderClass,e.placeholder&&!($!=null&&$.name))]},[$!=null&&$.name?S:e.placeholder]),($==null?void 0:$.status)==="progress"&&b($.percent),($==null?void 0:$.status)==="waiting"&&g(s,{class:"".concat(m,"__status-icon ").concat(m,"__file-waiting")},null),$.status==="success"&&g(d,{class:"".concat(m,"__status-icon")},null),($==null?void 0:$.name)&&$.status==="fail"&&g(f,{class:"".concat(m,"__status-icon ").concat(m,"__file-fail")},null),!!(!o.value&&$.name)&&g(p,{class:"".concat(m,"__single-input-clear"),onClick:function(D){var j=D.e;return e.onRemove({e:j,file:$,index:0})}},null)])])}};return function(){var O,_,$,I=["".concat(m,"__single"),"".concat(m,"__single-").concat(l.value)],x=h("fileListDisplay",{params:{onRemove:e.onRemove,toUploadFiles:e.toUploadFiles,sizeOverLimitMessage:e.sizeOverLimitMessage,locale:e.locale,files:e.displayFiles}});(e.fileListDisplay===null||x===null)&&(x=null);var S=e.displayFiles;return g("div",{class:I},[l.value==="file-input"&&C(),(O=a.default)===null||O===void 0?void 0:O.call(a),l.value==="file"&&e.placeholder&&!S[0]&&g("small",{class:[e.tipsClasses,e.placeholderClass]},[e.placeholder]),x===null?null:x||y(S),!e.multiple&&((_=S[0])===null||_===void 0?void 0:_.status)==="fail"&&l.value==="file"?g("small",{class:[e.errorClasses,e.placeholderClass]},[(($=S[0].response)===null||$===void 0?void 0:$.error)||u.value.progress.failText]):null])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function fv(t,e){var n=G(null),a=G(!1),r=function(c){var v;c.preventDefault(),a.value=!1;var s=c.dataTransfer.files,d=ay(s,e.value);if((v=t.onDrop)===null||v===void 0||v.call(t,{e:c}),d!=null&&d.length){var f;(f=t.onDragFileChange)===null||f===void 0||f.call(t,d)}},l=function(c){var v;c.preventDefault(),n.value=c.target,(v=t.onDragenter)===null||v===void 0||v.call(t,{e:c}),a.value=!0},o=function(c){var v;c.target===n.value&&(c.preventDefault(),(v=t.onDragleave)===null||v===void 0||v.call(t,{e:c}),a.value=!1)},i=function(c){c.preventDefault()};return{target:n,dragActive:a,handleDrop:r,handleDragenter:l,handleDragleave:o,handleDragover:i}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function np(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ap(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?np(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var i9=ne({name:"UploadDraggerFile",props:ap(ap({},Oo),{},{trigger:Function,triggerUpload:Function,uploadFiles:Function,cancelUpload:Function,dragEvents:Object}),setup:function(e,n){var a=n.slots,r=_e(e),l=r.displayFiles,o=r.disabled,i=r.accept,u=B(function(){return e.locale}),c=xe(),v=Ls(),s=v.sizeClassNames,d="".concat(e.classPrefix,"-upload"),f=fv(e.dragEvents,i),p=f.dragActive,h=G(),m=B(function(){var S;return["".concat(d,"__dragger"),N({},"".concat(d,"__dragger-center"),!l.value[0]),N({},"".concat(d,"__dragger-error"),((S=l.value[0])===null||S===void 0?void 0:S.status)==="fail")]}),b=at({CheckCircleFilledIcon:$a,ErrorCircleFilledIcon:ma}),y=b.CheckCircleFilledIcon,C=b.ErrorCircleFilledIcon,O=function(){var E;if(e.displayFiles.length){var D=l.value[0];if(!D)return null;var j=(D==null?void 0:D.url)||(D==null||(E=D.response)===null||E===void 0?void 0:E.url);return g("div",{class:"".concat(d,"__dragger-img-wrap")},[g(rv,ve({images:[j],trigger:function(F,w){var P=w.open;return g(Xr,{src:j||D.raw,onClick:P,error:"",loading:""},null)}},e.imageViewerProps),null)])}},_=function(){if(e.displayFiles.length){var E=l.value[0];if(!E)return null;if((E==null?void 0:E.status)==="progress")return g("div",{class:"".concat(d,"__single-progress")},[g(bn,null,null),e.showUploadProgress&&g("span",{class:"".concat(d,"__single-percent")},[E.percent,"%"])])}},$=function(){var E,D=l.value[0],j=e.abridgeName?Wr.apply(void 0,[D.name].concat(ce(e.abridgeName))):D.name,T=[g("div",{class:"".concat(d,"__dragger-text"),key:"info"},[g("span",{class:"".concat(d,"__single-name")},[j]),D.status==="progress"&&_(),D.status==="success"&&g(y,null,null),D.status==="fail"&&g(C,null,null)]),g("small",{class:"".concat(s.small),key:"size"},[u.value.file.fileSizeText,"：",eR(D.size)]),g("small",{class:"".concat(s.small),key:"time"},[u.value.file.fileOperationDateText,"：",D.uploadTime||"-"])];return g("div",{class:"".concat(d,"__dragger-progress")},[e.theme==="image"&&O(),g("div",{class:"".concat(d,"__dragger-progress-info")},[c("fileListDisplay",{params:{files:e.displayFiles}})||T,g("div",{class:"".concat(d,"__dragger-btns")},[["progress","waiting"].includes(D.status)&&!o.value&&g(Ot,{theme:"primary",variant:"text",class:"".concat(d,"__dragger-progress-cancel"),onClick:function(w){var P;return(P=e.cancelUpload)===null||P===void 0?void 0:P.call(e,{e:w,file:e.toUploadFiles[0]||e.files[0]})}},{default:function(){return[(E=u.value)===null||E===void 0?void 0:E.cancelUploadText]}}),!e.autoUpload&&D.status==="waiting"&&g(Ot,{theme:"primary",variant:"text",disabled:o.value,onClick:function(){var w;return(w=e.uploadFiles)===null||w===void 0?void 0:w.call(e)},class:"".concat(d,"__dragger-upload-btn")},{default:function(){return[u.value.triggerUploadText.normal]}})]),["fail","success"].includes(D==null?void 0:D.status)&&!o.value&&g("div",{class:"".concat(d,"__dragger-btns")},[g(Ot,{theme:"primary",variant:"text",disabled:o.value,class:"".concat(d,"__dragger-progress-cancel"),onClick:e.triggerUpload},{default:function(){return[u.value.triggerUploadText.reupload]}}),g(Ot,{theme:"danger",variant:"text",disabled:o.value,class:"".concat(d,"__dragger-delete-btn"),onClick:function(w){return e.onRemove({e:w,index:0,file:D})}},{default:function(){return[u.value.triggerUploadText.delete]}})])])])},I=function(){var E,D=g("div",null,[g("span",{class:"".concat(d,"--highlight")},[(E=u.value.triggerUploadText)===null||E===void 0?void 0:E.normal]),g("span",null,["  /  ",u.value.dragger.draggingText])]),j=g("div",null,[u.value.dragger.dragDropText]);return p.value?j:D},x=function(){var E,D=l.value[0];return D&&(["progress","success","fail","waiting"].includes(D.status)||!D.status)?$():g("div",{class:"".concat(d,"__trigger"),onClick:e.triggerUpload},[((E=a.default)===null||E===void 0?void 0:E.call(a))||I()])};return function(){var S;return g("div",{ref:h,class:m.value,onDrop:f.handleDrop,onDragenter:f.handleDragenter,onDragover:f.handleDragover,onDragleave:f.handleDragleave},[((S=e.trigger)===null||S===void 0?void 0:S.call(e,He,{files:l.value,dragActive:p.value}))||x()])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function rp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function lp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rp(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function u9(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var c9=ne({name:"UploadImageCard",props:lp(lp({},Oo),{},{multiple:Boolean,max:Number,disabled:Boolean,showUploadProgress:Boolean,triggerUpload:Function,uploadFiles:Function,cancelUpload:Function,onPreview:Function,showImageFileName:Boolean}),setup:function(e){var n=_e(e),a=n.displayFiles,r=n.classPrefix,l=n.multiple,o=n.max,i=B(function(){return e.locale}),u=at({AddIcon:Ui,BrowseIcon:ls,DeleteIcon:os,ErrorCircleFilledIcon:ma}),c=u.BrowseIcon,v=u.DeleteIcon,s=u.AddIcon,d=u.ErrorCircleFilledIcon,f=xe(),p=B(function(){var y;return l.value?!o.value||a.value.length<o.value:!((y=a.value)!==null&&y!==void 0&&y[0])}),h=function(C,O){return g("div",{class:"".concat(r.value,"-upload__card-content ").concat(r.value,"-upload__card-box")},[g(Xr,{class:"".concat(r.value,"-upload__card-image"),src:C.url||C.raw,error:""},null),g("div",{class:"".concat(r.value,"-upload__card-mask")},[g("span",{class:"".concat(r.value,"-upload__card-mask-item"),onClick:function($){return $.stopPropagation()}},[g(rv,ve({images:a.value.map(function(_){return _.url||_.raw}),defaultIndex:O,trigger:function($,I){var x=I.open;return g(c,{onClick:function(E){var D,j=E.e;(D=e.onPreview)===null||D===void 0||D.call(e,{file:C,index:O,e:j}),x()}},null)}},e.imageViewerProps),null)]),!e.disabled&&g(Ct,null,[g("span",{class:"".concat(r.value,"-upload__card-mask-item-divider")},null),g("span",{class:"".concat(r.value,"-upload__card-mask-item"),onClick:function($){return $.stopPropagation()}},[g(v,{onClick:function($){var I,x=$.e;return e==null||(I=e.onRemove)===null||I===void 0?void 0:I.call(e,{e:x,file:C,index:O})}},null)])])])])},m=function(C,O){var _;return g("div",{class:[O,"".concat(r.value,"-upload__").concat(e.theme,"-").concat(C.status)]},[g(bn,{loading:!0,size:"medium"},null),g("p",null,[(_=i.value)===null||_===void 0||(_=_.progress)===null||_===void 0?void 0:_.uploadingText,e.showUploadProgress?" ".concat(C.percent,"%"):""])])},b=function(C,O,_){var $,I;return g("div",{class:_},[g(d,null,null),g("p",null,[(($=C.response)===null||$===void 0?void 0:$.error)||((I=i.value)===null||I===void 0||(I=I.progress)===null||I===void 0?void 0:I.failText)]),g("div",{class:"".concat(r.value,"-upload__card-mask")},[g("span",{class:"".concat(r.value,"-upload__card-mask-item"),onClick:function(S){return S.stopPropagation()}},[g(v,{onClick:function(S){var E,D=S.e;return e==null||(E=e.onRemove)===null||E===void 0?void 0:E.call(e,{e:D,file:C,index:O})}},null)])])])};return function(){var y,C,O=f("fileListDisplay",{params:{triggerUpload:e.triggerUpload,uploadFiles:e.uploadFiles,cancelUpload:e.cancelUpload,onPreview:e.onPreview,onRemove:e.onRemove,toUploadFiles:e.toUploadFiles,sizeOverLimitMessage:e.sizeOverLimitMessage,locale:e.locale,files:a.value}});if(O)return O;var _="".concat(r.value,"-upload__card-item ").concat(r.value,"-is-background");return g("div",null,[g("ul",{class:"".concat(r.value,"-upload__card")},[(y=a.value)===null||y===void 0?void 0:y.map(function($,I){var x="".concat(r.value,"-upload__card-name"),S="".concat(r.value,"-upload__card-container ").concat(r.value,"-upload__card-box"),E=e.abridgeName?Wr.apply(void 0,[$.name].concat(ce(e.abridgeName))):$.name;return g("li",{class:_,key:I},[$.status==="progress"&&m($,S),$.status==="fail"&&b($,I,S),!["progress","fail"].includes($.status)&&h($,I),!!(E&&e.showImageFileName)&&($.url?g(Is,{href:$.url,class:x,target:"_blank",hover:"color",size:"small"},u9(E)?E:{default:function(){return[E]}}):g("span",{class:x},[E]))])}),p.value&&g("li",{class:_,onClick:e.triggerUpload},[g("div",{class:["".concat(r.value,"-upload__image-add"),"".concat(r.value,"-upload__card-container"),"".concat(r.value,"-upload__card-box"),N({},"".concat(r.value,"-is-disabled"),e.disabled)]},[g(s,null,null),g("p",{class:["".concat(r.value,"-size-s"),"".concat(r.value,"-upload__add-text")]},[(C=i.value)===null||C===void 0||(C=C.triggerUploadText)===null||C===void 0?void 0:C.image])])])])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function op(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ip(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?op(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):op(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function s9(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ze(t)}var v9=ne({name:"UploadMultipleFlowList",props:ip(ip({},Oo),{},{showThumbnail:Boolean,uploadFiles:Function,cancelUpload:Function,dragEvents:Object,disabled:Boolean,isBatchUpload:Boolean,draggable:Boolean,showImageFileName:Boolean,uploadButton:Object,cancelUploadButton:Object,onPreview:Function}),setup:function(e,n){var a=n.slots,r=_e(e),l=r.uploading,o=r.disabled,i=r.displayFiles,u=r.classPrefix,c=r.accept,v=B(function(){return"".concat(u.value,"-upload")}),s=B(function(){return e.locale}),d=xe(),f=at({BrowseIcon:ls,DeleteIcon:os,CheckCircleFilledIcon:$a,ErrorCircleFilledIcon:ma,TimeFilledIcon:wp}),p=f.BrowseIcon,h=f.DeleteIcon,m=f.CheckCircleFilledIcon,b=f.ErrorCircleFilledIcon,y=f.TimeFilledIcon,C=fv(e.dragEvents,c),O=G([]),_=G(0),$=B(function(){return l.value?"".concat(s.value.progress.uploadingText):s.value.triggerUploadText.normal}),I=B(function(){var R=e.draggable===void 0?!0:e.draggable;return R?{onDrop:C.handleDrop,onDragenter:C.handleDragenter,onDragover:C.handleDragover,onDragleave:C.handleDragleave}:{}}),x=function(){var k={success:g(m,null,null),fail:g(b,null,null),progress:g(bn,null,null),waiting:g(y,null,null)},M=s.value.progress,V={success:M==null?void 0:M.successText,fail:M==null?void 0:M.failText,progress:M==null?void 0:M.uploadingText,waiting:M==null?void 0:M.waitingText};return{iconMap:k,textMap:V}},S=function(){return g("div",{class:"".concat(v.value,"__flow-empty")},[C.dragActive.value?s.value.dragger.dragDropText:s.value.dragger.clickAndDragText])},E=function(k,M){var V=x(),W=V.iconMap,U=V.textMap,H=e.abridgeName&&k.name?Wr.apply(void 0,[k.name].concat(ce(e.abridgeName))):k.name;return g("li",{class:"".concat(v.value,"__card-item"),key:k.name+M+k.percent+k.status||"0"},[g("div",{class:["".concat(v.value,"__card-content"),N({},"".concat(u.value,"-is-bordered"),k.status!=="waiting")]},[["fail","progress"].includes(k.status)&&g("div",{class:"".concat(v.value,"__card-status-wrap ").concat(v.value,"__").concat(e.theme,"-").concat(k.status)},[W[k.status],g("p",null,[U[k.status],e.showUploadProgress&&k.status==="progress"?" ".concat(k.percent,"%"):""])]),(["waiting","success"].includes(k.status)||!k.status&&k.url)&&g(Xr,{class:"".concat(v.value,"__card-image"),src:k.url||k.raw,error:"",loading:""},null),g("div",{class:"".concat(v.value,"__card-mask")},[(k.url||k.raw)&&!["progress","fail"].includes(k.status)&&g("span",{class:"".concat(v.value,"__card-mask-item")},[g(p,{onClick:function(z){var K,Y=z.e;_.value=M,O.value=i.value,(K=e.onPreview)===null||K===void 0||K.call(e,{file:k,index:M,e:Y})}},null),g("span",{class:"".concat(v.value,"__card-mask-item-divider")},null)]),!o.value&&g("span",{class:"".concat(v.value,"__card-mask-item ").concat(v.value,"__delete"),onClick:function(z){return e.onRemove({e:z,index:M,file:k})}},[g(h,null,null)])])]),e.showImageFileName&&g("p",{class:["".concat(v.value,"__card-name"),"".concat(v.value,"__flow-status")]},[["success","waiting"].includes(k.status)&&W[k.status],H])])},D=function(k){var M,V,W=x(),U=W.iconMap,H=W.textMap;return g("div",{class:"".concat(v.value,"__flow-status")},[U[k.status],g("span",{class:"".concat(v.value,"__").concat(e.theme,"-").concat(k.status)},[(M=k.response)!==null&&M!==void 0&&M.error&&((V=k.response)===null||V===void 0?void 0:V.error)||H[k.status],e.showUploadProgress&&k.status==="progress"?" ".concat(k.percent||0,"%"):""])])},j=function(k,M){var V;return g("td",null,[g(Ot,{theme:"primary",variant:"text",content:(V=s.value)===null||V===void 0||(V=V.triggerUploadText)===null||V===void 0?void 0:V.delete,class:"".concat(v.value,"__delete"),onClick:function(U){return e.onRemove({e:U,index:M,file:k})}},null)])},T=function(k){var M;return k===0?g("td",{rowSpan:i.value.length,class:"".concat(v.value,"__flow-table__batch-row")},[g(Ot,{theme:"primary",variant:"text",content:(M=s.value)===null||M===void 0||(M=M.triggerUploadText)===null||M===void 0?void 0:M.delete,class:"".concat(v.value,"__delete"),onClick:function(W){return e.onRemove({e:W,index:-1,file:void 0})}},null)]):null},F=function(k){return GA.test(k)?g(JC,null,null):qA.test(k)?g(ZC,null,null):XA.test(k)?g(QC,null,null):JA.test(k)?g(ew,null,null):ty.test(k)?g(tw,null,null):g(nw,null,null)},w=function(k){if(!k||!k.raw&&k.url)return null;var M=k.raw.type,V="".concat(v.value,"__file-thumbnail");return UA.test(M)?g(Xr,{class:V,src:k.url||k.raw,fit:"scale-down",error:"",loading:"",onClick:function(U){var H;U.preventDefault(),O.value=[k],_.value=0,(H=e.onPreview)===null||H===void 0||H.call(e,{file:k,index:0,e:U})}},null):g("div",{class:V},[F(M)])},P=function(){var k,M,V,W,U=d("fileListDisplay",{params:{cancelUpload:e.cancelUpload,uploadFiles:e.uploadFiles,onPreview:e.onPreview,onRemove:e.onRemove,toUploadFiles:e.toUploadFiles,sizeOverLimitMessage:e.sizeOverLimitMessage,locale:e.locale,files:e.displayFiles,dragEvents:I.value}});return U||e.fileListDisplay?U:g("table",ve({class:"".concat(v.value,"__flow-table")},I.value),[g("thead",null,[g("tr",null,[g("th",null,[(k=s.value.file)===null||k===void 0?void 0:k.fileNameText]),g("th",{style:{minWidth:"120px"}},[(M=s.value.file)===null||M===void 0?void 0:M.fileSizeText]),g("th",{style:{minWidth:"120px"}},[(V=s.value.file)===null||V===void 0?void 0:V.fileStatusText]),o.value?null:g("th",null,[(W=s.value.file)===null||W===void 0?void 0:W.fileOperationText])])]),g("tbody",null,[!i.value.length&&g("tr",null,[g("td",{colSpan:4},[S()])]),i.value.map(function(H,L){var z,K=e.isBatchUpload,Y=K&&i.value.every(function(Z){return Z.status==="success"||!Z.status})?T(L):j(H,L),q=(z=e.abridgeName)!==null&&z!==void 0&&z.length?Wr.apply(void 0,[H.name].concat(ce(e.abridgeName))):H.name,X=e.showThumbnail?g("div",{class:"".concat(v.value,"__file-info")},[w(H),q]):q,J=H.url?g(Is,{href:H.url,target:"_blank",hover:"color"},s9(X)?X:{default:function(){return[X]}}):X;return g("tr",{key:H.name+L+H.size},[g("td",{class:"".concat(v.value,"__file-name"),key:H.name+H.url},[J]),g("td",null,[QA(H.size)]),g("td",null,[D(H)]),o.value?null:Y])})])])},A=function(){var k=d("fileListDisplay",{params:{cancelUpload:e.cancelUpload,uploadFiles:e.uploadFiles,onRemove:e.onRemove,onPreview:e.onPreview,toUploadFiles:e.toUploadFiles,sizeOverLimitMessage:e.sizeOverLimitMessage,locale:e.locale,files:e.displayFiles,dragEvents:I.value}});return k||e.fileListDisplay?k:g("ul",{class:"".concat(v.value,"__card clearfix")},[e.displayFiles.map(function(M,V){return E(M,V)})])};return function(){var R,k,M,V="".concat(v.value,"__flow-card-area"),W=o.value||!l.value,U=a.uploadButton||pe(e.uploadButton),H=!!(o.value||l.value||!i.value.length),L=a.cancelUploadButton||pe(e.cancelUploadButton);return g("div",{class:"".concat(v.value,"__flow ").concat(v.value,"__flow-").concat(e.theme)},[g("div",{class:"".concat(v.value,"__flow-op")},[(R=a.default)===null||R===void 0?void 0:R.call(a),e.placeholder&&g("small",{class:"".concat(v.value,"__flow-placeholder ").concat(v.value,"__placeholder")},[e.placeholder])]),e.theme==="image-flow"&&g("div",ve({class:V},I.value),[i.value.length?A():S()]),e.theme==="file-flow"&&(i.value.length?P():g("div",ve({class:V},I.value),[S()])),!e.autoUpload&&(e.uploadButton!==null||e.cancelUploadButton!==null)&&g("div",{class:"".concat(v.value,"__flow-bottom")},[e.cancelUploadButton!==null&&(U?d("cancelUploadButton",{params:{disabled:W,cancelUploadText:(k=s.value)===null||k===void 0?void 0:k.cancelUploadText,cancelUpload:e.cancelUpload}}):g(Ot,ve({theme:"default",disabled:W,content:(M=s.value)===null||M===void 0?void 0:M.cancelUploadText,class:"".concat(v.value,"__cancel"),onClick:function(K){var Y;return(Y=e.cancelUpload)===null||Y===void 0?void 0:Y.call(e,{e:K})}},Ve(e.cancelUploadButton)?e.cancelUploadButton:{}),null)),e.uploadButton!==null&&(L?d("uploadButton",{params:{disabled:H,uploading:l.value,uploadText:$.value,uploadFiles:e.uploadFiles}}):g(Ot,ve({disabled:H,theme:"primary",loading:l.value,class:"".concat(v.value,"__continue"),content:$.value,onClick:function(){var K;return(K=e.uploadFiles)===null||K===void 0?void 0:K.call(e)}},Ve(e.uploadButton)?e.uploadButton:{}),null))]),g(rv,ve({images:O.value.map(function(z){return z.url||z.raw}),visible:!!O.value.length,onClose:function(){O.value=[]},index:_.value,onIndexChange:function(K){return _.value=K}},e.imageViewerProps),null)])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function up(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ti(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?up(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):up(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function d9(t){var e,n=t.method,a=n===void 0?"POST":n,r=t.action,l=t.withCredentials,o=l===void 0?!1:l,i=t.headers,u=i===void 0?{}:i,c=t.data,v=c===void 0?{}:c,s=t.file,d=t.files,f=d===void 0?[]:d,p=t.name,h=p===void 0?"file":p,m=t.useMockProgress,b=m===void 0?!0:m,y=t.mockProgressDuration,C=y===void 0?300:y,O=t.formatRequest,_=t.onError,$=t.onProgress,I=t.onSuccess,x=f||[],S=0,E=new XMLHttpRequest;o&&(E.withCredentials=!0);var D,j;if(b&&((e=f[0])===null||e===void 0?void 0:e.status)==="progress")var T=setTimeout(function(){D=setInterval(function(){S+10<100?(S=Math.max(S+10,S),f[0]&&S!==f[0].percent&&(f[0].percent=S,$({percent:S,file:s||x[0],files:x.map(function(A){return ti(ti({},A),{},{percent:S})}),type:"mock",XMLHttpRequest:E}))):clearInterval(D)},C),clearTimeout(T)},C);var F={};if(v){var w=pe(v)?v(x):v;Object.assign(F,w)}x.forEach(function(A,R){var k=x.length>1?"".concat(h,"[").concat(R,"]"):h;F[k]=A.raw}),x.length===1?F[h]=x[0].raw:F[h]=x.map(function(A){return A.raw}),F.length=x.length,O&&(F=O(F));var P=new FormData;return Object.keys(F).forEach(function(A){P.append(A,F[A])}),E.open(a,r,!0),Object.keys(u).forEach(function(A){E.setRequestHeader(A,u[A])}),E.onerror=function(A){_({event:A,file:s,files:x,XMLHttpRequest:E}),clearInterval(D),clearTimeout(j)},E.ontimeout=function(A){_({event:A,file:s,files:x,XMLHttpRequest:E})},E.upload&&(E.upload.onprogress=function(A){var R,k=0;if(A.total>0&&(k=Math.round(A.loaded/A.total*100)),S=Math.max(k,S),S!==k&&((R=x[0])===null||R===void 0?void 0:R.percent)!==S){var M=x.map(function(V){return ti(ti({},V),{},{percent:S})});$({event:A,percent:S,file:s||M[0],files:M,type:"real",XMLHttpRequest:E})}}),E.onload=function(A){var R={};R.XMLHttpRequest=E;var k=E.status<200||E.status>=300;if(k)return _({event:A,file:s,files:x,response:R,XMLHttpRequest:E});var M=E.responseText||E.response;try{R=JSON.parse(M)}catch{R=M,We.error("Upload","response does not a valid json")}clearInterval(D),clearTimeout(j),x.forEach(function(V){var W;V.percent=100,V.status="success",V.uploadTime=((W=R)===null||W===void 0?void 0:W.uploadTime)||ny()}),qe(R)==="object"&&(R.XMLHttpRequest=E),I({event:A,file:s||x[0],files:ce(x),XMLHttpRequest:E,response:R})},E.send(P),E.upload.requestParams=F,E.upload.requestHeaders=u,E}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function cp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Ut(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cp(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cp(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function f9(t,e){var n=e.sizeLimit,a=e.beforeUpload,r=new Promise(function(u){var c=null;if(n){var v=ct(n)?{size:n,unit:"KB"}:n,s=tR(t.size,v.size,v.unit);s&&(c=v)}u(c)}),l=[r,void 0];if(pe(a)){var o=a(t),i=o instanceof Promise?o:new Promise(function(u){return u(o)});l[1]=i}return new Promise(function(u){Promise.all(l).then(function(c){u(c)})})}function sp(t){var e=t.event,n=t.files,a=t.response,r=t.XMLHttpRequest,l=t.formatResponse,o=a;return pe(l)&&(o=l(a,{file:n[0],currentFiles:n})),n.forEach(function(i){i.status="fail",i.response=o}),{response:o,event:e,files:n,XMLHttpRequest:r}}function g9(t){var e=t.event,n=t.files,a=t.response,r=t.XMLHttpRequest;(n==null?void 0:n.length)<=0&&We.error("Upload","Empty File in Success Callback"),n.forEach(function(o){var i;o.percent=100,o.status="success",(i=o.response)===null||i===void 0||delete i.error});var l=a;return n[0].url=l.url||n[0].url,{response:l,event:e,files:n,XMLHttpRequest:r}}function h9(t){return t?t.status?["success","fail"].includes(t.status)?(t.status==="success"&&(!t.response||!t.response.url&&!t.response.files)&&We.warn("Upload","`requestMethodResponse.response.url` or `requestMethodResponse.response.files` is required if `status` is `success`"),!0):(We.error("Upload","`requestMethodResponse.status` must be `success` or `fail`, examples `{ status: 'success', response: { url: '' } }`"),!1):(We.error("Upload","`requestMethodResponse.status` is missing, which value only can be `success` or `fail`"),!1):(We.error("Upload","`requestMethodResponse` is required."),!1)}function vp(t){var e=t.action,n=t.toUploadFiles,a=t.requestMethod;return new Promise(function(r){if(!e&&!a){We.error("Upload","one of action and requestMethod must be exist."),r({});return}if(!n||!n.length){We.warn("Upload","No files need to be uploaded"),r({});return}if(n.forEach(function(i){i.status="progress"}),a)a(t.multiple?n:n[0]).then(function(i){if(!h9(i)){r({});return}var u=i.response||{};pe(t.formatResponse)&&(u=t.formatResponse(u,{file:n[0],currentFiles:n})),i.status==="fail"&&(u.error=i.error||u.error);var c=[];i.status==="success"&&u.files?c=u.files.map(function(f){var p=n.find(function(h){return f.name&&h.name===f.name||f.raw&&h.raw===f.raw});return Ut(Ut(Ut({},p),f),{},{status:i.status,response:u})}):(n.forEach(function(f){var p;f.status=i.status,f.response=u,f.url=u.url,f.percent=i.status==="success"?100:0,f.uploadTime=((p=u)===null||p===void 0?void 0:p.uploadTime)||ny()}),c=n);var v={response:u,file:c[0],files:c};if(i.status==="success"){var s;(s=t.onResponseSuccess)===null||s===void 0||s.call(t,v)}else if(i.status==="fail"){var d;(d=t.onResponseError)===null||d===void 0||d.call(t,v)}r({status:i.status,data:v})});else{var l,o=d9({action:t.action,files:t.toUploadFiles,useMockProgress:t.useMockProgress,mockProgressDuration:t.mockProgressDuration,onError:function(u){var c,v=sp(Ut(Ut({},u),{},{formatResponse:t.formatResponse}));(c=t.onResponseError)===null||c===void 0||c.call(t,v),r({status:"fail",data:v})},onProgress:t.onResponseProgress,onSuccess:function(u){var c=t.formatResponse,v=u.response;if(pe(c)&&(v=c(u.response,{file:u.file,currentFiles:u.files})),v.error){var s,d=sp(Ut(Ut({},u),{},{response:v}));(s=t.onResponseError)===null||s===void 0||s.call(t,d),r({status:"fail",data:d})}else{var f;u.file.response=v,u.files[0].response=v;var p=g9(Ut(Ut({},u),{},{response:v}));(f=t.onResponseSuccess)===null||f===void 0||f.call(t,p),r({status:"success",data:p})}},formatRequest:t.formatRequest,data:t.data,name:t.name,headers:t.headers,withCredentials:t.withCredentials,method:t.method});(l=t.setXhrObject)===null||l===void 0||l.call(t,{files:t.toUploadFiles,xhrReq:o})}})}function m9(t,e){for(var n=t.filter(function(i){return i.url}),a=n,r=function(){var u=e[l],c=t.findIndex(function(s){return s.raw&&s.raw===u.raw||s.name&&s.name===u.name}),v=c>=0?Ut(Ut({},t[c]),u):u;a.push(v)},l=0,o=e.length;l<o;l++)r();return a}function p9(t){var e=t.uploadAllFilesInOneRequest,n=t.toUploadFiles,a=t.uploadedFiles,r=t.isBatchUpload,l=n.filter(function(o){return!o.response||o.response&&!o.response.error});return new Promise(function(o){if(e||!t.multiple){vp(t).then(function(u){u.status==="success"&&(u.data.files=r||!t.multiple?u.data.files:m9(a,u.data.files));var c=u.status==="fail"?u.data.files:[];o(Ut(Ut({},u),{},{failedFiles:c}))});return}var i=l.map(function(u){return vp(Ut(Ut({},t),{},{toUploadFiles:[u]}))});Promise.all(i).then(function(u){var c=[],v=[];u.forEach(function(f){f.status==="success"?c.push(f.data.files[0]):f.status==="fail"&&v.push(f.data.files[0])});var s=t.autoUpload?a.concat(c):a,d=r||!t.multiple?c:s;o({status:c.length?"success":"fail",data:{files:d},failedFiles:v,list:u})})})}function rs(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return t.map(function(r){var l=r;pe(e)&&(l=e(r));var o=Ut({raw:r,lastModified:r.lastModified,name:r.name,size:r.size,type:r.type,percent:a,status:n},l);return o})}function b9(t){var e=t.files,n=t.uploadValue,a=t.max,r=t.allowUploadDuplicateFile;return new Promise(function(l){var o=e.filter(function(m){var b=n.find(function(y){return y.name===m.name});return r||!b}),i=!1;if(o.length<e.length&&(i=!0),!o.length){var u=rs(e,t.format,t.autoUpload?"progress":"waiting");l({hasSameNameFile:i,file:u==null?void 0:u[0],files:u,validateResult:{type:"FILTER_FILE_SAME_NAME"}});return}var c=!1;if(a&&o.length&&!t.isBatchUpload){var v=o.length;o=o.slice(0,a-n.length),v+n.length>a&&(c=!0)}var s=rs(o,t.format,t.autoUpload?"progress":"waiting"),d;if(t.beforeAllFilesUpload){var f,p=(f=t.beforeAllFilesUpload)===null||f===void 0?void 0:f.call(t,s);d=p instanceof Promise?p:new Promise(function(m){return m(p)})}var h=s.map(function(m){return new Promise(function(b){f9(m,{beforeUpload:t.beforeUpload,sizeLimit:t.sizeLimit}).then(function(y){var C=be(y,2),O=C[0],_=C[1];O?b({file:m,validateResult:{type:"FILE_OVER_SIZE_LIMIT",extra:O}}):_===!1&&b({file:m,validateResult:{type:"CUSTOM_BEFORE_UPLOAD"}}),b({file:m})})})});Promise.all([d].concat(h)).then(function(m){var b=CC(m),y=b[0],C=b.slice(1);l(y===!1?{lengthOverLimit:c,hasSameNameFile:i,validateResult:{type:"BEFORE_ALL_FILES_UPLOAD"},files:s}:{lengthOverLimit:c,hasSameNameFile:i,fileValidateList:C,files:s})})})}function y9(t,e){var n=[],a=[],r=[];return t.forEach(function(l){var o,i;if(((o=l.validateResult)===null||o===void 0?void 0:o.type)==="CUSTOM_BEFORE_UPLOAD"){a.push(l.file);return}if(((i=l.validateResult)===null||i===void 0?void 0:i.type)==="FILE_OVER_SIZE_LIMIT"){l.file.response||(l.file.response={}),l.file.response.error=l.file.response.error||e(l.validateResult.extra),n.push(l);return}r.push(l.file)}),{sizeLimitErrors:n,beforeUploadErrorFiles:a,toFiles:r}}function C9(t){return t.isBatchUpload&&t.status||t.status==="fail"?"reupload":t.status==="progress"?"uploading":t.status==="success"||!t.autoUpload&&t.status==="waiting"?t.multiple?"continueUpload":"reupload":"fileInput"}function w9(t){var e=t.multiple,n=t.uploadValue,a=t.toUploadFiles,r=t.autoUpload,l=r?a:a.filter(function(o){return o.status!=="success"});return e&&!t.isBatchUpload?r?(l.length?n.concat(l):n)||[]:n:(l.length?l:n)||[]}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function dp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function ni(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dp(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function O9(t){var e=G(),n=_e(t),a=n.disabled,r=n.autoUpload,l=n.isBatchUpload,o=n.multiple,i=n.files,u=n.modelValue,c=n.defaultFiles,v=Ke("upload"),s=v.globalConfig,d=v.t,f=v.classPrefix,p=ht(i,u,c.value,t.onChange,"files"),h=be(p,2),m=h[0],b=h[1],y=G([]),C=G([]),O=G(""),_=B(function(){return _s({},s.value,t.locale)}),$="".concat(f.value,"-upload__tips ").concat(f.value,"-size-s"),I=[$].concat("".concat(f.value,"-upload__tips-error")),x="".concat(f.value,"-upload__placeholder"),S=B(function(){var K,Y=C9({isBatchUpload:l.value,multiple:o.value,status:(K=m.value)===null||K===void 0||(K=K[0])===null||K===void 0?void 0:K.status,autoUpload:r.value});return _.value.triggerUploadText[Y]}),E=G(!1),D=B(function(){return w9({multiple:t.multiple,toUploadFiles:C.value,uploadValue:m.value,autoUpload:r.value,isBatchUpload:l.value})}),j=function(Y){var q=Y.file,X=Y.percent,J=r.value?C:m,Z=J.value.findIndex(function(oe){return q.raw===oe.raw});J.value[Z]=ni(ni({},J.value[Z]),{},{percent:X})},T=function(){t.autoUpload&&(C.value=ce(C.value))},F=function(Y){var q;if(!(!Y||!Y.files||!Y.files[0])){var X=Y.response,J=Y.event,Z=Y.files;T(),(q=t.onOneFileFail)===null||q===void 0||q.call(t,{e:J,file:Z==null?void 0:Z[0],currentFiles:Z,failedFiles:Z,response:X}),(!t.multiple||t.isBatchUpload)&&b([],{trigger:"progress-fail",e:Y.event,file:Y.files[0]})}},w=function(Y){var q;T(),(q=t.onProgress)===null||q===void 0||q.call(t,{e:Y.event,file:Y.file,currentFiles:Y.files,percent:Y.percent,type:Y.type,XMLHttpRequest:Y.XMLHttpRequest})},P=function(Y){if(t.multiple&&!t.uploadAllFilesInOneRequest){var q;T(),(q=t.onOneFileSuccess)===null||q===void 0||q.call(t,{e:Y.event,file:Y.files[0],response:Y.response})}};function A(K){var Y=K;return Y.message?d(Y.message,{sizeLimit:Y.size}):"".concat(d(_.value.sizeLimitMessage,{sizeLimit:Y.size})," ").concat(Y.unit)}var R=function(Y){var q=t.multiple&&!l.value?m.value.concat(Y):Y;q.length&&(b(q,{trigger:"add",index:m.value.length,file:Y[0],files:Y}),C.value=[])},k=function(Y){var q;if(!a.value){var X={currentSelectedFiles:rs(ce(Y),t.format)};(q=t.onSelectChange)===null||q===void 0||q.call(t,ce(Y),X),b9({uploadValue:m.value,files:ce(Y),allowUploadDuplicateFile:t.allowUploadDuplicateFile,max:t.multiple?t.max:0,sizeLimit:t.sizeLimit,isBatchUpload:l.value,autoUpload:r.value,format:t.format,beforeUpload:t.beforeUpload,beforeAllFilesUpload:t.beforeAllFilesUpload}).then(function(J){var Z;if(((Z=J.validateResult)===null||Z===void 0?void 0:Z.type)==="BEFORE_ALL_FILES_UPLOAD"){var oe,se={type:"BEFORE_ALL_FILES_UPLOAD",files:J.files};(oe=t.onValidate)===null||oe===void 0||oe.call(t,se);return}if(J.lengthOverLimit){var me,Te={type:"FILES_OVER_LENGTH_LIMIT",files:J.files};if((me=t.onValidate)===null||me===void 0||me.call(t,Te),!J.files.length)return}if(J.hasSameNameFile){var Ie,re={type:"FILTER_FILE_SAME_NAME",files:J.files};(Ie=t.onValidate)===null||Ie===void 0||Ie.call(t,re)}if(J.fileValidateList instanceof Array){var ue,ie=y9(J.fileValidateList,A),Ce=ie.sizeLimitErrors,Oe=ie.beforeUploadErrorFiles,De=ie.toFiles,Re=r.value?De:C.value.concat(De);if(C.value=Re,(ue=t.onWaitingUploadFilesChange)===null||ue===void 0||ue.call(t,{files:Re,trigger:"validate"}),Ce[0]){var Ee;O.value=Ce[0].file.response.error,(Ee=t.onValidate)===null||Ee===void 0||Ee.call(t,{type:"FILE_OVER_SIZE_LIMIT",files:Ce.map(function(te){return te.file})})}else if(O.value="",Oe.length){var ge,Q={type:"CUSTOM_BEFORE_UPLOAD",files:Oe};(ge=t.onValidate)===null||ge===void 0||ge.call(t,Q)}r.value?U(Re):R(Re)}}),e.value.value=null}},M=function(Y){var q=ay(Y.target.files);k==null||k(q)};function V(K){k==null||k(K)}function W(K){k==null||k(ce(K.clipboardData.files))}function U(K){var Y=m.value.filter(function(X){return X.status!=="success"}),q=r.value?K||C.value:Y;!q||!q.length||(E.value=!0,y.value=[],p9({action:t.action,headers:t.headers,method:t.method,name:t.name,withCredentials:t.withCredentials,uploadedFiles:m.value,toUploadFiles:q,multiple:t.multiple,isBatchUpload:l.value,autoUpload:t.autoUpload,uploadAllFilesInOneRequest:t.uploadAllFilesInOneRequest,useMockProgress:t.useMockProgress,data:t.data,mockProgressDuration:t.mockProgressDuration,requestMethod:t.requestMethod,formatRequest:t.formatRequest,formatResponse:t.formatResponse,onResponseProgress:w,onResponseSuccess:P,onResponseError:F,setXhrObject:function(J){var Z;(Z=J.files[0])!==null&&Z!==void 0&&Z.raw&&y.value.find(function(oe){var se;return((se=oe.files[0])===null||se===void 0?void 0:se.raw)===J.files[0].raw})||(y.value=y.value.concat(J))}}).then(function(X){var J=X.status,Z=X.data,oe=X.list,se=X.failedFiles;if(E.value=!1,J==="success"){var me;b(ce(Z.files),{trigger:"add",file:Z.files[0]}),y.value=[],(me=t.onSuccess)===null||me===void 0||me.call(t,{fileList:Z.files,currentFiles:q,file:q[0],results:oe==null?void 0:oe.map(function(re){return re.data}),response:Z.response||oe.map(function(re){return re.data.response}),XMLHttpRequest:Z.XMLHttpRequest})}else if(se!=null&&se[0]){var Te;(Te=t.onFail)===null||Te===void 0||Te.call(t,{e:Z.event,file:se[0],failedFiles:se,currentFiles:q,response:Z.response,XMLHttpRequest:Z.XMLHttpRequest})}if(r.value){var Ie;C.value=se,(Ie=t.onWaitingUploadFilesChange)===null||Ie===void 0||Ie.call(t,{files:se,trigger:"uploaded"})}}))}function H(K){var Y,q,X;O.value="",(Y=(q=K.e).stopPropagation)===null||Y===void 0||Y.call(q);var J={e:K.e,trigger:"remove",index:K.index,file:K.file};if(t.isBatchUpload||!t.multiple){var Z;C.value=[],(Z=t.onWaitingUploadFilesChange)===null||Z===void 0||Z.call(t,{files:[],trigger:"remove"}),b([],J)}else if(!t.autoUpload)m.value.splice(K.index,1),b(ce(m.value),J);else if(K.index<m.value.length)m.value.splice(K.index,1),b(ce(m.value),J);else{var oe;C.value.splice(K.index-m.value.length,1),C.value=ce(C.value),(oe=t.onWaitingUploadFilesChange)===null||oe===void 0||oe.call(t,{files:ce(C.value),trigger:"remove"})}(X=t.onRemove)===null||X===void 0||X.call(t,K)}var L=function(Y){var q;a.value||!e.value||(Y==null||(q=Y.stopPropagation)===null||q===void 0||q.call(Y),e.value.click())},z=function(Y){var q,X;(q=y.value)===null||q===void 0||q.forEach(function(J){var Z;(Z=J.xhrReq)===null||Z===void 0||Z.abort()}),E.value=!1,r.value?C.value=[]:b(m.value.map(function(J){return J.status!=="success"?ni(ni({},J),{},{status:"waiting"}):J}),{trigger:"abort"}),Y!=null&&Y.file&&!r.value&&(H==null||H({file:Y.file,e:Y.e,index:0})),(X=t.onCancelUpload)===null||X===void 0||X.call(t)};return{t:d,locale:_,classPrefix:f,triggerUploadText:S,toUploadFiles:C,uploadValue:m,displayFiles:D,sizeOverLimitMessage:O,uploading:E,tipsClasses:$,errorClasses:I,placeholderClass:x,inputRef:e,disabled:a,xhrReq:y,uploadFilePercent:j,uploadFiles:U,onFileChange:k,onNormalFileChange:M,onDragFileChange:V,onPasteFileChange:W,onInnerRemove:H,triggerUpload:L,cancelUpload:z}}/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function fp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function gp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fp(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fp(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var _9=ne({name:"UploadCustomFile",props:gp(gp({},Oo),{},{dragEvents:Object,draggable:Boolean,dragContent:Function,trigger:Function,triggerUpload:Function,childrenNode:[String,Function]}),setup:function(e,n){var a=n.slots,r=_e(e),l=r.classPrefix,o=r.displayFiles,i=r.accept,u=fv(e.dragEvents,i),c=u.dragActive,v=_t(),s=function(){var f,p={dragActive:c.value||!1,files:o.value};return g("div",{class:"".concat(l.value,"-upload__dragger ").concat(l.value,"-upload__dragger-center"),onDrop:u.handleDrop,onDragenter:u.handleDragenter,onDragover:u.handleDragover,onDragleave:u.handleDragleave,onClick:e.triggerUpload},[g("div",{class:"".concat(l.value,"-upload__trigger")},[v("dragContent","trigger",{params:p})||((f=e.childrenNode)===null||f===void 0?void 0:f.call(e,p))])])};return function(){var d,f;return g(Ct,null,[e.draggable?s():g("div",{class:"".concat(l.value,"-upload__trigger"),onClick:e.triggerUpload},[((d=e.childrenNode)===null||d===void 0?void 0:d.call(e,{files:o.value}))||((f=a.default)===null||f===void 0?void 0:f.call(a))])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */function hp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function S9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hp(Object(n),!0).forEach(function(a){N(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var x9=ne({name:"TUpload",props:a9,setup:function(e,n){var a=n.slots,r=n.expose,l=_t(),o=xe(),i=O9(e),u=i.locale,c=i.classPrefix,v=i.triggerUploadText,s=i.toUploadFiles,d=i.displayFiles,f=i.uploadValue,p=i.sizeOverLimitMessage,h=i.uploading,m=i.tipsClasses,b=i.errorClasses,y=i.placeholderClass,C=i.inputRef,O=i.onInnerRemove,_=i.uploadFiles,$=i.onNormalFileChange,I=i.onDragFileChange,x=i.onPasteFileChange,S=i.triggerUpload,E=i.cancelUpload,D=i.uploadFilePercent,j=Jt();r({upload:C.value,uploading:h,triggerUpload:S,uploadFiles:_,cancelUpload:E,uploadFilePercent:D});var T=function(){var U=function(){return e.theme==="file-input"?g(Ot,ve({disabled:j.value,variant:"outline"},e.triggerButtonProps),{default:function(){return[v.value]}}):g(Ot,ve({disabled:j.value,variant:"outline",icon:function(){return g(aw,null,null)}},e.triggerButtonProps),{default:function(){return[v.value]}})};return l("default","trigger",{params:{dragActive:!1,files:f.value}})||U()},F=B(function(){return{accept:e.accept,files:f.value,toUploadFiles:s.value,displayFiles:d.value,theme:e.theme,placeholder:e.placeholder,disabled:j.value,tips:e.tips,status:e.status,sizeOverLimitMessage:p.value,uploading:h.value,classPrefix:c.value,tipsClasses:m,errorClasses:b,placeholderClass:y,locale:u.value,autoUpload:e.autoUpload,abridgeName:e.abridgeName,showUploadProgress:e.showUploadProgress,fileListDisplay:e.fileListDisplay,onRemove:O,uploadPastedFiles:e.uploadPastedFiles,onPasteFileChange:x,imageViewerProps:e.imageViewerProps}}),w={onDragFileChange:I,onDragenter:e.onDragenter,onDragleave:e.onDragleave,onDrop:e.onDrop},P=B(function(){return["".concat(c.value,"-upload"),N({},"".concat(c.value,"-upload--theme-").concat(e.theme),e.theme==="file-input")]}),A=function(){return g(o9,ve(F.value,{multiple:e.multiple}),{default:function(){return[g("div",{class:"".concat(c.value,"-upload__trigger"),onClick:S},[T()])]},fileListDisplay:a.fileListDisplay,"file-list-display":a["file-list-display"]})},R=function(){return g(i9,ve(F.value,{dragEvents:w,trigger:e.trigger,cancelUpload:E,triggerUpload:S,uploadFiles:_,onCancelUpload:e.onCancelUpload}),{fileListDisplay:a.fileListDisplay,"file-list-display":a["file-list-display"]})},k=function(){return g(c9,ve(F.value,{multiple:e.multiple,max:e.max,showUploadProgress:e.showUploadProgress,triggerUpload:S,uploadFiles:_,cancelUpload:E,onPreview:e.onPreview,showImageFileName:e.showImageFileName}),{fileListDisplay:a.fileListDisplay,"file-list-display":a["file-list-display"]})},M=function(){return g(v9,ve(F.value,{isBatchUpload:e.isBatchUpload,draggable:e.draggable,dragEvents:w,uploadFiles:_,cancelUpload:E,onPreview:e.onPreview,showImageFileName:e.showImageFileName,showThumbnail:e.showThumbnail,uploadButton:e.uploadButton,cancelUploadButton:e.cancelUploadButton}),{default:function(){return[g("div",{class:"".concat(c.value,"-upload__trigger"),onClick:S},[!e.draggable&&T()])]},fileListDisplay:a.fileListDisplay,"file-list-display":a["file-list-display"],uploadButton:a.uploadButton,"upload-button":a["upload-button"],cancelUploadButton:a.cancelUploadButton,"cancel-upload-button":a["cancel-upload-button"]})},V=function(){return g(_9,ve(F.value,{draggable:e.draggable,dragContent:e.dragContent,dragEvents:w,triggerUpload:S,trigger:e.trigger,childrenNode:a.default}),{default:function(){return[T()]},dragContent:a.dragContent,"drag-content":a["drag-content"],trigger:a.trigger})};return function(){return g("div",{class:P.value,onPaste:e.uploadPastedFiles?x:void 0},[g("input",ve({ref:C,type:"file",disabled:j.value,onChange:$,multiple:e.multiple,accept:e.accept,hidden:!0},e.inputAttributes?S9({},e.inputAttributes):{}),null),["file","file-input"].includes(e.theme)&&!e.draggable&&A(),["file","image"].includes(e.theme)&&e.draggable&&R(),e.theme==="image"&&!e.draggable&&k(),["image-flow","file-flow"].includes(e.theme)&&M(),e.theme==="custom"&&V(),!!(e.tips||a.tips)&&g("small",{class:[m,N({},"".concat(c.value,"-upload__tips-").concat(e.status),e.status)]},[o("tips")]),p.value&&g("small",{class:b},[p.value])])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var C7=ye(x9);/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var P9={globalConfig:Object},E9=ne({name:"TConfigProvider",props:P9,setup:function(e){_I(e);var n=xe();return function(){return g(Ct,null,[n("default")])}}});/**
 * tdesign v1.8.0
 * (c) 2024 tdesign
 * @license MIT
 */var w7=ye(E9);export{h7 as $,p7 as A,Ot as B,w7 as C,J9 as D,oN as E,e7 as F,lN as G,s7 as H,ja as I,T3 as J,Di as K,Is as L,Kb as M,bn as N,aV as O,y7 as P,q9 as Q,E0 as R,Od as S,kf as T,C7 as U,PC as V,t7 as W,cW as X,oV as Y,er as Z,m7 as _,f7 as a,bV as a0,X9 as a1,U9 as a2,M9 as a3,R9 as a4,k9 as a5,K9 as a6,z9 as a7,H9 as a8,G9 as a9,Y9 as aa,l7 as ab,Ma as ac,V9 as ad,B9 as ae,v7 as af,d7 as ag,W9 as ah,a7 as ai,F9 as aj,A9 as ak,rv as al,o7 as b,Kt as c,Ii as d,Q9 as e,s3 as f,n7 as g,Ws as h,Ny as i,g7 as j,Z9 as k,I9 as l,av as m,L9 as n,N9 as o,bd as p,b7 as q,Xr as r,r7 as s,c7 as t,u7 as u,$9 as v,j9 as w,i7 as x,sW as y,$D as z};
