k5web/assets/dep-6deb4e3a.3036419e.js

329 lines
168 KiB
JavaScript
Raw Normal View History

2024-06-05 14:58:05 +00:00
import{c as W,_ as ce,f as nt,A as Ja,v as Za,u as ve,b as dt,p as va,B as Qa,o as gn,C as Hn,y as el,i as zt,j as tl,d as nl,D as rl,q as al,s as ll,L as fa,h as Dt,k as il,E as ol,F as ul,G as cl,H as sl}from"./index.18a0f852.js";import{d as oe,c as I,g as It,aK as st,bM as da,f as K,r as _n,w as fe,o as qe,t as Ce,n as yt,bN as pa,aI as j,bD as vl,aU as kt,bC as fl,i as Ot,p as Jt,bs as In,bn as dl,bo as pl,bB as _e,bx as hl,h as ut,b as rn,a as gl}from"./arco.f43727df.js";import{J as De,w as kn,y as Ee,aa as ha,at as bl,z as jt,x as ml,M as Te,K as Ue,A as $e,G as Nt,B as Se,an as yl,W as ga,ak as Ol,ap as Cl,ad as Gt,H as ba,al as Sl,ai as jn}from"./index.6225dd09.js";import{u as Fe,r as Le,_ as ze,o as ma,a as Ht,f as wl,h as Pl}from"./dialog.12911935.js";import{f as Nn,c as Je,l as En,b as An,d as Et,I as $n,g as xl,e as an,C as _l}from"./form-model.f8600b39.js";import{B as Tt,a as ya,u as Il}from"./index.44719911.js";function Wn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Kn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wn(Object(n),!0).forEach(function(r){ze(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var kl={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13 4v7h7v2h-7v7h-2v-7H4v-2h7V4h2z"}}]},jl=oe({name:"AddIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=I(()=>t.size),{className:a,style:l}=Fe(r),o=I(()=>["t-icon","t-icon-add",a.value]),i=I(()=>Kn(Kn({},l.value),n.style)),u=I(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Le(kl,u.value)}});const Nl=jl;function Un(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Gn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Un(Object(n),!0).forEach(function(r){ze(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var El={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.5 8.09l-5.5 5.5-5.5-5.5L5.09 9.5 12 16.41l6.91-6.91-1.41-1.41z"}}]},Al=oe({name:"ChevronDownIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=I(()=>t.size),{className:a,style:l}=Fe(r),o=I(()=>["t-icon","t-icon-chevron-down",a.value]),i=I(()=>Gn(Gn({},l.value),n.style)),u=I(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Le(El,u.value)}});const Oa=Al;function Xn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Yn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xn(Object(n),!0).forEach(function(r){ze(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var $l={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M18.41 7.5l-4.5 4.5 4.5 4.5L17 17.91 11.09 12 17 6.09l1.41 1.41zm-6.5 0L7.41 12l4.5 4.5-1.41 1.41L4.59 12l5.91-5.91 1.41 1.41z"}}]},Ml=o
2024-05-26 17:09:50 +00:00
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Pa(){var t=It();return function(e,n){var r,a;n||(n=t.slots);var l=((r=n)===null||r===void 0||(a=r.default)===null||a===void 0?void 0:a.call(r))||[],o=[],i=function u(s){if(!!De(s))return s.forEach(function(c){if(c.children&&De(c.children)){if(c.type!==st)return;u(c.children)}else o.push(c)}),o};return i(l).filter(function(u){var s;return(s=u.type.name)===null||s===void 0?void 0:s.endsWith(e)})}}function xv(){var t=It();return function(){var e,n=t.slots,r=(n==null||(e=n.default)===null||e===void 0?void 0:e.call(n))||[];return r.filter(function(a){return kn(a.type)==="symbol"&&!a.children?!1:a.type!==da}).map(function(a){return a.children&&De(a.children)&&a.type===st?a.children:a}).flat()}}var Pe="top",Ve="bottom",Be="right",xe="left",Mn="auto",Wt=[Pe,Ve,Be,xe],Ct="start",Bt="end",ii="clippingParents",xa="viewport",At="popper",oi="reference",pr=Wt.reduce(function(t,e){return t.concat([e+"-"+Ct,e+"-"+Bt])},[]),_a=[].concat(Wt,[Mn]).reduce(function(t,e){return t.concat([e,e+"-"+Ct,e+"-"+Bt])},[]),ui="beforeRead",ci="read",si="afterRead",vi="beforeMain",fi="main",di="afterMain",pi="beforeWrite",hi="write",gi="afterWrite",bi=[ui,ci,si,vi,fi,di,pi,hi,gi];function Ye(t){return t?(t.nodeName||"").toLowerCase():null}function Ae(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function vt(t){var e=Ae(t).Element;return t instanceof e||t instanceof Element}function Re(t){var e=Ae(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Dn(t){if(typeof ShadowRoot>"u")return!1;var e=Ae(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function mi(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},a=e.attributes[n]||{},l=e.elements[n];!Re(l)||!Ye(l)||(Object.assign(l.style,r),Object.keys(a).forEach(function(o){var i=a[o];i===!1?l.removeAttribute(o):l.setAttribute(o,i===!0?"":i)}))})}function yi(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(r){var a=e.elements[r],l=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),i=o.reduce(function(u,s){return u[s]="",u},{});!Re(a)||!Ye(a)||(Object.assign(a.style,i),Object.keys(l).forEach(function(u){a.removeAttribute(u)}))})}}const Oi={name:"applyStyles",enabled:!0,phase:"write",fn:mi,effect:yi,requires:["computeStyles"]};function Xe(t){return t.split("-")[0]}var ct=Math.max,Zt=Math.min,St=Math.round;function bn(){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 Ia(){return!/^((?!chrome|android).)*safari/i.test(bn())}function wt(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),a=1,l=1;e&&Re(t)&&(a=t.offsetWidth>0&&St(r.width)/t.offsetWidth||1,l=t.offsetHeight>0&&St(r.height)/t.offsetHeight||1);var o=vt(t)?Ae(t):window,i=o.visualViewport,u=!Ia()&&n,s=(r.left+(u&&i?i.offsetLeft:0))/a,c=(r.top+(u&&i?i.offsetTop:0))/l,d=r.width/a,v=r.height/l;return{width:d,height:v,top:c,right:s+d,bottom:c+v,left:s,x:s,y:c}}function Tn(t){var e=wt(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function ka(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Dn(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rt(t){return Ae(t).getComputedStyle(t)}function Ci(t){return["table","td","th"].indexOf(Ye(t))>=0}function at(t){return((vt(t)?t.ownerDocument:t.document)||window.document).documentElement}function ln(t){return Ye(t)==="html"?t:t.assignedSlot||t.parentNode||(Dn(t)?t.host:null)||at(t)}function hr(t){return!Re(t)||rt(t).position==="fixed"?null:t.offset
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var fo=/\s/;function po(t){for(var e=t.length;e--&&fo.test(t.charAt(e)););return e}var ho=po,go=ho,bo=/^\s+/;function mo(t){return t&&t.slice(0,go(t)+1).replace(bo,"")}var yo=mo,Oo=yo,wr=Ee,Co=ha,Pr=0/0,So=/^[-+]0x[0-9a-f]+$/i,wo=/^0b[01]+$/i,Po=/^0o[0-7]+$/i,xo=parseInt;function _o(t){if(typeof t=="number")return t;if(Co(t))return Pr;if(wr(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=wr(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Oo(t);var n=wo.test(t);return n||Po.test(t)?xo(t.slice(2),n?2:8):So.test(t)?Pr:+t}var Io=_o;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ko=bl,jo=function(){return ko.Date.now()},No=jo,Eo=Ee,cn=No,xr=Io,Ao="Expected a function",$o=Math.max,Mo=Math.min;function Do(t,e,n){var r,a,l,o,i,u,s=0,c=!1,d=!1,v=!0;if(typeof t!="function")throw new TypeError(Ao);e=xr(e)||0,Eo(n)&&(c=!!n.leading,d="maxWait"in n,l=d?$o(xr(n.maxWait)||0,e):l,v="trailing"in n?!!n.trailing:v);function f(y){var b=r,O=a;return r=a=void 0,s=y,o=t.apply(O,b),o}function g(y){return s=y,i=setTimeout(w,e),c?f(y):o}function h(y){var b=y-u,O=y-s,m=e-b;return d?Mo(m,l-O):m}function p(y){var b=y-u,O=y-s;return u===void 0||b>=e||b<0||d&&O>=l}function w(){var y=cn();if(p(y))return C(y);i=setTimeout(w,h(y))}function C(y){return i=void 0,v&&r?f(y):(r=a=void 0,o)}function x(){i!==void 0&&clearTimeout(i),s=0,r=u=a=i=void 0}function P(){return i===void 0?o:C(cn())}function k(){var y=cn(),b=p(y);if(r=arguments,a=this,u=y,b){if(i===void 0)return g(u);if(d)return clearTimeout(i),i=setTimeout(w,e),f(u)}return i===void 0&&(i=setTimeout(w,e)),o}return k.cancel=x,k.flush=P,k}var Ln=Do;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function To(){var t=jt(),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")},r={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:r,classNames:{size:n,status:r}}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function xt(t,e,n,r){var a=It(),l=a.emit,o=a.vnode,i=K(),u=o.props||{},s=Object.prototype.hasOwnProperty.call(u,r)||Object.prototype.hasOwnProperty.call(u,ml(r));return s?[t,function(c){l("update:".concat(r),c);for(var d=arguments.length,v=new Array(d>1?d-1:0),f=1;f<d;f++)v[f-1]=arguments[f];n==null||n.apply(void 0,[c].concat(v))}]:(i.value=e,[i,function(c){i.value=c;for(var d=arguments.length,v=new Array(d>1?d-1:0),f=1;f<d;f++)v[f-1]=arguments[f];n==null||n.apply(void 0,[c].concat(v))}])}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function _r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ir(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_r(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ro=function(e){var n=e.data,r=e.container,a=e.fixedHeight,l=a===void 0?!1:a,o=e.lineHeight,i=o===void 0?30:o,u=e.bufferSize,s=u===void 0?20:u,c=e.threshold,d=c===void 0?100:c,v=_n({visibleData:[],cachedHeight:[],cachedScrollY:[]}),f=I(function(){return n.value.length>d}),g=K(0),h=new Map,p=0,w=0,C=0,x=0,P=0,k=0,y=function(){n.value.forEach(function($,T){$.$index=T,l&&(v.cachedScrollY[T]=T*i)}),l||(v.cachedScrollY[n.value.length-1]=void 0)};y();var b=I(function(){var N=v.cachedHeight,$=N.length;if($){var T=N.reduce(function(q,J){return q+J||i},0);if(N.length===n.value.length)return T;var X=T/N.length;return T+(n.value.length-N.length)*X}return f.value?n.value.length*i:0}),O=I(function(){var N=v.visibleData,$=N[0];return $?N.length===1?0:v.cachedScrollY[$.$index]:0}),m=function(){k=Math.min(P+p+s*2,n.value.length),v.visibleData=n.value.slice(P,k)},S=function(){var $,T=h.get(C);if(!!T){var X=T==null||($=T.getBoundingClientRect())===null||$===void 0?void 0:$.height;v.cachedScrollY[C]=r.value.scrollTop-x,v.cachedHeight[C]=X;for(var q=C+1;q<=((J=v.visibleData[v.visibleData.length-1])===null||J===void 0?void 0:J.$index);q++){var J,H=h.get(q),F=(H==null?void 0:H.getBoundingClientRect())||{},R=F.height;v.cachedHeight[q]=R;var V=v.cachedScrollY[q-1]+v.cachedHeight[q-1];v.cachedScrollY.splice(q,1,V)}for(var z=C-1;z>=((Q=v.visibleData[0])===null||Q===void 0?void 0:Q.$index);z--){var Q,D=h.get(z),U=(D==null?void 0:D.getBoundingClientRect())||{},Z=U.height;v.cachedHeight[z]=Z;var ee=v.cachedScrollY[z+1]-v.cachedHeight[z];v.cachedScrollY.splice(z,1,ee)}if(v.cachedScrollY[0]>0){for(var ae=v.cachedScrollY[0],de=Math.min(k,n.value.length),ie=0;ie<de;ie++)v.cachedScrollY.splice(ie,1,v.cachedScrollY[ie]-ae);var ne=v.cachedScrollY[C-1]?v.cachedScrollY[C-1]+x:x;r.value.scrollTop=ne,w=ne}if(v.cachedScrollY[P]<0){var te=v.cachedHeight.slice(0,Math.max(0,C)).reduce(function(be,he){return be+he},0)+x;r.value.scrollTop=te,w=te,te===0&&(C=0,x=0)}yt(function(){var be=r.value,he=be.scrollTop,le=be.scrollHeight,Ze=be.clientHeight;if(he+Ze===le)for(var me=k-1;me>=P;me--)me===k-1?v.cachedScrollY.splice(me,1,le.value-v.cachedHeight[me]):v.cachedScrollY.splice(me,1,v.cachedScrollY[me+1]-v.cachedHeight[me])})}},_=function(){if(!!f.value){var $=r.value.scrollTop,T=$-w;w=$,T+=x;var X=C;if(!!T){if(T>=0){for(;X<n.value.length&&T>(v.cachedHeight[X]||i);)v.cachedHeight[X]||(v.cachedHeight[X]=i),T-=v.cachedHeight[X],X++;X>=n.value.length?(C=n.value.length-1,x=0):(C=X,x=T);var q=r.value,J=q.clientHeight,H=q.scrollHeight;$+J===H&&(C=n.value.length-p+1),P<=C-s&&(P=Math.min(n.value.length-p,C-s),P<0&&(P=0))}else{for(;T<0;)X--,v.cachedHeight[X]||(v.cachedHeight[X]=i),T+=v.cachedHeight[X];X<0?(C=0,x=0):(C=X,x=T),S(),P>C-s&&(P=Math.max(0,C-s))}m()}}};!l&&fe(g,S,{flush:"post"});var E=function(){!f.value||g.value++};fe(n,function(){y(),v.visibleData=[],v.cachedScrollY=[],v.cachedHeight=[],w=0,C=0,x=0,P=0,h.clear(),n.value.length<=d?v.visibleData=n.value:m(),r.value&&(r.value.scrollTop=0)});var A=!1,M=function(){A&&(p=Math.ceil(r.value.offsetHeight/i),m())};return qe(function(){if(!(!window||!window.IntersectionObserver)){var N=new window.IntersectionObserver(function($){var T=$[0];(T.isIntersecting||T.intersectionRatio)&&(A=!0,f.value&&M(),N.unobserve(r.value))});r.value&&N.observe(r.value)}}),Ir(Ir({trs:h,scrollHeight:b},Ce(v)),{},{translateY:O,handleScroll:_,handleRowMounted:E,refreshContainer:M,fixedHeight:l,calculateScrollY:S})};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var zn={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.9.4
* (c) 2024 tdesign
* @license MIT
*/function Vo(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!kt(t)}function Ma(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=[];return t.forEach(function(n){De(n)?e.push.apply(e,nt(n)):n.type===st?e.push.apply(e,nt(Ma(n.children))):e.push(n)}),e.filter(function(n){return!(n&&(n.type===da||n.type===st&&n.children.length===0||n.type===pa&&n.children.trim()===""))})}function Bo(t,e){return!t&&!e?!1:!!(!t||!e||["width","height","x","y"].some(function(n){return t[n]!==e[n]}))}function Da(t){var e=It(),n=K();return qe(function(){n.value=t(e)}),fl(function(){var r=t(e);n.value!==r&&(n.value=r)}),n}var Fo=oe({name:"TPopupTrigger",props:{forwardRef:Function},emits:["resize"],setup:function(e,n){var r=n.emit,a=n.slots,l=Da(function(i){var u=i.parent.vnode;return u.el.nextElementSibling}),o=K();return fe(l,function(){var i;(i=e.forwardRef)===null||i===void 0||i.call(e,l.value)}),Nn(l,function(i){var u=ce(i,1),s=u[0].contentRect;o.value=s}),fe(o,function(i,u){Bo(i,u)&&r("resize")}),function(){var i,u,s=Ma((i=a.default)===null||i===void 0?void 0:i.call(a));return s.length>1||((u=s[0])===null||u===void 0?void 0:u.type)===pa?j("span",null,[s]):s[0]}}}),Lo=oe({name:"TPopupContent",emits:["resize"],setup:function(e,n){var r=n.emit,a=n.slots,l=Da(function(o){return o.vnode.el.children[0]});return Nn(l,function(){r("resize")}),function(){return j("div",{style:"position: absolute; top: 0px; left: 0px; width: 100%"},[a.default()])}}}),zo=oe({name:"TPopupContainer",inheritAttrs:!1,props:{parent:Object,visible:Boolean,attach:zn.attach,forwardRef:Function},emits:["resize","contentMounted"],setup:function(e,n){var r=n.emit,a=n.attrs,l=n.slots,o=n.expose,i=K(),u=K(!1);function s(){r("resize")}return qe(function(){requestAnimationFrame(function(){u.value=e.visible})}),fe(function(){return e.visible},function(c){c&&(u.value=e.visible)}),o({unmountContent:function(){u.value=!1}}),function(){var c,d=function(){return Ja()||Za(e.attach,i.value)};return j(st,null,[j(Fo,{class:a.class,forwardRef:function(f){e.forwardRef(f),i.value=f},onResize:s},Vo(c=l.default())?c:{default:function(){return[c]}}),u.value&&j(vl,{disabled:!d(),to:d()},{default:function(){return[j(Lo,{onResize:s,onVnodeMounted:function(){return r("contentMounted")}},{default:function(){return[l.content&&l.content()]}})]}})])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function kr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function sn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ho(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!kt(t)}var Ta="data-td-popup",yn="data-td-popup-parent";function vn(t,e){var n=[],r=[yn,Ta];if(!t)return n;return e&&r.unshift(r.pop()),a(t),n;function a(l){var o=document.querySelectorAll("[".concat(r[0],'="').concat(l,'"]'));o.forEach(function(i){n.push(i);var u=i.getAttribute(r[1]);u&&u!==l&&a(u)})}}var jr=Symbol();function Wo(t){return t.replace(/-(left|top)$/,"-start").replace(/-(right|bottom)$/,"-end")}function Ko(t){var e=[];return{add:function(r,a){!r||(va(t.value,r,a),e.push(function(){gn(t.value,r,a)}))},clean:function(){e.forEach(function(r){return r==null?void 0:r()}),e.length=0}}}var Uo=oe({name:"TPopup",props:sn(sn({},zn),{},{expandAnimation:{type:Boolean}}),setup:function(e,n){var r,a=n.expose,l=Ce(e),o=l.visible,i=l.modelValue,u=Je(o,i,e.defaultVisible,e.onVisibleChange,"visible"),s=ce(u,2),c=s[0],d=s[1],v=$e(),f=Nt(),g,h,p,w=K(null),C=K(null),x=K(null),P=K(null),k=K(!1),y=typeof process<"u"&&(r={})!==null&&r!==void 0&&r.TEST?"":Date.now().toString(36),b=Ot(jr,void 0);Jt(jr,{id:y,assertMouseLeave:F});var O=ve("popup"),m=dt(),S=m.STATUS,_=I(function(){var D,U,Z=e.trigger!=="hover"?[0,0]:[].concat((D=e.delay)!==null&&D!==void 0?D:[250,150]);return{show:Z[0],hide:(U=Z[1])!==null&&U!==void 0?U:Z[0]}}),E=Ko(w);fe(function(){return[e.trigger,w.value]},function(){!w.value||(E.clean(),E.add({hover:"mouseenter",focus:"focusin","context-menu":"contextmenu",click:"click"}[e.trigger],function(D){if(!e.disabled){if(D.type==="contextmenu"&&D.preventDefault(),(D.type==="click"||D.type==="contextmenu")&&c.value){X(D);return}T(D)}}),E.add({hover:"mouseleave",focus:"focusout"}[e.trigger],X))}),fe(function(){return[e.overlayStyle,e.overlayInnerStyle,C.value]},function(){M(),N()}),fe(function(){return e.placement},function(){$(),N()}),fe(function(){return c.value},function(D){if(D){va(document,"mousedown",H,!0),e.trigger==="focus"&&Qa(w.value,"keydown",function(U){var Z,ee=typeof process<"u"&&(Z={})!==null&&Z!==void 0&&Z.TEST?"27":"Escape";U.code===ee&&X(U)});return}gn(document,"mousedown",H,!0)}),In(function(){$(),q(),gn(document,"mousedown",H,!0)}),a({update:N,getOverlay:function(){return C.value},getOverlayState:function(){return{hover:k.value}},close:function(){return X()}});function A(){var D=e.overlayStyle;if(!(!w.value||!C.value)){if(Te(D))return D(w.value,C.value);if(Ee(D))return D}}function M(){var D=e.overlayInnerStyle;!w.value||!C.value||(Te(D)?Hn(C.value,D(w.value,C.value)):Ee(D)&&Hn(C.value,D))}function N(){if(!(!x.value||!c.value)){if(g){if(w.value.getRootNode()instanceof ShadowRoot)g.state.elements.reference=w.value,g.update();else{for(var D=w.value.getBoundingClientRect(),U=w.value;U&&U!==document.body;)U=U.parentElement;var Z=U!==document.body||D.width===0&&D.height===0;Z?d(!1,{trigger:J({type:"mouseenter"})}):(g.state.elements.reference=w.value,g.update())}return}g=vo(w.value,x.value,sn({placement:Wo(e.placement),onFirstUpdate:function(){yt(N)}},e.popperOptions))}}function $(){if(g){var D;(D=g)===null||D===void 0||D.destroy(),g=null}if(e.destroyOnClose){var U;(U=P.value)===null||U===void 0||U.unmountContent()}}function T(D){q(),h=setTimeout(function(){d(!0,{trigger:J(D)})},_.value.show)}function X(D){q(),p=setTimeout(function(){d(!1,{trigger:J(D),e:D})},_.value.hide)}function q(){clearTimeout(h),clearTimeout(p)}function J(D){switch(D==null?void 0:D.type){case"mouseenter":return"trigger-element-hover";case"mouseleave":return"trigger-element-hove
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ra=Se(Uo);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Go={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.9.4
* (c) 2024 tdesign
* @license MIT
*/var Xo=function(){var e=K(0),n=K(0),r=function(l){e.value=l.clientX,n.value=l.clientY};return el||(qe(function(){window.addEventListener("mousemove",r,{passive:!0})}),In(function(){window.removeEventListener("mousemove",r)})),{x:e,y:n}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Nr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function bt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Yo=oe({name:"TTooltip",props:bt(bt({},zn),Go),setup:function(e,n){var r=K(null),a=K(null),l=Ce(e),o=l.visible,i=l.modelValue,u=Je(o,i,e.defaultVisible,e.onVisibleChange,"visible"),s=ce(u,2),c=s[0],d=s[1],v=It(),f=K(e.visible||e.defaultVisible),g=ve(),h=$e(),p=Nt(),w=Xo(),C=w.x,x=K(C.value);qe(function(){e.duration&&f.value&&(r.value=setTimeout(function(){d(!1,{}),clearTimeout(r.value),r.value=null},e.duration))});var P=function(S,_){r.value&&(_==null?void 0:_.trigger)!=="document"||(S&&(x.value=C.value),d(S,_))},k=I(function(){return["".concat(g.value,"-tooltip"),W({},"".concat(g.value,"-tooltip--").concat(e.theme),e.theme),e.overlayClassName]}),y=I(function(){return bt(bt({},(v==null?void 0:v.vnode.props)||{}),{},{placement:e.placement==="mouse"?"bottom-left":e.placement,showArrow:e.placement==="mouse"?!1:e.showArrow,overlayClassName:k.value,onVisibleChange:P,disabled:e.disabled})}),b=I(function(){if(e.placement!=="mouse"||x.value===0)return e.overlayInnerStyle;var m=function(_){return{transform:"translateX(".concat(x.value-_.getBoundingClientRect().left,"px)")}};return e.overlayInnerStyle?function(S,_){return bt(bt({},m(S)),Te(e.overlayInnerStyle)?e.overlayInnerStyle(S,_):e.overlayInnerStyle)}:m});fe(function(){return f.value},function(){r.value&&!f.value&&(clearTimeout(r.value),r.value=null)});var O=function(){var S,_;(S=a.value)===null||S===void 0||(_=S.update)===null||_===void 0||_.call(S)};return n.expose({updatePopper:O}),function(){var m=h("content");return!m&&!e.content?p("default","triggerElement"):j(Ra,_e(ma(y.value,["content","default"]),{ref:a,overlayInnerStyle:b.value,visible:c.value}),{default:function(){return[p("default","triggerElement")]},content:function(){return m}})}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var _v=Se(Yo);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Er(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function qo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Er(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Iv(t,e){for(var n=qo({},t),r=0;r<e.length;r++){var a=e[r];delete n[a]}return n}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Jo=oe({name:"TFakeArrow",props:{isActive:{type:Boolean},overlayClassName:{type:[String,Object,Array]},overlayStyle:{type:Object||String}},setup:function(e){var n=ve("fake-arrow"),r=I(function(){return[n.value,W({},"".concat(n.value,"--active"),e.isActive),e.overlayClassName]});return{classes:r}},render:function(){return j("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},[j("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.9.4
* (c) 2024 tdesign
* @license MIT
*/var Zo={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.9.4
* (c) 2024 tdesign
* @license MIT
*/function Lt(t){return new Array(t).fill(0).join("")}function Va(t){if(!t)return!0;if(zt(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,r=0,a=0,l=0,o=t.length;l<o;l++)if(t[l]==="."&&(a+=1,a>1)||/(e|E)+/.test(t[l])&&(n+=1,n>1)||t[l]==="-"&&(r+=1,r>2))return!1;return!0}function Ne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t.indexOf(".")!==-1?(En.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 fn(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Ne(t,n),a=Ne(e,n),l=r.length>a.length,o=l?r:a,i=l?a:r,u=[],s=[],c=n?0:o.length-i.length,d=n?i.length:o.length,v=d-1;v>=0;v--){var f=v-c,g=Number(o[v])+(Number(i[f])||0)+(s[v]||0);g>=10&&(s[v-1]=1),u.unshift(String(g%10))}return s[-1]&&u.unshift("1"),n?u.concat(o.slice(d,o.length)).join(""):u.join("")}function _t(t,e){var n=t.split("."),r=ce(n,2),a=r[0],l=a===void 0?"0":a,o=r[1],i=o===void 0?"0":o,u=e.split("."),s=ce(u,2),c=s[0],d=c===void 0?"0":c,v=s[1],f=v===void 0?"0":v,g=fn(l,d);if(i==="0"&&f==="0")return g;var h=Ne(i,!0),p=Ne(f,!0),w=fn(h,p,!0),C=w.length;return C>h.length&&C>p.length?[Ne(fn(g,"1")),Ne(w.slice(1),!0)].filter(function(x){return x}).join("."):[Ne(g),Ne(w,!0)].filter(function(x){return x}).join(".")}function Ba(t,e){var n=Ne(t),r=Ne(e);if(n.length===r.length){for(var a=0,l=n.length;a<l;a++){if(n[a]>r[a])return 1;if(n[a]<r[a])return-1}return 0}return n.length>r.length?1:-1}function Fa(t,e){for(var n=t&&t!=="0"?t.replace(/0+$/,""):"0",r=e&&e!=="0"?e.replace(/0+$/,""):"0",a=Math.max(n.length,r.length),l=0,o=a;l<o;l++){if((n[l]||0)>(r[l]||0))return 1;if((n[l]||0)<(r[l]||0))return-1}return 0}function On(t){var e=t.split("e"),n=ce(e,2),r=n[0],a=n[1];if(!a)return t;var l=t.split("."),o=ce(l,2),i=o[0],u=o[1],s=u===void 0?"":u,c=Number(a),d=s.split("e"),v=ce(d,1),f=v[0];if(c>f.length){var g=Lt(c-f.length);return r.replace(/(^0+|\.)/g,"")+g}var h=i.replace(/^0+/,"")+f.slice(0,c),p=f.slice(c);return p?[h,p].join("."):h}function Qo(t,e){var n=On(t).split("."),r=ce(n,2),a=r[0],l=r[1],o=On(e).split("."),i=ce(o,2),u=i[0],s=i[1],c=Ba(a.replace("-",""),u.replace("-","")),d=a.includes("-"),v=u.includes("-");return d&&!v?-1:!d&&v?1:d&&v?c===0?0:c>0?-1:1:c===0?Fa(l,s):c}function Ar(t){return[-1/0,1/0].includes(Number(t))}function $r(t){return Number(t)<Number.MAX_SAFE_INTEGER&&Number(t)>Number.MIN_SAFE_INTEGER}function ft(t,e,n){var r=$r(t)&&$r(e)&&!n,a=Ar(t)||Ar(e);return r||a?Number(t)===Number(e)?0:Number(t)>Number(e)?1:-1:Qo(String(t),String(e))}function $t(t,e,n){if(t===e)return"0";for(var r=n||{},a=r.decimal,l=r.stayZero,o=Ne(t),i=Ne(e),u=Ba(o,i)>0,s=u?o:i,c=u?i:o,d=[],v=[],f=a?0:s.length-c.length,g=a?c.length:s.length,h=g-1;h>=0;h--){var p=h-f,w=Number(s[h])-(Number(c[p])||0)-(v[h]||0);w<0&&(v[h-1]=1,w+=10),d.unshift(String(w))}if(a)return d.concat(s.slice(g,s.length)).join("");var C=d.join("");return l||(C=C.replace(/^0+/,"")),Ne(u?C:"-".concat(C))}function Qt(t,e){if(t===e)return"0";var n=ft(t,e,!0)>0,r=n?t:e,a=n?e:t,l=r.split("."),o=ce(l,2),i=o[0],u=o[1],s=u===void 0?"0":u,c=a.split("."),d=ce(c,2),v=d[0],f=d[1],g=f===void 0?"0":f,h=$t(i,v);if(s==="0"&&g==="0")return n?h:"-".concat(h);var p="",w=s;s.length<g.length&&(w="".concat(s).concat(Lt(g.length-s.length))),Fa(w,g)>=0?p=$t(w,g,{decimal:!0}):(s.length<g.length||s==="0"?(p=$t("1".concat(w),g,{stayZero:!0}),p=Lt(g.length-p.length)+p):p=$t(s,g,{decimal:!0}),h=$t(h,"1"));var C=p?[h,p].join("."):h;return n?C:"-".concat(C)}function eu(t,e){var n=t[0]==="-",r=e[0]==="-";if(n&&!r){var a=_t(t.slice(1),e);return"-".concat(a)}return n&&r?Qt(e.slice(1),t.slice(1)):!n&&r?_t(t,e.slice(1)):Qt(t,e)}function tu(t,e){var n=t[0]==="-",r=e[0]==="-";if(n&&!r)return Qt(e,t.slice(1));if(n&&r){var a=_t(e.slice(1),t.slice(1));return"-".concat(a)}return!n&&r?Qt(t,e.slice(1)):_t(t,e)}function Cn(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).toFix
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function nu(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t&&t!==0?!0:n&&Ue(t)?ft(t,e,n)<0:t<e}function ru(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t&&t!==0?!0:n&&Ue(t)?ft(t,e,n)>0:t>e}function au(t,e){if(t!==""){var n=e.max,r=e.min,a=e.lastValue,l=e.largeNumber;return Va(t)?l&&(Ue(n)||n===1/0)&&(Ue(r)||r===-1/0)?ft(n,t,l)<0?n:ft(r,t,l)>0?r:t:Math.max(Number(r),Math.min(Number(n),Number(t))):a}}function en(t,e){var n,r;if(!t||!e)return(t||0)+(e||0);var a=((n=t.toString().split(".")[1])===null||n===void 0?void 0:n.length)||0,l=((r=e.toString().split(".")[1])===null||r===void 0?void 0:r.length)||0;if(!a&&!l)return t+e;var o=t,i=e,u=Math.abs(a-l),s=Math.pow(10,Math.max(a,l));if(u>0){var c=Math.pow(10,u);a>l?(o=Number(t.toString().replace(".","")),i=Number(e.toString().replace(".",""))*c):(o=Number(t.toString().replace(".",""))*c,i=Number(e.toString().replace(".","")))}else o=Number(t.toString().replace(".","")),i=Number(e.toString().replace(".",""));return(o+i)/s}function tn(t,e){var n,r;if(!t||!e)return(t||0)-(e||0);var a=((n=t.toString().split(".")[1])===null||n===void 0?void 0:n.length)||0,l=((r=e.toString().split(".")[1])===null||r===void 0?void 0:r.length)||0,o=Math.pow(10,Math.max(a,l)),i=a>=l?a:l;return Number(((t*o-e*o)/o).toFixed(i))}function lu(t,e){return t<0&&e>0?tn(e,Math.abs(t)):t<0&&e<0?en(Math.abs(t),Math.abs(e))*-1:t>0&&e<0?tn(t,Math.abs(e)):en(t,e)}function iu(t,e){return t<0&&e>0?en(Math.abs(t),e)*-1:t<0&&e<0?tn(Math.abs(e),Math.abs(t)):t>0&&e<0?en(t,Math.abs(e)):tn(t,e)}function ou(t){var e=t.op,n=t.step,r=t.lastValue,a=t.max,l=t.min,o=t.largeNumber;if(n<=0)return En.error("InputNumber","step must be larger than 0."),r;var i=zt(n)?String(n):n,u;return e==="add"?o&&Ue(r)?u=tu(String(r),String(i)):u=lu(Number(r||0),Number(n)):e==="reduce"&&(o&&Ue(r)?u=eu(String(r),String(i)):u=iu(Number(r||0),Number(n))),An(r)&&(u=au(u,{max:a,min:l,lastValue:r,largeNumber:o})),o?u:Number(u)}function dn(t){var e=t.largeNumber,n=t.value,r=t.max,a=t.min;if(!An(e)){e&&zt(n)&&En.warn("InputNumber","largeNumber value must be a string.");var l;return ft(n,r,e)>0?l="exceed-maximum":ft(n,a,e)<0?l="below-minimum":l=void 0,l}}var uu=["-",".","e","E","+"];function cu(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 r=t.slice(1);if(/(\+|-)/.test(r)&&!/e+/i.test(r))return!1;var a=e&&Va(t)||!Number.isNaN(Number(t));return!(!a&&!uu.includes(t.slice(-1))||/e/i.test(t)&&!/\de/i.test(t))}function su(t,e){return parseFloat(t)!==e&&!Number.isNaN(Number(t))}function pn(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,r=e.largeNumber,a=e.isToFixed,l=t.replace(/[.|+|\-|e]$/,"");return r&&(l=On(l)),n!==void 0&&(l=Cn(l,n,r)),r||a?l:parseFloat(l)}}function vu(t){var e=/^[-+]?\d{1,3}(,\d{3})*(\.(\d*))?$/;return e.test(t)?t.replace(/,/g,""):t}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function fu(t){var e=To(),n=e.classPrefix,r=e.sizeClassNames,a=e.statusClassNames,l=Ce(t),o=l.value,i=l.modelValue,u=l.max,s=l.min,c=Je(o,i,t.defaultValue,t.onChange),d=ce(c,2),v=d[0],f=d[1],g=K(),h=K(""),p=Et(),w=K(),C=I(function(){return p.value||!ru(v.value,t.min,t.largeNumber)}),x=I(function(){return p.value||!nu(v.value,t.max,t.largeNumber)}),P=I(function(){return["".concat(n.value,"-input-number"),r[t.size],W(W(W(W({},a.disabled,p.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)]}),k=I(function(){return["".concat(n.value,"-input-number__decrease"),W({},a.disabled,C.value)]}),y=I(function(){return["".concat(n.value,"-input-number__increase"),W({},a.disabled,x.value)]}),b=function(F){var R;if(!F&&F!==0)return"";var V=F||F===0?String(F):"";if(!((R=g.value)!==null&&R!==void 0&&(R=R.inputRef)!==null&&R!==void 0&&R.contains(document.activeElement))){var z=pn(V,{decimalPlaces:t.decimalPlaces,largeNumber:t.largeNumber,isToFixed:!0});V=z||z===0?String(z):"",t.format&&(V=String(t.format(F,{fixedNumber:V})))}return V};fe(v,function(H){var F=t.largeNumber,R=t.decimalPlaces,V=[void 0,null].includes(H)?"":String(H);if(!F&&!Number.isNaN(h.value)){parseFloat(h.value)!==H&&(h.value=b(V));var z=Number(Cn(V,R,F));R!==void 0&&![void 0,null].includes(H)&&Number(z)!==Number(v.value)&&f(z,{type:"props",e:void 0})}F&&(h.value=b(V),R!==void 0&&Cn(V,R,F)!==H&&f(h.value,{type:"props",e:void 0}))},{immediate:!0}),fe([v,u,s],function(){var H;if(![void 0,"",null].includes(v.value)){var F=t.max,R=t.min,V=t.largeNumber,z=dn({value:v.value,largeNumber:V,max:F,min:R});w.value=z,(H=t.onValidate)===null||H===void 0||H.call(t,{error:z})}},{immediate:!0});var O=function(F){var R=ou({op:F,step:t.step,max:t.max,min:t.min,lastValue:v.value,largeNumber:t.largeNumber}),V=t.largeNumber,z=t.max,Q=t.min,D=dn({value:R,largeNumber:V,max:z,min:Q});return{overLimit:D,newValue:R}},m=function(F){if(!(C.value||t.readonly)){var R=O("reduce");R.overLimit&&!t.allowInputOverLimit||f(R.newValue,{type:"reduce",e:F})}},S=function(F){if(!(x.value||t.readonly)){var R=O("add");R.overLimit&&!t.allowInputOverLimit||f(R.newValue,{type:"add",e:F})}},_=function(F,R){var V=R.e,z=vu(F);if(!!cu(z,t.largeNumber)){if(h.value=z,t.largeNumber){f(z,{type:"input",e:V});return}if(su(String(z),Number(v.value))){var Q=z===""?void 0:Number(z);f(Q,{type:"input",e:V})}}},E=function(F,R){var V,z=t.largeNumber,Q=t.max,D=t.min,U=t.decimalPlaces;if(!t.allowInputOverLimit&&v.value!==void 0){var Z=dn({value:v.value,largeNumber:z,max:Q,min:D});if(Z==="below-minimum"){var ee;f(D,{type:"blur",e:R.e}),(ee=t.onBlur)===null||ee===void 0||ee.call(t,D,R);return}if(Z==="exceed-maximum"){var ae;f(Q,{type:"blur",e:R.e}),(ae=t.onBlur)===null||ae===void 0||ae.call(t,Q,R);return}}var de=pn(F,{decimalPlaces:U,largeNumber:z});h.value=b(de),de!==v.value&&f(de,{type:"blur",e:R.e}),(V=t.onBlur)===null||V===void 0||V.call(t,de,R)},A=function(F,R){var V;h.value=v.value||v.value===0?String(v.value):"",(V=t.onFocus)===null||V===void 0||V.call(t,F,R)},M=function(F,R){var V;if(!p.value){var z=R.e,Q={ArrowUp:S,ArrowDown:m},D=z.code||z.key;Q[D]!==void 0&&Q[D](z),(V=t.onKeydown)===null||V===void 0||V.call(t,F,R)}},N=function(F,R){var V;(V=t.onKeyup)===null||V===void 0||V.call(t,F,R)},$=function(F,R){var V;(V=t.onKeypress)===null||V===void 0||V.call(t,F,R)},T=function(F,R){var V;h.value=b(F);var z=pn(F,{decimalPlaces:t.decimalPlaces,largeNumber:t.largeNumber});z!==F&&String(z)!==F&&f(z,{type:"enter",e:R.e}),(V=t.onEnter)===null||V===void 0||V.call(t,z,R)},X=function(){g.value.focus()},q=function(){g.value.blur()},J={onBlur:E,onFocus:A,onKeydown:M,onKeyup:N,onKeypress:$,onEnter:T,onClick:X};return{classPrefix:n,wrapClasses:P,reduceClasses:k,addClasses:y,tDisabled:p,isError:w,listeners:J,userInput:h,tValue:v,inputRef:g,focus:X,blur:q,handleReduce:m,handleAdd:S,onInnerInputChange:_}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Mr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function du(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var pu=oe({name:"TInputNumber",props:Zo,setup:function(e,n){var r=$e(),a=Ht({AddIcon:Nl,RemoveIcon:ni,ChevronDownIcon:Oa,ChevronUpIcon:wa}),l=a.AddIcon,o=a.RemoveIcon,i=a.ChevronDownIcon,u=a.ChevronUpIcon,s=fu(e),c=s.inputRef;return n.expose(du({},s)),function(){var d=e.theme==="column"?j(i,{size:e.size},null):j(o,{size:e.size},null),v=e.theme==="column"?j(u,{size:e.size},null):j(l,{size:e.size},null),f=s.isError.value?"error":e.status,g=s.classPrefix.value,h=r("tips");return j("div",{class:s.wrapClasses.value},[e.theme!=="normal"&&j(Tt,{class:s.reduceClasses.value,disabled:s.tDisabled.value,onClick:s.handleReduce,variant:"outline",shape:"square",icon:function(){return d}},null),j($n,_e({ref:c,disabled:s.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},s.listeners,e.inputProps,{value:s.userInput.value,onChange:s.onInnerInputChange}),n.slots),e.theme!=="normal"&&j(Tt,{class:s.addClasses.value,disabled:s.tDisabled.value,onClick:s.handleAdd,variant:"outline",shape:"square",icon:function(){return v}},null),h&&j("div",{class:"".concat(g,"-input__tips ").concat(g,"-tips ").concat(g,"-is-").concat(f)},[h])])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var hu=Se(pu);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var gu=tl,bu=xl,mu=nl;function yu(t,e,n){for(var r=-1,a=e.length,l={};++r<a;){var o=e[r],i=gu(t,o);n(i,o)&&bu(l,mu(o,t),i)}return l}var Ou=yu,Cu=Ou,Su=rl;function wu(t,e){return Cu(t,e,function(n,r){return Su(t,r)})}var Pu=wu,xu=Pu,_u=wl,Iu=_u(function(t,e){return t==null?{}:xu(t,e)}),La=Iu;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ku(t,e,n,r){for(var a=t.length,l=n+(r?1:-1);r?l--:++l<a;)if(e(t[l],l,t))return l;return-1}var ju=ku;function Nu(t){return t!==t}var Eu=Nu;function Au(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}var $u=Au,Mu=ju,Du=Eu,Tu=$u;function Ru(t,e,n){return e===e?Tu(t,e,n):Mu(t,Du,n)}var Vu=Ru,Bu=Vu;function Fu(t,e){var n=t==null?0:t.length;return!!n&&Bu(t,e,0)>-1}var Lu=Fu;function zu(t,e,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(e,t[r]))return!0;return!1}var Hu=zu;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Wu=al,Ku=Lu,Uu=Hu,Gu=ga,Xu=Ol,Dr=ll,Yu=Math.min;function qu(t,e,n){for(var r=n?Uu:Ku,a=t[0].length,l=t.length,o=l,i=Array(l),u=1/0,s=[];o--;){var c=t[o];o&&e&&(c=Gu(c,Xu(e))),u=Yu(c.length,u),i[o]=!n&&(e||a>=120&&c.length>=120)?new Wu(o&&c):void 0}c=t[0];var d=-1,v=i[0];e:for(;++d<a&&s.length<u;){var f=c[d],g=e?e(f):f;if(f=n||f!==0?f:0,!(v?Dr(v,g):r(s,g,n))){for(o=l;--o;){var h=i[o];if(!(h?Dr(h,g):r(t[o],g,n)))continue e}v&&v.push(g),s.push(f)}}return s}var Ju=qu,Zu=Cl;function Qu(t){return Zu(t)?t:[]}var ec=Qu,tc=ga,nc=Ju,rc=yl,ac=ec,lc=rc(function(t){var e=tc(t,ac);return e.length&&e[0]===t[0]?nc(e):[]}),Sn=lc;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ic={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.9.4
* (c) 2024 tdesign
* @license MIT
*/var oc=["tips"];function Tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function we(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var uc=["status","clearable","disabled","label","placeholder","readonly","suffix","suffixIcon","onPaste","onMouseenter","onMouseleave"],cc={label:"label",value:"value",children:"children"};function sc(t,e){var n=we(we({},cc),e);return Ee(t)?t[n.label]:t}function vc(t,e,n){var r,a=Ce(t),l=a.value,o=a.keys,i=a.inputValue,u=ve(),s=K(t.autofocus),c=K(),d=xt(i,(r=t.defaultInputValue)!==null&&r!==void 0?r:"",t.onInputChange,"inputValue"),v=ce(d,2),f=v[0],g=v[1],h=$e(),p=Et(),w=I(function(){return we(we({},La(t,uc)),{},{disabled:p.value})}),C=function(m){var S,_;m==null||(S=m.e)===null||S===void 0||S.stopPropagation(),(_=t.onClear)===null||_===void 0||_.call(t,m),g("",{trigger:"clear"})},x=function(m,S){t.allowInput&&g(m,we(we({},S),{},{trigger:S.trigger||"input"}))},P=function(m){var S,_=h("valueDisplay"),E=m&&t.allowInput?f.value:sc(l.value,o.value),A=k(_,m),M=we(we({},w.value),{},{value:y(_,E,m),label:A.length?function(){return A}:void 0,autoWidth:t.autoWidth,readonly:!t.allowInput||t.readonly,placeholder:b(_),suffixIcon:!p.value&&t.loading?function(){return j(fa,{loading:!0,size:"small"},null)}:t.suffixIcon,showClearIconOnEmpty:Boolean(t.clearable&&(f.value||E)&&!p.value&&!t.readonly)},t.inputProps),N=e.slots;N.tips;var $=an(N,oc),T=m?["".concat(u.value,"-input--focused"),"".concat(u.value,"-is-focused"),M==null?void 0:M.inputClass]:M==null?void 0:M.inputClass,X=function(F,R){var V;(V=t.onEnter)===null||V===void 0||V.call(t,l.value,we(we({},R),{},{inputValue:F}))},q=function(F,R){var V,z,Q=(V=n.value)===null||V===void 0?void 0:V.getOverlayState();s.value||Q!=null&&Q.hover||(s.value=!0,(z=t.onFocus)===null||z===void 0||z.call(t,l.value,we(we({},R),{},{inputValue:F})))},J=function(F,R){var V,z,Q=(V=n.value)===null||V===void 0?void 0:V.getOverlayState();Q!=null&&Q.hover||(s.value=!1,(z=t.onBlur)===null||z===void 0||z.call(t,l.value,we(we({},R),{},{inputValue:F})))};return j($n,_e({ref:c,style:(S=e.attrs)===null||S===void 0?void 0:S.style},we({onChange:x,onClear:C,onEnter:X,onFocus:q,onBlur:J},M),{inputClass:T}),$)},k=function(m,S){var _=h("label");if(!_&&!m)return[];if(m){var E,A;if((E=t.valueDisplayOptions)!==null&&E!==void 0&&E.usePlaceholder&&!l.value||(A=t.valueDisplayOptions)!==null&&A!==void 0&&A.useInputDisplay&&S)return[_]}return[_,m]},y=function(m,S,_){if(m){var E,A;if(!((E=t.valueDisplayOptions)!==null&&E!==void 0&&E.useInputDisplay)||(A=t.valueDisplayOptions)!==null&&A!==void 0&&A.useInputDisplay&&!_)return}return S},b=function(m){if(m){var S,_;if(!((S=t.valueDisplayOptions)!==null&&S!==void 0&&S.usePlaceholder)||(_=t.valueDisplayOptions)!==null&&_!==void 0&&_.usePlaceholder&&l.value)return""}return t.placeholder};return{inputRef:c,isSingleFocus:s,commonInputProps:w,singleInputValue:f,onInnerClear:C,renderSelectSingle:P}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var fc={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.9.4
* (c) 2024 tdesign
* @license MIT
*/function dc(t){var e=K(),n=Ce(t),r=n.excessTagsDisplayType,a=n.readonly,l=n.disabled,o=K(0),i=K(),u=K(),s=K(!1),c=function(k){var y=k.children[0];i.value=y},d=function(){o.value=i.value.scrollWidth-i.value.clientWidth},v=function(k){var y;!Te((y=i.value)===null||y===void 0?void 0:y.scroll)||i.value.scroll({left:k,behavior:"smooth"})},f=function(){d(),v(o.value),setTimeout(function(){s.value=!0},200)},g=function(){v(0)},h=function(k){var y=k.e;if(!(a.value||l.value)&&!!i.value)if(y.deltaX>0){var b=Math.min(i.value.scrollLeft+120,o.value);v(b)}else{var O=Math.max(i.value.scrollLeft-120,0);v(O)}},p=function(){r.value==="scroll"&&(u.value=setTimeout(function(){f(),clearTimeout(u.value)},100))},w=function(){r.value==="scroll"&&(s.value=!1,v(0),clearTimeout(u.value))},C=function(){var k,y=(k=e.value)===null||k===void 0?void 0:k.$el;!y||c(y)},x=function(){clearTimeout(u.value)};return qe(C),In(x),{tagInputRef:e,scrollElement:i,scrollDistance:o,scrollTo:v,scrollToRight:f,scrollToLeft:g,updateScrollElement:c,updateScrollDistance:d,onWheel:h,scrollToRightOnEnter:p,scrollToLeftOnLeave:w,isScrollable:s}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function nn(t){return nn=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},nn(t)}var pc=/^\s+/,hc=/\s+$/;function Y(t,e){if(t=t||"",e=e||{},t instanceof Y)return t;if(!(this instanceof Y))return new Y(t,e);var n=gc(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}Y.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,r,a,l,o,i;return n=e.r/255,r=e.g/255,a=e.b/255,n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*l+.7152*o+.0722*i},setAlpha:function(e){return this._a=za(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Vr(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Vr(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+a+"%)":"hsva("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var e=Rr(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Rr(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+a+"%)":"hsla("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHex:function(e){return Br(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return Oc(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(ge(this._r,255)*100)+"%",g:Math.round(ge(this._g,255)*100)+"%",b:Math.round(ge(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ge(this._r,255)*100)+"%, "+Math.round(ge(this._g,255)*100)+"%, "+Math.round(ge(this._b,255)*100)+"%)":"rgba("+Math.round(ge(this._r,255)*100)+"%, "+Math.round(ge(this._g,255)*100)+"%, "+Math.round(ge(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ac[Br(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+Fr(this._r,this._g,this._b,this._a),r=n,a=this._gradientType?"GradientType = 1, ":"";if(e){var l=Y(e);r="#"+Fr(l._r,l._g,l._b,l._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var n=!!e;e=e||this._format;var r=!1,a=this._a<1&&this._a>=0,l=!n&&a&&(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"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Y(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Vc={closable:Boolean,color:{type:String,default:""},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.9.4
* (c) 2024 tdesign
* @license MIT
*/function Hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Bc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Wa=oe({name:"TTag",props:Vc,setup:function(e){var n=jt("tag"),r=n.globalConfig,a=ve("tag"),l=Ht({CloseIcon:Pl}),o=l.CloseIcon,i=$e(),u=Nt(),s=dt(),c=s.SIZE,d=I(function(){return["".concat(a.value),"".concat(a.value,"--").concat(e.theme),"".concat(a.value,"--").concat(e.variant),W(W(W(W({},"".concat(a.value,"--ellipsis"),e.maxWidth),"".concat(a.value,"--close"),e.closable),"".concat(a.value,"--disabled"),e.disabled),c.value[e.size],e.size!=="medium"),e.shape!=="square"&&"".concat(a.value,"--").concat(e.shape)]}),v=I(function(){var p=e.maxWidth,w=f();return e.maxWidth?Bc({maxWidth:isNaN(Number(p))?String(p):"".concat(p,"px")},w):w}),f=function(){var w=e.color,C=e.variant;if(!w)return{};var x=Y(w).getLuminance(),P={color:x>.5?"black":"white"};if((C==="outline"||C==="light-outline")&&(P.borderColor=w),C!=="outline"){var k=function(){var b=Y(w).toRgb(),O=b.r,m=b.g,S=b.b;return"rgba(".concat(O,", ").concat(m,", ").concat(S,", 0.1)")};P.backgroundColor=C==="dark"?w:k()}return C!=="dark"&&(P.color=w),P},g=function(w){var C;e.disabled||(C=e.onClick)===null||C===void 0||C.call(e,{e:w})},h=function(){if(!e.closable)return null;var w="".concat(a.value,"__icon-close");return r.value.closeIcon?ut(r.value.closeIcon(ut),{class:w}):j(o,{onClick:function(x){var P,k=x.e;k.stopPropagation(),(P=e.onClose)===null||P===void 0||P.call(e,{e:k})},class:w},null)};return function(){var p=h(),w=u("default","content"),C=i("icon"),x=Ue(w)?w:"",P=x&&e.maxWidth?x:void 0;return j("div",{class:d.value,style:v.value,onClick:g},[C,e.maxWidth?j("span",{class:W({},"".concat(a.value,"--text"),e.maxWidth),title:P},[w]):w,!e.disabled&&p])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Fc={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.9.4
* (c) 2024 tdesign
* @license MIT
*/var kv=/^ArrowDown$/i,jv=/^ArrowUp$/i,Nv=/^Escape$/i,Lc=/^Space$/i,zc=/^Enter$/i,Ev=/^(Shift|ShiftLeft|ShiftRight)$/i,Av=/^KeyC$/i,$v=/^(KeyA|KeyL)$/i,Wr=/^(Enter|Space)$/i;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Kr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ur(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Hc(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!kt(t)}var Ka=oe({name:"TCheckTag",props:Fc,setup:function(e){var n=ve("tag"),r=dt(),a=r.SIZE,l=Nt(),o=Ce(e),i=o.checked,u=o.modelValue,s=Je(i,u,e.defaultChecked,e.onChange,"checked"),c=ce(s,2),d=c[0],v=c[1],f=I(function(){return["".concat(n.value),"".concat(n.value,"--check"),a.value[e.size],W(W({},"".concat(n.value,"--checked"),d.value),"".concat(n.value,"--disabled"),e.disabled)]}),g=I(function(){var x=Ur({theme:"primary"},e.checkedProps),P=Ur({},e.uncheckedProps);return d.value?x:P}),h=function(P){var k=P.e;if(!e.disabled){var y;(y=e.onClick)===null||y===void 0||y.call(e,{e:k}),v(!d.value,{e:k,value:e.value})}},p=function(P){var k,y=P.code||((k=P.key)===null||k===void 0?void 0:k.trim()),b=Lc.test(y)||zc.test(y);b&&(P.preventDefault(),v(!d.value,{e:P,value:e.value}))},w=function(P){P.currentTarget.addEventListener("keydown",p)},C=function(P){P.currentTarget.removeEventListener("keydown",p)};return function(){var x=l("default","content");return j(Wa,_e({class:f.value,disabled:e.disabled,tabindex:e.disabled?void 0:"0",onFocus:w,onBlur:C},g.value,{onClick:h}),Hc(x)?x:{default:function(){return[x]}})}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Wc={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.9.4
* (c) 2024 tdesign
* @license MIT
*/function Kc(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!kt(t)}var Uc=oe({name:"TCheckTagGroup",props:Wc,setup:function(e,n){var r=Ce(e),a=r.value,l=r.modelValue,o=r.options,i=ve("check-tag-group"),u=I(function(){return[i.value]}),s=Je(a,l,e.defaultValue,e.onChange),c=ce(s,2),d=c[0],v=c[1],f=function(p,w){var C=w.value;if(p)e.multiple?v(d.value.concat(C),{e:w.e,type:"check",value:C}):v([C],{e:w.e,type:"check",value:C});else{var x=[];e.multiple&&(x=d.value.filter(function(P){return P!==C})),v(x,{e:w.e,type:"uncheck",value:C})}},g=function(p){return n.slots.option?n.slots.option(p):n.slots.label?n.slots.label(p):p.label?Te(p.label)?p.label(ut):p.label:p.content&&Te(p.content)?p.content(ut):p.default&&Te(p.default)?p.default(ut):p.value};return function(){return j("div",{class:u.value},[(o.value||[]).map(function(h){var p;return j(Ka,{key:h.value,value:h.value,checkedProps:e.checkedProps,uncheckedProps:e.uncheckedProps,checked:d.value.includes(h.value),onChange:f,disabled:h.disabled,size:h.size,"data-value":h.value},Kc(p=g(h))?p:{default:function(){return[p]}})})])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Gr=Se(Wa);Se(Ka);Se(Uc);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Xr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function mt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Gc(t){var e=$e(),n=ve(),r=Ce(t),a=r.value,l=r.modelValue,o=r.onRemove,i=r.max,u=r.minCollapsedNum,s=r.size,c=r.disabled,d=r.readonly,v=r.tagProps,f=r.getDragProps,g=Je(a,l,t.defaultValue||[],t.onChange),h=ce(g,2),p=h[0],w=h[1],C=K(),x=function(S){var _,E=nt(p.value),A=E.splice(S.index,1),M=ce(A,1),N=M[0];w(E,mt(mt({trigger:"tag-remove"},S),{},{item:N})),(_=o.value)===null||_===void 0||_.call(o,mt(mt({},S),{},{item:N,trigger:"tag-remove",value:E}))},P=function(S){w([],{trigger:"clear",e:S.e})},k=function(S,_){var E,A,M=S?String(S).trim():"",N=i&&((E=p.value)===null||E===void 0?void 0:E.length)>=i.value,$=p.value;!N&&M&&($=p.value instanceof Array?p.value.concat(String(M)):[M],w($,{trigger:"enter",index:$.length-1,item:M,e:_.e})),t==null||(A=t.onEnter)===null||A===void 0||A.call(t,$,mt(mt({},_),{},{inputValue:S}))},y=function(S){!p.value||!p.value.length||(C.value=S)},b=function(S,_){var E=_.e;if(!(!p.value||!p.value.length||E.key==="Process")){var A=/(Backspace|NumpadDelete)/i.test(E.code)||/(Backspace|NumpadDelete)/i.test(E.key);if(!S&&A){var M,N=p.value.length-1,$=p.value[N],T="backspace",X=p.value.slice(0,-1);w(X,{e:E,index:N,item:$,trigger:T}),(M=o.value)===null||M===void 0||M.call(o,{e:E,index:N,item:$,trigger:T,value:X})}C.value=S}},O=function(S){var _,E=S.displayNode,A=S.label,M=u.value?p.value.slice(0,u.value):p.value,N=E?[E]:(M==null||(_=M.map)===null||_===void 0?void 0:_.call(M,function(X,q){var J,H=e("tag",{params:{value:X}});return j(Gr,_e({key:"".concat(X).concat(q),size:s.value,disabled:c.value,onClose:function(R){return x({e:R.e,index:q})},closable:!d.value&&!c.value},(J=f.value)===null||J===void 0?void 0:J.call(f,q,X),v.value),{default:function(){return[H!=null?H:X]}})}))||[];if([null,void 0,""].includes(A)||N.unshift(j("div",{class:"".concat(n.value,"-tag-input__prefix"),key:"label"},[A])),M.length!==(p.value||[]).length){var $=p.value.length-M.length,T=e("collapsedItems",{params:{value:p.value,count:p.value.length-u.value,collapsedTags:p.value.slice(u.value,p.value.length),collapsedSelectedItems:p.value.slice(u.value,p.value.length),onClose:x}});N.push(T!=null?T:j(Gr,{key:"more",size:s.value},{default:function(){return["+",$]}}))}return N};return{tagValue:p,clearAll:P,onClose:x,onInnerEnter:k,onInputBackspaceKeyUp:y,onInputBackspaceKeyDown:b,renderLabel:O}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Xc(t){var e=t.disabled,n=t.readonly,r=t.onMouseenter,a=t.onMouseleave,l=K(!1),o=function(s){n||e||(l.value=!0,r==null||r(s))},i=function(s){n||e||(l.value=!1,a==null||a(s))};return{isHover:l,addHover:o,cancelHover:i}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Yc(t){var e=t.sortOnDraggable,n=t.onDragSort,r=t.onDragOverCheck,a=K(-1),l=K(null),o=K(null),i=_n({nodeX:0,nodeWidth:0,mouseX:0}),u=function(g,h,p){if(g.preventDefault(),!(a.value===h||a.value===-1)){var w=g.target;if(!(r!=null&&r.targetClassNameRegExp&&!(r!=null&&r.targetClassNameRegExp.test(w.className)))){if(r!=null&&r.x&&w){if(!i.nodeWidth)return;var C=w.getBoundingClientRect(),x=C.x,P=C.width,k=x+P/2,y=g.clientX-(i.mouseX-i.nodeX),b=y+i.nodeWidth,O=!1;if(y>x&&y<x+P?O=y<k:O=b>k,!O)return}n==null||n({currentIndex:a.value,current:l,target:p,targetIndex:h}),a.value=h}}};if(!e)return{};function s(f,g,h){a.value=g,l.value=h;var p=f.target;if(r&&p){var w=p.getBoundingClientRect(),C=w.x,x=w.width;i.nodeX=C,i.nodeWidth=x,i.mouseX=f.clientX}}function c(){o.value=!0}function d(){o.value,o.value=!1,a.value=-1,l.value=null}function v(f,g){return e?{draggable:!0,onDragstart:function(p){s(p,f,g)},onDragover:function(p){u(p,f,g)},onDrop:function(){c()},onDragend:function(){d()}}:{}}return{onDragStart:s,onDragOver:u,onDrop:c,onDragEnd:d,getDragProps:v,dragging:a.value!==-1}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Yr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function it(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var qc=function(){return{NAME_CLASS:ve("tag-input"),CLEAR_CLASS:ve("tag-input__suffix-clear"),BREAK_LINE_CLASS:ve("tag-input--break-line")}},Jc=oe({name:"TTagInput",props:it({},fc),setup:function(e){var n=qc(),r=n.NAME_CLASS,a=n.CLEAR_CLASS,l=n.BREAK_LINE_CLASS,o=Ht({CloseCircleFilledIcon:_l}),i=o.CloseCircleFilledIcon,u=Ce(e),s=u.inputValue,c=u.inputProps,d=xt(s,e.defaultInputValue,e.onInputChange,"inputValue"),v=ce(d,2),f=v[0],g=v[1],h=Ce(e),p=h.excessTagsDisplayType,w=h.readonly,C=h.disabled,x=h.clearable,P=h.placeholder,k=Xc({readonly:e.readonly,disabled:e.disabled,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave}),y=k.isHover,b=k.addHover,O=k.cancelHover,m=K(!1),S=jt(),_=S.classPrefix,E=K(!1),A=Yc(it(it({},e),{},{sortOnDraggable:e.dragSort,onDragOverCheck:{x:!0,targetClassNameRegExp:new RegExp("^".concat(_.value,"-tag"))}})),M=A.getDragProps,N=dc(e),$=N.scrollToRight,T=N.onWheel,X=N.scrollToRightOnEnter,q=N.scrollToLeftOnLeave,J=N.tagInputRef,H=N.isScrollable,F=Gc(_n(it(it({},Ce(e)),{},{getDragProps:M}))),R=F.tagValue,V=F.onInnerEnter,z=F.onInputBackspaceKeyUp,Q=F.onInputBackspaceKeyDown,D=F.clearAll,U=F.renderLabel,Z=F.onClose,ee=I(function(){var se=!(De(R.value)&&R.value.length);return[r.value,W(W(W({},l.value,p.value==="break-line"),"".concat(_.value,"-is-empty"),se),"".concat(_.value,"-tag-input--with-tag"),!se)]}),ae=I(function(){var se;return(se=R.value)!==null&&se!==void 0&&se.length?"":P.value}),de=I(function(){var se;return Boolean(!w.value&&!C.value&&x.value&&y.value&&(((se=R.value)===null||se===void 0?void 0:se.length)||f.value))}),ie=function(ue,L){var B,G;(B=L.e)===null||B===void 0||(G=B.preventDefault)===null||G===void 0||G.call(B),g("",{e:L.e,trigger:"enter"}),!m.value&&V(ue,L),yt(function(){$(),m.value=!1})},ne=function(ue,L){var B,G;m.value=!0,(B=c.value)===null||B===void 0||(G=B.onCompositionstart)===null||G===void 0||G.call(B,ue,L)},te=function(ue,L){var B,G;m.value=!1,(B=c.value)===null||B===void 0||(G=B.onCompositionend)===null||G===void 0||G.call(B,ue,L)},be=function(ue){var L;C.value||(E.value=!0,J.value.focus(),(L=e.onClick)===null||L===void 0||L.call(e,ue))},he=function(ue){var L;D(ue),g("",{e:ue.e,trigger:"clear"}),(L=e.onClear)===null||L===void 0||L.call(e,ue)},le=function(){J.value.focus()},Ze=function(){J.value.blur()},me=function(ue){b(ue),X()},Qe=function(ue){O(ue),q()},pt=function(ue,L){var B;E.value||(E.value=!0,(B=e.onFocus)===null||B===void 0||B.call(e,R.value,{e:L.e,inputValue:ue}))},ht=function(ue,L){var B;E.value=!1,g("",{e:L.e,trigger:"blur"}),(B=e.onBlur)===null||B===void 0||B.call(e,R.value,{e:L.e,inputValue:ue})},lt=function(ue,L){g(ue,it(it({},L),{},{trigger:"input"}))};return fe(function(){return H.value},function(se){if(e.excessTagsDisplayType==="scroll"){var ue="".concat(_.value,"-input__prefix"),L=J.value.$el.querySelector(".".concat(ue));se?L.classList.add("".concat(ue,"--scrollable")):L.classList.remove("".concat(ue,"--scrollable"))}}),{CLEAR_CLASS:a,CloseCircleFilledIcon:i,tagValue:R,tInputValue:f,isHover:y,tagInputPlaceholder:ae,showClearIcon:de,tagInputRef:J,classPrefix:_,isFocused:E,focus:le,blur:Ze,setTInputValue:g,onMouseEnter:me,onMouseLeave:Qe,onInnerFocus:pt,onInnerBlur:ht,onInnerChange:lt,addHover:b,cancelHover:O,onInputEnter:ie,onInnerEnter:V,onInputBackspaceKeyUp:z,onInputBackspaceKeyDown:Q,renderLabel:U,onWheel:T,scrollToRightOnEnter:X,scrollToLeftOnLeave:q,onClick:be,onClearClick:he,onClose:Z,onInputCompositionstart:ne,onInputCompositionend:te,classes:ee}},render:function(){var e=t
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Zc=Se(Jc);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Qc=["tips"];function qr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function He(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var es={label:"label",key:"key",children:"children"};function ts(t,e,n){var r=Ce(t),a=r.inputValue,l=ve(),o=K(),i=K(t.autofocus),u=xt(a,t.defaultInputValue,t.onInputChange,"inputValue"),s=ce(u,2),c=s[0],d=s[1],v=Et(),f=I(function(){return He(He({},es),t.keys)}),g=I(function(){return t.value instanceof Array?t.value.map(function(y){return Ee(y)?y[f.value.label]:y}):Ee(t.value)?[t.value[f.value.label]]:[t.value]}),h=I(function(){return!g.value||!g.value.length?t.placeholder:""}),p=function(b,O){var m;if(O.trigger==="tag-remove"){var S;(S=O.e)===null||S===void 0||S.stopPropagation()}(m=t.onTagChange)===null||m===void 0||m.call(t,b,O)},w=function(b,O){O.trigger==="enter"||O.trigger==="blur"||d(b,{trigger:O.trigger,e:O.e})},C=function(b,O){var m,S,_=(m=n.value)===null||m===void 0?void 0:m.getOverlayState();_!=null&&_.hover||(i.value=!1,(S=t.onBlur)===null||S===void 0||S.call(t,t.value,He(He({},O),{},{tagInputValue:b})))},x=function(b,O){var m,S,_=(m=n.value)===null||m===void 0?void 0:m.getOverlayState();if(!(i.value||_!=null&&_.hover)){i.value=!0;var E=He(He({},O),{},{tagInputValue:b});(S=t.onFocus)===null||S===void 0||S.call(t,t.value,E)}},P=function(b,O){var m,S=He(He({},O),{},{tagInputValue:b});(m=t.onEnter)===null||m===void 0||m.call(t,t.value,S)},k=function(b){var O=He(He({},b.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:g.value,valueDisplay:t.valueDisplay,inputValue:b.popupVisible&&b.allowInput?c.value:"",inputProps:He({readonly:!t.allowInput||t.readonly,inputClass:W({},"".concat(l.value,"-input--focused"),b.popupVisible)},t.inputProps),suffixIcon:!v.value&&t.loading?function(){return j(fa,{loading:!0,size:"small"},null)}:t.suffixIcon},t.tagInputProps),m=e.slots;m.tips;var S=an(m,Qc);return j(Zc,_e({ref:o},O,{onInputChange:w,onChange:p,onClear:b.onInnerClear,onBlur:C,onEnter:P,onFocus:x}),S)};return{tags:g,tPlaceholder:h,tagInputRef:o,isMultipleFocus:i,multipleInputValue:c,renderSelectMultiple:k}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Jr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Zr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ns=1e3,rs=0;function as(t){var e=Ce(t),n=e.popupProps,r=e.autoWidth,a=K(!1),l=Et(),o=function(d,v){var f=v.scrollHeight>v.offsetHeight?rs:0,g=v.offsetWidth+f>=d.offsetWidth?v.offsetWidth:d.offsetWidth,h={};return n.value&&kn(n.value.overlayInnerStyle)==="object"&&!n.value.overlayInnerStyle.width&&(h=n.value.overlayInnerStyle),Zr({width:"".concat(Math.min(g,ns),"px")},h)},i=function(d,v){if(!(l.value||t.readonly)){var f=v.trigger==="trigger-element-click"&&t.allowInput?!0:d;if(t.popupVisible!==f){var g;a.value=f,(g=t.onPopupVisibleChange)===null||g===void 0||g.call(t,f,v)}}},u=function(d,v){var f;return Zr({width:"".concat(Math.max(d.offsetWidth,v.offsetWidth),"px")},(f=n.value)===null||f===void 0?void 0:f.overlayInnerStyle)},s=I(function(){var c,d={},v=((c=n.value)===null||c===void 0?void 0:c.overlayInnerStyle)||{};return Te(v)||Ee(v)&&v.width?d=v:r.value?d=u:d=o,d});return{tOverlayInnerStyle:s,innerPopupVisible:a,onInnerPopupVisibleChange:i}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Qr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function tt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ls=function(){return{NAME_CLASS:ve("select-input"),BASE_CLASS_BORDERLESS:ve("select-input--borderless"),BASE_CLASS_MULTIPLE:ve("select-input--multiple"),BASE_CLASS_POPUP_VISIBLE:ve("select-input--popup-visible"),BASE_CLASS_EMPTY:ve("select-input--empty")}},is=oe({name:"TSelectInput",props:tt(tt({},ic),{},{valueDisplayOptions:{type:Object}}),setup:function(e,n){var r=ls(),a=r.NAME_CLASS,l=r.BASE_CLASS_BORDERLESS,o=r.BASE_CLASS_MULTIPLE,i=r.BASE_CLASS_POPUP_VISIBLE,u=r.BASE_CLASS_EMPTY,s=ve(),c=$e(),d=K(),v=K(),f=Ce(e),g=f.multiple,h=f.value,p=f.popupVisible,w=f.borderless,C=as(e),x=C.tOverlayInnerStyle,P=C.innerPopupVisible,k=C.onInnerPopupVisibleChange,y=vc(e,n,v),b=y.isSingleFocus,O=y.commonInputProps,m=y.onInnerClear,S=y.renderSelectSingle,_=ts(e,n,v),E=_.isMultipleFocus,A=_.tagInputRef,M=_.renderSelectMultiple,N=I(function(){return e.multiple?E.value:b.value}),$=I(function(){var q;return["".concat(a.value),W(W(W(W({},o.value,g.value),l.value,w.value),i.value,(q=p.value)!==null&&q!==void 0?q:P.value),u.value,h.value instanceof Array?!h.value.length:!h.value)]}),T=function(J){var H,F=J.code||((H=J.key)===null||H===void 0?void 0:H.trim());if(/(ArrowDown|ArrowUp)/.test(F)&&!p.value){var R,V=tt(tt({},n),{},{trigger:"trigger-element-focus"});(R=e.onPopupVisibleChange)===null||R===void 0||R.call(e,!0,V)}};fe([N],function(q){var J=ce(q,1),H=J[0];p.value||(H?d.value.addEventListener("keydown",T):d.value.removeEventListener("keydown",T))}),qe(function(){!p.value&&N&&d.value.addEventListener("keydown",T)}),rn(function(){d.value.removeEventListener("keydown",T)});var X=function(J){var H,F;(H=J.e)===null||H===void 0||H.stopPropagation(),!(J.e.target.tabIndex>=0)&&e.multiple&&((F=A.value)===null||F===void 0||F.focus())};return{classPrefix:s,NAME_CLASS:a,innerPopupVisible:P,commonInputProps:O,tOverlayInnerStyle:x,selectInputRef:d,popupRef:v,classes:$,onInnerClear:m,renderTNodeJSX:c,renderSelectSingle:S,renderSelectMultiple:M,onOverlayClick:X,onInnerPopupVisibleChange:k}},render:function(){var e,n,r=this,a={visible:(e=this.popupVisible)!==null&&e!==void 0?e:this.innerPopupVisible},l=j(Ra,_e({ref:"popupRef",trigger:((n=this.popupProps)===null||n===void 0?void 0:n.trigger)||"click",placement:"bottom-left"},a,{content:this.panel,hideEmptyPopup:!0},tt(tt({onVisibleChange:this.onInnerPopupVisibleChange,onOverlayClick:this.onOverlayClick},this.popupProps),{},{overlayInnerStyle:this.tOverlayInnerStyle})),tt({default:function(){return[r.multiple?r.renderSelectMultiple({commonInputProps:r.commonInputProps,onInnerClear:r.onInnerClear,popupVisible:a.visible,allowInput:r.allowInput}):r.renderSelectSingle(a.visible)]}},tt(tt({},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 j("div",{ref:"selectInputRef",class:this.classes},[l,o&&j("div",{class:i},[o])])}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var os=Se(is);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var us={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.9.4
* (c) 2024 tdesign
* @license MIT
*/var cs={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.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ua=Symbol("CheckboxGroupProvide");/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ss(t,e,n,r){if(typeof window>"u")return null;if(!window||!window.IntersectionObserver)return n(),null;var a=null;try{a=new window.IntersectionObserver(function(l){var o=l[0];o.isIntersecting&&(n(),a.unobserve(t))},{rootMargin:"0px 0px ".concat(r,"px 0px"),root:e}),a.observe(t)}catch(l){console.error(l),n()}return a}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function vs(t,e){var n=K(),r=K(!0),a=function(){if(!!e.value){r.value=!1;var o=ss(t.value,null,function(){r.value=!0},0);n.value=o}};return qe(a),fe([e,t],a),rn(function(){!e.value||n.value.unobserve(t.value)}),{showCheckbox:r}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function fs(t){var e=function(l){var o=Wr.test(l.key)||Wr.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)},r=function(l){l.currentTarget.removeEventListener("keydown",e)};return{onCheckboxFocus:n,onCheckboxBlur:r}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ea(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function ta(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ea(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ga=oe({name:"TCheckbox",props:ta(ta({},cs),{},{needRipple:Boolean,stopLabelTrigger:Boolean,index:Number,data:Object}),setup:function(e){var n=K();e.needRipple&&ya(n);var r=dt(),a=r.STATUS,l=Ce(e),o=l.checked,i=l.modelValue,u=l.lazyLoad,s=Je(o,i,e.defaultChecked,e.onChange,"checked"),c=ce(s,2),d=c[0],v=c[1],f=Ot(Ua,void 0),g=K();fe(function(){return[e.name,f==null?void 0:f.value.name].join("_")},function(){var N=e.name||(f==null?void 0:f.value.name);N&&(g.value=N)},{immediate:!0});var h=K(!1),p=function(){var $=e.value,T=e.checkAll;return T?f==null?void 0:f.value.isCheckAll:f!=null&&f.value?f.value.checkedValues.includes($):d.value};fe(function(){var N;return[d.value,f==null?void 0:f.value.isCheckAll,f==null||(N=f.value.checkedValues)===null||N===void 0?void 0:N.join(",")]},function(){h.value=p()},{immediate:!0});var w=I(function(){return!e.checkAll&&!h.value&&f!==null&&f!==void 0&&f.value.maxExceeded?!0:null}),C=I(function(){return f==null?void 0:f.value.disabled}),x=Il({beforeDisabled:w,afterDisabled:C}),P=K(!1);fe(function(){return[e.checkAll,e.indeterminate,f==null?void 0:f.value.indeterminate]},function(){P.value=e.checkAll?f==null?void 0:f.value.indeterminate:e.indeterminate},{immediate:!0});var k=ve("checkbox"),y=K({});fe([h,x,P],function(){y.value=["".concat(k.value),W(W(W({},a.value.checked,h.value),a.value.disabled,x.value),a.value.indeterminate,P.value)]},{immediate:!0});var b=function($){if(!e.readonly){var T=!h.value;v(T,{e:$}),f!=null&&f.value.handleCheckboxChange&&f.value.onCheckedChange({checked:T,checkAll:e.checkAll,e:$,option:e})}},O=Nt(),m=function($){e.stopLabelTrigger&&$.preventDefault()},S=vs(n,u),_=S.showCheckbox,E=fs(b),A=E.onCheckboxFocus,M=E.onCheckboxBlur;return function(){return j("label",{ref:n,class:y.value,tabindex:x.value?void 0:"0",onFocus:A,onBlur:M},[_.value?[j("input",{type:"checkbox",tabindex:"-1",class:"".concat(k.value,"__former"),disabled:x.value,readonly:e.readonly,indeterminate:P.value,name:g.value,value:e.value?e.value:void 0,checked:h.value,onChange:b,key:"input"},null),j("span",{class:"".concat(k.value,"__input"),key:"input-span"},null),j("span",{class:"".concat(k.value,"__label"),key:"label",onClick:m},[O("default","label")])]:null])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ds={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.9.4
* (c) 2024 tdesign
* @license MIT
*/var ps=oe({name:"TCheckboxGroup",props:ds,setup:function(e){var n=ve("checkbox-group"),r=$e(),a=Array.isArray,l=Ce(e),o=l.value,i=l.modelValue,u=Je(o,i,e.defaultValue,e.onChange),s=ce(u,2),c=s[0],d=s[1],v=K([]),f=I(function(){if(!a(c.value))return 0;var b=v.value.map(function(m){return m.value}),O=Sn(c.value,b);return O.length}),g=I(function(){var b=v.value.filter(function(m){return!m.disabled&&!m.checkAll}).map(function(m){return m.value}),O=Sn(b,c.value);return O.length===b.length}),h=I(function(){return!g.value&&f.value<v.value.length&&f.value!==0}),p=I(function(){return!An(e.max)&&c.value.length===e.max});gl(function(){if(!e.options)return[];v.value=e.options.map(function(b){return Ee(b)?b:{label:String(b),value:b}})});var w=function(){for(var O=new Set,m=0,S=v.value.length;m<S;m++){var _=v.value[m];if(!_.checkAll&&!_.disabled&&(O.add(_.value),p.value))break}return nt(O)},C=function(O,m){var S=O?w():[];d(S,{e:m.e,type:O?"check":"uncheck",current:void 0,option:void 0})},x=function(O){var m=O.option.value;if(!a(c.value)){console.warn("TDesign CheckboxGroup Warn: `value` must be an array, instead of ".concat(kn(c.value)));return}var S=nt(c.value);if(O.checked)S.push(m);else{var _=S.indexOf(m);S.splice(_,1)}d(S,{e:O.e,current:O.option.value,option:O.option,type:O.checked?"check":"uncheck"})},P=function(O){var m=O.checked,S=O.checkAll,_=O.e;S?C(m,{e:_}):x(O)},k=Pa(),y=function(){var O=k("Checkbox"),m=[];return O==null||O.forEach(function(S){var _=S.props;!_||((_["check-all"]===""||_["check-all"]===!0)&&(_.checkAll=!0),m.push(_))}),m};return Jt(Ua,I(function(){return{name:e.name,isCheckAll:g.value,checkedValues:c.value||[],maxExceeded:p.value,disabled:e.disabled,indeterminate:h.value,handleCheckboxChange:x,onCheckedChange:P}})),function(){var b,O=null;if((b=e.options)!==null&&b!==void 0&&b.length){var m;O=(m=v.value)===null||m===void 0?void 0:m.map(function(_,E){var A;return j(Ga,_e({key:"".concat(_.value||"").concat(E),lazyLoad:e.lazyLoad},_,{index:E,checked:(A=c.value)===null||A===void 0?void 0:A.includes(_.value),data:_}),null)})}else{var S=r("default");v.value=y(),O=S}return j("div",{class:n.value,role:"group","aria-label":"checkbox-group"},[O])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var hs=Se(Ga),Mv=Se(ps);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function gs(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=bs(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(s){throw s},f:a}}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 s=n.next();return l=s.done,s},e:function(s){o=!0,i=s},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(o)throw i}}}}function bs(t,e){if(!!t){if(typeof t=="string")return na(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 na(t,e)}}function na(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var un=Symbol("selectProvide"),Pn=function(e,n){var r=n.value.get(e);return(r==null?void 0:r.label)||(e==null?void 0:e.toString())},ms=function(e,n){var r=[],a=gs(e),l;try{for(a.s();!(l=a.n()).done;){var o=l.value,i=Pn(o,n);i&&r.push(i)}}catch(u){a.e(u)}finally{a.f()}return r},Xa=function(e,n){var r=ba(e),a=r.indexOf(n);return a<0?r.push(n):r.splice(a,1),{value:r,isCheck:a<0}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ra(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function aa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ra(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ra(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ys(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!kt(t)}var xn=oe({name:"TOption",props:aa(aa({},us),{},{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 r=Ot(un),a=Et(),l=I(function(){return r.value.max!==0&&r.value.max<=r.value.selectValue.length}),o=I(function(){return a.value||e.multiple&&l.value&&!g.value&&!r.value.isCheckAll}),i=Nt(),u=ve("select"),s=dt(),c=s.STATUS,d=s.SIZE,v=K(),f=K(!1),g=I(function(){return r.value.isCheckAll&&!e.disabled?!0:e.multiple?r.value.selectValue.includes(e.value):r.value.selectValue===e.value}),h=I(function(){return e.checkAll?r.value.indeterminate:!1}),p=I(function(){return["".concat(u.value,"-option"),[d.value[r.value.size]],W(W(W({},c.value.disabled,o.value),c.value.selected,g.value),"".concat(u.value,"-option__hover"),(f.value||r.value.hoverIndex===e.index)&&!o.value)]}),w=I(function(){return e.label||e.value}),C=function(k){if(!(e.disabled||o.value)){if(e.multiple){x(!g.value,{e:k}),k.preventDefault();return}if(e.createAble){var y,b;if((y=(b=r.value).handleCreate)===null||y===void 0||y.call(b,e.value),r.value.multiple){r.value.handleValueChange([].concat(nt(r.value.selectValue),[e.value]),{selectedOptions:r.value.getSelectedOptions(),trigger:"check",e:k});return}}var O=r.value.getSelectedOptions(e.value);r.value.handleValueChange(e.value,{option:O==null?void 0:O[0],selectedOptions:O,trigger:"check",e:k}),r.value.handlePopupVisibleChange(!1,{e:k})}},x=function(k,y){if(e.checkAll){r.value.onCheckAllChange(k);return}var b=Xa(r.value.selectValue,e.value),O=r.value.getSelectedOptions(b.value);r.value.handleValueChange(b.value,{option:O.find(function(m){return m.value===e.value}),selectedOptions:O,trigger:k?"check":"uncheck",e:y.e}),r.value.reserveKeyword||r.value.handlerInputChange("")};return qe(function(){var P=e.trs,k=e.rowIndex,y=e.isVirtual;y&&(P.set(k,v.value),n.emit("row-mounted"))}),rn(function(){if(e.isVirtual){var P=e.trs,k=e.rowIndex;P.delete(k)}}),ya(v),function(){var P=i("default","content")||w.value;return j("li",{ref:v,class:p.value,title:e.title||"".concat(w.value),onMouseenter:function(){return f.value=!0},onMouseleave:function(){return f.value=!1},onClick:C},[r&&e.multiple?j(hs,{checked:g.value,disabled:o.value,onChange:x,indeterminate:h.value},ys(P)?P:{default:function(){return[P]}}):j("span",null,[P])])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Os={divider:{type:Boolean,default:!0},label:{type:String,default:""}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function la(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Cs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?la(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ya=oe({name:"TOptionGroup",props:Cs({},Os),setup:function(e){var n=Ot(un),r=ve("select-option-group"),a=dt(),l=a.SIZE,o=$e(),i=I(function(){return[r.value,l.value[n.value.size],W({},"".concat(r.value,"__divider"),e.divider)]});return function(){return j("li",{class:i.value},[j("div",{class:"".concat(r.value,"__header")},[e.label]),o("default")])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var je={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.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ss=function(e){var n,r,a,l,o,i=I(function(){var m,S,_;return((m=e.scroll)===null||m===void 0?void 0:m.type)==="virtual"&&((S=e.options.value)===null||S===void 0?void 0:S.length)>(((_=e.scroll)===null||_===void 0?void 0:_.threshold)||100)}),u=((n=e.scroll)===null||n===void 0?void 0:n.type)==="virtual"?Ro({container:e.popupContentRef,data:e.options,fixedHeight:((r=e.scroll)===null||r===void 0?void 0:r.isFixedRowHeight)||!1,lineHeight:((a=e.scroll)===null||a===void 0?void 0:a.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}):{},s=u.trs,c=s===void 0?null:s,d=u.visibleData,v=d===void 0?null:d,f=u.handleScroll,g=f===void 0?null:f,h=u.scrollHeight,p=h===void 0?null:h,w=u.translateY,C=w===void 0?null:w,x=u.handleRowMounted,P=x===void 0?null:x,k=-1,y=function(S){if(!!i.value){var _=S.target,E=_.scrollTop;Math.abs(k-E)>5?(g(),k=E):k=-1}};qe(function(){var m;(m=e.popupContentRef.value)===null||m===void 0||m.addEventListener("scroll",y)}),rn(function(){var m;(m=e.popupContentRef.value)===null||m===void 0||m.removeEventListener("scroll",y)});var b=I(function(){return{position:"absolute",width:"1px",height:"1px",transition:"transform 0.2s",transform:"translate(0, ".concat(p.value,"px)"),"-ms-transform":"translate(0, ".concat(p.value,"px)"),"-moz-transform":"translate(0, ".concat(p.value,"px)"),"-webkit-transform":"translate(0, ".concat(p.value,"px)")}}),O=I(function(){return{transform:"translate(0, ".concat(C.value,"px)"),"-ms-transform":"translate(0, ".concat(C.value,"px)"),"-moz-transform":"translate(0, ".concat(C.value,"px)"),"-webkit-transform":"translate(0, ".concat(C.value,"px)")}});return{trs:c,scrollHeight:p,translateY:C,visibleData:v,handleRowMounted:P,isVirtual:i,cursorStyle:b,panelStyle:O}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ws(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!kt(t)}var Ps=oe({name:"TSelectPanel",props:{inputValue:je.inputValue,panelTopContent:je.panelTopContent,panelBottomContent:je.panelBottomContent,empty:je.empty,creatable:je.creatable,loading:je.loading,loadingText:je.loadingText,multiple:je.multiple,filterable:je.filterable,filter:je.filter,scroll:je.scroll,size:je.size},setup:function(e,n){var r=n.expose,a=ve("select"),l=$e(),o=Sl(),i=jt("select"),u=i.t,s=i.globalConfig,c=Ot(un),d=K(null),v=I(function(){return c.value.popupContentRef.value}),f=I(function(){return e.creatable&&e.filterable&&e.inputValue}),g=I(function(){return c.value.displayOptions}),h=Ss({scroll:e.scroll,popupContentRef:v,options:g}),p=h.trs,w=h.visibleData,C=h.handleRowMounted,x=h.isVirtual,P=h.panelStyle,k=h.cursorStyle,y=I(function(){return!g.value.length}),b=function(){return j("ul",{class:["".concat(a.value,"__create-option"),"".concat(a.value,"__list")]},[j(xn,{value:e.inputValue,label:"".concat(e.inputValue),createAble:!0,class:"".concat(a.value,"__create-option--special")},null)])},O=function _(E){return j("ul",{class:"".concat(a.value,"__list")},[E.map(function(A,M){var N,$;if(A.group){var T;return j(Ya,{label:A.group,divider:A.divider},ws(T=_(A.children))?T:{default:function(){return[T]}})}return j(xn,_e(ma(A,"index","$index","className","tagName"),x.value?{rowIndex:A.$index,trs:p,scrollType:(N=e.scroll)===null||N===void 0?void 0:N.type,isVirtual:x.value,bufferSize:($=e.scroll)===null||$===void 0?void 0:$.bufferSize,key:"".concat(A.$index||"","_").concat(M)}:{key:"".concat(M,"_").concat(A.value)},{index:M,multiple:e.multiple,onRowMounted:C}),A.slots)})])},m=I(function(){return{small:"s",medium:"m",large:"l"}[c.value.size]});r({innerRef:d,visibleData:w,isVirtual:x,displayOptions:g});var S=function(E,A){return j("div",{ref:d,class:["".concat(a.value,"__dropdown-inner"),"".concat(a.value,"__dropdown-inner--size-").concat(m.value)],style:A},[f.value&&b(),e.loading&&o("loadingText",{defaultNode:j("div",{class:"".concat(a.value,"__loading-tips")},[u(s.value.loadingText)])}),!e.loading&&y.value&&!f.value&&o("empty",{defaultNode:j("div",{class:"".concat(a.value,"__empty")},[u(s.value.empty)])}),!y.value&&!e.loading&&O(E)])};return{renderPanel:S,panelStyle:P,cursorStyle:k,isVirtual:x,displayOptions:g,visibleData:w,renderTNodeJSX:l}},render:function(){return this.isVirtual?j(st,null,[this.renderTNodeJSX("panelTopContent"),j("div",null,[j("div",{style:this.cursorStyle},null),this.renderPanel(this.visibleData,this.panelStyle)]),this.renderTNodeJSX("panelBottomContent")]):j(st,null,[this.renderTNodeJSX("panelTopContent"),this.renderPanel(this.displayOptions),this.renderTNodeJSX("panelBottomContent")])}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Yt(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=xs(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(s){throw s},f:a}}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 s=n.next();return l=s.done,s},e:function(s){o=!0,i=s},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(o)throw i}}}}function xs(t,e){if(!!t){if(typeof t=="string")return ia(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 ia(t,e)}}function ia(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function oa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Me(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oa(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _s=function(e,n,r){var a=Pa(),l=K([]),o=I(function(){var c,d=0,v=((c=e.options)===null||c===void 0?void 0:c.map(function(A){var M=function($){var T=n.value,X=T.value,q=T.label,J=T.disabled,H=Me(Me({},$),{},{index:d,label:Dt($,q),value:Dt($,X),disabled:Dt($,J)});return d++,H};return A.group&&A.children?Me(Me({},A),{},{children:A.children.map(function(N){return M(N)})}):M(A)}))||[],f=a("Option"),g=a("OptionGroup");if(De(g)){var h=Yt(g),p;try{for(h.s();!(p=h.n()).done;){var w,C,x,P=p.value,k=Me(Me({group:(w=P.props)===null||w===void 0?void 0:w.label},P.props),{},{children:[]}),y=P.children.default();if(!!(De(y)&&!!((C=y[0])!==null&&C!==void 0&&C.children))){var b=Yt(y==null||(x=y[0])===null||x===void 0?void 0:x.children),O;try{for(b.s();!(O=b.n()).done;){var m=O.value;k.children.push(Me(Me({},m.props),{},{slots:m.children,index:d})),d++}}catch(A){b.e(A)}finally{b.f()}v.push(k)}}}catch(A){h.e(A)}finally{h.f()}}if(De(f)){var S=Yt(f),_;try{for(S.s();!(_=S.n()).done;){var E=_.value;v.push(Me(Me({},E.props),{},{slots:E.children,index:d})),d++}}catch(A){S.e(A)}finally{S.f()}}return v}),i=I(function(){var c=[],d=function v(f){var g=Yt(f),h;try{for(g.s();!(h=g.n()).done;){var p=h.value;p.group?v(p.children):c.push(p)}}catch(w){g.e(w)}finally{g.f()}};return d(o.value),c}),u=I(function(){var c=new Map;return l.value.concat(i.value).forEach(function(d){c.set(d.value,d)}),c}),s=I(function(){if(e.onSearch&&e.filterable||!r.value||!(e.filterable||Te(e.filter)))return o.value;var c=function(f){var g,h;return Te(e.filter)?e.filter("".concat(r.value),f):((g=f.label)===null||g===void 0||(h=g.toLowerCase)===null||h===void 0?void 0:h.call(g).indexOf("".concat(r.value).toLowerCase()))>-1},d=[];return o.value.forEach(function(v){v.group&&v.children&&d.push(Me(Me({},v),{},{children:v.children.filter(c)})),c(v)&&d.push(v)}),d});return{options:o,optionsMap:u,optionsList:i,optionsCache:l,displayOptions:s}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Is(t){var e=t.displayOptions,n=t.optionsList,r=t.innerPopupVisible,a=t.setInnerPopupVisible,l=t.selectPanelRef,o=t.isFilterable,i=t.getSelectedOptions,u=t.setInnerValue,s=t.innerValue,c=t.popupContentRef,d=t.multiple,v=t.max,f=K(-1),g=K([]),h=K([]),p=ve(),w=function(x){var P,k,y=e.value.length,b=f.value;switch(x.code){case"ArrowUp":x.preventDefault(),f.value===-1?b=0:f.value===0||f.value>e.value.length-1?b=y-1:b--,(P=n.value[b])!==null&&P!==void 0&&P.disabled&&b--,f.value=b;break;case"ArrowDown":x.preventDefault(),f.value===-1||f.value>=y-1?b=0:b++,(k=n.value[b])!==null&&k!==void 0&&k.disabled&&b++,f.value=b;break;case"Enter":if(f.value===-1)break;var O=l.value.isVirtual&&o.value&&h.value.length?h.value:g.value;if(O.length||(O=n.value),!r.value){a(!0,{e:x});break}if(d){var S;if(f.value===-1)return;var _=(S=O[f.value])===null||S===void 0?void 0:S.value;if(!_)return;var E=Xa(s.value,_);if(v>0&&E.value.length>v)return;var A=i(E.value);u(E.value,{option:A.find(function(M){return M.value==_}),selectedOptions:A,trigger:E.isCheck?"check":"uncheck",e:x})}else{var m=i(O[f.value].value);u(O[f.value].value,{option:m==null?void 0:m[0],selectedOptions:i(O[f.value].value),trigger:"check",e:x}),a(!1,{e:x})}break;case"Escape":a(!1,{e:x});break}};return fe(r,function(C){C&&(f.value=-1,h.value=[],g.value=[])}),fe(f,function(C){var x,P=(x=l.value)===null||x===void 0||(x=x.innerRef)===null||x===void 0?void 0:x.querySelector(".".concat(p.value,"-select-option")).clientHeight,k=P*C;c.value.scrollTo({top:k,behavior:"smooth"})}),{hoverIndex:f,handleKeyDown:w,virtualFilteredOptions:h,filteredOptions:g}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ks=["overlayClassName"];function js(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ns(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(s){throw s},f:a}}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 s=n.next();return l=s.done,s},e:function(s){o=!0,i=s},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(o)throw i}}}}function Ns(t,e){if(!!t){if(typeof t=="string")return ua(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 ua(t,e)}}function ua(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ca(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ge(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ca(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Es=oe({name:"TSelect",props:Ge(Ge({},je),{},{valueDisplayOptions:{type:Object}}),setup:function(e,n){var r=n.slots,a=ve(),l=Et(),o=$e(),i=ve("select"),u=jt("select"),s=u.globalConfig,c=u.t,d=Ce(e),v=d.popupVisible,f=d.inputValue,g=d.modelValue,h=d.value,p=xt(f,e.defaultInputValue,e.onInputChange,"inputValue"),w=ce(p,2),C=w[0],x=w[1],P=Je(h,g,e.defaultValue,e.onChange),k=ce(P,2),y=k[0],b=k[1],O=K(null),m=K(null),S=I(function(){var L,B,G;return{label:((L=e.keys)===null||L===void 0?void 0:L.label)||"label",value:((B=e.keys)===null||B===void 0?void 0:B.value)||"value",disabled:((G=e.keys)===null||G===void 0?void 0:G.disabled)||"disabled"}}),_=_s(e,S,C),E=_.optionsMap,A=_.optionsList,M=_.optionsCache,N=_.displayOptions,$=I(function(){return y.value===void 0?e.multiple?[]:void 0:e.valueType==="object"?e.multiple?y.value.map(function(L){return L[S.value.value]}):y.value[S.value.value]:y.value}),T=function(B,G){if(e.valueType==="object"){var re=S.value,pe=re.value,Oe=re.label,ye=function(gt){if(gt!==void 0){var Ut=E.value.get(gt);return W(W({},pe,Dt(Ut,pe)),Oe,Dt(Ut,Oe))}};B=e.multiple?B.map(function(Ie){return ye(Ie)}):ye(B)}B!==y.value&&b(B,Ge({selectedOptions:ee(B)},G))},X=xt(v,!1,function(L,B){var G;(G=e.onPopupVisibleChange)===null||G===void 0||G.call(e,L,B)},"popupVisible"),q=ce(X,2),J=q[0],H=q[1],F=I(function(){var L;return(L=!e.multiple&&J.value&&Pn($.value,E)||e.placeholder)!==null&&L!==void 0?L:c(s.value.placeholder)}),R=I(function(){return e.multiple?ms($.value,E):Pn($.value,E)}),V=I(function(){var L=e.multiple&&De($.value)?$.value.map(function(re){var pe;return{value:re,label:(pe=E.value.get(re))===null||pe===void 0?void 0:pe.label}}):$.value,B={value:L,onClose:e.multiple?function(re){return Q(re)}:function(){}};if(e.minCollapsedNum&&e.multiple){var G;return Ge(Ge({},B),{},{displayValue:L==null||(G=L.slice)===null||G===void 0?void 0:G.call(L,0,e.minCollapsedNum)})}return B}),z=I(function(){return Boolean(e.filterable||s.value.filterable||Te(e.filter))}),Q=function(B,G){var re;G&&G.stopPropagation();var pe=ba($.value),Oe=pe[B];pe.splice(B,1),T(pe,{selectedOptions:ee(pe),trigger:"tag-remove",e:G}),(re=e.onRemove)===null||re===void 0||re.call(e,{value:Oe,data:E.value.get(Oe),e:G})},D=function(){var B;!C.value||((B=e.onCreate)===null||B===void 0||B.call(e,C.value),x(""))},U=I(function(){var L;return(L=m.value)===null||L===void 0?void 0:L.popupRef.getOverlay()}),Z=I(function(){return A.value.filter(function(L){return!L.disabled&&!L["check-all"]&&!L.checkAll})}),ee=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$.value;return A.value.filter(function(G){if(!G.checkAll)return De(B)?B.includes(G.value):B===G.value})},ae=Is({displayOptions:N,optionsList:A,innerPopupVisible:J,setInnerPopupVisible:H,selectPanelRef:O,isFilterable:z,getSelectedOptions:ee,setInnerValue:T,
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var As=Se(Es);Se(xn);Se(Ya);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var $s={append:{type:[String,Function]},prepend:{type:[String,Function]}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ms=oe({name:"TInputAdornment",inheritAttrs:!1,props:$s,setup:function(e,n){var r=n.slots,a=ve("input-adornment"),l=$e(),o=function(u,s,c){var d,v=Ue(c)||zt(c);return!r[s]&&Ue(c)&&!c?null:(r[s]?r[s](null).length===1&&typeof r[s](null)[0].children=="string"?d=j("span",{class:"".concat(a.value,"__text")},[r[s](null)]):d=r[s](null):Te(c)?d=c(u):d=v?j("span",{class:"".concat(a.value,"__text")},[c]):c,d&&j("span",{class:"".concat(a.value,"__").concat(s)},[d]))};return function(){var i=o(ut,"prepend",e.prepend),u=o(ut,"append",e.append),s=l("default")||[null],c=[a.value,W(W({},"".concat(a.value,"--prepend"),i),"".concat(a.value,"--append"),u)];return!i&&!u?s[0]:j("div",{class:c},[i,s[0],u])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ds=Se(Ms);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ts={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.9.4
* (c) 2024 tdesign
* @license MIT
*/function Rs(t,e,n,r){var a=dt(),l=a.SIZE,o=a.STATUS,i=I(function(){var x=Math.ceil(t.total/n.value);return x>0?x:1}),u=I(function(){return["".concat(r.value),l.value[t.size],W(W({},o.value.disabled,t.disabled),"".concat(r.value,"-ie"),il()<11)]}),s=I(function(){return["".concat(r.value,"__total")]}),c=I(function(){return["".concat(r.value,"__select")]}),d=I(function(){return["".concat(r.value,"__btn"),"".concat(r.value,"__btn-prev"),W({},o.value.disabled,t.disabled||e.value===1)]}),v=I(function(){return["".concat(r.value,"__btn"),"".concat(r.value,"__btn-next"),W({},o.value.disabled,t.disabled||e.value===i.value)]}),f=I(function(){return["".concat(r.value,"__pager")]}),g=I(function(){return["".concat(r.value,"__number"),"".concat(r.value,"__number--more"),W({},o.value.disabled,t.disabled)]}),h=I(function(){return["".concat(r.value,"__jump")]}),p=I(function(){return["".concat(r.value,"__input")]}),w=I(function(){return["".concat(r.value,"__select")]}),C=function(P){return["".concat(r.value,"__number"),W(W({},o.value.disabled,t.disabled),o.value.current,e.value===P)]};return{pageCount:i,paginationClass:u,totalClass:s,sizerClass:c,preBtnClass:d,nextBtnClass:v,btnWrapClass:f,btnMoreClass:g,jumperClass:h,jumperInputClass:p,simpleClass:w,getButtonClass:C}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Vs(t,e,n){var r=K(!1),a=K(!1),l=I(function(){return Math.ceil((t.foldedMaxPageBtn-1)/2)}),o=I(function(){return Math.floor((t.foldedMaxPageBtn-1)/2)}),i=I(function(){return 2+l.value<n.value}),u=I(function(){return e.value-1-o.value>n.value});return{prevMore:r,nextMore:a,curPageLeftCount:l,curPageRightCount:o,isPrevMoreShow:i,isNextMoreShow:u}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Bs=zt;function Fs(t){return Bs(t)&&t!=+t}var Ls=Fs,zs=["pageCount"],ot=1,Hs=oe({name:"TPagination",props:Ts,setup:function(e){var n=It(),r=n.emit,a=Ce(e),l=a.modelValue,o=a.pageSize,i=a.current,u=$e(),s=Je(i,l,e.defaultCurrent,e.onCurrentChange,"current"),c=ce(s,2),d=c[0],v=c[1],f=xt(o,e.defaultPageSize,e.onPageSizeChange,"pageSize"),g=ce(f,2),h=g[0],p=g[1],w=jt("pagination"),C=w.t,x=w.globalConfig,P=ve("pagination"),k=Ht({PageFirstIcon:ql,PageLastIcon:Ql,ChevronLeftIcon:Ca,ChevronRightIcon:Sa,ChevronLeftDoubleIcon:Dl,ChevronRightDoubleIcon:Fl,EllipsisIcon:Gl}),y=k.PageFirstIcon,b=k.PageLastIcon,O=k.ChevronLeftIcon,m=k.ChevronRightIcon,S=k.ChevronLeftDoubleIcon,_=k.ChevronRightDoubleIcon,E=k.EllipsisIcon,A=Rs(e,d,h,P),M=A.pageCount,N=an(A,zs),$=Vs(e,M,d),T=$.prevMore,X=$.isPrevMoreShow,q=$.curPageLeftCount,J=$.nextMore,H=$.isNextMoreShow,F=$.curPageRightCount,R=K(d.value),V=I(function(){return M.value>e.maxPageBtn}),z=I(function(){var de=e.pageSizeOptions,ie=de.map(function(ne){return Ee(ne)?ne:{label:C(x.value.itemsPerPage,{size:ne}),value:Number(ne)}});return ie.sort(function(ne,te){return ne.value-te.value})}),Q=I(function(){return e.pageEllipsisMode==="mid"}),D=I(function(){var de=[],ie,ne;if(V.value)if(X.value&&H.value)ie=d.value-q.value,ne=d.value+F.value;else{var te=Q.value?2:1,be=Q.value?M.value-1:M.value;X.value?ie=Math.min(d.value-1,M.value-e.foldedMaxPageBtn+1):ie=te,H.value?ne=Math.max(d.value+1,e.foldedMaxPageBtn):ne=be}else ie=1,ne=M.value;for(var he=ie;he<=ne;he++)de.push(he);return de});fe(function(){return M.value},function(){d.value>M.value&&(d.value=1)}),fe(function(){return d.value},function(de){return R.value=de});var U=function(ie,ne){if(!e.disabled){var te=ie;if(ie<ot?te=ot:ie>M.value&&(te=M.value),d.value!==te){var be=d.value,he={current:te,previous:be,pageSize:h.value};if(ne!==!1){var le;v(te,he),(le=e.onChange)===null||le===void 0||le.call(e,he)}else r("update:modelValue",te)}}},Z=function(ie){var ne={prevPage:function(){return U(d.value-1)},nextPage:function(){return U(d.value+1)},prevMorePage:function(){return U(Math.max(2,d.value-e.foldedMaxPageBtn))},nextMorePage:function(){return U(Math.min(d.value+e.foldedMaxPageBtn,M.value-1))}};ne[ie]()},ee=function(ie){var ne;if(!e.disabled){var te=parseInt(ie,10),be=1;te>0&&(be=Math.max(Math.ceil(e.total/te),1));var he=!1;d.value>be&&(he=!0);var le={current:he?be:d.value,previous:d.value,pageSize:te};(ne=e.onChange)===null||ne===void 0||ne.call(e,le),p(te,le),he&&U(be,!1)}},ae=function(ie){var ne=Math.trunc(+ie);Ls(ne)||(R.value=ne,U(ne))};return function(){var de=e.total,ie=e.pageSizeOptions,ne=e.size,te=e.disabled,be=e.showPageSize;if(M.value<1)return null;var he=j("div",{class:N.jumperClass.value},[C(x.value.jumpTo),j(Ds,{append:"/ ".concat(M.value," ").concat(C(x.value.page))},{default:function(){return[j(hu,{class:N.jumperInputClass.value,modelValue:R.value,"onUpdate:modelValue":function(me){return R.value=me},onBlur:ae,onEnter:ae,max:M.value,min:ot,size:ne,disabled:te,theme:"normal",placeholder:""},null)]}})]);return j("div",{class:N.paginationClass.value},[u("totalContent",j("div",{class:N.totalClass.value},[C(x.value.total,{total:de})])),be&&ie.length>0&&j(As,_e({size:ne,value:h,disabled:te,class:N.sizerClass.value,autoWidth:!0,onChange:ee,options:z.value},e.selectProps),null),e.showFirstAndLastPageBtn?j("div",{class:N.preBtnClass.value,onClick:function(){return U(1)},disabled:e.disabled||e.current===ot},[j(y,null,null)]):null,e.showPreviousAndNextBtn?j("div",{class:N.preBtnClass.value,onClick:function(){return Z("prevPage")},disabled:te||d.value===ot},[j(O,null,null)]):null,e.showPageNumber&&e.theme==="default"?j("ul",{class:N.btnWrapClass.value},[V.value&&Q.value&&j("li",{class:N.getButtonClass(1),onClick:function(){return U(ot)}},[ot]),V.value&&X.value&&Q.value?j("li",{class:N.btnMoreClass.value,onClick:function(){return Z("prevMorePage")},onMouseOver:function(){return T.value=!0},onMouseOut:function(){return T.value=!1}},[T.value?j(S,null,null):j(E,null,null)]):null,D.value.map(function(le){return j("li",{class:N.getButtonClass(le),
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ws={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.9.4
* (c) 2024 tdesign
* @license MIT
*/function sa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ks(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sa(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Us=oe({name:"TPaginationMini",props:Ks({},Ws),setup:function(e){var n=ve("pagination-mini"),r=Ht({ChevronLeftIcon:Ca,RoundIcon:li,ChevronRightIcon:Sa,ChevronUpIcon:wa,ChevronDownIcon:Oa}),a=r.ChevronLeftIcon,l=r.RoundIcon,o=r.ChevronRightIcon,i=r.ChevronUpIcon,u=r.ChevronDownIcon,s=I(function(){return Ee(e.tips)?e.tips:e.tips===!0?{prev:"\u4E0A\u4E00\u9875",current:"\u5F53\u524D",next:"\u4E0B\u4E00\u9875"}:{}}),c=I(function(){return Ee(e.disabled)?e.disabled:e.disabled===!0?{prev:!0,current:!0,next:!0}:{prev:!1,current:!1,next:!1}});return function(){var d=[n.value,W({},"".concat(n.value,"--outline"),e.variant==="outline")];return j("div",{class:d},[j(Tt,{title:s.value.prev,variant:e.variant,size:e.size,shape:"square",onClick:function(f){var g;return(g=e.onChange)===null||g===void 0?void 0:g.call(e,{e:f,trigger:"prev"})},icon:e.layout==="horizontal"?function(){return j(a,null,null)}:function(){return j(i,null,null)},class:"".concat(n.value,"__prev"),disabled:c.value.prev},null),e.showCurrent&&j(Tt,{title:s.value.current,variant:e.variant,size:e.size,shape:"square",onClick:function(f){var g;return(g=e.onChange)===null||g===void 0?void 0:g.call(e,{e:f,trigger:"current"})},icon:function(){return j(l,null,null)},class:"".concat(n.value,"__current"),disabled:c.value.current},null),j(Tt,{title:s.value.next,variant:e.variant,size:e.size,shape:"square",onClick:function(f){var g;return(g=e.onChange)===null||g===void 0?void 0:g.call(e,{e:f,trigger:"next"})},icon:e.layout==="horizontal"?function(){return j(o,null,null)}:function(){return j(u,null,null)},class:"".concat(n.value,"__next"),disabled:c.value.next},null)])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Dv=Se(Hs);Se(Us);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Gs=Ln,Xs=Ee,Ys="Expected a function";function qs(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(Ys);return Xs(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Gs(t,e,{leading:r,maxWait:e,trailing:a})}var Js=qs;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Zs=ha;function Qs(t,e,n){for(var r=-1,a=t.length;++r<a;){var l=t[r],o=e(l);if(o!=null&&(i===void 0?o===o&&!Zs(o):n(o,i)))var i=o,u=l}return u}var qa=Qs;function ev(t,e){return t>e}var tv=ev,nv=qa,rv=tv,av=jn;function lv(t){return t&&t.length?nv(t,av,rv):void 0}var iv=lv;function ov(t,e){return t<e}var uv=ov,cv=qa,sv=uv,vv=jn;function fv(t){return t&&t.length?cv(t,vv,sv):void 0}var dv=fv;function pv(t,e){for(var n,r=-1,a=t.length;++r<a;){var l=e(t[r]);l!==void 0&&(n=n===void 0?l:n+l)}return n}var hv=pv,gv=hv,bv=jn;function mv(t){return t&&t.length?gv(t,bv):0}var hn=mv,Tv=function(e,n){var r,a,l=K([]),o=K((((r=n.value.data)===null||r===void 0?void 0:r.length)||0)*(((a=n.value.scroll)===null||a===void 0?void 0:a.rowHeight)||50)),i=K(0),u=[],s=K(0),c=K(0),d=K([0,15]),v=I(function(){var y,b=n.value.scroll;return b?{bufferSize:b.bufferSize||10,isFixedRowHeight:(y=b.isFixedRowHeight)!==null&&y!==void 0?y:!1,rowHeight:b.rowHeight||47,threshold:b.threshold||100,type:b.type}:{}}),f=I(function(){var y=n.value.data;return v.value.type==="virtual"&&v.value.threshold<y.length});function g(){for(var y,b,O=(y=(b=e.value)===null||b===void 0?void 0:b.scrollTop)!==null&&y!==void 0?y:0,m=[],S=0,_=-1,E=-1,A=0,M=0,N=n.value.data.length;M<N;M++){var $,T=($=u[M])!==null&&$!==void 0?$:v.value.rowHeight;if(A=A+T,A>O&&_===-1&&(_=M,_-v.value.bufferSize>0&&(S=A-T-hn(m))),_===-1&&(m.push(T),m.length>v.value.bufferSize&&m.shift()),E===-1&&(A>s.value+O||M===n.value.data.length-1)&&(E=M),_!==-1&&E!==-1)break}var X=iv([_-v.value.bufferSize,0]),q=dv([E+v.value.bufferSize,n.value.data.length]);return{startIndex:X,endIndex:q,translateY:S}}var h=Js(function(){var y=g(),b=y.startIndex,O=y.endIndex,m=y.translateY;d.value.join()!==[b,O].join()&&b>=0&&(o.value=m,l.value=n.value.data.slice(b,O),d.value=[b,O])},100),p=function(b){var O;if(!(!f.value||!b||v.value.isFixedRowHeight||!e.value)){var m=(O=b.ref.value)===null||O===void 0?void 0:O.getBoundingClientRect().height,S=b.data.VIRTUAL_SCROLL_INDEX;if(u[S]!==m){var _=m-u[S];u[S]=m,i.value=i.value+_}}},w=function(){!f.value||h()},C=function(b){var O=ce(b,1),m=O[0].contentRect,S=16;Math.abs(m.width-c.value)>S&&(e.value.scrollTop=0,o.value=0),c.value=m.width,s.value=m.height},x=function(b){b.forEach(function(O,m){O.VIRTUAL_SCROLL_INDEX=m})},P=function(b){var O=b.index,m=b.top,S=m===void 0?0:m,_=b.behavior,E=hn(u.slice(0,O))-S;e.value.scrollTo({top:E,behavior:_||"auto"})},k=function(b){if(P(b),!v.value.isFixedRowHeight)var O,m=(O=b.time)!==null&&O!==void 0?O:60,S=setTimeout(function(){P(b),clearTimeout(S)},m)};return Nn(I(function(){return f.value?e.value:void 0}),C),fe(function(){return[nt(n.value.data),v.value,f.value,e.value]},function(){if(!(!f.value||!e.value)){var y=n.value.data;if(x(y),s.value=e.value.getBoundingClientRect().height,u.length!==n.value.data.length){var b=Array.from(u);b.length=n.value.data.length,b.fill(v.value.rowHeight||47),u=b}i.value=hn(u),d.value=[0,0],h()}},{immediate:!0}),fe(function(){return s.value},function(){h()}),{visibleData:l,translateY:o,scrollHeight:i,isVirtualScroll:f,handleScroll:w,handleRowMounted:p,scrollToElement:k}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Rv(t){return ol(t)||ul(t)||cl(t)||sl()}export{kv as A,Pa as B,Wr as C,Nl as D,Nv as E,Dv as P,Lc as S,_v as T,Lu as _,Hu as a,ss as b,xt as c,Ln as d,jv as e,Ev as f,Av as g,$v as h,Tv as i,Sn as j,hs as k,Mv as l,Oa as m,Ra as n,Iv as o,La as p,Rv as q,As as r,Gr as s,Js as t,To as u,xv as v,Cn as w,en as x,tn as y,Ca as z};