ant-design-x-vue 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +6 -0
- package/README.md +5 -0
- package/dist/index.umd.js +10 -10
- package/es/attachments/FileList/FileList2.mjs +10 -12
- package/es/sender/components/LoadingButton.mjs +5 -5
- package/es/thought-chain/hooks/useCollapsible.mjs +25 -17
- package/es/use-x-agent/use-x-agent.mjs +41 -34
- package/es/use-x-chat/use-x-chat.mjs +98 -69
- package/es/x-request/x-request.mjs +55 -53
- package/lib/attachments/FileList/FileList2.js +1 -1
- package/lib/sender/components/LoadingButton.js +1 -1
- package/lib/thought-chain/hooks/useCollapsible.js +1 -1
- package/lib/use-x-agent/use-x-agent.js +1 -1
- package/lib/use-x-chat/use-x-chat.js +1 -1
- package/lib/x-request/x-request.js +1 -1
- package/package.json +1 -1
- package/typings/use-x-agent/use-x-agent.d.ts +3 -1
- package/typings/use-x-chat/use-x-chat.d.ts +15 -1
- package/typings/x-request/x-request.d.ts +4 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(function(E,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue"],o):(E=typeof globalThis<"u"?globalThis:E||self,o(E.antdx={},E.Vue,E.antd))})(this,function(E,o,O){"use strict";var Kc=Object.defineProperty;var Zc=(E,o,O)=>o in E?Kc(E,o,{enumerable:!0,configurable:!0,writable:!0,value:O}):E[o]=O;var Me=(E,o,O)=>Zc(E,typeof o!="symbol"?o+"":o,O);const Ka="anticon",Za=Symbol("configProvider"),Ya={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o.computed(()=>Ka),getPopupContainer:o.computed(()=>()=>document.body),direction:o.computed(()=>"ltr")},Qa=()=>o.inject(Za,Ya),Ja="ant";function W(){const{getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r,theme:a}=Qa();return{theme:a,getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r}}function X(e,t){const n=Object.create(null);for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}const _a=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function te(e){return{type:Object,default:e}}function wt(e){return{type:Boolean,default:e}}function eo(e,t){const n={validator:()=>!0,default:e};return n}function Hn(e){return{type:Array,default:e}}function jn(e){return{type:String,default:e}}function to(e,t){return e?{type:e,default:t}:eo(t)}const zn=Symbol("XProviderContext"),$t=o.shallowRef(),no=e=>{o.provide(zn,e),o.watch(e,()=>{$t.value=o.unref(e),o.triggerRef($t)},{immediate:!0,deep:!0})},ro=()=>o.inject(zn,o.computed(()=>$t.value||{})),ao=o.defineComponent({props:{value:te()},setup(e,{slots:t}){return no(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),oo=o.defineComponent({name:"AXConfigProvider",inheritAttrs:!1,__name:"index",props:{bubble:null,conversations:null,prompts:null,sender:null,suggestion:null,thoughtChain:null,attachments:null,welcome:null,iconPrefixCls:null,getTargetContainer:null,getPopupContainer:null,prefixCls:null,getPrefixCls:null,renderEmpty:null,transformCellText:null,csp:null,input:null,autoInsertSpaceInButton:null,locale:null,pageHeader:null,componentSize:null,componentDisabled:null,direction:null,space:null,virtual:null,dropdownMatchSelectWidth:null,form:null,pagination:null,theme:null,select:null,wave:null},setup(e){const t=X(e,["attachments","bubble","conversations","prompts","sender","suggestion","thoughtChain","welcome"]),n=o.useSlots(),r=o.computed(()=>({attachments:e.attachments,bubble:e.bubble,conversations:e.conversations,prompts:e.prompts,sender:e.sender,suggestion:e.suggestion,thoughtChain:e.thoughtChain,welcome:e.welcome})),{theme:a}=W(),i=o.computed(()=>({...(a==null?void 0:a.value)||{},...t.theme})),l=o.computed(()=>{var s;return(s=n.default)==null?void 0:s.call(n)});return()=>o.createVNode(ao,{value:r.value},{default:()=>[o.createVNode(O.ConfigProvider,o.mergeProps(t,{theme:i.value}),{default:()=>[l.value]})]})}}),io={classNames:{},styles:{},className:"",style:{}},re=e=>{const t=ro();return o.computed(()=>({...io,...o.unref(t)[e]}))};function z(e){const t=typeof e=="function"?e():e,n=o.ref(t);function r(a){n.value=a}return[n,r]}function fe(e){return typeof e=="string"}const lo=(e,t,n,r)=>{const[a,i]=z(""),[l,s]=z(1),c=o.computed(()=>t.value&&fe(e.value));return o.watch(e,()=>{const d=o.unref(a);i(e.value),!c.value&&fe(e.value)?s(e.value.length):fe(e.value)&&fe(d)&&e.value.indexOf(d)!==0&&s(1)}),o.watch([l,t,e],()=>{if(c.value&&fe(e.value)&&o.unref(l)<e.value.length){const d=setTimeout(()=>{s(o.unref(l)+n.value)},r.value);o.onWatcherCleanup(()=>{clearTimeout(d)})}},{immediate:!0}),[o.computed(()=>c.value&&fe(e.value)?e.value.slice(0,o.unref(l)):e.value),o.computed(()=>c.value&&fe(e.value)&&o.unref(l)<e.value.length)]};function so(e){const t=o.computed(()=>!!o.toValue(e)),n={step:1,interval:50,suffix:null},r=o.computed(()=>{const a=o.toValue(e);return{...n,...typeof a=="object"?a:{}}});return[t,o.computed(()=>r.value.step),o.computed(()=>r.value.interval),o.computed(()=>r.value.suffix)]}const co=o.defineComponent({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup(e){return()=>o.createVNode("span",{class:`${e.prefixCls}-dot`},[o.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-1"},null),o.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-2"},null),o.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-3"},null)])}});function Nt(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const Bn="%";class uo{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(Bn):t)||null}update(t,n){const r=Array.isArray(t)?t.join(Bn):t,a=this.cache.get(r),i=n(a);i===null?this.cache.delete(r):this.cache.set(r,i)}}const Fn="data-token-hash",ae="data-css-hash",xe="__cssinjs_instance__";function Ee(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ae}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(a=>{a[xe]=a[xe]||e,a[xe]===e&&document.head.insertBefore(a,n)});const r={};Array.from(document.querySelectorAll(`style[${ae}]`)).forEach(a=>{var l;const i=a.getAttribute(ae);r[i]?a[xe]===e&&((l=a.parentNode)==null||l.removeChild(a)):r[i]=!0})}return new uo(e)}const Dn=Symbol("StyleContextKey"),fo=()=>{var n,r,a;const e=o.getCurrentInstance();let t;if(e&&e.appContext){const i=(a=(r=(n=e.appContext)==null?void 0:n.config)==null?void 0:r.globalProperties)==null?void 0:a.__ANTDV_CSSINJS_CACHE__;i?t=i:(t=Ee(),e.appContext.config.globalProperties&&(e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=t))}else t=Ee();return t},Xn={cache:Ee(),defaultCache:!0,hashPriority:"low"},Ie=()=>{const e=fo();return o.inject(Dn,o.shallowRef({...Xn,cache:e}))},kn=e=>{const t=Ie(),n=o.shallowRef({...Xn,cache:Ee()});return o.watch([()=>o.unref(e),t],()=>{const r={...t.value},a=o.unref(e);Object.keys(a).forEach(l=>{const s=a[l];a[l]!==void 0&&(r[l]=s)});const{cache:i}=a;r.cache=r.cache||Ee(),r.defaultCache=!i&&t.value.defaultCache,n.value=r},{immediate:!0}),o.provide(Dn,n),n},ho=()=>({autoClear:wt(),mock:jn(),cache:te(),defaultCache:wt(),hashPriority:jn(),container:to(),ssrInline:wt(),transformers:Hn(),linters:Hn()}),mo=_a(o.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:ho(),setup(e,{slots:t}){return kn(e),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}})),go={useStyleInject:Ie,useStyleProvider:kn,StyleProvider:mo};function Tt(e,t,n,r){const a=Ie(),i=o.shallowRef(""),l=o.shallowRef();o.watchEffect(()=>{i.value=[e,...t.value].join("%")});const s=c=>{a.value.cache.update(c,u=>{const[d=0,f]=u||[];return d-1===0?(r==null||r(f,!1),null):[d-1,f]})};return o.watch(i,(c,u)=>{u&&s(u),a.value.cache.update(c,d=>{const[f=0,y]=d||[],p=y||n();return[f+1,p]}),l.value=a.value.cache.get(i.value)[1]},{immediate:!0}),o.onBeforeUnmount(()=>{s(i.value)}),l}function Se(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function po(e,t){return e&&e.contains?e.contains(t):!1}const Wn="data-vc-order",yo="vc-util-key",Pt=new Map;function Gn({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:yo}function Ge(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function bo(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function qn(e){return Array.from((Pt.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Un(e,t={}){if(!Se())return null;const{csp:n,prepend:r}=t,a=document.createElement("style");a.setAttribute(Wn,bo(r)),n!=null&&n.nonce&&(a.nonce=n==null?void 0:n.nonce),a.innerHTML=e;const i=Ge(t),{firstChild:l}=i;if(r){if(r==="queue"){const s=qn(i).filter(c=>["prepend","prependQueue"].includes(c.getAttribute(Wn)));if(s.length)return i.insertBefore(a,s[s.length-1].nextSibling),a}i.insertBefore(a,l)}else i.appendChild(a);return a}function Kn(e,t={}){const n=Ge(t);return qn(n).find(r=>r.getAttribute(Gn(t))===e)}function Ot(e,t={}){const n=Kn(e,t);n&&Ge(t).removeChild(n)}function vo(e,t){const n=Pt.get(e);if(!n||!po(document,n)){const r=Un("",t),{parentNode:a}=r;Pt.set(e,a),e.removeChild(r)}}function At(e,t,n={}){var l,s,c;const r=Ge(n);vo(r,n);const a=Kn(t,n);if(a)return(l=n.csp)!=null&&l.nonce&&a.nonce!==((s=n.csp)==null?void 0:s.nonce)&&(a.nonce=(c=n.csp)==null?void 0:c.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const i=Un(e,n);return i.setAttribute(Gn(n),t),i}function Co(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const Ae=class Ae{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let r={map:this.cache};return t.forEach(a=>{var i;r?r=(i=r==null?void 0:r.map)==null?void 0:i.get(a):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))==null?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Ae.MAX_CACHE_SIZE+Ae.MAX_CACHE_OFFSET){const[a]=this.keys.reduce((i,l)=>{const[,s]=i;return this.internalGet(l)[1]<s?[l,this.internalGet(l)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(a)}this.keys.push(t)}let r=this.cache;t.forEach((a,i)=>{if(i===t.length-1)r.set(a,{value:[n,this.cacheCallTimes++]});else{const l=r.get(a);l?l.map||(l.map=new Map):r.set(a,{map:new Map}),r=r.get(a).map}})}deleteByPath(t,n){var i;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(i=r.value)==null?void 0:i[0];const a=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),a}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!Co(n,t)),this.deleteByPath(this.cache,t)}};Ae.MAX_CACHE_SIZE=20,Ae.MAX_CACHE_OFFSET=5;let Rt=Ae;function xo(){}let So=xo;const wo=Symbol("WarningContext"),Zn=o.shallowRef(),$o=e=>{o.provide(wo,e),o.watch(e,()=>{Zn.value=o.unref(e),o.triggerRef(Zn)},{immediate:!0,deep:!0})};o.defineComponent({props:{value:te()},setup(e,{slots:t}){return $o(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}});let Yn=0;class Qn{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=Yn,t.length===0&&So(t.length>0),Yn+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const Mt=new Rt;function No(e){const t=Array.isArray(e)?e:[e];return Mt.has(t)||Mt.set(t,new Qn(t)),Mt.get(t)}const Jn=new WeakMap;function qe(e){let t=Jn.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof Qn?t+=r.id:r&&typeof r=="object"?t+=qe(r):t+=r}),Jn.set(e,t)),t}function To(e,t){return Nt(`${t}_${qe(e)}`)}const Ve=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),_n="_bAmBoO_";function Po(e,t,n){var r,a;if(Se()){At(e,Ve);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);const l=n?n(i):(r=getComputedStyle(i).content)==null?void 0:r.includes(_n);return(a=i.parentNode)==null||a.removeChild(i),Ot(Ve),l}return!1}let Et;function Oo(){return Et===void 0&&(Et=Po(`@layer ${Ve} { .${Ve} { content: "${_n}"!important; } }`,e=>{e.className=Ve})),Et}const Ao=Se();function Z(e){return typeof e=="number"?`${e}px`:e}const Ue=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),Ro=(e,t,n)=>Object.keys(e).length?`.${t}${n!=null&&n.scope?`.${n.scope}`:""}{${Object.entries(e).map(([r,a])=>`${r}:${a};`).join("")}}`:"",Mo=(e,t,n)=>{const r={},a={};return Object.entries(e).forEach(([i,l])=>{var s,c,u;if((s=n==null?void 0:n.preserve)!=null&&s[i])a[i]=l;else if((typeof l=="string"||typeof l=="number")&&!((c=n==null?void 0:n.ignore)!=null&&c[i])){const d=Ue(i,n==null?void 0:n.prefix);r[d]=typeof l=="number"&&!((u=n==null?void 0:n.unitless)!=null&&u[i])?`${l}px`:String(l),a[i]=`var(${d})`}}),[a,Ro(r,t,{scope:n==null?void 0:n.scope})]},er={},Eo="css",he=new Map;function Io(e){he.set(e,(he.get(e)||0)+1)}function Vo(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Fn}="${e}"]`).forEach(r=>{var a;r[xe]===t&&((a=r.parentNode)==null||a.removeChild(r))})}const Lo=0;function Ho(e,t){he.set(e,(he.get(e)||0)-1);const n=Array.from(he.keys()),r=n.filter(a=>(he.get(a)||0)<=0);n.length-r.length>Lo&&r.forEach(a=>{Vo(a,t),he.delete(a)})}const jo=(e,t,n,r)=>{let i={...n==null?void 0:n.getDerivativeToken(e),...t};return r&&(i=r(i)),i};function zo(e,t,n=o.ref({})){const r=Ie(),a=o.computed(()=>Object.assign({},...t.value||[])),i=o.computed(()=>qe(a.value)),l=o.computed(()=>{var c;return qe(((c=n.value)==null?void 0:c.override)||er)});return Tt("token",o.computed(()=>{var c,u;return[((c=n.value)==null?void 0:c.salt)||"",(u=e.value)==null?void 0:u.id,i.value,l.value]}),()=>{const{salt:c="",override:u=er,formatToken:d,getComputedToken:f}=n.value||{},y=f?f(a.value,u,e.value):jo(a.value,u,e.value,d),m=To(y,c);y._tokenKey=m,Io(m);const p=`${Eo}-${Nt(m)}`;return y._hashId=p,[y,p]},c=>{var u;Ho(c[0]._tokenKey,(u=r.value)==null?void 0:u.cache.instanceId)})}var Bo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tr="comm",nr="rule",rr="decl",Fo="@import",Do="@keyframes",Xo="@layer",ar=Math.abs,It=String.fromCharCode;function or(e){return e.trim()}function Ke(e,t,n){return e.replace(t,n)}function ko(e,t,n){return e.indexOf(t,n)}function Le(e,t){return e.charCodeAt(t)|0}function we(e,t,n){return e.slice(t,n)}function J(e){return e.length}function Wo(e){return e.length}function Ze(e,t){return t.push(e),e}var Ye=1,$e=1,ir=0,U=0,B=0,Ne="";function Vt(e,t,n,r,a,i,l,s){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:Ye,column:$e,length:l,return:"",siblings:s}}function Go(){return B}function qo(){return B=U>0?Le(Ne,--U):0,$e--,B===10&&($e=1,Ye--),B}function Y(){return B=U<ir?Le(Ne,U++):0,$e++,B===10&&($e=1,Ye++),B}function oe(){return Le(Ne,U)}function Qe(){return U}function Je(e,t){return we(Ne,e,t)}function He(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Uo(e){return Ye=$e=1,ir=J(Ne=e),U=0,[]}function Ko(e){return Ne="",e}function Lt(e){return or(Je(U-1,Ht(e===91?e+2:e===40?e+1:e)))}function Zo(e){for(;(B=oe())&&B<33;)Y();return He(e)>2||He(B)>3?"":" "}function Yo(e,t){for(;--t&&Y()&&!(B<48||B>102||B>57&&B<65||B>70&&B<97););return Je(e,Qe()+(t<6&&oe()==32&&Y()==32))}function Ht(e){for(;Y();)switch(B){case e:return U;case 34:case 39:e!==34&&e!==39&&Ht(B);break;case 40:e===41&&Ht(e);break;case 92:Y();break}return U}function Qo(e,t){for(;Y()&&e+B!==57;)if(e+B===84&&oe()===47)break;return"/*"+Je(t,U-1)+"*"+It(e===47?e:Y())}function Jo(e){for(;!He(oe());)Y();return Je(e,U)}function _o(e){return Ko(_e("",null,null,null,[""],e=Uo(e),0,[0],e))}function _e(e,t,n,r,a,i,l,s,c){for(var u=0,d=0,f=l,y=0,m=0,p=0,h=1,g=1,C=1,S=0,v="",x=a,$=i,w=r,b=v;g;)switch(p=S,S=Y()){case 40:if(p!=108&&Le(b,f-1)==58){ko(b+=Ke(Lt(S),"&","&\f"),"&\f",ar(u?s[u-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:b+=Lt(S);break;case 9:case 10:case 13:case 32:b+=Zo(p);break;case 92:b+=Yo(Qe()-1,7);continue;case 47:switch(oe()){case 42:case 47:Ze(ei(Qo(Y(),Qe()),t,n,c),c),(He(p||1)==5||He(oe()||1)==5)&&J(b)&&we(b,-1,void 0)!==" "&&(b+=" ");break;default:b+="/"}break;case 123*h:s[u++]=J(b)*C;case 125*h:case 59:case 0:switch(S){case 0:case 125:g=0;case 59+d:C==-1&&(b=Ke(b,/\f/g,"")),m>0&&(J(b)-f||h===0&&p===47)&&Ze(m>32?sr(b+";",r,n,f-1,c):sr(Ke(b," ","")+";",r,n,f-2,c),c);break;case 59:b+=";";default:if(Ze(w=lr(b,t,n,u,d,a,s,v,x=[],$=[],f,i),i),S===123)if(d===0)_e(b,t,w,w,x,i,f,s,$);else switch(y===99&&Le(b,3)===110?100:y){case 100:case 108:case 109:case 115:_e(e,w,w,r&&Ze(lr(e,w,w,0,0,a,s,v,a,x=[],f,$),$),a,$,f,s,r?x:$);break;default:_e(b,w,w,w,[""],$,0,s,$)}}u=d=m=0,h=C=1,v=b="",f=l;break;case 58:f=1+J(b),m=p;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&qo()==125)continue}switch(b+=It(S),S*h){case 38:C=d>0?1:(b+="\f",-1);break;case 44:s[u++]=(J(b)-1)*C,C=1;break;case 64:oe()===45&&(b+=Lt(Y())),y=oe(),d=f=J(v=b+=Jo(Qe())),S++;break;case 45:p===45&&J(b)==2&&(h=0)}}return i}function lr(e,t,n,r,a,i,l,s,c,u,d,f){for(var y=a-1,m=a===0?i:[""],p=Wo(m),h=0,g=0,C=0;h<r;++h)for(var S=0,v=we(e,y+1,y=ar(g=l[h])),x=e;S<p;++S)(x=or(g>0?m[S]+" "+v:Ke(v,/&\f/g,m[S])))&&(c[C++]=x);return Vt(e,t,n,a===0?nr:s,c,u,d,f)}function ei(e,t,n,r){return Vt(e,t,n,tr,It(Go()),we(e,2,-2),0,r)}function sr(e,t,n,r,a){return Vt(e,t,n,rr,we(e,0,r),we(e,r+1,-1),r,a)}function jt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ti(e,t,n,r){switch(e.type){case Xo:if(e.children.length)break;case Fo:case rr:return e.return=e.return||e.value;case tr:return"";case Do:return e.return=e.value+"{"+jt(e.children,r)+"}";case nr:if(!J(e.value=e.props.join(",")))return""}return J(n=jt(e.children,r))?e.return=e.value+"{"+n+"}":""}const cr="data-ant-cssinjs-cache-path",ni="_FILE_STYLE__";let me,ur=!0;function ri(){var e;if(!me&&(me={},Se())){const t=document.createElement("div");t.className=cr,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(a=>{const[i,l]=a.split(":");me[i]=l});const r=document.querySelector(`style[${cr}]`);r&&(ur=!1,(e=r.parentNode)==null||e.removeChild(r)),document.body.removeChild(t)}}function ai(e){return ri(),!!me[e]}function oi(e){const t=me[e];let n=null;if(t&&Se())if(ur)n=ni;else{const r=document.querySelector(`style[${ae}="${me[e]}"]`);r?n=r.innerHTML:delete me[e]}return[n,t]}const dr=Se(),ii="_skip_check_",fr="_multi_value_";function hr(e){return jt(_o(e),ti).replace(/\{%%%\:[^;];}/g,";")}function li(e){return typeof e=="object"&&e&&(ii in e||fr in e)}function si(e,t,n){if(!t)return e;const r=`.${t}`,a=n==="low"?`:where(${r})`:r;return e.split(",").map(l=>{var d;const s=l.trim().split(/\s+/);let c=s[0]||"";const u=((d=c.match(/^\w+/))==null?void 0:d[0])||"";return c=`${u}${a}${c.slice(u.length)}`,[c,...s.slice(1)].join(" ")}).join(",")}const mr=new Set,zt=(e,t={},{root:n,injectHash:r,parentSelectors:a}={root:!0,parentSelectors:[]})=>{const{hashId:i,layer:l,path:s,hashPriority:c,transformers:u=[],linters:d=[]}=t;let f="",y={};function m(g){const C=g.getName(i);if(!y[C]){const[S]=zt(g.style,t,{root:!1,parentSelectors:a});y[C]=`@keyframes ${g.getName(i)}${S}`}}function p(g,C=[]){return g.forEach(S=>{Array.isArray(S)?p(S,C):S&&C.push(S)}),C}return p(Array.isArray(e)?e:[e]).forEach(g=>{const C=typeof g=="string"&&!n?{}:g;if(typeof C=="string")f+=`${C}
|
|
2
|
-
`;else if(C._keyframe)m(C);else{const S=u.reduce((v,x)=>{var $;return(($=x==null?void 0:x.visit)==null?void 0:$.call(x,v))||v},C);Object.keys(S).forEach(v=>{const x=S[v];if(typeof x=="object"&&x&&(v!=="animationName"||!x._keyframe)&&!li(x)){let $=!1,w=v.trim(),b=!1;(n||r)&&i?w.startsWith("@")?$=!0:w=si(v,i,c):n&&!i&&(w==="&"||w==="")&&(w="",b=!0);const[T,A]=zt(x,t,{root:b,injectHash:$,parentSelectors:[...a,w]});y={...y,...A},f+=`${w}${T}`}else{let $=function(b,T){const A=b.replace(/[A-Z]/g,M=>`-${M.toLowerCase()}`);let R=T;!Bo[b]&&typeof R=="number"&&R!==0&&(R=`${R}px`),b==="animationName"&&(T!=null&&T._keyframe)&&(m(T),R=T.getName(i)),f+=`${A}:${R};`};const w=(x==null?void 0:x.value)??x;typeof x=="object"&&(x!=null&&x[fr])&&Array.isArray(w)?w.forEach(b=>{$(v,b)}):$(v,w)}})}}),n?l&&Oo():f=`{${f}}`,[f,y]};function gr(e,t){return Nt(`${e.join("%")}${t}`)}function pr(e,t){const n=Ie(),r=o.computed(()=>{var l;return(l=e.value)==null?void 0:l.token._tokenKey}),a=o.computed(()=>{var l;return[r.value,...((l=e.value)==null?void 0:l.path)||[]]});let i=dr;return Tt("style",a,()=>{const{path:l,hashId:s,layer:c,nonce:u,clientOnly:d,order:f=0}=e.value||{},y=a.value.join("|");if(ai(y)){const[b,T]=oi(y);if(b)return[b,r.value,T,{},d,f]}const m=t(),{hashPriority:p,container:h,transformers:g,linters:C,cache:S}=n.value,[v,x]=zt(m,{hashId:s,hashPriority:p,layer:c,path:l==null?void 0:l.join("-"),transformers:g,linters:C}),$=hr(v),w=gr(a.value,$);if(i){const b={mark:ae,prepend:"queue",attachTo:h},T=typeof u=="function"?u():u;T&&(b.csp={nonce:T});const A=At($,w,b);A[xe]=S.instanceId,A.setAttribute(Fn,r.value),Object.keys(x).forEach(R=>{mr.has(R)||(mr.add(R),At(hr(x[R]),`_effect-${R}`,{mark:ae,prepend:"queue",attachTo:h}))})}return[$,r.value,w,x,d,f]},([,,l],s)=>{(s||n.value.autoClear)&&dr&&Ot(l,{mark:ae})}),l=>l}const ci="cssVar",ui=(e,t)=>{const{key:n,prefix:r,unitless:a,ignore:i,token:l,scope:s=""}=e,{cache:{instanceId:c},container:u}=useContext(go),{_tokenKey:d}=l,f=[...e.path,n,s,d];return Tt(ci,f,()=>{const m=t(),[p,h]=Mo(m,n,{prefix:r,unitless:a,ignore:i,scope:s}),g=gr(f,h);return[p,h,g,n]},([,,m])=>{Ao&&Ot(m,{mark:ae})})};class yr{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function Te(e){return e.notSplit=!0,e}Te(["borderTop","borderBottom"]),Te(["borderTop"]),Te(["borderBottom"]),Te(["borderLeft","borderRight"]),Te(["borderLeft"]),Te(["borderRight"]);class br{}const vr="CALC_UNIT",di=new RegExp(vr,"g");function Bt(e){return typeof e=="number"?`${e}${vr}`:e}class ge extends br{constructor(t,n){super(),this.result="";const r=typeof t;this.unitlessCssVar=n,t instanceof ge?this.result=`(${t.result})`:r==="number"?this.result=Bt(t):r==="string"&&(this.result=t)}add(t){return t instanceof ge?this.result=`${this.result} + ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} + ${Bt(t)}`),this.lowPriority=!0,this}sub(t){return t instanceof ge?this.result=`${this.result} - ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} - ${Bt(t)}`),this.lowPriority=!0,this}mul(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof ge?this.result=`${this.result} * ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} * ${t}`),this.lowPriority=!1,this}div(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof ge?this.result=`${this.result} / ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} / ${t}`),this.lowPriority=!1,this}getResult(t){return this.lowPriority||t?`(${this.result})`:this.result}equal(t){const{unit:n}=t||{};let r=!0;return typeof n=="boolean"?r=n:Array.from(this.unitlessCssVar).some(a=>this.result.includes(a))&&(r=!1),this.result=this.result.replace(di,r?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class pe extends br{constructor(t){super(),this.result=0,t instanceof pe?this.result=t.result:typeof t=="number"&&(this.result=t)}add(t){return t instanceof pe?this.result+=t.result:typeof t=="number"&&(this.result+=t),this}sub(t){return t instanceof pe?this.result-=t.result:typeof t=="number"&&(this.result-=t),this}mul(t){return t instanceof pe?this.result*=t.result:typeof t=="number"&&(this.result*=t),this}div(t){return t instanceof pe?this.result/=t.result:typeof t=="number"&&(this.result/=t),this}equal(){return this.result}}const fi=(e,t)=>{const n=e==="css"?ge:pe;return r=>new n(r,t)},Cr=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function xr(e,t={},n,r){const a={...t[e]};if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:l}=r;l.forEach(([s,c])=>{(a!=null&&a[s]||a!=null&&a[c])&&(a[c]??(a[c]=a==null?void 0:a[s]))})}const i={...n,...a};return Object.keys(i).forEach(l=>{i[l]===t[l]&&delete i[l]}),i}const Sr=typeof CSSINJS_STATISTIC<"u";let Ft=!0;function _(...e){if(!Sr)return Object.assign({},...e);Ft=!1;const t={};return e.forEach(n=>{if(typeof n!="object")return;Object.keys(n).forEach(a=>{Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:()=>n[a]})})}),Ft=!0,t}const wr={};function hi(){}const mi=e=>{let t,n=e,r=hi;return Sr&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(a,i){return Ft&&(t==null||t.add(i)),a[i]}}),r=(a,i)=>{var l;wr[a]={global:Array.from(t),component:{...(l=wr[a])==null?void 0:l.component,...i}}}),{token:n,keys:t,flush:r}};function $r(e,t={},n){return typeof n=="function"?n(_(t,t[e]??{})):n??{}}function gi(e){return e==="js"?{max:Math.max,min:Math.min}:{max:(...t)=>`max(${t.map(n=>Z(n)).join(",")})`,min:(...t)=>`min(${t.map(n=>Z(n)).join(",")})`}}const pi=1e3*60*10;class yi{constructor(){Me(this,"map",new Map);Me(this,"objectIDMap",new WeakMap);Me(this,"nextID",0);Me(this,"lastAccessBeat",new Map);Me(this,"accessBeat",0)}set(t,n){this.clear();const r=this.getCompositeKey(t);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}get(t){const n=this.getCompositeKey(t),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}getCompositeKey(t){return t.map(r=>r&&typeof r=="object"?`obj_${this.getObjectID(r)}`:`${typeof r}_${r}`).join("|")}getObjectID(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);const n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}clear(){if(this.accessBeat>1e4){const t=Date.now();this.lastAccessBeat.forEach((n,r)=>{t-n>pi&&(this.map.delete(r),this.lastAccessBeat.delete(r))}),this.accessBeat=0}}}const Nr=new yi;function bi(e,t){return o.computed(()=>{const n=Nr.get(t);if(n)return n;const r=e();return Nr.set(t,r),r})}const vi=()=>({});function Ci(e){const{useCSP:t=vi,useToken:n,usePrefix:r,getResetStyles:a,getCommonStyle:i,getCompUnitless:l}=e;function s(f,y,m,p){const h=Array.isArray(f)?f[0]:f;function g(b){return`${String(h)}${b.slice(0,1).toUpperCase()}${b.slice(1)}`}const C=(p==null?void 0:p.unitless)||{},v={...typeof l=="function"?l(f):{},[g("zIndexPopup")]:!0};Object.keys(C).forEach(b=>{v[g(b)]=C[b]});const x={...p,unitless:v,prefixToken:g},$=u(f,y,m,x),w=c(h,m,x);return(b,T=o.toValue(b))=>{const[,A]=$(o.toValue(b),T),[R,M]=w(T);return[R,A,M]}}function c(f,y,m){const{unitless:p,injectStyle:h=!0,prefixToken:g,ignore:C}=m,S=({rootCls:x,cssVar:$={}})=>{const{realToken:w}=n();return ui({path:[f],prefix:$.prefix,key:$.key,unitless:p,ignore:C,token:w,scope:x},()=>{const b=$r(f,w,y),T=xr(f,w,b,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(b).forEach(A=>{T[g(A)]=T[A],delete T[A]}),T}),null};return x=>{const{cssVar:$}=n();return[w=>h&&$?o.createVNode(o.Fragment,null,[o.createVNode(S,{rootCls:x,cssVar:$,component:f},null),w]):w,$==null?void 0:$.key]}}function u(f,y,m,p={}){const h=Array.isArray(f)?f:[f,f],[g]=h,C=h.join("-"),S=e.layer||{name:"antd"};return(v,x=v)=>{const{theme:$,realToken:w,hashId:b,token:T,cssVar:A}=n(),{rootPrefixCls:R,iconPrefixCls:M}=r(),H=t(),V=A?"css":"js",I=o.unref(bi(()=>{const ue=new Set;return A&&Object.keys(p.unitless||{}).forEach(Re=>{ue.add(Ue(Re,A.prefix)),ue.add(Ue(Re,Cr(g,A.prefix)))}),fi(V,ue)},[V,g,A==null?void 0:A.prefix])),{max:k,min:q}=gi(V),ce=o.computed(()=>({theme:$.value,token:T.value,hashId:b.value,nonce:()=>H.nonce,clientOnly:p.clientOnly,layer:S,order:p.order||-999}));return typeof a=="function"&&pr(o.computed(()=>({...ce.value,clientOnly:!1,path:["Shared",R]})),()=>a(T.value,{prefix:{rootPrefixCls:R,iconPrefixCls:M},csp:H})),[pr(o.computed(()=>({...ce.value,path:[C,v,M]})),()=>{if(p.injectStyle===!1)return[];const{token:ue,flush:Re}=mi(T),de=$r(g,w,m),vt=`.${v}`,Ct=xr(g,w,de,{deprecatedTokens:p.deprecatedTokens});A&&de&&typeof de=="object"&&Object.keys(de).forEach(P=>{de[P]=`var(${Ue(P,Cr(g,A.prefix))})`});const We=o.computed(()=>_(ue.value,{componentCls:vt,prefixCls:v,iconCls:`.${M}`,antCls:`.${R}`,calc:I,max:k,min:q},A?de:Ct)),xt=o.computed(()=>y(We.value,{hashId:b.value,prefixCls:v,rootPrefixCls:R,iconPrefixCls:M}));Re(g,Ct);const St=typeof i=="function"?i(We.value,v,x,p.resetFont):null;return[p.resetStyle===!1?null:St,xt.value]}),b]}}function d(f,y,m,p={}){const h=u(f,y,m,{resetStyle:!1,order:-998,...p});return({prefixCls:C,rootCls:S=C})=>(h(C,S),null)}return{genStyleHooks:s,genSubStyleComponent:d,genComponentStyleHook:u}}const xi={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Si={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0};function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(null,arguments)}function D(e,t){wi(e)&&(e="100%");var n=$i(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function et(e){return Math.min(1,Math.max(0,e))}function wi(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function $i(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Tr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ye(e){return e.length===1?"0"+e:String(e)}function Ni(e,t,n){return{r:D(e,255)*255,g:D(t,255)*255,b:D(n,255)*255}}function Pr(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,l=0,s=(r+a)/2;if(r===a)l=0,i=0;else{var c=r-a;switch(l=s>.5?c/(2-r-a):c/(r+a),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s:l,l:s}}function Dt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ti(e,t,n){var r,a,i;if(e=D(e,360),t=D(t,100),n=D(n,100),t===0)a=n,i=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=Dt(s,l,e+1/3),a=Dt(s,l,e),i=Dt(s,l,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function Xt(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,l=r,s=r-a,c=r===0?0:s/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:c,v:l}}function Pi(e,t,n){e=D(e,360)*6,t=D(t,100),n=D(n,100);var r=Math.floor(e),a=e-r,i=n*(1-t),l=n*(1-a*t),s=n*(1-(1-a)*t),c=r%6,u=[n,l,i,i,s,n][c],d=[s,n,n,l,i,i][c],f=[i,i,s,n,n,l][c];return{r:u*255,g:d*255,b:f*255}}function kt(e,t,n,r){var a=[ye(Math.round(e).toString(16)),ye(Math.round(t).toString(16)),ye(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Oi(e,t,n,r,a){var i=[ye(Math.round(e).toString(16)),ye(Math.round(t).toString(16)),ye(Math.round(n).toString(16)),ye(Ai(r))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Ai(e){return Math.round(parseFloat(e)*255).toString(16)}function Or(e){return G(e)/255}function G(e){return parseInt(e,16)}function Ri(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Wt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Pe(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=Ii(e)),typeof e=="object"&&(ne(e.r)&&ne(e.g)&&ne(e.b)?(t=Ni(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ne(e.h)&&ne(e.s)&&ne(e.v)?(r=tt(e.s),a=tt(e.v),t=Pi(e.h,r,a),l=!0,s="hsv"):ne(e.h)&&ne(e.s)&&ne(e.l)&&(r=tt(e.s),i=tt(e.l),t=Ti(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Tr(n),{ok:l,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Mi="[-\\+]?\\d+%?",Ei="[-\\+]?\\d*\\.\\d+%?",ie="(?:".concat(Ei,")|(?:").concat(Mi,")"),Gt="[\\s|\\(]+(".concat(ie,")[,|\\s]+(").concat(ie,")[,|\\s]+(").concat(ie,")\\s*\\)?"),qt="[\\s|\\(]+(".concat(ie,")[,|\\s]+(").concat(ie,")[,|\\s]+(").concat(ie,")[,|\\s]+(").concat(ie,")\\s*\\)?"),Q={CSS_UNIT:new RegExp(ie),rgb:new RegExp("rgb"+Gt),rgba:new RegExp("rgba"+qt),hsl:new RegExp("hsl"+Gt),hsla:new RegExp("hsla"+qt),hsv:new RegExp("hsv"+Gt),hsva:new RegExp("hsva"+qt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ii(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Wt[e])e=Wt[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Q.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Q.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Q.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Q.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Q.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Q.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Q.hex8.exec(e),n?{r:G(n[1]),g:G(n[2]),b:G(n[3]),a:Or(n[4]),format:t?"name":"hex8"}:(n=Q.hex6.exec(e),n?{r:G(n[1]),g:G(n[2]),b:G(n[3]),format:t?"name":"hex"}:(n=Q.hex4.exec(e),n?{r:G(n[1]+n[1]),g:G(n[2]+n[2]),b:G(n[3]+n[3]),a:Or(n[4]+n[4]),format:t?"name":"hex8"}:(n=Q.hex3.exec(e),n?{r:G(n[1]+n[1]),g:G(n[2]+n[2]),b:G(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ne(e){return!!Q.CSS_UNIT.exec(String(e))}var be=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Ri(t)),this.originalInput=t;var a=Pe(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,i=t.r/255,l=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Tr(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Xt(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Xt(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Pr(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Pr(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),kt(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Oi(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(D(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(D(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+kt(this.r,this.g,this.b,!1),n=0,r=Object.entries(Wt);n<r.length;n++){var a=r[n],i=a[0],l=a[1];if(t===l)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,i=!n&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=et(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=et(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=et(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=et(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),i=n/100,l={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,i=n.v,l=[],s=1/t;t--;)l.push(new e({h:r,s:a,v:i})),i=(i+s)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],i=360/t,l=1;l<t;l++)a.push(new e({h:(r+l*i)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ut(e){return e>=0&&e<=255}function nt(e,t){const{r:n,g:r,b:a,a:i}=new be(e).toRgb();if(i<1)return e;const{r:l,g:s,b:c}=new be(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-l*(1-u))/u),f=Math.round((r-s*(1-u))/u),y=Math.round((a-c*(1-u))/u);if(Ut(d)&&Ut(f)&&Ut(y))return new be({r:d,g:f,b:y,a:Math.round(u*100)/100}).toRgbString()}return new be({r:n,g:r,b:a,a:1}).toRgbString()}const Vi=ee(ee({},{blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"}),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
1
|
+
(function(L,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue"],o):(L=typeof globalThis<"u"?globalThis:L||self,o(L.antdx={},L.Vue,L.antd))})(this,function(L,o,R){"use strict";var Kc=Object.defineProperty;var Zc=(L,o,R)=>o in L?Kc(L,o,{enumerable:!0,configurable:!0,writable:!0,value:R}):L[o]=R;var Re=(L,o,R)=>Zc(L,typeof o!="symbol"?o+"":o,R);const Ka="anticon",Za=Symbol("configProvider"),Ya={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o.computed(()=>Ka),getPopupContainer:o.computed(()=>()=>document.body),direction:o.computed(()=>"ltr")},Qa=()=>o.inject(Za,Ya),Ja="ant";function W(){const{getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r,theme:a}=Qa();return{theme:a,getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r}}function X(e,t){const n=Object.create(null);for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}const _a=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function te(e){return{type:Object,default:e}}function wt(e){return{type:Boolean,default:e}}function eo(e,t){const n={validator:()=>!0,default:e};return n}function Hn(e){return{type:Array,default:e}}function jn(e){return{type:String,default:e}}function to(e,t){return e?{type:e,default:t}:eo(t)}const zn=Symbol("XProviderContext"),$t=o.shallowRef(),no=e=>{o.provide(zn,e),o.watch(e,()=>{$t.value=o.unref(e),o.triggerRef($t)},{immediate:!0,deep:!0})},ro=()=>o.inject(zn,o.computed(()=>$t.value||{})),ao=o.defineComponent({props:{value:te()},setup(e,{slots:t}){return no(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),oo=o.defineComponent({name:"AXConfigProvider",inheritAttrs:!1,__name:"index",props:{bubble:null,conversations:null,prompts:null,sender:null,suggestion:null,thoughtChain:null,attachments:null,welcome:null,iconPrefixCls:null,getTargetContainer:null,getPopupContainer:null,prefixCls:null,getPrefixCls:null,renderEmpty:null,transformCellText:null,csp:null,input:null,autoInsertSpaceInButton:null,locale:null,pageHeader:null,componentSize:null,componentDisabled:null,direction:null,space:null,virtual:null,dropdownMatchSelectWidth:null,form:null,pagination:null,theme:null,select:null,wave:null},setup(e){const t=X(e,["attachments","bubble","conversations","prompts","sender","suggestion","thoughtChain","welcome"]),n=o.useSlots(),r=o.computed(()=>({attachments:e.attachments,bubble:e.bubble,conversations:e.conversations,prompts:e.prompts,sender:e.sender,suggestion:e.suggestion,thoughtChain:e.thoughtChain,welcome:e.welcome})),{theme:a}=W(),i=o.computed(()=>({...(a==null?void 0:a.value)||{},...t.theme})),l=o.computed(()=>{var s;return(s=n.default)==null?void 0:s.call(n)});return()=>o.createVNode(ao,{value:r.value},{default:()=>[o.createVNode(R.ConfigProvider,o.mergeProps(t,{theme:i.value}),{default:()=>[l.value]})]})}}),io={classNames:{},styles:{},className:"",style:{}},re=e=>{const t=ro();return o.computed(()=>({...io,...o.unref(t)[e]}))};function z(e){const t=typeof e=="function"?e():e,n=o.ref(t);function r(a){n.value=a}return[n,r]}function fe(e){return typeof e=="string"}const lo=(e,t,n,r)=>{const[a,i]=z(""),[l,s]=z(1),c=o.computed(()=>t.value&&fe(e.value));return o.watch(e,()=>{const d=o.unref(a);i(e.value),!c.value&&fe(e.value)?s(e.value.length):fe(e.value)&&fe(d)&&e.value.indexOf(d)!==0&&s(1)}),o.watch([l,t,e],()=>{if(c.value&&fe(e.value)&&o.unref(l)<e.value.length){const d=setTimeout(()=>{s(o.unref(l)+n.value)},r.value);o.onWatcherCleanup(()=>{clearTimeout(d)})}},{immediate:!0}),[o.computed(()=>c.value&&fe(e.value)?e.value.slice(0,o.unref(l)):e.value),o.computed(()=>c.value&&fe(e.value)&&o.unref(l)<e.value.length)]};function so(e){const t=o.computed(()=>!!o.toValue(e)),n={step:1,interval:50,suffix:null},r=o.computed(()=>{const a=o.toValue(e);return{...n,...typeof a=="object"?a:{}}});return[t,o.computed(()=>r.value.step),o.computed(()=>r.value.interval),o.computed(()=>r.value.suffix)]}const co=o.defineComponent({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup(e){return()=>o.createVNode("span",{class:`${e.prefixCls}-dot`},[o.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-1"},null),o.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-2"},null),o.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-3"},null)])}});function Nt(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const Bn="%";class uo{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(Bn):t)||null}update(t,n){const r=Array.isArray(t)?t.join(Bn):t,a=this.cache.get(r),i=n(a);i===null?this.cache.delete(r):this.cache.set(r,i)}}const Fn="data-token-hash",ae="data-css-hash",xe="__cssinjs_instance__";function Ee(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ae}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(a=>{a[xe]=a[xe]||e,a[xe]===e&&document.head.insertBefore(a,n)});const r={};Array.from(document.querySelectorAll(`style[${ae}]`)).forEach(a=>{var l;const i=a.getAttribute(ae);r[i]?a[xe]===e&&((l=a.parentNode)==null||l.removeChild(a)):r[i]=!0})}return new uo(e)}const Dn=Symbol("StyleContextKey"),fo=()=>{var n,r,a;const e=o.getCurrentInstance();let t;if(e&&e.appContext){const i=(a=(r=(n=e.appContext)==null?void 0:n.config)==null?void 0:r.globalProperties)==null?void 0:a.__ANTDV_CSSINJS_CACHE__;i?t=i:(t=Ee(),e.appContext.config.globalProperties&&(e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=t))}else t=Ee();return t},Xn={cache:Ee(),defaultCache:!0,hashPriority:"low"},Ie=()=>{const e=fo();return o.inject(Dn,o.shallowRef({...Xn,cache:e}))},kn=e=>{const t=Ie(),n=o.shallowRef({...Xn,cache:Ee()});return o.watch([()=>o.unref(e),t],()=>{const r={...t.value},a=o.unref(e);Object.keys(a).forEach(l=>{const s=a[l];a[l]!==void 0&&(r[l]=s)});const{cache:i}=a;r.cache=r.cache||Ee(),r.defaultCache=!i&&t.value.defaultCache,n.value=r},{immediate:!0}),o.provide(Dn,n),n},ho=()=>({autoClear:wt(),mock:jn(),cache:te(),defaultCache:wt(),hashPriority:jn(),container:to(),ssrInline:wt(),transformers:Hn(),linters:Hn()}),mo=_a(o.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:ho(),setup(e,{slots:t}){return kn(e),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}})),go={useStyleInject:Ie,useStyleProvider:kn,StyleProvider:mo};function Tt(e,t,n,r){const a=Ie(),i=o.shallowRef(""),l=o.shallowRef();o.watchEffect(()=>{i.value=[e,...t.value].join("%")});const s=c=>{a.value.cache.update(c,u=>{const[d=0,f]=u||[];return d-1===0?(r==null||r(f,!1),null):[d-1,f]})};return o.watch(i,(c,u)=>{u&&s(u),a.value.cache.update(c,d=>{const[f=0,p]=d||[],g=p||n();return[f+1,g]}),l.value=a.value.cache.get(i.value)[1]},{immediate:!0}),o.onBeforeUnmount(()=>{s(i.value)}),l}function Se(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function po(e,t){return e&&e.contains?e.contains(t):!1}const Wn="data-vc-order",yo="vc-util-key",Pt=new Map;function Gn({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:yo}function Ge(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function bo(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function qn(e){return Array.from((Pt.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Un(e,t={}){if(!Se())return null;const{csp:n,prepend:r}=t,a=document.createElement("style");a.setAttribute(Wn,bo(r)),n!=null&&n.nonce&&(a.nonce=n==null?void 0:n.nonce),a.innerHTML=e;const i=Ge(t),{firstChild:l}=i;if(r){if(r==="queue"){const s=qn(i).filter(c=>["prepend","prependQueue"].includes(c.getAttribute(Wn)));if(s.length)return i.insertBefore(a,s[s.length-1].nextSibling),a}i.insertBefore(a,l)}else i.appendChild(a);return a}function Kn(e,t={}){const n=Ge(t);return qn(n).find(r=>r.getAttribute(Gn(t))===e)}function Ot(e,t={}){const n=Kn(e,t);n&&Ge(t).removeChild(n)}function vo(e,t){const n=Pt.get(e);if(!n||!po(document,n)){const r=Un("",t),{parentNode:a}=r;Pt.set(e,a),e.removeChild(r)}}function At(e,t,n={}){var l,s,c;const r=Ge(n);vo(r,n);const a=Kn(t,n);if(a)return(l=n.csp)!=null&&l.nonce&&a.nonce!==((s=n.csp)==null?void 0:s.nonce)&&(a.nonce=(c=n.csp)==null?void 0:c.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const i=Un(e,n);return i.setAttribute(Gn(n),t),i}function Co(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const Ae=class Ae{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let r={map:this.cache};return t.forEach(a=>{var i;r?r=(i=r==null?void 0:r.map)==null?void 0:i.get(a):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))==null?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Ae.MAX_CACHE_SIZE+Ae.MAX_CACHE_OFFSET){const[a]=this.keys.reduce((i,l)=>{const[,s]=i;return this.internalGet(l)[1]<s?[l,this.internalGet(l)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(a)}this.keys.push(t)}let r=this.cache;t.forEach((a,i)=>{if(i===t.length-1)r.set(a,{value:[n,this.cacheCallTimes++]});else{const l=r.get(a);l?l.map||(l.map=new Map):r.set(a,{map:new Map}),r=r.get(a).map}})}deleteByPath(t,n){var i;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(i=r.value)==null?void 0:i[0];const a=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),a}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!Co(n,t)),this.deleteByPath(this.cache,t)}};Ae.MAX_CACHE_SIZE=20,Ae.MAX_CACHE_OFFSET=5;let Mt=Ae;function xo(){}let So=xo;const wo=Symbol("WarningContext"),Zn=o.shallowRef(),$o=e=>{o.provide(wo,e),o.watch(e,()=>{Zn.value=o.unref(e),o.triggerRef(Zn)},{immediate:!0,deep:!0})};o.defineComponent({props:{value:te()},setup(e,{slots:t}){return $o(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}});let Yn=0;class Qn{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=Yn,t.length===0&&So(t.length>0),Yn+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const Rt=new Mt;function No(e){const t=Array.isArray(e)?e:[e];return Rt.has(t)||Rt.set(t,new Qn(t)),Rt.get(t)}const Jn=new WeakMap;function qe(e){let t=Jn.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof Qn?t+=r.id:r&&typeof r=="object"?t+=qe(r):t+=r}),Jn.set(e,t)),t}function To(e,t){return Nt(`${t}_${qe(e)}`)}const Ve=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),_n="_bAmBoO_";function Po(e,t,n){var r,a;if(Se()){At(e,Ve);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);const l=n?n(i):(r=getComputedStyle(i).content)==null?void 0:r.includes(_n);return(a=i.parentNode)==null||a.removeChild(i),Ot(Ve),l}return!1}let Et;function Oo(){return Et===void 0&&(Et=Po(`@layer ${Ve} { .${Ve} { content: "${_n}"!important; } }`,e=>{e.className=Ve})),Et}const Ao=Se();function Z(e){return typeof e=="number"?`${e}px`:e}const Ue=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),Mo=(e,t,n)=>Object.keys(e).length?`.${t}${n!=null&&n.scope?`.${n.scope}`:""}{${Object.entries(e).map(([r,a])=>`${r}:${a};`).join("")}}`:"",Ro=(e,t,n)=>{const r={},a={};return Object.entries(e).forEach(([i,l])=>{var s,c,u;if((s=n==null?void 0:n.preserve)!=null&&s[i])a[i]=l;else if((typeof l=="string"||typeof l=="number")&&!((c=n==null?void 0:n.ignore)!=null&&c[i])){const d=Ue(i,n==null?void 0:n.prefix);r[d]=typeof l=="number"&&!((u=n==null?void 0:n.unitless)!=null&&u[i])?`${l}px`:String(l),a[i]=`var(${d})`}}),[a,Mo(r,t,{scope:n==null?void 0:n.scope})]},er={},Eo="css",he=new Map;function Io(e){he.set(e,(he.get(e)||0)+1)}function Vo(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Fn}="${e}"]`).forEach(r=>{var a;r[xe]===t&&((a=r.parentNode)==null||a.removeChild(r))})}const Lo=0;function Ho(e,t){he.set(e,(he.get(e)||0)-1);const n=Array.from(he.keys()),r=n.filter(a=>(he.get(a)||0)<=0);n.length-r.length>Lo&&r.forEach(a=>{Vo(a,t),he.delete(a)})}const jo=(e,t,n,r)=>{let i={...n==null?void 0:n.getDerivativeToken(e),...t};return r&&(i=r(i)),i};function zo(e,t,n=o.ref({})){const r=Ie(),a=o.computed(()=>Object.assign({},...t.value||[])),i=o.computed(()=>qe(a.value)),l=o.computed(()=>{var c;return qe(((c=n.value)==null?void 0:c.override)||er)});return Tt("token",o.computed(()=>{var c,u;return[((c=n.value)==null?void 0:c.salt)||"",(u=e.value)==null?void 0:u.id,i.value,l.value]}),()=>{const{salt:c="",override:u=er,formatToken:d,getComputedToken:f}=n.value||{},p=f?f(a.value,u,e.value):jo(a.value,u,e.value,d),h=To(p,c);p._tokenKey=h,Io(h);const g=`${Eo}-${Nt(h)}`;return p._hashId=g,[p,g]},c=>{var u;Ho(c[0]._tokenKey,(u=r.value)==null?void 0:u.cache.instanceId)})}var Bo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tr="comm",nr="rule",rr="decl",Fo="@import",Do="@keyframes",Xo="@layer",ar=Math.abs,It=String.fromCharCode;function or(e){return e.trim()}function Ke(e,t,n){return e.replace(t,n)}function ko(e,t,n){return e.indexOf(t,n)}function Le(e,t){return e.charCodeAt(t)|0}function we(e,t,n){return e.slice(t,n)}function J(e){return e.length}function Wo(e){return e.length}function Ze(e,t){return t.push(e),e}var Ye=1,$e=1,ir=0,U=0,B=0,Ne="";function Vt(e,t,n,r,a,i,l,s){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:Ye,column:$e,length:l,return:"",siblings:s}}function Go(){return B}function qo(){return B=U>0?Le(Ne,--U):0,$e--,B===10&&($e=1,Ye--),B}function Y(){return B=U<ir?Le(Ne,U++):0,$e++,B===10&&($e=1,Ye++),B}function oe(){return Le(Ne,U)}function Qe(){return U}function Je(e,t){return we(Ne,e,t)}function He(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Uo(e){return Ye=$e=1,ir=J(Ne=e),U=0,[]}function Ko(e){return Ne="",e}function Lt(e){return or(Je(U-1,Ht(e===91?e+2:e===40?e+1:e)))}function Zo(e){for(;(B=oe())&&B<33;)Y();return He(e)>2||He(B)>3?"":" "}function Yo(e,t){for(;--t&&Y()&&!(B<48||B>102||B>57&&B<65||B>70&&B<97););return Je(e,Qe()+(t<6&&oe()==32&&Y()==32))}function Ht(e){for(;Y();)switch(B){case e:return U;case 34:case 39:e!==34&&e!==39&&Ht(B);break;case 40:e===41&&Ht(e);break;case 92:Y();break}return U}function Qo(e,t){for(;Y()&&e+B!==57;)if(e+B===84&&oe()===47)break;return"/*"+Je(t,U-1)+"*"+It(e===47?e:Y())}function Jo(e){for(;!He(oe());)Y();return Je(e,U)}function _o(e){return Ko(_e("",null,null,null,[""],e=Uo(e),0,[0],e))}function _e(e,t,n,r,a,i,l,s,c){for(var u=0,d=0,f=l,p=0,h=0,g=0,m=1,b=1,x=1,S=0,v="",C=a,$=i,w=r,y=v;b;)switch(g=S,S=Y()){case 40:if(g!=108&&Le(y,f-1)==58){ko(y+=Ke(Lt(S),"&","&\f"),"&\f",ar(u?s[u-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:y+=Lt(S);break;case 9:case 10:case 13:case 32:y+=Zo(g);break;case 92:y+=Yo(Qe()-1,7);continue;case 47:switch(oe()){case 42:case 47:Ze(ei(Qo(Y(),Qe()),t,n,c),c),(He(g||1)==5||He(oe()||1)==5)&&J(y)&&we(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*m:s[u++]=J(y)*x;case 125*m:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+d:x==-1&&(y=Ke(y,/\f/g,"")),h>0&&(J(y)-f||m===0&&g===47)&&Ze(h>32?sr(y+";",r,n,f-1,c):sr(Ke(y," ","")+";",r,n,f-2,c),c);break;case 59:y+=";";default:if(Ze(w=lr(y,t,n,u,d,a,s,v,C=[],$=[],f,i),i),S===123)if(d===0)_e(y,t,w,w,C,i,f,s,$);else switch(p===99&&Le(y,3)===110?100:p){case 100:case 108:case 109:case 115:_e(e,w,w,r&&Ze(lr(e,w,w,0,0,a,s,v,a,C=[],f,$),$),a,$,f,s,r?C:$);break;default:_e(y,w,w,w,[""],$,0,s,$)}}u=d=h=0,m=x=1,v=y="",f=l;break;case 58:f=1+J(y),h=g;default:if(m<1){if(S==123)--m;else if(S==125&&m++==0&&qo()==125)continue}switch(y+=It(S),S*m){case 38:x=d>0?1:(y+="\f",-1);break;case 44:s[u++]=(J(y)-1)*x,x=1;break;case 64:oe()===45&&(y+=Lt(Y())),p=oe(),d=f=J(v=y+=Jo(Qe())),S++;break;case 45:g===45&&J(y)==2&&(m=0)}}return i}function lr(e,t,n,r,a,i,l,s,c,u,d,f){for(var p=a-1,h=a===0?i:[""],g=Wo(h),m=0,b=0,x=0;m<r;++m)for(var S=0,v=we(e,p+1,p=ar(b=l[m])),C=e;S<g;++S)(C=or(b>0?h[S]+" "+v:Ke(v,/&\f/g,h[S])))&&(c[x++]=C);return Vt(e,t,n,a===0?nr:s,c,u,d,f)}function ei(e,t,n,r){return Vt(e,t,n,tr,It(Go()),we(e,2,-2),0,r)}function sr(e,t,n,r,a){return Vt(e,t,n,rr,we(e,0,r),we(e,r+1,-1),r,a)}function jt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ti(e,t,n,r){switch(e.type){case Xo:if(e.children.length)break;case Fo:case rr:return e.return=e.return||e.value;case tr:return"";case Do:return e.return=e.value+"{"+jt(e.children,r)+"}";case nr:if(!J(e.value=e.props.join(",")))return""}return J(n=jt(e.children,r))?e.return=e.value+"{"+n+"}":""}const cr="data-ant-cssinjs-cache-path",ni="_FILE_STYLE__";let me,ur=!0;function ri(){var e;if(!me&&(me={},Se())){const t=document.createElement("div");t.className=cr,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(a=>{const[i,l]=a.split(":");me[i]=l});const r=document.querySelector(`style[${cr}]`);r&&(ur=!1,(e=r.parentNode)==null||e.removeChild(r)),document.body.removeChild(t)}}function ai(e){return ri(),!!me[e]}function oi(e){const t=me[e];let n=null;if(t&&Se())if(ur)n=ni;else{const r=document.querySelector(`style[${ae}="${me[e]}"]`);r?n=r.innerHTML:delete me[e]}return[n,t]}const dr=Se(),ii="_skip_check_",fr="_multi_value_";function hr(e){return jt(_o(e),ti).replace(/\{%%%\:[^;];}/g,";")}function li(e){return typeof e=="object"&&e&&(ii in e||fr in e)}function si(e,t,n){if(!t)return e;const r=`.${t}`,a=n==="low"?`:where(${r})`:r;return e.split(",").map(l=>{var d;const s=l.trim().split(/\s+/);let c=s[0]||"";const u=((d=c.match(/^\w+/))==null?void 0:d[0])||"";return c=`${u}${a}${c.slice(u.length)}`,[c,...s.slice(1)].join(" ")}).join(",")}const mr=new Set,zt=(e,t={},{root:n,injectHash:r,parentSelectors:a}={root:!0,parentSelectors:[]})=>{const{hashId:i,layer:l,path:s,hashPriority:c,transformers:u=[],linters:d=[]}=t;let f="",p={};function h(b){const x=b.getName(i);if(!p[x]){const[S]=zt(b.style,t,{root:!1,parentSelectors:a});p[x]=`@keyframes ${b.getName(i)}${S}`}}function g(b,x=[]){return b.forEach(S=>{Array.isArray(S)?g(S,x):S&&x.push(S)}),x}return g(Array.isArray(e)?e:[e]).forEach(b=>{const x=typeof b=="string"&&!n?{}:b;if(typeof x=="string")f+=`${x}
|
|
2
|
+
`;else if(x._keyframe)h(x);else{const S=u.reduce((v,C)=>{var $;return(($=C==null?void 0:C.visit)==null?void 0:$.call(C,v))||v},x);Object.keys(S).forEach(v=>{const C=S[v];if(typeof C=="object"&&C&&(v!=="animationName"||!C._keyframe)&&!li(C)){let $=!1,w=v.trim(),y=!1;(n||r)&&i?w.startsWith("@")?$=!0:w=si(v,i,c):n&&!i&&(w==="&"||w==="")&&(w="",y=!0);const[P,N]=zt(C,t,{root:y,injectHash:$,parentSelectors:[...a,w]});p={...p,...N},f+=`${w}${P}`}else{let $=function(y,P){const N=y.replace(/[A-Z]/g,O=>`-${O.toLowerCase()}`);let T=P;!Bo[y]&&typeof T=="number"&&T!==0&&(T=`${T}px`),y==="animationName"&&(P!=null&&P._keyframe)&&(h(P),T=P.getName(i)),f+=`${N}:${T};`};const w=(C==null?void 0:C.value)??C;typeof C=="object"&&(C!=null&&C[fr])&&Array.isArray(w)?w.forEach(y=>{$(v,y)}):$(v,w)}})}}),n?l&&Oo():f=`{${f}}`,[f,p]};function gr(e,t){return Nt(`${e.join("%")}${t}`)}function pr(e,t){const n=Ie(),r=o.computed(()=>{var l;return(l=e.value)==null?void 0:l.token._tokenKey}),a=o.computed(()=>{var l;return[r.value,...((l=e.value)==null?void 0:l.path)||[]]});let i=dr;return Tt("style",a,()=>{const{path:l,hashId:s,layer:c,nonce:u,clientOnly:d,order:f=0}=e.value||{},p=a.value.join("|");if(ai(p)){const[y,P]=oi(p);if(y)return[y,r.value,P,{},d,f]}const h=t(),{hashPriority:g,container:m,transformers:b,linters:x,cache:S}=n.value,[v,C]=zt(h,{hashId:s,hashPriority:g,layer:c,path:l==null?void 0:l.join("-"),transformers:b,linters:x}),$=hr(v),w=gr(a.value,$);if(i){const y={mark:ae,prepend:"queue",attachTo:m},P=typeof u=="function"?u():u;P&&(y.csp={nonce:P});const N=At($,w,y);N[xe]=S.instanceId,N.setAttribute(Fn,r.value),Object.keys(C).forEach(T=>{mr.has(T)||(mr.add(T),At(hr(C[T]),`_effect-${T}`,{mark:ae,prepend:"queue",attachTo:m}))})}return[$,r.value,w,C,d,f]},([,,l],s)=>{(s||n.value.autoClear)&&dr&&Ot(l,{mark:ae})}),l=>l}const ci="cssVar",ui=(e,t)=>{const{key:n,prefix:r,unitless:a,ignore:i,token:l,scope:s=""}=e,{cache:{instanceId:c},container:u}=useContext(go),{_tokenKey:d}=l,f=[...e.path,n,s,d];return Tt(ci,f,()=>{const h=t(),[g,m]=Ro(h,n,{prefix:r,unitless:a,ignore:i,scope:s}),b=gr(f,m);return[g,m,b,n]},([,,h])=>{Ao&&Ot(h,{mark:ae})})};class yr{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function Te(e){return e.notSplit=!0,e}Te(["borderTop","borderBottom"]),Te(["borderTop"]),Te(["borderBottom"]),Te(["borderLeft","borderRight"]),Te(["borderLeft"]),Te(["borderRight"]);class br{}const vr="CALC_UNIT",di=new RegExp(vr,"g");function Bt(e){return typeof e=="number"?`${e}${vr}`:e}class ge extends br{constructor(t,n){super(),this.result="";const r=typeof t;this.unitlessCssVar=n,t instanceof ge?this.result=`(${t.result})`:r==="number"?this.result=Bt(t):r==="string"&&(this.result=t)}add(t){return t instanceof ge?this.result=`${this.result} + ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} + ${Bt(t)}`),this.lowPriority=!0,this}sub(t){return t instanceof ge?this.result=`${this.result} - ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} - ${Bt(t)}`),this.lowPriority=!0,this}mul(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof ge?this.result=`${this.result} * ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} * ${t}`),this.lowPriority=!1,this}div(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof ge?this.result=`${this.result} / ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} / ${t}`),this.lowPriority=!1,this}getResult(t){return this.lowPriority||t?`(${this.result})`:this.result}equal(t){const{unit:n}=t||{};let r=!0;return typeof n=="boolean"?r=n:Array.from(this.unitlessCssVar).some(a=>this.result.includes(a))&&(r=!1),this.result=this.result.replace(di,r?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class pe extends br{constructor(t){super(),this.result=0,t instanceof pe?this.result=t.result:typeof t=="number"&&(this.result=t)}add(t){return t instanceof pe?this.result+=t.result:typeof t=="number"&&(this.result+=t),this}sub(t){return t instanceof pe?this.result-=t.result:typeof t=="number"&&(this.result-=t),this}mul(t){return t instanceof pe?this.result*=t.result:typeof t=="number"&&(this.result*=t),this}div(t){return t instanceof pe?this.result/=t.result:typeof t=="number"&&(this.result/=t),this}equal(){return this.result}}const fi=(e,t)=>{const n=e==="css"?ge:pe;return r=>new n(r,t)},Cr=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function xr(e,t={},n,r){const a={...t[e]};if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:l}=r;l.forEach(([s,c])=>{(a!=null&&a[s]||a!=null&&a[c])&&(a[c]??(a[c]=a==null?void 0:a[s]))})}const i={...n,...a};return Object.keys(i).forEach(l=>{i[l]===t[l]&&delete i[l]}),i}const Sr=typeof CSSINJS_STATISTIC<"u";let Ft=!0;function _(...e){if(!Sr)return Object.assign({},...e);Ft=!1;const t={};return e.forEach(n=>{if(typeof n!="object")return;Object.keys(n).forEach(a=>{Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:()=>n[a]})})}),Ft=!0,t}const wr={};function hi(){}const mi=e=>{let t,n=e,r=hi;return Sr&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(a,i){return Ft&&(t==null||t.add(i)),a[i]}}),r=(a,i)=>{var l;wr[a]={global:Array.from(t),component:{...(l=wr[a])==null?void 0:l.component,...i}}}),{token:n,keys:t,flush:r}};function $r(e,t={},n){return typeof n=="function"?n(_(t,t[e]??{})):n??{}}function gi(e){return e==="js"?{max:Math.max,min:Math.min}:{max:(...t)=>`max(${t.map(n=>Z(n)).join(",")})`,min:(...t)=>`min(${t.map(n=>Z(n)).join(",")})`}}const pi=1e3*60*10;class yi{constructor(){Re(this,"map",new Map);Re(this,"objectIDMap",new WeakMap);Re(this,"nextID",0);Re(this,"lastAccessBeat",new Map);Re(this,"accessBeat",0)}set(t,n){this.clear();const r=this.getCompositeKey(t);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}get(t){const n=this.getCompositeKey(t),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}getCompositeKey(t){return t.map(r=>r&&typeof r=="object"?`obj_${this.getObjectID(r)}`:`${typeof r}_${r}`).join("|")}getObjectID(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);const n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}clear(){if(this.accessBeat>1e4){const t=Date.now();this.lastAccessBeat.forEach((n,r)=>{t-n>pi&&(this.map.delete(r),this.lastAccessBeat.delete(r))}),this.accessBeat=0}}}const Nr=new yi;function bi(e,t){return o.computed(()=>{const n=Nr.get(t);if(n)return n;const r=e();return Nr.set(t,r),r})}const vi=()=>({});function Ci(e){const{useCSP:t=vi,useToken:n,usePrefix:r,getResetStyles:a,getCommonStyle:i,getCompUnitless:l}=e;function s(f,p,h,g){const m=Array.isArray(f)?f[0]:f;function b(y){return`${String(m)}${y.slice(0,1).toUpperCase()}${y.slice(1)}`}const x=(g==null?void 0:g.unitless)||{},v={...typeof l=="function"?l(f):{},[b("zIndexPopup")]:!0};Object.keys(x).forEach(y=>{v[b(y)]=x[y]});const C={...g,unitless:v,prefixToken:b},$=u(f,p,h,C),w=c(m,h,C);return(y,P=o.toValue(y))=>{const[,N]=$(o.toValue(y),P),[T,O]=w(P);return[T,N,O]}}function c(f,p,h){const{unitless:g,injectStyle:m=!0,prefixToken:b,ignore:x}=h,S=({rootCls:C,cssVar:$={}})=>{const{realToken:w}=n();return ui({path:[f],prefix:$.prefix,key:$.key,unitless:g,ignore:x,token:w,scope:C},()=>{const y=$r(f,w,p),P=xr(f,w,y,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(y).forEach(N=>{P[b(N)]=P[N],delete P[N]}),P}),null};return C=>{const{cssVar:$}=n();return[w=>m&&$?o.createVNode(o.Fragment,null,[o.createVNode(S,{rootCls:C,cssVar:$,component:f},null),w]):w,$==null?void 0:$.key]}}function u(f,p,h,g={}){const m=Array.isArray(f)?f:[f,f],[b]=m,x=m.join("-"),S=e.layer||{name:"antd"};return(v,C=v)=>{const{theme:$,realToken:w,hashId:y,token:P,cssVar:N}=n(),{rootPrefixCls:T,iconPrefixCls:O}=r(),E=t(),I=N?"css":"js",V=o.unref(bi(()=>{const ue=new Set;return N&&Object.keys(g.unitless||{}).forEach(Me=>{ue.add(Ue(Me,N.prefix)),ue.add(Ue(Me,Cr(b,N.prefix)))}),fi(I,ue)},[I,b,N==null?void 0:N.prefix])),{max:k,min:q}=gi(I),ce=o.computed(()=>({theme:$.value,token:P.value,hashId:y.value,nonce:()=>E.nonce,clientOnly:g.clientOnly,layer:S,order:g.order||-999}));return typeof a=="function"&&pr(o.computed(()=>({...ce.value,clientOnly:!1,path:["Shared",T]})),()=>a(P.value,{prefix:{rootPrefixCls:T,iconPrefixCls:O},csp:E})),[pr(o.computed(()=>({...ce.value,path:[x,v,O]})),()=>{if(g.injectStyle===!1)return[];const{token:ue,flush:Me}=mi(P),de=$r(b,w,h),vt=`.${v}`,Ct=xr(b,w,de,{deprecatedTokens:g.deprecatedTokens});N&&de&&typeof de=="object"&&Object.keys(de).forEach(M=>{de[M]=`var(${Ue(M,Cr(b,N.prefix))})`});const We=o.computed(()=>_(ue.value,{componentCls:vt,prefixCls:v,iconCls:`.${O}`,antCls:`.${T}`,calc:V,max:k,min:q},N?de:Ct)),xt=o.computed(()=>p(We.value,{hashId:y.value,prefixCls:v,rootPrefixCls:T,iconPrefixCls:O}));Me(b,Ct);const St=typeof i=="function"?i(We.value,v,C,g.resetFont):null;return[g.resetStyle===!1?null:St,xt.value]}),y]}}function d(f,p,h,g={}){const m=u(f,p,h,{resetStyle:!1,order:-998,...g});return({prefixCls:x,rootCls:S=x})=>(m(x,S),null)}return{genStyleHooks:s,genSubStyleComponent:d,genComponentStyleHook:u}}const xi={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Si={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0};function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(null,arguments)}function D(e,t){wi(e)&&(e="100%");var n=$i(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function et(e){return Math.min(1,Math.max(0,e))}function wi(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function $i(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Tr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ye(e){return e.length===1?"0"+e:String(e)}function Ni(e,t,n){return{r:D(e,255)*255,g:D(t,255)*255,b:D(n,255)*255}}function Pr(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,l=0,s=(r+a)/2;if(r===a)l=0,i=0;else{var c=r-a;switch(l=s>.5?c/(2-r-a):c/(r+a),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s:l,l:s}}function Dt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ti(e,t,n){var r,a,i;if(e=D(e,360),t=D(t,100),n=D(n,100),t===0)a=n,i=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=Dt(s,l,e+1/3),a=Dt(s,l,e),i=Dt(s,l,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function Xt(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,l=r,s=r-a,c=r===0?0:s/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:c,v:l}}function Pi(e,t,n){e=D(e,360)*6,t=D(t,100),n=D(n,100);var r=Math.floor(e),a=e-r,i=n*(1-t),l=n*(1-a*t),s=n*(1-(1-a)*t),c=r%6,u=[n,l,i,i,s,n][c],d=[s,n,n,l,i,i][c],f=[i,i,s,n,n,l][c];return{r:u*255,g:d*255,b:f*255}}function kt(e,t,n,r){var a=[ye(Math.round(e).toString(16)),ye(Math.round(t).toString(16)),ye(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Oi(e,t,n,r,a){var i=[ye(Math.round(e).toString(16)),ye(Math.round(t).toString(16)),ye(Math.round(n).toString(16)),ye(Ai(r))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Ai(e){return Math.round(parseFloat(e)*255).toString(16)}function Or(e){return G(e)/255}function G(e){return parseInt(e,16)}function Mi(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Wt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Pe(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=Ii(e)),typeof e=="object"&&(ne(e.r)&&ne(e.g)&&ne(e.b)?(t=Ni(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ne(e.h)&&ne(e.s)&&ne(e.v)?(r=tt(e.s),a=tt(e.v),t=Pi(e.h,r,a),l=!0,s="hsv"):ne(e.h)&&ne(e.s)&&ne(e.l)&&(r=tt(e.s),i=tt(e.l),t=Ti(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Tr(n),{ok:l,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Ri="[-\\+]?\\d+%?",Ei="[-\\+]?\\d*\\.\\d+%?",ie="(?:".concat(Ei,")|(?:").concat(Ri,")"),Gt="[\\s|\\(]+(".concat(ie,")[,|\\s]+(").concat(ie,")[,|\\s]+(").concat(ie,")\\s*\\)?"),qt="[\\s|\\(]+(".concat(ie,")[,|\\s]+(").concat(ie,")[,|\\s]+(").concat(ie,")[,|\\s]+(").concat(ie,")\\s*\\)?"),Q={CSS_UNIT:new RegExp(ie),rgb:new RegExp("rgb"+Gt),rgba:new RegExp("rgba"+qt),hsl:new RegExp("hsl"+Gt),hsla:new RegExp("hsla"+qt),hsv:new RegExp("hsv"+Gt),hsva:new RegExp("hsva"+qt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ii(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Wt[e])e=Wt[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Q.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Q.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Q.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Q.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Q.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Q.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Q.hex8.exec(e),n?{r:G(n[1]),g:G(n[2]),b:G(n[3]),a:Or(n[4]),format:t?"name":"hex8"}:(n=Q.hex6.exec(e),n?{r:G(n[1]),g:G(n[2]),b:G(n[3]),format:t?"name":"hex"}:(n=Q.hex4.exec(e),n?{r:G(n[1]+n[1]),g:G(n[2]+n[2]),b:G(n[3]+n[3]),a:Or(n[4]+n[4]),format:t?"name":"hex8"}:(n=Q.hex3.exec(e),n?{r:G(n[1]+n[1]),g:G(n[2]+n[2]),b:G(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ne(e){return!!Q.CSS_UNIT.exec(String(e))}var be=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Mi(t)),this.originalInput=t;var a=Pe(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,i=t.r/255,l=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Tr(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Xt(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Xt(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Pr(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Pr(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),kt(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Oi(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(D(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(D(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+kt(this.r,this.g,this.b,!1),n=0,r=Object.entries(Wt);n<r.length;n++){var a=r[n],i=a[0],l=a[1];if(t===l)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,i=!n&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=et(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=et(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=et(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=et(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),i=n/100,l={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,i=n.v,l=[],s=1/t;t--;)l.push(new e({h:r,s:a,v:i})),i=(i+s)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],i=360/t,l=1;l<t;l++)a.push(new e({h:(r+l*i)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ut(e){return e>=0&&e<=255}function nt(e,t){const{r:n,g:r,b:a,a:i}=new be(e).toRgb();if(i<1)return e;const{r:l,g:s,b:c}=new be(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-l*(1-u))/u),f=Math.round((r-s*(1-u))/u),p=Math.round((a-c*(1-u))/u);if(Ut(d)&&Ut(f)&&Ut(p))return new be({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new be({r:n,g:r,b:a,a:1}).toRgbString()}const Vi=ee(ee({},{blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"}),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
3
3
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
4
|
-
'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});var Li=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Hi(e){const{override:t}=e,n=Li(e,["override"]),r=ee({},t);Object.keys(Vi).forEach(
|
|
4
|
+
'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});var Li=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Hi(e){const{override:t}=e,n=Li(e,["override"]),r=ee({},t);Object.keys(Vi).forEach(h=>{delete r[h]});const a=ee(ee({},n),r),i=480,l=576,s=768,c=992,u=1200,d=1600,f=2e3;return ee(ee(ee({},a),{colorLink:a.colorInfoText,colorLinkHover:a.colorInfoHover,colorLinkActive:a.colorInfoActive,colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:nt(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:nt(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:nt(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:nt(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
5
5
|
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
6
6
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
7
7
|
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
34
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
35
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}const ji="1.0.3",zi=No(
|
|
36
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}const ji="1.0.3",zi=No(R.theme.defaultAlgorithm),Bi={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Ar=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a,...i}=t;let l={...r,override:a};return l=Hi(l),i&&Object.entries(i).forEach(([s,c])=>{const{theme:u,...d}=c;let f=d;u&&(f=Ar({...l,...d},{override:d},u)),l[s]=f}),l};function Fi(){const{token:e,hashId:t,theme:n}=R.theme.useToken(),r=o.computed(()=>({token:e.value,hashed:t.value,theme:n.value})),{override:a,cssVar:i}=o.unref(r),l=o.computed(()=>r.value.token),s=o.computed(()=>r.value.hashed),c=o.computed(()=>r.value.theme??zi),u=zo(o.computed(()=>c.value),o.computed(()=>[R.theme.defaultSeed,l.value]),o.computed(()=>({salt:`${ji}-${s.value||""}`,override:a,getComputedToken:Ar,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Si,ignore:xi,preserve:Bi}}))),[d,f,p]=o.unref(u),h=o.computed(()=>u.value[0]),g=o.computed(()=>s.value?u.value[1]:"");return[c,p,g,h,i]}const{genStyleHooks:le}=Ci({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=W();return{iconPrefixCls:o.unref(t),rootPrefixCls:e()}},useToken:()=>{const[e,t,n,r,a]=Fi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=W();return(e==null?void 0:e.value)??{}},layer:{name:"antdx",dependencies:["antd"]}}),Di=e=>{const{componentCls:t,paddingSM:n,padding:r}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${Z(n)} ${Z(r)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},Xi=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:a,padding:i,calc:l}=e,s=l(n).mul(r).div(2).add(a).equal(),c=`${t}-content`;return{[t]:{[c]:{"&-round":{borderRadius:{_skip_check_:!0,value:s},paddingInline:l(i).mul(1.25).equal()}},[`&-start ${c}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${c}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},ki=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto"}}},Wi=new yr("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),Gi=new yr("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),qi=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:a,colorText:i,calc:l}=e;return{[t]:{display:"flex",columnGap:a,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:Gi,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:r,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:a},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:i,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:l(a).mul(2).add(l(r).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${Z(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:Wi,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},Mr=le("Bubble",e=>{const t=_(e,{});return[qi(t),ki(t),Di(t),Xi(t)]},()=>({})),Rr=Symbol("BubbleContext"),Kt=o.shallowRef(),Ui=e=>{o.provide(Rr,e),o.watch(e,()=>{Kt.value=o.unref(e),o.triggerRef(Kt)},{immediate:!0,deep:!0})},Ki=()=>o.inject(Rr,o.computed(()=>Kt.value||{})),Zi=o.defineComponent({props:{value:te()},setup(e,{slots:t}){return Ui(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Er=o.defineComponent({name:"AXBubble",__name:"Bubble",props:o.mergeDefaults({prefixCls:null,rootClassName:null,styles:null,classNames:null,avatar:null,placement:null,loading:{type:Boolean},typing:null,content:null,messageRender:{type:Function},loadingRender:{type:Function},variant:null,shape:null,onTypingComplete:null,header:null,footer:{type:Function}},{classNames:()=>({}),styles:()=>({}),placement:"start",loading:!1,content:"",variant:"filled"}),setup(e,{expose:t}){const n=X(e,["prefixCls","rootClassName","classNames","styles","avatar","placement","loading","loadingRender","typing","content","messageRender","variant","shape","onTypingComplete","header","footer"]);o.toRef(e,"content"),o.toRef(e,"prefixCls");const r=o.useSlots(),a=o.ref(e.content);o.watch(()=>e.content,()=>{a.value=e.content});const{onUpdate:i}=o.unref(Ki()),l=o.ref(null),{direction:s,getPrefixCls:c}=W(),u=c("bubble",e.prefixCls),d=re("bubble"),[f,p,h,g]=so(()=>e.typing),[m,b]=lo(a,f,p,h),x=o.ref(!1);o.watch(m,()=>{i==null||i()}),o.watchEffect(()=>{var T;!b.value&&!e.loading?x.value||(x.value=!0,(T=e.onTypingComplete)==null||T.call(e)):x.value=!1});const[S,v,C]=Mr(()=>u),$=o.computed(()=>[u,e.rootClassName,d.value.className,v.value,C,`${u}-${e.placement}`,{[`${u}-rtl`]:s.value==="rtl"},{[`${u}-typing`]:b.value&&!e.loading&&!e.messageRender&&!r.message&&!g.value}]),w=o.computed(()=>r.avatar?r.avatar():o.isVNode(e.avatar)?e.avatar:o.createVNode(R.Avatar,e.avatar,null)),y=o.computed(()=>r.message?r.message({content:m.value}):e.messageRender?e.messageRender(m.value):m.value),P=o.computed(()=>e.loading?r.loading?r.loading():e.loadingRender?e.loadingRender():o.createVNode(co,{prefixCls:u},null):o.createVNode(o.Fragment,null,[y.value,b.value&&o.toValue(g)])),N=o.computed(()=>{const T=o.createVNode("div",{style:{...d.value.styles.content,...e.styles.content},class:[`${u}-content`,`${u}-content-${e.variant}`,{[`${u}-content-${e.shape}`]:e.shape},d.value.classNames.content,e.classNames.content]},[o.toValue(P)]),O=r.header?r.header():e.header,E=r.footer?r.footer({content:y.value}):typeof e.footer=="function"?e.footer(y.value):e.footer;return O||E?o.createVNode("div",{class:`${u}-content-wrapper`},[O&&o.createVNode("div",{class:[`${u}-header`,d.value.classNames.header,e.classNames.header],style:{...d.value.styles.header,...e.styles.header}},[O]),T,E&&o.createVNode("div",{class:[`${u}-footer`,d.value.classNames.footer,e.classNames.footer],style:{...d.value.styles.footer,...e.styles.footer}},[E])]):T});return t({nativeElement:l}),()=>S(o.createVNode("div",o.mergeProps({style:{...d.value.style},class:o.toValue($)},n,{ref:l}),[(r.avatar||e.avatar)&&o.createVNode("div",{style:{...d.value.styles.avatar,...e.styles.avatar},class:[`${u}-avatar`,d.value.classNames.avatar,e.classNames.avatar]},[o.toValue(w)]),o.toValue(N)]))}});function Yi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zt={exports:{}};/*!
|
|
37
37
|
Copyright (c) 2018 Jed Watson.
|
|
38
38
|
Licensed under the MIT License (MIT), see
|
|
39
39
|
http://jedwatson.github.io/classnames
|
|
40
|
-
*/var Ir;function Qi(){return Ir||(Ir=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(i=a(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var s in i)t.call(i,s)&&i[s]&&(l=a(l,s));return l}function a(i,l){return l?i?i+" "+l:i+l:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Zt)),Zt.exports}var Ji=Qi();const
|
|
40
|
+
*/var Ir;function Qi(){return Ir||(Ir=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(i=a(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var s in i)t.call(i,s)&&i[s]&&(l=a(l,s));return l}function a(i,l){return l?i?i+" "+l:i+l:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Zt)),Zt.exports}var Ji=Qi();const A=Yi(Ji);function rt(e){const t=o.ref(e),n=o.ref(r=>{t.value&&t.value(r)});return t.value=e,n.value}const Vr=`accept acceptcharset accesskey action allowfullscreen allowtransparency
|
|
41
41
|
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
|
|
42
42
|
charset checked classid class colspan cols content contenteditable contextmenu
|
|
43
43
|
controls coords crossorigin data datetime default defer dir disabled download draggable
|
|
@@ -54,7 +54,7 @@ summary tabindex target title type usemap value width wmode wrap onCopy onCut on
|
|
|
54
54
|
onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
|
|
55
55
|
onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
|
|
56
56
|
onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
|
|
57
|
-
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),_i="aria-",el="data-";function Lr(e,t){return e.indexOf(t)===0}function Oe(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(a=>{(n.aria&&(a==="role"||Lr(a,_i))||n.data&&Lr(a,el)||n.attr&&(Vr.includes(a)||Vr.includes(a.toLowerCase())))&&(r[a]=e[a])}),r}function tl(e){const[t,n]=z(e.value.length),r=o.computed(()=>e.value.slice(0,o.unref(t))),a=o.computed(()=>{const l=o.unref(r)[o.unref(r).length-1];return l?l.key:null});o.watch(e,()=>{var l;if(!(o.unref(r).length&&o.unref(r).every((s,c)=>{var u;return s.key===((u=e.value[c])==null?void 0:u.key)}))){if(o.unref(r).length===0)n(1);else for(let s=0;s<o.unref(r).length;s+=1)if(o.unref(r)[s].key!==((l=e.value[s])==null?void 0:l.key)){n(s);break}}},{immediate:!0,deep:!0});const i=rt(l=>{l===o.unref(a)&&n(o.unref(t)+1)});return[r,i]}function nl(e,t){const n=(a,i)=>{var l;return typeof t.value=="function"?t.value(a,i):t?((l=t.value)==null?void 0:l[a.role])||{}:{}};return o.computed(()=>(e.value||[]).map((a,i)=>{const l=a.key??`preset_${i}`;return{...n(a,i),...a,key:l}}))}const rl=1,Hr=o.defineComponent({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:o.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(e,{expose:t}){const n=X(e,["prefixCls","rootClassName","items","autoScroll","roles"]);o.toRef(e,"roles"),o.toRef(e,"items"),o.toRef(e,"prefixCls");const r=o.useAttrs(),a=Oe(o.mergeProps(n,r),{attr:!0,aria:!0}),i=o.ref(e.items),l=o.ref(e.roles);o.watch(()=>e.items,()=>{i.value=e.items}),o.watch(()=>e.roles,()=>{l.value=e.roles});const s=o.ref(null),c=o.ref({}),{getPrefixCls:u}=W(),d=u("bubble",e.prefixCls),f=`${d}-list`,[
|
|
57
|
+
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),_i="aria-",el="data-";function Lr(e,t){return e.indexOf(t)===0}function Oe(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(a=>{(n.aria&&(a==="role"||Lr(a,_i))||n.data&&Lr(a,el)||n.attr&&(Vr.includes(a)||Vr.includes(a.toLowerCase())))&&(r[a]=e[a])}),r}function tl(e){const[t,n]=z(e.value.length),r=o.computed(()=>e.value.slice(0,o.unref(t))),a=o.computed(()=>{const l=o.unref(r)[o.unref(r).length-1];return l?l.key:null});o.watch(e,()=>{var l;if(!(o.unref(r).length&&o.unref(r).every((s,c)=>{var u;return s.key===((u=e.value[c])==null?void 0:u.key)}))){if(o.unref(r).length===0)n(1);else for(let s=0;s<o.unref(r).length;s+=1)if(o.unref(r)[s].key!==((l=e.value[s])==null?void 0:l.key)){n(s);break}}},{immediate:!0,deep:!0});const i=rt(l=>{l===o.unref(a)&&n(o.unref(t)+1)});return[r,i]}function nl(e,t){const n=(a,i)=>{var l;return typeof t.value=="function"?t.value(a,i):t?((l=t.value)==null?void 0:l[a.role])||{}:{}};return o.computed(()=>(e.value||[]).map((a,i)=>{const l=a.key??`preset_${i}`;return{...n(a,i),...a,key:l}}))}const rl=1,Hr=o.defineComponent({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:o.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(e,{expose:t}){const n=X(e,["prefixCls","rootClassName","items","autoScroll","roles"]);o.toRef(e,"roles"),o.toRef(e,"items"),o.toRef(e,"prefixCls");const r=o.useAttrs(),a=Oe(o.mergeProps(n,r),{attr:!0,aria:!0}),i=o.ref(e.items),l=o.ref(e.roles);o.watch(()=>e.items,()=>{i.value=e.items}),o.watch(()=>e.roles,()=>{l.value=e.roles});const s=o.ref(null),c=o.ref({}),{getPrefixCls:u}=W(),d=u("bubble",e.prefixCls),f=`${d}-list`,[p,h,g]=Mr(d),[m,b]=z(!1);o.watchEffect(()=>{b(!0),o.onWatcherCleanup(()=>{b(!1)})});const x=nl(i,l),[S,v]=tl(x),[C,$]=z(!0),[w,y]=z(0),P=O=>{const E=O.target;$(E.scrollHeight-Math.abs(E.scrollTop)-E.clientHeight<=rl)};o.watch(w,()=>{e.autoScroll&&o.unref(s)&&o.unref(C)&&o.nextTick(()=>{o.unref(s).scrollTo({top:o.unref(s).scrollHeight})})}),o.watch(()=>o.unref(S).length,()=>{var O;if(e.autoScroll){const E=(O=o.unref(S)[o.unref(S).length-2])==null?void 0:O.key,I=o.unref(c)[E];if(I){const{nativeElement:V}=I,{top:k=0,bottom:q=0}=(V==null?void 0:V.getBoundingClientRect())??{},{top:ce,bottom:bt}=o.unref(s).getBoundingClientRect();k<bt&&q>ce&&(y(o.unref(w)+1),$(!0))}}});const N=rt(()=>{e.autoScroll&&y(o.unref(w)+1)}),T=o.computed(()=>({onUpdate:N}));return t({nativeElement:s,scrollTo:({key:O,offset:E,behavior:I="smooth",block:V})=>{if(typeof E=="number")o.unref(s).scrollTo({top:E,behavior:I});else if(O!==void 0){const k=o.unref(c)[O];if(k){const q=o.unref(S).findIndex(ce=>ce.key===O);$(q===o.unref(S).length-1),k.nativeElement.scrollIntoView({behavior:I,block:V})}}}}),()=>p(o.createVNode(Zi,{value:T.value},{default:()=>[o.createVNode("div",o.mergeProps(a,{class:A(f,e.rootClassName,h.value,g,{[`${f}-reach-end`]:C.value}),ref:s,onScroll:P}),[o.unref(S).map(({key:O,onTypingComplete:E,...I})=>o.createVNode(Er,o.mergeProps(I,{key:O,ref:V=>{V?c.value[O]=V:delete c.value[O]},typing:m.value?I.typing:!1,onTypingComplete:()=>{E==null||E(),v(O)}}),null))])]}))}}),al=Object.assign(Er,{List:Hr});var at=2,jr=.16,ol=.05,il=.05,ll=.15,zr=5,Br=4,sl=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Fr(e){var t=e.r,n=e.g,r=e.b,a=Xt(t,n,r);return{h:a.h*360,s:a.s,v:a.v}}function ot(e){var t=e.r,n=e.g,r=e.b;return"#".concat(kt(t,n,r,!1))}function cl(e,t,n){var r=n/100,a={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return a}function Dr(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-at*t:Math.round(e.h)+at*t:r=n?Math.round(e.h)+at*t:Math.round(e.h)-at*t,r<0?r+=360:r>=360&&(r-=360),r}function Xr(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-jr*t:t===Br?r=e.s+jr:r=e.s+ol*t,r>1&&(r=1),n&&t===zr&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function kr(e,t,n){var r;return n?r=e.v+il*t:r=e.v-ll*t,r>1&&(r=1),Number(r.toFixed(2))}function Yt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Pe(e),a=zr;a>0;a-=1){var i=Fr(r),l=ot(Pe({h:Dr(i,a,!0),s:Xr(i,a,!0),v:kr(i,a,!0)}));n.push(l)}n.push(ot(r));for(var s=1;s<=Br;s+=1){var c=Fr(r),u=ot(Pe({h:Dr(c,s),s:Xr(c,s),v:kr(c,s)}));n.push(u)}return t.theme==="dark"?sl.map(function(d){var f=d.index,p=d.opacity,h=ot(cl(Pe(t.backgroundColor||"#141414"),Pe(n[f]),p*100));return h}):n}var Qt={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},it={},Jt={};Object.keys(Qt).forEach(function(e){it[e]=Yt(Qt[e]),it[e].primary=it[e][5],Jt[e]=Yt(Qt[e],{theme:"dark",backgroundColor:"#141414"}),Jt[e].primary=Jt[e][5]});var ul=it.blue,dl=Symbol("iconContext"),Wr=function(){return o.inject(dl,{prefixCls:o.ref("anticon"),rootClassName:o.ref(""),csp:o.ref()})};function _t(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function fl(e,t){return e&&e.contains?e.contains(t):!1}var Gr="data-vc-order",hl="vc-icon-key",en=new Map;function qr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):hl}function tn(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ml(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ur(e){return Array.from((en.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Kr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!_t())return null;var n=t.csp,r=t.prepend,a=document.createElement("style");a.setAttribute(Gr,ml(r)),n&&n.nonce&&(a.nonce=n.nonce),a.innerHTML=e;var i=tn(t),l=i.firstChild;if(r){if(r==="queue"){var s=Ur(i).filter(function(c){return["prepend","prependQueue"].includes(c.getAttribute(Gr))});if(s.length)return i.insertBefore(a,s[s.length-1].nextSibling),a}i.insertBefore(a,l)}else i.appendChild(a);return a}function gl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=tn(t);return Ur(n).find(function(r){return r.getAttribute(qr(t))===e})}function pl(e,t){var n=en.get(e);if(!n||!fl(document,n)){var r=Kr("",t),a=r.parentNode;en.set(e,a),e.removeChild(r)}}function yl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=tn(n);pl(r,n);var a=gl(t,n);if(a)return n.csp&&n.csp.nonce&&a.nonce!==n.csp.nonce&&(a.nonce=n.csp.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;var i=Kr(e,n);return i.setAttribute(qr(n),t),i}function Zr(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){bl(e,a,n[a])})}return e}function bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eu(e,t){}function Yr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function nn(e,t,n){return n?o.h(e.tag,Zr({key:t},n,e.attrs),(e.children||[]).map(function(r,a){return nn(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):o.h(e.tag,Zr({key:t},e.attrs),(e.children||[]).map(function(r,a){return nn(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Qr(e){return Yt(e)[0]}function Jr(e){return e?Array.isArray(e)?e:[e]:[]}var vl=`
|
|
58
58
|
.anticon {
|
|
59
59
|
display: inline-block;
|
|
60
60
|
color: inherit;
|
|
@@ -108,9 +108,9 @@ summary tabindex target title type usemap value width wmode wrap onCopy onCut on
|
|
|
108
108
|
transform: rotate(360deg);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
`;function _r(e){return e&&e.getRootNode&&e.getRootNode()}function Cl(e){return _t()?_r(e)instanceof ShadowRoot:!1}function xl(e){return Cl(e)?_r(e):null}var Sl=function(){var t=Wr(),n=t.prefixCls,r=t.csp,a=o.getCurrentInstance(),i=vl;n&&(i=i.replace(/anticon/g,n.value)),o.nextTick(function(){if(_t()){var l=a.vnode.el,s=xl(l);yl(i,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:s})}})},wl=["icon","primaryColor","secondaryColor"];function $l(e,t){if(e==null)return{};var n=Nl(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nl(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function lt(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Tl(e,a,n[a])})}return e}function Tl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var je=o.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function Pl(e){var t=e.primaryColor,n=e.secondaryColor;je.primaryColor=t,je.secondaryColor=n||Qr(t),je.calculated=!!n}function Ol(){return lt({},je)}var se=function(t,n){var r=lt({},t,n.attrs),a=r.icon,i=r.primaryColor,l=r.secondaryColor,s=$l(r,wl),c=je;if(i&&(c={primaryColor:i,secondaryColor:l||Qr(i)}),Yr(a),!Yr(a))return null;var u=a;return u&&typeof u.icon=="function"&&(u=lt({},u,{icon:u.icon(c.primaryColor,c.secondaryColor)})),nn(u.icon,"svg-".concat(u.name),lt({},s,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};se.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},se.inheritAttrs=!1,se.displayName="IconBase",se.getTwoToneColors=Ol,se.setTwoToneColors=Pl;function Al(e,t){return Il(e)||El(e,t)||
|
|
112
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
113
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bl(e,t){if(e){if(typeof e=="string")return na(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return na(e,t)}}function na(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fl(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,l,s;try{for(n=n.call(e);!(a=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));a=!0);}catch(c){i=!0,s=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Dl(e){if(Array.isArray(e))return e}function ra(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ze(e,a,n[a])})}return e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xl(e,t){if(e==null)return{};var n=kl(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kl(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}ta(ul.primary);var L=function(t,n){var r,a=ra({},t,n.attrs),i=a.class,l=a.icon,s=a.spin,c=a.rotate,u=a.tabindex,d=a.twoToneColor,f=a.onClick,y=Xl(a,Hl),m=Wr(),p=m.prefixCls,h=m.rootClassName,g=(r={},ze(r,h.value,!!h.value),ze(r,p.value,!0),ze(r,"".concat(p.value,"-").concat(l.name),!!l.name),ze(r,"".concat(p.value,"-spin"),!!s||l.name==="loading"),r),C=u;C===void 0&&f&&(C=-1);var S=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,v=Jr(d),x=jl(v,2),$=x[0],w=x[1];return o.createVNode("span",ra({role:"img","aria-label":l.name},y,{onClick:f,class:[g,i],tabindex:C}),[o.createVNode(se,{icon:l,primaryColor:$,secondaryColor:w,style:S},null),o.createVNode(Ll,null,null)])};L.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},L.displayName="AntdIcon",L.inheritAttrs=!1,L.getTwoToneColor=Vl,L.setTwoToneColor=ta;var Wl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};function aa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Gl(e,a,n[a])})}return e}function Gl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rn=function(t,n){var r=aa({},t,n.attrs);return o.createVNode(L,aa({},r,{icon:Wl}),null)};rn.displayName="ArrowUpOutlined",rn.inheritAttrs=!1;var ql={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"};function oa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Ul(e,a,n[a])})}return e}function Ul(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var an=function(t,n){var r=oa({},t,n.attrs);return o.createVNode(L,oa({},r,{icon:ql}),null)};an.displayName="AudioMutedOutlined",an.inheritAttrs=!1;var Kl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};function ia(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Zl(e,a,n[a])})}return e}function Zl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(t,n){var r=ia({},t,n.attrs);return o.createVNode(L,ia({},r,{icon:Kl}),null)};on.displayName="AudioOutlined",on.inheritAttrs=!1;var Yl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function la(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Ql(e,a,n[a])})}return e}function Ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ln=function(t,n){var r=la({},t,n.attrs);return o.createVNode(L,la({},r,{icon:Yl}),null)};ln.displayName="ClearOutlined",ln.inheritAttrs=!1;var Jl={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function sa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){_l(e,a,n[a])})}return e}function _l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sn=function(t,n){var r=sa({},t,n.attrs);return o.createVNode(L,sa({},r,{icon:Jl}),null)};sn.displayName="CloseCircleFilled",sn.inheritAttrs=!1;var es={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function ca(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ts(e,a,n[a])})}return e}function ts(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cn=function(t,n){var r=ca({},t,n.attrs);return o.createVNode(L,ca({},r,{icon:es}),null)};cn.displayName="CloseOutlined",cn.inheritAttrs=!1;var ns={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function ua(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){rs(e,a,n[a])})}return e}function rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var un=function(t,n){var r=ua({},t,n.attrs);return o.createVNode(L,ua({},r,{icon:ns}),null)};un.displayName="EllipsisOutlined",un.inheritAttrs=!1;var as={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"};function da(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){os(e,a,n[a])})}return e}function os(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dn=function(t,n){var r=da({},t,n.attrs);return o.createVNode(L,da({},r,{icon:as}),null)};dn.displayName="FileExcelFilled",dn.inheritAttrs=!1;var is={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-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.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"};function fa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ls(e,a,n[a])})}return e}function ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fn=function(t,n){var r=fa({},t,n.attrs);return o.createVNode(L,fa({},r,{icon:is}),null)};fn.displayName="FileImageFilled",fn.inheritAttrs=!1;var ss={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"};function ha(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){cs(e,a,n[a])})}return e}function cs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hn=function(t,n){var r=ha({},t,n.attrs);return o.createVNode(L,ha({},r,{icon:ss}),null)};hn.displayName="FileMarkdownFilled",hn.inheritAttrs=!1;var us={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"};function ma(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ds(e,a,n[a])})}return e}function ds(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mn=function(t,n){var r=ma({},t,n.attrs);return o.createVNode(L,ma({},r,{icon:us}),null)};mn.displayName="FilePdfFilled",mn.inheritAttrs=!1;var fs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"};function ga(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){hs(e,a,n[a])})}return e}function hs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gn=function(t,n){var r=ga({},t,n.attrs);return o.createVNode(L,ga({},r,{icon:fs}),null)};gn.displayName="FilePptFilled",gn.inheritAttrs=!1;var ms={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};function pa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){gs(e,a,n[a])})}return e}function gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pn=function(t,n){var r=pa({},t,n.attrs);return o.createVNode(L,pa({},r,{icon:ms}),null)};pn.displayName="FileTextFilled",pn.inheritAttrs=!1;var ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"};function ya(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ys(e,a,n[a])})}return e}function ys(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yn=function(t,n){var r=ya({},t,n.attrs);return o.createVNode(L,ya({},r,{icon:ps}),null)};yn.displayName="FileWordFilled",yn.inheritAttrs=!1;var bs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"};function ba(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){vs(e,a,n[a])})}return e}function vs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bn=function(t,n){var r=ba({},t,n.attrs);return o.createVNode(L,ba({},r,{icon:bs}),null)};bn.displayName="FileZipFilled",bn.inheritAttrs=!1;var Cs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function va(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){xs(e,a,n[a])})}return e}function xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st=function(t,n){var r=va({},t,n.attrs);return o.createVNode(L,va({},r,{icon:Cs}),null)};st.displayName="LeftOutlined",st.inheritAttrs=!1;var Ss={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function Ca(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ws(e,a,n[a])})}return e}function ws(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vn=function(t,n){var r=Ca({},t,n.attrs);return o.createVNode(L,Ca({},r,{icon:Ss}),null)};vn.displayName="PlusOutlined",vn.inheritAttrs=!1;var $s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function xa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Ns(e,a,n[a])})}return e}function Ns(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ct=function(t,n){var r=xa({},t,n.attrs);return o.createVNode(L,xa({},r,{icon:$s}),null)};ct.displayName="RightOutlined",ct.inheritAttrs=!1;const Ts=o.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=X(e,["prefixCls","info","class","direction","onClick","active","menu"]);o.toRef(e,"class");const n=o.computed(()=>Oe(t,{aria:!0,data:!0,attr:!0})),r=h=>{h.stopPropagation()},a=o.computed(()=>e.info.disabled),[i,l]=z(!1),[s,c]=z(!1),u=o.computed(()=>N(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!a.value},{[`${e.prefixCls}-item-disabled`]:a.value})),d=()=>{!a.value&&e.onClick&&e.onClick(e.info)},f=h=>{h&&c(!h)},y=o.computed(()=>{var h;return(h=e.menu)==null?void 0:h.trigger}),m=o.computed(()=>{const{trigger:h,...g}=e.menu||{};return g}),p=h=>{const g=o.createVNode(un,{onClick:r,class:`${e.prefixCls}-menu-icon`},null);return y.value?typeof y.value=="function"?y.value(h,{originNode:g}):y.value:g};return()=>o.createVNode(O.Tooltip,{title:e.info.label,open:i.value&&s.value,onOpenChange:c,placement:e.direction==="rtl"?"left":"right"},{default:()=>[o.createVNode("li",o.mergeProps(n.value,{class:u.value,onClick:d}),[e.info.icon&&o.createVNode("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),o.createVNode(O.Typography.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:l}},{default:()=>[e.info.label]}),!a.value&&e.menu&&o.createVNode(O.Dropdown,{placement:e.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:a.value,onOpenChange:f},{default:()=>p(e.info),overlay:()=>o.createVNode(O.Menu,m.value,null)})])]})}}),Sa=Symbol("GroupTitleContext"),Cn=o.shallowRef(),Ps=e=>{o.provide(Sa,e),o.watch(e,()=>{Cn.value=o.unref(e),o.triggerRef(Cn)},{immediate:!0,deep:!0})},Os=()=>o.inject(Sa,o.computed(()=>Cn.value||{})),As=o.defineComponent({props:{value:te()},setup(e,{slots:t}){return Ps(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),wa=o.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=o.useSlots(),n=Os(),r=o.computed(()=>{var a;return(a=t.default)==null?void 0:a.call(t)});return()=>o.createVNode("div",{class:N(`${n.value.prefixCls}-group-title`)},[r.value&&o.createVNode(O.Typography.Text,null,{default:()=>[r.value]})])}});function $a(e,t){const{defaultValue:n,value:r=o.ref()}=t||{};let a=typeof e=="function"?e():e;r.value!==void 0&&(a=o.unref(r)),n!==void 0&&(a=typeof n=="function"?n():n);const i=o.ref(a),l=o.ref(a);o.watchEffect(()=>{let c=r.value!==void 0?r.value:i.value;t.postState&&(c=t.postState(c)),l.value=c});function s(c){const u=l.value;i.value=c,o.toRaw(l.value)!==c&&t.onChange&&t.onChange(c,u)}return o.watch(r,()=>{i.value=r.value}),[l,s]}const xn="__ungrouped",Rs=(e,t=[])=>{const n=o.computed(()=>{if(!o.toValue(e))return{enableGroup:!1,sort:void 0,title:void 0};let r={sort:void 0,title:void 0};return typeof o.toValue(e)=="object"&&(r={...r,...o.toValue(e)}),{enableGroup:!0,sort:r.sort,title:r.title}});return o.computed(()=>{if(!n.value.enableGroup)return{groupList:[{name:xn,data:o.toValue(t),title:void 0}],enableGroup:n.value.enableGroup};const r=o.toValue(t).reduce((l,s)=>{const c=s.group||xn;return l[c]||(l[c]=[]),l[c].push(s),l},{});return{groupList:(n.value.sort?Object.keys(r).sort(n.value.sort):Object.keys(r)).map(l=>({name:l===xn?void 0:l,title:n.value.title,data:r[l]})),enableGroup:n.value.enableGroup}})},Ms=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",paddingLeft:0,[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${Z(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,overflow:"hidden",textOverflow:"ellipsis",color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${Z(e.paddingXS)}`}}}},Es=le("Conversations",e=>{const t=_(e,{});return Ms(t)},()=>({})),Is=o.defineComponent({name:"AXConversations",__name:"Conversations",props:o.mergeDefaults({items:null,activeKey:null,defaultActiveKey:null,onActiveChange:{type:Function},menu:{type:Function},groupable:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=X(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);o.toRef(e,"class"),o.toRef(e,"activeKey"),o.toRef(e,"prefixCls");const n=o.ref(e.activeKey),r=o.computed(()=>Oe(t,{attr:!0,aria:!0,data:!0})),[a,i]=$a(e.defaultActiveKey,{value:n});o.watch(()=>e.activeKey,()=>{n.value=e.activeKey});const l=Rs(()=>e.groupable,()=>e.items),{getPrefixCls:s,direction:c}=W(),u=o.computed(()=>s("conversations",e.prefixCls)),d=re("conversations"),[f,y,m]=Es(u),p=o.computed(()=>N(u.value,d.value.className,e.class,e.rootClassName,y.value,m,{[`${u.value}-rtl`]:c.value==="rtl"})),h=g=>{i(g.key),e.onActiveChange&&e.onActiveChange(g.key)};return()=>f(o.createVNode("ul",o.mergeProps(r.value,{style:{...typeof d.value.style=="object"?d.value.style:{},...typeof e.style=="object"?e.style:{}},class:p.value}),[l.value.groupList.map((g,C)=>{const S=g.data.map((v,x)=>o.createVNode(Ts,{key:v.key||`key-${x}`,info:v,prefixCls:u.value,direction:c.value,class:N(e.classNames.item,d.value.classNames.item),style:{...d.value.styles.item,...e.styles.item},menu:typeof e.menu=="function"?e.menu(v):e.menu,active:a.value===v.key,onClick:h},null));return l.value.enableGroup?o.createVNode("li",{key:g.name||`key-${C}`},[o.createVNode(As,{value:{prefixCls:u.value}},{default:()=>{var v;return[((v=g.title)==null?void 0:v.call(g,g.name,{components:{GroupTitle:wa}}))||o.createVNode(wa,{key:g.name},{default:()=>[g.name]})]}}),o.createVNode("ul",{class:`${u.value}-list`},[S])]):S})]))}}),Vs=e=>{const{componentCls:t,calc:n}=e,r=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),a=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(r).add(a).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},Ls=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},Hs=le("Welcome",e=>{const t=_(e,{});return[Vs(t),Ls(t)]},()=>({}));function js(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const zs=o.defineComponent({name:"AXWelcome",__name:"Welcome",props:o.mergeDefaults({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})}),setup(e){o.toRef(e,"prefixCls");const t=o.useSlots(),{direction:n,getPrefixCls:r}=W(),a=r("welcome",e.prefixCls),i=re("welcome"),[l,s,c]=Hs(a),u=o.computed(()=>{const m=t.icon?t.icon():e.icon;if(!m)return null;let p=m;return typeof m=="string"&&m.startsWith("http")&&(p=o.createVNode("img",{src:m,alt:"icon"},null)),o.createVNode("div",{class:N(`${a}-icon`,i.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[p])}),d=o.computed(()=>{const m=t.title?t.title():e.title;return m?o.createVNode(O.Typography.Title,{level:4,class:N(`${a}-title`,i.value.classNames.title,e.classNames.title),style:e.styles.title},js(m)?m:{default:()=>[m]}):null}),f=o.computed(()=>t.description?t.description():e.description),y=o.computed(()=>{const m=t.extra?t.extra():e.extra;return m?o.createVNode("div",{class:N(`${a}-extra`,i.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[m]):null});return()=>l(o.createVNode(O.Flex,{class:N(a,i.value.className,e.className,e.rootClassName,s.value,c,`${a}-${e.variant}`,{[`${a}-rtl`]:n.value==="rtl"}),style:e.style},{default:()=>[u.value,o.createVNode(O.Flex,{vertical:!0,class:`${a}-content-wrapper`},{default:()=>[t.extra||e.extra?o.createVNode(O.Flex,{align:"flex-start",class:`${a}-title-wrapper`},{default:()=>[d.value,y.value]}):d.value,f.value&&o.createVNode(O.Typography.Text,{class:N(`${a}-description`,i.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[f.value]})]})]}))}}),Bs=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(n=>`${n} ${e.motionDurationSlow}`).join(","),border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},Fs=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},Ds=le("Prompts",e=>{const t=_(e,{});return[Bs(t),Fs(t)]},()=>({})),Na=o.defineComponent({name:"AXPrompts",__name:"Prompts",props:o.mergeDefaults({items:null,title:null,onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=X(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);o.toRef(e,"class"),o.toRef(e,"prefixCls");const n=o.useSlots(),{getPrefixCls:r,direction:a}=W(),i=r("prompts",e.prefixCls),l=re("prompts"),[s,c,u]=Ds(i),d=o.computed(()=>N(i,l.value.className,e.class,e.rootClassName,c.value,u,{[`${i}-rtl`]:a.value==="rtl"})),f=o.computed(()=>N(`${i}-list`,l.value.classNames.list,e.classNames.list,{[`${i}-list-wrap`]:e.wrap},{[`${i}-list-vertical`]:e.vertical})),y=o.computed(()=>n.title?n.title():e.title);return()=>{var m;return s(o.createVNode("div",o.mergeProps(t,{class:d.value,style:{...typeof e.style=="object"?e.style:{},...typeof l.value.style=="object"?l.value.style:{}}}),[y.value&&o.createVNode(O.Typography.Title,{level:5,class:N(`${i}-title`,l.value.classNames.title,e.classNames.title),style:{...l.value.styles.title,...e.styles.title}},{default:()=>[y.value]}),o.createVNode("div",{class:f.value,style:{...l.value.styles.list,...e.styles.list}},[(m=e.items)==null?void 0:m.map((p,h)=>{const g=p.children&&p.children.length>0;return o.createVNode("div",{key:p.key||`key_${h}`,style:{...l.value.styles.item,...e.styles.item},class:N(`${i}-item`,l.value.classNames.item,e.classNames.item,{[`${i}-item-disabled`]:p.disabled,[`${i}-item-has-nest`]:g}),onClick:()=>{!g&&e.onItemClick&&e.onItemClick({data:p})}},[p.icon&&o.createVNode("div",{class:`${i}-icon`},[p.icon]),o.createVNode("div",{class:N(`${i}-content`,l.value.classNames.itemContent,e.classNames.itemContent),style:{...l.value.styles.itemContent,...e.styles.itemContent}},[p.label&&o.createVNode("h6",{class:`${i}-label`},[p.label]),p.description&&o.createVNode("p",{class:`${i}-desc`},[p.description]),g&&o.createVNode(Na,{class:`${i}-nested`,items:p.children,vertical:!0,onItemClick:e.onItemClick,classNames:{list:e.classNames.subList,item:e.classNames.subItem},styles:{list:e.styles.subList,item:e.styles.subItem}},null)])])})])]))}}}),Xs=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{[`${n}-cascader-menus ${n}-cascader-menu`]:{height:"auto"},[`${t}-item`]:{"&-icon":{marginInlineEnd:e.paddingXXS},"&-extra":{marginInlineStart:e.padding}},[`&${t}-block`]:{[`${t}-item-extra`]:{marginInlineStart:"auto"}}}}},ks=le("Suggestion",e=>{const t=_(e,{});return Xs(t)},()=>({}));function Ws(e,t,n,r,a){const[i,l]=z([]),s=(m,p=i.value)=>{let h=o.toValue(e);for(let g=0;g<m-1;g+=1){const C=p[g],S=h.find(v=>v.value===C);if(!S)break;h=S.children||[]}return h},c=m=>m.map((p,h)=>{const C=s(h+1,m).find(S=>S.value===p);return C==null?void 0:C.value}),u=m=>{const p=i.value.length||1,h=s(p),g=h.findIndex(v=>v.value===i.value[p-1]),C=h.length,S=h[(g+m+C)%C];l([...i.value.slice(0,p-1),S.value])},d=()=>{i.value.length>1&&l(i.value.slice(0,i.value.length-1))},f=()=>{const m=s(i.value.length+1);m.length&&l([...i.value,m[0].value])},y=rt(m=>{if(o.toValue(t))switch(console.log("e.key",m),m.key){case"ArrowDown":u(1),m.preventDefault();break;case"ArrowUp":u(-1),m.preventDefault();break;case"ArrowRight":o.toValue(n)?d():f(),m.preventDefault();break;case"ArrowLeft":o.toValue(n)?f():d(),m.preventDefault();break;case"Enter":s(i.value.length+1).length||r(c(i.value)),m.preventDefault();break;case"Escape":a(),m.preventDefault();break}});return o.watch(()=>o.toValue(t),()=>{o.toValue(t)&&l([o.toValue(e)[0].value])},{immediate:!0}),[i,y]}const Gs=o.defineComponent({name:"AXSuggestion",__name:"Suggestion",props:o.mergeDefaults({prefixCls:null,className:null,rootClassName:null,style:null,children:{type:Function},open:{type:Boolean},onOpenChange:{type:Function},items:{type:Function},onSelect:{type:Function},block:{type:Boolean},styles:null,classNames:null},{open:!1}),setup(e){o.toRef(e,"prefixCls");const t=o.useSlots(),{direction:n,getPrefixCls:r}=W(),a=o.computed(()=>r("suggestion",e.prefixCls));`${a.value}`;const i=o.computed(()=>n.value==="rtl"),l=re("suggestion"),[s,c,u]=ks(a),[d,f]=z(e.open),[y,m]=z(),p=w=>{var b;f(w),(b=e.onOpenChange)==null||b.call(e,w)},h=w=>{w===!1?p(!1):(m(w),p(!0))},g=()=>{p(!1)},C=o.computed(()=>typeof e.items=="function"?e.items(y.value):e.items),S=w=>{e.onSelect&&e.onSelect(w[w.length-1]),p(!1)},[v,x]=Ws(C,d,i,S,g),$=o.computed(()=>{var w;return t.default?t.default({onTrigger:h,onKeyDown:x}):(w=e.children)==null?void 0:w.call(e,{onTrigger:h,onKeyDown:x})});return()=>s(o.createVNode(O.Cascader,{options:C.value,open:d.value,value:v.value,placement:i.value?"topRight":"topLeft",onDropdownVisibleChange:w=>{w||g()},class:N(e.rootClassName,a.value,c,u,{[`${a.value}-block`]:e.block}),onChange:S,dropdownMatchSelectWidth:e.block},{default:()=>o.createVNode("div",{class:N(a.value,l.value.className,e.rootClassName,e.className,`${a.value}-wrapper`,c.value,u),style:{...l.value.style,...e.style}},[$.value])}))}}),Ta=Symbol("SenderHeaderContext"),Sn=o.shallowRef(),qs=e=>{o.provide(Ta,e),o.watch(e,()=>{Sn.value=o.unref(e),o.triggerRef(Sn)},{immediate:!0,deep:!0})},Us=()=>o.inject(Ta,o.computed(()=>Sn.value||{})),Ks=o.defineComponent({props:{value:te()},setup(e,{slots:t}){return qs(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Pa=Symbol("ActionButtonContext"),wn=o.shallowRef(),Zs=e=>{o.provide(Pa,e),o.watch(e,()=>{wn.value=o.unref(e),o.triggerRef(wn)},{immediate:!0,deep:!0})},$n=()=>o.inject(Pa,o.computed(()=>wn.value||{})),Ys=o.defineComponent({props:{value:te()},setup(e,{slots:t}){return Zs(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),ut=o.defineComponent({name:"AXSenderActionButton",__name:"index",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,action:null},{type:"text",disabled:void 0}),setup(e){const t=X(e,["action","type","disabled","onClick"]);o.toRef(e,"disabled");const n=o.useSlots(),r=$n(),a=o.computed(()=>{var c;const l=r.value.disabled,s=(c=r.value)==null?void 0:c[`${e.action}Disabled`];return e.disabled??l??s}),i=o.computed(()=>r.value.prefixCls);return()=>o.createVNode(O.Button,o.mergeProps({type:e.type},t,{onClick:l=>{var s,c;a.value||((c=(s=r.value)==null?void 0:s[e.action])==null||c.call(s),e.onClick&&!Array.isArray(e.onClick)&&e.onClick(l))},class:N(i.value,{[`${i.value}-disabled`]:a.value})}),{icon:()=>n.default()})}}),Qs=o.defineComponent({name:"AXSenderClearButton",__name:"ClearButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{disabled:void 0}),setup(e){const t=X(e,["disabled"]);return()=>o.createVNode(ut,o.mergeProps({disabled:e.disabled},t,{action:"onClear"}),{default:()=>[o.createVNode(ln,null,null)]})}}),Js=o.defineComponent({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(e){const t=e;return()=>o.createVNode("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:t.className},[o.createVNode("title",null,[o.createTextVNode("Stop Loading")]),o.createVNode("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),o.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),o.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[o.createVNode("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),Oa=o.defineComponent({name:"AXSenderLoadingButton",__name:"LoadingButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",icon:null,disabled:void 0}),setup(e){const t=X(e,["type","shape","icon","disabled"]),n=$n(),{token:r}=O.theme.useToken();return()=>o.createVNode(ut,o.mergeProps({type:e.type,disabled:e.disabled,shape:e.shape,icon:e.icon},t,{style:{backgroundColor:"transparent",color:r.value.colorPrimary},class:N(`${n.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[o.createVNode(Js,{className:`${n.value.prefixCls}-loading-icon`},null)]})}}),Aa=o.defineComponent({name:"AXSenderLoadingButton",__name:"SendButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",disabled:void 0}),setup(e){const t=X(e,["type","shape","disabled"]);return()=>o.createVNode(ut,o.mergeProps({type:e.type,shape:e.shape,disabled:e.disabled},t,{action:"onSend"}),{default:()=>[o.createVNode(rn,null,null)]})}}),Be=1e3,Fe=4,dt=140,ft=250,Ra=500,ht=.8,_s=o.defineComponent({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null},setup(e){const t=dt/2;return()=>o.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${Be} ${Be}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[o.createVNode("title",null,[o.createTextVNode("Speech Recording")]),Array.from({length:Fe}).map((n,r)=>{const a=(Be-dt*Fe)/(Fe-1),i=r*(a+dt),l=Be/2-ft/2,s=Be/2-Ra/2;return o.createVNode("rect",{fill:"currentColor",rx:t,ry:t,height:ft,width:dt,x:i,y:l,key:r},[o.createVNode("animate",{attributeName:"height",values:`${ft}; ${Ra}; ${ft}`,keyTimes:"0; 0.5; 1",dur:`${ht}s`,begin:`${ht/Fe*r}s`,repeatCount:"indefinite"},null),o.createVNode("animate",{attributeName:"y",values:`${l}; ${s}; ${l}`,keyTimes:"0; 0.5; 1",dur:`${ht}s`,begin:`${ht/Fe*r}s`,repeatCount:"indefinite"},null)])})])}}),Ma=o.defineComponent({name:"AXSenderSpeechButton",__name:"index",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"text",disabled:void 0}),setup(e){const t=X(e,["type","disabled"]),n=$n(),{token:r}=O.theme.useToken(),a=o.computed(()=>n.value.speechRecording),i=o.computed(()=>n.value.prefixCls),l=o.computed(()=>{let s;return a.value?s=o.createVNode(_s,{className:`${i.value}-recording-icon`},null):n.value.onSpeechDisabled?s=o.createVNode(an,null,null):s=o.createVNode(on,null,null),s});return()=>o.createVNode(ut,o.mergeProps({type:e.type,disabled:e.disabled},t,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:r.value.colorPrimary},action:"onSpeech"}),{default:()=>[l.value]})}}),De=o.defineComponent({name:"AXTransitionCollapse",__name:"TransitionCollapse",props:{prefixCls:{default:"ax"}},setup(e){const t=e,n=o.useSlots(),r=o.computed(()=>t.prefixCls+"-transition-collapse"),a={beforeEnter(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.maxHeight="0",i.style.paddingTop="0",i.style.paddingBottom="0"},enter(i){i.dataset.oldOverflow=i.style.overflow,i.scrollHeight!==0?(i.style.maxHeight=`${i.scrollHeight}px`,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom):(i.style.maxHeight=`${i.dataset.oldMaxHeight||"999"}px`,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom),i.style.overflow="hidden"},afterEnter(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow},beforeLeave(i){i.dataset||(i.dataset={}),i.dataset.oldMaxHeight=i.scrollHeight,i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.overflow="hidden",i.style.maxHeight=`${i.scrollHeight}px`},leave(i){i.scrollHeight!==0&&(i.style.maxHeight="0",i.style.paddingTop="0",i.style.paddingBottom="0")},afterLeave(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom}};return()=>o.createVNode(o.Transition,{name:r.value,onBeforeEnter:a.beforeEnter,onEnter:a.enter,onAfterEnter:a.afterEnter,onBeforeLeave:a.beforeLeave,onLeave:a.leave,onAfterLeave:a.afterLeave},{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}})}}),Ea=e=>{const{componentCls:t}=e,n=`${t}-transition-collapse`;return{[t]:{[n]:{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map(r=>`${r} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map(r=>`${r} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")}}}}};De.install=function(e){return e.component(De.name,De),e};const ec=e=>{const{componentCls:t,calc:n}=e,r=`${t}-header`;return{[t]:{[r]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:n(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",borderRadius:{_skip_check_:!0,value:n(e.borderRadius).mul(2).equal()},borderBottomRightRadius:0,borderBottomLeftRadius:0,[`${r}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(a=>`${a} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},tc=e=>{const{componentCls:t,padding:n,paddingSM:r,paddingXS:a,paddingXXS:i,lineWidth:l,lineWidthBold:s,calc:c}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:c(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:l},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:s}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:a,width:"100%",paddingBlock:r,paddingInlineStart:n,paddingInlineEnd:r,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}},[`${t}-footer`]:{paddingInlineStart:n,paddingInlineEnd:r,paddingBlockEnd:r,paddingBlockStart:i,boxSizing:"border-box"}}}},nc=le("Sender",e=>{const{paddingXS:t,calc:n}=e,r=_(e,{SenderContentMaxWidth:`calc(100% - ${Z(n(t).add(32).equal())})`});return[tc(r),ec(r),Ea(r)]},()=>({}));let mt;!mt&&typeof window<"u"&&(mt=window.SpeechRecognition||window.webkitSpeechRecognition);function rc(e,t){const n=e,r=o.computed(()=>{const h=o.toValue(t);return typeof h=="object"?{controlledRecording:h.recording,onControlledRecordingChange:h.onRecordingChange,speechInControlled:typeof h.recording=="boolean"}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),a=o.computed(()=>r.value.controlledRecording),i=r.value.onControlledRecordingChange,l=r.value.speechInControlled,s=o.ref(null);o.watchEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let h=null;navigator.permissions.query({name:"microphone"}).then(g=>{s.value=g.state,g.onchange=function(){s.value=this.state},h=g}),o.onWatcherCleanup(()=>{h&&(h.onchange=null)})}});const c=o.computed(()=>mt&&s.value!=="denied"),u=o.ref(null),[d,f]=$a(!1,{value:a}),y=o.ref(!1),m=()=>{if(c.value&&!u.value){const h=new mt;h.onstart=()=>{f(!0)},h.onend=()=>{f(!1)},h.onresult=g=>{var C,S,v;if(!y.value){const x=(v=(S=(C=g.results)==null?void 0:C[0])==null?void 0:S[0])==null?void 0:v.transcript;n(x)}y.value=!1},u.value=h}};return{speechPermission:c,triggerSpeech:h=>{h&&!d.value||(y.value=h,l?i==null||i(!d.value):(m(),u.value&&(d.value?(u.value.stop(),i==null||i(!1)):(u.value.start(),i==null||i(!0)))))},recording:d}}function ac(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}const oc=o.defineComponent({name:"AXSender",__name:"Sender",props:o.mergeDefaults({onKeyPress:{type:Function},onFocus:null,onBlur:null,prefixCls:null,defaultValue:null,value:null,loading:{type:Boolean},placeholder:null,readOnly:{type:Boolean},submitType:{type:[String,Boolean]},disabled:{type:Boolean},onSubmit:{type:Function},onChange:{type:Function},onCancel:null,onKeyDown:{type:Function},onPaste:{type:Function},onPasteFile:{type:Function},components:null,styles:null,rootClassName:null,classNames:null,style:null,className:null,actions:{type:[Function,Boolean]},allowSpeech:null,prefix:null,footer:{type:Function},header:null,autoSize:null},{styles:()=>({}),classNames:()=>({}),submitType:"enter",actions:void 0,disabled:void 0,autoSize:()=>({maxRows:8})}),emits:["update:value"],setup(e,{expose:t,emit:n}){const r=X(e,["prefixCls","styles","classNames","className","rootClassName","style","defaultValue","value","placeholder","readOnly","submitType","onSubmit","loading","components","onCancel","onChange","actions","onKeyPress","onKeyDown","disabled","allowSpeech","prefix","footer","header","onPaste","onPasteFile","autoSize"]);o.toRef(e,"prefixCls");function a(P,j,Ce){return ac(P,j)||Ce}const i={SendButton:Aa,ClearButton:Qs,LoadingButton:Oa,SpeechButton:Ma},l=n,s=o.useSlots(),{direction:c,getPrefixCls:u}=W(),d=o.computed(()=>u("sender",e.prefixCls)),f=o.ref(null),y=o.ref(null),m=re("sender"),p=o.computed(()=>`${d.value}-input`),[h,g,C]=nc(d.value),S=o.computed(()=>N(d.value,m.value.className,e.className,e.rootClassName,g.value,C,{[`${d.value}-rtl`]:c.value==="rtl",[`${d.value}-disabled`]:e.disabled})),v=o.computed(()=>`${d.value}-actions-btn`),x=o.computed(()=>`${d.value}-actions-list`),$=o.ref(e.value??e.defaultValue??""),w=P=>{$.value=P};o.watch(()=>e.value,()=>{w(e.value)});const b=(P,j)=>{w(P),l("update:value",P),e.onChange&&e.onChange(P,j)},{speechPermission:T,triggerSpeech:A,recording:R}=rc(P=>{b(`${$.value} ${P}`)},()=>e.allowSpeech),M=a(e.components,["input"],O.Input.TextArea),H=o.computed(()=>Oe(r,{attr:!0,aria:!0,data:!0})),V=o.computed(()=>({...H.value,ref:y})),I=()=>{$.value&&e.onSubmit&&!e.loading&&e.onSubmit($.value)},k=()=>{b("")},q=o.ref(!1),ce=()=>{q.value=!0},bt=()=>{q.value=!1},ue=P=>{const j=P.key==="Enter"&&!q.value;switch(e.submitType){case"enter":j&&!P.shiftKey&&(P.preventDefault(),I());break;case"shiftEnter":j&&P.shiftKey&&(P.preventDefault(),I());break}e.onKeyPress&&e.onKeyPress(P)},Re=P=>{var Ce,Ua;const j=(Ce=P.clipboardData)==null?void 0:Ce.files;j!=null&&j.length&&e.onPasteFile&&(e.onPasteFile(j[0],j),P.preventDefault()),(Ua=e.onPaste)==null||Ua.call(e,P)},de=P=>{var j,Ce;P.target!==((j=f.value)==null?void 0:j.querySelector(`.${p.value}`))&&P.preventDefault(),(Ce=y.value)==null||Ce.focus()},vt=o.computed(()=>{let P=o.createVNode(O.Flex,{class:`${x.value}-presets`},{default:()=>[e.allowSpeech&&o.createVNode(Ma,null,null),e.loading?o.createVNode(Oa,null,null):o.createVNode(Aa,null,null)]});const j={components:i};return s.actions?P=s.actions({ori:P,info:j}):typeof e.actions=="function"?P=e.actions(P,j):(e.actions||e.actions===!1)&&(P=e.actions),P}),Ct=o.computed(()=>({prefixCls:v.value,onSend:I,onSendDisabled:!$.value,onClear:k,onClearDisabled:!$.value,onCancel:e.onCancel,onCancelDisabled:!e.loading,onSpeech:()=>A(!1),onSpeechDisabled:!T.value,speechRecording:R.value,disabled:e.disabled})),We=o.computed(()=>{let P=null;const j={components:i};return s.footer?P=s.footer({info:j}):typeof e.footer=="function"?P=e.footer({components:i}):e.footer&&(P=e.footer),P}),xt=o.computed(()=>s.header?s.header():e.header),St=o.computed(()=>s.prefix?s.prefix():e.prefix);return t({nativeElement:f.value,focus:P=>{var j;return(j=y.value)==null?void 0:j.focus(P)},blur:()=>{var P;return(P=y.value)==null?void 0:P.blur()}}),()=>h(o.createVNode("div",{ref:f,class:S.value,style:{...m.value.style,...e.style}},[xt.value&&o.createVNode(Ks,{value:{prefixCls:d.value}},{default:()=>[xt.value]}),o.createVNode(Ys,{value:Ct.value},{default:()=>[o.createVNode("div",{class:`${d.value}-content`,onMousedown:de},[St.value&&o.createVNode("div",{class:N(`${d.value}-prefix`,m.value.classNames.prefix,e.classNames.prefix),style:{...m.value.styles.prefix,...e.styles.prefix}},[St.value]),o.createVNode(M,o.mergeProps(V.value,{disabled:e.disabled,style:{...m.value.styles.input,...e.styles.input},class:N(p.value,m.value.classNames.input,e.classNames.input),autoSize:e.autoSize,value:$.value,onChange:P=>{b(P.target.value,P),A(!0)},onPressEnter:ue,onCompositionstart:ce,onCompositionend:bt,onKeydown:e.onKeyDown,placeholder:e.placeholder,onPaste:Re,bordered:!1,readOnly:e.readOnly}),null),vt.value&&o.createVNode("div",{class:N(x.value,m.value.classNames.actions,e.classNames.actions),style:{...m.value.styles.actions,...e.styles.actions}},[vt.value])]),We.value&&o.createVNode("div",{class:N(`${d.value}-footer`,m.value.classNames.footer,e.classNames.footer),style:{...m.value.styles.footer,...e.styles.footer}},[We.value])]})]))}}),ic=o.defineComponent({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:o.mergeDefaults({forceRender:{type:Boolean},open:{type:Boolean},onOpenChange:{type:Function},title:null,children:null,className:null,style:null,classNames:null,styles:null,closable:{type:Boolean}},{classNames:()=>({}),styles:()=>({})}),setup(e){o.toRef(e,"classNames");const t=o.useSlots(),n=Us(),r=o.computed(()=>`${n.value.prefixCls}-header`),a=o.useAttrs();return()=>o.createVNode(De,{prefixCls:n.value.prefixCls},{default:()=>{var i;return[e.open||e.forceRender?o.withDirectives(o.createVNode("div",o.mergeProps(a,{class:N(r.value,e.className),style:{...e.style}}),[(e.closable!==!1||e.title)&&o.createVNode("div",{class:N(`${r.value}-header`,e.classNames.header),style:{...e.styles.header}},[o.createVNode("div",{class:`${r.value}-title`},[e.title]),e.closable!==!1&&o.createVNode("div",{class:`${r.value}-close`},[o.createVNode(O.Button,{type:"text",icon:o.createVNode(cn,null,null),size:"small",onClick:()=>{var l;(l=e.onOpenChange)==null||l.call(e,!e.open)}},null)])]),t.default&&o.createVNode("div",{class:N(`${r.value}-content`,e.classNames.content),style:{...e.styles.content}},[(i=t.default)==null?void 0:i.call(t)])]),[[o.vShow,e.open]]):null]}})}}),lc=Object.assign(oc,{Header:ic}),Ia=Symbol("AttachmentContext"),Nn=o.shallowRef(),sc=e=>{o.provide(Ia,e),o.watch(e,()=>{Nn.value=o.unref(e),o.triggerRef(Nn)},{immediate:!0,deep:!0})},gt=()=>o.inject(Ia,o.computed(()=>Nn.value||{})),cc=o.defineComponent({inheritAttrs:!1,props:{value:te()},setup(e,{slots:t}){return sc(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),uc=o.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:o.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const n=`${e.prefixCls}-placeholder`,r=o.computed(()=>e.placeholder||{}),a=o.useTemplateRef("upload-dragger"),i=gt(),[l,s]=z(!1),c=()=>{s(!0)},u=m=>{m.currentTarget.contains(m.relatedTarget)||s(!1)},d=()=>{s(!1)};t({nativeElement:a});const f=m=>Array.isArray(m)&&m.every(o.isVNode),y=o.computed(()=>o.isVNode(e.placeholder)||f(e.placeholder)?e.placeholder:o.createVNode(O.Flex,{align:"center",justify:"center",vertical:!0,class:`${n}-inner`},{default:()=>[o.createVNode(O.Typography.Text,{class:`${n}-icon`},{default:()=>[r.value.icon]}),o.createVNode(O.Typography.Title,{class:`${n}-title`,level:5},{default:()=>[r.value.title]}),o.createVNode(O.Typography.Text,{class:`${n}-description`,type:"secondary"},{default:()=>[r.value.description]})]}));return()=>o.createVNode("div",{class:N(n,{[`${n}-drag-in`]:l.value,[`${n}-disabled`]:i.value.disabled},e.className),onDragenter:c,onDragleave:u,onDrop:d,"aria-hidden":i.value.disabled,style:e.style},[o.createVNode(O.Upload.Dragger,o.mergeProps({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[y.value]})])}}),Va=o.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=gt(),[n,r]=z(),[a,i]=z(null);o.onMounted(()=>{var c;r((c=e.getDropContainer)==null?void 0:c.call(e))}),o.watch(()=>o.toValue(e.getDropContainer),()=>{var u;const c=(u=e.getDropContainer)==null?void 0:u.call(e);n.value!==c&&r(c)}),o.watch(()=>!!n.value,()=>{if(n.value){const c=()=>{i(!0)},u=y=>{y.preventDefault()},d=y=>{y.relatedTarget||i(!1)},f=y=>{i(!1),y.preventDefault()};document.addEventListener("dragenter",c),document.addEventListener("dragover",u),document.addEventListener("dragleave",d),document.addEventListener("drop",f),o.onWatcherCleanup(()=>{document.removeEventListener("dragenter",c),document.removeEventListener("dragover",u),document.removeEventListener("dragleave",d),document.removeEventListener("drop",f)})}});const l=o.computed(()=>e.getDropContainer&&n.value&&!t.value.disabled),s=`${e.prefixCls}-drop-area`;return()=>l.value?o.createVNode(o.Teleport,{to:n.value},{default:()=>[o.createVNode("div",{class:N(s,e.className,{[`${s}-on-body`]:n.value.tagName==="BODY"}),style:{display:a.value?"block":"none"}},[e.children])]}):null}}),La=o.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const n=o.useTemplateRef("upload");return t({nativeElement:n}),()=>o.createVNode(O.Upload,o.mergeProps(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),Ha=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},dc={},fc={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function hc(e,t){return o.openBlock(),o.createElementBlock("svg",fc,t[0]||(t[0]=[o.createElementVNode("title",null,"audio",-1),o.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[o.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})],-1)]))}const mc=Ha(dc,[["render",hc]]),gc={},pc={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function yc(e,t){return o.openBlock(),o.createElementBlock("svg",pc,t[0]||(t[0]=[o.createElementVNode("title",null,"video",-1),o.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[o.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})],-1)]))}const bc=Ha(gc,[["render",yc]]),vc=e=>e.indexOf("image/")===0,pt=200;function Cc(e){return new Promise(t=>{if(!e||!e.type||!vc(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:r,height:a}=n,i=r/a,l=i>1?pt:pt*i,s=i>1?pt/i:pt,c=document.createElement("canvas");c.width=l,c.height=s,c.style.cssText=`position: fixed; left: 0; top: 0; width: ${l}px; height: ${s}px; z-index: 9999; display: none;`,document.body.appendChild(c),c.getContext("2d").drawImage(n,0,0,l,s);const d=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(n.src),t(d)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const r=new FileReader;r.onload=()=>{r.result&&typeof r.result=="string"&&(n.src=r.result)},r.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}function Xe(e){"@babel/helpers - typeof";return Xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xe(e)}function xc(e,t){if(Xe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xe(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sc(e){var t=xc(e,"string");return Xe(t)=="symbol"?t:t+""}function K(e,t,n){return(t=Sc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const F=Math.round;function Tn(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const ja=(e,t,n)=>n===0?e:e/100;function ke(e,t){const n=t||255;return e>n?n:e<0?0:e}class Pn{constructor(t){K(this,"isValid",!0),K(this,"r",0),K(this,"g",0),K(this,"b",0),K(this,"a",1),K(this,"_h",void 0),K(this,"_s",void 0),K(this,"_l",void 0),K(this,"_v",void 0),K(this,"_max",void 0),K(this,"_min",void 0),K(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof Pn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=ke(t.r),this.g=ke(t.g),this.b=ke(t.b),this.a=typeof t.a=="number"?ke(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=F(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,i=s=>(r[s]-this[s])*a+this[s],l={r:F(i("r")),g:F(i("g")),b:F(i("b")),a:F(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>F((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=F(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=F(this.getSaturation()*100),r=F(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=ke(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,i){return parseInt(n[a]+n[i||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const y=F(r*255);this.r=y,this.g=y,this.b=y}let i=0,l=0,s=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(i=u,l=d):c>=1&&c<2?(i=d,l=u):c>=2&&c<3?(l=u,s=d):c>=3&&c<4?(l=d,s=u):c>=4&&c<5?(i=d,s=u):c>=5&&c<6&&(i=u,s=d);const f=r-u/2;this.r=F((i+f)*255),this.g=F((l+f)*255),this.b=F((s+f)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const i=F(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,u=F(r*(1-n)*255),d=F(r*(1-n*c)*255),f=F(r*(1-n*(1-c))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=Tn(t,ja);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Tn(t,ja);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Tn(t,(r,a)=>a.includes("%")?F(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const wc=e=>{const{componentCls:t,antCls:n,calc:r}=e,a=`${t}-list-card`,i=r(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[a]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${a}-name,${a}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${a}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${a}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:r(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:r(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${a}-icon`]:{fontSize:r(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:r(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${a}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${a}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:i,height:i,lineHeight:1,display:"flex",alignItems:"center",[`&:not(${a}-status-error)`]:{border:0},[`${n}-image`]:{width:"100%",height:"100%",borderRadius:"inherit",img:{height:"100%",objectFit:"cover",borderRadius:"inherit"}},[`${a}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${a}-status-error`]:{[`img, ${a}-img-mask`]:{borderRadius:r(e.borderRadius).sub(e.lineWidth).equal()},[`${a}-desc`]:{paddingInline:e.paddingXXS}},[`${a}-progress`]:{}},[`${a}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${a}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${a}-desc`]:{color:e.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map(l=>`${l} ${e.motionDurationSlow}`).join(","),[`${a}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:r(e.paddingSM).mul(-1).equal()}}}}},On={"&, *":{boxSizing:"border-box"}},$c=e=>{const{componentCls:t,calc:n,antCls:r}=e,a=`${t}-drop-area`,i=`${t}-placeholder`;return{[a]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...On,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",...On,[`${r}-upload-wrapper ${r}-upload${r}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${i}-description`]:{}}}}},Nc=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list`,a=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...On,[r]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:n(a).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:a,height:a,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${r}-overflow-ping-start ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-end ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${r}-overflow-ping-end ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-start ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},za=le("Attachments",e=>{const t=_(e,{});return[$c(t),Nc(t),wc(t)]},e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new Pn(t).setA(.85).toRgbString()}}),An=" ",Rn="#8c8c8c",Ba=o.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null,imageProps:null},setup(e,{expose:t}){o.toRef(e,"prefixCls");const n=["png","jpg","jpeg","gif","bmp","webp","svg"],r=[{icon:o.createVNode(dn,null,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:o.createVNode(fn,null,null),color:Rn,ext:n},{icon:o.createVNode(hn,null,null),color:Rn,ext:["md","mdx"]},{icon:o.createVNode(mn,null,null),color:"#ff4d4f",ext:["pdf"]},{icon:o.createVNode(gn,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:o.createVNode(yn,null,null),color:"#1677ff",ext:["doc","docx"]},{icon:o.createVNode(bn,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:o.createVNode(bc,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:o.createVNode(mc,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function a(V,I){return I.some(k=>V.toLowerCase()===`.${k}`)}function i(V){let I=V;const k=["B","KB","MB","GB","TB","PB","EB"];let q=0;for(;I>=1024&&q<k.length-1;)I/=1024,q++;return`${I.toFixed(0)} ${k[q]}`}const l=gt(),s=o.computed(()=>l.value.disabled),c=o.computed(()=>e.item.name),u=o.computed(()=>e.item.size),d=o.computed(()=>e.item.percent),f=o.computed(()=>e.item.status||"done"),y=o.computed(()=>e.item.description),{getPrefixCls:m}=W(),p=o.computed(()=>m("attachment",e.prefixCls)),h=`${p.value}-list-card`,[g,C,S]=za(p),v=o.useTemplateRef("file-list-card-container"),x=o.computed(()=>{const V=c.value||"",I=V.match(/^(.*)\.[^.]+$/);return{namePrefix:I?I[1]:V,nameSuffix:I?V.slice(I[1].length):""}}),$=o.computed(()=>a(x.value.nameSuffix,n)),w=o.computed(()=>y.value?y.value:f.value==="uploading"?`${d.value||0}%`:f.value==="error"?e.item.response||An:u.value?i(u.value):An),b=o.computed(()=>{for(const{ext:V,icon:I,color:k}of r)if(a(x.value.nameSuffix,V))return{icon:I,iconColor:k};return{icon:o.createVNode(pn,{key:"defaultIcon"},null),iconColor:Rn}}),[T,A]=z();o.watch(()=>e.item.originFileObj,()=>{if(e.item.originFileObj){let V=!0;Cc(e.item.originFileObj).then(I=>{V&&A(I)}),o.onWatcherCleanup(()=>{V=!1})}A(void 0)},{immediate:!0});const R=o.computed(()=>e.item.thumbUrl||e.item.url||T.value),M=o.computed(()=>$.value&&(e.item.originFileObj||R.value)),H=o.computed(()=>M.value?o.createVNode(o.Fragment,null,[R.value&&o.createVNode(O.Image,o.mergeProps(e.imageProps,{alt:"preview",src:R.value}),null),f.value!=="done"&&o.createVNode("div",{class:`${h}-img-mask`},[f.value==="uploading"&&d.value!==void 0&&o.createVNode(O.Progress,{percent:d.value,prefixCls:h},null),f.value==="error"&&o.createVNode("div",{class:`${h}-desc`},[o.createVNode("div",{class:`${h}-ellipsis-prefix`},[w.value])])])]):o.createVNode(o.Fragment,null,[o.createVNode("div",{class:`${h}-icon`,style:{color:b.value.iconColor}},[b.value.icon]),o.createVNode("div",{class:`${h}-content`},[o.createVNode("div",{class:`${h}-name`},[o.createVNode("div",{class:`${h}-ellipsis-prefix`},[x.value.namePrefix??An]),o.createVNode("div",{class:`${h}-ellipsis-suffix`},[x.value.nameSuffix])]),o.createVNode("div",{class:`${h}-desc`},[o.createVNode("div",{class:`${h}-ellipsis-prefix`},[w.value])])])]));return t({nativeElement:v}),()=>g(o.createVNode("div",{class:N(h,{[`${h}-status-${f.value}`]:f.value,[`${h}-type-preview`]:M.value,[`${h}-type-overview`]:!M.value},e.className,C.value,S),style:e.style,ref:"file-list-card-container"},[H.value,!s.value&&e.onRemove&&o.createVNode("button",{type:"button",class:`${h}-remove`,onClick:()=>{e.onRemove(e.item)}},[o.createVNode(sn,null,null)])]))}}),Fa=1,Tc=o.defineComponent({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,imageProps:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(e){const t=o.computed(()=>`${e.prefixCls}-list`),n=o.useTemplateRef("file-list-container"),[r,a]=z(!1),i=gt();o.watchEffect(()=>{a(!0),o.onWatcherCleanup(()=>{a(!1)})});const[l,s]=z(!1),[c,u]=z(!1),d=()=>{const p=n.value;p&&(e.overflow==="scrollX"?(s(Math.abs(p.scrollLeft)>=Fa),u(p.scrollWidth-p.clientWidth-Math.abs(p.scrollLeft)>=Fa)):e.overflow==="scrollY"&&(s(p.scrollTop!==0),u(p.scrollHeight-p.clientHeight!==p.scrollTop)))};o.watch([()=>e.overflow,()=>e.items.length],()=>{o.nextTick(()=>{d()})},{immediate:!0});const f=p=>{const h=n.value;h&&h.scrollTo({left:h.scrollLeft+p*h.clientWidth,behavior:"smooth"})},y=()=>{f(-1)},m=()=>{f(1)};return()=>o.createVNode("div",{class:N(t.value,{[`${t.value}-overflow-${e.overflow}`]:e.overflow,[`${t.value}-overflow-ping-start`]:l.value,[`${t.value}-overflow-ping-end`]:c.value},e.listClassName),ref:"file-list-container",onScroll:d,style:e.listStyle},[e.items.map(p=>o.createVNode(Ba,{key:p.uid,prefixCls:e.prefixCls,item:p,onRemove:e.onRemove,className:N(e.itemClassName),imageProps:e.imageProps,style:{...e.itemStyle}},null)),!i.value.disabled&&o.createVNode(La,{upload:e.upload,children:o.createVNode(O.Button,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[o.createVNode(vn,{class:`${t.value}-upload-btn-icon`},null)]})},null),e.overflow==="scrollX"&&o.createVNode(o.Fragment,null,[o.createVNode(O.Button,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:o.createVNode(st,null,null),onClick:y},null),o.createVNode(O.Button,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:o.createVNode(ct,null,null),onClick:m},null)])])}}),Pc=o.defineComponent({name:"AXAttachments",__name:"Attachments",props:o.mergeDefaults({capture:null,type:null,name:null,defaultFileList:null,action:null,directory:null,data:null,method:null,headers:null,showUploadList:null,multiple:null,accept:null,beforeUpload:null,onChange:{type:Function},"onUpdate:fileList":null,onDrop:null,listType:null,onPreview:null,onDownload:null,onReject:null,onRemove:null,remove:null,supportServerRender:null,disabled:{type:Boolean},prefixCls:null,customRequest:null,withCredentials:null,openFileDialogOnClick:null,locale:null,id:null,previewFile:null,transformFile:null,iconRender:null,isImageUrl:null,progress:null,itemRender:null,maxCount:null,height:null,removeIcon:null,downloadIcon:null,previewIcon:null,rootClassName:null,rootStyle:null,style:null,className:null,classNames:null,styles:null,children:null,placeholder:{type:Function},getDropContainer:{type:Function},items:null,overflow:null,imageProps:null},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(e,{expose:t}){const n=X(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","onRemove","overflow","imageProps","disabled","classNames","styles"]);o.toRef(e,"prefixCls");const r=o.useSlots(),{getPrefixCls:a,direction:i}=W(),l=a("attachment",e.prefixCls),s=re("attachments"),c=o.computed(()=>s.value.classNames),u=o.computed(()=>s.value.styles),d=o.useTemplateRef("attachments-container"),f=o.useTemplateRef("attachments-upload"),[y,m,p]=za(l),h=o.computed(()=>N(m.value,p)),[g,C]=z(e.items);o.watch(()=>e.items,()=>{C(e.items)});const S=b=>{var T;C(b.fileList),(T=e.onChange)==null||T.call(e,b)},v=o.computed(()=>({...n,fileList:g.value,onChange:S})),x=b=>Promise.resolve(typeof e.onRemove=="function"?e.onRemove(b):e.onRemove).then(T=>{if(T===!1)return;const A=g.value.filter(R=>R.uid!==b.uid);S({file:{...b,status:"removed"},fileList:A})}),$=(b,T,A)=>{const R=r.placeholder?r.placeholder({type:b}):typeof e.placeholder=="function"?e.placeholder(b):e.placeholder;return o.createVNode(uc,{placeholder:R,upload:v.value,prefixCls:l,className:N(c.value.placeholder,e.classNames.placeholder),style:{...u.value.placeholder,...e.styles.placeholder,...T==null?void 0:T.style}},null)},w=o.computed(()=>g.value.length>0);return t({nativeElement:d.value,upload:b=>{var A,R;const T=(R=(A=f.value)==null?void 0:A.nativeElement)==null?void 0:R.querySelector('input[type="file"]');if(T){const M=new DataTransfer;M.items.add(b),T.files=M.files,T.dispatchEvent(new Event("change",{bubbles:!0}))}}}),()=>y(o.createVNode(cc,{value:{disabled:e.disabled}},{default:()=>[e.children?o.createVNode(o.Fragment,null,[o.createVNode(La,{upload:v.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),o.createVNode(Va,{getDropContainer:e.getDropContainer,prefixCls:l,className:N(h.value,e.rootClassName),children:$("drop")},null)]):o.createVNode("div",{class:N(l,h.value,{[`${l}-rtl`]:i.value==="rtl"},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:i.value||"ltr",ref:"attachments-container"},[o.createVNode(Tc,{prefixCls:l,items:g.value,onRemove:x,overflow:e.overflow,upload:v.value,listClassName:N(c.value.list,e.classNames.list),listStyle:{...u.value.list,...e.styles.list,...!w.value&&{display:"none"}},itemClassName:N(c.value.item,e.classNames.item),itemStyle:{...u.value.item,...e.styles.item},imageProps:e.imageProps},null),$("inline",w.value?{style:{display:"none"}}:{},f.value),o.createVNode(Va,{getDropContainer:e.getDropContainer||(()=>d.value),prefixCls:l,className:h.value,children:$("drop")},null)])]}))}}),Oc=Object.assign(Pc,{FileCard:Ba}),Ac=(e,t,n)=>{const r=o.computed(()=>{const s=o.toValue(e);let c={expandedKeys:[],onExpand:()=>{}};return s?(typeof s=="object"&&(c={...c,...s}),{enableCollapse:!0,customizeExpandedKeys:c.expandedKeys,customizeOnExpand:c.onExpand}):{enableCollapse:!1,customizeExpandedKeys:c.expandedKeys,customizeOnExpand:c.onExpand}}),[a,i]=z(r.value.customizeExpandedKeys),l=s=>{var u,d;if(!r.value.enableCollapse)return;const c=a.value.includes(s)?a.value.filter(f=>f!==s):[...a.value,s];(d=(u=r.value).customizeOnExpand)==null||d.call(u,c),i(c)};return[o.computed(()=>r.value.enableCollapse),a,l]};var yt=(e=>(e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e))(yt||{});const Rc=e=>{const{componentCls:t}=e,n=`${t}-item`,r={[yt.PENDING]:e.colorPrimaryText,[yt.SUCCESS]:e.colorSuccessText,[yt.ERROR]:e.colorErrorText},a=Object.keys(r);return a.reduce((i,l)=>{const s=r[l];return a.forEach(c=>{const u=`& ${n}-${l}-${c}`,d=l===c?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${s}, ${r[c]})`};i[u]={[`& ${n}-icon, & > *::before`]:{backgroundColor:`${s} !important`},"& > :last-child::before":d}}),i},{})},Mc=e=>{const{calc:t,componentCls:n}=e,r=`${n}-item`,a={content:'""',width:t(e.lineWidth).mul(2).equal(),display:"block",position:"absolute",insetInlineEnd:"none",backgroundColor:e.colorTextPlaceholder};return{"& > :last-child > :last-child":{"&::before":{display:"none !important"},[`&${r}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${r}`]:{[`& ${r}-header, & ${r}-content, & ${r}-footer`]:{position:"relative","&::before":{bottom:t(e.itemGap).mul(-1).equal()}},[`& ${r}-header, & ${r}-content`]:{marginInlineStart:t(e.itemSize).mul(-1).equal(),"&::before":{...a,insetInlineStart:t(e.itemSize).div(2).sub(e.lineWidth).equal()}},[`& ${r}-header::before`]:{top:e.itemSize,bottom:t(e.itemGap).mul(-2).equal()},[`& ${r}-content::before`]:{top:"100%"},[`& ${r}-footer::before`]:{...a,top:0,insetInlineStart:t(e.itemSize).div(-2).sub(e.lineWidth).equal()}}}},Ec=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[n]:{display:"flex",flexDirection:"column",[`& ${n}-collapsible`]:{cursor:"pointer"},[`& ${n}-header`]:{display:"flex",marginBottom:e.itemGap,gap:e.itemGap,alignItems:"flex-start",[`& ${n}-icon`]:{height:e.itemSize,width:e.itemSize,fontSize:e.itemFontSize,display:"flex",justifyContent:"center",alignItems:"center"},[`& ${n}-extra`]:{height:e.itemSize,maxHeight:e.itemSize},[`& ${n}-header-box`]:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",[`& ${n}-title`]:{height:e.itemSize,lineHeight:`${Z(e.itemSize)}`,maxHeight:e.itemSize,fontSize:e.itemFontSize,[`& ${n}-collapse-icon`]:{marginInlineEnd:e.marginXS}},[`& ${n}-desc`]:{fontSize:e.itemFontSize}}},[`& ${n}-content`]:{[`& ${n}-content-hidden`]:{display:"none"},[`& ${n}-content-box`]:{padding:e.itemGap,display:"inline-block",maxWidth:`calc(100% - ${e.itemSize})`,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgContainer,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`& ${n}-footer`]:{marginTop:e.itemGap,display:"inline-flex"}}}},Mn=(e,t="middle")=>{const{componentCls:n}=e,r={large:{itemSize:e.itemSizeLG,itemGap:e.itemGapLG,itemFontSize:e.itemFontSizeLG},middle:{itemSize:e.itemSize,itemGap:e.itemGap,itemFontSize:e.itemFontSize},small:{itemSize:e.itemSizeSM,itemGap:e.itemGapSM,itemFontSize:e.itemFontSizeSM}}[t];return{[`&${n}-${t}`]:{paddingInlineStart:r.itemSize,gap:r.itemGap,...Ec({...e,...r}),...Mc({...e,...r})}}},Ic=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",...Rc(e),...Mn(e),...Mn(e,"large"),...Mn(e,"small"),[`&${t}-rtl`]:{direction:"rtl"}}}},Vc=le("ThoughtChain",e=>{const t=_(e,{itemFontSizeSM:e.fontSizeSM,itemSizeSM:e.calc(e.controlHeightXS).add(e.controlHeightSM).div(2).equal(),itemGapSM:e.marginSM,itemFontSize:e.fontSize,itemSize:e.calc(e.controlHeightSM).add(e.controlHeight).div(2).equal(),itemGap:e.margin,itemFontSizeLG:e.fontSizeLG,itemSizeLG:e.calc(e.controlHeight).add(e.controlHeightLG).div(2).equal(),itemGapLG:e.marginLG});return[Ic(t),Ea(t)]}),Da=Symbol("ThoughtChainNodeContext"),En=o.shallowRef(),Lc=e=>{o.provide(Da,e),o.watch(e,()=>{En.value=o.unref(e),o.triggerRef(En)},{immediate:!0,deep:!0})},Hc=()=>o.inject(Da,o.computed(()=>En.value||{})),jc=o.defineComponent({props:{value:te()},setup(e,{slots:t}){return Lc(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),zc=o.defineComponent({name:"AXThoughtChainNode",__name:"item",props:o.mergeDefaults({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(e){const t=X(e,["info","nextStatus","onClick"]),n=o.computed(()=>Oe(t,{attr:!0,aria:!0,data:!0})),r=Hc(),a=o.computed(()=>r.value.prefixCls),i=o.computed(()=>r.value.enableCollapse),l=o.computed(()=>r.value.expandedKeys),s=o.computed(()=>r.value.direction),c=o.computed(()=>r.value.classNames),u=o.computed(()=>r.value.styles),d=o.useId(),f=o.computed(()=>e.info.key??d),y=o.computed(()=>e.info.icon),m=o.computed(()=>e.info.title),p=o.computed(()=>e.info.extra),h=o.computed(()=>e.info.content),g=o.computed(()=>e.info.footer),C=o.computed(()=>e.info.status),S=o.computed(()=>e.info.description),v=o.computed(()=>`${a.value}-item`),x=()=>{var b;return(b=e.onClick)==null?void 0:b.call(e,f.value)},$=o.computed(()=>{var b;return(b=l.value)==null?void 0:b.includes(f.value)}),w=o.computed(()=>i.value?$.value:!0);return()=>o.createVNode("div",o.mergeProps(n.value,{class:N(v.value,{[`${v.value}-${C.value}${e.nextStatus?`-${e.nextStatus}`:""}`]:C.value},t.class),style:t.style}),[o.createVNode("div",{class:N(`${v.value}-header`,c.value.itemHeader),style:u.value.itemHeader,onClick:x},[o.createVNode(O.Avatar,{icon:y.value,class:`${v.value}-icon`},null),o.createVNode("div",{class:N(`${v.value}-header-box`,{[`${v.value}-collapsible`]:i.value&&h.value})},[o.createVNode(O.Typography.Text,{strong:!0,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:m.value}},class:`${v.value}-title`},{default:()=>[i.value&&h.value&&(s.value==="rtl"?o.createVNode(st,{class:`${v.value}-collapse-icon`,rotate:$.value?-90:0},null):o.createVNode(ct,{class:`${v.value}-collapse-icon`,rotate:$.value?90:0},null)),m.value]}),S.value&&o.createVNode(O.Typography.Text,{class:`${v.value}-desc`,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:S.value}},type:"secondary"},{default:()=>[S.value]})]),p.value&&o.createVNode("div",{class:`${v.value}-extra`},[p.value])]),o.createVNode(De,{prefixCls:a.value},{default:()=>[h.value&&o.withDirectives(o.createVNode("div",{class:N(`${v.value}-content`)},[o.createVNode("div",{class:N(`${v.value}-content-box`,c.value.itemContent),style:u.value.itemContent},[h.value])]),[[o.vShow,w.value]])]}),g.value&&o.createVNode("div",{class:N(`${v.value}-footer`,c.value.itemFooter),style:u.value.itemFooter},[g.value])])}}),Bc=o.defineComponent({name:"AXThoughtChain",__name:"ThoughtChain",props:o.mergeDefaults({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"}),setup(e){const t=X(e,["prefixCls","rootClassName","class","items","collapsible","styles","style","classNames","size"]);o.toRef(e,"class"),o.toRef(e,"prefixCls");const n=o.computed(()=>Oe(t,{attr:!0,aria:!0,data:!0})),{getPrefixCls:r,direction:a}=W(),i=o.computed(()=>r()),l=o.computed(()=>r("thought-chain",e.prefixCls)),s=re("thoughtChain"),[c,u,d]=Ac(()=>e.collapsible,l.value,i.value),[f,y,m]=Vc(l),p=o.computed(()=>N(e.class,e.rootClassName,l.value,s.value.className,y.value,m,{[`${l.value}-rtl`]:a.value==="rtl"},`${l.value}-${e.size}`));return()=>f(o.createVNode("div",o.mergeProps(n.value,{class:p.value,style:{...typeof s.value.style=="object"?s.value.style:{},...typeof e.style=="object"?e.style:{}}}),[o.createVNode(jc,{value:{prefixCls:l.value,enableCollapse:c.value,expandedKeys:u.value,direction:a.value,classNames:{itemHeader:N(s.value.classNames.itemHeader,e.classNames.itemHeader),itemContent:N(s.value.classNames.itemContent,e.classNames.itemContent),itemFooter:N(s.value.classNames.itemFooter,e.classNames.itemFooter)},styles:{itemHeader:{...s.value.styles.itemHeader,...e.styles.itemHeader},itemContent:{...s.value.styles.itemContent,...e.styles.itemContent},itemFooter:{...s.value.styles.itemFooter,...e.styles.itemFooter}}}},{default:()=>{var h;return[(h=e.items)==null?void 0:h.map((g,C)=>{var S;return o.createVNode(zc,{key:g.key||`key_${C}`,class:N(s.value.classNames.item,e.classNames.item),style:{...s.value.styles.item,...e.styles.item},info:{...g,icon:g.icon||C+1},onClick:d,nextStatus:((S=e.items[C+1])==null?void 0:S.status)||g.status},null)})]}})]))}}),Fc=`
|
|
111
|
+
`;function _r(e){return e&&e.getRootNode&&e.getRootNode()}function Cl(e){return _t()?_r(e)instanceof ShadowRoot:!1}function xl(e){return Cl(e)?_r(e):null}var Sl=function(){var t=Wr(),n=t.prefixCls,r=t.csp,a=o.getCurrentInstance(),i=vl;n&&(i=i.replace(/anticon/g,n.value)),o.nextTick(function(){if(_t()){var l=a.vnode.el,s=xl(l);yl(i,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:s})}})},wl=["icon","primaryColor","secondaryColor"];function $l(e,t){if(e==null)return{};var n=Nl(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nl(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function lt(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Tl(e,a,n[a])})}return e}function Tl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var je=o.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function Pl(e){var t=e.primaryColor,n=e.secondaryColor;je.primaryColor=t,je.secondaryColor=n||Qr(t),je.calculated=!!n}function Ol(){return lt({},je)}var se=function(t,n){var r=lt({},t,n.attrs),a=r.icon,i=r.primaryColor,l=r.secondaryColor,s=$l(r,wl),c=je;if(i&&(c={primaryColor:i,secondaryColor:l||Qr(i)}),Yr(a),!Yr(a))return null;var u=a;return u&&typeof u.icon=="function"&&(u=lt({},u,{icon:u.icon(c.primaryColor,c.secondaryColor)})),nn(u.icon,"svg-".concat(u.name),lt({},s,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};se.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},se.inheritAttrs=!1,se.displayName="IconBase",se.getTwoToneColors=Ol,se.setTwoToneColors=Pl;function Al(e,t){return Il(e)||El(e,t)||Rl(e,t)||Ml()}function Ml(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
112
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rl(e,t){if(e){if(typeof e=="string")return ea(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ea(e,t)}}function ea(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function El(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,l,s;try{for(n=n.call(e);!(a=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));a=!0);}catch(c){i=!0,s=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Il(e){if(Array.isArray(e))return e}function ta(e){var t=Jr(e),n=Al(t,2),r=n[0],a=n[1];return se.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Vl(){var e=se.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ll=o.defineComponent({name:"InsertStyles",setup:function(){return Sl(),function(){return null}}}),Hl=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function jl(e,t){return Dl(e)||Fl(e,t)||Bl(e,t)||zl()}function zl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
113
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bl(e,t){if(e){if(typeof e=="string")return na(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return na(e,t)}}function na(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fl(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,l,s;try{for(n=n.call(e);!(a=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));a=!0);}catch(c){i=!0,s=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Dl(e){if(Array.isArray(e))return e}function ra(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ze(e,a,n[a])})}return e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xl(e,t){if(e==null)return{};var n=kl(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kl(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}ta(ul.primary);var H=function(t,n){var r,a=ra({},t,n.attrs),i=a.class,l=a.icon,s=a.spin,c=a.rotate,u=a.tabindex,d=a.twoToneColor,f=a.onClick,p=Xl(a,Hl),h=Wr(),g=h.prefixCls,m=h.rootClassName,b=(r={},ze(r,m.value,!!m.value),ze(r,g.value,!0),ze(r,"".concat(g.value,"-").concat(l.name),!!l.name),ze(r,"".concat(g.value,"-spin"),!!s||l.name==="loading"),r),x=u;x===void 0&&f&&(x=-1);var S=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,v=Jr(d),C=jl(v,2),$=C[0],w=C[1];return o.createVNode("span",ra({role:"img","aria-label":l.name},p,{onClick:f,class:[b,i],tabindex:x}),[o.createVNode(se,{icon:l,primaryColor:$,secondaryColor:w,style:S},null),o.createVNode(Ll,null,null)])};H.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},H.displayName="AntdIcon",H.inheritAttrs=!1,H.getTwoToneColor=Vl,H.setTwoToneColor=ta;var Wl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};function aa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Gl(e,a,n[a])})}return e}function Gl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rn=function(t,n){var r=aa({},t,n.attrs);return o.createVNode(H,aa({},r,{icon:Wl}),null)};rn.displayName="ArrowUpOutlined",rn.inheritAttrs=!1;var ql={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"};function oa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Ul(e,a,n[a])})}return e}function Ul(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var an=function(t,n){var r=oa({},t,n.attrs);return o.createVNode(H,oa({},r,{icon:ql}),null)};an.displayName="AudioMutedOutlined",an.inheritAttrs=!1;var Kl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};function ia(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Zl(e,a,n[a])})}return e}function Zl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(t,n){var r=ia({},t,n.attrs);return o.createVNode(H,ia({},r,{icon:Kl}),null)};on.displayName="AudioOutlined",on.inheritAttrs=!1;var Yl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function la(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Ql(e,a,n[a])})}return e}function Ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ln=function(t,n){var r=la({},t,n.attrs);return o.createVNode(H,la({},r,{icon:Yl}),null)};ln.displayName="ClearOutlined",ln.inheritAttrs=!1;var Jl={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function sa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){_l(e,a,n[a])})}return e}function _l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sn=function(t,n){var r=sa({},t,n.attrs);return o.createVNode(H,sa({},r,{icon:Jl}),null)};sn.displayName="CloseCircleFilled",sn.inheritAttrs=!1;var es={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function ca(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ts(e,a,n[a])})}return e}function ts(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cn=function(t,n){var r=ca({},t,n.attrs);return o.createVNode(H,ca({},r,{icon:es}),null)};cn.displayName="CloseOutlined",cn.inheritAttrs=!1;var ns={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function ua(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){rs(e,a,n[a])})}return e}function rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var un=function(t,n){var r=ua({},t,n.attrs);return o.createVNode(H,ua({},r,{icon:ns}),null)};un.displayName="EllipsisOutlined",un.inheritAttrs=!1;var as={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"};function da(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){os(e,a,n[a])})}return e}function os(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dn=function(t,n){var r=da({},t,n.attrs);return o.createVNode(H,da({},r,{icon:as}),null)};dn.displayName="FileExcelFilled",dn.inheritAttrs=!1;var is={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-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.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"};function fa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ls(e,a,n[a])})}return e}function ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fn=function(t,n){var r=fa({},t,n.attrs);return o.createVNode(H,fa({},r,{icon:is}),null)};fn.displayName="FileImageFilled",fn.inheritAttrs=!1;var ss={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"};function ha(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){cs(e,a,n[a])})}return e}function cs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hn=function(t,n){var r=ha({},t,n.attrs);return o.createVNode(H,ha({},r,{icon:ss}),null)};hn.displayName="FileMarkdownFilled",hn.inheritAttrs=!1;var us={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"};function ma(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ds(e,a,n[a])})}return e}function ds(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mn=function(t,n){var r=ma({},t,n.attrs);return o.createVNode(H,ma({},r,{icon:us}),null)};mn.displayName="FilePdfFilled",mn.inheritAttrs=!1;var fs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"};function ga(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){hs(e,a,n[a])})}return e}function hs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gn=function(t,n){var r=ga({},t,n.attrs);return o.createVNode(H,ga({},r,{icon:fs}),null)};gn.displayName="FilePptFilled",gn.inheritAttrs=!1;var ms={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};function pa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){gs(e,a,n[a])})}return e}function gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pn=function(t,n){var r=pa({},t,n.attrs);return o.createVNode(H,pa({},r,{icon:ms}),null)};pn.displayName="FileTextFilled",pn.inheritAttrs=!1;var ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"};function ya(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ys(e,a,n[a])})}return e}function ys(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yn=function(t,n){var r=ya({},t,n.attrs);return o.createVNode(H,ya({},r,{icon:ps}),null)};yn.displayName="FileWordFilled",yn.inheritAttrs=!1;var bs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"};function ba(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){vs(e,a,n[a])})}return e}function vs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bn=function(t,n){var r=ba({},t,n.attrs);return o.createVNode(H,ba({},r,{icon:bs}),null)};bn.displayName="FileZipFilled",bn.inheritAttrs=!1;var Cs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function va(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){xs(e,a,n[a])})}return e}function xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st=function(t,n){var r=va({},t,n.attrs);return o.createVNode(H,va({},r,{icon:Cs}),null)};st.displayName="LeftOutlined",st.inheritAttrs=!1;var Ss={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function Ca(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){ws(e,a,n[a])})}return e}function ws(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vn=function(t,n){var r=Ca({},t,n.attrs);return o.createVNode(H,Ca({},r,{icon:Ss}),null)};vn.displayName="PlusOutlined",vn.inheritAttrs=!1;var $s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function xa(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(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){Ns(e,a,n[a])})}return e}function Ns(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ct=function(t,n){var r=xa({},t,n.attrs);return o.createVNode(H,xa({},r,{icon:$s}),null)};ct.displayName="RightOutlined",ct.inheritAttrs=!1;const Ts=o.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=X(e,["prefixCls","info","class","direction","onClick","active","menu"]);o.toRef(e,"class");const n=o.computed(()=>Oe(t,{aria:!0,data:!0,attr:!0})),r=m=>{m.stopPropagation()},a=o.computed(()=>e.info.disabled),[i,l]=z(!1),[s,c]=z(!1),u=o.computed(()=>A(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!a.value},{[`${e.prefixCls}-item-disabled`]:a.value})),d=()=>{!a.value&&e.onClick&&e.onClick(e.info)},f=m=>{m&&c(!m)},p=o.computed(()=>{var m;return(m=e.menu)==null?void 0:m.trigger}),h=o.computed(()=>{const{trigger:m,...b}=e.menu||{};return b}),g=m=>{const b=o.createVNode(un,{onClick:r,class:`${e.prefixCls}-menu-icon`},null);return p.value?typeof p.value=="function"?p.value(m,{originNode:b}):p.value:b};return()=>o.createVNode(R.Tooltip,{title:e.info.label,open:i.value&&s.value,onOpenChange:c,placement:e.direction==="rtl"?"left":"right"},{default:()=>[o.createVNode("li",o.mergeProps(n.value,{class:u.value,onClick:d}),[e.info.icon&&o.createVNode("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),o.createVNode(R.Typography.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:l}},{default:()=>[e.info.label]}),!a.value&&e.menu&&o.createVNode(R.Dropdown,{placement:e.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:a.value,onOpenChange:f},{default:()=>g(e.info),overlay:()=>o.createVNode(R.Menu,h.value,null)})])]})}}),Sa=Symbol("GroupTitleContext"),Cn=o.shallowRef(),Ps=e=>{o.provide(Sa,e),o.watch(e,()=>{Cn.value=o.unref(e),o.triggerRef(Cn)},{immediate:!0,deep:!0})},Os=()=>o.inject(Sa,o.computed(()=>Cn.value||{})),As=o.defineComponent({props:{value:te()},setup(e,{slots:t}){return Ps(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),wa=o.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=o.useSlots(),n=Os(),r=o.computed(()=>{var a;return(a=t.default)==null?void 0:a.call(t)});return()=>o.createVNode("div",{class:A(`${n.value.prefixCls}-group-title`)},[r.value&&o.createVNode(R.Typography.Text,null,{default:()=>[r.value]})])}});function $a(e,t){const{defaultValue:n,value:r=o.ref()}=t||{};let a=typeof e=="function"?e():e;r.value!==void 0&&(a=o.unref(r)),n!==void 0&&(a=typeof n=="function"?n():n);const i=o.ref(a),l=o.ref(a);o.watchEffect(()=>{let c=r.value!==void 0?r.value:i.value;t.postState&&(c=t.postState(c)),l.value=c});function s(c){const u=l.value;i.value=c,o.toRaw(l.value)!==c&&t.onChange&&t.onChange(c,u)}return o.watch(r,()=>{i.value=r.value}),[l,s]}const xn="__ungrouped",Ms=(e,t=[])=>{const n=o.computed(()=>{if(!o.toValue(e))return{enableGroup:!1,sort:void 0,title:void 0};let r={sort:void 0,title:void 0};return typeof o.toValue(e)=="object"&&(r={...r,...o.toValue(e)}),{enableGroup:!0,sort:r.sort,title:r.title}});return o.computed(()=>{if(!n.value.enableGroup)return{groupList:[{name:xn,data:o.toValue(t),title:void 0}],enableGroup:n.value.enableGroup};const r=o.toValue(t).reduce((l,s)=>{const c=s.group||xn;return l[c]||(l[c]=[]),l[c].push(s),l},{});return{groupList:(n.value.sort?Object.keys(r).sort(n.value.sort):Object.keys(r)).map(l=>({name:l===xn?void 0:l,title:n.value.title,data:r[l]})),enableGroup:n.value.enableGroup}})},Rs=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",paddingLeft:0,[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${Z(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,overflow:"hidden",textOverflow:"ellipsis",color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${Z(e.paddingXS)}`}}}},Es=le("Conversations",e=>{const t=_(e,{});return Rs(t)},()=>({})),Is=o.defineComponent({name:"AXConversations",__name:"Conversations",props:o.mergeDefaults({items:null,activeKey:null,defaultActiveKey:null,onActiveChange:{type:Function},menu:{type:Function},groupable:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=X(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);o.toRef(e,"class"),o.toRef(e,"activeKey"),o.toRef(e,"prefixCls");const n=o.ref(e.activeKey),r=o.computed(()=>Oe(t,{attr:!0,aria:!0,data:!0})),[a,i]=$a(e.defaultActiveKey,{value:n});o.watch(()=>e.activeKey,()=>{n.value=e.activeKey});const l=Ms(()=>e.groupable,()=>e.items),{getPrefixCls:s,direction:c}=W(),u=o.computed(()=>s("conversations",e.prefixCls)),d=re("conversations"),[f,p,h]=Es(u),g=o.computed(()=>A(u.value,d.value.className,e.class,e.rootClassName,p.value,h,{[`${u.value}-rtl`]:c.value==="rtl"})),m=b=>{i(b.key),e.onActiveChange&&e.onActiveChange(b.key)};return()=>f(o.createVNode("ul",o.mergeProps(r.value,{style:{...typeof d.value.style=="object"?d.value.style:{},...typeof e.style=="object"?e.style:{}},class:g.value}),[l.value.groupList.map((b,x)=>{const S=b.data.map((v,C)=>o.createVNode(Ts,{key:v.key||`key-${C}`,info:v,prefixCls:u.value,direction:c.value,class:A(e.classNames.item,d.value.classNames.item),style:{...d.value.styles.item,...e.styles.item},menu:typeof e.menu=="function"?e.menu(v):e.menu,active:a.value===v.key,onClick:m},null));return l.value.enableGroup?o.createVNode("li",{key:b.name||`key-${x}`},[o.createVNode(As,{value:{prefixCls:u.value}},{default:()=>{var v;return[((v=b.title)==null?void 0:v.call(b,b.name,{components:{GroupTitle:wa}}))||o.createVNode(wa,{key:b.name},{default:()=>[b.name]})]}}),o.createVNode("ul",{class:`${u.value}-list`},[S])]):S})]))}}),Vs=e=>{const{componentCls:t,calc:n}=e,r=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),a=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(r).add(a).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},Ls=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},Hs=le("Welcome",e=>{const t=_(e,{});return[Vs(t),Ls(t)]},()=>({}));function js(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const zs=o.defineComponent({name:"AXWelcome",__name:"Welcome",props:o.mergeDefaults({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})}),setup(e){o.toRef(e,"prefixCls");const t=o.useSlots(),{direction:n,getPrefixCls:r}=W(),a=r("welcome",e.prefixCls),i=re("welcome"),[l,s,c]=Hs(a),u=o.computed(()=>{const h=t.icon?t.icon():e.icon;if(!h)return null;let g=h;return typeof h=="string"&&h.startsWith("http")&&(g=o.createVNode("img",{src:h,alt:"icon"},null)),o.createVNode("div",{class:A(`${a}-icon`,i.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[g])}),d=o.computed(()=>{const h=t.title?t.title():e.title;return h?o.createVNode(R.Typography.Title,{level:4,class:A(`${a}-title`,i.value.classNames.title,e.classNames.title),style:e.styles.title},js(h)?h:{default:()=>[h]}):null}),f=o.computed(()=>t.description?t.description():e.description),p=o.computed(()=>{const h=t.extra?t.extra():e.extra;return h?o.createVNode("div",{class:A(`${a}-extra`,i.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[h]):null});return()=>l(o.createVNode(R.Flex,{class:A(a,i.value.className,e.className,e.rootClassName,s.value,c,`${a}-${e.variant}`,{[`${a}-rtl`]:n.value==="rtl"}),style:e.style},{default:()=>[u.value,o.createVNode(R.Flex,{vertical:!0,class:`${a}-content-wrapper`},{default:()=>[t.extra||e.extra?o.createVNode(R.Flex,{align:"flex-start",class:`${a}-title-wrapper`},{default:()=>[d.value,p.value]}):d.value,f.value&&o.createVNode(R.Typography.Text,{class:A(`${a}-description`,i.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[f.value]})]})]}))}}),Bs=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(n=>`${n} ${e.motionDurationSlow}`).join(","),border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},Fs=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},Ds=le("Prompts",e=>{const t=_(e,{});return[Bs(t),Fs(t)]},()=>({})),Na=o.defineComponent({name:"AXPrompts",__name:"Prompts",props:o.mergeDefaults({items:null,title:null,onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=X(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);o.toRef(e,"class"),o.toRef(e,"prefixCls");const n=o.useSlots(),{getPrefixCls:r,direction:a}=W(),i=r("prompts",e.prefixCls),l=re("prompts"),[s,c,u]=Ds(i),d=o.computed(()=>A(i,l.value.className,e.class,e.rootClassName,c.value,u,{[`${i}-rtl`]:a.value==="rtl"})),f=o.computed(()=>A(`${i}-list`,l.value.classNames.list,e.classNames.list,{[`${i}-list-wrap`]:e.wrap},{[`${i}-list-vertical`]:e.vertical})),p=o.computed(()=>n.title?n.title():e.title);return()=>{var h;return s(o.createVNode("div",o.mergeProps(t,{class:d.value,style:{...typeof e.style=="object"?e.style:{},...typeof l.value.style=="object"?l.value.style:{}}}),[p.value&&o.createVNode(R.Typography.Title,{level:5,class:A(`${i}-title`,l.value.classNames.title,e.classNames.title),style:{...l.value.styles.title,...e.styles.title}},{default:()=>[p.value]}),o.createVNode("div",{class:f.value,style:{...l.value.styles.list,...e.styles.list}},[(h=e.items)==null?void 0:h.map((g,m)=>{const b=g.children&&g.children.length>0;return o.createVNode("div",{key:g.key||`key_${m}`,style:{...l.value.styles.item,...e.styles.item},class:A(`${i}-item`,l.value.classNames.item,e.classNames.item,{[`${i}-item-disabled`]:g.disabled,[`${i}-item-has-nest`]:b}),onClick:()=>{!b&&e.onItemClick&&e.onItemClick({data:g})}},[g.icon&&o.createVNode("div",{class:`${i}-icon`},[g.icon]),o.createVNode("div",{class:A(`${i}-content`,l.value.classNames.itemContent,e.classNames.itemContent),style:{...l.value.styles.itemContent,...e.styles.itemContent}},[g.label&&o.createVNode("h6",{class:`${i}-label`},[g.label]),g.description&&o.createVNode("p",{class:`${i}-desc`},[g.description]),b&&o.createVNode(Na,{class:`${i}-nested`,items:g.children,vertical:!0,onItemClick:e.onItemClick,classNames:{list:e.classNames.subList,item:e.classNames.subItem},styles:{list:e.styles.subList,item:e.styles.subItem}},null)])])})])]))}}}),Xs=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{[`${n}-cascader-menus ${n}-cascader-menu`]:{height:"auto"},[`${t}-item`]:{"&-icon":{marginInlineEnd:e.paddingXXS},"&-extra":{marginInlineStart:e.padding}},[`&${t}-block`]:{[`${t}-item-extra`]:{marginInlineStart:"auto"}}}}},ks=le("Suggestion",e=>{const t=_(e,{});return Xs(t)},()=>({}));function Ws(e,t,n,r,a){const[i,l]=z([]),s=(h,g=i.value)=>{let m=o.toValue(e);for(let b=0;b<h-1;b+=1){const x=g[b],S=m.find(v=>v.value===x);if(!S)break;m=S.children||[]}return m},c=h=>h.map((g,m)=>{const x=s(m+1,h).find(S=>S.value===g);return x==null?void 0:x.value}),u=h=>{const g=i.value.length||1,m=s(g),b=m.findIndex(v=>v.value===i.value[g-1]),x=m.length,S=m[(b+h+x)%x];l([...i.value.slice(0,g-1),S.value])},d=()=>{i.value.length>1&&l(i.value.slice(0,i.value.length-1))},f=()=>{const h=s(i.value.length+1);h.length&&l([...i.value,h[0].value])},p=rt(h=>{if(o.toValue(t))switch(console.log("e.key",h),h.key){case"ArrowDown":u(1),h.preventDefault();break;case"ArrowUp":u(-1),h.preventDefault();break;case"ArrowRight":o.toValue(n)?d():f(),h.preventDefault();break;case"ArrowLeft":o.toValue(n)?f():d(),h.preventDefault();break;case"Enter":s(i.value.length+1).length||r(c(i.value)),h.preventDefault();break;case"Escape":a(),h.preventDefault();break}});return o.watch(()=>o.toValue(t),()=>{o.toValue(t)&&l([o.toValue(e)[0].value])},{immediate:!0}),[i,p]}const Gs=o.defineComponent({name:"AXSuggestion",__name:"Suggestion",props:o.mergeDefaults({prefixCls:null,className:null,rootClassName:null,style:null,children:{type:Function},open:{type:Boolean},onOpenChange:{type:Function},items:{type:Function},onSelect:{type:Function},block:{type:Boolean},styles:null,classNames:null},{open:!1}),setup(e){o.toRef(e,"prefixCls");const t=o.useSlots(),{direction:n,getPrefixCls:r}=W(),a=o.computed(()=>r("suggestion",e.prefixCls));`${a.value}`;const i=o.computed(()=>n.value==="rtl"),l=re("suggestion"),[s,c,u]=ks(a),[d,f]=z(e.open),[p,h]=z(),g=w=>{var y;f(w),(y=e.onOpenChange)==null||y.call(e,w)},m=w=>{w===!1?g(!1):(h(w),g(!0))},b=()=>{g(!1)},x=o.computed(()=>typeof e.items=="function"?e.items(p.value):e.items),S=w=>{e.onSelect&&e.onSelect(w[w.length-1]),g(!1)},[v,C]=Ws(x,d,i,S,b),$=o.computed(()=>{var w;return t.default?t.default({onTrigger:m,onKeyDown:C}):(w=e.children)==null?void 0:w.call(e,{onTrigger:m,onKeyDown:C})});return()=>s(o.createVNode(R.Cascader,{options:x.value,open:d.value,value:v.value,placement:i.value?"topRight":"topLeft",onDropdownVisibleChange:w=>{w||b()},class:A(e.rootClassName,a.value,c,u,{[`${a.value}-block`]:e.block}),onChange:S,dropdownMatchSelectWidth:e.block},{default:()=>o.createVNode("div",{class:A(a.value,l.value.className,e.rootClassName,e.className,`${a.value}-wrapper`,c.value,u),style:{...l.value.style,...e.style}},[$.value])}))}}),Ta=Symbol("SenderHeaderContext"),Sn=o.shallowRef(),qs=e=>{o.provide(Ta,e),o.watch(e,()=>{Sn.value=o.unref(e),o.triggerRef(Sn)},{immediate:!0,deep:!0})},Us=()=>o.inject(Ta,o.computed(()=>Sn.value||{})),Ks=o.defineComponent({props:{value:te()},setup(e,{slots:t}){return qs(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Pa=Symbol("ActionButtonContext"),wn=o.shallowRef(),Zs=e=>{o.provide(Pa,e),o.watch(e,()=>{wn.value=o.unref(e),o.triggerRef(wn)},{immediate:!0,deep:!0})},$n=()=>o.inject(Pa,o.computed(()=>wn.value||{})),Ys=o.defineComponent({props:{value:te()},setup(e,{slots:t}){return Zs(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),ut=o.defineComponent({name:"AXSenderActionButton",__name:"index",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,action:null},{type:"text",disabled:void 0}),setup(e){const t=X(e,["action","type","disabled","onClick"]);o.toRef(e,"disabled");const n=o.useSlots(),r=$n(),a=o.computed(()=>{var c;const l=r.value.disabled,s=(c=r.value)==null?void 0:c[`${e.action}Disabled`];return e.disabled??l??s}),i=o.computed(()=>r.value.prefixCls);return()=>o.createVNode(R.Button,o.mergeProps({type:e.type},t,{onClick:l=>{var s,c;a.value||((c=(s=r.value)==null?void 0:s[e.action])==null||c.call(s),e.onClick&&!Array.isArray(e.onClick)&&e.onClick(l))},class:A(i.value,{[`${i.value}-disabled`]:a.value})}),{icon:()=>n.default()})}}),Qs=o.defineComponent({name:"AXSenderClearButton",__name:"ClearButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{disabled:void 0}),setup(e){const t=X(e,["disabled"]);return()=>o.createVNode(ut,o.mergeProps({disabled:e.disabled},t,{action:"onClear"}),{default:()=>[o.createVNode(ln,null,null)]})}}),Js=o.defineComponent({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(e){const t=e;return()=>o.createVNode("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:t.className},[o.createVNode("title",null,[o.createTextVNode("Stop Loading")]),o.createVNode("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),o.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),o.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[o.createVNode("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),Oa=o.defineComponent({name:"AXSenderLoadingButton",__name:"LoadingButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",icon:void 0,disabled:void 0}),setup(e){const t=X(e,["type","shape","icon","disabled"]),n=$n(),{token:r}=R.theme.useToken();return()=>o.createVNode(ut,o.mergeProps({type:e.type,disabled:e.disabled,shape:e.shape,icon:e.icon},t,{style:{backgroundColor:"transparent",color:r.value.colorPrimary},class:A(`${n.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[o.createVNode(Js,{className:`${n.value.prefixCls}-loading-icon`},null)]})}}),Aa=o.defineComponent({name:"AXSenderLoadingButton",__name:"SendButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",disabled:void 0}),setup(e){const t=X(e,["type","shape","disabled"]);return()=>o.createVNode(ut,o.mergeProps({type:e.type,shape:e.shape,disabled:e.disabled},t,{action:"onSend"}),{default:()=>[o.createVNode(rn,null,null)]})}}),Be=1e3,Fe=4,dt=140,ft=250,Ma=500,ht=.8,_s=o.defineComponent({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null},setup(e){const t=dt/2;return()=>o.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${Be} ${Be}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[o.createVNode("title",null,[o.createTextVNode("Speech Recording")]),Array.from({length:Fe}).map((n,r)=>{const a=(Be-dt*Fe)/(Fe-1),i=r*(a+dt),l=Be/2-ft/2,s=Be/2-Ma/2;return o.createVNode("rect",{fill:"currentColor",rx:t,ry:t,height:ft,width:dt,x:i,y:l,key:r},[o.createVNode("animate",{attributeName:"height",values:`${ft}; ${Ma}; ${ft}`,keyTimes:"0; 0.5; 1",dur:`${ht}s`,begin:`${ht/Fe*r}s`,repeatCount:"indefinite"},null),o.createVNode("animate",{attributeName:"y",values:`${l}; ${s}; ${l}`,keyTimes:"0; 0.5; 1",dur:`${ht}s`,begin:`${ht/Fe*r}s`,repeatCount:"indefinite"},null)])})])}}),Ra=o.defineComponent({name:"AXSenderSpeechButton",__name:"index",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"text",disabled:void 0}),setup(e){const t=X(e,["type","disabled"]),n=$n(),{token:r}=R.theme.useToken(),a=o.computed(()=>n.value.speechRecording),i=o.computed(()=>n.value.prefixCls),l=o.computed(()=>{let s;return a.value?s=o.createVNode(_s,{className:`${i.value}-recording-icon`},null):n.value.onSpeechDisabled?s=o.createVNode(an,null,null):s=o.createVNode(on,null,null),s});return()=>o.createVNode(ut,o.mergeProps({type:e.type,disabled:e.disabled},t,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:r.value.colorPrimary},action:"onSpeech"}),{default:()=>[l.value]})}}),De=o.defineComponent({name:"AXTransitionCollapse",__name:"TransitionCollapse",props:{prefixCls:{default:"ax"}},setup(e){const t=e,n=o.useSlots(),r=o.computed(()=>t.prefixCls+"-transition-collapse"),a={beforeEnter(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.maxHeight="0",i.style.paddingTop="0",i.style.paddingBottom="0"},enter(i){i.dataset.oldOverflow=i.style.overflow,i.scrollHeight!==0?(i.style.maxHeight=`${i.scrollHeight}px`,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom):(i.style.maxHeight=`${i.dataset.oldMaxHeight||"999"}px`,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom),i.style.overflow="hidden"},afterEnter(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow},beforeLeave(i){i.dataset||(i.dataset={}),i.dataset.oldMaxHeight=i.scrollHeight,i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.overflow="hidden",i.style.maxHeight=`${i.scrollHeight}px`},leave(i){i.scrollHeight!==0&&(i.style.maxHeight="0",i.style.paddingTop="0",i.style.paddingBottom="0")},afterLeave(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom}};return()=>o.createVNode(o.Transition,{name:r.value,onBeforeEnter:a.beforeEnter,onEnter:a.enter,onAfterEnter:a.afterEnter,onBeforeLeave:a.beforeLeave,onLeave:a.leave,onAfterLeave:a.afterLeave},{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}})}}),Ea=e=>{const{componentCls:t}=e,n=`${t}-transition-collapse`;return{[t]:{[n]:{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map(r=>`${r} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map(r=>`${r} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")}}}}};De.install=function(e){return e.component(De.name,De),e};const ec=e=>{const{componentCls:t,calc:n}=e,r=`${t}-header`;return{[t]:{[r]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:n(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",borderRadius:{_skip_check_:!0,value:n(e.borderRadius).mul(2).equal()},borderBottomRightRadius:0,borderBottomLeftRadius:0,[`${r}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(a=>`${a} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},tc=e=>{const{componentCls:t,padding:n,paddingSM:r,paddingXS:a,paddingXXS:i,lineWidth:l,lineWidthBold:s,calc:c}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:c(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:l},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:s}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:a,width:"100%",paddingBlock:r,paddingInlineStart:n,paddingInlineEnd:r,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}},[`${t}-footer`]:{paddingInlineStart:n,paddingInlineEnd:r,paddingBlockEnd:r,paddingBlockStart:i,boxSizing:"border-box"}}}},nc=le("Sender",e=>{const{paddingXS:t,calc:n}=e,r=_(e,{SenderContentMaxWidth:`calc(100% - ${Z(n(t).add(32).equal())})`});return[tc(r),ec(r),Ea(r)]},()=>({}));let mt;!mt&&typeof window<"u"&&(mt=window.SpeechRecognition||window.webkitSpeechRecognition);function rc(e,t){const n=e,r=o.computed(()=>{const m=o.toValue(t);return typeof m=="object"?{controlledRecording:m.recording,onControlledRecordingChange:m.onRecordingChange,speechInControlled:typeof m.recording=="boolean"}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),a=o.computed(()=>r.value.controlledRecording),i=r.value.onControlledRecordingChange,l=r.value.speechInControlled,s=o.ref(null);o.watchEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let m=null;navigator.permissions.query({name:"microphone"}).then(b=>{s.value=b.state,b.onchange=function(){s.value=this.state},m=b}),o.onWatcherCleanup(()=>{m&&(m.onchange=null)})}});const c=o.computed(()=>mt&&s.value!=="denied"),u=o.ref(null),[d,f]=$a(!1,{value:a}),p=o.ref(!1),h=()=>{if(c.value&&!u.value){const m=new mt;m.onstart=()=>{f(!0)},m.onend=()=>{f(!1)},m.onresult=b=>{var x,S,v;if(!p.value){const C=(v=(S=(x=b.results)==null?void 0:x[0])==null?void 0:S[0])==null?void 0:v.transcript;n(C)}p.value=!1},u.value=m}};return{speechPermission:c,triggerSpeech:m=>{m&&!d.value||(p.value=m,l?i==null||i(!d.value):(h(),u.value&&(d.value?(u.value.stop(),i==null||i(!1)):(u.value.start(),i==null||i(!0)))))},recording:d}}function ac(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}const oc=o.defineComponent({name:"AXSender",__name:"Sender",props:{onKeyPress:{},onFocus:{},onBlur:{},prefixCls:{},defaultValue:{},value:{},loading:{type:Boolean},placeholder:{},readOnly:{type:Boolean},submitType:{type:[String,Boolean],default:"enter"},disabled:{type:Boolean,default:void 0},onSubmit:{},onChange:{},onCancel:{},onKeyDown:{},onPaste:{},onPasteFile:{},components:{},styles:{default:()=>({})},rootClassName:{},classNames:{default:()=>({})},style:{},className:{},actions:{type:[Object,Function,Boolean],default:void 0},allowSpeech:{},prefix:{},footer:{},header:{},autoSize:{default:()=>({maxRows:8})}},emits:["update:value"],setup(e,{expose:t,emit:n}){const r=X(e,["prefixCls","styles","classNames","className","rootClassName","style","defaultValue","value","placeholder","readOnly","submitType","onSubmit","loading","components","onCancel","onChange","actions","onKeyPress","onKeyDown","disabled","allowSpeech","prefix","footer","header","onPaste","onPasteFile","autoSize"]);o.toRef(e,"prefixCls");function a(M,j,Ce){return ac(M,j)||Ce}const i={SendButton:Aa,ClearButton:Qs,LoadingButton:Oa,SpeechButton:Ra},l=n,s=o.useSlots(),{direction:c,getPrefixCls:u}=W(),d=o.computed(()=>u("sender",e.prefixCls)),f=o.ref(null),p=o.ref(null),h=re("sender"),g=o.computed(()=>`${d.value}-input`),[m,b,x]=nc(d.value),S=o.computed(()=>A(d.value,h.value.className,e.className,e.rootClassName,b.value,x,{[`${d.value}-rtl`]:c.value==="rtl",[`${d.value}-disabled`]:e.disabled})),v=o.computed(()=>`${d.value}-actions-btn`),C=o.computed(()=>`${d.value}-actions-list`),$=o.ref(e.value??e.defaultValue??""),w=M=>{$.value=M};o.watch(()=>e.value,()=>{w(e.value)});const y=(M,j)=>{w(M),l("update:value",M),e.onChange&&e.onChange(M,j)},{speechPermission:P,triggerSpeech:N,recording:T}=rc(M=>{y(`${$.value} ${M}`)},()=>e.allowSpeech),O=a(e.components,["input"],R.Input.TextArea),E=o.computed(()=>Oe(r,{attr:!0,aria:!0,data:!0})),I=o.computed(()=>({...E.value,ref:p})),V=()=>{$.value&&e.onSubmit&&!e.loading&&e.onSubmit($.value)},k=()=>{y("")},q=o.ref(!1),ce=()=>{q.value=!0},bt=()=>{q.value=!1},ue=M=>{const j=M.key==="Enter"&&!q.value;switch(e.submitType){case"enter":j&&!M.shiftKey&&(M.preventDefault(),V());break;case"shiftEnter":j&&M.shiftKey&&(M.preventDefault(),V());break}e.onKeyPress&&e.onKeyPress(M)},Me=M=>{var Ce,Ua;const j=(Ce=M.clipboardData)==null?void 0:Ce.files;j!=null&&j.length&&e.onPasteFile&&(e.onPasteFile(j[0],j),M.preventDefault()),(Ua=e.onPaste)==null||Ua.call(e,M)},de=M=>{var j,Ce;M.target!==((j=f.value)==null?void 0:j.querySelector(`.${g.value}`))&&M.preventDefault(),(Ce=p.value)==null||Ce.focus()},vt=o.computed(()=>{let M=o.createVNode(R.Flex,{class:`${C.value}-presets`},{default:()=>[e.allowSpeech&&o.createVNode(Ra,null,null),e.loading?o.createVNode(Oa,null,null):o.createVNode(Aa,null,null)]});const j={components:i};return s.actions?M=s.actions({ori:M,info:j}):typeof e.actions=="function"?M=e.actions(M,j):(e.actions||e.actions===!1)&&(M=e.actions),M}),Ct=o.computed(()=>({prefixCls:v.value,onSend:V,onSendDisabled:!$.value,onClear:k,onClearDisabled:!$.value,onCancel:e.onCancel,onCancelDisabled:!e.loading,onSpeech:()=>N(!1),onSpeechDisabled:!P.value,speechRecording:T.value,disabled:e.disabled})),We=o.computed(()=>{let M=null;const j={components:i};return s.footer?M=s.footer({info:j}):typeof e.footer=="function"?M=e.footer({components:i}):e.footer&&(M=e.footer),M}),xt=o.computed(()=>s.header?s.header():e.header),St=o.computed(()=>s.prefix?s.prefix():e.prefix);return t({nativeElement:f.value,focus:M=>{var j;return(j=p.value)==null?void 0:j.focus(M)},blur:()=>{var M;return(M=p.value)==null?void 0:M.blur()}}),()=>m(o.createVNode("div",{ref:f,class:S.value,style:{...h.value.style,...e.style}},[xt.value&&o.createVNode(Ks,{value:{prefixCls:d.value}},{default:()=>[xt.value]}),o.createVNode(Ys,{value:Ct.value},{default:()=>[o.createVNode("div",{class:`${d.value}-content`,onMousedown:de},[St.value&&o.createVNode("div",{class:A(`${d.value}-prefix`,h.value.classNames.prefix,e.classNames.prefix),style:{...h.value.styles.prefix,...e.styles.prefix}},[St.value]),o.createVNode(O,o.mergeProps(I.value,{disabled:e.disabled,style:{...h.value.styles.input,...e.styles.input},class:A(g.value,h.value.classNames.input,e.classNames.input),autoSize:e.autoSize,value:$.value,onChange:M=>{y(M.target.value,M),N(!0)},onPressEnter:ue,onCompositionstart:ce,onCompositionend:bt,onKeydown:e.onKeyDown,placeholder:e.placeholder,onPaste:Me,bordered:!1,readOnly:e.readOnly}),null),vt.value&&o.createVNode("div",{class:A(C.value,h.value.classNames.actions,e.classNames.actions),style:{...h.value.styles.actions,...e.styles.actions}},[vt.value])]),We.value&&o.createVNode("div",{class:A(`${d.value}-footer`,h.value.classNames.footer,e.classNames.footer),style:{...h.value.styles.footer,...e.styles.footer}},[We.value])]})]))}}),ic=o.defineComponent({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:o.mergeDefaults({forceRender:{type:Boolean},open:{type:Boolean},onOpenChange:{type:Function},title:null,children:null,className:null,style:null,classNames:null,styles:null,closable:{type:Boolean}},{classNames:()=>({}),styles:()=>({})}),setup(e){o.toRef(e,"classNames");const t=o.useSlots(),n=Us(),r=o.computed(()=>`${n.value.prefixCls}-header`),a=o.useAttrs();return()=>o.createVNode(De,{prefixCls:n.value.prefixCls},{default:()=>{var i;return[e.open||e.forceRender?o.withDirectives(o.createVNode("div",o.mergeProps(a,{class:A(r.value,e.className),style:{...e.style}}),[(e.closable!==!1||e.title)&&o.createVNode("div",{class:A(`${r.value}-header`,e.classNames.header),style:{...e.styles.header}},[o.createVNode("div",{class:`${r.value}-title`},[e.title]),e.closable!==!1&&o.createVNode("div",{class:`${r.value}-close`},[o.createVNode(R.Button,{type:"text",icon:o.createVNode(cn,null,null),size:"small",onClick:()=>{var l;(l=e.onOpenChange)==null||l.call(e,!e.open)}},null)])]),t.default&&o.createVNode("div",{class:A(`${r.value}-content`,e.classNames.content),style:{...e.styles.content}},[(i=t.default)==null?void 0:i.call(t)])]),[[o.vShow,e.open]]):null]}})}}),lc=Object.assign(oc,{Header:ic}),Ia=Symbol("AttachmentContext"),Nn=o.shallowRef(),sc=e=>{o.provide(Ia,e),o.watch(e,()=>{Nn.value=o.unref(e),o.triggerRef(Nn)},{immediate:!0,deep:!0})},gt=()=>o.inject(Ia,o.computed(()=>Nn.value||{})),cc=o.defineComponent({inheritAttrs:!1,props:{value:te()},setup(e,{slots:t}){return sc(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),uc=o.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:o.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const n=`${e.prefixCls}-placeholder`,r=o.computed(()=>e.placeholder||{}),a=o.useTemplateRef("upload-dragger"),i=gt(),[l,s]=z(!1),c=()=>{s(!0)},u=h=>{h.currentTarget.contains(h.relatedTarget)||s(!1)},d=()=>{s(!1)};t({nativeElement:a});const f=h=>Array.isArray(h)&&h.every(o.isVNode),p=o.computed(()=>o.isVNode(e.placeholder)||f(e.placeholder)?e.placeholder:o.createVNode(R.Flex,{align:"center",justify:"center",vertical:!0,class:`${n}-inner`},{default:()=>[o.createVNode(R.Typography.Text,{class:`${n}-icon`},{default:()=>[r.value.icon]}),o.createVNode(R.Typography.Title,{class:`${n}-title`,level:5},{default:()=>[r.value.title]}),o.createVNode(R.Typography.Text,{class:`${n}-description`,type:"secondary"},{default:()=>[r.value.description]})]}));return()=>o.createVNode("div",{class:A(n,{[`${n}-drag-in`]:l.value,[`${n}-disabled`]:i.value.disabled},e.className),onDragenter:c,onDragleave:u,onDrop:d,"aria-hidden":i.value.disabled,style:e.style},[o.createVNode(R.Upload.Dragger,o.mergeProps({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[p.value]})])}}),Va=o.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=gt(),[n,r]=z(),[a,i]=z(null);o.onMounted(()=>{var c;r((c=e.getDropContainer)==null?void 0:c.call(e))}),o.watch(()=>o.toValue(e.getDropContainer),()=>{var u;const c=(u=e.getDropContainer)==null?void 0:u.call(e);n.value!==c&&r(c)}),o.watch(()=>!!n.value,()=>{if(n.value){const c=()=>{i(!0)},u=p=>{p.preventDefault()},d=p=>{p.relatedTarget||i(!1)},f=p=>{i(!1),p.preventDefault()};document.addEventListener("dragenter",c),document.addEventListener("dragover",u),document.addEventListener("dragleave",d),document.addEventListener("drop",f),o.onWatcherCleanup(()=>{document.removeEventListener("dragenter",c),document.removeEventListener("dragover",u),document.removeEventListener("dragleave",d),document.removeEventListener("drop",f)})}});const l=o.computed(()=>e.getDropContainer&&n.value&&!t.value.disabled),s=`${e.prefixCls}-drop-area`;return()=>l.value?o.createVNode(o.Teleport,{to:n.value},{default:()=>[o.createVNode("div",{class:A(s,e.className,{[`${s}-on-body`]:n.value.tagName==="BODY"}),style:{display:a.value?"block":"none"}},[e.children])]}):null}}),La=o.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const n=o.useTemplateRef("upload");return t({nativeElement:n}),()=>o.createVNode(R.Upload,o.mergeProps(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),Ha=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},dc={},fc={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function hc(e,t){return o.openBlock(),o.createElementBlock("svg",fc,t[0]||(t[0]=[o.createElementVNode("title",null,"audio",-1),o.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[o.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})],-1)]))}const mc=Ha(dc,[["render",hc]]),gc={},pc={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function yc(e,t){return o.openBlock(),o.createElementBlock("svg",pc,t[0]||(t[0]=[o.createElementVNode("title",null,"video",-1),o.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[o.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})],-1)]))}const bc=Ha(gc,[["render",yc]]),vc=e=>e.indexOf("image/")===0,pt=200;function Cc(e){return new Promise(t=>{if(!e||!e.type||!vc(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:r,height:a}=n,i=r/a,l=i>1?pt:pt*i,s=i>1?pt/i:pt,c=document.createElement("canvas");c.width=l,c.height=s,c.style.cssText=`position: fixed; left: 0; top: 0; width: ${l}px; height: ${s}px; z-index: 9999; display: none;`,document.body.appendChild(c),c.getContext("2d").drawImage(n,0,0,l,s);const d=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(n.src),t(d)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const r=new FileReader;r.onload=()=>{r.result&&typeof r.result=="string"&&(n.src=r.result)},r.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}function Xe(e){"@babel/helpers - typeof";return Xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xe(e)}function xc(e,t){if(Xe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xe(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sc(e){var t=xc(e,"string");return Xe(t)=="symbol"?t:t+""}function K(e,t,n){return(t=Sc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const F=Math.round;function Tn(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const ja=(e,t,n)=>n===0?e:e/100;function ke(e,t){const n=t||255;return e>n?n:e<0?0:e}class Pn{constructor(t){K(this,"isValid",!0),K(this,"r",0),K(this,"g",0),K(this,"b",0),K(this,"a",1),K(this,"_h",void 0),K(this,"_s",void 0),K(this,"_l",void 0),K(this,"_v",void 0),K(this,"_max",void 0),K(this,"_min",void 0),K(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof Pn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=ke(t.r),this.g=ke(t.g),this.b=ke(t.b),this.a=typeof t.a=="number"?ke(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=F(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,i=s=>(r[s]-this[s])*a+this[s],l={r:F(i("r")),g:F(i("g")),b:F(i("b")),a:F(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>F((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=F(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=F(this.getSaturation()*100),r=F(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=ke(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,i){return parseInt(n[a]+n[i||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const p=F(r*255);this.r=p,this.g=p,this.b=p}let i=0,l=0,s=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(i=u,l=d):c>=1&&c<2?(i=d,l=u):c>=2&&c<3?(l=u,s=d):c>=3&&c<4?(l=d,s=u):c>=4&&c<5?(i=d,s=u):c>=5&&c<6&&(i=u,s=d);const f=r-u/2;this.r=F((i+f)*255),this.g=F((l+f)*255),this.b=F((s+f)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const i=F(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,u=F(r*(1-n)*255),d=F(r*(1-n*c)*255),f=F(r*(1-n*(1-c))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=Tn(t,ja);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Tn(t,ja);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Tn(t,(r,a)=>a.includes("%")?F(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const wc=e=>{const{componentCls:t,antCls:n,calc:r}=e,a=`${t}-list-card`,i=r(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[a]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${a}-name,${a}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${a}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${a}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:r(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:r(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${a}-icon`]:{fontSize:r(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:r(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${a}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${a}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:i,height:i,lineHeight:1,display:"flex",alignItems:"center",[`&:not(${a}-status-error)`]:{border:0},[`${n}-image`]:{width:"100%",height:"100%",borderRadius:"inherit",img:{height:"100%",objectFit:"cover",borderRadius:"inherit"}},[`${a}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${a}-status-error`]:{[`img, ${a}-img-mask`]:{borderRadius:r(e.borderRadius).sub(e.lineWidth).equal()},[`${a}-desc`]:{paddingInline:e.paddingXXS}},[`${a}-progress`]:{}},[`${a}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${a}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${a}-desc`]:{color:e.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map(l=>`${l} ${e.motionDurationSlow}`).join(","),[`${a}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:r(e.paddingSM).mul(-1).equal()}}}}},On={"&, *":{boxSizing:"border-box"}},$c=e=>{const{componentCls:t,calc:n,antCls:r}=e,a=`${t}-drop-area`,i=`${t}-placeholder`;return{[a]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...On,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",...On,[`${r}-upload-wrapper ${r}-upload${r}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${i}-description`]:{}}}}},Nc=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list`,a=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...On,[r]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:n(a).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:a,height:a,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${r}-overflow-ping-start ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-end ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${r}-overflow-ping-end ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-start ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},za=le("Attachments",e=>{const t=_(e,{});return[$c(t),Nc(t),wc(t)]},e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new Pn(t).setA(.85).toRgbString()}}),An=" ",Mn="#8c8c8c",Ba=o.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null,imageProps:null},setup(e,{expose:t}){o.toRef(e,"prefixCls");const n=["png","jpg","jpeg","gif","bmp","webp","svg"],r=[{icon:o.createVNode(dn,null,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:o.createVNode(fn,null,null),color:Mn,ext:n},{icon:o.createVNode(hn,null,null),color:Mn,ext:["md","mdx"]},{icon:o.createVNode(mn,null,null),color:"#ff4d4f",ext:["pdf"]},{icon:o.createVNode(gn,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:o.createVNode(yn,null,null),color:"#1677ff",ext:["doc","docx"]},{icon:o.createVNode(bn,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:o.createVNode(bc,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:o.createVNode(mc,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function a(I,V){return V.some(k=>I.toLowerCase()===`.${k}`)}function i(I){let V=I;const k=["B","KB","MB","GB","TB","PB","EB"];let q=0;for(;V>=1024&&q<k.length-1;)V/=1024,q++;return`${V.toFixed(0)} ${k[q]}`}const l=gt(),s=o.computed(()=>l.value.disabled),c=o.computed(()=>e.item.name),u=o.computed(()=>e.item.size),d=o.computed(()=>e.item.percent),f=o.computed(()=>e.item.status||"done"),p=o.computed(()=>e.item.description),{getPrefixCls:h}=W(),g=o.computed(()=>h("attachment",e.prefixCls)),m=`${g.value}-list-card`,[b,x,S]=za(g),v=o.useTemplateRef("file-list-card-container"),C=o.computed(()=>{const I=c.value||"",V=I.match(/^(.*)\.[^.]+$/);return{namePrefix:V?V[1]:I,nameSuffix:V?I.slice(V[1].length):""}}),$=o.computed(()=>a(C.value.nameSuffix,n)),w=o.computed(()=>p.value?p.value:f.value==="uploading"?`${d.value||0}%`:f.value==="error"?e.item.response||An:u.value?i(u.value):An),y=o.computed(()=>{for(const{ext:I,icon:V,color:k}of r)if(a(C.value.nameSuffix,I))return{icon:V,iconColor:k};return{icon:o.createVNode(pn,{key:"defaultIcon"},null),iconColor:Mn}}),[P,N]=z();o.watch(()=>e.item.originFileObj,()=>{if(e.item.originFileObj){let I=!0;Cc(e.item.originFileObj).then(V=>{I&&N(V)}),o.onWatcherCleanup(()=>{I=!1})}N(void 0)},{immediate:!0});const T=o.computed(()=>e.item.thumbUrl||e.item.url||P.value),O=o.computed(()=>$.value&&(e.item.originFileObj||T.value)),E=o.computed(()=>O.value?o.createVNode(o.Fragment,null,[T.value&&o.createVNode(R.Image,o.mergeProps(e.imageProps,{alt:"preview",src:T.value}),null),f.value!=="done"&&o.createVNode("div",{class:`${m}-img-mask`},[f.value==="uploading"&&d.value!==void 0&&o.createVNode(R.Progress,{percent:d.value,prefixCls:m},null),f.value==="error"&&o.createVNode("div",{class:`${m}-desc`},[o.createVNode("div",{class:`${m}-ellipsis-prefix`},[w.value])])])]):o.createVNode(o.Fragment,null,[o.createVNode("div",{class:`${m}-icon`,style:{color:y.value.iconColor}},[y.value.icon]),o.createVNode("div",{class:`${m}-content`},[o.createVNode("div",{class:`${m}-name`},[o.createVNode("div",{class:`${m}-ellipsis-prefix`},[C.value.namePrefix??An]),o.createVNode("div",{class:`${m}-ellipsis-suffix`},[C.value.nameSuffix])]),o.createVNode("div",{class:`${m}-desc`},[o.createVNode("div",{class:`${m}-ellipsis-prefix`},[w.value])])])]));return t({nativeElement:v}),()=>b(o.createVNode("div",{class:A(m,{[`${m}-status-${f.value}`]:f.value,[`${m}-type-preview`]:O.value,[`${m}-type-overview`]:!O.value},e.className,x.value,S),style:e.style,ref:"file-list-card-container"},[E.value,!s.value&&e.onRemove&&o.createVNode("button",{type:"button",class:`${m}-remove`,onClick:()=>{e.onRemove(e.item)}},[o.createVNode(sn,null,null)])]))}}),Fa=1,Tc=o.defineComponent({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,imageProps:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(e){const t=o.computed(()=>`${e.prefixCls}-list`),n=o.useTemplateRef("file-list-container"),[r,a]=z(!1),i=gt();o.watchEffect(()=>{a(!0),o.onWatcherCleanup(()=>{a(!1)})});const[l,s]=z(!1),[c,u]=z(!1),d=()=>{const g=n.value;g&&(e.overflow==="scrollX"?(s(Math.abs(g.scrollLeft)>=Fa),u(g.scrollWidth-g.clientWidth-Math.abs(g.scrollLeft)>=Fa)):e.overflow==="scrollY"&&(s(g.scrollTop!==0),u(g.scrollHeight-g.clientHeight!==g.scrollTop)))};o.watch([()=>e.overflow,()=>e.items.length],()=>{o.nextTick(()=>{d()})},{immediate:!0});const f=g=>{const m=n.value;m&&m.scrollTo({left:m.scrollLeft+g*m.clientWidth,behavior:"smooth"})},p=()=>{f(-1)},h=()=>{f(1)};return()=>o.createVNode("div",{class:A(t.value,{[`${t.value}-overflow-${e.overflow}`]:e.overflow,[`${t.value}-overflow-ping-start`]:l.value,[`${t.value}-overflow-ping-end`]:c.value},e.listClassName),ref:"file-list-container",onScroll:d,style:e.listStyle},[e.items.map(g=>o.createVNode(Ba,{key:g.uid,prefixCls:e.prefixCls,item:g,onRemove:e.onRemove,className:A(e.itemClassName),imageProps:e.imageProps,style:{...e.itemStyle}},null)),!i.value.disabled&&o.createVNode(La,{upload:e.upload,children:o.createVNode(R.Button,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[o.createVNode(vn,{class:`${t.value}-upload-btn-icon`},null)]})},null),e.overflow==="scrollX"&&o.createVNode(o.Fragment,null,[o.createVNode(R.Button,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:o.createVNode(st,null,null),onClick:p},null),o.createVNode(R.Button,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:o.createVNode(ct,null,null),onClick:h},null)])])}}),Pc=o.defineComponent({name:"AXAttachments",__name:"Attachments",props:o.mergeDefaults({capture:null,type:null,name:null,defaultFileList:null,action:null,directory:null,data:null,method:null,headers:null,showUploadList:null,multiple:null,accept:null,beforeUpload:null,onChange:{type:Function},"onUpdate:fileList":null,onDrop:null,listType:null,onPreview:null,onDownload:null,onReject:null,onRemove:null,remove:null,supportServerRender:null,disabled:{type:Boolean},prefixCls:null,customRequest:null,withCredentials:null,openFileDialogOnClick:null,locale:null,id:null,previewFile:null,transformFile:null,iconRender:null,isImageUrl:null,progress:null,itemRender:null,maxCount:null,height:null,removeIcon:null,downloadIcon:null,previewIcon:null,rootClassName:null,rootStyle:null,style:null,className:null,classNames:null,styles:null,children:null,placeholder:{type:Function},getDropContainer:{type:Function},items:null,overflow:null,imageProps:null},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(e,{expose:t}){const n=X(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","onRemove","overflow","imageProps","disabled","classNames","styles"]);o.toRef(e,"prefixCls");const r=o.useSlots(),{getPrefixCls:a,direction:i}=W(),l=a("attachment",e.prefixCls),s=re("attachments"),c=o.computed(()=>s.value.classNames),u=o.computed(()=>s.value.styles),d=o.useTemplateRef("attachments-container"),f=o.useTemplateRef("attachments-upload"),[p,h,g]=za(l),m=o.computed(()=>A(h.value,g)),[b,x]=z(e.items);o.watch(()=>e.items,()=>{x(e.items)});const S=y=>{var P;x(y.fileList),(P=e.onChange)==null||P.call(e,y)},v=o.computed(()=>({...n,fileList:b.value,onChange:S})),C=y=>Promise.resolve(typeof e.onRemove=="function"?e.onRemove(y):e.onRemove).then(P=>{if(P===!1)return;const N=b.value.filter(T=>T.uid!==y.uid);S({file:{...y,status:"removed"},fileList:N})}),$=(y,P,N)=>{const T=r.placeholder?r.placeholder({type:y}):typeof e.placeholder=="function"?e.placeholder(y):e.placeholder;return o.createVNode(uc,{placeholder:T,upload:v.value,prefixCls:l,className:A(c.value.placeholder,e.classNames.placeholder),style:{...u.value.placeholder,...e.styles.placeholder,...P==null?void 0:P.style}},null)},w=o.computed(()=>b.value.length>0);return t({nativeElement:d.value,upload:y=>{var N,T;const P=(T=(N=f.value)==null?void 0:N.nativeElement)==null?void 0:T.querySelector('input[type="file"]');if(P){const O=new DataTransfer;O.items.add(y),P.files=O.files,P.dispatchEvent(new Event("change",{bubbles:!0}))}}}),()=>p(o.createVNode(cc,{value:{disabled:e.disabled}},{default:()=>[e.children?o.createVNode(o.Fragment,null,[o.createVNode(La,{upload:v.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),o.createVNode(Va,{getDropContainer:e.getDropContainer,prefixCls:l,className:A(m.value,e.rootClassName),children:$("drop")},null)]):o.createVNode("div",{class:A(l,m.value,{[`${l}-rtl`]:i.value==="rtl"},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:i.value||"ltr",ref:"attachments-container"},[o.createVNode(Tc,{prefixCls:l,items:b.value,onRemove:C,overflow:e.overflow,upload:v.value,listClassName:A(c.value.list,e.classNames.list),listStyle:{...u.value.list,...e.styles.list,...!w.value&&{display:"none"}},itemClassName:A(c.value.item,e.classNames.item),itemStyle:{...u.value.item,...e.styles.item},imageProps:e.imageProps},null),$("inline",w.value?{style:{display:"none"}}:{},f.value),o.createVNode(Va,{getDropContainer:e.getDropContainer||(()=>d.value),prefixCls:l,className:m.value,children:$("drop")},null)])]}))}}),Oc=Object.assign(Pc,{FileCard:Ba}),Ac=(e,t,n)=>{const r=o.computed(()=>{const s=o.toValue(e);let c={expandedKeys:[],onExpand:()=>{}};return s?(typeof s=="object"&&(c={...c,...s}),{enableCollapse:!0,customizeExpandedKeys:c.expandedKeys,customizeOnExpand:c.onExpand}):{enableCollapse:!1,customizeExpandedKeys:c.expandedKeys,customizeOnExpand:c.onExpand}}),[a,i]=z(r.value.customizeExpandedKeys),l=s=>{var u,d;if(!r.value.enableCollapse)return;const c=a.value.includes(s)?a.value.filter(f=>f!==s):[...a.value,s];(d=(u=r.value).customizeOnExpand)==null||d.call(u,c),typeof o.toValue(e)!="object"&&i(c)};return o.watch(r,s=>{i(s.customizeExpandedKeys)},{deep:1}),[o.computed(()=>r.value.enableCollapse),a,l]};var yt=(e=>(e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e))(yt||{});const Mc=e=>{const{componentCls:t}=e,n=`${t}-item`,r={[yt.PENDING]:e.colorPrimaryText,[yt.SUCCESS]:e.colorSuccessText,[yt.ERROR]:e.colorErrorText},a=Object.keys(r);return a.reduce((i,l)=>{const s=r[l];return a.forEach(c=>{const u=`& ${n}-${l}-${c}`,d=l===c?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${s}, ${r[c]})`};i[u]={[`& ${n}-icon, & > *::before`]:{backgroundColor:`${s} !important`},"& > :last-child::before":d}}),i},{})},Rc=e=>{const{calc:t,componentCls:n}=e,r=`${n}-item`,a={content:'""',width:t(e.lineWidth).mul(2).equal(),display:"block",position:"absolute",insetInlineEnd:"none",backgroundColor:e.colorTextPlaceholder};return{"& > :last-child > :last-child":{"&::before":{display:"none !important"},[`&${r}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${r}`]:{[`& ${r}-header, & ${r}-content, & ${r}-footer`]:{position:"relative","&::before":{bottom:t(e.itemGap).mul(-1).equal()}},[`& ${r}-header, & ${r}-content`]:{marginInlineStart:t(e.itemSize).mul(-1).equal(),"&::before":{...a,insetInlineStart:t(e.itemSize).div(2).sub(e.lineWidth).equal()}},[`& ${r}-header::before`]:{top:e.itemSize,bottom:t(e.itemGap).mul(-2).equal()},[`& ${r}-content::before`]:{top:"100%"},[`& ${r}-footer::before`]:{...a,top:0,insetInlineStart:t(e.itemSize).div(-2).sub(e.lineWidth).equal()}}}},Ec=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[n]:{display:"flex",flexDirection:"column",[`& ${n}-collapsible`]:{cursor:"pointer"},[`& ${n}-header`]:{display:"flex",marginBottom:e.itemGap,gap:e.itemGap,alignItems:"flex-start",[`& ${n}-icon`]:{height:e.itemSize,width:e.itemSize,fontSize:e.itemFontSize,display:"flex",justifyContent:"center",alignItems:"center"},[`& ${n}-extra`]:{height:e.itemSize,maxHeight:e.itemSize},[`& ${n}-header-box`]:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",[`& ${n}-title`]:{height:e.itemSize,lineHeight:`${Z(e.itemSize)}`,maxHeight:e.itemSize,fontSize:e.itemFontSize,[`& ${n}-collapse-icon`]:{marginInlineEnd:e.marginXS}},[`& ${n}-desc`]:{fontSize:e.itemFontSize}}},[`& ${n}-content`]:{[`& ${n}-content-hidden`]:{display:"none"},[`& ${n}-content-box`]:{padding:e.itemGap,display:"inline-block",maxWidth:`calc(100% - ${e.itemSize})`,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgContainer,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`& ${n}-footer`]:{marginTop:e.itemGap,display:"inline-flex"}}}},Rn=(e,t="middle")=>{const{componentCls:n}=e,r={large:{itemSize:e.itemSizeLG,itemGap:e.itemGapLG,itemFontSize:e.itemFontSizeLG},middle:{itemSize:e.itemSize,itemGap:e.itemGap,itemFontSize:e.itemFontSize},small:{itemSize:e.itemSizeSM,itemGap:e.itemGapSM,itemFontSize:e.itemFontSizeSM}}[t];return{[`&${n}-${t}`]:{paddingInlineStart:r.itemSize,gap:r.itemGap,...Ec({...e,...r}),...Rc({...e,...r})}}},Ic=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",...Mc(e),...Rn(e),...Rn(e,"large"),...Rn(e,"small"),[`&${t}-rtl`]:{direction:"rtl"}}}},Vc=le("ThoughtChain",e=>{const t=_(e,{itemFontSizeSM:e.fontSizeSM,itemSizeSM:e.calc(e.controlHeightXS).add(e.controlHeightSM).div(2).equal(),itemGapSM:e.marginSM,itemFontSize:e.fontSize,itemSize:e.calc(e.controlHeightSM).add(e.controlHeight).div(2).equal(),itemGap:e.margin,itemFontSizeLG:e.fontSizeLG,itemSizeLG:e.calc(e.controlHeight).add(e.controlHeightLG).div(2).equal(),itemGapLG:e.marginLG});return[Ic(t),Ea(t)]}),Da=Symbol("ThoughtChainNodeContext"),En=o.shallowRef(),Lc=e=>{o.provide(Da,e),o.watch(e,()=>{En.value=o.unref(e),o.triggerRef(En)},{immediate:!0,deep:!0})},Hc=()=>o.inject(Da,o.computed(()=>En.value||{})),jc=o.defineComponent({props:{value:te()},setup(e,{slots:t}){return Lc(o.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),zc=o.defineComponent({name:"AXThoughtChainNode",__name:"item",props:o.mergeDefaults({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(e){const t=X(e,["info","nextStatus","onClick"]),n=o.computed(()=>Oe(t,{attr:!0,aria:!0,data:!0})),r=Hc(),a=o.computed(()=>r.value.prefixCls),i=o.computed(()=>r.value.enableCollapse),l=o.computed(()=>r.value.expandedKeys),s=o.computed(()=>r.value.direction),c=o.computed(()=>r.value.classNames),u=o.computed(()=>r.value.styles),d=o.useId(),f=o.computed(()=>e.info.key??d),p=o.computed(()=>e.info.icon),h=o.computed(()=>e.info.title),g=o.computed(()=>e.info.extra),m=o.computed(()=>e.info.content),b=o.computed(()=>e.info.footer),x=o.computed(()=>e.info.status),S=o.computed(()=>e.info.description),v=o.computed(()=>`${a.value}-item`),C=()=>{var y;return(y=e.onClick)==null?void 0:y.call(e,f.value)},$=o.computed(()=>{var y;return(y=l.value)==null?void 0:y.includes(f.value)}),w=o.computed(()=>i.value?$.value:!0);return()=>o.createVNode("div",o.mergeProps(n.value,{class:A(v.value,{[`${v.value}-${x.value}${e.nextStatus?`-${e.nextStatus}`:""}`]:x.value},t.class),style:t.style}),[o.createVNode("div",{class:A(`${v.value}-header`,c.value.itemHeader),style:u.value.itemHeader,onClick:C},[o.createVNode(R.Avatar,{icon:p.value,class:`${v.value}-icon`},null),o.createVNode("div",{class:A(`${v.value}-header-box`,{[`${v.value}-collapsible`]:i.value&&m.value})},[o.createVNode(R.Typography.Text,{strong:!0,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:h.value}},class:`${v.value}-title`},{default:()=>[i.value&&m.value&&(s.value==="rtl"?o.createVNode(st,{class:`${v.value}-collapse-icon`,rotate:$.value?-90:0},null):o.createVNode(ct,{class:`${v.value}-collapse-icon`,rotate:$.value?90:0},null)),h.value]}),S.value&&o.createVNode(R.Typography.Text,{class:`${v.value}-desc`,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:S.value}},type:"secondary"},{default:()=>[S.value]})]),g.value&&o.createVNode("div",{class:`${v.value}-extra`},[g.value])]),o.createVNode(De,{prefixCls:a.value},{default:()=>[m.value&&o.withDirectives(o.createVNode("div",{class:A(`${v.value}-content`)},[o.createVNode("div",{class:A(`${v.value}-content-box`,c.value.itemContent),style:u.value.itemContent},[m.value])]),[[o.vShow,w.value]])]}),b.value&&o.createVNode("div",{class:A(`${v.value}-footer`,c.value.itemFooter),style:u.value.itemFooter},[b.value])])}}),Bc=o.defineComponent({name:"AXThoughtChain",__name:"ThoughtChain",props:o.mergeDefaults({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"}),setup(e){const t=X(e,["prefixCls","rootClassName","class","items","collapsible","styles","style","classNames","size"]);o.toRef(e,"class"),o.toRef(e,"prefixCls");const n=o.computed(()=>Oe(t,{attr:!0,aria:!0,data:!0})),{getPrefixCls:r,direction:a}=W(),i=o.computed(()=>r()),l=o.computed(()=>r("thought-chain",e.prefixCls)),s=re("thoughtChain"),[c,u,d]=Ac(()=>e.collapsible,l.value,i.value),[f,p,h]=Vc(l),g=o.computed(()=>A(e.class,e.rootClassName,l.value,s.value.className,p.value,h,{[`${l.value}-rtl`]:a.value==="rtl"},`${l.value}-${e.size}`));return()=>f(o.createVNode("div",o.mergeProps(n.value,{class:g.value,style:{...typeof s.value.style=="object"?s.value.style:{},...typeof e.style=="object"?e.style:{}}}),[o.createVNode(jc,{value:{prefixCls:l.value,enableCollapse:c.value,expandedKeys:u.value,direction:a.value,classNames:{itemHeader:A(s.value.classNames.itemHeader,e.classNames.itemHeader),itemContent:A(s.value.classNames.itemContent,e.classNames.itemContent),itemFooter:A(s.value.classNames.itemFooter,e.classNames.itemFooter)},styles:{itemHeader:{...s.value.styles.itemHeader,...e.styles.itemHeader},itemContent:{...s.value.styles.itemContent,...e.styles.itemContent},itemFooter:{...s.value.styles.itemFooter,...e.styles.itemFooter}}}},{default:()=>{var m;return[(m=e.items)==null?void 0:m.map((b,x)=>{var S;return o.createVNode(zc,{key:b.key||`key_${x}`,class:A(s.value.classNames.item,e.classNames.item),style:{...s.value.styles.item,...e.styles.item},info:{...b,icon:b.icon||x+1},onClick:d,nextStatus:((S=e.items[x+1])==null?void 0:S.status)||b.status},null)})]}})]))}}),Fc=`
|
|
114
114
|
|
|
115
115
|
`,Dc=`
|
|
116
|
-
`,Xa=":",In=e=>(e??"").trim()!=="";function Xc(){let e="";return new TransformStream({transform(t,n){e+=t;const r=e.split(Fc);r.slice(0,-1).forEach(a=>{In(a)&&n.enqueue(a)}),e=r[r.length-1]},flush(t){In(e)&&t.enqueue(e)}})}function kc(){return new TransformStream({transform(e,t){const r=e.split(Dc).reduce((a,i)=>{const l=i.indexOf(Xa);if(l===-1)throw new Error(`The key-value separator "${Xa}" is not found in the sse line chunk!`);const s=i.slice(0,l);if(!In(s))return a;const c=i.slice(l+1);return{...a,[s]:c}},{});Object.keys(r).length!==0&&t.enqueue(r)}})}function Vn(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const r=new TextDecoderStream,a=n?t.pipeThrough(r).pipeThrough(n):t.pipeThrough(r).pipeThrough(Xc()).pipeThrough(kc());return a[Symbol.asyncIterator]=async function*(){const i=this.getReader();for(;;){const{done:l,value:s}=await i.read();if(l)break;s&&(yield s)}},a}const ka=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:r={},...a}=t;if(typeof n!="function")throw new Error("The options.fetch must be a typeof fetch function!");let i=[e,a];typeof r.onRequest=="function"&&(i=await r.onRequest(...i));let l=await n(...i);if(typeof r.onResponse=="function"){const s=await r.onResponse(l);if(!(s instanceof Response))throw new Error("The options.onResponse must return a Response instance!");l=s}if(!l.ok)throw new Error(`Fetch failed with status ${l.status}`);if(!l.body)throw new Error("The response body is empty.");return l},ve=class ve{constructor(t){this.create=async(l,s,c)=>{var
|
|
116
|
+
`,Xa=":",In=e=>(e??"").trim()!=="";function Xc(){let e="";return new TransformStream({transform(t,n){e+=t;const r=e.split(Fc);r.slice(0,-1).forEach(a=>{In(a)&&n.enqueue(a)}),e=r[r.length-1]},flush(t){In(e)&&t.enqueue(e)}})}function kc(){return new TransformStream({transform(e,t){const r=e.split(Dc).reduce((a,i)=>{const l=i.indexOf(Xa);if(l===-1)throw new Error(`The key-value separator "${Xa}" is not found in the sse line chunk!`);const s=i.slice(0,l);if(!In(s))return a;const c=i.slice(l+1);return{...a,[s]:c}},{});Object.keys(r).length!==0&&t.enqueue(r)}})}function Vn(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const r=new TextDecoderStream,a=n?t.pipeThrough(r).pipeThrough(n):t.pipeThrough(r).pipeThrough(Xc()).pipeThrough(kc());return a[Symbol.asyncIterator]=async function*(){const i=this.getReader();for(;;){const{done:l,value:s}=await i.read();if(l)break;s&&(yield s)}},a}const ka=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:r={},...a}=t;if(typeof n!="function")throw new Error("The options.fetch must be a typeof fetch function!");let i=[e,a];typeof r.onRequest=="function"&&(i=await r.onRequest(...i));let l=await n(...i);if(typeof r.onResponse=="function"){const s=await r.onResponse(l);if(!(s instanceof Response))throw new Error("The options.onResponse must return a Response instance!");l=s}if(!l.ok)throw new Error(`Fetch failed with status ${l.status}`);if(!l.body)throw new Error("The response body is empty.");return l},ve=class ve{constructor(t){this.create=async(l,s,c)=>{var f,p;const u=new AbortController,d={method:"POST",body:JSON.stringify({model:this.model,...l}),headers:this.defaultHeaders,signal:u.signal};(f=s==null?void 0:s.onStream)==null||f.call(s,u);try{const h=await ka(this.baseURL,{fetch:this.customOptions.fetch,...d});if(c){await this.customResponseHandler(h,s,c);return}const g=h.headers.get("content-type")||"";switch(g.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(h,s);break;case"application/json":await this.jsonResponseHandler(h,s);break;default:throw new Error(`The response content-type: ${g} is not support!`)}}catch(h){const g=h instanceof Error?h:new Error("Unknown error!");throw(p=s==null?void 0:s.onError)==null||p.call(s,g),g}},this.customResponseHandler=async(l,s,c)=>{var d,f;const u=[];for await(const p of Vn({readableStream:l.body,transformStream:c}))u.push(p),(d=s==null?void 0:s.onUpdate)==null||d.call(s,p);(f=s==null?void 0:s.onSuccess)==null||f.call(s,u)},this.sseResponseHandler=async(l,s)=>{var u,d;const c=[];for await(const f of Vn({readableStream:l.body}))c.push(f),(u=s==null?void 0:s.onUpdate)==null||u.call(s,f);(d=s==null?void 0:s.onSuccess)==null||d.call(s,c)},this.jsonResponseHandler=async(l,s)=>{var u,d;const c=await l.json();(u=s==null?void 0:s.onUpdate)==null||u.call(s,c),(d=s==null?void 0:s.onSuccess)==null||d.call(s,[c])};const{baseURL:n,model:r,dangerouslyApiKey:a,...i}=t;this.baseURL=t.baseURL,this.model=t.model,this.defaultHeaders={"Content-Type":"application/json",...t.dangerouslyApiKey&&{Authorization:t.dangerouslyApiKey}},this.customOptions=i}static init(t){if(!t.baseURL||typeof t.baseURL!="string")throw new Error("The baseURL is not valid!");const n=t.fetch||t.baseURL;return ve.instanceBuffer.has(n)||ve.instanceBuffer.set(n,new ve(t)),ve.instanceBuffer.get(n)}};ve.instanceBuffer=new Map;let Ln=ve;const Wa=Ln.init;let Ga=0;class qa{constructor(t){this.requestingMap=o.ref({}),this.request=(n,r,a)=>{const{request:i}=this.config,{onUpdate:l,onSuccess:s,onError:c,onStream:u}=r,d=Ga;Ga+=1,this.requestingMap.value[d]=!0,i==null||i(n,{onStream:f=>{this.requestingMap.value[d]&&(u==null||u(f))},onUpdate:f=>{this.requestingMap.value[d]&&l(f)},onSuccess:f=>{this.requestingMap.value[d]&&(s(f),this.finishRequest(d))},onError:f=>{this.requestingMap.value[d]&&(c(f),this.finishRequest(d))}},a)},this.config=t}finishRequest(t){delete this.requestingMap.value[t]}isRequesting(){return Object.keys(this.requestingMap.value).length>0}}function Wc(e){const{request:t,...n}=e;return[o.computed(()=>new qa({request:t||Wa({baseURL:n.baseURL,model:n.model,dangerouslyApiKey:n.dangerouslyApiKey}).create,...n}))]}function Gc(e,t){const n=o.ref(e);function r(a){const i=typeof a=="function"?a(n.value):a;i!==n.value&&t(i,n.value),n.value=i}return[n,r]}function qc(e){return Array.isArray(e)?e:[e]}function Uc(e){const{defaultMessages:t,agent:n,requestFallback:r,requestPlaceholder:a,parser:i,transformMessage:l,transformStream:s,resolveAbortController:c}=e,u=o.ref(0),d=o.computed(()=>(t||[]).map((v,C)=>({id:`default_${C}`,status:"local",...v}))),[f,p]=Gc(d.value,()=>{}),h=(v,C)=>{const $={id:`msg_${u.value}`,message:v,status:C};return u.value+=1,$},g=o.computed(()=>{const v=[];return f.value.forEach(C=>{const $=i?i(C.message):C.message,w=qc($);w.forEach((y,P)=>{let N=C.id;w.length>1&&(N=`${N}_${P}`),v.push({id:N,message:y,status:C.status})})}),v}),m=v=>v.filter(C=>C.status!=="loading"&&C.status!=="error").map(C=>C.message),b=()=>m(f.value),x=v=>typeof l=="function"?l(v):v.currentMessage;return{onRequest:rt(v=>{if(!n)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let C=null,$,w={};if(typeof v=="object"&&(v!=null&&v.message)){const{message:N,...T}=v;$=N,w=T}else $=v;p(N=>{let T=[...N,h($,"local")];if(a){let O;typeof a=="function"?O=a($,{messages:m(T)}):O=a;const E=h(O,"loading");C=E.id,T=[...T,E]}return T});let y=null;const P=(N,T)=>{let O=f.value.find(E=>E.id===y);return O?p(E=>E.map(I=>{if(I.id===y){const V=x({originMessage:I.message,currentMessage:N,status:T});return{...I,message:V,status:T}}return I})):(x({currentMessage:N,status:T}),O=h(N,T),p(E=>[...E.filter(V=>V.id!==C),O]),y=O.id),O};n.request({message:$,messages:b(),...w},{onUpdate:N=>{P(N,"loading")},onSuccess:N=>{P(N,"success")},onError:async N=>{if(r){let T;typeof r=="function"?T=await r($,{error:N,messages:b()}):T=r,p(O=>[...O.filter(E=>E.id!==C&&E.id!==y),h(T,"error")])}else p(T=>T.filter(O=>O.id!==C&&O.id!==y))},onStream:N=>{c==null||c(N)}},s)}),messages:f,parsedMessages:g,setMessages:p}}Object.defineProperty(L,"theme",{enumerable:!0,get:()=>R.theme}),L.Attachments=Oc,L.Bubble=al,L.BubbleList=Hr,L.Conversations=Is,L.Prompts=Na,L.Sender=lc,L.Suggestion=Gs,L.ThoughtChain=Bc,L.Welcome=zs,L.XAgent=qa,L.XFetch=ka,L.XProvider=oo,L.XRequest=Wa,L.XStream=Vn,L.defaultPrefixCls=Ja,L.useXAgent=Wc,L.useXChat=Uc,L.useXProviderContext=W,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
|