NewChatPage-BwQb1YuM.js 82 KB

1234567891011121314151617181920
  1. import{c,d as X,r as Q,s as G,f as me,b as L,h as ye,F as be,n as Le,z as Sn,o as Pe,w as ke,A as Gt,B as On,T as _n,e as qt,v as Yt,C as Pn,D as In,E as An,_ as Rn,l as Xe,t as Y,m as Fn,q as Ce,a as xe,x as Ct,y as xt,G as Ge,H as $t}from"./index-Bij2Jxh0.js";import{aa as Zt,ab as Dn,ac as Qt,a as Tn,ad as Jt,ae as Kt,af as en,ag as En,ah as jn,ai as tn,aj as zn,M as fe,ak as at,_ as I,q as ee,P as de,h as ve,g as V,j as D,A as ie,al as nn,am as St,an as lt,ao as Ie,ap as it,u as se,aq as Ln,ar as st,as as ut,at as ct,au as Se,av as Ot,aw as _t,ax as Mn,ay as Bn,a2 as Me,U as ae,az as Nn,G as Fe,w as kn,aA as Un,aB as rn,X as on,aC as pe,aD as le,p as K,t as k,aE as Ee,aF as rt,y as we,aG as Hn,aH as an,m as ln,n as sn,o as un,K as dt,S as Wn,aI as Vn,v as Xn,z as Gn,aJ as Be,x as qn,aK as Yn,aL as Zn,aM as Pt,aN as cn,O as dn,T as Qn,aO as Jn,I as Kn,aP as er,W as tr,f as nr,a9 as rr,aQ as or,Y as ar,a6 as lr,a7 as ir,a3 as sr,a4 as ur,a8 as cr,Z as dr,$ as fr}from"./index-9yZvUXGh.js";function pr(e,t,n){var r=e==null?void 0:Zt(e,t);return r===void 0?n:r}var vr=1,gr=2;function mr(e,t,n,r){var o=n.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var l=a[0],u=e[l],p=a[1];if(a[2]){if(u===void 0&&!(l in e))return!1}else{var d=new Dn,m;if(!(m===void 0?Qt(p,u,vr|gr,r,d):m))return!1}}return!0}function fn(e){return e===e&&!Tn(e)}function hr(e){for(var t=Jt(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,fn(o)]}return t}function pn(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function br(e){var t=hr(e);return t.length==1&&t[0][2]?pn(t[0][0],t[0][1]):function(n){return n===e||mr(n,e,t)}}var yr=1,wr=2;function Cr(e,t){return Kt(e)&&fn(t)?pn(en(e),t):function(n){var r=pr(n,e);return r===void 0&&r===t?En(n,e):Qt(t,r,yr|wr)}}function xr(e){return function(t){return t==null?void 0:t[e]}}function $r(e){return function(t){return Zt(t,e)}}function Sr(e){return Kt(e)?xr(en(e)):$r(e)}function Or(e){return typeof e=="function"?e:e==null?jn:typeof e=="object"?tn(e)?Cr(e[0],e[1]):br(e):Sr(e)}function _r(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Pr(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var u=a[++o];if(n(i[u],u,i)===!1)break}return t}}var Ir=Pr();function Ar(e,t){return e&&Ir(e,t,Jt)}function Rr(e,t){return function(n,r){if(n==null)return n;if(!zn(n))return e(n,r);for(var o=n.length,i=-1,a=Object(n);++i<o&&r(a[i],i,a)!==!1;);return n}}var Fr=Rr(Ar);function Dr(e,t,n,r){return Fr(e,function(o,i,a){t(r,o,n(o),a)}),r}function Tr(e,t){return function(n,r){var o=tn(n)?_r:Dr,i=t?t():{};return o(n,e,Or(r),i)}}var Er=Tr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),jr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function It(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){zr(e,o,n[o])})}return e}function zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ft=function(t,n){var r=It({},t,n.attrs);return c(fe,It({},r,{icon:jr}),null)};ft.displayName="CheckCircleFilled";ft.inheritAttrs=!1;const Oe=e=>e!=null&&(Array.isArray(e)?at(e).length:!0);function pt(e){return Oe(e.prefix)||Oe(e.suffix)||Oe(e.allowClear)}function je(e){return Oe(e.addonBefore)||Oe(e.addonAfter)}function ot(e){return typeof e>"u"||e===null?"":String(e)}function _e(e,t,n,r){if(!n)return;const o=t;if(t.type==="click"){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0});const i=e.cloneNode(!0);o.target=i,o.currentTarget=i,i.value="",n(o);return}if(r!==void 0){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0}),o.target=e,o.currentTarget=e,e.value=r,n(o);return}n(o)}function vn(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const Lr=()=>({addonBefore:de.any,addonAfter:de.any,prefix:de.any,suffix:de.any,clearIcon:de.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),gn=()=>I(I({},Lr()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:de.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),mn=()=>I(I({},gn()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:ee("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),Mr=X({name:"BaseInput",inheritAttrs:!1,props:gn(),setup(e,t){let{slots:n,attrs:r}=t;const o=Q(),i=l=>{var u;if(!((u=o.value)===null||u===void 0)&&u.contains(l.target)){const{triggerFocus:p}=e;p==null||p()}},a=()=>{var l;const{allowClear:u,value:p,disabled:d,readonly:m,handleReset:f,suffix:b=n.suffix,prefixCls:A}=e;if(!u)return null;const s=!d&&!m&&p,v=`${A}-clear-icon`,R=((l=n.clearIcon)===null||l===void 0?void 0:l.call(n))||"*";return c("span",{onClick:f,onMousedown:g=>g.preventDefault(),class:V({[`${v}-hidden`]:!s,[`${v}-has-suffix`]:!!b},v),role:"button",tabindex:-1},[R])};return()=>{var l,u;const{focused:p,value:d,disabled:m,allowClear:f,readonly:b,hidden:A,prefixCls:s,prefix:v=(l=n.prefix)===null||l===void 0?void 0:l.call(n),suffix:R=(u=n.suffix)===null||u===void 0?void 0:u.call(n),addonAfter:g=n.addonAfter,addonBefore:x=n.addonBefore,inputElement:C,affixWrapperClassName:h,wrapperClassName:_,groupClassName:y}=e;let E=ve(C,{value:d,hidden:A});if(pt({prefix:v,suffix:R,allowClear:f})){const T=`${s}-affix-wrapper`,B=V(T,{[`${T}-disabled`]:m,[`${T}-focused`]:p,[`${T}-readonly`]:b,[`${T}-input-with-clear-btn`]:R&&f&&d},!je({addonAfter:g,addonBefore:x})&&r.class,h),S=(R||f)&&c("span",{class:`${s}-suffix`},[a(),R]);E=c("span",{class:B,style:r.style,hidden:!je({addonAfter:g,addonBefore:x})&&A,onMousedown:i,ref:o},[v&&c("span",{class:`${s}-prefix`},[v]),ve(C,{style:null,value:d,hidden:null}),S])}if(je({addonAfter:g,addonBefore:x})){const T=`${s}-group`,B=`${T}-addon`,S=V(`${s}-wrapper`,T,_),P=V(`${s}-group-wrapper`,r.class,y);return c("span",{class:P,style:r.style,hidden:A},[c("span",{class:S},[x&&c("span",{class:B},[x]),ve(E,{style:null,hidden:null}),g&&c("span",{class:B},[g])])])}return E}}});var Br=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Nr=X({name:"VCInput",inheritAttrs:!1,props:mn(),setup(e,t){let{slots:n,attrs:r,expose:o,emit:i}=t;const a=G(e.value===void 0?e.defaultValue:e.value),l=G(!1),u=G(),p=G();me(()=>e.value,()=>{a.value=e.value}),me(()=>e.disabled,()=>{e.disabled&&(l.value=!1)});const d=y=>{u.value&&vn(u.value.input,y)},m=()=>{var y;(y=u.value.input)===null||y===void 0||y.blur()},f=(y,E,T)=>{var B;(B=u.value.input)===null||B===void 0||B.setSelectionRange(y,E,T)},b=()=>{var y;(y=u.value.input)===null||y===void 0||y.select()};o({focus:d,blur:m,input:L(()=>{var y;return(y=u.value.input)===null||y===void 0?void 0:y.input}),stateValue:a,setSelectionRange:f,select:b});const A=y=>{i("change",y)},s=(y,E)=>{a.value!==y&&(e.value===void 0?a.value=y:Le(()=>{var T;u.value.input.value!==a.value&&((T=p.value)===null||T===void 0||T.$forceUpdate())}),Le(()=>{E&&E()}))},v=y=>{const{value:E}=y.target;if(a.value===E)return;const T=y.target.value;_e(u.value.input,y,A),s(T)},R=y=>{y.keyCode===13&&i("pressEnter",y),i("keydown",y)},g=y=>{l.value=!0,i("focus",y)},x=y=>{l.value=!1,i("blur",y)},C=y=>{_e(u.value.input,y,A),s("",()=>{d()})},h=()=>{var y,E;const{addonBefore:T=n.addonBefore,addonAfter:B=n.addonAfter,disabled:S,valueModifiers:P={},htmlSize:w,autocomplete:O,prefixCls:F,inputClassName:j,prefix:N=(y=n.prefix)===null||y===void 0?void 0:y.call(n),suffix:M=(E=n.suffix)===null||E===void 0?void 0:E.call(n),allowClear:$,type:z="text"}=e,U=ie(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),H=I(I(I({},U),r),{autocomplete:O,onChange:v,onInput:v,onFocus:g,onBlur:x,onKeydown:R,class:V(F,{[`${F}-disabled`]:S},j,!je({addonAfter:B,addonBefore:T})&&!pt({prefix:N,suffix:M,allowClear:$})&&r.class),ref:u,key:"ant-input",size:w,type:z,lazy:e.lazy});return P.lazy&&delete H.onInput,H.autofocus||delete H.autofocus,c(nn,ie(H,["size"]),null)},_=()=>{var y;const{maxlength:E,suffix:T=(y=n.suffix)===null||y===void 0?void 0:y.call(n),showCount:B,prefixCls:S}=e,P=Number(E)>0;if(T||B){const w=[...ot(a.value)].length,O=typeof B=="object"?B.formatter({count:w,maxlength:E}):`${w}${P?` / ${E}`:""}`;return c(be,null,[!!B&&c("span",{class:V(`${S}-show-count-suffix`,{[`${S}-show-count-has-suffix`]:!!T})},[O]),T])}return null};return ye(()=>{}),()=>{const{prefixCls:y,disabled:E}=e,T=Br(e,["prefixCls","disabled"]);return c(Mr,D(D(D({},T),r),{},{ref:p,prefixCls:y,inputElement:h(),handleReset:C,value:ot(a.value),focused:l.value,triggerFocus:d,suffix:_(),disabled:E}),n)}}}),Ue=()=>ie(mn(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),hn=()=>I(I({},ie(Ue(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:St(),onCompositionend:St(),valueModifiers:Object});var kr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Z=X({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:Ue(),setup(e,t){let{slots:n,attrs:r,expose:o,emit:i}=t;const a=Q(),l=lt(),u=Ie.useInject(),p=L(()=>it(u.status,e.status)),{direction:d,prefixCls:m,size:f,autocomplete:b}=se("input",e),{compactSize:A,compactItemClassnames:s}=Ln(m,d),v=L(()=>A.value||f.value),[R,g]=st(m),x=ut();o({focus:w=>{var O;(O=a.value)===null||O===void 0||O.focus(w)},blur:()=>{var w;(w=a.value)===null||w===void 0||w.blur()},input:a,setSelectionRange:(w,O,F)=>{var j;(j=a.value)===null||j===void 0||j.setSelectionRange(w,O,F)},select:()=>{var w;(w=a.value)===null||w===void 0||w.select()}});const E=Q([]),T=()=>{E.value.push(setTimeout(()=>{var w,O,F,j;!((w=a.value)===null||w===void 0)&&w.input&&((O=a.value)===null||O===void 0?void 0:O.input.getAttribute("type"))==="password"&&(!((F=a.value)===null||F===void 0)&&F.input.hasAttribute("value"))&&((j=a.value)===null||j===void 0||j.input.removeAttribute("value"))}))};ye(()=>{T()}),Sn(()=>{E.value.forEach(w=>clearTimeout(w))}),Pe(()=>{E.value.forEach(w=>clearTimeout(w))});const B=w=>{T(),i("blur",w),l.onFieldBlur()},S=w=>{T(),i("focus",w)},P=w=>{i("update:value",w.target.value),i("change",w),i("input",w),l.onFieldChange()};return()=>{var w,O,F,j,N,M;const{hasFeedback:$,feedbackIcon:z}=u,{allowClear:U,bordered:H=!0,prefix:W=(w=n.prefix)===null||w===void 0?void 0:w.call(n),suffix:J=(O=n.suffix)===null||O===void 0?void 0:O.call(n),addonAfter:re=(F=n.addonAfter)===null||F===void 0?void 0:F.call(n),addonBefore:oe=(j=n.addonBefore)===null||j===void 0?void 0:j.call(n),id:he=(N=l.id)===null||N===void 0?void 0:N.value}=e,ue=kr(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),Ae=($||J)&&c(be,null,[J,$&&z]),q=m.value,Ve=pt({prefix:W,suffix:J})||!!$,Re=n.clearIcon||(()=>c(ct,null,null));return R(c(Nr,D(D(D({},r),ie(ue,["onUpdate:value","onChange","onInput"])),{},{onChange:P,id:he,disabled:(M=e.disabled)!==null&&M!==void 0?M:x.value,ref:a,prefixCls:q,autocomplete:b.value,onBlur:B,onFocus:S,prefix:W,suffix:Ae,allowClear:U,addonAfter:re&&c(Ot,null,{default:()=>[c(_t,null,{default:()=>[re]})]}),addonBefore:oe&&c(Ot,null,{default:()=>[c(_t,null,{default:()=>[oe]})]}),class:[r.class,s.value],inputClassName:V({[`${q}-sm`]:v.value==="small",[`${q}-lg`]:v.value==="large",[`${q}-rtl`]:d.value==="rtl",[`${q}-borderless`]:!H},!Ve&&Se(q,p.value),g.value),affixWrapperClassName:V({[`${q}-affix-wrapper-sm`]:v.value==="small",[`${q}-affix-wrapper-lg`]:v.value==="large",[`${q}-affix-wrapper-rtl`]:d.value==="rtl",[`${q}-affix-wrapper-borderless`]:!H},Se(`${q}-affix-wrapper`,p.value,$),g.value),wrapperClassName:V({[`${q}-group-rtl`]:d.value==="rtl"},g.value),groupClassName:V({[`${q}-group-wrapper-sm`]:v.value==="small",[`${q}-group-wrapper-lg`]:v.value==="large",[`${q}-group-wrapper-rtl`]:d.value==="rtl"},Se(`${q}-group-wrapper`,p.value,$),g.value)}),I(I({},n),{clearIcon:Re})))}}}),Ur=X({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i,getPrefixCls:a}=se("input-group",e),l=Ie.useInject();Ie.useProvide(l,{isFormItemInput:!1});const u=L(()=>a("input")),[p,d]=st(u),m=L(()=>{const f=o.value;return{[`${f}`]:!0,[d.value]:!0,[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:i.value==="rtl"}});return()=>{var f;return p(c("span",D(D({},r),{},{class:V(m.value,r.class)}),[(f=n.default)===null||f===void 0?void 0:f.call(n)]))}}});var Hr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Wr=X({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:I(I({},Ue()),{inputPrefixCls:String,enterButton:de.any,onSearch:{type:Function}}),setup(e,t){let{slots:n,attrs:r,expose:o,emit:i}=t;const a=G(),l=G(!1);o({focus:()=>{var h;(h=a.value)===null||h===void 0||h.focus()},blur:()=>{var h;(h=a.value)===null||h===void 0||h.blur()}});const d=h=>{i("update:value",h.target.value),h&&h.target&&h.type==="click"&&i("search",h.target.value,h),i("change",h)},m=h=>{var _;document.activeElement===((_=a.value)===null||_===void 0?void 0:_.input)&&h.preventDefault()},f=h=>{var _,y;i("search",(y=(_=a.value)===null||_===void 0?void 0:_.input)===null||y===void 0?void 0:y.stateValue,h)},b=h=>{l.value||e.loading||f(h)},A=h=>{l.value=!0,i("compositionstart",h)},s=h=>{l.value=!1,i("compositionend",h)},{prefixCls:v,getPrefixCls:R,direction:g,size:x}=se("input-search",e),C=L(()=>R("input",e.inputPrefixCls));return()=>{var h,_,y,E;const{disabled:T,loading:B,addonAfter:S=(h=n.addonAfter)===null||h===void 0?void 0:h.call(n),suffix:P=(_=n.suffix)===null||_===void 0?void 0:_.call(n)}=e,w=Hr(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:O=(E=(y=n.enterButton)===null||y===void 0?void 0:y.call(n))!==null&&E!==void 0?E:!1}=e;O=O||O==="";const F=typeof O=="boolean"?c(Mn,null,null):null,j=`${v.value}-button`,N=Array.isArray(O)?O[0]:O;let M;const $=N.type&&Bn(N.type)&&N.type.__ANT_BUTTON;if($||N.tagName==="button")M=ve(N,I({onMousedown:m,onClick:f,key:"enterButton"},$?{class:j,size:x.value}:{}),!1);else{const U=F&&!O;M=c(Me,{class:j,type:O?"primary":void 0,size:x.value,disabled:T,key:"enterButton",onMousedown:m,onClick:f,loading:B,icon:U?F:null},{default:()=>[U?null:F||O]})}S&&(M=[M,S]);const z=V(v.value,{[`${v.value}-rtl`]:g.value==="rtl",[`${v.value}-${x.value}`]:!!x.value,[`${v.value}-with-button`]:!!O},r.class);return c(Z,D(D(D({ref:a},ie(w,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:b,onCompositionstart:A,onCompositionend:s,size:x.value,prefixCls:C.value,addonAfter:M,suffix:P,onChange:d,class:z,disabled:T}),n)}}}),At=e=>e!=null&&(Array.isArray(e)?at(e).length:!0);function Vr(e){return At(e.addonBefore)||At(e.addonAfter)}const Xr=["text","input"],Gr=X({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:de.oneOf(Nn("text","input")),value:ae(),defaultValue:ae(),allowClear:{type:Boolean,default:void 0},element:ae(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:ae(),prefix:ae(),addonBefore:ae(),addonAfter:ae(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:r}=t;const o=Ie.useInject(),i=l=>{const{value:u,disabled:p,readonly:d,handleReset:m,suffix:f=n.suffix}=e,b=!p&&!d&&u,A=`${l}-clear-icon`;return c(ct,{onClick:m,onMousedown:s=>s.preventDefault(),class:V({[`${A}-hidden`]:!b,[`${A}-has-suffix`]:!!f},A),role:"button"},null)},a=(l,u)=>{const{value:p,allowClear:d,direction:m,bordered:f,hidden:b,status:A,addonAfter:s=n.addonAfter,addonBefore:v=n.addonBefore,hashId:R}=e,{status:g,hasFeedback:x}=o;if(!d)return ve(u,{value:p,disabled:e.disabled});const C=V(`${l}-affix-wrapper`,`${l}-affix-wrapper-textarea-with-clear-btn`,Se(`${l}-affix-wrapper`,it(g,A),x),{[`${l}-affix-wrapper-rtl`]:m==="rtl",[`${l}-affix-wrapper-borderless`]:!f,[`${r.class}`]:!Vr({addonAfter:s,addonBefore:v})&&r.class},R);return c("span",{class:C,style:r.style,hidden:b},[ve(u,{style:null,value:p,disabled:e.disabled}),i(l)])};return()=>{var l;const{prefixCls:u,inputType:p,element:d=(l=n.element)===null||l===void 0?void 0:l.call(n)}=e;return p===Xr[0]?a(u,d):null}}}),qr=`
  2. min-height:0 !important;
  3. max-height:none !important;
  4. height:0 !important;
  5. visibility:hidden !important;
  6. overflow:hidden !important;
  7. position:absolute !important;
  8. z-index:-1000 !important;
  9. top:0 !important;
  10. right:0 !important;
  11. pointer-events: none !important;
  12. `,Yr=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],qe={};let te;function Zr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&qe[n])return qe[n];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u={sizingStyle:Yr.map(p=>`${p}:${r.getPropertyValue(p)}`).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(qe[n]=u),u}function Qr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;te||(te=document.createElement("textarea"),te.setAttribute("tab-index","-1"),te.setAttribute("aria-hidden","true"),document.body.appendChild(te)),e.getAttribute("wrap")?te.setAttribute("wrap",e.getAttribute("wrap")):te.removeAttribute("wrap");const{paddingSize:o,borderSize:i,boxSizing:a,sizingStyle:l}=Zr(e,t);te.setAttribute("style",`${l};${qr}`),te.value=e.value||e.placeholder||"";let u,p,d,m=te.scrollHeight;if(a==="border-box"?m+=i:a==="content-box"&&(m-=o),n!==null||r!==null){te.value=" ";const b=te.scrollHeight-o;n!==null&&(u=b*n,a==="border-box"&&(u=u+o+i),m=Math.max(u,m)),r!==null&&(p=b*r,a==="border-box"&&(p=p+o+i),d=m>p?"":"hidden",m=Math.min(p,m))}const f={height:`${m}px`,overflowY:d,resize:"none"};return u&&(f.minHeight=`${u}px`),p&&(f.maxHeight=`${p}px`),f}const Ye=0,Ze=1,Qe=2,Jr=X({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:hn(),setup(e,t){let{attrs:n,emit:r,expose:o}=t,i,a;const l=Q(),u=Q({}),p=Q(Qe);Pe(()=>{Fe.cancel(i),Fe.cancel(a)});const d=()=>{try{if(l.value&&document.activeElement===l.value.input){const _=l.value.getSelectionStart(),y=l.value.getSelectionEnd(),E=l.value.getScrollTop();l.value.setSelectionRange(_,y),l.value.setScrollTop(E)}}catch{}},m=Q(),f=Q();ke(()=>{const _=e.autoSize||e.autosize;_?(m.value=_.minRows,f.value=_.maxRows):(m.value=void 0,f.value=void 0)});const b=L(()=>!!(e.autoSize||e.autosize)),A=()=>{p.value=Ye};me([()=>e.value,m,f,b],()=>{b.value&&A()},{immediate:!0});const s=Q();me([p,l],()=>{if(l.value)if(p.value===Ye)p.value=Ze;else if(p.value===Ze){const _=Qr(l.value.input,!1,m.value,f.value);p.value=Qe,s.value=_}else d()},{immediate:!0,flush:"post"});const v=Gt(),R=Q(),g=()=>{Fe.cancel(R.value)},x=_=>{p.value===Qe&&(r("resize",_),b.value&&(g(),R.value=Fe(()=>{A()})))};Pe(()=>{g()}),o({resizeTextarea:()=>{A()},textArea:L(()=>{var _;return(_=l.value)===null||_===void 0?void 0:_.input}),instance:v}),kn(e.autosize===void 0);const h=()=>{const{prefixCls:_,disabled:y}=e,E=ie(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),T=V(_,n.class,{[`${_}-disabled`]:y}),B=b.value?s.value:null,S=[n.style,u.value,B],P=I(I(I({},E),n),{style:S,class:T});return(p.value===Ye||p.value===Ze)&&S.push({overflowX:"hidden",overflowY:"hidden"}),P.autofocus||delete P.autofocus,P.rows===0&&delete P.rows,c(Un,{onResize:x,disabled:!b.value},{default:()=>[c(nn,D(D({},P),{},{ref:l,tag:"textarea"}),null)]})};return()=>h()}});function bn(e,t){return[...e||""].slice(0,t).join("")}function Rt(e,t,n,r){let o=n;return e?o=bn(n,r):[...t||""].length<n.length&&[...n||""].length>r&&(o=t),o}const Kr=X({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:hn(),setup(e,t){let{attrs:n,expose:r,emit:o}=t;var i;const a=lt(),l=Ie.useInject(),u=L(()=>it(l.status,e.status)),p=G((i=e.value)!==null&&i!==void 0?i:e.defaultValue),d=G(),m=G(""),{prefixCls:f,size:b,direction:A}=se("input",e),[s,v]=st(f),R=ut(),g=L(()=>e.showCount===""||e.showCount||!1),x=L(()=>Number(e.maxlength)>0),C=G(!1),h=G(),_=G(0),y=$=>{C.value=!0,h.value=m.value,_.value=$.currentTarget.selectionStart,o("compositionstart",$)},E=$=>{var z;C.value=!1;let U=$.currentTarget.value;if(x.value){const H=_.value>=e.maxlength+1||_.value===((z=h.value)===null||z===void 0?void 0:z.length);U=Rt(H,h.value,U,e.maxlength)}U!==m.value&&(P(U),_e($.currentTarget,$,F,U)),o("compositionend",$)},T=Gt();me(()=>e.value,()=>{var $;"value"in T.vnode.props,p.value=($=e.value)!==null&&$!==void 0?$:""});const B=$=>{var z;vn((z=d.value)===null||z===void 0?void 0:z.textArea,$)},S=()=>{var $,z;(z=($=d.value)===null||$===void 0?void 0:$.textArea)===null||z===void 0||z.blur()},P=($,z)=>{p.value!==$&&(e.value===void 0?p.value=$:Le(()=>{var U,H,W;d.value.textArea.value!==m.value&&((W=(U=d.value)===null||U===void 0?void 0:(H=U.instance).update)===null||W===void 0||W.call(H))}),Le(()=>{z&&z()}))},w=$=>{$.keyCode===13&&o("pressEnter",$),o("keydown",$)},O=$=>{const{onBlur:z}=e;z==null||z($),a.onFieldBlur()},F=$=>{o("update:value",$.target.value),o("change",$),o("input",$),a.onFieldChange()},j=$=>{_e(d.value.textArea,$,F),P("",()=>{B()})},N=$=>{let z=$.target.value;if(p.value!==z){if(x.value){const U=$.target,H=U.selectionStart>=e.maxlength+1||U.selectionStart===z.length||!U.selectionStart;z=Rt(H,m.value,z,e.maxlength)}_e($.currentTarget,$,F,z),P(z)}},M=()=>{var $,z;const{class:U}=n,{bordered:H=!0}=e,W=I(I(I({},ie(e,["allowClear"])),n),{class:[{[`${f.value}-borderless`]:!H,[`${U}`]:U&&!g.value,[`${f.value}-sm`]:b.value==="small",[`${f.value}-lg`]:b.value==="large"},Se(f.value,u.value),v.value],disabled:R.value,showCount:null,prefixCls:f.value,onInput:N,onChange:N,onBlur:O,onKeydown:w,onCompositionstart:y,onCompositionend:E});return!(($=e.valueModifiers)===null||$===void 0)&&$.lazy&&delete W.onInput,c(Jr,D(D({},W),{},{id:(z=W==null?void 0:W.id)!==null&&z!==void 0?z:a.id.value,ref:d,maxlength:e.maxlength,lazy:e.lazy}),null)};return r({focus:B,blur:S,resizableTextArea:d}),ke(()=>{let $=ot(p.value);!C.value&&x.value&&(e.value===null||e.value===void 0)&&($=bn($,e.maxlength)),m.value=$}),()=>{var $;const{maxlength:z,bordered:U=!0,hidden:H}=e,{style:W,class:J}=n,re=I(I(I({},e),n),{prefixCls:f.value,inputType:"text",handleReset:j,direction:A.value,bordered:U,style:g.value?void 0:W,hashId:v.value,disabled:($=e.disabled)!==null&&$!==void 0?$:R.value});let oe=c(Gr,D(D({},re),{},{value:m.value,status:e.status}),{element:M});if(g.value||l.hasFeedback){const he=[...m.value].length;let ue="";typeof g.value=="object"?ue=g.value.formatter({value:m.value,count:he,maxlength:z}):ue=`${he}${x.value?` / ${z}`:""}`,oe=c("div",{hidden:H,class:V(`${f.value}-textarea`,{[`${f.value}-textarea-rtl`]:A.value==="rtl",[`${f.value}-textarea-show-count`]:g.value,[`${f.value}-textarea-in-form-item`]:l.isFormItemInput},`${f.value}-textarea-show-count`,J,v.value),style:W,"data-count":typeof ue!="object"?ue:void 0},[oe,l.hasFeedback&&c("span",{class:`${f.value}-textarea-suffix`},[l.feedbackIcon])])}return s(oe)}}});var eo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){to(e,o,n[o])})}return e}function to(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vt=function(t,n){var r=Ft({},t,n.attrs);return c(fe,Ft({},r,{icon:eo}),null)};vt.displayName="EyeInvisibleOutlined";vt.inheritAttrs=!1;var no=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ro={click:"onClick",hover:"onMouseover"},oo=e=>e?c(on,null,null):c(vt,null,null),ao=X({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:I(I({},Ue()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:r,expose:o,emit:i}=t;const a=G(!1),l=()=>{const{disabled:v}=e;v||(a.value=!a.value,i("update:visible",a.value))};ke(()=>{e.visible!==void 0&&(a.value=!!e.visible)});const u=G();o({focus:()=>{var v;(v=u.value)===null||v===void 0||v.focus()},blur:()=>{var v;(v=u.value)===null||v===void 0||v.blur()}});const m=v=>{const{action:R,iconRender:g=n.iconRender||oo}=e,x=ro[R]||"",C=g(a.value),h={[x]:l,class:`${v}-icon`,key:"passwordIcon",onMousedown:_=>{_.preventDefault()},onMouseup:_=>{_.preventDefault()}};return ve(rn(C)?C:c("span",null,[C]),h)},{prefixCls:f,getPrefixCls:b}=se("input-password",e),A=L(()=>b("input",e.inputPrefixCls)),s=()=>{const{size:v,visibilityToggle:R}=e,g=no(e,["size","visibilityToggle"]),x=R&&m(f.value),C=V(f.value,r.class,{[`${f.value}-${v}`]:!!v}),h=I(I(I({},ie(g,["suffix","iconRender","action"])),r),{type:a.value?"text":"password",class:C,prefixCls:A.value,suffix:x});return v&&(h.size=v),c(Z,D({ref:u},h),n)};return()=>s()}});Z.Group=Ur;Z.Search=Wr;Z.TextArea=Kr;Z.Password=ao;Z.install=function(e){return e.component(Z.name,Z),e.component(Z.Group.name,Z.Group),e.component(Z.Search.name,Z.Search),e.component(Z.TextArea.name,Z.TextArea),e.component(Z.Password.name,Z.Password),e};const lo=["normal","exception","active","success"],He=()=>({prefixCls:String,type:ee(),percent:Number,format:k(),status:ee(),showInfo:K(),strokeWidth:Number,strokeLinecap:ee(),strokeColor:ae(),trailColor:String,width:Number,success:le(),gapDegree:Number,gapPosition:ee(),size:pe([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:ee()});function ge(e){return!e||e<0?0:e>100?100:e}function Ne(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(Ee(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}function io(e){let{percent:t,success:n,successPercent:r}=e;const o=ge(Ne({success:n,successPercent:r}));return[o,ge(ge(t)-o)]}function so(e){let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||rt.green,n||null]}const We=(e,t,n)=>{var r,o,i,a;let l=-1,u=-1;if(t==="step"){const p=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,u=d??8):typeof e=="number"?[l,u]=[e,e]:[l=14,u=8]=e,l*=p}else if(t==="line"){const p=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?u=p||(e==="small"?6:8):typeof e=="number"?[l,u]=[e,e]:[l=-1,u=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,u]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,u]=[e,e]:(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,u=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return{width:l,height:u}};var uo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const co=()=>I(I({},He()),{strokeColor:ae(),direction:ee()}),fo=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},po=(e,t)=>{const{from:n=rt.blue,to:r=rt.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=uo(e,["from","to","direction"]);if(Object.keys(i).length!==0){const a=fo(i);return{backgroundImage:`linear-gradient(${o}, ${a})`}}return{backgroundImage:`linear-gradient(${o}, ${n}, ${r})`}},vo=X({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:co(),setup(e,t){let{slots:n,attrs:r}=t;const o=L(()=>{const{strokeColor:b,direction:A}=e;return b&&typeof b!="string"?po(b,A):{backgroundColor:b}}),i=L(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),a=L(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),l=L(()=>{var b;return(b=e.size)!==null&&b!==void 0?b:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),u=L(()=>We(l.value,"line",{strokeWidth:e.strokeWidth})),p=L(()=>{const{percent:b}=e;return I({width:`${ge(b)}%`,height:`${u.value.height}px`,borderRadius:i.value},o.value)}),d=L(()=>Ne(e)),m=L(()=>{const{success:b}=e;return{width:`${ge(d.value)}%`,height:`${u.value.height}px`,borderRadius:i.value,backgroundColor:b==null?void 0:b.strokeColor}}),f={width:u.value.width<0?"100%":u.value.width,height:`${u.value.height}px`};return()=>{var b;return c(be,null,[c("div",D(D({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,f]}),[c("div",{class:`${e.prefixCls}-inner`,style:a.value},[c("div",{class:`${e.prefixCls}-bg`,style:p.value},null),d.value!==void 0?c("div",{class:`${e.prefixCls}-success-bg`,style:m.value},null):null])]),(b=n.default)===null||b===void 0?void 0:b.call(n)])}}}),go={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},mo=e=>{const t=Q(null);return On(()=>{const n=Date.now();let r=!1;e.value.forEach(o=>{const i=(o==null?void 0:o.$el)||o;if(!i)return;r=!0;const a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(a.transitionDuration="0s, 0s")}),r&&(t.value=Date.now())}),e},ho={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var bo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Dt=0;function Tt(e){return+e.replace("%","")}function Et(e){return Array.isArray(e)?e:[e]}function jt(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0;const a=50-r/2;let l=0,u=-a,p=0,d=-2*a;switch(i){case"left":l=-a,u=0,p=2*a,d=0;break;case"right":l=a,u=0,p=-2*a,d=0;break;case"bottom":u=a,d=2*a;break}const m=`M 50,50 m ${l},${u}
  13. a ${a},${a} 0 1 1 ${p},${-d}
  14. a ${a},${a} 0 1 1 ${-p},${d}`,f=Math.PI*2*a,b={stroke:n,strokeDasharray:`${t/100*(f-o)}px ${f}px`,strokeDashoffset:`-${o/2+e/100*(f-o)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:m,pathStyle:b}}const yo=X({compatConfig:{MODE:3},name:"VCCircle",props:we(ho,go),setup(e){Dt+=1;const t=Q(Dt),n=L(()=>Et(e.percent)),r=L(()=>Et(e.strokeColor)),[o,i]=Hn();mo(i);const a=()=>{const{prefixCls:l,strokeWidth:u,strokeLinecap:p,gapDegree:d,gapPosition:m}=e;let f=0;return n.value.map((b,A)=>{const s=r.value[A]||r.value[r.value.length-1],v=Object.prototype.toString.call(s)==="[object Object]"?`url(#${l}-gradient-${t.value})`:"",{pathString:R,pathStyle:g}=jt(f,b,s,u,d,m);f+=b;const x={key:A,d:R,stroke:v,"stroke-linecap":p,"stroke-width":u,opacity:b===0?0:1,"fill-opacity":"0",class:`${l}-circle-path`,style:g};return c("path",D({ref:o(A)},x),null)})};return()=>{const{prefixCls:l,strokeWidth:u,trailWidth:p,gapDegree:d,gapPosition:m,trailColor:f,strokeLinecap:b,strokeColor:A}=e,s=bo(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:v,pathStyle:R}=jt(0,100,f,u,d,m);delete s.percent;const g=r.value.find(C=>Object.prototype.toString.call(C)==="[object Object]"),x={d:v,stroke:f,"stroke-linecap":b,"stroke-width":p||u,"fill-opacity":"0",class:`${l}-circle-trail`,style:R};return c("svg",D({class:`${l}-circle`,viewBox:"0 0 100 100"},s),[g&&c("defs",null,[c("linearGradient",{id:`${l}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(g).sort((C,h)=>Tt(C)-Tt(h)).map((C,h)=>c("stop",{key:h,offset:C,"stop-color":g[C]},null))])]),c("path",x,null),a().reverse()])}}}),wo=()=>I(I({},He()),{strokeColor:ae()}),Co=3,xo=e=>Co/e*100,$o=X({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:we(wo(),{trailColor:null}),setup(e,t){let{slots:n,attrs:r}=t;const o=L(()=>{var s;return(s=e.width)!==null&&s!==void 0?s:120}),i=L(()=>{var s;return(s=e.size)!==null&&s!==void 0?s:[o.value,o.value]}),a=L(()=>We(i.value,"circle")),l=L(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),u=L(()=>({width:`${a.value.width}px`,height:`${a.value.height}px`,fontSize:`${a.value.width*.15+6}px`})),p=L(()=>{var s;return(s=e.strokeWidth)!==null&&s!==void 0?s:Math.max(xo(a.value.width),6)}),d=L(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),m=L(()=>io(e)),f=L(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),b=L(()=>so({success:e.success,strokeColor:e.strokeColor})),A=L(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:f.value}));return()=>{var s;const v=c(yo,{percent:m.value,strokeWidth:p.value,trailWidth:p.value,strokeColor:b.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:l.value,gapPosition:d.value},null);return c("div",D(D({},r),{},{class:[A.value,r.class],style:[r.style,u.value]}),[a.value.width<=20?c(an,null,{default:()=>[c("span",null,[v])],title:n.default}):c(be,null,[v,(s=n.default)===null||s===void 0?void 0:s.call(n)])])}}}),So=()=>I(I({},He()),{steps:Number,strokeColor:pe(),trailColor:String}),Oo=X({compatConfig:{MODE:3},name:"Steps",props:So(),setup(e,t){let{slots:n}=t;const r=L(()=>Math.round(e.steps*((e.percent||0)/100))),o=L(()=>{var l;return(l=e.size)!==null&&l!==void 0?l:[e.size==="small"?2:14,e.strokeWidth||8]}),i=L(()=>We(o.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),a=L(()=>{const{steps:l,strokeColor:u,trailColor:p,prefixCls:d}=e,m=[];for(let f=0;f<l;f+=1){const b=Array.isArray(u)?u[f]:u,A={[`${d}-steps-item`]:!0,[`${d}-steps-item-active`]:f<=r.value-1};m.push(c("div",{key:f,class:A,style:{backgroundColor:f<=r.value-1?b:p,width:`${i.value.width/l}px`,height:`${i.value.height}px`}},null))}return m});return()=>{var l;return c("div",{class:`${e.prefixCls}-steps-outer`},[a.value,(l=n.default)===null||l===void 0?void 0:l.call(n)])}}}),_o=new dt("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),Po=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:I(I({},un(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:_o,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Io=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Ao=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},Ro=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Fo=ln("Progress",e=>{const t=e.marginXXS/2,n=sn(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Po(n),Io(n),Ao(n),Ro(n)]});var Do=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const To=X({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:we(He(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=se("progress",e),[a,l]=Fo(o),u=L(()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),p=L(()=>{const{percent:A=0}=e,s=Ne(e);return parseInt(s!==void 0?s.toString():A.toString(),10)}),d=L(()=>{const{status:A}=e;return!lo.includes(A)&&p.value>=100?"success":A||"normal"}),m=L(()=>{const{type:A,showInfo:s,size:v}=e,R=o.value;return{[R]:!0,[`${R}-inline-circle`]:A==="circle"&&We(v,"circle").width<=20,[`${R}-${A==="dashboard"&&"circle"||A}`]:!0,[`${R}-status-${d.value}`]:!0,[`${R}-show-info`]:s,[`${R}-${v}`]:v,[`${R}-rtl`]:i.value==="rtl",[l.value]:!0}}),f=L(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),b=()=>{const{showInfo:A,format:s,type:v,percent:R,title:g}=e,x=Ne(e);if(!A)return null;let C;const h=s||(n==null?void 0:n.format)||(y=>`${y}%`),_=v==="line";return s||n!=null&&n.format||d.value!=="exception"&&d.value!=="success"?C=h(ge(R),ge(x)):d.value==="exception"?C=_?c(ct,null,null):c(Wn,null,null):d.value==="success"&&(C=_?c(ft,null,null):c(Vn,null,null)),c("span",{class:`${o.value}-text`,title:g===void 0&&typeof C=="string"?C:void 0},[C])};return()=>{const{type:A,steps:s,title:v}=e,{class:R}=r,g=Do(r,["class"]),x=b();let C;return A==="line"?C=s?c(Oo,D(D({},e),{},{strokeColor:f.value,prefixCls:o.value,steps:s}),{default:()=>[x]}):c(vo,D(D({},e),{},{strokeColor:u.value,prefixCls:o.value,direction:i.value}),{default:()=>[x]}):(A==="circle"||A==="dashboard")&&(C=c($o,D(D({},e),{},{prefixCls:o.value,strokeColor:u.value,progressStatus:d.value}),{default:()=>[x]})),a(c("div",D(D({role:"progressbar"},g),{},{class:[m.value,R],title:v}),[C]))}}}),Eo=Xn(To);var jo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){zo(e,o,n[o])})}return e}function zo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt=function(t,n){var r=zt({},t,n.attrs);return c(fe,zt({},r,{icon:jo}),null)};gt.displayName="DeleteOutlined";gt.inheritAttrs=!1;function Lo(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function Lt(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Mo(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});const n=new FormData;e.data&&Object.keys(e.data).forEach(o=>{const i=e.data[o];if(Array.isArray(i)){i.forEach(a=>{n.append(`${o}[]`,a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Lo(e,t),Lt(t)):e.onSuccess(Lt(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(o=>{r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort(){t.abort()}}}const Bo=+new Date;let No=0;function Je(){return`vc-upload-${Bo}-${++No}`}const Ke=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(a=>{const l=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(l.charAt(0)==="."){const u=r.toLowerCase(),p=l.toLowerCase();let d=[p];return(p===".jpg"||p===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(m=>u.endsWith(m))}return/\/\*$/.test(l)?i===l.replace(/\/.*$/,""):!!(o===l||/^\w+$/.test(l))})}return!0};function ko(e,t){const n=e.createReader();let r=[];function o(){n.readEntries(i=>{const a=Array.prototype.slice.apply(i);r=r.concat(a),!a.length?t(r):o()})}o()}const Uo=(e,t,n)=>{const r=(o,i)=>{o.path=i||"",o.isFile?o.file(a=>{n(a)&&(o.fullPath&&!a.webkitRelativePath&&(Object.defineProperties(a,{webkitRelativePath:{writable:!0}}),a.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(a,{webkitRelativePath:{writable:!1}})),t([a]))}):o.isDirectory&&ko(o,a=>{a.forEach(l=>{r(l,`${i}${o.name}/`)})})};e.forEach(o=>{r(o.webkitGetAsEntry())})},yn=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var Ho=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{p(r.next(d))}catch(m){a(m)}}function u(d){try{p(r.throw(d))}catch(m){a(m)}}function p(d){d.done?i(d.value):o(d.value).then(l,u)}p((r=r.apply(e,t||[])).next())})},Wo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vo=X({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:yn(),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const i=Q(Je()),a={},l=Q();let u=!1;const p=(g,x)=>Ho(this,void 0,void 0,function*(){const{beforeUpload:C}=e;let h=g;if(C){try{h=yield C(g,x)}catch{h=!1}if(h===!1)return{origin:g,parsedFile:null,action:null,data:null}}const{action:_}=e;let y;typeof _=="function"?y=yield _(g):y=_;const{data:E}=e;let T;typeof E=="function"?T=yield E(g):T=E;const B=(typeof h=="object"||typeof h=="string")&&h?h:g;let S;B instanceof File?S=B:S=new File([B],g.name,{type:g.type});const P=S;return P.uid=g.uid,{origin:g,data:T,parsedFile:P,action:y}}),d=g=>{let{data:x,origin:C,action:h,parsedFile:_}=g;if(!u)return;const{onStart:y,customRequest:E,name:T,headers:B,withCredentials:S,method:P}=e,{uid:w}=C,O=E||Mo,F={action:h,filename:T,data:x,file:_,headers:B,withCredentials:S,method:P||"post",onProgress:j=>{const{onProgress:N}=e;N==null||N(j,_)},onSuccess:(j,N)=>{const{onSuccess:M}=e;M==null||M(j,_,N),delete a[w]},onError:(j,N)=>{const{onError:M}=e;M==null||M(j,N,_),delete a[w]}};y(C),a[w]=O(F)},m=()=>{i.value=Je()},f=g=>{if(g){const x=g.uid?g.uid:g;a[x]&&a[x].abort&&a[x].abort(),delete a[x]}else Object.keys(a).forEach(x=>{a[x]&&a[x].abort&&a[x].abort(),delete a[x]})};ye(()=>{u=!0}),Pe(()=>{u=!1,f()});const b=g=>{const x=[...g],C=x.map(h=>(h.uid=Je(),p(h,x)));Promise.all(C).then(h=>{const{onBatchStart:_}=e;_==null||_(h.map(y=>{let{origin:E,parsedFile:T}=y;return{file:E,parsedFile:T}})),h.filter(y=>y.parsedFile!==null).forEach(y=>{d(y)})})},A=g=>{const{accept:x,directory:C}=e,{files:h}=g.target,_=[...h].filter(y=>!C||Ke(y,x));b(_),m()},s=g=>{const x=l.value;if(!x)return;const{onClick:C}=e;x.click(),C&&C(g)},v=g=>{g.key==="Enter"&&s(g)},R=g=>{const{multiple:x}=e;if(g.preventDefault(),g.type!=="dragover")if(e.directory)Uo(Array.prototype.slice.call(g.dataTransfer.items),b,C=>Ke(C,e.accept));else{const C=Er(Array.prototype.slice.call(g.dataTransfer.files),y=>Ke(y,e.accept));let h=C[0];const _=C[1];x===!1&&(h=h.slice(0,1)),b(h),_.length&&e.onReject&&e.onReject(_)}};return o({abort:f}),()=>{var g;const{componentTag:x,prefixCls:C,disabled:h,id:_,multiple:y,accept:E,capture:T,directory:B,openFileDialogOnClick:S,onMouseenter:P,onMouseleave:w}=e,O=Wo(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),F={[C]:!0,[`${C}-disabled`]:h,[r.class]:!!r.class},j=B?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return c(x,D(D({},h?{}:{onClick:S?s:()=>{},onKeydown:S?v:()=>{},onMouseenter:P,onMouseleave:w,onDrop:R,onDragover:R,tabindex:"0"}),{},{class:F,role:"button",style:r.style}),{default:()=>[c("input",D(D(D({},Gn(O,{aria:!0,data:!0})),{},{id:_,type:"file",ref:l,onClick:M=>M.stopPropagation(),onCancel:M=>M.stopPropagation(),key:i.value,style:{display:"none"},accept:E},j),{},{multiple:y,onChange:A},T!=null?{capture:T}:{}),null),(g=n.default)===null||g===void 0?void 0:g.call(n)]})}}});function et(){}const Mt=X({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:we(yn(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:et,onError:et,onSuccess:et,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const i=Q();return o({abort:l=>{var u;(u=i.value)===null||u===void 0||u.abort(l)}}),()=>c(Vo,D(D(D({},e),r),{},{ref:i}),n)}});var Xo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Go(e,o,n[o])})}return e}function Go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mt=function(t,n){var r=Bt({},t,n.attrs);return c(fe,Bt({},r,{icon:Xo}),null)};mt.displayName="PaperClipOutlined";mt.inheritAttrs=!1;var qo={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};function Nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Yo(e,o,n[o])})}return e}function Yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ht=function(t,n){var r=Nt({},t,n.attrs);return c(fe,Nt({},r,{icon:qo}),null)};ht.displayName="PictureTwoTone";ht.inheritAttrs=!1;var Zo={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};function kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Qo(e,o,n[o])})}return e}function Qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bt=function(t,n){var r=kt({},t,n.attrs);return c(fe,kt({},r,{icon:Zo}),null)};bt.displayName="FileTwoTone";bt.inheritAttrs=!1;function wn(){return{capture:pe([Boolean,String]),type:ee(),name:String,defaultFileList:Be(),fileList:Be(),action:pe([String,Function]),directory:K(),data:pe([Object,Function]),method:ee(),headers:le(),showUploadList:pe([Boolean,Object]),multiple:K(),accept:String,beforeUpload:k(),onChange:k(),"onUpdate:fileList":k(),onDrop:k(),listType:ee(),onPreview:k(),onDownload:k(),onReject:k(),onRemove:k(),remove:k(),supportServerRender:K(),disabled:K(),prefixCls:String,customRequest:k(),withCredentials:K(),openFileDialogOnClick:K(),locale:le(),id:String,previewFile:k(),transformFile:k(),iconRender:k(),isImageUrl:k(),progress:le(),itemRender:k(),maxCount:Number,height:pe([Number,String]),removeIcon:k(),downloadIcon:k(),previewIcon:k()}}function Jo(){return{listType:ee(),onPreview:k(),onDownload:k(),onRemove:k(),items:Be(),progress:le(),prefixCls:ee(),showRemoveIcon:K(),showDownloadIcon:K(),showPreviewIcon:K(),removeIcon:k(),downloadIcon:k(),previewIcon:k(),locale:le(void 0),previewFile:k(),iconRender:k(),isImageUrl:k(),appendAction:k(),appendActionVisible:K(),itemRender:k()}}function De(e){return I(I({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Te(e,t){const n=[...t],r=n.findIndex(o=>{let{uid:i}=o;return i===e.uid});return r===-1?n.push(e):n[r]=e,n}function tt(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Ko(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const ea=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Cn=e=>e.indexOf("image/")===0,ta=e=>{if(e.type&&!e.thumbUrl)return Cn(e.type);const t=e.thumbUrl||e.url||"",n=ea(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},ce=200;function na(e){return new Promise(t=>{if(!e.type||!Cn(e.type)){t("");return}const n=document.createElement("canvas");n.width=ce,n.height=ce,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${ce}px; height: ${ce}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let l=ce,u=ce,p=0,d=0;i>a?(u=a*(ce/i),d=-(u-l)/2):(l=i*(ce/a),p=-(l-u)/2),r.drawImage(o,p,d,l,u);const m=n.toDataURL();document.body.removeChild(n),t(m)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.addEventListener("load",()=>{i.result&&(o.src=i.result)}),i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var ra={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function Ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){oa(e,o,n[o])})}return e}function oa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt=function(t,n){var r=Ut({},t,n.attrs);return c(fe,Ut({},r,{icon:ra}),null)};yt.displayName="DownloadOutlined";yt.inheritAttrs=!1;const aa=()=>({prefixCls:String,locale:le(void 0),file:le(),items:Be(),listType:ee(),isImgUrl:k(),showRemoveIcon:K(),showDownloadIcon:K(),showPreviewIcon:K(),removeIcon:k(),downloadIcon:k(),previewIcon:k(),iconRender:k(),actionIconRender:k(),itemRender:k(),onPreview:k(),onClose:k(),onDownload:k(),progress:le()}),la=X({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:aa(),setup(e,t){let{slots:n,attrs:r}=t;var o;const i=G(!1),a=G();ye(()=>{a.value=setTimeout(()=>{i.value=!0},300)}),Pe(()=>{clearTimeout(a.value)});const l=G((o=e.file)===null||o===void 0?void 0:o.status);me(()=>{var d;return(d=e.file)===null||d===void 0?void 0:d.status},d=>{d!=="removed"&&(l.value=d)});const{rootPrefixCls:u}=se("upload",e),p=L(()=>qn(`${u.value}-fade`));return()=>{var d,m;const{prefixCls:f,locale:b,listType:A,file:s,items:v,progress:R,iconRender:g=n.iconRender,actionIconRender:x=n.actionIconRender,itemRender:C=n.itemRender,isImgUrl:h,showPreviewIcon:_,showRemoveIcon:y,showDownloadIcon:E,previewIcon:T=n.previewIcon,removeIcon:B=n.removeIcon,downloadIcon:S=n.downloadIcon,onPreview:P,onDownload:w,onClose:O}=e,{class:F,style:j}=r,N=g({file:s});let M=c("div",{class:`${f}-text-icon`},[N]);if(A==="picture"||A==="picture-card")if(l.value==="uploading"||!s.thumbUrl&&!s.url){const ne={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:l.value!=="uploading"};M=c("div",{class:ne},[N])}else{const ne=h!=null&&h(s)?c("img",{src:s.thumbUrl||s.url,alt:s.name,class:`${f}-list-item-image`,crossorigin:s.crossOrigin},null):N,xn={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:h&&!h(s)};M=c("a",{class:xn,onClick:$n=>P(s,$n),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[ne])}const $={[`${f}-list-item`]:!0,[`${f}-list-item-${l.value}`]:!0},z=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,U=y?x({customIcon:B?B({file:s}):c(gt,null,null),callback:()=>O(s),prefixCls:f,title:b.removeFile}):null,H=E&&l.value==="done"?x({customIcon:S?S({file:s}):c(yt,null,null),callback:()=>w(s),prefixCls:f,title:b.downloadFile}):null,W=A!=="picture-card"&&c("span",{key:"download-delete",class:[`${f}-list-item-actions`,{picture:A==="picture"}]},[H,U]),J=`${f}-list-item-name`,re=s.url?[c("a",D(D({key:"view",target:"_blank",rel:"noopener noreferrer",class:J,title:s.name},z),{},{href:s.url,onClick:ne=>P(s,ne)}),[s.name]),W]:[c("span",{key:"view",class:J,onClick:ne=>P(s,ne),title:s.name},[s.name]),W],oe={pointerEvents:"none",opacity:.5},he=_?c("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:s.url||s.thumbUrl?void 0:oe,onClick:ne=>P(s,ne),title:b.previewFile},[T?T({file:s}):c(on,null,null)]):null,ue=A==="picture-card"&&l.value!=="uploading"&&c("span",{class:`${f}-list-item-actions`},[he,l.value==="done"&&H,U]),Ae=c("div",{class:$},[M,re,ue,i.value&&c(_n,p.value,{default:()=>[qt(c("div",{class:`${f}-list-item-progress`},["percent"in s?c(Eo,D(D({},R),{},{type:"line",percent:s.percent}),null):null]),[[Yt,l.value==="uploading"]])]})]),q={[`${f}-list-item-container`]:!0,[`${F}`]:!!F},Ve=s.response&&typeof s.response=="string"?s.response:((d=s.error)===null||d===void 0?void 0:d.statusText)||((m=s.error)===null||m===void 0?void 0:m.message)||b.uploadError,Re=l.value==="error"?c(an,{title:Ve,getPopupContainer:ne=>ne.parentNode},{default:()=>[Ae]}):Ae;return c("div",{class:q,style:j},[C?C({originNode:Re,file:s,fileList:v,actions:{download:w.bind(null,s),preview:P.bind(null,s),remove:O.bind(null,s)}}):Re])}}}),ia=(e,t)=>{let{slots:n}=t;var r;return at((r=n.default)===null||r===void 0?void 0:r.call(n))[0]},sa=X({compatConfig:{MODE:3},name:"AUploadList",props:we(Jo(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:na,isImageUrl:ta,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:r}=t;const o=G(!1);ye(()=>{o.value==!0});const i=G([]);me(()=>e.items,function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.value=s.slice()},{immediate:!0,deep:!0}),ke(()=>{if(e.listType!=="picture"&&e.listType!=="picture-card")return;let s=!1;(e.items||[]).forEach((v,R)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(v.originFileObj instanceof File||v.originFileObj instanceof Blob)||v.thumbUrl!==void 0||(v.thumbUrl="",e.previewFile&&e.previewFile(v.originFileObj).then(g=>{const x=g||"";x!==v.thumbUrl&&(i.value[R].thumbUrl=x,s=!0)}))}),s&&In(i)});const a=(s,v)=>{if(e.onPreview)return v==null||v.preventDefault(),e.onPreview(s)},l=s=>{typeof e.onDownload=="function"?e.onDownload(s):s.url&&window.open(s.url)},u=s=>{var v;(v=e.onRemove)===null||v===void 0||v.call(e,s)},p=s=>{let{file:v}=s;const R=e.iconRender||n.iconRender;if(R)return R({file:v,listType:e.listType});const g=v.status==="uploading",x=e.isImageUrl&&e.isImageUrl(v)?c(ht,null,null):c(bt,null,null);let C=g?c(Pt,null,null):c(mt,null,null);return e.listType==="picture"?C=g?c(Pt,null,null):x:e.listType==="picture-card"&&(C=g?e.locale.uploading:x),C},d=s=>{const{customIcon:v,callback:R,prefixCls:g,title:x}=s,C={type:"text",size:"small",title:x,onClick:()=>{R()},class:`${g}-list-item-action`};return rn(v)?c(Me,C,{icon:()=>v}):c(Me,C,{default:()=>[c("span",null,[v])]})};r({handlePreview:a,handleDownload:l});const{prefixCls:m,rootPrefixCls:f}=se("upload",e),b=L(()=>({[`${m.value}-list`]:!0,[`${m.value}-list-${e.listType}`]:!0})),A=L(()=>{const s=I({},Yn(`${f.value}-motion-collapse`));delete s.onAfterAppear,delete s.onAfterEnter,delete s.onAfterLeave;const v=I(I({},Zn(`${m.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:b.value,appear:o.value});return e.listType!=="picture-card"?I(I({},s),v):v});return()=>{const{listType:s,locale:v,isImageUrl:R,showPreviewIcon:g,showRemoveIcon:x,showDownloadIcon:C,removeIcon:h,previewIcon:_,downloadIcon:y,progress:E,appendAction:T,itemRender:B,appendActionVisible:S}=e,P=T==null?void 0:T(),w=i.value;return c(Pn,D(D({},A.value),{},{tag:"div"}),{default:()=>[w.map(O=>{const{uid:F}=O;return c(la,{key:F,locale:v,prefixCls:m.value,file:O,items:w,progress:E,listType:s,isImgUrl:R,showPreviewIcon:g,showRemoveIcon:x,showDownloadIcon:C,onPreview:a,onDownload:l,onClose:u,removeIcon:h,previewIcon:_,downloadIcon:y,itemRender:B},I(I({},n),{iconRender:p,actionIconRender:d}))}),T?qt(c(ia,{key:"__ant_upload_appendAction"},{default:()=>P}),[[Yt,!!S]]):null]})}}}),ua=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n},
  15. p${t}-text,
  16. p${t}-hint
  17. `]:{color:e.colorTextDisabled}}}}}},ca=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i}=e,a=`${t}-list-item`,l=`${a}-actions`,u=`${a}-action`,p=Math.round(o*i);return{[`${t}-wrapper`]:{[`${t}-list`]:I(I({},cn()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:I(I({},dn),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[u]:{opacity:0},[`${u}${n}-btn-sm`]:{height:p,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
  18. ${u}:focus,
  19. &.picture ${u}
  20. `]:{opacity:1},[r]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${a}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${u}`]:{opacity:1,color:e.colorText},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[l]:{[`${r}, ${r}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ht=new dt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Wt=new dt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),da=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Ht},[`${n}-leave`]:{animationName:Wt}}},Ht,Wt]},fa=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o}=e,i=`${t}-list`,a=`${i}-item`;return{[`${t}-wrapper`]:{[`${i}${i}-picture, ${i}${i}-picture-card`]:{[a]:{position:"relative",height:r+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${a}-thumbnail`]:I(I({},dn),{width:r,height:r,lineHeight:`${r+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${a}-progress`]:{bottom:o,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:r+e.paddingXS}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:o}}}}}},pa=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o}=e,i=`${t}-list`,a=`${i}-item`,l=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:I(I({},cn()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card`]:{[`${i}-item-container`]:{display:"inline-block",width:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[a]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${a}-actions, ${a}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Qn(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${a}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},va=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},ga=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:I(I({},un(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},ma=ln("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightLG:i}=e,a=Math.round(n*r),l=sn(e,{uploadThumbnailSize:t*2,uploadProgressOffset:a/2+o,uploadPicCardSize:i*2.55});return[ga(l),ua(l),fa(l),pa(l),ca(l),da(l),va(l),Jn(l)]});var ha=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{p(r.next(d))}catch(m){a(m)}}function u(d){try{p(r.throw(d))}catch(m){a(m)}}function p(d){d.done?i(d.value):o(d.value).then(l,u)}p((r=r.apply(e,t||[])).next())})},ba=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $e=`__LIST_IGNORE_${Date.now()}__`,ze=X({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:we(wn(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",supportServerRender:!0}),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const i=lt(),{prefixCls:a,direction:l,disabled:u}=se("upload",e),[p,d]=ma(a),m=ut(),f=L(()=>{var S;return(S=u.value)!==null&&S!==void 0?S:m.value}),[b,A]=Kn(e.defaultFileList||[],{value:An(e,"fileList"),postState:S=>{const P=Date.now();return(S??[]).map((w,O)=>(!w.uid&&!Object.isFrozen(w)&&(w.uid=`__AUTO__${P}_${O}__`),w))}}),s=Q("drop"),v=Q(null);ye(()=>{Ee(e.fileList!==void 0||r.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Ee(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Ee(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const R=(S,P,w)=>{var O,F;let j=[...P];e.maxCount===1?j=j.slice(-1):e.maxCount&&(j=j.slice(0,e.maxCount)),A(j);const N={file:S,fileList:j};w&&(N.event=w),(O=e["onUpdate:fileList"])===null||O===void 0||O.call(e,N.fileList),(F=e.onChange)===null||F===void 0||F.call(e,N),i.onFieldChange()},g=(S,P)=>ha(this,void 0,void 0,function*(){const{beforeUpload:w,transformFile:O}=e;let F=S;if(w){const j=yield w(S,P);if(j===!1)return!1;if(delete S[$e],j===$e)return Object.defineProperty(S,$e,{value:!0,configurable:!0}),!1;typeof j=="object"&&j&&(F=j)}return O&&(F=yield O(F)),F}),x=S=>{const P=S.filter(F=>!F.file[$e]);if(!P.length)return;const w=P.map(F=>De(F.file));let O=[...b.value];w.forEach(F=>{O=Te(F,O)}),w.forEach((F,j)=>{let N=F;if(P[j].parsedFile)F.status="uploading";else{const{originFileObj:M}=F;let $;try{$=new File([M],M.name,{type:M.type})}catch{$=new Blob([M],{type:M.type}),$.name=M.name,$.lastModifiedDate=new Date,$.lastModified=new Date().getTime()}$.uid=F.uid,N=$}R(N,O)})},C=(S,P,w)=>{try{typeof S=="string"&&(S=JSON.parse(S))}catch{}if(!tt(P,b.value))return;const O=De(P);O.status="done",O.percent=100,O.response=S,O.xhr=w;const F=Te(O,b.value);R(O,F)},h=(S,P)=>{if(!tt(P,b.value))return;const w=De(P);w.status="uploading",w.percent=S.percent;const O=Te(w,b.value);R(w,O,S)},_=(S,P,w)=>{if(!tt(w,b.value))return;const O=De(w);O.error=S,O.response=P,O.status="error";const F=Te(O,b.value);R(O,F)},y=S=>{let P;const w=e.onRemove||e.remove;Promise.resolve(typeof w=="function"?w(S):w).then(O=>{var F,j;if(O===!1)return;const N=Ko(S,b.value);N&&(P=I(I({},S),{status:"removed"}),(F=b.value)===null||F===void 0||F.forEach(M=>{const $=P.uid!==void 0?"uid":"name";M[$]===P[$]&&!Object.isFrozen(M)&&(M.status="removed")}),(j=v.value)===null||j===void 0||j.abort(P),R(P,N))})},E=S=>{var P;s.value=S.type,S.type==="drop"&&((P=e.onDrop)===null||P===void 0||P.call(e,S))};o({onBatchStart:x,onSuccess:C,onProgress:h,onError:_,fileList:b,upload:v});const[T]=er("Upload",tr.Upload,L(()=>e.locale)),B=(S,P)=>{const{removeIcon:w,previewIcon:O,downloadIcon:F,previewFile:j,onPreview:N,onDownload:M,isImageUrl:$,progress:z,itemRender:U,iconRender:H,showUploadList:W}=e,{showDownloadIcon:J,showPreviewIcon:re,showRemoveIcon:oe}=typeof W=="boolean"?{}:W;return W?c(sa,{prefixCls:a.value,listType:e.listType,items:b.value,previewFile:j,onPreview:N,onDownload:M,onRemove:y,showRemoveIcon:!f.value&&oe,showPreviewIcon:re,showDownloadIcon:J,removeIcon:w,previewIcon:O,downloadIcon:F,iconRender:H,locale:T.value,isImageUrl:$,progress:z,itemRender:U,appendActionVisible:P,appendAction:S},I({},n)):S==null?void 0:S()};return()=>{var S,P,w;const{listType:O,type:F}=e,{class:j,style:N}=r,M=ba(r,["class","style"]),$=I(I(I({onBatchStart:x,onError:_,onProgress:h,onSuccess:C},M),e),{id:(S=e.id)!==null&&S!==void 0?S:i.id.value,prefixCls:a.value,beforeUpload:g,onChange:void 0,disabled:f.value});delete $.remove,(!n.default||f.value)&&delete $.id;const z={[`${a.value}-rtl`]:l.value==="rtl"};if(F==="drag"){const J=V(a.value,{[`${a.value}-drag`]:!0,[`${a.value}-drag-uploading`]:b.value.some(re=>re.status==="uploading"),[`${a.value}-drag-hover`]:s.value==="dragover",[`${a.value}-disabled`]:f.value,[`${a.value}-rtl`]:l.value==="rtl"},r.class,d.value);return p(c("span",D(D({},r),{},{class:V(`${a.value}-wrapper`,z,j,d.value)}),[c("div",{class:J,onDrop:E,onDragover:E,onDragleave:E,style:r.style},[c(Mt,D(D({},$),{},{ref:v,class:`${a.value}-btn`}),D({default:()=>[c("div",{class:`${a.value}-drag-container`},[(P=n.default)===null||P===void 0?void 0:P.call(n)])]},n))]),B()]))}const U=V(a.value,{[`${a.value}-select`]:!0,[`${a.value}-select-${O}`]:!0,[`${a.value}-disabled`]:f.value,[`${a.value}-rtl`]:l.value==="rtl"}),H=nr((w=n.default)===null||w===void 0?void 0:w.call(n)),W=J=>c("div",{class:U,style:J},[c(Mt,D(D({},$),{},{ref:v}),n)]);return p(O==="picture-card"?c("span",D(D({},r),{},{class:V(`${a.value}-wrapper`,`${a.value}-picture-card-wrapper`,z,r.class,d.value)}),[B(W,!!(H&&H.length))]):c("span",D(D({},r),{},{class:V(`${a.value}-wrapper`,z,r.class,d.value)}),[W(H&&H.length?void 0:{display:"none"}),B()]))}}});var Vt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nt=X({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:wn(),setup(e,t){let{slots:n,attrs:r}=t;return()=>{const{height:o}=e,i=Vt(e,["height"]),{style:a}=r,l=Vt(r,["style"]),u=I(I(I({},i),l),{type:"drag",style:I(I({},a),{height:typeof o=="number"?`${o}px`:o})});return c(ze,u,n)}}}),ya=I(ze,{Dragger:nt,LIST_IGNORE:$e,install(e){return e.component(ze.name,ze),e.component(nt.name,nt),e}});var wa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};function Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ca(e,o,n[o])})}return e}function Ca(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt=function(t,n){var r=Xt({},t,n.attrs);return c(fe,Xt({},r,{icon:wa}),null)};wt.displayName="UploadOutlined";wt.inheritAttrs=!1;const xa={components:{UploadOutlined:wt},data(){return{contacts:[{id:1,name:"Alice"},{id:2,name:"Bob"},{id:3,name:"Charlie"}],messages:[],selectedContact:null,inputMessage:"",uploadedFileName:""}},methods:{selectContact(e){this.selectedContact=e,this.messages=[]},sendMessage(){this.inputMessage.trim()&&(this.messages.push({id:Date.now(),sender:"user",text:this.inputMessage}),this.inputMessage="")},handleUpload(e){return this.uploadedFileName=e.name,!1}}};function $a(e,t,n,r,o,i){const a=ar,l=ir,u=lr,p=or,d=ur,m=sr,f=Fn("UploadOutlined"),b=Me,A=ya,s=Z,v=fr,R=dr,g=cr,x=rr;return Ce(),Xe(x,{style:{height:"100vh"}},{default:Y(()=>[c(p,{width:"250",style:{background:"#08002E"}},{default:Y(()=>[c(a,{style:{background:"#5A008F",color:"white","font-size":"18px","font-weight":"bold","text-align":"center"}},{default:Y(()=>t[1]||(t[1]=[xe(" Chat Application ")])),_:1}),c(u,{"data-source":o.contacts,bordered:!1},{default:Y(()=>[(Ce(!0),Ct(be,null,xt(o.contacts,C=>(Ce(),Xe(l,{key:C.id,onClick:h=>i.selectContact(C),style:{cursor:"pointer",padding:"10px"}},{default:Y(()=>[xe(Ge(C.name),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["data-source"])]),_:1}),c(x,null,{default:Y(()=>[c(m,{style:{background:"#f0f0f0",padding:"16px"}},{default:Y(()=>[c(u,{"data-source":o.messages,bordered:!1},{default:Y(()=>[(Ce(!0),Ct(be,null,xt(o.messages,C=>(Ce(),Xe(l,{key:C.id,style:$t({textAlign:C.sender==="user"?"right":"left"})},{default:Y(()=>[c(d,{style:$t({backgroundColor:C.sender==="user"?"#5A008F":"#e0e0e0",color:C.sender==="user"?"white":"black",borderRadius:"15px",maxWidth:"70%",margin:"10px"})},{default:Y(()=>[xe(Ge(C.text),1)]),_:2},1032,["style"])]),_:2},1032,["style"]))),128))]),_:1},8,["data-source"])]),_:1}),c(g,{style:{padding:"16px"}},{default:Y(()=>[c(R,{gutter:16},{default:Y(()=>[c(v,{span:18},{default:Y(()=>[c(s,{value:o.inputMessage,"onUpdate:value":t[0]||(t[0]=C=>o.inputMessage=C),placeholder:"Type a message..."},{suffix:Y(()=>[c(A,{"before-upload":i.handleUpload},{icon:Y(()=>[c(f)]),default:Y(()=>[c(b,{shape:"circle",style:{background:"#5A008F",color:"white"}})]),_:1},8,["before-upload"]),xe(" "+Ge(o.uploadedFileName),1)]),_:1},8,["value"])]),_:1}),c(v,{span:6},{default:Y(()=>[c(b,{type:"primary",onClick:i.sendMessage,style:{background:"#5A008F",color:"white","font-weight":"bold"}},{default:Y(()=>t[2]||(t[2]=[xe("Send")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const _a=Rn(xa,[["render",$a],["__scopeId","data-v-28e4b03e"]]);export{_a as default};