ant-design-x-vue 1.3.1 → 1.3.2

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/dist/index.umd.js CHANGED
@@ -286,7 +286,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
286
286
  ${c}:focus,
287
287
  &.picture ${c}
288
288
  `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${c}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${o}`]:{color:e.colorError},[s]:{[`${o}, ${o}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},fy=new me("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),py=new me("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),z5=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:fy},[`${n}-leave`]:{animationName:py}}},fy,py]},H5=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`${a}${a}-picture, ${a}${a}-picture-card`]:{[l]:{position:"relative",height:o+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:v(v({},Qt),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}}}}},_5=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,a=`${t}-list`,l=`${a}-item`,s=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:v(v({},Qo()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card`]:{[`${a}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Ce(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},W5=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},k5=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:v(v({},Ae(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},X5=Te("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:a}=e,l=Math.round(n*o),s=we(e,{uploadThumbnailSize:t*2,uploadProgressOffset:l/2+r,uploadPicCardSize:a*2.55});return[k5(s),j5(s),H5(s),_5(s),B5(s),z5(s),W5(s),Gs(s)]});var G5=function(e,t,n,o){function r(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function s(u){try{d(o.next(u))}catch(f){l(f)}}function c(u){try{d(o.throw(u))}catch(f){l(f)}}function d(u){u.done?a(u.value):r(u.value).then(s,c)}d((o=o.apply(e,t||[])).next())})},K5=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const Hr=`__LIST_IGNORE_${Date.now()}__`,Da=i.defineComponent({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:Ve(cy(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",supportServerRender:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const a=gr(),{prefixCls:l,direction:s,disabled:c}=ye("upload",e),[d,u]=X5(l),f=gn(),p=i.computed(()=>{var M;return(M=c.value)!==null&&M!==void 0?M:f.value}),[m,h]=tn(e.defaultFileList||[],{value:i.toRef(e,"fileList"),postState:M=>{const F=Date.now();return(M??[]).map((A,L)=>(!A.uid&&!Object.isFrozen(A)&&(A.uid=`__AUTO__${F}_${L}__`),A))}}),g=i.ref("drop"),y=i.ref(null);i.onMounted(()=>{ut(e.fileList!==void 0||o.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),ut(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),ut(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const b=(M,F,A)=>{var L,P;let N=[...F];e.maxCount===1?N=N.slice(-1):e.maxCount&&(N=N.slice(0,e.maxCount)),h(N);const D={file:M,fileList:N};A&&(D.event=A),(L=e["onUpdate:fileList"])===null||L===void 0||L.call(e,D.fileList),(P=e.onChange)===null||P===void 0||P.call(e,D),a.onFieldChange()},x=(M,F)=>G5(this,void 0,void 0,function*(){const{beforeUpload:A,transformFile:L}=e;let P=M;if(A){const N=yield A(M,F);if(N===!1)return!1;if(delete M[Hr],N===Hr)return Object.defineProperty(M,Hr,{value:!0,configurable:!0}),!1;typeof N=="object"&&N&&(P=N)}return L&&(P=yield L(P)),P}),S=M=>{const F=M.filter(P=>!P.file[Hr]);if(!F.length)return;const A=F.map(P=>Ma(P.file));let L=[...m.value];A.forEach(P=>{L=Va(P,L)}),A.forEach((P,N)=>{let D=P;if(F[N].parsedFile)P.status="uploading";else{const{originFileObj:V}=P;let R;try{R=new File([V],V.name,{type:V.type})}catch{R=new Blob([V],{type:V.type}),R.name=V.name,R.lastModifiedDate=new Date,R.lastModified=new Date().getTime()}R.uid=P.uid,D=R}b(D,L)})},$=(M,F,A)=>{try{typeof M=="string"&&(M=JSON.parse(M))}catch{}if(!fu(F,m.value))return;const L=Ma(F);L.status="done",L.percent=100,L.response=M,L.xhr=A;const P=Va(L,m.value);b(L,P)},w=(M,F)=>{if(!fu(F,m.value))return;const A=Ma(F);A.status="uploading",A.percent=M.percent;const L=Va(A,m.value);b(A,L,M)},O=(M,F,A)=>{if(!fu(A,m.value))return;const L=Ma(A);L.error=M,L.response=F,L.status="error";const P=Va(L,m.value);b(L,P)},C=M=>{let F;const A=e.onRemove||e.remove;Promise.resolve(typeof A=="function"?A(M):A).then(L=>{var P,N;if(L===!1)return;const D=T5(M,m.value);D&&(F=v(v({},M),{status:"removed"}),(P=m.value)===null||P===void 0||P.forEach(V=>{const R=F.uid!==void 0?"uid":"name";V[R]===F[R]&&!Object.isFrozen(V)&&(V.status="removed")}),(N=y.value)===null||N===void 0||N.abort(F),b(F,D))})},I=M=>{var F;g.value=M.type,M.type==="drop"&&((F=e.onDrop)===null||F===void 0||F.call(e,M))};r({onBatchStart:S,onSuccess:$,onProgress:w,onError:O,fileList:m,upload:y});const[T]=Xd("Upload",Vt.Upload,i.computed(()=>e.locale)),E=(M,F)=>{const{removeIcon:A,previewIcon:L,downloadIcon:P,previewFile:N,onPreview:D,onDownload:V,isImageUrl:R,progress:z,itemRender:_,iconRender:q,showUploadList:Q}=e,{showDownloadIcon:J,showPreviewIcon:U,showRemoveIcon:Z}=typeof Q=="boolean"?{}:Q;return Q?i.createVNode(L5,{prefixCls:l.value,listType:e.listType,items:m.value,previewFile:N,onPreview:D,onDownload:V,onRemove:C,showRemoveIcon:!p.value&&Z,showPreviewIcon:U,showDownloadIcon:J,removeIcon:A,previewIcon:L,downloadIcon:P,iconRender:q,locale:T.value,isImageUrl:R,progress:z,itemRender:_,appendActionVisible:F,appendAction:M},v({},n)):M==null?void 0:M()};return()=>{var M,F,A;const{listType:L,type:P}=e,{class:N,style:D}=o,V=K5(o,["class","style"]),R=v(v(v({onBatchStart:S,onError:O,onProgress:w,onSuccess:$},V),e),{id:(M=e.id)!==null&&M!==void 0?M:a.id.value,prefixCls:l.value,beforeUpload:x,onChange:void 0,disabled:p.value});delete R.remove,(!n.default||p.value)&&delete R.id;const z={[`${l.value}-rtl`]:s.value==="rtl"};if(P==="drag"){const J=ee(l.value,{[`${l.value}-drag`]:!0,[`${l.value}-drag-uploading`]:m.value.some(U=>U.status==="uploading"),[`${l.value}-drag-hover`]:g.value==="dragover",[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"},o.class,u.value);return d(i.createVNode("span",j(j({},o),{},{class:ee(`${l.value}-wrapper`,z,N,u.value)}),[i.createVNode("div",{class:J,onDrop:I,onDragover:I,onDragleave:I,style:o.style},[i.createVNode(iy,j(j({},R),{},{ref:y,class:`${l.value}-btn`}),j({default:()=>[i.createVNode("div",{class:`${l.value}-drag-container`},[(F=n.default)===null||F===void 0?void 0:F.call(n)])]},n))]),E()]))}const _=ee(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${L}`]:!0,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"}),q=Be((A=n.default)===null||A===void 0?void 0:A.call(n)),Q=J=>i.createVNode("div",{class:_,style:J},[i.createVNode(iy,j(j({},R),{},{ref:y}),n)]);return d(L==="picture-card"?i.createVNode("span",j(j({},o),{},{class:ee(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,z,o.class,u.value)}),[E(Q,!!(q&&q.length))]):i.createVNode("span",j(j({},o),{},{class:ee(`${l.value}-wrapper`,z,o.class,u.value)}),[Q(q&&q.length?void 0:{display:"none"}),E()]))}}});var my=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const mu=i.defineComponent({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:cy(),setup(e,t){let{slots:n,attrs:o}=t;return()=>{const{height:r}=e,a=my(e,["height"]),{style:l}=o,s=my(o,["style"]),c=v(v(v({},a),s),{type:"drag",style:v(v({},l),{height:typeof r=="number"?`${r}px`:r})});return i.createVNode(Da,c,n)}}}),gy=v(Da,{Dragger:mu,LIST_IGNORE:Hr,install(e){return e.component(Da.name,Da),e.component(mu.name,mu),e}});var U5={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 hy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){q5(e,r,n[r])})}return e}function q5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gu=function(t,n){var o=hy({},t,n.attrs);return i.createVNode(ae,hy({},o,{icon:U5}),null)};gu.displayName="ArrowUpOutlined",gu.inheritAttrs=!1;var Y5={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 vy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Z5(e,r,n[r])})}return e}function Z5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hu=function(t,n){var o=vy({},t,n.attrs);return i.createVNode(ae,vy({},o,{icon:Y5}),null)};hu.displayName="AudioMutedOutlined",hu.inheritAttrs=!1;var Q5={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 yy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){J5(e,r,n[r])})}return e}function J5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vu=function(t,n){var o=yy({},t,n.attrs);return i.createVNode(ae,yy({},o,{icon:Q5}),null)};vu.displayName="AudioOutlined",vu.inheritAttrs=!1;var eV={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 by(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){tV(e,r,n[r])})}return e}function tV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yu=function(t,n){var o=by({},t,n.attrs);return i.createVNode(ae,by({},o,{icon:eV}),null)};yu.displayName="ClearOutlined",yu.inheritAttrs=!1;var nV={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 wy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){oV(e,r,n[r])})}return e}function oV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bu=function(t,n){var o=wy({},t,n.attrs);return i.createVNode(ae,wy({},o,{icon:nV}),null)};bu.displayName="FileExcelFilled",bu.inheritAttrs=!1;var rV={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 Cy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){iV(e,r,n[r])})}return e}function iV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wu=function(t,n){var o=Cy({},t,n.attrs);return i.createVNode(ae,Cy({},o,{icon:rV}),null)};wu.displayName="FileImageFilled",wu.inheritAttrs=!1;var aV={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 Sy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){lV(e,r,n[r])})}return e}function lV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cu=function(t,n){var o=Sy({},t,n.attrs);return i.createVNode(ae,Sy({},o,{icon:aV}),null)};Cu.displayName="FileMarkdownFilled",Cu.inheritAttrs=!1;var sV={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 $y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){cV(e,r,n[r])})}return e}function cV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Su=function(t,n){var o=$y({},t,n.attrs);return i.createVNode(ae,$y({},o,{icon:sV}),null)};Su.displayName="FilePdfFilled",Su.inheritAttrs=!1;var uV={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 xy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){dV(e,r,n[r])})}return e}function dV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $u=function(t,n){var o=xy({},t,n.attrs);return i.createVNode(ae,xy({},o,{icon:uV}),null)};$u.displayName="FilePptFilled",$u.inheritAttrs=!1;var fV={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 Oy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){pV(e,r,n[r])})}return e}function pV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fa=function(t,n){var o=Oy({},t,n.attrs);return i.createVNode(ae,Oy({},o,{icon:fV}),null)};Fa.displayName="FileTextFilled",Fa.inheritAttrs=!1;var mV={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 Py(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){gV(e,r,n[r])})}return e}function gV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xu=function(t,n){var o=Py({},t,n.attrs);return i.createVNode(ae,Py({},o,{icon:mV}),null)};xu.displayName="FileWordFilled",xu.inheritAttrs=!1;var hV={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 Iy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){vV(e,r,n[r])})}return e}function vV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ou=function(t,n){var o=Iy({},t,n.attrs);return i.createVNode(ae,Iy({},o,{icon:hV}),null)};Ou.displayName="FileZipFilled",Ou.inheritAttrs=!1;const Ty=["wrap","nowrap","wrap-reverse"],Ny=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Ey=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],yV=(e,t)=>{const n={};return Ty.forEach(o=>{n[`${e}-wrap-${o}`]=t.wrap===o}),n},bV=(e,t)=>{const n={};return Ey.forEach(o=>{n[`${e}-align-${o}`]=t.align===o}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},wV=(e,t)=>{const n={};return Ny.forEach(o=>{n[`${e}-justify-${o}`]=t.justify===o}),n};function CV(e,t){return ee(v(v(v({},yV(e,t)),bV(e,t)),wV(e,t)))}const SV=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},$V=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},xV=e=>{const{componentCls:t}=e,n={};return Ty.forEach(o=>{n[`${t}-wrap-${o}`]={flexWrap:o}}),n},OV=e=>{const{componentCls:t}=e,n={};return Ey.forEach(o=>{n[`${t}-align-${o}`]={alignItems:o}}),n},PV=e=>{const{componentCls:t}=e,n={};return Ny.forEach(o=>{n[`${t}-justify-${o}`]={justifyContent:o}}),n},IV=Te("Flex",e=>{const t=we(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[SV(t),$V(t),xV(t),OV(t),PV(t)]});function Ry(e){return["small","middle","large"].includes(e)}const TV=()=>({prefixCls:Ne(),vertical:ve(),wrap:Ne(),justify:Ne(),align:Ne(),flex:He([Number,String]),gap:He([Number,String]),component:Fe()});var NV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const EV=i.defineComponent({name:"AFlex",inheritAttrs:!1,props:TV(),setup(e,t){let{slots:n,attrs:o}=t;const{flex:r,direction:a}=_o(),{prefixCls:l}=ye("flex",e),[s,c]=IV(l),d=i.computed(()=>{var u;return[l.value,c.value,CV(l.value,e),{[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-gap-${e.gap}`]:Ry(e.gap),[`${l.value}-vertical`]:(u=e.vertical)!==null&&u!==void 0?u:r==null?void 0:r.value.vertical}]});return()=>{var u;const{flex:f,gap:p,component:m="div"}=e,h=NV(e,["flex","gap","component"]),g={};return f&&(g.flex=f),p&&!Ry(p)&&(g.gap=`${p}px`),s(i.createVNode(m,j({class:[o.class,d.value],style:[o.style,g]},Oe(h,["justify","wrap","align","vertical"])),{default:()=>[(u=n.default)===null||u===void 0?void 0:u.call(n)]}))}}}),_r=Ut(EV),fn=(e,t)=>new Ce(e).setAlpha(t).toRgbString(),To=(e,t)=>new Ce(e).lighten(t).toHexString(),RV=e=>{const t=Ft(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},AV=(e,t)=>{const n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:fn(o,.85),colorTextSecondary:fn(o,.65),colorTextTertiary:fn(o,.45),colorTextQuaternary:fn(o,.25),colorFill:fn(o,.18),colorFillSecondary:fn(o,.12),colorFillTertiary:fn(o,.08),colorFillQuaternary:fn(o,.04),colorBgElevated:To(n,12),colorBgContainer:To(n,8),colorBgLayout:To(n,0),colorBgSpotlight:To(n,26),colorBorder:To(n,26),colorBorderSecondary:To(n,19)}},MV=(e,t)=>{const n=Object.keys($l).map(r=>{const a=Ft(e[r],{theme:"dark"});return new Array(10).fill(1).reduce((l,s,c)=>(l[`${r}-${c+1}`]=a[c],l),{})}).reduce((r,a)=>(r=v(v({},r),a),r),{}),o=t??bi(e);return v(v(v({},o),n),Lf(e,{generateColorPalettes:RV,generateNeutralColorPalettes:AV}))};function VV(e){const{sizeUnit:t,sizeStep:n}=e,o=n-2;return{sizeXXL:t*(o+10),sizeXL:t*(o+6),sizeLG:t*(o+2),sizeMD:t*(o+2),sizeMS:t*(o+1),size:t*o,sizeSM:t*o,sizeXS:t*(o-1),sizeXXS:t*(o-1)}}const DV=(e,t)=>{const n=t??bi(e),o=n.fontSizeSM,r=n.controlHeight-4;return v(v(v(v(v({},n),VV(t??e)),jf(o)),{controlHeight:r}),Ff(v(v({},n),{controlHeight:r})))};function FV(){const[e,t,n]=Cn();return{theme:e,token:t,hashId:n}}const No={defaultConfig:Si,defaultSeed:Si.token,useToken:FV,defaultAlgorithm:bi,darkAlgorithm:MV,compactAlgorithm:DV},Ay=i.defineComponent({name:"AXProvider",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=Xe(e,["attachments","bubble","conversations","prompts","sender","suggestion","thoughtChain","welcome"]),n=i.useSlots(),o=i.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:r}=ke(),a=i.computed(()=>({...(r==null?void 0:r.value)||{},...t.theme})),l=i.computed(()=>{var s;return(s=n.default)==null?void 0:s.call(n)});return()=>i.createVNode(d1,{value:o.value},{default:()=>[i.createVNode(Io,i.mergeProps(t,{theme:a.value}),{default:()=>[l.value]})]})}}),LV={classNames:{},styles:{},className:"",style:{}},pn=e=>{const t=u1();return i.computed(()=>({...LV,...i.unref(t)[e]}))};function Me(e){const t=typeof e=="function"?e():e,n=i.ref(t);function o(r){n.value=r}return[n,o]}function Bn(e){return typeof e=="string"}const jV=(e,t,n,o)=>{const[r,a]=Me(""),[l,s]=Me(1),c=i.computed(()=>t.value&&Bn(e.value));return i.watch(e,()=>{const u=i.unref(r);a(e.value),!c.value&&Bn(e.value)?s(e.value.length):Bn(e.value)&&Bn(u)&&e.value.indexOf(u)!==0&&s(1)},{immediate:!0}),i.watch([l,t,e],()=>{if(c.value&&Bn(e.value)&&i.unref(l)<e.value.length){const u=setTimeout(()=>{s(i.unref(l)+n.value)},o.value);i.onWatcherCleanup(()=>{clearTimeout(u)})}},{immediate:!0}),[i.computed(()=>c.value&&Bn(e.value)?e.value.slice(0,i.unref(l)):e.value),i.computed(()=>c.value&&Bn(e.value)&&i.unref(l)<e.value.length)]};function BV(e){const t=i.computed(()=>!!i.toValue(e)),n={step:1,interval:50,suffix:null},o=i.computed(()=>{const r=i.toValue(e);return{...n,...typeof r=="object"?r:{}}});return[t,i.computed(()=>o.value.step),i.computed(()=>o.value.interval),i.computed(()=>o.value.suffix)]}const zV=i.defineComponent({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup(e){return()=>i.createVNode("span",{class:`${e.prefixCls}-dot`},[i.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-1"},null),i.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-2"},null),i.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-3"},null)])}}),My="%";class HV{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(My):t)||null}update(t,n){const o=Array.isArray(t)?t.join(My):t,r=this.cache.get(o),a=n(r);a===null?this.cache.delete(o):this.cache.set(o,a)}}const Pu="data-token-hash",Xt="data-css-hash",Eo="__cssinjs_instance__";function Ro(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Xt}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(r=>{r[Eo]=r[Eo]||e,r[Eo]===e&&document.head.insertBefore(r,n)});const o={};Array.from(document.querySelectorAll(`style[${Xt}]`)).forEach(r=>{var l;const a=r.getAttribute(Xt);o[a]?r[Eo]===e&&((l=r.parentNode)==null||l.removeChild(r)):o[a]=!0})}return new HV(e)}const Vy=Symbol("StyleContextKey"),_V=()=>{var n,o,r;const e=i.getCurrentInstance();let t;if(e&&e.appContext){const a=(r=(o=(n=e.appContext)==null?void 0:n.config)==null?void 0:o.globalProperties)==null?void 0:r.__ANTDV_CSSINJS_CACHE__;a?t=a:(t=Ro(),e.appContext.config.globalProperties&&(e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=t))}else t=Ro();return t},Dy={cache:Ro(),defaultCache:!0,hashPriority:"low"},Ao=()=>{const e=_V();return i.inject(Vy,i.shallowRef({...Dy,cache:e}))},Iu=e=>{const t=Ao(),n=i.shallowRef({...Dy,cache:Ro()});return i.watch([()=>i.unref(e),t],()=>{const o={...t.value},r=i.unref(e);Object.keys(r).forEach(l=>{const s=r[l];r[l]!==void 0&&(o[l]=s)});const{cache:a}=r;o.cache=o.cache||Ro(),o.defaultCache=!a&&t.value.defaultCache,n.value=o},{immediate:!0}),i.provide(Vy,n),n},WV=()=>({autoClear:el(),mock:Cd(),cache:Mt(),defaultCache:el(),hashPriority:Cd(),container:s1(),ssrInline:el(),transformers:wd(),linters:wd()}),Tu=a1(i.defineComponent({name:"AXStyleProvider",inheritAttrs:!1,props:WV(),setup(e,{slots:t}){return Iu(e),()=>i.h(ow,e,()=>{var n;return(n=t.default)==null?void 0:n.call(t)})}})),kV={useStyleInject:Ao,useStyleProvider:Iu,StyleProvider:Tu};function Nu(e,t,n,o){const r=Ao(),a=i.shallowRef(""),l=i.shallowRef();i.watchEffect(()=>{a.value=[e,...t.value].join("%")});const s=c=>{r.value.cache.update(c,d=>{const[u=0,f]=d||[];return u-1===0?(o==null||o(f,!1),null):[u-1,f]})};return i.watch(a,(c,d)=>{d&&s(d),r.value.cache.update(c,u=>{const[f=0,p]=u||[],h=p||n();return[f+1,h]}),l.value=r.value.cache.get(a.value)[1]},{immediate:!0}),i.onBeforeUnmount(()=>{s(a.value)}),l}function Mo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function XV(e,t){return e&&e.contains?e.contains(t):!1}const Fy="data-vc-order",GV="vc-util-key",Eu=new Map;function Ly({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:GV}function La(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function KV(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function jy(e){return Array.from((Eu.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function By(e,t={}){if(!Mo())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(Fy,KV(o)),n!=null&&n.nonce&&(r.nonce=n==null?void 0:n.nonce),r.innerHTML=e;const a=La(t),{firstChild:l}=a;if(o){if(o==="queue"){const s=jy(a).filter(c=>["prepend","prependQueue"].includes(c.getAttribute(Fy)));if(s.length)return a.insertBefore(r,s[s.length-1].nextSibling),r}a.insertBefore(r,l)}else a.appendChild(r);return r}function zy(e,t={}){const n=La(t);return jy(n).find(o=>o.getAttribute(Ly(t))===e)}function Ru(e,t={}){const n=zy(e,t);n&&La(t).removeChild(n)}function UV(e,t){const n=Eu.get(e);if(!n||!XV(document,n)){const o=By("",t),{parentNode:r}=o;Eu.set(e,r),e.removeChild(o)}}function Au(e,t,n={}){var l,s,c;const o=La(n);UV(o,n);const r=zy(t,n);if(r)return(l=n.csp)!=null&&l.nonce&&r.nonce!==((s=n.csp)==null?void 0:s.nonce)&&(r.nonce=(c=n.csp)==null?void 0:c.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;const a=By(e,n);return a.setAttribute(Ly(n),t),a}function qV(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 Bo=class Bo{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let o={map:this.cache};return t.forEach(r=>{var a;o?o=(a=o==null?void 0:o.map)==null?void 0:a.get(r):o=void 0}),o!=null&&o.value&&n&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.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>Bo.MAX_CACHE_SIZE+Bo.MAX_CACHE_OFFSET){const[r]=this.keys.reduce((a,l)=>{const[,s]=a;return this.internalGet(l)[1]<s?[l,this.internalGet(l)[1]]:a},[this.keys[0],this.cacheCallTimes]);this.delete(r)}this.keys.push(t)}let o=this.cache;t.forEach((r,a)=>{if(a===t.length-1)o.set(r,{value:[n,this.cacheCallTimes++]});else{const l=o.get(r);l?l.map||(l.map=new Map):o.set(r,{map:new Map}),o=o.get(r).map}})}deleteByPath(t,n){var a;const o=t.get(n[0]);if(n.length===1)return o.map?t.set(n[0],{map:o.map}):t.delete(n[0]),(a=o.value)==null?void 0:a[0];const r=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(n[0]),r}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!qV(n,t)),this.deleteByPath(this.cache,t)}};Bo.MAX_CACHE_SIZE=20,Bo.MAX_CACHE_OFFSET=5;let Mu=Bo,Hy={};function YV(e,t){}function ZV(e,t,n){Hy[n]||(Hy[n]=!0)}function QV(e,t){ZV(YV,e,t)}function JV(){}let e7=JV;const t7=Symbol("WarningContext"),_y=i.shallowRef(),n7=e=>{i.provide(t7,e),i.watch(e,()=>{_y.value=i.unref(e),i.triggerRef(_y)},{immediate:!0,deep:!0})};i.defineComponent({props:{value:Mt()},setup(e,{slots:t}){return n7(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}});let Wy=0;class Vu{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=Wy,t.length===0&&e7(t.length>0),Wy+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}const Du=new Mu;function ky(e){const t=Array.isArray(e)?e:[e];return Du.has(t)||Du.set(t,new Vu(t)),Du.get(t)}const Xy=new WeakMap;function ja(e){let t=Xy.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof Vu?t+=o.id:o&&typeof o=="object"?t+=ja(o):t+=o}),Xy.set(e,t)),t}function o7(e,t){return qn(`${t}_${ja(e)}`)}const Gt=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),Fu="_bAmBoO_";function Lu(e,t,n){var o,r;if(Mo()){Au(e,Gt);const a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a);const l=n?n(a):(o=getComputedStyle(a).content)==null?void 0:o.includes(Fu);return(r=a.parentNode)==null||r.removeChild(a),Ru(Gt),l}return!1}let ju;function r7(){return ju===void 0&&(ju=Lu(`@layer ${Gt} { .${Gt} { content: "${Fu}"!important; } }`,e=>{e.className=Gt})),ju}let Bu;function i7(){return Bu===void 0&&(Bu=Lu(`:where(.${Gt}) { content: "${Fu}"!important; }`,e=>{e.className=Gt})),Bu}let zu;function a7(){return zu===void 0&&(zu=Lu(`.${Gt} { inset-block: 93px !important; }`,e=>{e.className=Gt},e=>getComputedStyle(e).bottom==="93px")),zu}const l7=Mo();function yt(e){return typeof e=="number"?`${e}px`:e}const Wr=(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(),s7=(e,t,n)=>Object.keys(e).length?`.${t}${n!=null&&n.scope?`.${n.scope}`:""}{${Object.entries(e).map(([o,r])=>`${o}:${r};`).join("")}}`:"",c7=(e,t,n)=>{const o={},r={};return Object.entries(e).forEach(([a,l])=>{var s,c,d;if((s=n==null?void 0:n.preserve)!=null&&s[a])r[a]=l;else if((typeof l=="string"||typeof l=="number")&&!((c=n==null?void 0:n.ignore)!=null&&c[a])){const u=Wr(a,n==null?void 0:n.prefix);o[u]=typeof l=="number"&&!((d=n==null?void 0:n.unitless)!=null&&d[a])?`${l}px`:String(l),r[a]=`var(${u})`}}),[r,s7(o,t,{scope:n==null?void 0:n.scope})]},Gy={},u7="css",zn=new Map;function d7(e){zn.set(e,(zn.get(e)||0)+1)}function f7(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Pu}="${e}"]`).forEach(o=>{var r;o[Eo]===t&&((r=o.parentNode)==null||r.removeChild(o))})}const p7=0;function m7(e,t){zn.set(e,(zn.get(e)||0)-1);const n=Array.from(zn.keys()),o=n.filter(r=>(zn.get(r)||0)<=0);n.length-o.length>p7&&o.forEach(r=>{f7(r,t),zn.delete(r)})}const g7=(e,t,n,o)=>{let a={...n==null?void 0:n.getDerivativeToken(e),...t};return o&&(a=o(a)),a};function Ky(e,t,n=i.ref({})){const o=Ao(),r=i.computed(()=>Object.assign({},...t.value||[])),a=i.computed(()=>ja(r.value)),l=i.computed(()=>{var c;return ja(((c=n.value)==null?void 0:c.override)||Gy)});return Nu("token",i.computed(()=>{var c,d;return[((c=n.value)==null?void 0:c.salt)||"",(d=e.value)==null?void 0:d.id,a.value,l.value]}),()=>{const{salt:c="",override:d=Gy,formatToken:u,getComputedToken:f}=n.value||{},p=f?f(r.value,d,e.value):g7(r.value,d,e.value,u),m=o7(p,c);p._tokenKey=m,d7(m);const h=`${u7}-${qn(m)}`;return p._hashId=h,[p,h]},c=>{var d;m7(c[0]._tokenKey,(d=o.value)==null?void 0:d.cache.instanceId)})}var Uy={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};function Vo(e,t){const{path:n,parentSelectors:o}=t;QV(!1,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${e}${o.length?` Selector info: ${o.join(" -> ")}`:""}`)}function h7(e){var o;return(((o=e.match(/:not\(([^)]*)\)/))==null?void 0:o[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter(r=>r).length>1}function v7(e){return e.parentSelectors.reduce((t,n)=>t?n.includes("&")?n.replace(/&/g,t):`${t} ${n}`:n,"")}const y7=(e,t,n)=>{const r=v7(n).match(/:not\([^)]*\)/g)||[];r.length>0&&r.some(h7)&&Vo("Concat ':not' selector not support in legacy browsers.",n)},b7=(e,t,n)=>{switch(e){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":Vo(`You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof t=="string"){const o=t.split(" ").map(r=>r.trim());o.length===4&&o[1]!==o[3]&&Vo(`You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n)}return;case"clear":case"textAlign":(t==="left"||t==="right")&&Vo(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return;case"borderRadius":typeof t=="string"&&t.split("/").map(a=>a.trim()).reduce((a,l)=>{if(a)return a;const s=l.split(" ").map(c=>c.trim());return s.length>=2&&s[0]!==s[1]||s.length===3&&s[1]!==s[2]||s.length===4&&s[2]!==s[3]?!0:a},!1)&&Vo(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return}},w7=(e,t,n)=>{n.parentSelectors.some(o=>o.split(",").some(a=>a.split("&").length>2))&&Vo("Should not use more than one `&` in a selector.",n)},kr="data-ant-cssinjs-cache-path",C7="_FILE_STYLE__";function S7(e){return Object.keys(e).map(t=>{const n=e[t];return`${t}:${n}`}).join(";")}let Hn,qy=!0;function $7(){var e;if(!Hn&&(Hn={},Mo())){const t=document.createElement("div");t.className=kr,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(r=>{const[a,l]=r.split(":");Hn[a]=l});const o=document.querySelector(`style[${kr}]`);o&&(qy=!1,(e=o.parentNode)==null||e.removeChild(o)),document.body.removeChild(t)}}function x7(e){return $7(),!!Hn[e]}function O7(e){const t=Hn[e];let n=null;if(t&&Mo())if(qy)n=C7;else{const o=document.querySelector(`style[${Xt}="${Hn[e]}"]`);o?n=o.innerHTML:delete Hn[e]}return[n,t]}const Yy=Mo(),P7="_skip_check_",Zy="_multi_value_";function Hu(e){return pi(hf(e),bf).replace(/\{%%%\:[^;];}/g,";")}function I7(e){return typeof e=="object"&&e&&(P7 in e||Zy in e)}function T7(e,t,n){if(!t)return e;const o=`.${t}`,r=n==="low"?`:where(${o})`:o;return e.split(",").map(l=>{var u;const s=l.trim().split(/\s+/);let c=s[0]||"";const d=((u=c.match(/^\w+/))==null?void 0:u[0])||"";return c=`${d}${r}${c.slice(d.length)}`,[c,...s.slice(1)].join(" ")}).join(",")}const Qy=new Set,_u=(e,t={},{root:n,injectHash:o,parentSelectors:r}={root:!0,parentSelectors:[]})=>{const{hashId:a,layer:l,path:s,hashPriority:c,transformers:d=[],linters:u=[]}=t;let f="",p={};function m(y){const b=y.getName(a);if(!p[b]){const[x]=_u(y.style,t,{root:!1,parentSelectors:r});p[b]=`@keyframes ${y.getName(a)}${x}`}}function h(y,b=[]){return y.forEach(x=>{Array.isArray(x)?h(x,b):x&&b.push(x)}),b}return h(Array.isArray(e)?e:[e]).forEach(y=>{const b=typeof y=="string"&&!n?{}:y;if(typeof b=="string")f+=`${b}
289
- `;else if(b._keyframe)m(b);else{const x=d.reduce((S,$)=>{var w;return((w=$==null?void 0:$.visit)==null?void 0:w.call($,S))||S},b);Object.keys(x).forEach(S=>{const $=x[S];if(typeof $=="object"&&$&&(S!=="animationName"||!$._keyframe)&&!I7($)){let w=!1,O=S.trim(),C=!1;(n||o)&&a?O.startsWith("@")?w=!0:O=T7(S,a,c):n&&!a&&(O==="&"||O==="")&&(O="",C=!0);const[I,T]=_u($,t,{root:C,injectHash:w,parentSelectors:[...r,O]});p={...p,...T},f+=`${O}${I}`}else{let w=function(C,I){const T=C.replace(/[A-Z]/g,M=>`-${M.toLowerCase()}`);let E=I;!Uy[C]&&typeof E=="number"&&E!==0&&(E=`${E}px`),C==="animationName"&&(I!=null&&I._keyframe)&&(m(I),E=I.getName(a)),f+=`${T}:${E};`};const O=($==null?void 0:$.value)??$;typeof $=="object"&&($!=null&&$[Zy])&&Array.isArray(O)?O.forEach(C=>{w(S,C)}):w(S,O)}})}}),n?l&&r7():f=`{${f}}`,[f,p]};function Jy(e,t){return qn(`${e.join("%")}${t}`)}function Wu(e,t){const n=Ao(),o=i.computed(()=>{var l;return(l=e.value)==null?void 0:l.token._tokenKey}),r=i.computed(()=>{var l;return[o.value,...((l=e.value)==null?void 0:l.path)||[]]});let a=Yy;return Nu("style",r,()=>{const{path:l,hashId:s,layer:c,nonce:d,clientOnly:u,order:f=0}=e.value||{},p=r.value.join("|");if(x7(p)){const[C,I]=O7(p);if(C)return[C,o.value,I,{},u,f]}const m=t(),{hashPriority:h,container:g,transformers:y,linters:b,cache:x}=n.value,[S,$]=_u(m,{hashId:s,hashPriority:h,layer:c,path:l==null?void 0:l.join("-"),transformers:y,linters:b}),w=Hu(S),O=Jy(r.value,w);if(a){const C={mark:Xt,prepend:"queue",attachTo:g},I=typeof d=="function"?d():d;I&&(C.csp={nonce:I});const T=Au(w,O,C);T[Eo]=x.instanceId,T.setAttribute(Pu,o.value),Object.keys($).forEach(E=>{Qy.has(E)||(Qy.add(E),Au(Hu($[E]),`_effect-${E}`,{mark:Xt,prepend:"queue",attachTo:g}))})}return[w,o.value,O,$,u,f]},([,,l],s)=>{(s||n.value.autoClear)&&Yy&&Ru(l,{mark:Xt})}),l=>l}function N7(e,t=!1){const n="style%",o=Array.from(e.cache.keys()).filter(d=>d.startsWith(n)),r={},a={};let l="";function s(d,u,f,p={}){const m={...p,[Pu]:u,[Xt]:f},h=Object.keys(m).map(g=>{const y=m[g];return y?`${g}="${y}"`:null}).filter(g=>g).join(" ");return t?d:`<style ${h}>${d}</style>`}return o.map(d=>{const u=d.slice(n.length).replace(/%/g,"|"),[f,p,m,h,g,y]=e.cache.get(d)[1];if(g)return null;const b={"data-vc-order":"prependQueue","data-vc-priority":`${y}`};let x=s(f,p,m,b);return a[u]=m,h&&Object.keys(h).forEach($=>{r[$]||(r[$]=!0,x+=s(Hu(h[$]),p,`_effect-${$}`,b))}),[y,x]}).filter(d=>d).sort((d,u)=>d[0]-u[0]).forEach(([,d])=>{l+=d}),l+=s(`.${kr}{content:"${S7(a)}";}`,void 0,void 0,{[kr]:kr}),l}const E7="cssVar",eb=(e,t)=>{const{key:n,prefix:o,unitless:r,ignore:a,token:l,scope:s=""}=e,{cache:{instanceId:c},container:d}=useContext(kV),{_tokenKey:u}=l,f=[...e.path,n,s,u];return Nu(E7,f,()=>{const m=t(),[h,g]=c7(m,n,{prefix:o,unitless:r,ignore:a,scope:s}),y=Jy(f,g);return[h,g,y,n]},([,,m])=>{l7&&Ru(m,{mark:Xt})})};class ku{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function R7(e){if(typeof e=="number")return[e];const t=String(e).split(/\s+/);let n="",o=0;return t.reduce((r,a)=>(a.includes("(")?(n+=a,o+=a.split("(").length-1):a.includes(")")?(n+=` ${a}`,o-=a.split(")").length-1,o===0&&(r.push(n),n="")):o>0?n+=` ${a}`:r.push(a),r),[])}function Do(e){return e.notSplit=!0,e}const A7={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Do(["borderTop","borderBottom"]),borderBlockStart:Do(["borderTop"]),borderBlockEnd:Do(["borderBottom"]),borderInline:Do(["borderLeft","borderRight"]),borderInlineStart:Do(["borderLeft"]),borderInlineEnd:Do(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Ba(e){return{_skip_check_:!0,value:e}}const M7={visit:e=>{const t={};return Object.keys(e).forEach(n=>{const o=e[n],r=A7[n];if(r&&(typeof o=="number"||typeof o=="string")){const a=R7(o);r.length&&r.notSplit?r.forEach(l=>{t[l]=Ba(o)}):r.length===1?t[r[0]]=Ba(o):r.length===2?r.forEach((l,s)=>{t[l]=Ba(a[s]??a[0])}):r.length===4?r.forEach((l,s)=>{t[l]=Ba(a[s]??a[s-2]??a[0])}):t[n]=o}else t[n]=o}),t}},Xu=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function V7(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return Math.round(o/10)*10/n}const D7=(e={})=>{const{rootValue:t=16,precision:n=5,mediaQuery:o=!1}=e,r=(l,s)=>{if(!s)return l;const c=parseFloat(s);return c<=1?l:`${V7(c/t,n)}rem`};return{visit:l=>{const s={...l};return Object.entries(l).forEach(([c,d])=>{if(typeof d=="string"&&d.includes("px")){const f=d.replace(Xu,r);s[c]=f}!Uy[c]&&typeof d=="number"&&d!==0&&(s[c]=`${d}px`.replace(Xu,r));const u=c.trim();if(u.startsWith("@")&&u.includes("px")&&o){const f=c.replace(Xu,r);s[f]=s[c],delete s[c]}}),s}}},F7={StyleProvider:Tu},L7={supportModernCSS:()=>i7()&&a7()};class tb{}const nb="CALC_UNIT",j7=new RegExp(nb,"g");function Gu(e){return typeof e=="number"?`${e}${nb}`:e}class _n extends tb{constructor(t,n){super(),this.result="";const o=typeof t;this.unitlessCssVar=n,t instanceof _n?this.result=`(${t.result})`:o==="number"?this.result=Gu(t):o==="string"&&(this.result=t)}add(t){return t instanceof _n?this.result=`${this.result} + ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} + ${Gu(t)}`),this.lowPriority=!0,this}sub(t){return t instanceof _n?this.result=`${this.result} - ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} - ${Gu(t)}`),this.lowPriority=!0,this}mul(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof _n?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 _n?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 o=!0;return typeof n=="boolean"?o=n:Array.from(this.unitlessCssVar).some(r=>this.result.includes(r))&&(o=!1),this.result=this.result.replace(j7,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class Wn extends tb{constructor(t){super(),this.result=0,t instanceof Wn?this.result=t.result:typeof t=="number"&&(this.result=t)}add(t){return t instanceof Wn?this.result+=t.result:typeof t=="number"&&(this.result+=t),this}sub(t){return t instanceof Wn?this.result-=t.result:typeof t=="number"&&(this.result-=t),this}mul(t){return t instanceof Wn?this.result*=t.result:typeof t=="number"&&(this.result*=t),this}div(t){return t instanceof Wn?this.result/=t.result:typeof t=="number"&&(this.result/=t),this}equal(){return this.result}}const B7=(e,t)=>{const n=e==="css"?_n:Wn;return o=>new n(o,t)},ob=(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 rb(e,t={},n,o){const r={...t[e]};if(o!=null&&o.deprecatedTokens){const{deprecatedTokens:l}=o;l.forEach(([s,c])=>{(r!=null&&r[s]||r!=null&&r[c])&&(r[c]??(r[c]=r==null?void 0:r[s]))})}const a={...n,...r};return Object.keys(a).forEach(l=>{a[l]===t[l]&&delete a[l]}),a}const ib=typeof CSSINJS_STATISTIC<"u";let Ku=!0;function At(...e){if(!ib)return Object.assign({},...e);Ku=!1;const t={};return e.forEach(n=>{if(typeof n!="object")return;Object.keys(n).forEach(r=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!0,get:()=>n[r]})})}),Ku=!0,t}const ab={};function z7(){}const H7=e=>{let t,n=e,o=z7;return ib&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(r,a){return Ku&&(t==null||t.add(a)),r[a]}}),o=(r,a)=>{var l;ab[r]={global:Array.from(t),component:{...(l=ab[r])==null?void 0:l.component,...a}}}),{token:n,keys:t,flush:o}};function lb(e,t={},n){return typeof n=="function"?n(At(t,t[e]??{})):n??{}}function _7(e){return e==="js"?{max:Math.max,min:Math.min}:{max:(...t)=>`max(${t.map(n=>yt(n)).join(",")})`,min:(...t)=>`min(${t.map(n=>yt(n)).join(",")})`}}const W7=1e3*60*10;class k7{constructor(){zo(this,"map",new Map);zo(this,"objectIDMap",new WeakMap);zo(this,"nextID",0);zo(this,"lastAccessBeat",new Map);zo(this,"accessBeat",0)}set(t,n){this.clear();const o=this.getCompositeKey(t);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}get(t){const n=this.getCompositeKey(t),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}getCompositeKey(t){return t.map(o=>o&&typeof o=="object"?`obj_${this.getObjectID(o)}`:`${typeof o}_${o}`).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,o)=>{t-n>W7&&(this.map.delete(o),this.lastAccessBeat.delete(o))}),this.accessBeat=0}}}const sb=new k7;function X7(e,t){return i.computed(()=>{const n=sb.get(t);if(n)return n;const o=e();return sb.set(t,o),o})}const G7=()=>({});function K7(e){const{useCSP:t=G7,useToken:n,usePrefix:o,getResetStyles:r,getCommonStyle:a,getCompUnitless:l}=e;function s(f,p,m,h){const g=Array.isArray(f)?f[0]:f;function y(C){return`${String(g)}${C.slice(0,1).toUpperCase()}${C.slice(1)}`}const b=(h==null?void 0:h.unitless)||{},S={...typeof l=="function"?l(f):{},[y("zIndexPopup")]:!0};Object.keys(b).forEach(C=>{S[y(C)]=b[C]});const $={...h,unitless:S,prefixToken:y},w=d(f,p,m,$),O=c(g,m,$);return(C,I=i.toValue(C))=>{const[,T]=w(i.toValue(C),I),[E,M]=O(I);return[E,T,M]}}function c(f,p,m){const{unitless:h,injectStyle:g=!0,prefixToken:y,ignore:b}=m,x=({rootCls:$,cssVar:w={}})=>{const{realToken:O}=n();return eb({path:[f],prefix:w.prefix,key:w.key,unitless:h,ignore:b,token:O,scope:$},()=>{const C=lb(f,O,p),I=rb(f,O,C,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(C).forEach(T=>{I[y(T)]=I[T],delete I[T]}),I}),null};return $=>{const{cssVar:w}=n();return[O=>g&&w?i.createVNode(i.Fragment,null,[i.createVNode(x,{rootCls:$,cssVar:w,component:f},null),O]):O,w==null?void 0:w.key]}}function d(f,p,m,h={}){const g=Array.isArray(f)?f:[f,f],[y]=g,b=g.join("-"),x=e.layer||{name:"antd"};return(S,$=S)=>{const{theme:w,realToken:O,hashId:C,token:I,cssVar:T}=n(),{rootPrefixCls:E,iconPrefixCls:M}=o(),F=t(),A=T?"css":"js",L=i.unref(X7(()=>{const R=new Set;return T&&Object.keys(h.unitless||{}).forEach(z=>{R.add(Wr(z,T.prefix)),R.add(Wr(z,ob(y,T.prefix)))}),B7(A,R)},[A,y,T==null?void 0:T.prefix])),{max:P,min:N}=_7(A),D=i.computed(()=>({theme:w.value,token:I.value,hashId:C.value,nonce:()=>F.nonce,clientOnly:h.clientOnly,layer:x,order:h.order||-999}));return typeof r=="function"&&Wu(i.computed(()=>({...D.value,clientOnly:!1,path:["Shared",E]})),()=>r(I.value,{prefix:{rootPrefixCls:E,iconPrefixCls:M},csp:F})),[Wu(i.computed(()=>({...D.value,path:[b,S,M]})),()=>{if(h.injectStyle===!1)return[];const{token:R,flush:z}=H7(I),_=lb(y,O,m),q=`.${S}`,Q=rb(y,O,_,{deprecatedTokens:h.deprecatedTokens});T&&_&&typeof _=="object"&&Object.keys(_).forEach(H=>{_[H]=`var(${Wr(H,ob(y,T.prefix))})`});const J=i.computed(()=>At(R.value,{componentCls:q,prefixCls:S,iconCls:`.${M}`,antCls:`.${E}`,calc:L,max:P,min:N},T?_:Q)),U=i.computed(()=>p(J.value,{hashId:C.value,prefixCls:S,rootPrefixCls:E,iconPrefixCls:M}));z(y,Q);const Z=typeof a=="function"?a(J.value,S,$,h.resetFont):null;return[h.resetStyle===!1?null:Z,U.value]}),C]}}function u(f,p,m,h={}){const g=d(f,p,m,{resetStyle:!1,order:-998,...h});return({prefixCls:b,rootCls:x=b})=>(g(b,x),null)}return{genStyleHooks:s,genSubStyleComponent:u,genComponentStyleHook:d}}const U7={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},q7={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},Y7="1.0.3",Z7=ky(No.defaultAlgorithm),Q7={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},cb=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r,...a}=t;let l={...o,override:r};return l=Bf(l),a&&Object.entries(a).forEach(([s,c])=>{const{theme:d,...u}=c;let f=u;d&&(f=cb({...l,...u},{override:u},d)),l[s]=f}),l};function J7(){const{token:e,hashId:t,theme:n}=No.useToken(),o=i.computed(()=>({token:e.value,hashed:t.value,theme:n.value})),{override:r,cssVar:a}=i.unref(o),l=i.computed(()=>o.value.token),s=i.computed(()=>o.value.hashed),c=i.computed(()=>o.value.theme??Z7),d=Ky(i.computed(()=>c.value),i.computed(()=>[No.defaultSeed,l.value]),i.computed(()=>({salt:`${Y7}-${s.value||""}`,override:r,getComputedToken:cb,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:q7,ignore:U7,preserve:Q7}}))),[u,f,p]=i.unref(d),m=i.computed(()=>d.value[0]),h=i.computed(()=>s.value?d.value[1]:"");return[c,p,h,m,a]}const{genStyleHooks:mn}=K7({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=ke();return{iconPrefixCls:i.unref(t),rootPrefixCls:e()}},useToken:()=>{const[e,t,n,o,r]=J7();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:e}=ke();return(e==null?void 0:e.value)??{}},layer:{name:"antdx",dependencies:["antd"]}}),eD=e=>{const{componentCls:t,paddingSM:n,padding:o}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${yt(n)} ${yt(o)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},tD=e=>{const{componentCls:t,fontSize:n,lineHeight:o,paddingSM:r,padding:a,calc:l}=e,s=l(n).mul(o).div(2).add(r).equal(),c=`${t}-content`;return{[t]:{[c]:{"&-round":{borderRadius:{_skip_check_:!0,value:s},paddingInline:l(a).mul(1.25).equal()}},[`&-start ${c}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${c}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},nD=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`}}}},oD=new ku("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),rD=new ku("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),iD=e=>{const{componentCls:t,fontSize:n,lineHeight:o,paddingSM:r,colorText:a,calc:l}=e;return{[t]:{display:"flex",columnGap:r,[`&${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:rD,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:o,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:r},[`& ${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:a,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:l(r).mul(2).add(l(o).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${yt(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:oD,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},ub=mn("Bubble",e=>{const t=At(e,{});return[iD(t),nD(t),eD(t),tD(t)]},()=>({})),db=Symbol("BubbleContext"),Uu=i.shallowRef(),aD=e=>{i.provide(db,e),i.watch(e,()=>{Uu.value=i.unref(e),i.triggerRef(Uu)},{immediate:!0,deep:!0})},lD=()=>i.inject(db,i.computed(()=>Uu.value||{})),sD=i.defineComponent({props:{value:Mt()},setup(e,{slots:t}){return aD(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),fb=i.defineComponent({name:"AXBubble",__name:"Bubble",props:i.mergeDefaults({prefixCls:null,rootClassName:null,styles:null,classNames:null,avatar:{type:Function},placement:null,loading:{type:Boolean},typing:null,content:null,messageRender:{type:Function},loadingRender:{type:Function},variant:null,shape:null,_key:null,onTypingComplete:null,header:null,footer:null},{classNames:()=>({}),styles:()=>({}),placement:"start",loading:!1,content:"",variant:"filled"}),setup(e,{expose:t}){const n=Xe(e,["prefixCls","rootClassName","classNames","styles","avatar","placement","loading","loadingRender","typing","content","messageRender","variant","shape","onTypingComplete","header","footer","_key"]);i.toRef(e,"content"),i.toRef(e,"prefixCls");const o=i.useSlots(),r=i.ref(e.content);i.watch(()=>e.content,()=>{r.value=e.content});const{onUpdate:a}=i.unref(lD()),l=i.ref(null),{direction:s,getPrefixCls:c}=ke(),d=c("bubble",e.prefixCls),u=pn("bubble"),[f,p,m,h]=BV(()=>e.typing),[g,y]=jV(r,f,p,m),b=i.ref(!1);i.watch(g,()=>{a==null||a()}),i.watchEffect(()=>{var M;!y.value&&!e.loading?b.value||(b.value=!0,(M=e.onTypingComplete)==null||M.call(e)):b.value=!1});const[x,S,$]=ub(()=>d),w=i.computed(()=>[d,e.rootClassName,u.value.className,S.value,$,`${d}-${e.placement}`,{[`${d}-rtl`]:s.value==="rtl"},{[`${d}-typing`]:y.value&&!e.loading&&!e.messageRender&&!o.message&&!h.value}]),O=M=>Array.isArray(M)&&M.every(i.isVNode),C=i.computed(()=>o.avatar?o.avatar():typeof e.avatar=="function"?e.avatar():i.isVNode(e.avatar)||O(e.avatar)?e.avatar:i.createVNode(Rn,e.avatar,null)),I=i.computed(()=>o.message?o.message({content:g.value}):e.messageRender?e.messageRender(g.value):g.value),T=i.computed(()=>e.loading?o.loading?o.loading():e.loadingRender?e.loadingRender():i.createVNode(zV,{prefixCls:d},null):i.createVNode(i.Fragment,null,[I.value,y.value&&i.toValue(h)])),E=i.computed(()=>{const M=i.createVNode("div",{style:{...u.value.styles.content,...e.styles.content},class:[`${d}-content`,`${d}-content-${e.variant}`,{[`${d}-content-${e.shape}`]:e.shape},u.value.classNames.content,e.classNames.content]},[i.toValue(T)]),F=o.header?o.header({content:g.value,info:{key:e._key}}):typeof e.header=="function"?e.header(g.value,{key:e._key}):e.header,A=o.footer?o.footer({content:g.value,info:{key:e._key}}):typeof e.footer=="function"?e.footer(g.value,{key:e._key}):e.footer;return F||A?i.createVNode("div",{class:`${d}-content-wrapper`},[F&&i.createVNode("div",{class:[`${d}-header`,u.value.classNames.header,e.classNames.header],style:{...u.value.styles.header,...e.styles.header}},[F]),M,A&&i.createVNode("div",{class:[`${d}-footer`,u.value.classNames.footer,e.classNames.footer],style:{...u.value.styles.footer,...e.styles.footer}},[A])]):M});return t({nativeElement:l}),()=>x(i.createVNode("div",i.mergeProps({style:{...u.value.style},class:i.toValue(w)},n,{ref:l}),[(o.avatar||e.avatar)&&i.createVNode("div",{style:{...u.value.styles.avatar,...e.styles.avatar},class:[`${d}-avatar`,u.value.classNames.avatar,e.classNames.avatar]},[i.toValue(C)]),i.toValue(E)]))}});var qu={exports:{}};/*!
289
+ `;else if(b._keyframe)m(b);else{const x=d.reduce((S,$)=>{var w;return((w=$==null?void 0:$.visit)==null?void 0:w.call($,S))||S},b);Object.keys(x).forEach(S=>{const $=x[S];if(typeof $=="object"&&$&&(S!=="animationName"||!$._keyframe)&&!I7($)){let w=!1,O=S.trim(),C=!1;(n||o)&&a?O.startsWith("@")?w=!0:O=T7(S,a,c):n&&!a&&(O==="&"||O==="")&&(O="",C=!0);const[I,T]=_u($,t,{root:C,injectHash:w,parentSelectors:[...r,O]});p={...p,...T},f+=`${O}${I}`}else{let w=function(C,I){const T=C.replace(/[A-Z]/g,M=>`-${M.toLowerCase()}`);let E=I;!Uy[C]&&typeof E=="number"&&E!==0&&(E=`${E}px`),C==="animationName"&&(I!=null&&I._keyframe)&&(m(I),E=I.getName(a)),f+=`${T}:${E};`};const O=($==null?void 0:$.value)??$;typeof $=="object"&&($!=null&&$[Zy])&&Array.isArray(O)?O.forEach(C=>{w(S,C)}):w(S,O)}})}}),n?l&&r7():f=`{${f}}`,[f,p]};function Jy(e,t){return qn(`${e.join("%")}${t}`)}function Wu(e,t){const n=Ao(),o=i.computed(()=>{var l;return(l=e.value)==null?void 0:l.token._tokenKey}),r=i.computed(()=>{var l;return[o.value,...((l=e.value)==null?void 0:l.path)||[]]});let a=Yy;return Nu("style",r,()=>{const{path:l,hashId:s,layer:c,nonce:d,clientOnly:u,order:f=0}=e.value||{},p=r.value.join("|");if(x7(p)){const[C,I]=O7(p);if(C)return[C,o.value,I,{},u,f]}const m=t(),{hashPriority:h,container:g,transformers:y,linters:b,cache:x}=n.value,[S,$]=_u(m,{hashId:s,hashPriority:h,layer:c,path:l==null?void 0:l.join("-"),transformers:y,linters:b}),w=Hu(S),O=Jy(r.value,w);if(a){const C={mark:Xt,prepend:"queue",attachTo:g},I=typeof d=="function"?d():d;I&&(C.csp={nonce:I});const T=Au(w,O,C);T[Eo]=x.instanceId,T.setAttribute(Pu,o.value),Object.keys($).forEach(E=>{Qy.has(E)||(Qy.add(E),Au(Hu($[E]),`_effect-${E}`,{mark:Xt,prepend:"queue",attachTo:g}))})}return[w,o.value,O,$,u,f]},([,,l],s)=>{(s||n.value.autoClear)&&Yy&&Ru(l,{mark:Xt})}),l=>l}function N7(e,t=!1){const n="style%",o=Array.from(e.cache.keys()).filter(d=>d.startsWith(n)),r={},a={};let l="";function s(d,u,f,p={}){const m={...p,[Pu]:u,[Xt]:f},h=Object.keys(m).map(g=>{const y=m[g];return y?`${g}="${y}"`:null}).filter(g=>g).join(" ");return t?d:`<style ${h}>${d}</style>`}return o.map(d=>{const u=d.slice(n.length).replace(/%/g,"|"),[f,p,m,h,g,y]=e.cache.get(d)[1];if(g)return null;const b={"data-vc-order":"prependQueue","data-vc-priority":`${y}`};let x=s(f,p,m,b);return a[u]=m,h&&Object.keys(h).forEach($=>{r[$]||(r[$]=!0,x+=s(Hu(h[$]),p,`_effect-${$}`,b))}),[y,x]}).filter(d=>d).sort((d,u)=>d[0]-u[0]).forEach(([,d])=>{l+=d}),l+=s(`.${kr}{content:"${S7(a)}";}`,void 0,void 0,{[kr]:kr}),l}const E7="cssVar",eb=(e,t)=>{const{key:n,prefix:o,unitless:r,ignore:a,token:l,scope:s=""}=e,{cache:{instanceId:c},container:d}=useContext(kV),{_tokenKey:u}=l,f=[...e.path,n,s,u];return Nu(E7,f,()=>{const m=t(),[h,g]=c7(m,n,{prefix:o,unitless:r,ignore:a,scope:s}),y=Jy(f,g);return[h,g,y,n]},([,,m])=>{l7&&Ru(m,{mark:Xt})})};class ku{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function R7(e){if(typeof e=="number")return[e];const t=String(e).split(/\s+/);let n="",o=0;return t.reduce((r,a)=>(a.includes("(")?(n+=a,o+=a.split("(").length-1):a.includes(")")?(n+=` ${a}`,o-=a.split(")").length-1,o===0&&(r.push(n),n="")):o>0?n+=` ${a}`:r.push(a),r),[])}function Do(e){return e.notSplit=!0,e}const A7={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Do(["borderTop","borderBottom"]),borderBlockStart:Do(["borderTop"]),borderBlockEnd:Do(["borderBottom"]),borderInline:Do(["borderLeft","borderRight"]),borderInlineStart:Do(["borderLeft"]),borderInlineEnd:Do(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Ba(e){return{_skip_check_:!0,value:e}}const M7={visit:e=>{const t={};return Object.keys(e).forEach(n=>{const o=e[n],r=A7[n];if(r&&(typeof o=="number"||typeof o=="string")){const a=R7(o);r.length&&r.notSplit?r.forEach(l=>{t[l]=Ba(o)}):r.length===1?t[r[0]]=Ba(o):r.length===2?r.forEach((l,s)=>{t[l]=Ba(a[s]??a[0])}):r.length===4?r.forEach((l,s)=>{t[l]=Ba(a[s]??a[s-2]??a[0])}):t[n]=o}else t[n]=o}),t}},Xu=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function V7(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return Math.round(o/10)*10/n}const D7=(e={})=>{const{rootValue:t=16,precision:n=5,mediaQuery:o=!1}=e,r=(l,s)=>{if(!s)return l;const c=parseFloat(s);return c<=1?l:`${V7(c/t,n)}rem`};return{visit:l=>{const s={...l};return Object.entries(l).forEach(([c,d])=>{if(typeof d=="string"&&d.includes("px")){const f=d.replace(Xu,r);s[c]=f}!Uy[c]&&typeof d=="number"&&d!==0&&(s[c]=`${d}px`.replace(Xu,r));const u=c.trim();if(u.startsWith("@")&&u.includes("px")&&o){const f=c.replace(Xu,r);s[f]=s[c],delete s[c]}}),s}}},F7={StyleProvider:Tu},L7={supportModernCSS:()=>i7()&&a7()};class tb{}const nb="CALC_UNIT",j7=new RegExp(nb,"g");function Gu(e){return typeof e=="number"?`${e}${nb}`:e}class _n extends tb{constructor(t,n){super(),this.result="";const o=typeof t;this.unitlessCssVar=n,t instanceof _n?this.result=`(${t.result})`:o==="number"?this.result=Gu(t):o==="string"&&(this.result=t)}add(t){return t instanceof _n?this.result=`${this.result} + ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} + ${Gu(t)}`),this.lowPriority=!0,this}sub(t){return t instanceof _n?this.result=`${this.result} - ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} - ${Gu(t)}`),this.lowPriority=!0,this}mul(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof _n?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 _n?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 o=!0;return typeof n=="boolean"?o=n:Array.from(this.unitlessCssVar).some(r=>this.result.includes(r))&&(o=!1),this.result=this.result.replace(j7,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class Wn extends tb{constructor(t){super(),this.result=0,t instanceof Wn?this.result=t.result:typeof t=="number"&&(this.result=t)}add(t){return t instanceof Wn?this.result+=t.result:typeof t=="number"&&(this.result+=t),this}sub(t){return t instanceof Wn?this.result-=t.result:typeof t=="number"&&(this.result-=t),this}mul(t){return t instanceof Wn?this.result*=t.result:typeof t=="number"&&(this.result*=t),this}div(t){return t instanceof Wn?this.result/=t.result:typeof t=="number"&&(this.result/=t),this}equal(){return this.result}}const B7=(e,t)=>{const n=e==="css"?_n:Wn;return o=>new n(o,t)},ob=(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 rb(e,t={},n,o){const r={...t[e]};if(o!=null&&o.deprecatedTokens){const{deprecatedTokens:l}=o;l.forEach(([s,c])=>{(r!=null&&r[s]||r!=null&&r[c])&&(r[c]??(r[c]=r==null?void 0:r[s]))})}const a={...n,...r};return Object.keys(a).forEach(l=>{a[l]===t[l]&&delete a[l]}),a}const ib=typeof CSSINJS_STATISTIC<"u";let Ku=!0;function At(...e){if(!ib)return Object.assign({},...e);Ku=!1;const t={};return e.forEach(n=>{if(typeof n!="object")return;Object.keys(n).forEach(r=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!0,get:()=>n[r]})})}),Ku=!0,t}const ab={};function z7(){}const H7=e=>{let t,n=e,o=z7;return ib&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(r,a){return Ku&&(t==null||t.add(a)),r[a]}}),o=(r,a)=>{var l;ab[r]={global:Array.from(t),component:{...(l=ab[r])==null?void 0:l.component,...a}}}),{token:n,keys:t,flush:o}};function lb(e,t={},n){return typeof n=="function"?n(At(t,t[e]??{})):n??{}}function _7(e){return e==="js"?{max:Math.max,min:Math.min}:{max:(...t)=>`max(${t.map(n=>yt(n)).join(",")})`,min:(...t)=>`min(${t.map(n=>yt(n)).join(",")})`}}const W7=1e3*60*10;class k7{constructor(){zo(this,"map",new Map);zo(this,"objectIDMap",new WeakMap);zo(this,"nextID",0);zo(this,"lastAccessBeat",new Map);zo(this,"accessBeat",0)}set(t,n){this.clear();const o=this.getCompositeKey(t);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}get(t){const n=this.getCompositeKey(t),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}getCompositeKey(t){return t.map(o=>o&&typeof o=="object"?`obj_${this.getObjectID(o)}`:`${typeof o}_${o}`).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,o)=>{t-n>W7&&(this.map.delete(o),this.lastAccessBeat.delete(o))}),this.accessBeat=0}}}const sb=new k7;function X7(e,t){return i.computed(()=>{const n=sb.get(t);if(n)return n;const o=e();return sb.set(t,o),o})}const G7=()=>({});function K7(e){const{useCSP:t=G7,useToken:n,usePrefix:o,getResetStyles:r,getCommonStyle:a,getCompUnitless:l}=e;function s(f,p,m,h){const g=Array.isArray(f)?f[0]:f;function y(C){return`${String(g)}${C.slice(0,1).toUpperCase()}${C.slice(1)}`}const b=(h==null?void 0:h.unitless)||{},S={...typeof l=="function"?l(f):{},[y("zIndexPopup")]:!0};Object.keys(b).forEach(C=>{S[y(C)]=b[C]});const $={...h,unitless:S,prefixToken:y},w=d(f,p,m,$),O=c(g,m,$);return(C,I=i.toValue(C))=>{const[,T]=w(i.toValue(C),I),[E,M]=O(I);return[E,T,M]}}function c(f,p,m){const{unitless:h,injectStyle:g=!0,prefixToken:y,ignore:b}=m,x=({rootCls:$,cssVar:w={}})=>{const{realToken:O}=n();return eb({path:[f],prefix:w.prefix,key:w.key,unitless:h,ignore:b,token:O,scope:$},()=>{const C=lb(f,O,p),I=rb(f,O,C,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(C).forEach(T=>{I[y(T)]=I[T],delete I[T]}),I}),null};return $=>{const{cssVar:w}=n();return[O=>g&&w?i.createVNode(i.Fragment,null,[i.createVNode(x,{rootCls:$,cssVar:w,component:f},null),O]):O,w==null?void 0:w.key]}}function d(f,p,m,h={}){const g=Array.isArray(f)?f:[f,f],[y]=g,b=g.join("-"),x=e.layer||{name:"antd"};return(S,$=S)=>{const{theme:w,realToken:O,hashId:C,token:I,cssVar:T}=n(),{rootPrefixCls:E,iconPrefixCls:M}=o(),F=t(),A=T?"css":"js",L=i.unref(X7(()=>{const R=new Set;return T&&Object.keys(h.unitless||{}).forEach(z=>{R.add(Wr(z,T.prefix)),R.add(Wr(z,ob(y,T.prefix)))}),B7(A,R)},[A,y,T==null?void 0:T.prefix])),{max:P,min:N}=_7(A),D=i.computed(()=>({theme:w.value,token:I.value,hashId:C.value,nonce:()=>F.nonce,clientOnly:h.clientOnly,layer:x,order:h.order||-999}));return typeof r=="function"&&Wu(i.computed(()=>({...D.value,clientOnly:!1,path:["Shared",E]})),()=>r(I.value,{prefix:{rootPrefixCls:E,iconPrefixCls:M},csp:F})),[Wu(i.computed(()=>({...D.value,path:[b,S,M]})),()=>{if(h.injectStyle===!1)return[];const{token:R,flush:z}=H7(I),_=lb(y,O,m),q=`.${S}`,Q=rb(y,O,_,{deprecatedTokens:h.deprecatedTokens});T&&_&&typeof _=="object"&&Object.keys(_).forEach(H=>{_[H]=`var(${Wr(H,ob(y,T.prefix))})`});const J=i.computed(()=>At(R.value,{componentCls:q,prefixCls:S,iconCls:`.${M}`,antCls:`.${E}`,calc:L,max:P,min:N},T?_:Q)),U=i.computed(()=>p(J.value,{hashId:C.value,prefixCls:S,rootPrefixCls:E,iconPrefixCls:M}));z(y,Q);const Z=typeof a=="function"?a(J.value,S,$,h.resetFont):null;return[h.resetStyle===!1?null:Z,U.value]}),C]}}function u(f,p,m,h={}){const g=d(f,p,m,{resetStyle:!1,order:-998,...h});return({prefixCls:b,rootCls:x=b})=>(g(b,x),null)}return{genStyleHooks:s,genSubStyleComponent:u,genComponentStyleHook:d}}const U7={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},q7={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},Y7="1.0.3",Z7=ky(No.defaultAlgorithm),Q7={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},cb=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r,...a}=t;let l={...o,override:r};return l=Bf(l),a&&Object.entries(a).forEach(([s,c])=>{const{theme:d,...u}=c;let f=u;d&&(f=cb({...l,...u},{override:u},d)),l[s]=f}),l};function J7(){const{token:e,hashId:t,theme:n}=No.useToken(),o=i.computed(()=>({token:e.value,hashed:t.value,theme:n.value})),{override:r,cssVar:a}=i.unref(o),l=i.computed(()=>o.value.token),s=i.computed(()=>o.value.hashed),c=i.computed(()=>o.value.theme??Z7),d=Ky(i.computed(()=>c.value),i.computed(()=>[No.defaultSeed,l.value]),i.computed(()=>({salt:`${Y7}-${s.value||""}`,override:r,getComputedToken:cb,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:q7,ignore:U7,preserve:Q7}}))),[u,f,p]=i.unref(d),m=i.computed(()=>d.value[0]),h=i.computed(()=>s.value?d.value[1]:"");return[c,p,h,m,a]}const{genStyleHooks:mn}=K7({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=ke();return{iconPrefixCls:i.unref(t),rootPrefixCls:e()}},useToken:()=>{const[e,t,n,o,r]=J7();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:e}=ke();return(e==null?void 0:e.value)??{}},layer:{name:"antdx",dependencies:["antd"]}}),eD=e=>{const{componentCls:t,paddingSM:n,padding:o}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${yt(n)} ${yt(o)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},tD=e=>{const{componentCls:t,fontSize:n,lineHeight:o,paddingSM:r,padding:a,calc:l}=e,s=l(n).mul(o).div(2).add(r).equal(),c=`${t}-content`;return{[t]:{[c]:{"&-round":{borderRadius:{_skip_check_:!0,value:s},paddingInline:l(a).mul(1.25).equal()}},[`&-start ${c}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${c}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},nD=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`}}}},oD=new ku("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),rD=new ku("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),iD=e=>{const{componentCls:t,fontSize:n,lineHeight:o,paddingSM:r,colorText:a,calc:l}=e;return{[t]:{display:"flex",columnGap:r,[`&${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:rD,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:o,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:r},[`& ${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:a,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:l(r).mul(2).add(l(o).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${yt(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:oD,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},ub=mn("Bubble",e=>{const t=At(e,{});return[iD(t),nD(t),eD(t),tD(t)]},()=>({})),db=Symbol("BubbleContext"),Uu=i.shallowRef(),aD=e=>{i.provide(db,e),i.watch(e,()=>{Uu.value=i.unref(e),i.triggerRef(Uu)},{immediate:!0,deep:!0})},lD=()=>i.inject(db,i.computed(()=>Uu.value||{})),sD=i.defineComponent({props:{value:Mt()},setup(e,{slots:t}){return aD(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),fb=i.defineComponent({name:"AXBubble",__name:"Bubble",props:{prefixCls:{},rootClassName:{},styles:{default:()=>({})},classNames:{default:()=>({})},avatar:{},placement:{default:"start"},loading:{type:Boolean,default:!1},typing:{},content:{default:""},messageRender:{},loadingRender:{},variant:{default:"filled"},shape:{},_key:{},onTypingComplete:{},header:{},footer:{}},setup(e,{expose:t}){const n=Xe(e,["prefixCls","rootClassName","classNames","styles","avatar","placement","loading","loadingRender","typing","content","messageRender","variant","shape","onTypingComplete","header","footer","_key"]);i.toRef(e,"content"),i.toRef(e,"prefixCls");const o=i.useSlots(),r=i.ref(e.content);i.watch(()=>e.content,()=>{r.value=e.content});const{onUpdate:a}=i.unref(lD()),l=i.ref(null),{direction:s,getPrefixCls:c}=ke(),d=c("bubble",e.prefixCls),u=pn("bubble"),[f,p,m,h]=BV(()=>e.typing),[g,y]=jV(r,f,p,m),b=i.ref(!1);i.watch(g,()=>{a==null||a()}),i.watchEffect(()=>{var M;!y.value&&!e.loading?b.value||(b.value=!0,(M=e.onTypingComplete)==null||M.call(e)):b.value=!1});const[x,S,$]=ub(()=>d),w=i.computed(()=>[d,e.rootClassName,u.value.className,S.value,$,`${d}-${e.placement}`,{[`${d}-rtl`]:s.value==="rtl"},{[`${d}-typing`]:y.value&&!e.loading&&!e.messageRender&&!o.message&&!h.value}]),O=M=>Array.isArray(M)&&M.every(i.isVNode),C=i.computed(()=>o.avatar?o.avatar():typeof e.avatar=="function"?e.avatar():i.isVNode(e.avatar)||O(e.avatar)?e.avatar:i.createVNode(Rn,e.avatar,null)),I=i.computed(()=>o.message?o.message({content:g.value}):e.messageRender?e.messageRender(g.value):g.value),T=i.computed(()=>e.loading?o.loading?o.loading():e.loadingRender?e.loadingRender():i.createVNode(zV,{prefixCls:d},null):i.createVNode(i.Fragment,null,[I.value,y.value&&i.toValue(h)])),E=i.computed(()=>{const M=i.createVNode("div",{style:{...u.value.styles.content,...e.styles.content},class:[`${d}-content`,`${d}-content-${e.variant}`,{[`${d}-content-${e.shape}`]:e.shape},u.value.classNames.content,e.classNames.content]},[i.toValue(T)]),F=o.header?o.header({content:g.value,info:{key:e._key}}):typeof e.header=="function"?e.header(g.value,{key:e._key}):e.header,A=o.footer?o.footer({content:g.value,info:{key:e._key}}):typeof e.footer=="function"?e.footer(g.value,{key:e._key}):e.footer;return F||A?i.createVNode("div",{class:`${d}-content-wrapper`},[F&&i.createVNode("div",{class:[`${d}-header`,u.value.classNames.header,e.classNames.header],style:{...u.value.styles.header,...e.styles.header}},[F]),M,A&&i.createVNode("div",{class:[`${d}-footer`,u.value.classNames.footer,e.classNames.footer],style:{...u.value.styles.footer,...e.styles.footer}},[A])]):M});return t({nativeElement:l}),()=>x(i.createVNode("div",i.mergeProps({style:{...u.value.style},class:i.toValue(w)},n,{ref:l}),[(o.avatar||e.avatar)&&i.createVNode("div",{style:{...u.value.styles.avatar,...e.styles.avatar},class:[`${d}-avatar`,u.value.classNames.avatar,e.classNames.avatar]},[i.toValue(C)]),i.toValue(E)]))}});var qu={exports:{}};/*!
290
290
  Copyright (c) 2018 Jed Watson.
291
291
  Licensed under the MIT License (MIT), see
292
292
  http://jedwatson.github.io/classnames
@@ -307,7 +307,7 @@ summary tabindex target title type usemap value width wmode wrap onCopy onCut on
307
307
  onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
308
308
  onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
309
309
  onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
310
- onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),dD="aria-",fD="data-";function gb(e,t){return e.indexOf(t)===0}function Fo(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const o={};return Object.keys(e).forEach(r=>{(n.aria&&(r==="role"||gb(r,dD))||n.data&&gb(r,fD)||n.attr&&(mb.includes(r)||mb.includes(r.toLowerCase())))&&(o[r]=e[r])}),o}function pD(e){const[t,n]=Me(e.value.length),o=i.computed(()=>e.value.slice(0,i.unref(t))),r=i.computed(()=>{const l=i.unref(o)[i.unref(o).length-1];return l?l.key:null});i.watch(e,()=>{var l;if(n(e.value.length),!(i.unref(o).length&&i.unref(o).every((s,c)=>{var d;return s.key===((d=e.value[c])==null?void 0:d.key)}))){if(i.unref(o).length===0)n(1);else for(let s=0;s<i.unref(o).length;s+=1)if(i.unref(o)[s].key!==((l=e.value[s])==null?void 0:l.key)){n(s);break}}},{immediate:!0,deep:!0});const a=za(l=>{l===i.unref(r)&&n(i.unref(t)+1)});return[o,a]}function mD(e,t){const n=(r,a)=>{var l;return typeof t.value=="function"?t.value(r,a):t?((l=t.value)==null?void 0:l[r.role])||{}:{}};return i.computed(()=>(e.value||[]).map((r,a)=>{const l=r.key??`preset_${a}`;return{...n(r,a),...r,key:l}}))}const gD=1,Xr=i.defineComponent({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:i.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(e,{expose:t}){const n=Xe(e,["prefixCls","rootClassName","items","autoScroll","roles"]);i.toRef(e,"roles"),i.toRef(e,"items"),i.toRef(e,"prefixCls");const o=i.useAttrs(),r=i.useSlots(),a=i.computed(()=>Fo(i.mergeProps(n,o),{attr:!0,aria:!0})),l=i.ref(e.items),s=i.ref(e.roles);i.watch(()=>e.items,()=>{l.value=e.items}),i.watch(()=>e.roles,()=>{s.value=e.roles});const c=i.ref(null),d=i.ref({}),{getPrefixCls:u}=ke(),f=u("bubble",e.prefixCls),p=`${f}-list`,[m,h,g]=ub(f),[y,b]=Me(!1);i.watchPostEffect(()=>{b(!0),i.onWatcherCleanup(()=>{b(!1)})});const x=mD(l,s),[S,$]=pD(x),[w,O]=Me(!0),[C,I]=Me(0),T=F=>{const A=F.target;O(A.scrollHeight-Math.abs(A.scrollTop)-A.clientHeight<=gD)};i.watch(C,()=>{e.autoScroll&&i.unref(c)&&i.unref(w)&&i.nextTick(()=>{i.unref(c).scrollTo({top:i.unref(c).scrollHeight})})}),i.watch(()=>i.unref(S).length,()=>{var F;if(e.autoScroll){const A=(F=i.unref(S)[i.unref(S).length-2])==null?void 0:F.key,L=i.unref(d)[A];if(L){const{nativeElement:P}=L,{top:N=0,bottom:D=0}=(P==null?void 0:P.getBoundingClientRect())??{},{top:V,bottom:R}=i.unref(c).getBoundingClientRect();N<R&&D>V&&(I(i.unref(C)+1),O(!0))}}});const E=za(()=>{e.autoScroll&&I(i.unref(C)+1)}),M=i.computed(()=>({onUpdate:E}));return t({nativeElement:c,scrollTo:({key:F,offset:A,behavior:L="smooth",block:P})=>{if(typeof A=="number")i.unref(c).scrollTo({top:A,behavior:L});else if(F!==void 0){const N=i.unref(d)[F];if(N){const D=i.unref(S).findIndex(V=>V.key===F);O(D===i.unref(S).length-1),N.nativeElement.scrollIntoView({behavior:L,block:P})}}}}),()=>m(i.createVNode(sD,{value:M.value},{default:()=>[i.createVNode("div",i.mergeProps(a.value,{class:le(p,e.rootClassName,h.value,g,{[`${p}-reach-end`]:w.value}),ref:c,onScroll:T}),[i.renderList(i.unref(S),({key:F,onTypingComplete:A,...L})=>{var P,N,D;return i.createVNode(fb,i.mergeProps(L,{avatar:r.avatar?()=>{var V;return(V=r.avatar)==null?void 0:V.call(r,{item:{key:F,...L}})}:L.avatar,header:((P=r.header)==null?void 0:P.call(r,{item:{key:F,...L}}))??L.header,footer:((N=r.footer)==null?void 0:N.call(r,{item:{key:F,...L}}))??L.footer,loadingRender:r.loading?()=>r.loading({item:{key:F,...L}}):L.loadingRender,content:((D=r.message)==null?void 0:D.call(r,{item:{key:F,...L}}))??L.content,key:F,ref:V=>{V?d.value[F]=V:delete d.value[F]},typing:y.value?L.typing:!1,onTypingComplete:()=>{A==null||A(),$(F)}}),null)})])]}))}}),Gr=Object.assign(fb,{List:Xr});Gr.install=function(e){return e.component(Gr.name,Gr),e.component(Xr.name,Xr),e};const hD=i.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=Xe(e,["prefixCls","info","class","direction","onClick","active","menu"]);i.toRef(e,"class");const n=i.computed(()=>Fo(t,{aria:!0,data:!0,attr:!0})),o=y=>{y.stopPropagation()},r=i.computed(()=>e.info.disabled),[a,l]=Me(!1),[s,c]=Me(!1),d=i.computed(()=>le(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!r.value},{[`${e.prefixCls}-item-disabled`]:r.value})),u=()=>{!r.value&&e.onClick&&e.onClick(e.info)},f=y=>{y&&c(!y)},p=i.computed(()=>{var y;return(y=e.menu)==null?void 0:y.trigger}),m=i.computed(()=>{const{trigger:y,...b}=e.menu||{};return b}),h=i.computed(()=>{var y;return(y=m.value)==null?void 0:y.getPopupContainer}),g=y=>{const b=i.createVNode(Cr,{onClick:o,class:`${e.prefixCls}-menu-icon`},null);return p.value?typeof p.value=="function"?p.value(y,{originNode:b}):p.value:b};return()=>i.createVNode(Ot,{title:e.info.label,open:a.value&&s.value,onOpenChange:c,placement:e.direction==="rtl"?"left":"right"},{default:()=>[i.createVNode("li",i.mergeProps(n.value,{class:d.value,onClick:u}),[e.info.icon&&i.createVNode("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),i.createVNode(Ie.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:l}},{default:()=>[e.info.label]}),!r.value&&e.menu&&i.createVNode(An,{placement:e.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:r.value,onOpenChange:f,getPopupContainer:h.value},{default:()=>g(e.info),overlay:()=>i.createVNode(sn,m.value,null)})])]})}}),hb=Symbol("GroupTitleContext"),Yu=i.shallowRef(),vD=e=>{i.provide(hb,e),i.watch(e,()=>{Yu.value=i.unref(e),i.triggerRef(Yu)},{immediate:!0,deep:!0})},yD=()=>i.inject(hb,i.computed(()=>Yu.value||{})),bD=i.defineComponent({props:{value:Mt()},setup(e,{slots:t}){return vD(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),vb=i.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=i.useSlots(),n=yD(),o=i.computed(()=>{var r;return(r=t.default)==null?void 0:r.call(t)});return()=>i.createVNode("div",{class:le(`${n.value.prefixCls}-group-title`)},[o.value&&i.createVNode(Ie.Text,null,{default:()=>[o.value]})])}});function yb(e,t){const{defaultValue:n,value:o=i.ref()}=t||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=i.unref(o)),n!==void 0&&(r=typeof n=="function"?n():n);const a=i.ref(r),l=i.ref(r);i.watchEffect(()=>{let c=o.value!==void 0?o.value:a.value;t.postState&&(c=t.postState(c)),l.value=c});function s(c){const d=l.value;a.value=c,i.toRaw(l.value)!==c&&t.onChange&&t.onChange(c,d)}return i.watch(o,()=>{a.value=o.value}),[l,s]}const Zu="__ungrouped",wD=(e,t=[])=>{const n=i.computed(()=>{if(!i.toValue(e))return{enableGroup:!1,sort:void 0,title:void 0};let o={sort:void 0,title:void 0};return typeof i.toValue(e)=="object"&&(o={...o,...i.toValue(e)}),{enableGroup:!0,sort:o.sort,title:o.title}});return i.computed(()=>{if(!n.value.enableGroup)return{groupList:[{name:Zu,data:i.toValue(t),title:void 0}],enableGroup:n.value.enableGroup};const o=i.toValue(t).reduce((l,s)=>{const c=s.group||Zu;return l[c]||(l[c]=[]),l[c].push(s),l},{});return{groupList:(n.value.sort?Object.keys(o).sort(n.value.sort):Object.keys(o)).map(l=>({name:l===Zu?void 0:l,title:n.value.title,data:o[l]})),enableGroup:n.value.enableGroup}})},CD=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 ${yt(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 ${yt(e.paddingXS)}`}}}},SD=mn("Conversations",e=>{const t=At(e,{});return CD(t)},()=>({})),bb=i.defineComponent({name:"AXConversations",__name:"Conversations",props:i.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=Xe(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);i.toRef(e,"class"),i.toRef(e,"activeKey"),i.toRef(e,"prefixCls");const n=i.ref(e.activeKey),o=i.computed(()=>Fo(t,{attr:!0,aria:!0,data:!0})),[r,a]=yb(e.defaultActiveKey,{value:n});i.watch(()=>e.activeKey,()=>{n.value=e.activeKey});const l=wD(()=>e.groupable,()=>e.items),{getPrefixCls:s,direction:c}=ke(),d=i.computed(()=>s("conversations",e.prefixCls)),u=pn("conversations"),[f,p,m]=SD(d),h=i.computed(()=>le(d.value,u.value.className,e.class,e.rootClassName,p.value,m,{[`${d.value}-rtl`]:c.value==="rtl"})),g=y=>{a(y.key),e.onActiveChange&&e.onActiveChange(y.key)};return()=>f(i.createVNode("ul",i.mergeProps(o.value,{style:{...typeof u.value.style=="object"?u.value.style:{},...typeof e.style=="object"?e.style:{}},class:h.value}),[l.value.groupList.map((y,b)=>{const x=y.data.map((S,$)=>i.createVNode(hD,{key:S.key||`key-${$}`,info:S,prefixCls:d.value,direction:c.value,class:le(e.classNames.item,u.value.classNames.item),style:{...u.value.styles.item,...e.styles.item},menu:typeof e.menu=="function"?e.menu(S):e.menu,active:r.value===S.key,onClick:g},null));return l.value.enableGroup?i.createVNode("li",{key:y.name||`key-${b}`},[i.createVNode(bD,{value:{prefixCls:d.value}},{default:()=>{var S;return[((S=y.title)==null?void 0:S.call(y,y.name,{components:{GroupTitle:vb}}))||i.createVNode(vb,{key:y.name},{default:()=>[y.name]})]}}),i.createVNode("ul",{class:`${d.value}-list`},[x])]):x})]))}}),$D=e=>{const{componentCls:t,calc:n}=e,o=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),r=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(o).add(r).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"}}}}},xD=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}}}}},OD=mn("Welcome",e=>{const t=At(e,{});return[$D(t),xD(t)]},()=>({}));function PD(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const wb=i.defineComponent({name:"AXWelcome",__name:"Welcome",props:i.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){i.toRef(e,"prefixCls");const t=i.useSlots(),{direction:n,getPrefixCls:o}=ke(),r=o("welcome",e.prefixCls),a=pn("welcome"),[l,s,c]=OD(r),d=i.computed(()=>{const m=t.icon?t.icon():typeof e.icon=="function"?e.icon():e.icon;if(!m)return null;let h=m;return typeof m=="string"&&m.startsWith("http")&&(h=i.createVNode("img",{src:m,alt:"icon"},null)),i.createVNode("div",{class:le(`${r}-icon`,a.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[h])}),u=i.computed(()=>{const m=t.title?t.title():typeof e.title=="function"?e.title():e.title;return m?i.createVNode(Ie.Title,{level:4,class:le(`${r}-title`,a.value.classNames.title,e.classNames.title),style:e.styles.title},PD(m)?m:{default:()=>[m]}):null}),f=i.computed(()=>t.description?t.description():typeof e.description=="function"?e.description():e.description),p=i.computed(()=>{const m=t.extra?t.extra():typeof e.extra=="function"?e.extra():e.extra;return m?i.createVNode("div",{class:le(`${r}-extra`,a.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[m]):null});return()=>l(i.createVNode(_r,{class:le(r,a.value.className,e.className,e.rootClassName,s.value,c,`${r}-${e.variant}`,{[`${r}-rtl`]:n.value==="rtl"}),style:e.style},{default:()=>[d.value,i.createVNode(_r,{vertical:!0,class:`${r}-content-wrapper`},{default:()=>[t.extra||e.extra?i.createVNode(_r,{align:"flex-start",class:`${r}-title-wrapper`},{default:()=>[u.value,p.value]}):u.value,f.value&&i.createVNode(Ie.Text,{class:le(`${r}-description`,a.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[f.value]})]})]}))}}),ID=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:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-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:`${yt(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}}}}}},TD=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}}}}},ND=mn("Prompts",e=>{const t=At(e,{});return[ID(t),TD(t)]},()=>({})),Lo=i.defineComponent({name:"AXPrompts",__name:"Prompts",props:i.mergeDefaults({items:null,title:{type:Function},onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=Xe(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);i.toRef(e,"class"),i.toRef(e,"prefixCls");const n=i.useSlots(),{getPrefixCls:o,direction:r}=ke(),a=o("prompts",e.prefixCls),l=pn("prompts"),[s,c,d]=ND(a),u=i.computed(()=>le(a,l.value.className,e.class,e.rootClassName,c.value,d,{[`${a}-rtl`]:r.value==="rtl"})),f=i.computed(()=>le(`${a}-list`,l.value.classNames.list,e.classNames.list,{[`${a}-list-wrap`]:e.wrap},{[`${a}-list-vertical`]:e.vertical})),p=i.computed(()=>n.title?n.title():typeof e.title=="function"?e.title():e.title);return()=>{var m;return s(i.createVNode("div",i.mergeProps(t,{class:u.value,style:{...typeof e.style=="object"?e.style:{},...typeof l.value.style=="object"?l.value.style:{}}}),[p.value&&i.createVNode(Ie.Title,{level:5,class:le(`${a}-title`,l.value.classNames.title,e.classNames.title),style:{...l.value.styles.title,...e.styles.title}},{default:()=>[p.value]}),i.createVNode("div",{class:f.value,style:{...l.value.styles.list,...e.styles.list}},[(m=e.items)==null?void 0:m.map((h,g)=>{const y=h.children&&h.children.length>0;return i.createVNode("div",{key:h.key||`key_${g}`,style:{...l.value.styles.item,...e.styles.item},class:le(`${a}-item`,l.value.classNames.item,e.classNames.item,{[`${a}-item-disabled`]:h.disabled,[`${a}-item-has-nest`]:y}),onClick:()=>{!y&&e.onItemClick&&e.onItemClick({data:h})}},[h.icon&&i.createVNode("div",{class:`${a}-icon`},[h.icon]),i.createVNode("div",{class:le(`${a}-content`,l.value.classNames.itemContent,e.classNames.itemContent),style:{...l.value.styles.itemContent,...e.styles.itemContent}},[h.label&&i.createVNode("h6",{class:`${a}-label`},[h.label]),h.description&&i.createVNode("p",{class:`${a}-desc`},[h.description]),y&&i.createVNode(Lo,{class:`${a}-nested`,items:h.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)])])})])]))}}});Lo.install=function(e){return e.component(Lo.name,Lo),e};const ED=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"}}}}},RD=mn("Suggestion",e=>{const t=At(e,{});return ED(t)},()=>({}));function AD(e,t,n,o,r){const[a,l]=Me([]),s=(m,h=a.value)=>{let g=i.toValue(e);for(let y=0;y<m-1;y+=1){const b=h[y],x=g.find(S=>S.value===b);if(!x)break;g=x.children||[]}return g},c=m=>m.map((h,g)=>{const b=s(g+1,m).find(x=>x.value===h);return b==null?void 0:b.value}),d=m=>{const h=a.value.length||1,g=s(h),y=g.findIndex(S=>S.value===a.value[h-1]),b=g.length,x=g[(y+m+b)%b];l([...a.value.slice(0,h-1),x.value])},u=()=>{a.value.length>1&&l(a.value.slice(0,a.value.length-1))},f=()=>{const m=s(a.value.length+1);m.length&&l([...a.value,m[0].value])},p=za(m=>{if(i.toValue(t))switch(console.log("e.key",m),m.key){case"ArrowDown":d(1),m.preventDefault();break;case"ArrowUp":d(-1),m.preventDefault();break;case"ArrowRight":i.toValue(n)?u():f(),m.preventDefault();break;case"ArrowLeft":i.toValue(n)?f():u(),m.preventDefault();break;case"Enter":s(a.value.length+1).length||o(c(a.value)),m.preventDefault();break;case"Escape":r(),m.preventDefault();break}});return i.watch(()=>i.toValue(t),()=>{i.toValue(t)&&l([i.toValue(e)[0].value])},{immediate:!0}),[a,p]}function MD(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}const VD=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function DD(e){return Array.isArray(e)?e:[e]}function FD(e){return i.getCurrentInstance()}function LD(e,t=!0,n){FD()?i.onMounted(e,n):t?e():i.nextTick(e)}const Cb=VD?window:void 0;function jo(e){var t;const n=i.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function jD(){const e=i.shallowRef(!1),t=i.getCurrentInstance();return t&&i.onMounted(()=>{e.value=!0},t),e}function BD(e){const t=jD();return i.computed(()=>(t.value,!!e()))}function zD(e,t,n={}){const{window:o=Cb,...r}=n;let a;const l=BD(()=>o&&"ResizeObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},c=i.computed(()=>{const f=i.toValue(e);return Array.isArray(f)?f.map(p=>jo(p)):[jo(f)]}),d=i.watch(c,f=>{if(s(),l.value&&o){a=new ResizeObserver(t);for(const p of f)p&&a.observe(p,r)}},{immediate:!0,flush:"post"}),u=()=>{s(),d()};return MD(u),{isSupported:l,stop:u}}function HD(e,t={width:0,height:0},n={}){const{window:o=Cb,box:r="content-box"}=n,a=i.computed(()=>{var f,p;return(p=(f=jo(e))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),l=i.shallowRef(t.width),s=i.shallowRef(t.height),{stop:c}=zD(e,([f])=>{const p=r==="border-box"?f.borderBoxSize:r==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&a.value){const m=jo(e);if(m){const h=m.getBoundingClientRect();l.value=h.width,s.value=h.height}}else if(p){const m=DD(p);l.value=m.reduce((h,{inlineSize:g})=>h+g,0),s.value=m.reduce((h,{blockSize:g})=>h+g,0)}else l.value=f.contentRect.width,s.value=f.contentRect.height},n);LD(()=>{const f=jo(e);f&&(l.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const d=i.watch(()=>jo(e),f=>{l.value=f?t.width:0,s.value=f?t.height:0});function u(){c(),d()}return{width:l,height:s,stop:u}}const Sb=i.defineComponent({name:"AXSuggestion",__name:"Suggestion",props:i.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){i.toRef(e,"prefixCls");const t=i.useSlots(),{direction:n,getPrefixCls:o}=ke(),r=i.computed(()=>o("suggestion",e.prefixCls));`${r.value}`;const a=i.computed(()=>n.value==="rtl"),l=pn("suggestion"),s=i.ref(),[c,d,u]=RD(r),{width:f}=HD(s),p=i.computed(()=>{if(e.block&&f.value)return{width:`${f.value}px`}}),[m,h]=Me(e.open),[g,y]=Me(),b=T=>{var E;h(T),(E=e.onOpenChange)==null||E.call(e,T)},x=T=>{T===!1?b(!1):(y(T),b(!0))},S=()=>{b(!1)},$=i.computed(()=>typeof e.items=="function"?e.items(g.value):e.items),w=T=>{e.onSelect&&e.onSelect(T[T.length-1]),b(!1)},[O,C]=AD($,m,a,w,S),I=i.computed(()=>{var T;return t.default?t.default({onTrigger:x,onKeyDown:C}):(T=e.children)==null?void 0:T.call(e,{onTrigger:x,onKeyDown:C})});return()=>c(i.createVNode(oR,{options:$.value,open:m.value,value:O.value,placement:a.value?"topRight":"topLeft",onDropdownVisibleChange:T=>{T||S()},popupClassName:le(e.rootClassName,r.value,d.value,u,{[`${r.value}-block`]:e.block}),onChange:w,dropdownStyle:p.value},{default:()=>i.createVNode("div",{ref:s,class:le(r.value,l.value.className,e.rootClassName,e.className,`${r.value}-wrapper`,d.value,u),style:{...l.value.style,...e.style}},[I.value])}))}}),$b=Symbol("SenderHeaderContext"),Qu=i.shallowRef(),_D=e=>{i.provide($b,e),i.watch(e,()=>{Qu.value=i.unref(e),i.triggerRef(Qu)},{immediate:!0,deep:!0})},WD=()=>i.inject($b,i.computed(()=>Qu.value||{})),kD=i.defineComponent({props:{value:Mt()},setup(e,{slots:t}){return _D(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),xb=Symbol("ActionButtonContext"),Ju=i.shallowRef(),XD=e=>{i.provide(xb,e),i.watch(e,()=>{Ju.value=i.unref(e),i.triggerRef(Ju)},{immediate:!0,deep:!0})},ed=()=>i.inject(xb,i.computed(()=>Ju.value||{})),GD=i.defineComponent({props:{value:Mt()},setup(e,{slots:t}){return XD(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Ha=i.defineComponent({name:"AXSenderActionButton",__name:"index",props:i.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,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null,action:null},{type:"text",disabled:void 0}),setup(e){const t=Xe(e,["action","type","disabled","onClick"]);i.toRef(e,"disabled");const n=i.useSlots(),o=ed(),r=i.computed(()=>{var c;const l=o.value.disabled,s=(c=o.value)==null?void 0:c[`${e.action}Disabled`];return e.disabled??l??s}),a=i.computed(()=>o.value.prefixCls);return()=>i.createVNode(Ke,i.mergeProps({type:e.type},t,{onClick:l=>{var s,c;r.value||((c=(s=o.value)==null?void 0:s[e.action])==null||c.call(s),e.onClick&&!Array.isArray(e.onClick)&&e.onClick(l))},class:le(a.value,{[`${a.value}-disabled`]:r.value})}),{icon:()=>n.default()})}}),KD=i.defineComponent({name:"AXSenderClearButton",__name:"ClearButton",props:i.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,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{disabled:void 0}),setup(e){const t=Xe(e,["disabled"]);return()=>i.createVNode(Ha,i.mergeProps({disabled:e.disabled},t,{action:"onClear"}),{default:()=>[i.createVNode(yu,null,null)]})}}),UD=i.defineComponent({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(e){const t=e;return()=>i.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},[i.createVNode("title",null,[i.createTextVNode("Stop Loading")]),i.createVNode("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),i.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),i.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[i.createVNode("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),Ob=i.defineComponent({name:"AXSenderLoadingButton",__name:"LoadingButton",props:i.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,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"primary",shape:"circle",icon:void 0,disabled:void 0}),setup(e){const t=Xe(e,["type","shape","icon","disabled"]),n=ed(),{token:o}=No.useToken();return()=>i.createVNode(Ha,i.mergeProps({type:e.type,disabled:e.disabled,shape:e.shape,icon:e.icon},t,{style:{backgroundColor:"transparent",color:o.value.colorPrimary},class:le(`${n.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[i.createVNode(UD,{className:`${n.value.prefixCls}-loading-icon`},null)]})}}),Pb=i.defineComponent({name:"AXSenderLoadingButton",__name:"SendButton",props:i.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,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"primary",shape:"circle",disabled:void 0}),setup(e){const t=Xe(e,["type","shape","disabled"]);return()=>i.createVNode(Ha,i.mergeProps({type:e.type,shape:e.shape,disabled:e.disabled},t,{action:"onSend"}),{default:()=>[i.createVNode(gu,null,null)]})}}),Kr=1e3,Ur=4,_a=140,Wa=250,Ib=500,ka=.8,qD=i.defineComponent({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},setup(e){const t=_a/2;return()=>i.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${Kr} ${Kr}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[i.createVNode("title",null,[i.createTextVNode("Speech Recording")]),Array.from({length:Ur}).map((n,o)=>{const r=(Kr-_a*Ur)/(Ur-1),a=o*(r+_a),l=Kr/2-Wa/2,s=Kr/2-Ib/2;return i.createVNode("rect",{fill:"currentColor",rx:t,ry:t,height:Wa,width:_a,x:a,y:l,key:o},[i.createVNode("animate",{attributeName:"height",values:`${Wa}; ${Ib}; ${Wa}`,keyTimes:"0; 0.5; 1",dur:`${ka}s`,begin:`${ka/Ur*o}s`,repeatCount:"indefinite"},null),i.createVNode("animate",{attributeName:"y",values:`${l}; ${s}; ${l}`,keyTimes:"0; 0.5; 1",dur:`${ka}s`,begin:`${ka/Ur*o}s`,repeatCount:"indefinite"},null)])})])}}),Tb=i.defineComponent({name:"AXSenderSpeechButton",__name:"index",props:i.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,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"text",disabled:void 0,audioIcon:()=>i.createVNode(vu,null,null),audioDisabledIcon:()=>i.createVNode(hu,null,null),audioRecordingIcon:void 0}),setup(e){const t=Xe(e,["type","disabled","audioIcon","audioDisabledIcon","audioRecordingIcon"]),n=ed(),{token:o}=No.useToken(),r=i.computed(()=>n.value.speechRecording),a=i.computed(()=>n.value.prefixCls),l=i.computed(()=>{let s;return r.value?s=e.audioRecordingIcon?e.audioRecordingIcon:i.createVNode(qD,{className:`${a.value}-recording-icon`},null):n.value.onSpeechDisabled?s=e.audioDisabledIcon:s=e.audioIcon,s});return()=>i.createVNode(Ha,i.mergeProps({type:e.type,disabled:e.disabled},t,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:o.value.colorPrimary},action:"onSpeech"}),{default:()=>[l.value]})}}),qr=i.defineComponent({name:"AXTransitionCollapse",__name:"TransitionCollapse",props:{prefixCls:{default:"ax"}},setup(e){const t=e,n=i.useSlots(),o=i.computed(()=>t.prefixCls+"-transition-collapse"),r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.maxHeight="0",a.style.paddingTop="0",a.style.paddingBottom="0"},enter(a){a.dataset.oldOverflow=a.style.overflow,a.scrollHeight!==0?(a.style.maxHeight=`${a.scrollHeight}px`,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom):(a.style.maxHeight=`${a.dataset.oldMaxHeight||"999"}px`,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom),a.style.overflow="hidden"},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldMaxHeight=a.scrollHeight,a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.overflow="hidden",a.style.maxHeight=`${a.scrollHeight}px`},leave(a){a.scrollHeight!==0&&(a.style.maxHeight="0",a.style.paddingTop="0",a.style.paddingBottom="0")},afterLeave(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom}};return()=>i.createVNode(i.Transition,{name:o.value,onBeforeEnter:r.beforeEnter,onEnter:r.enter,onAfterEnter:r.afterEnter,onBeforeLeave:r.beforeLeave,onLeave:r.leave,onAfterLeave:r.afterLeave},{default:()=>{var a;return[(a=n.default)==null?void 0:a.call(n)]}})}}),Nb=e=>{const{componentCls:t}=e,n=`${t}-transition-collapse`;return{[t]:{[n]:{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map(o=>`${o} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map(o=>`${o} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")}}}}};qr.install=function(e){return e.component(qr.name,qr),e};const YD=e=>{const{componentCls:t,calc:n}=e,o=`${t}-header`;return{[t]:{[o]:{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,[`${o}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(r=>`${r} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},ZD=e=>{const{componentCls:t,padding:n,paddingSM:o,paddingXS:r,paddingXXS:a,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:r,width:"100%",paddingBlock:o,paddingInlineStart:n,paddingInlineEnd:o,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:o,paddingBlockEnd:o,paddingBlockStart:a,boxSizing:"border-box"}}}},QD=mn("Sender",e=>{const{paddingXS:t,calc:n}=e,o=At(e,{SenderContentMaxWidth:`calc(100% - ${yt(n(t).add(32).equal())})`});return[ZD(o),YD(o),Nb(o)]},()=>({}));let Xa;!Xa&&typeof window<"u"&&(Xa=window.SpeechRecognition||window.webkitSpeechRecognition);function JD(e,t){const n=e,o=i.computed(()=>{const g=i.toValue(t);return typeof g=="object"?{controlledRecording:g.recording,onControlledRecordingChange:g.onRecordingChange,speechInControlled:typeof g.recording=="boolean"}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),r=i.computed(()=>o.value.controlledRecording),a=o.value.onControlledRecordingChange,l=o.value.speechInControlled,s=i.ref(null);i.watchEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let g=null;navigator.permissions.query({name:"microphone"}).then(y=>{s.value=y.state,y.onchange=function(){s.value=this.state},g=y}),i.onWatcherCleanup(()=>{g&&(g.onchange=null)})}});const c=i.computed(()=>Xa&&s.value!=="denied"),d=i.ref(null),[u,f]=yb(!1,{value:r}),p=i.ref(!1),m=()=>{if(c.value&&!d.value){const g=new Xa;g.onstart=()=>{f(!0)},g.onend=()=>{f(!1)},g.onresult=y=>{var b,x,S;if(!p.value){const $=(S=(x=(b=y.results)==null?void 0:b[0])==null?void 0:x[0])==null?void 0:S.transcript;n($)}p.value=!1},d.value=g}};return{speechPermission:c,triggerSpeech:g=>{g&&!u.value||(p.value=g,l?a==null||a(!u.value):(m(),d.value&&(u.value?(d.value.stop(),a==null||a(!1)):(d.value.start(),a==null||a(!0)))))},recording:u}}function eF(e,t){for(var n=e,o=0;o<t.length;o+=1){if(n==null)return;n=n[t[o]]}return n}const tF=i.defineComponent({name:"AXSender",__name:"Sender",props:i.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:{type:Function},footer:{type:Function},header:{type:Function},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 o=Xe(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"]);i.toRef(e,"prefixCls");function r(H,K,k){return eF(H,K)||k}const a={SendButton:Pb,ClearButton:KD,LoadingButton:Ob,SpeechButton:Tb},l=n,s=i.useSlots(),{direction:c,getPrefixCls:d}=ke(),u=i.computed(()=>d("sender",e.prefixCls)),f=i.ref(null),p=i.ref(null),m=pn("sender"),h=i.computed(()=>`${u.value}-input`),[g,y,b]=QD(u.value),x=i.computed(()=>le(u.value,m.value.className,e.className,e.rootClassName,y.value,b,{[`${u.value}-rtl`]:c.value==="rtl",[`${u.value}-disabled`]:e.disabled})),S=i.computed(()=>`${u.value}-actions-btn`),$=i.computed(()=>`${u.value}-actions-list`),w=i.ref(e.value??e.defaultValue??""),O=H=>{w.value=H};i.watch(()=>e.value,()=>{O(e.value)});const C=(H,K)=>{O(H),l("update:value",H),e.onChange&&e.onChange(H,K)},{speechPermission:I,triggerSpeech:T,recording:E}=JD(H=>{C(`${w.value} ${H}`)},()=>e.allowSpeech),M=r(e.components,["input"],Le.TextArea),F=i.computed(()=>Fo(o,{attr:!0,aria:!0,data:!0})),A=i.computed(()=>({...F.value,ref:p})),L=()=>{w.value&&e.onSubmit&&!e.loading&&e.onSubmit(w.value)},P=()=>{C("")},N=i.ref(!1),D=()=>{N.value=!0},V=()=>{N.value=!1},R=H=>{const K=H.key==="Enter"&&!N.value;switch(e.submitType){case"enter":K&&!H.shiftKey&&(H.preventDefault(),L());break;case"shiftEnter":K&&H.shiftKey&&(H.preventDefault(),L());break}e.onKeyPress&&e.onKeyPress(H)},z=H=>{var k,B;const K=(k=H.clipboardData)==null?void 0:k.files;K!=null&&K.length&&e.onPasteFile&&(e.onPasteFile(K[0],K),H.preventDefault()),(B=e.onPaste)==null||B.call(e,H)},_=H=>{var K,k;H.target!==((K=f.value)==null?void 0:K.querySelector(`.${h.value}`))&&H.preventDefault(),(k=p.value)==null||k.focus()},q=i.computed(()=>{let H=i.createVNode(_r,{class:`${$.value}-presets`},{default:()=>[e.allowSpeech&&i.createVNode(Tb,typeof e.allowSpeech=="object"?{audioIcon:e.allowSpeech.audioIcon,audioDisabledIcon:e.allowSpeech.audioDisabledIcon,audioRecordingIcon:e.allowSpeech.audioRecordingIcon}:{},null),e.loading?i.createVNode(Ob,null,null):i.createVNode(Pb,null,null)]});const K={components:a};return s.actions?H=s.actions({ori:H,info:K}):typeof e.actions=="function"?H=e.actions(H,K):(e.actions||e.actions===!1)&&(H=e.actions),H}),Q=i.computed(()=>({prefixCls:S.value,onSend:L,onSendDisabled:!w.value,onClear:P,onClearDisabled:!w.value,onCancel:e.onCancel,onCancelDisabled:!e.loading,onSpeech:()=>T(!1),onSpeechDisabled:!I.value,speechRecording:E.value,disabled:e.disabled})),J=i.computed(()=>{let H=null;const K={components:a};return s.footer?H=s.footer({info:K}):typeof e.footer=="function"?H=e.footer({components:a}):e.footer&&(H=e.footer),H}),U=i.computed(()=>s.header?s.header():typeof e.header=="function"?e.header():e.header),Z=i.computed(()=>s.prefix?s.prefix():typeof e.prefix=="function"?e.prefix():e.prefix);return t({nativeElement:f.value,focus:H=>{var K;return(K=p.value)==null?void 0:K.focus(H)},blur:()=>{var H;return(H=p.value)==null?void 0:H.blur()}}),()=>g(i.createVNode("div",{ref:f,class:x.value,style:{...m.value.style,...e.style}},[U.value&&i.createVNode(kD,{value:{prefixCls:u.value}},{default:()=>[U.value]}),i.createVNode(GD,{value:Q.value},{default:()=>[i.createVNode("div",{class:`${u.value}-content`,onMousedown:_},[Z.value&&i.createVNode("div",{class:le(`${u.value}-prefix`,m.value.classNames.prefix,e.classNames.prefix),style:{...m.value.styles.prefix,...e.styles.prefix}},[Z.value]),i.createVNode(M,i.mergeProps(A.value,{disabled:e.disabled,style:{...m.value.styles.input,...e.styles.input},class:le(h.value,m.value.classNames.input,e.classNames.input),autoSize:e.autoSize,value:w.value,onChange:H=>{C(H.target.value,H),T(!0)},onPressEnter:R,onCompositionstart:D,onCompositionend:V,onKeydown:e.onKeyDown,placeholder:e.placeholder,onPaste:z,bordered:!1,readOnly:e.readOnly}),null),q.value&&i.createVNode("div",{class:le($.value,m.value.classNames.actions,e.classNames.actions),style:{...m.value.styles.actions,...e.styles.actions}},[q.value])]),J.value&&i.createVNode("div",{class:le(`${u.value}-footer`,m.value.classNames.footer,e.classNames.footer),style:{...m.value.styles.footer,...e.styles.footer}},[J.value])]})]))}}),td=i.defineComponent({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:i.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){i.toRef(e,"classNames");const t=i.useSlots(),n=WD(),o=i.computed(()=>`${n.value.prefixCls}-header`),r=i.useAttrs();return()=>i.createVNode(qr,{prefixCls:n.value.prefixCls},{default:()=>{var a;return[e.open||e.forceRender?i.withDirectives(i.createVNode("div",i.mergeProps(r,{class:le(o.value,e.className),style:{...e.style}}),[(e.closable!==!1||e.title)&&i.createVNode("div",{class:le(`${o.value}-header`,e.classNames.header),style:{...e.styles.header}},[i.createVNode("div",{class:`${o.value}-title`},[e.title]),e.closable!==!1&&i.createVNode("div",{class:`${o.value}-close`},[i.createVNode(Ke,{type:"text",icon:i.createVNode(_t,null,null),size:"small",onClick:()=>{var l;(l=e.onOpenChange)==null||l.call(e,!e.open)}},null)])]),t.default&&i.createVNode("div",{class:le(`${o.value}-content`,e.classNames.content),style:{...e.styles.content}},[(a=t.default)==null?void 0:a.call(t)])]),[[i.vShow,e.open]]):null]}})}}),Yr=Object.assign(tF,{Header:td});Yr.install=function(e){return e.component(Yr.name,Yr),e.component(td.name,td),e};const Eb=Symbol("AttachmentContext"),nd=i.shallowRef(),nF=e=>{i.provide(Eb,e),i.watch(e,()=>{nd.value=i.unref(e),i.triggerRef(nd)},{immediate:!0,deep:!0})},Ga=()=>i.inject(Eb,i.computed(()=>nd.value||{})),oF=i.defineComponent({inheritAttrs:!1,props:{value:Mt()},setup(e,{slots:t}){return nF(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),rF=i.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:i.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const n=`${e.prefixCls}-placeholder`,o=i.computed(()=>e.placeholder||{}),r=i.useTemplateRef("upload-dragger"),a=Ga(),[l,s]=Me(!1),c=()=>{s(!0)},d=h=>{h.currentTarget.contains(h.relatedTarget)||s(!1)},u=()=>{s(!1)},f=i.computed(()=>{var h;return(h=r.value)==null?void 0:h.$el});t({nativeElement:f});const p=h=>Array.isArray(h)&&h.every(i.isVNode),m=i.computed(()=>i.isVNode(e.placeholder)||p(e.placeholder)?e.placeholder:i.createVNode(_r,{align:"center",justify:"center",vertical:!0,class:`${n}-inner`},{default:()=>[i.createVNode(Ie.Text,{class:`${n}-icon`},{default:()=>[o.value.icon]}),i.createVNode(Ie.Title,{class:`${n}-title`,level:5},{default:()=>[o.value.title]}),i.createVNode(Ie.Text,{class:`${n}-description`,type:"secondary"},{default:()=>[o.value.description]})]}));return()=>i.createVNode("div",{class:le(n,{[`${n}-drag-in`]:l.value,[`${n}-disabled`]:a.value.disabled},e.className),onDragenter:c,onDragleave:d,onDrop:u,"aria-hidden":a.value.disabled,style:e.style},[i.createVNode(gy.Dragger,i.mergeProps({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[m.value]})])}}),Rb=i.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=Ga(),[n,o]=Me(),[r,a]=Me(null);i.onMounted(()=>{var c;o((c=e.getDropContainer)==null?void 0:c.call(e))}),i.watch(()=>i.toValue(e.getDropContainer),()=>{var d;const c=(d=e.getDropContainer)==null?void 0:d.call(e);n.value!==c&&o(c)}),i.watch(()=>!!n.value,()=>{if(n.value){const c=()=>{a(!0)},d=p=>{p.preventDefault()},u=p=>{p.relatedTarget||a(!1)},f=p=>{a(!1),p.preventDefault()};document.addEventListener("dragenter",c),document.addEventListener("dragover",d),document.addEventListener("dragleave",u),document.addEventListener("drop",f),i.onWatcherCleanup(()=>{document.removeEventListener("dragenter",c),document.removeEventListener("dragover",d),document.removeEventListener("dragleave",u),document.removeEventListener("drop",f)})}});const l=i.computed(()=>e.getDropContainer&&n.value&&!t.value.disabled),s=`${e.prefixCls}-drop-area`;return()=>l.value?i.createVNode(i.Teleport,{to:n.value},{default:()=>[i.createVNode("div",{class:le(s,e.className,{[`${s}-on-body`]:n.value.tagName==="BODY"}),style:{display:r.value?"block":"none"}},[e.children])]}):null}}),Ab=i.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const n=i.useTemplateRef("upload"),o=i.computed(()=>{var r;return(r=n.value)==null?void 0:r.$el});return t({nativeElement:o}),()=>i.createVNode(gy,i.mergeProps(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),Mb=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},iF={},aF={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 lF(e,t){return i.openBlock(),i.createElementBlock("svg",aF,t[0]||(t[0]=[i.createElementVNode("title",null,"audio",-1),i.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[i.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 sF=Mb(iF,[["render",lF]]),cF={},uF={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 dF(e,t){return i.openBlock(),i.createElementBlock("svg",uF,t[0]||(t[0]=[i.createElementVNode("title",null,"video",-1),i.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[i.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 fF=Mb(cF,[["render",dF]]),pF=e=>e.indexOf("image/")===0,Ka=200;function mF(e){return new Promise(t=>{if(!e||!e.type||!pF(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:o,height:r}=n,a=o/r,l=a>1?Ka:Ka*a,s=a>1?Ka/a:Ka,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 u=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(n.src),t(u)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(n.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}const je=Math.round;function od(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(r=>parseFloat(r));for(let r=0;r<3;r+=1)o[r]=t(o[r]||0,n[r]||"",r);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const Vb=(e,t,n)=>n===0?e:e/100;function Zr(e,t){const n=t||255;return e>n?n:e<0?0:e}class rd{constructor(t){Ze(this,"isValid",!0),Ze(this,"r",0),Ze(this,"g",0),Ze(this,"b",0),Ze(this,"a",1),Ze(this,"_h",void 0),Ze(this,"_s",void 0),Ze(this,"_l",void 0),Ze(this,"_v",void 0),Ze(this,"_max",void 0),Ze(this,"_min",void 0),Ze(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let r=function(a){return o.startsWith(a)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):r("rgb")?this.fromRgbString(o):r("hsl")?this.fromHslString(o):(r("hsv")||r("hsb"))&&this.fromHsvString(o)}else if(t instanceof rd)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=Zr(t.r),this.g=Zr(t.g),this.b=Zr(t.b),this.a=typeof t.a=="number"?Zr(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(a){const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),o=t(this.g),r=t(this.b);return .2126*n+.7152*o+.0722*r}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=je(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(),o=this.getSaturation();let r=this.getLightness()-t/100;return r<0&&(r=0),this._c({h:n,s:o,l:r,a:this.a})}lighten(t=10){const n=this.getHue(),o=this.getSaturation();let r=this.getLightness()+t/100;return r>1&&(r=1),this._c({h:n,s:o,l:r,a:this.a})}mix(t,n=50){const o=this._c(t),r=n/100,a=s=>(o[s]-this[s])*r+this[s],l={r:je(a("r")),g:je(a("g")),b:je(a("b")),a:je(a("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),o=this.a+n.a*(1-this.a),r=a=>je((this[a]*this.a+n[a]*n.a*(1-this.a))/o);return this._c({r:r("r"),g:r("g"),b:r("b"),a:o})}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 o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;const r=(this.b||0).toString(16);if(t+=r.length===2?r:"0"+r,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=je(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=je(this.getSaturation()*100),o=je(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${o}%,${this.a})`:`hsl(${t},${n}%,${o}%)`}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,o){const r=this.clone();return r[t]=Zr(n,o),r}_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 o(r,a){return parseInt(n[r]+n[a||r],16)}n.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=n[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=n[6]?o(6,7)/255:1)}fromHsl({h:t,s:n,l:o,a:r}){if(this._h=t%360,this._s=n,this._l=o,this.a=typeof r=="number"?r:1,n<=0){const p=je(o*255);this.r=p,this.g=p,this.b=p}let a=0,l=0,s=0;const c=t/60,d=(1-Math.abs(2*o-1))*n,u=d*(1-Math.abs(c%2-1));c>=0&&c<1?(a=d,l=u):c>=1&&c<2?(a=u,l=d):c>=2&&c<3?(l=d,s=u):c>=3&&c<4?(l=u,s=d):c>=4&&c<5?(a=u,s=d):c>=5&&c<6&&(a=d,s=u);const f=o-d/2;this.r=je((a+f)*255),this.g=je((l+f)*255),this.b=je((s+f)*255)}fromHsv({h:t,s:n,v:o,a:r}){this._h=t%360,this._s=n,this._v=o,this.a=typeof r=="number"?r:1;const a=je(o*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,d=je(o*(1-n)*255),u=je(o*(1-n*c)*255),f=je(o*(1-n*(1-c))*255);switch(s){case 0:this.g=f,this.b=d;break;case 1:this.r=u,this.b=d;break;case 2:this.r=d,this.b=f;break;case 3:this.r=d,this.g=u;break;case 4:this.r=f,this.g=d;break;case 5:default:this.g=d,this.b=u;break}}fromHsvString(t){const n=od(t,Vb);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=od(t,Vb);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=od(t,(o,r)=>r.includes("%")?je(o/100*255):o);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const gF=e=>{const{componentCls:t,antCls:n,calc:o}=e,r=`${t}-list-card`,a=o(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[r]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${r}-name,${r}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${r}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${r}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:o(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:o(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${r}-icon`]:{fontSize:o(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:o(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${r}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${r}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:a,height:a,lineHeight:1,display:"flex",alignItems:"center",[`&:not(${r}-status-error)`]:{border:0},[`${n}-image`]:{width:"100%",height:"100%",borderRadius:"inherit",img:{height:"100%",objectFit:"cover",borderRadius:"inherit"}},[`${r}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${r}-status-error`]:{[`img, ${r}-img-mask`]:{borderRadius:o(e.borderRadius).sub(e.lineWidth).equal()},[`${r}-desc`]:{paddingInline:e.paddingXXS}},[`${r}-progress`]:{}},[`${r}-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 ${r}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${r}-desc`]:{color:e.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map(l=>`${l} ${e.motionDurationSlow}`).join(","),[`${r}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:o(e.paddingSM).mul(-1).equal()}}}}},id={"&, *":{boxSizing:"border-box"}},hF=e=>{const{componentCls:t,calc:n,antCls:o}=e,r=`${t}-drop-area`,a=`${t}-placeholder`;return{[r]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...id,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${a}-inner`]:{display:"none"}},[a]:{padding:0}},"&":{[a]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",...id,[`${o}-upload-wrapper ${o}-upload${o}-upload-btn`]:{padding:0},[`&${a}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${a}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${a}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${a}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${a}-title${a}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${a}-description`]:{}}}}},vF=e=>{const{componentCls:t,calc:n}=e,o=`${t}-list`,r=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...id,[o]:{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(r).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:r,height:r,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)":{[`&${o}-overflow-ping-start ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-end ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${o}-overflow-ping-end ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-start ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},Db=mn("Attachments",e=>{const t=At(e,{});return[hF(t),vF(t),gF(t)]},e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new rd(t).setA(.85).toRgbString()}}),ad=" ",Ua="#8c8c8c",qa=i.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null,imageProps:null,icon:null,type:null},setup(e,{expose:t}){i.toRef(e,"prefixCls");const n=["png","jpg","jpeg","gif","bmp","webp","svg"],o=[{key:"default",icon:i.createVNode(Fa,null,null),color:Ua,ext:[]},{key:"excel",icon:i.createVNode(bu,null,null),color:"#22b35e",ext:["xlsx","xls"]},{key:"image",icon:i.createVNode(wu,null,null),color:Ua,ext:n},{key:"markdown",icon:i.createVNode(Cu,null,null),color:Ua,ext:["md","mdx"]},{key:"pdf",icon:i.createVNode(Su,null,null),color:"#ff4d4f",ext:["pdf"]},{key:"ppt",icon:i.createVNode($u,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{key:"word",icon:i.createVNode(xu,null,null),color:"#1677ff",ext:["doc","docx"]},{key:"zip",icon:i.createVNode(Ou,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{key:"video",icon:i.createVNode(fF,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{key:"audio",icon:i.createVNode(sF,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function r(A,L){return L.some(P=>A.toLowerCase()===`.${P}`)}function a(A){let L=A;const P=["B","KB","MB","GB","TB","PB","EB"];let N=0;for(;L>=1024&&N<P.length-1;)L/=1024,N++;return`${L.toFixed(0)} ${P[N]}`}const l=Ga(),s=i.computed(()=>l.value.disabled),c=i.computed(()=>e.item.name),d=i.computed(()=>e.item.size),u=i.computed(()=>e.item.percent),f=i.computed(()=>e.item.status||"done"),p=i.computed(()=>e.item.description),{getPrefixCls:m}=ke(),h=i.computed(()=>m("attachment",e.prefixCls)),g=`${h.value}-list-card`,[y,b,x]=Db(h),S=i.useTemplateRef("file-list-card-container"),$=i.computed(()=>{const A=c.value||"",L=A.match(/^(.*)\.[^.]+$/);return{namePrefix:L?L[1]:A,nameSuffix:L?A.slice(L[1].length):""}}),w=i.computed(()=>r($.value.nameSuffix,n)),O=i.computed(()=>p.value?p.value:f.value==="uploading"?`${u.value||0}%`:f.value==="error"?e.item.response||ad:d.value?a(d.value):ad),C=i.computed(()=>{if(e.icon)if(typeof e.icon=="string"){const A=o.find(L=>L.key===e.icon);if(A)return{icon:A.icon,color:A.color}}else return{icon:e.icon,color:void 0};for(const{ext:A,icon:L,color:P}of o)if(r($.value.nameSuffix,A))return{icon:L,iconColor:P};return{icon:i.createVNode(Fa,{key:"defaultIcon"},null),iconColor:Ua}}),[I,T]=Me();i.watch(()=>e.item.originFileObj,()=>{if(e.item.originFileObj){let A=!0;mF(e.item.originFileObj).then(L=>{A&&T(L)}),i.onWatcherCleanup(()=>{A=!1})}T(void 0)},{immediate:!0});const E=i.computed(()=>e.item.thumbUrl||e.item.url||I.value),M=i.computed(()=>e.type==="image"||e.type!=="file"&&w.value&&(e.item.originFileObj||E.value)),F=i.computed(()=>M.value?i.createVNode(i.Fragment,null,[E.value&&i.createVNode(Ln,i.mergeProps(e.imageProps,{alt:"preview",src:E.value}),null),f.value!=="done"&&i.createVNode("div",{class:`${g}-img-mask`},[f.value==="uploading"&&u.value!==void 0&&i.createVNode(U0,{percent:u.value,prefixCls:g},null),f.value==="error"&&i.createVNode("div",{class:`${g}-desc`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[O.value])])])]):i.createVNode(i.Fragment,null,[i.createVNode("div",{class:`${g}-icon`,style:{color:C.value.iconColor}},[C.value.icon]),i.createVNode("div",{class:`${g}-content`},[i.createVNode("div",{class:`${g}-name`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[$.value.namePrefix??ad]),i.createVNode("div",{class:`${g}-ellipsis-suffix`},[$.value.nameSuffix])]),i.createVNode("div",{class:`${g}-desc`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[O.value])])])]));return t({nativeElement:S}),()=>y(i.createVNode("div",{class:le(g,{[`${g}-status-${f.value}`]:f.value,[`${g}-type-preview`]:M.value,[`${g}-type-overview`]:!M.value},e.className,b.value,x),style:e.style,ref:"file-list-card-container"},[F.value,!s.value&&e.onRemove&&i.createVNode("button",{type:"button",class:`${g}-remove`,onClick:()=>{e.onRemove(e.item)}},[i.createVNode(mt,null,null)])]))}}),Fb=1,yF=i.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=i.computed(()=>`${e.prefixCls}-list`),n=i.useTemplateRef("file-list-container"),[o,r]=Me(!1),a=Ga();i.watchEffect(()=>{r(!0),i.onWatcherCleanup(()=>{r(!1)})});const[l,s]=Me(!1),[c,d]=Me(!1),u=()=>{const h=n.value;h&&(e.overflow==="scrollX"?(s(Math.abs(h.scrollLeft)>=Fb),d(h.scrollWidth-h.clientWidth-Math.abs(h.scrollLeft)>=Fb)):e.overflow==="scrollY"&&(s(h.scrollTop!==0),d(h.scrollHeight-h.clientHeight!==h.scrollTop)))};i.watch([()=>e.overflow,()=>e.items.length],()=>{i.nextTick(()=>{u()})},{immediate:!0});const f=h=>{const g=n.value;g&&g.scrollTo({left:g.scrollLeft+h*g.clientWidth,behavior:"smooth"})},p=()=>{f(-1)},m=()=>{f(1)};return()=>i.createVNode("div",{class:le(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:u,style:e.listStyle},[e.items.map(h=>i.createVNode(qa,{key:h.uid,prefixCls:e.prefixCls,item:h,onRemove:e.onRemove,className:le(e.itemClassName),imageProps:e.imageProps,style:{...e.itemStyle}},null)),!a.value.disabled&&i.createVNode(Ab,{upload:e.upload,children:i.createVNode(Ke,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[i.createVNode(hc,{class:`${t.value}-upload-btn-icon`},null)]})},null),e.overflow==="scrollX"&&i.createVNode(i.Fragment,null,[i.createVNode(Ke,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:i.createVNode(So,null,null),onClick:p},null),i.createVNode(Ke,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:i.createVNode(an,null,null),onClick:m},null)])])}}),bF=i.defineComponent({name:"AXAttachments",__name:"Attachments",props:i.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=Xe(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","onRemove","overflow","imageProps","disabled","classNames","styles"]);i.toRef(e,"prefixCls");const o=i.useSlots(),{getPrefixCls:r,direction:a}=ke(),l=r("attachment",e.prefixCls),s=pn("attachments"),c=i.computed(()=>s.value.classNames),d=i.computed(()=>s.value.styles),u=i.useTemplateRef("attachments-container"),f=i.useTemplateRef("placeholder-uploader"),[p,m,h]=Db(l),g=i.computed(()=>le(m.value,h)),[y,b]=Me(e.items);i.watch(()=>e.items,()=>{b(e.items)});const x=C=>{var I;b(C.fileList),(I=e.onChange)==null||I.call(e,C)},S=i.computed(()=>({...n,fileList:y.value,onChange:x})),$=C=>Promise.resolve(typeof e.onRemove=="function"?e.onRemove(C):e.onRemove).then(I=>{if(I===!1)return;const T=y.value.filter(E=>E.uid!==C.uid);x({file:{...C,status:"removed"},fileList:T})}),w=(C,I)=>{const T=o.placeholder?o.placeholder({type:C}):typeof e.placeholder=="function"?e.placeholder(C):e.placeholder;return i.createVNode(rF,{placeholder:T,upload:S.value,prefixCls:l,className:le(c.value.placeholder,e.classNames.placeholder),style:{...d.value.placeholder,...e.styles.placeholder,...I==null?void 0:I.style},ref:C==="inline"?"placeholder-uploader":void 0},null)},O=i.computed(()=>y.value.length>0);return t({nativeElement:u.value,upload:C=>{var E,M,F;const I=(F=(E=f.value)==null?void 0:(M=E.nativeElement).querySelector)==null?void 0:F.call(M,'input[type="file"]');if(!I)return;const T=new DataTransfer;try{if("length"in C&&C.length>=1)for(let A=0;A<C.length;A++)T.items.add(C[A]);else T.items.add(C);I.files=T.files,I.dispatchEvent(new Event("change",{bubbles:!0}))}catch(A){console.error("upload failed",A)}}}),()=>p(i.createVNode(oF,{value:{disabled:e.disabled}},{default:()=>[e.children?i.createVNode(i.Fragment,null,[i.createVNode(Ab,{upload:S.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),i.createVNode(Rb,{getDropContainer:e.getDropContainer,prefixCls:l,className:le(g.value,e.rootClassName),children:w("drop")},null)]):i.createVNode("div",{class:le(l,g.value,{[`${l}-rtl`]:a.value==="rtl"},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:a.value||"ltr",ref:"attachments-container"},[i.createVNode(yF,{prefixCls:l,items:y.value,onRemove:$,overflow:e.overflow,upload:S.value,listClassName:le(c.value.list,e.classNames.list),listStyle:{...d.value.list,...e.styles.list,...!O.value&&{display:"none"}},itemClassName:le(c.value.item,e.classNames.item),itemStyle:{...d.value.item,...e.styles.item},imageProps:e.imageProps},null),w("inline",O.value?{style:{display:"none"}}:{}),i.createVNode(Rb,{getDropContainer:e.getDropContainer||(()=>u.value),prefixCls:l,className:g.value,children:w("drop")},null)])]}))}}),Qr=Object.assign(bF,{FileCard:qa});Qr.install=function(e){return e.component(Qr.name,Qr),e.component(qa.name,qa),e};const wF=(e,t,n)=>{const o=i.computed(()=>{const s=i.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}}),[r,a]=Me(o.value.customizeExpandedKeys),l=s=>{var d,u;if(!o.value.enableCollapse)return;const c=r.value.includes(s)?r.value.filter(f=>f!==s):[...r.value,s];(u=(d=o.value).customizeOnExpand)==null||u.call(d,c),typeof i.toValue(e)!="object"&&a(c)};return i.watch(o,s=>{a(s.customizeExpandedKeys)},{deep:1}),[i.computed(()=>o.value.enableCollapse),r,l]};var Ya=(e=>(e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e))(Ya||{});const CF=e=>{const{componentCls:t}=e,n=`${t}-item`,o={[Ya.PENDING]:e.colorPrimaryText,[Ya.SUCCESS]:e.colorSuccessText,[Ya.ERROR]:e.colorErrorText},r=Object.keys(o);return r.reduce((a,l)=>{const s=o[l];return r.forEach(c=>{const d=`& ${n}-${l}-${c}`,u=l===c?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${s}, ${o[c]})`};a[d]={[`& ${n}-icon, & > *::before`]:{backgroundColor:`${s} !important`},"& > :last-child::before":u}}),a},{})},SF=e=>{const{calc:t,componentCls:n}=e,o=`${n}-item`,r={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"},[`&${o}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${o}`]:{[`& ${o}-header, & ${o}-content, & ${o}-footer`]:{position:"relative","&::before":{bottom:t(e.itemGap).mul(-1).equal()}},[`& ${o}-header, & ${o}-content`]:{marginInlineStart:t(e.itemSize).mul(-1).equal(),"&::before":{...r,insetInlineStart:t(e.itemSize).div(2).sub(e.lineWidth).equal()}},[`& ${o}-header::before`]:{top:e.itemSize,bottom:t(e.itemGap).mul(-2).equal()},[`& ${o}-content::before`]:{top:"100%"},[`& ${o}-footer::before`]:{...r,top:0,insetInlineStart:t(e.itemSize).div(-2).sub(e.lineWidth).equal()}}}},$F=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:`${yt(e.itemSize)}`,maxHeight:e.itemSize,fontSize:e.itemFontSize,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",[`& ${n}-collapse-icon`]:{marginInlineEnd:e.marginXS}},[`& ${n}-desc`]:{fontSize:e.itemFontSize,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},[`& ${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:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`& ${n}-footer`]:{marginTop:e.itemGap,display:"inline-flex"}}}},ld=(e,t="middle")=>{const{componentCls:n}=e,o={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:o.itemSize,gap:o.itemGap,...$F({...e,...o}),...SF({...e,...o})}}},xF=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",...CF(e),...ld(e),...ld(e,"large"),...ld(e,"small"),[`&${t}-rtl`]:{direction:"rtl"}}}},OF=mn("ThoughtChain",e=>{const t=At(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[xF(t),Nb(t)]}),Lb=Symbol("ThoughtChainNodeContext"),sd=i.shallowRef(),PF=e=>{i.provide(Lb,e),i.watch(e,()=>{sd.value=i.unref(e),i.triggerRef(sd)},{immediate:!0,deep:!0})},IF=()=>i.inject(Lb,i.computed(()=>sd.value||{})),TF=i.defineComponent({props:{value:Mt()},setup(e,{slots:t}){return PF(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),NF=i.defineComponent({name:"AXThoughtChainNode",__name:"item",props:i.mergeDefaults({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(e){const t=Xe(e,["info","nextStatus","onClick"]),n=i.computed(()=>Fo(t,{attr:!0,aria:!0,data:!0})),o=IF(),r=i.computed(()=>o.value.prefixCls),a=i.computed(()=>o.value.enableCollapse),l=i.computed(()=>o.value.expandedKeys),s=i.computed(()=>o.value.direction),c=i.computed(()=>o.value.classNames),d=i.computed(()=>o.value.styles),u=i.useId(),f=i.computed(()=>e.info.key??u),p=i.computed(()=>e.info.icon),m=i.computed(()=>e.info.title),h=i.computed(()=>e.info.extra),g=i.computed(()=>e.info.content),y=i.computed(()=>e.info.footer),b=i.computed(()=>e.info.status),x=i.computed(()=>e.info.description),S=i.computed(()=>{const T=e.info.tooltip??!0,E=s.value==="rtl"?"topRight":"topLeft",M={title:m.value,placement:E},F={title:x.value,placement:E};return typeof T=="boolean"?{titleConfig:M,descriptionConfig:F}:{titleConfig:{...M,...T.titleConfig?T.titleConfig:{}},descriptionConfig:{...F,...T.descriptionConfig?T.descriptionConfig:{}}}}),$=i.computed(()=>!e.info.tooltip),w=i.computed(()=>`${r.value}-item`),O=()=>{var T;return(T=e.onClick)==null?void 0:T.call(e,f.value)},C=i.computed(()=>{var T;return(T=l.value)==null?void 0:T.includes(f.value)}),I=i.computed(()=>a.value?C.value:!0);return()=>i.createVNode("div",i.mergeProps(n.value,{class:le(w.value,{[`${w.value}-${b.value}${e.nextStatus?`-${e.nextStatus}`:""}`]:b.value},t.class),style:t.style}),[i.createVNode("div",{class:le(`${w.value}-header`,c.value.itemHeader),style:d.value.itemHeader,onClick:O},[i.createVNode(Rn,{icon:p.value,class:`${w.value}-icon`},null),i.createVNode("div",{class:le(`${w.value}-header-box`,{[`${w.value}-collapsible`]:a.value&&g.value})},[i.createVNode(Ie.Text,{strong:!0,class:`${w.value}-title`},{default:()=>[a.value&&g.value&&(s.value==="rtl"?i.createVNode(So,{class:`${w.value}-collapse-icon`,rotate:C.value?-90:0},null):i.createVNode(an,{class:`${w.value}-collapse-icon`,rotate:C.value?90:0},null)),$.value?m.value:i.createVNode(Ot,S.value.titleConfig,{default:()=>[m.value]})]}),x.value&&i.createVNode(Ie.Text,{class:`${w.value}-desc`,type:"secondary"},{default:()=>[$.value?x.value:i.createVNode(Ot,S.value.descriptionConfig,{default:()=>[x.value]})]})]),h.value&&i.createVNode("div",{class:`${w.value}-extra`},[h.value])]),i.createVNode(qr,{prefixCls:r.value},{default:()=>[g.value&&i.withDirectives(i.createVNode("div",{class:le(`${w.value}-content`)},[i.createVNode("div",{class:le(`${w.value}-content-box`,c.value.itemContent),style:d.value.itemContent},[g.value])]),[[i.vShow,I.value]])]}),y.value&&i.createVNode("div",{class:le(`${w.value}-footer`,c.value.itemFooter),style:d.value.itemFooter},[y.value])])}}),jb=i.defineComponent({name:"AXThoughtChain",__name:"ThoughtChain",props:i.mergeDefaults({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"}),setup(e){const t=Xe(e,["prefixCls","rootClassName","class","items","collapsible","styles","style","classNames","size"]);i.toRef(e,"class"),i.toRef(e,"prefixCls");const n=i.computed(()=>Fo(t,{attr:!0,aria:!0,data:!0})),{getPrefixCls:o,direction:r}=ke(),a=i.computed(()=>o()),l=i.computed(()=>o("thought-chain",e.prefixCls)),s=pn("thoughtChain"),[c,d,u]=wF(()=>e.collapsible,l.value,a.value),[f,p,m]=OF(l),h=i.computed(()=>le(e.class,e.rootClassName,l.value,s.value.className,p.value,m,{[`${l.value}-rtl`]:r.value==="rtl"},`${l.value}-${e.size}`));return()=>f(i.createVNode("div",i.mergeProps(n.value,{class:h.value,style:{...typeof s.value.style=="object"?s.value.style:{},...typeof e.style=="object"?e.style:{}}}),[i.createVNode(TF,{value:{prefixCls:l.value,enableCollapse:c.value,expandedKeys:d.value,direction:r.value,classNames:{itemHeader:le(s.value.classNames.itemHeader,e.classNames.itemHeader),itemContent:le(s.value.classNames.itemContent,e.classNames.itemContent),itemFooter:le(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 g;return[(g=e.items)==null?void 0:g.map((y,b)=>{var x;return i.createVNode(NF,{key:y.key||`key_${b}`,class:le(s.value.classNames.item,e.classNames.item),style:{...s.value.styles.item,...e.styles.item},info:{...y,icon:y.icon||b+1},onClick:u,nextStatus:((x=e.items[b+1])==null?void 0:x.status)||y.status},null)})]}})]))}}),Bb=Object.freeze(Object.defineProperty({__proto__:null,Attachments:Qr,Bubble:Gr,BubbleList:Xr,Conversations:bb,Prompts:Lo,Sender:Yr,Suggestion:Sb,ThoughtChain:jb,Welcome:wb,XProvider:Ay,defaultPrefixCls:bd,useXProviderContext:ke},Symbol.toStringTag,{value:"Module"})),EF=`
310
+ onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),dD="aria-",fD="data-";function gb(e,t){return e.indexOf(t)===0}function Fo(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const o={};return Object.keys(e).forEach(r=>{(n.aria&&(r==="role"||gb(r,dD))||n.data&&gb(r,fD)||n.attr&&(mb.includes(r)||mb.includes(r.toLowerCase())))&&(o[r]=e[r])}),o}function pD(e){const[t,n]=Me(e.value.length),o=i.computed(()=>e.value.slice(0,i.unref(t))),r=i.computed(()=>{const l=i.unref(o)[i.unref(o).length-1];return l?l.key:null});i.watch(e,()=>{var l;if(n(e.value.length),!(i.unref(o).length&&i.unref(o).every((s,c)=>{var d;return s.key===((d=e.value[c])==null?void 0:d.key)}))){if(i.unref(o).length===0)n(1);else for(let s=0;s<i.unref(o).length;s+=1)if(i.unref(o)[s].key!==((l=e.value[s])==null?void 0:l.key)){n(s);break}}},{immediate:!0,deep:!0});const a=za(l=>{l===i.unref(r)&&n(i.unref(t)+1)});return[o,a]}function mD(e,t){const n=(r,a)=>{var l;return typeof t.value=="function"?t.value(r,a):t?((l=t.value)==null?void 0:l[r.role])||{}:{}};return i.computed(()=>(e.value||[]).map((r,a)=>{const l=r.key??`preset_${a}`;return{...n(r,a),...r,key:l}}))}const gD=1,Xr=i.defineComponent({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:i.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(e,{expose:t}){const n=Xe(e,["prefixCls","rootClassName","items","autoScroll","roles"]);i.toRef(e,"roles"),i.toRef(e,"items"),i.toRef(e,"prefixCls");const o=i.useAttrs(),r=i.useSlots(),a=i.computed(()=>Fo(i.mergeProps(n,o),{attr:!0,aria:!0})),l=i.ref(e.items),s=i.ref(e.roles);i.watch(()=>e.items,()=>{l.value=e.items}),i.watch(()=>e.roles,()=>{s.value=e.roles});const c=i.ref(null),d=i.ref({}),{getPrefixCls:u}=ke(),f=u("bubble",e.prefixCls),p=`${f}-list`,[m,h,g]=ub(f),[y,b]=Me(!1);i.watchPostEffect(()=>{b(!0),i.onWatcherCleanup(()=>{b(!1)})});const x=mD(l,s),[S,$]=pD(x),[w,O]=Me(!0),[C,I]=Me(0),T=F=>{const A=F.target;O(A.scrollHeight-Math.abs(A.scrollTop)-A.clientHeight<=gD)};i.watch(C,()=>{e.autoScroll&&i.unref(c)&&i.unref(w)&&i.nextTick(()=>{i.unref(c).scrollTo({top:i.unref(c).scrollHeight})})}),i.watch(()=>i.unref(S).length,()=>{var F;if(e.autoScroll){const A=(F=i.unref(S)[i.unref(S).length-2])==null?void 0:F.key,L=i.unref(d)[A];if(L){const{nativeElement:P}=L,{top:N=0,bottom:D=0}=(P==null?void 0:P.getBoundingClientRect())??{},{top:V,bottom:R}=i.unref(c).getBoundingClientRect();N<R&&D>V&&(I(i.unref(C)+1),O(!0))}}});const E=za(()=>{e.autoScroll&&I(i.unref(C)+1)}),M=i.computed(()=>({onUpdate:E}));return t({nativeElement:c,scrollTo:({key:F,offset:A,behavior:L="smooth",block:P})=>{if(typeof A=="number")i.unref(c).scrollTo({top:A,behavior:L});else if(F!==void 0){const N=i.unref(d)[F];if(N){const D=i.unref(S).findIndex(V=>V.key===F);O(D===i.unref(S).length-1),N.nativeElement.scrollIntoView({behavior:L,block:P})}}}}),()=>m(i.createVNode(sD,{value:M.value},{default:()=>[i.createVNode("div",i.mergeProps(a.value,{class:le(p,e.rootClassName,h.value,g,{[`${p}-reach-end`]:w.value}),ref:c,onScroll:T}),[i.renderList(i.unref(S),({key:F,onTypingComplete:A,...L})=>{var P,N,D;return i.createVNode(fb,i.mergeProps(L,{avatar:r.avatar?()=>{var V;return(V=r.avatar)==null?void 0:V.call(r,{item:{key:F,...L}})}:L.avatar,header:((P=r.header)==null?void 0:P.call(r,{item:{key:F,...L}}))??L.header,footer:((N=r.footer)==null?void 0:N.call(r,{item:{key:F,...L}}))??L.footer,loadingRender:r.loading?()=>r.loading({item:{key:F,...L}}):L.loadingRender,content:((D=r.message)==null?void 0:D.call(r,{item:{key:F,...L}}))??L.content,key:F,ref:V=>{V?d.value[F]=V:delete d.value[F]},typing:y.value?L.typing:!1,onTypingComplete:()=>{A==null||A(),$(F)}}),null)})])]}))}}),Gr=Object.assign(fb,{List:Xr});Gr.install=function(e){return e.component(Gr.name,Gr),e.component(Xr.name,Xr),e};const hD=i.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=Xe(e,["prefixCls","info","class","direction","onClick","active","menu"]);i.toRef(e,"class");const n=i.computed(()=>Fo(t,{aria:!0,data:!0,attr:!0})),o=y=>{y.stopPropagation()},r=i.computed(()=>e.info.disabled),[a,l]=Me(!1),[s,c]=Me(!1),d=i.computed(()=>le(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!r.value},{[`${e.prefixCls}-item-disabled`]:r.value})),u=()=>{!r.value&&e.onClick&&e.onClick(e.info)},f=y=>{y&&c(!y)},p=i.computed(()=>{var y;return(y=e.menu)==null?void 0:y.trigger}),m=i.computed(()=>{const{trigger:y,...b}=e.menu||{};return b}),h=i.computed(()=>{var y;return(y=m.value)==null?void 0:y.getPopupContainer}),g=y=>{const b=i.createVNode(Cr,{onClick:o,class:`${e.prefixCls}-menu-icon`},null);return p.value?typeof p.value=="function"?p.value(y,{originNode:b}):p.value:b};return()=>i.createVNode(Ot,{title:e.info.label,open:a.value&&s.value,onOpenChange:c,placement:e.direction==="rtl"?"left":"right"},{default:()=>[i.createVNode("li",i.mergeProps(n.value,{class:d.value,onClick:u}),[e.info.icon&&i.createVNode("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),i.createVNode(Ie.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:l}},{default:()=>[e.info.label]}),!r.value&&e.menu&&i.createVNode(An,{placement:e.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:r.value,onOpenChange:f,getPopupContainer:h.value},{default:()=>g(e.info),overlay:()=>i.createVNode(sn,m.value,null)})])]})}}),hb=Symbol("GroupTitleContext"),Yu=i.shallowRef(),vD=e=>{i.provide(hb,e),i.watch(e,()=>{Yu.value=i.unref(e),i.triggerRef(Yu)},{immediate:!0,deep:!0})},yD=()=>i.inject(hb,i.computed(()=>Yu.value||{})),bD=i.defineComponent({props:{value:Mt()},setup(e,{slots:t}){return vD(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),vb=i.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=i.useSlots(),n=yD(),o=i.computed(()=>{var r;return(r=t.default)==null?void 0:r.call(t)});return()=>i.createVNode("div",{class:le(`${n.value.prefixCls}-group-title`)},[o.value&&i.createVNode(Ie.Text,null,{default:()=>[o.value]})])}});function yb(e,t){const{defaultValue:n,value:o=i.ref()}=t||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=i.unref(o)),n!==void 0&&(r=typeof n=="function"?n():n);const a=i.ref(r),l=i.ref(r);i.watchEffect(()=>{let c=o.value!==void 0?o.value:a.value;t.postState&&(c=t.postState(c)),l.value=c});function s(c){const d=l.value;a.value=c,i.toRaw(l.value)!==c&&t.onChange&&t.onChange(c,d)}return i.watch(o,()=>{a.value=o.value}),[l,s]}const Zu="__ungrouped",wD=(e,t=[])=>{const n=i.computed(()=>{if(!i.toValue(e))return{enableGroup:!1,sort:void 0,title:void 0};let o={sort:void 0,title:void 0};return typeof i.toValue(e)=="object"&&(o={...o,...i.toValue(e)}),{enableGroup:!0,sort:o.sort,title:o.title}});return i.computed(()=>{if(!n.value.enableGroup)return{groupList:[{name:Zu,data:i.toValue(t),title:void 0}],enableGroup:n.value.enableGroup};const o=i.toValue(t).reduce((l,s)=>{const c=s.group||Zu;return l[c]||(l[c]=[]),l[c].push(s),l},{});return{groupList:(n.value.sort?Object.keys(o).sort(n.value.sort):Object.keys(o)).map(l=>({name:l===Zu?void 0:l,title:n.value.title,data:o[l]})),enableGroup:n.value.enableGroup}})},CD=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 ${yt(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 ${yt(e.paddingXS)}`}}}},SD=mn("Conversations",e=>{const t=At(e,{});return CD(t)},()=>({})),bb=i.defineComponent({name:"AXConversations",__name:"Conversations",props:i.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=Xe(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);i.toRef(e,"class"),i.toRef(e,"activeKey"),i.toRef(e,"prefixCls");const n=i.ref(e.activeKey),o=i.computed(()=>Fo(t,{attr:!0,aria:!0,data:!0})),[r,a]=yb(e.defaultActiveKey,{value:n});i.watch(()=>e.activeKey,()=>{n.value=e.activeKey});const l=wD(()=>e.groupable,()=>e.items),{getPrefixCls:s,direction:c}=ke(),d=i.computed(()=>s("conversations",e.prefixCls)),u=pn("conversations"),[f,p,m]=SD(d),h=i.computed(()=>le(d.value,u.value.className,e.class,e.rootClassName,p.value,m,{[`${d.value}-rtl`]:c.value==="rtl"})),g=y=>{a(y.key),e.onActiveChange&&e.onActiveChange(y.key)};return()=>f(i.createVNode("ul",i.mergeProps(o.value,{style:{...typeof u.value.style=="object"?u.value.style:{},...typeof e.style=="object"?e.style:{}},class:h.value}),[l.value.groupList.map((y,b)=>{const x=y.data.map((S,$)=>i.createVNode(hD,{key:S.key||`key-${$}`,info:S,prefixCls:d.value,direction:c.value,class:le(e.classNames.item,u.value.classNames.item),style:{...u.value.styles.item,...e.styles.item},menu:typeof e.menu=="function"?e.menu(S):e.menu,active:r.value===S.key,onClick:g},null));return l.value.enableGroup?i.createVNode("li",{key:y.name||`key-${b}`},[i.createVNode(bD,{value:{prefixCls:d.value}},{default:()=>{var S;return[((S=y.title)==null?void 0:S.call(y,y.name,{components:{GroupTitle:vb}}))||i.createVNode(vb,{key:y.name},{default:()=>[y.name]})]}}),i.createVNode("ul",{class:`${d.value}-list`},[x])]):x})]))}}),$D=e=>{const{componentCls:t,calc:n}=e,o=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),r=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(o).add(r).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"}}}}},xD=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}}}}},OD=mn("Welcome",e=>{const t=At(e,{});return[$D(t),xD(t)]},()=>({}));function PD(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const wb=i.defineComponent({name:"AXWelcome",__name:"Welcome",props:i.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){i.toRef(e,"prefixCls");const t=i.useSlots(),{direction:n,getPrefixCls:o}=ke(),r=o("welcome",e.prefixCls),a=pn("welcome"),[l,s,c]=OD(r),d=i.computed(()=>{const m=t.icon?t.icon():typeof e.icon=="function"?e.icon():e.icon;if(!m)return null;let h=m;return typeof m=="string"&&m.startsWith("http")&&(h=i.createVNode("img",{src:m,alt:"icon"},null)),i.createVNode("div",{class:le(`${r}-icon`,a.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[h])}),u=i.computed(()=>{const m=t.title?t.title():typeof e.title=="function"?e.title():e.title;return m?i.createVNode(Ie.Title,{level:4,class:le(`${r}-title`,a.value.classNames.title,e.classNames.title),style:e.styles.title},PD(m)?m:{default:()=>[m]}):null}),f=i.computed(()=>t.description?t.description():typeof e.description=="function"?e.description():e.description),p=i.computed(()=>{const m=t.extra?t.extra():typeof e.extra=="function"?e.extra():e.extra;return m?i.createVNode("div",{class:le(`${r}-extra`,a.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[m]):null});return()=>l(i.createVNode(_r,{class:le(r,a.value.className,e.className,e.rootClassName,s.value,c,`${r}-${e.variant}`,{[`${r}-rtl`]:n.value==="rtl"}),style:e.style},{default:()=>[d.value,i.createVNode(_r,{vertical:!0,class:`${r}-content-wrapper`},{default:()=>[t.extra||e.extra?i.createVNode(_r,{align:"flex-start",class:`${r}-title-wrapper`},{default:()=>[u.value,p.value]}):u.value,f.value&&i.createVNode(Ie.Text,{class:le(`${r}-description`,a.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[f.value]})]})]}))}}),ID=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:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-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:`${yt(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}}}}}},TD=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}}}}},ND=mn("Prompts",e=>{const t=At(e,{});return[ID(t),TD(t)]},()=>({})),Lo=i.defineComponent({name:"AXPrompts",__name:"Prompts",props:i.mergeDefaults({items:null,title:{type:Function},onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=Xe(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);i.toRef(e,"class"),i.toRef(e,"prefixCls");const n=i.useSlots(),{getPrefixCls:o,direction:r}=ke(),a=o("prompts",e.prefixCls),l=pn("prompts"),[s,c,d]=ND(a),u=i.computed(()=>le(a,l.value.className,e.class,e.rootClassName,c.value,d,{[`${a}-rtl`]:r.value==="rtl"})),f=i.computed(()=>le(`${a}-list`,l.value.classNames.list,e.classNames.list,{[`${a}-list-wrap`]:e.wrap},{[`${a}-list-vertical`]:e.vertical})),p=i.computed(()=>n.title?n.title():typeof e.title=="function"?e.title():e.title);return()=>{var m;return s(i.createVNode("div",i.mergeProps(t,{class:u.value,style:{...typeof e.style=="object"?e.style:{},...typeof l.value.style=="object"?l.value.style:{}}}),[p.value&&i.createVNode(Ie.Title,{level:5,class:le(`${a}-title`,l.value.classNames.title,e.classNames.title),style:{...l.value.styles.title,...e.styles.title}},{default:()=>[p.value]}),i.createVNode("div",{class:f.value,style:{...l.value.styles.list,...e.styles.list}},[(m=e.items)==null?void 0:m.map((h,g)=>{const y=h.children&&h.children.length>0;return i.createVNode("div",{key:h.key||`key_${g}`,style:{...l.value.styles.item,...e.styles.item},class:le(`${a}-item`,l.value.classNames.item,e.classNames.item,{[`${a}-item-disabled`]:h.disabled,[`${a}-item-has-nest`]:y}),onClick:()=>{!y&&e.onItemClick&&e.onItemClick({data:h})}},[h.icon&&i.createVNode("div",{class:`${a}-icon`},[h.icon]),i.createVNode("div",{class:le(`${a}-content`,l.value.classNames.itemContent,e.classNames.itemContent),style:{...l.value.styles.itemContent,...e.styles.itemContent}},[h.label&&i.createVNode("h6",{class:`${a}-label`},[h.label]),h.description&&i.createVNode("p",{class:`${a}-desc`},[h.description]),y&&i.createVNode(Lo,{class:`${a}-nested`,items:h.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)])])})])]))}}});Lo.install=function(e){return e.component(Lo.name,Lo),e};const ED=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"}}}}},RD=mn("Suggestion",e=>{const t=At(e,{});return ED(t)},()=>({}));function AD(e,t,n,o,r){const[a,l]=Me([]),s=(m,h=a.value)=>{let g=i.toValue(e);for(let y=0;y<m-1;y+=1){const b=h[y],x=g.find(S=>S.value===b);if(!x)break;g=x.children||[]}return g},c=m=>m.map((h,g)=>{const b=s(g+1,m).find(x=>x.value===h);return b==null?void 0:b.value}),d=m=>{const h=a.value.length||1,g=s(h),y=g.findIndex(S=>S.value===a.value[h-1]),b=g.length,x=g[(y+m+b)%b];l([...a.value.slice(0,h-1),x.value])},u=()=>{a.value.length>1&&l(a.value.slice(0,a.value.length-1))},f=()=>{const m=s(a.value.length+1);m.length&&l([...a.value,m[0].value])},p=za(m=>{if(i.toValue(t))switch(console.log("e.key",m),m.key){case"ArrowDown":d(1),m.preventDefault();break;case"ArrowUp":d(-1),m.preventDefault();break;case"ArrowRight":i.toValue(n)?u():f(),m.preventDefault();break;case"ArrowLeft":i.toValue(n)?f():u(),m.preventDefault();break;case"Enter":s(a.value.length+1).length||o(c(a.value)),m.preventDefault();break;case"Escape":r(),m.preventDefault();break}});return i.watch(()=>i.toValue(t),()=>{i.toValue(t)&&l([i.toValue(e)[0].value])},{immediate:!0}),[a,p]}function MD(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}const VD=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function DD(e){return Array.isArray(e)?e:[e]}function FD(e){return i.getCurrentInstance()}function LD(e,t=!0,n){FD()?i.onMounted(e,n):t?e():i.nextTick(e)}const Cb=VD?window:void 0;function jo(e){var t;const n=i.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function jD(){const e=i.shallowRef(!1),t=i.getCurrentInstance();return t&&i.onMounted(()=>{e.value=!0},t),e}function BD(e){const t=jD();return i.computed(()=>(t.value,!!e()))}function zD(e,t,n={}){const{window:o=Cb,...r}=n;let a;const l=BD(()=>o&&"ResizeObserver"in o),s=()=>{a&&(a.disconnect(),a=void 0)},c=i.computed(()=>{const f=i.toValue(e);return Array.isArray(f)?f.map(p=>jo(p)):[jo(f)]}),d=i.watch(c,f=>{if(s(),l.value&&o){a=new ResizeObserver(t);for(const p of f)p&&a.observe(p,r)}},{immediate:!0,flush:"post"}),u=()=>{s(),d()};return MD(u),{isSupported:l,stop:u}}function HD(e,t={width:0,height:0},n={}){const{window:o=Cb,box:r="content-box"}=n,a=i.computed(()=>{var f,p;return(p=(f=jo(e))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),l=i.shallowRef(t.width),s=i.shallowRef(t.height),{stop:c}=zD(e,([f])=>{const p=r==="border-box"?f.borderBoxSize:r==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&a.value){const m=jo(e);if(m){const h=m.getBoundingClientRect();l.value=h.width,s.value=h.height}}else if(p){const m=DD(p);l.value=m.reduce((h,{inlineSize:g})=>h+g,0),s.value=m.reduce((h,{blockSize:g})=>h+g,0)}else l.value=f.contentRect.width,s.value=f.contentRect.height},n);LD(()=>{const f=jo(e);f&&(l.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const d=i.watch(()=>jo(e),f=>{l.value=f?t.width:0,s.value=f?t.height:0});function u(){c(),d()}return{width:l,height:s,stop:u}}const Sb=i.defineComponent({name:"AXSuggestion",__name:"Suggestion",props:i.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){i.toRef(e,"prefixCls");const t=i.useSlots(),{direction:n,getPrefixCls:o}=ke(),r=i.computed(()=>o("suggestion",e.prefixCls));`${r.value}`;const a=i.computed(()=>n.value==="rtl"),l=pn("suggestion"),s=i.ref(),[c,d,u]=RD(r),{width:f}=HD(s),p=i.computed(()=>{if(e.block&&f.value)return{width:`${f.value}px`}}),[m,h]=Me(e.open);i.watch(()=>e.open,T=>{h(T)});const[g,y]=Me(),b=T=>{var E;h(T),(E=e.onOpenChange)==null||E.call(e,T)},x=T=>{T===!1?b(!1):(y(T),b(!0))},S=()=>{b(!1)},$=i.computed(()=>typeof e.items=="function"?e.items(g.value):e.items),w=T=>{e.onSelect&&e.onSelect(T[T.length-1]),b(!1)},[O,C]=AD($,m,a,w,S),I=i.computed(()=>{var T;return t.default?t.default({onTrigger:x,onKeyDown:C}):(T=e.children)==null?void 0:T.call(e,{onTrigger:x,onKeyDown:C})});return()=>c(i.createVNode(oR,{options:$.value,open:m.value,value:O.value,placement:a.value?"topRight":"topLeft",onDropdownVisibleChange:T=>{T||S()},popupClassName:le(e.rootClassName,r.value,d.value,u,{[`${r.value}-block`]:e.block}),onChange:w,dropdownStyle:p.value},{default:()=>i.createVNode("div",{ref:s,class:le(r.value,l.value.className,e.rootClassName,e.className,`${r.value}-wrapper`,d.value,u),style:{...l.value.style,...e.style}},[I.value])}))}}),$b=Symbol("SenderHeaderContext"),Qu=i.shallowRef(),_D=e=>{i.provide($b,e),i.watch(e,()=>{Qu.value=i.unref(e),i.triggerRef(Qu)},{immediate:!0,deep:!0})},WD=()=>i.inject($b,i.computed(()=>Qu.value||{})),kD=i.defineComponent({props:{value:Mt()},setup(e,{slots:t}){return _D(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),xb=Symbol("ActionButtonContext"),Ju=i.shallowRef(),XD=e=>{i.provide(xb,e),i.watch(e,()=>{Ju.value=i.unref(e),i.triggerRef(Ju)},{immediate:!0,deep:!0})},ed=()=>i.inject(xb,i.computed(()=>Ju.value||{})),GD=i.defineComponent({props:{value:Mt()},setup(e,{slots:t}){return XD(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Ha=i.defineComponent({name:"AXSenderActionButton",__name:"index",props:i.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,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null,action:null},{type:"text",disabled:void 0}),setup(e){const t=Xe(e,["action","type","disabled","onClick"]);i.toRef(e,"disabled");const n=i.useSlots(),o=ed(),r=i.computed(()=>{var c;const l=o.value.disabled,s=(c=o.value)==null?void 0:c[`${e.action}Disabled`];return e.disabled??l??s}),a=i.computed(()=>o.value.prefixCls);return()=>i.createVNode(Ke,i.mergeProps({type:e.type},t,{onClick:l=>{var s,c;r.value||((c=(s=o.value)==null?void 0:s[e.action])==null||c.call(s),e.onClick&&!Array.isArray(e.onClick)&&e.onClick(l))},class:le(a.value,{[`${a.value}-disabled`]:r.value})}),{icon:()=>n.default()})}}),KD=i.defineComponent({name:"AXSenderClearButton",__name:"ClearButton",props:i.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,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{disabled:void 0}),setup(e){const t=Xe(e,["disabled"]);return()=>i.createVNode(Ha,i.mergeProps({disabled:e.disabled},t,{action:"onClear"}),{default:()=>[i.createVNode(yu,null,null)]})}}),UD=i.defineComponent({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(e){const t=e;return()=>i.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},[i.createVNode("title",null,[i.createTextVNode("Stop Loading")]),i.createVNode("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),i.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),i.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[i.createVNode("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),Ob=i.defineComponent({name:"AXSenderLoadingButton",__name:"LoadingButton",props:i.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,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"primary",shape:"circle",icon:void 0,disabled:void 0}),setup(e){const t=Xe(e,["type","shape","icon","disabled"]),n=ed(),{token:o}=No.useToken();return()=>i.createVNode(Ha,i.mergeProps({type:e.type,disabled:e.disabled,shape:e.shape,icon:e.icon},t,{style:{backgroundColor:"transparent",color:o.value.colorPrimary},class:le(`${n.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[i.createVNode(UD,{className:`${n.value.prefixCls}-loading-icon`},null)]})}}),Pb=i.defineComponent({name:"AXSenderLoadingButton",__name:"SendButton",props:i.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,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"primary",shape:"circle",disabled:void 0}),setup(e){const t=Xe(e,["type","shape","disabled"]);return()=>i.createVNode(Ha,i.mergeProps({type:e.type,shape:e.shape,disabled:e.disabled},t,{action:"onSend"}),{default:()=>[i.createVNode(gu,null,null)]})}}),Kr=1e3,Ur=4,_a=140,Wa=250,Ib=500,ka=.8,qD=i.defineComponent({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},setup(e){const t=_a/2;return()=>i.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${Kr} ${Kr}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[i.createVNode("title",null,[i.createTextVNode("Speech Recording")]),Array.from({length:Ur}).map((n,o)=>{const r=(Kr-_a*Ur)/(Ur-1),a=o*(r+_a),l=Kr/2-Wa/2,s=Kr/2-Ib/2;return i.createVNode("rect",{fill:"currentColor",rx:t,ry:t,height:Wa,width:_a,x:a,y:l,key:o},[i.createVNode("animate",{attributeName:"height",values:`${Wa}; ${Ib}; ${Wa}`,keyTimes:"0; 0.5; 1",dur:`${ka}s`,begin:`${ka/Ur*o}s`,repeatCount:"indefinite"},null),i.createVNode("animate",{attributeName:"y",values:`${l}; ${s}; ${l}`,keyTimes:"0; 0.5; 1",dur:`${ka}s`,begin:`${ka/Ur*o}s`,repeatCount:"indefinite"},null)])})])}}),Tb=i.defineComponent({name:"AXSenderSpeechButton",__name:"index",props:i.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,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"text",disabled:void 0,audioIcon:()=>i.createVNode(vu,null,null),audioDisabledIcon:()=>i.createVNode(hu,null,null),audioRecordingIcon:void 0}),setup(e){const t=Xe(e,["type","disabled","audioIcon","audioDisabledIcon","audioRecordingIcon"]),n=ed(),{token:o}=No.useToken(),r=i.computed(()=>n.value.speechRecording),a=i.computed(()=>n.value.prefixCls),l=i.computed(()=>{let s;return r.value?s=e.audioRecordingIcon?e.audioRecordingIcon:i.createVNode(qD,{className:`${a.value}-recording-icon`},null):n.value.onSpeechDisabled?s=e.audioDisabledIcon:s=e.audioIcon,s});return()=>i.createVNode(Ha,i.mergeProps({type:e.type,disabled:e.disabled},t,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:o.value.colorPrimary},action:"onSpeech"}),{default:()=>[l.value]})}}),qr=i.defineComponent({name:"AXTransitionCollapse",__name:"TransitionCollapse",props:{prefixCls:{default:"ax"}},setup(e){const t=e,n=i.useSlots(),o=i.computed(()=>t.prefixCls+"-transition-collapse"),r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.maxHeight="0",a.style.paddingTop="0",a.style.paddingBottom="0"},enter(a){a.dataset.oldOverflow=a.style.overflow,a.scrollHeight!==0?(a.style.maxHeight=`${a.scrollHeight}px`,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom):(a.style.maxHeight=`${a.dataset.oldMaxHeight||"999"}px`,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom),a.style.overflow="hidden"},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldMaxHeight=a.scrollHeight,a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.overflow="hidden",a.style.maxHeight=`${a.scrollHeight}px`},leave(a){a.scrollHeight!==0&&(a.style.maxHeight="0",a.style.paddingTop="0",a.style.paddingBottom="0")},afterLeave(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom}};return()=>i.createVNode(i.Transition,{name:o.value,onBeforeEnter:r.beforeEnter,onEnter:r.enter,onAfterEnter:r.afterEnter,onBeforeLeave:r.beforeLeave,onLeave:r.leave,onAfterLeave:r.afterLeave},{default:()=>{var a;return[(a=n.default)==null?void 0:a.call(n)]}})}}),Nb=e=>{const{componentCls:t}=e,n=`${t}-transition-collapse`;return{[t]:{[n]:{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map(o=>`${o} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map(o=>`${o} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")}}}}};qr.install=function(e){return e.component(qr.name,qr),e};const YD=e=>{const{componentCls:t,calc:n}=e,o=`${t}-header`;return{[t]:{[o]:{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,[`${o}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(r=>`${r} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},ZD=e=>{const{componentCls:t,padding:n,paddingSM:o,paddingXS:r,paddingXXS:a,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:r,width:"100%",paddingBlock:o,paddingInlineStart:n,paddingInlineEnd:o,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:o,paddingBlockEnd:o,paddingBlockStart:a,boxSizing:"border-box"}}}},QD=mn("Sender",e=>{const{paddingXS:t,calc:n}=e,o=At(e,{SenderContentMaxWidth:`calc(100% - ${yt(n(t).add(32).equal())})`});return[ZD(o),YD(o),Nb(o)]},()=>({}));let Xa;!Xa&&typeof window<"u"&&(Xa=window.SpeechRecognition||window.webkitSpeechRecognition);function JD(e,t){const n=e,o=i.computed(()=>{const g=i.toValue(t);return typeof g=="object"?{controlledRecording:g.recording,onControlledRecordingChange:g.onRecordingChange,speechInControlled:typeof g.recording=="boolean"}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),r=i.computed(()=>o.value.controlledRecording),a=o.value.onControlledRecordingChange,l=o.value.speechInControlled,s=i.ref(null);i.watchEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let g=null;navigator.permissions.query({name:"microphone"}).then(y=>{s.value=y.state,y.onchange=function(){s.value=this.state},g=y}),i.onWatcherCleanup(()=>{g&&(g.onchange=null)})}});const c=i.computed(()=>Xa&&s.value!=="denied"),d=i.ref(null),[u,f]=yb(!1,{value:r}),p=i.ref(!1),m=()=>{if(c.value&&!d.value){const g=new Xa;g.onstart=()=>{f(!0)},g.onend=()=>{f(!1)},g.onresult=y=>{var b,x,S;if(!p.value){const $=(S=(x=(b=y.results)==null?void 0:b[0])==null?void 0:x[0])==null?void 0:S.transcript;n($)}p.value=!1},d.value=g}};return{speechPermission:c,triggerSpeech:g=>{g&&!u.value||(p.value=g,l?a==null||a(!u.value):(m(),d.value&&(u.value?(d.value.stop(),a==null||a(!1)):(d.value.start(),a==null||a(!0)))))},recording:u}}function eF(e,t){for(var n=e,o=0;o<t.length;o+=1){if(n==null)return;n=n[t[o]]}return n}const tF=i.defineComponent({name:"AXSender",__name:"Sender",props:i.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:{type:Function},footer:{type:Function},header:{type:Function},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 o=Xe(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"]);i.toRef(e,"prefixCls");function r(H,K,k){return eF(H,K)||k}const a={SendButton:Pb,ClearButton:KD,LoadingButton:Ob,SpeechButton:Tb},l=n,s=i.useSlots(),{direction:c,getPrefixCls:d}=ke(),u=i.computed(()=>d("sender",e.prefixCls)),f=i.ref(null),p=i.ref(null),m=pn("sender"),h=i.computed(()=>`${u.value}-input`),[g,y,b]=QD(u.value),x=i.computed(()=>le(u.value,m.value.className,e.className,e.rootClassName,y.value,b,{[`${u.value}-rtl`]:c.value==="rtl",[`${u.value}-disabled`]:e.disabled})),S=i.computed(()=>`${u.value}-actions-btn`),$=i.computed(()=>`${u.value}-actions-list`),w=i.ref(e.value??e.defaultValue??""),O=H=>{w.value=H};i.watch(()=>e.value,()=>{O(e.value)});const C=(H,K)=>{O(H),l("update:value",H),e.onChange&&e.onChange(H,K)},{speechPermission:I,triggerSpeech:T,recording:E}=JD(H=>{C(`${w.value} ${H}`)},()=>e.allowSpeech),M=r(e.components,["input"],Le.TextArea),F=i.computed(()=>Fo(o,{attr:!0,aria:!0,data:!0})),A=i.computed(()=>({...F.value,ref:p})),L=()=>{w.value&&e.onSubmit&&!e.loading&&e.onSubmit(w.value)},P=()=>{C("")},N=i.ref(!1),D=()=>{N.value=!0},V=()=>{N.value=!1},R=H=>{const K=H.key==="Enter"&&!N.value;switch(e.submitType){case"enter":K&&!H.shiftKey&&(H.preventDefault(),L());break;case"shiftEnter":K&&H.shiftKey&&(H.preventDefault(),L());break}e.onKeyPress&&e.onKeyPress(H)},z=H=>{var k,B;const K=(k=H.clipboardData)==null?void 0:k.files;K!=null&&K.length&&e.onPasteFile&&(e.onPasteFile(K[0],K),H.preventDefault()),(B=e.onPaste)==null||B.call(e,H)},_=H=>{var K,k;H.target!==((K=f.value)==null?void 0:K.querySelector(`.${h.value}`))&&H.preventDefault(),(k=p.value)==null||k.focus()},q=i.computed(()=>{let H=i.createVNode(_r,{class:`${$.value}-presets`},{default:()=>[e.allowSpeech&&i.createVNode(Tb,typeof e.allowSpeech=="object"?{audioIcon:e.allowSpeech.audioIcon,audioDisabledIcon:e.allowSpeech.audioDisabledIcon,audioRecordingIcon:e.allowSpeech.audioRecordingIcon}:{},null),e.loading?i.createVNode(Ob,null,null):i.createVNode(Pb,null,null)]});const K={components:a};return s.actions?H=s.actions({ori:H,info:K}):typeof e.actions=="function"?H=e.actions(H,K):(e.actions||e.actions===!1)&&(H=e.actions),H}),Q=i.computed(()=>({prefixCls:S.value,onSend:L,onSendDisabled:!w.value,onClear:P,onClearDisabled:!w.value,onCancel:e.onCancel,onCancelDisabled:!e.loading,onSpeech:()=>T(!1),onSpeechDisabled:!I.value,speechRecording:E.value,disabled:e.disabled})),J=i.computed(()=>{let H=null;const K={components:a};return s.footer?H=s.footer({info:K}):typeof e.footer=="function"?H=e.footer({components:a}):e.footer&&(H=e.footer),H}),U=i.computed(()=>s.header?s.header():typeof e.header=="function"?e.header():e.header),Z=i.computed(()=>s.prefix?s.prefix():typeof e.prefix=="function"?e.prefix():e.prefix);return t({nativeElement:f.value,focus:H=>{var K;return(K=p.value)==null?void 0:K.focus(H)},blur:()=>{var H;return(H=p.value)==null?void 0:H.blur()}}),()=>g(i.createVNode("div",{ref:f,class:x.value,style:{...m.value.style,...e.style}},[U.value&&i.createVNode(kD,{value:{prefixCls:u.value}},{default:()=>[U.value]}),i.createVNode(GD,{value:Q.value},{default:()=>[i.createVNode("div",{class:`${u.value}-content`,onMousedown:_},[Z.value&&i.createVNode("div",{class:le(`${u.value}-prefix`,m.value.classNames.prefix,e.classNames.prefix),style:{...m.value.styles.prefix,...e.styles.prefix}},[Z.value]),i.createVNode(M,i.mergeProps(A.value,{disabled:e.disabled,style:{...m.value.styles.input,...e.styles.input},class:le(h.value,m.value.classNames.input,e.classNames.input),autoSize:e.autoSize,value:w.value,onChange:H=>{C(H.target.value,H),T(!0)},onPressEnter:R,onCompositionstart:D,onCompositionend:V,onKeydown:e.onKeyDown,placeholder:e.placeholder,onPaste:z,bordered:!1,readOnly:e.readOnly}),null),q.value&&i.createVNode("div",{class:le($.value,m.value.classNames.actions,e.classNames.actions),style:{...m.value.styles.actions,...e.styles.actions}},[q.value])]),J.value&&i.createVNode("div",{class:le(`${u.value}-footer`,m.value.classNames.footer,e.classNames.footer),style:{...m.value.styles.footer,...e.styles.footer}},[J.value])]})]))}}),td=i.defineComponent({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:i.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){i.toRef(e,"classNames");const t=i.useSlots(),n=WD(),o=i.computed(()=>`${n.value.prefixCls}-header`),r=i.useAttrs();return()=>i.createVNode(qr,{prefixCls:n.value.prefixCls},{default:()=>{var a;return[e.open||e.forceRender?i.withDirectives(i.createVNode("div",i.mergeProps(r,{class:le(o.value,e.className),style:{...e.style}}),[(e.closable!==!1||e.title)&&i.createVNode("div",{class:le(`${o.value}-header`,e.classNames.header),style:{...e.styles.header}},[i.createVNode("div",{class:`${o.value}-title`},[e.title]),e.closable!==!1&&i.createVNode("div",{class:`${o.value}-close`},[i.createVNode(Ke,{type:"text",icon:i.createVNode(_t,null,null),size:"small",onClick:()=>{var l;(l=e.onOpenChange)==null||l.call(e,!e.open)}},null)])]),t.default&&i.createVNode("div",{class:le(`${o.value}-content`,e.classNames.content),style:{...e.styles.content}},[(a=t.default)==null?void 0:a.call(t)])]),[[i.vShow,e.open]]):null]}})}}),Yr=Object.assign(tF,{Header:td});Yr.install=function(e){return e.component(Yr.name,Yr),e.component(td.name,td),e};const Eb=Symbol("AttachmentContext"),nd=i.shallowRef(),nF=e=>{i.provide(Eb,e),i.watch(e,()=>{nd.value=i.unref(e),i.triggerRef(nd)},{immediate:!0,deep:!0})},Ga=()=>i.inject(Eb,i.computed(()=>nd.value||{})),oF=i.defineComponent({inheritAttrs:!1,props:{value:Mt()},setup(e,{slots:t}){return nF(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),rF=i.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:i.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const n=`${e.prefixCls}-placeholder`,o=i.computed(()=>e.placeholder||{}),r=i.useTemplateRef("upload-dragger"),a=Ga(),[l,s]=Me(!1),c=()=>{s(!0)},d=h=>{h.currentTarget.contains(h.relatedTarget)||s(!1)},u=()=>{s(!1)},f=i.computed(()=>{var h;return(h=r.value)==null?void 0:h.$el});t({nativeElement:f});const p=h=>Array.isArray(h)&&h.every(i.isVNode),m=i.computed(()=>i.isVNode(e.placeholder)||p(e.placeholder)?e.placeholder:i.createVNode(_r,{align:"center",justify:"center",vertical:!0,class:`${n}-inner`},{default:()=>[i.createVNode(Ie.Text,{class:`${n}-icon`},{default:()=>[o.value.icon]}),i.createVNode(Ie.Title,{class:`${n}-title`,level:5},{default:()=>[o.value.title]}),i.createVNode(Ie.Text,{class:`${n}-description`,type:"secondary"},{default:()=>[o.value.description]})]}));return()=>i.createVNode("div",{class:le(n,{[`${n}-drag-in`]:l.value,[`${n}-disabled`]:a.value.disabled},e.className),onDragenter:c,onDragleave:d,onDrop:u,"aria-hidden":a.value.disabled,style:e.style},[i.createVNode(gy.Dragger,i.mergeProps({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[m.value]})])}}),Rb=i.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=Ga(),[n,o]=Me(),[r,a]=Me(null);i.onMounted(()=>{var c;o((c=e.getDropContainer)==null?void 0:c.call(e))}),i.watch(()=>i.toValue(e.getDropContainer),()=>{var d;const c=(d=e.getDropContainer)==null?void 0:d.call(e);n.value!==c&&o(c)}),i.watch(()=>!!n.value,()=>{if(n.value){const c=()=>{a(!0)},d=p=>{p.preventDefault()},u=p=>{p.relatedTarget||a(!1)},f=p=>{a(!1),p.preventDefault()};document.addEventListener("dragenter",c),document.addEventListener("dragover",d),document.addEventListener("dragleave",u),document.addEventListener("drop",f),i.onWatcherCleanup(()=>{document.removeEventListener("dragenter",c),document.removeEventListener("dragover",d),document.removeEventListener("dragleave",u),document.removeEventListener("drop",f)})}});const l=i.computed(()=>e.getDropContainer&&n.value&&!t.value.disabled),s=`${e.prefixCls}-drop-area`;return()=>l.value?i.createVNode(i.Teleport,{to:n.value},{default:()=>[i.createVNode("div",{class:le(s,e.className,{[`${s}-on-body`]:n.value.tagName==="BODY"}),style:{display:r.value?"block":"none"}},[e.children])]}):null}}),Ab=i.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const n=i.useTemplateRef("upload"),o=i.computed(()=>{var r;return(r=n.value)==null?void 0:r.$el});return t({nativeElement:o}),()=>i.createVNode(gy,i.mergeProps(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),Mb=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},iF={},aF={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 lF(e,t){return i.openBlock(),i.createElementBlock("svg",aF,t[0]||(t[0]=[i.createElementVNode("title",null,"audio",-1),i.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[i.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 sF=Mb(iF,[["render",lF]]),cF={},uF={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 dF(e,t){return i.openBlock(),i.createElementBlock("svg",uF,t[0]||(t[0]=[i.createElementVNode("title",null,"video",-1),i.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[i.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 fF=Mb(cF,[["render",dF]]),pF=e=>e.indexOf("image/")===0,Ka=200;function mF(e){return new Promise(t=>{if(!e||!e.type||!pF(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:o,height:r}=n,a=o/r,l=a>1?Ka:Ka*a,s=a>1?Ka/a:Ka,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 u=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(n.src),t(u)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(n.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}const je=Math.round;function od(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(r=>parseFloat(r));for(let r=0;r<3;r+=1)o[r]=t(o[r]||0,n[r]||"",r);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const Vb=(e,t,n)=>n===0?e:e/100;function Zr(e,t){const n=t||255;return e>n?n:e<0?0:e}class rd{constructor(t){Ze(this,"isValid",!0),Ze(this,"r",0),Ze(this,"g",0),Ze(this,"b",0),Ze(this,"a",1),Ze(this,"_h",void 0),Ze(this,"_s",void 0),Ze(this,"_l",void 0),Ze(this,"_v",void 0),Ze(this,"_max",void 0),Ze(this,"_min",void 0),Ze(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let r=function(a){return o.startsWith(a)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):r("rgb")?this.fromRgbString(o):r("hsl")?this.fromHslString(o):(r("hsv")||r("hsb"))&&this.fromHsvString(o)}else if(t instanceof rd)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=Zr(t.r),this.g=Zr(t.g),this.b=Zr(t.b),this.a=typeof t.a=="number"?Zr(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(a){const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),o=t(this.g),r=t(this.b);return .2126*n+.7152*o+.0722*r}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=je(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(),o=this.getSaturation();let r=this.getLightness()-t/100;return r<0&&(r=0),this._c({h:n,s:o,l:r,a:this.a})}lighten(t=10){const n=this.getHue(),o=this.getSaturation();let r=this.getLightness()+t/100;return r>1&&(r=1),this._c({h:n,s:o,l:r,a:this.a})}mix(t,n=50){const o=this._c(t),r=n/100,a=s=>(o[s]-this[s])*r+this[s],l={r:je(a("r")),g:je(a("g")),b:je(a("b")),a:je(a("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),o=this.a+n.a*(1-this.a),r=a=>je((this[a]*this.a+n[a]*n.a*(1-this.a))/o);return this._c({r:r("r"),g:r("g"),b:r("b"),a:o})}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 o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;const r=(this.b||0).toString(16);if(t+=r.length===2?r:"0"+r,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=je(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=je(this.getSaturation()*100),o=je(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${o}%,${this.a})`:`hsl(${t},${n}%,${o}%)`}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,o){const r=this.clone();return r[t]=Zr(n,o),r}_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 o(r,a){return parseInt(n[r]+n[a||r],16)}n.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=n[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=n[6]?o(6,7)/255:1)}fromHsl({h:t,s:n,l:o,a:r}){if(this._h=t%360,this._s=n,this._l=o,this.a=typeof r=="number"?r:1,n<=0){const p=je(o*255);this.r=p,this.g=p,this.b=p}let a=0,l=0,s=0;const c=t/60,d=(1-Math.abs(2*o-1))*n,u=d*(1-Math.abs(c%2-1));c>=0&&c<1?(a=d,l=u):c>=1&&c<2?(a=u,l=d):c>=2&&c<3?(l=d,s=u):c>=3&&c<4?(l=u,s=d):c>=4&&c<5?(a=u,s=d):c>=5&&c<6&&(a=d,s=u);const f=o-d/2;this.r=je((a+f)*255),this.g=je((l+f)*255),this.b=je((s+f)*255)}fromHsv({h:t,s:n,v:o,a:r}){this._h=t%360,this._s=n,this._v=o,this.a=typeof r=="number"?r:1;const a=je(o*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,d=je(o*(1-n)*255),u=je(o*(1-n*c)*255),f=je(o*(1-n*(1-c))*255);switch(s){case 0:this.g=f,this.b=d;break;case 1:this.r=u,this.b=d;break;case 2:this.r=d,this.b=f;break;case 3:this.r=d,this.g=u;break;case 4:this.r=f,this.g=d;break;case 5:default:this.g=d,this.b=u;break}}fromHsvString(t){const n=od(t,Vb);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=od(t,Vb);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=od(t,(o,r)=>r.includes("%")?je(o/100*255):o);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const gF=e=>{const{componentCls:t,antCls:n,calc:o}=e,r=`${t}-list-card`,a=o(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[r]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${r}-name,${r}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${r}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${r}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:o(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:o(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${r}-icon`]:{fontSize:o(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:o(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${r}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${r}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:a,height:a,lineHeight:1,display:"flex",alignItems:"center",[`&:not(${r}-status-error)`]:{border:0},[`${n}-image`]:{width:"100%",height:"100%",borderRadius:"inherit",img:{height:"100%",objectFit:"cover",borderRadius:"inherit"}},[`${r}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${r}-status-error`]:{[`img, ${r}-img-mask`]:{borderRadius:o(e.borderRadius).sub(e.lineWidth).equal()},[`${r}-desc`]:{paddingInline:e.paddingXXS}},[`${r}-progress`]:{}},[`${r}-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 ${r}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${r}-desc`]:{color:e.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map(l=>`${l} ${e.motionDurationSlow}`).join(","),[`${r}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:o(e.paddingSM).mul(-1).equal()}}}}},id={"&, *":{boxSizing:"border-box"}},hF=e=>{const{componentCls:t,calc:n,antCls:o}=e,r=`${t}-drop-area`,a=`${t}-placeholder`;return{[r]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...id,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${a}-inner`]:{display:"none"}},[a]:{padding:0}},"&":{[a]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",...id,[`${o}-upload-wrapper ${o}-upload${o}-upload-btn`]:{padding:0},[`&${a}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${a}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${a}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${a}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${a}-title${a}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${a}-description`]:{}}}}},vF=e=>{const{componentCls:t,calc:n}=e,o=`${t}-list`,r=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...id,[o]:{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(r).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:r,height:r,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)":{[`&${o}-overflow-ping-start ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-end ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${o}-overflow-ping-end ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-start ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},Db=mn("Attachments",e=>{const t=At(e,{});return[hF(t),vF(t),gF(t)]},e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new rd(t).setA(.85).toRgbString()}}),ad=" ",Ua="#8c8c8c",qa=i.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null,imageProps:null,icon:null,type:null},setup(e,{expose:t}){i.toRef(e,"prefixCls");const n=["png","jpg","jpeg","gif","bmp","webp","svg"],o=[{key:"default",icon:i.createVNode(Fa,null,null),color:Ua,ext:[]},{key:"excel",icon:i.createVNode(bu,null,null),color:"#22b35e",ext:["xlsx","xls"]},{key:"image",icon:i.createVNode(wu,null,null),color:Ua,ext:n},{key:"markdown",icon:i.createVNode(Cu,null,null),color:Ua,ext:["md","mdx"]},{key:"pdf",icon:i.createVNode(Su,null,null),color:"#ff4d4f",ext:["pdf"]},{key:"ppt",icon:i.createVNode($u,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{key:"word",icon:i.createVNode(xu,null,null),color:"#1677ff",ext:["doc","docx"]},{key:"zip",icon:i.createVNode(Ou,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{key:"video",icon:i.createVNode(fF,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{key:"audio",icon:i.createVNode(sF,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function r(A,L){return L.some(P=>A.toLowerCase()===`.${P}`)}function a(A){let L=A;const P=["B","KB","MB","GB","TB","PB","EB"];let N=0;for(;L>=1024&&N<P.length-1;)L/=1024,N++;return`${L.toFixed(0)} ${P[N]}`}const l=Ga(),s=i.computed(()=>l.value.disabled),c=i.computed(()=>e.item.name),d=i.computed(()=>e.item.size),u=i.computed(()=>e.item.percent),f=i.computed(()=>e.item.status||"done"),p=i.computed(()=>e.item.description),{getPrefixCls:m}=ke(),h=i.computed(()=>m("attachment",e.prefixCls)),g=`${h.value}-list-card`,[y,b,x]=Db(h),S=i.useTemplateRef("file-list-card-container"),$=i.computed(()=>{const A=c.value||"",L=A.match(/^(.*)\.[^.]+$/);return{namePrefix:L?L[1]:A,nameSuffix:L?A.slice(L[1].length):""}}),w=i.computed(()=>r($.value.nameSuffix,n)),O=i.computed(()=>p.value?p.value:f.value==="uploading"?`${u.value||0}%`:f.value==="error"?e.item.response||ad:d.value?a(d.value):ad),C=i.computed(()=>{if(e.icon)if(typeof e.icon=="string"){const A=o.find(L=>L.key===e.icon);if(A)return{icon:A.icon,color:A.color}}else return{icon:e.icon,color:void 0};for(const{ext:A,icon:L,color:P}of o)if(r($.value.nameSuffix,A))return{icon:L,iconColor:P};return{icon:i.createVNode(Fa,{key:"defaultIcon"},null),iconColor:Ua}}),[I,T]=Me();i.watch(()=>e.item.originFileObj,()=>{if(e.item.originFileObj){let A=!0;mF(e.item.originFileObj).then(L=>{A&&T(L)}),i.onWatcherCleanup(()=>{A=!1})}T(void 0)},{immediate:!0});const E=i.computed(()=>e.item.thumbUrl||e.item.url||I.value),M=i.computed(()=>e.type==="image"||e.type!=="file"&&w.value&&(e.item.originFileObj||E.value)),F=i.computed(()=>M.value?i.createVNode(i.Fragment,null,[E.value&&i.createVNode(Ln,i.mergeProps(e.imageProps,{alt:"preview",src:E.value}),null),f.value!=="done"&&i.createVNode("div",{class:`${g}-img-mask`},[f.value==="uploading"&&u.value!==void 0&&i.createVNode(U0,{percent:u.value,prefixCls:g},null),f.value==="error"&&i.createVNode("div",{class:`${g}-desc`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[O.value])])])]):i.createVNode(i.Fragment,null,[i.createVNode("div",{class:`${g}-icon`,style:{color:C.value.iconColor}},[C.value.icon]),i.createVNode("div",{class:`${g}-content`},[i.createVNode("div",{class:`${g}-name`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[$.value.namePrefix??ad]),i.createVNode("div",{class:`${g}-ellipsis-suffix`},[$.value.nameSuffix])]),i.createVNode("div",{class:`${g}-desc`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[O.value])])])]));return t({nativeElement:S}),()=>y(i.createVNode("div",{class:le(g,{[`${g}-status-${f.value}`]:f.value,[`${g}-type-preview`]:M.value,[`${g}-type-overview`]:!M.value},e.className,b.value,x),style:e.style,ref:"file-list-card-container"},[F.value,!s.value&&e.onRemove&&i.createVNode("button",{type:"button",class:`${g}-remove`,onClick:()=>{e.onRemove(e.item)}},[i.createVNode(mt,null,null)])]))}}),Fb=1,yF=i.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=i.computed(()=>`${e.prefixCls}-list`),n=i.useTemplateRef("file-list-container"),[o,r]=Me(!1),a=Ga();i.watchEffect(()=>{r(!0),i.onWatcherCleanup(()=>{r(!1)})});const[l,s]=Me(!1),[c,d]=Me(!1),u=()=>{const h=n.value;h&&(e.overflow==="scrollX"?(s(Math.abs(h.scrollLeft)>=Fb),d(h.scrollWidth-h.clientWidth-Math.abs(h.scrollLeft)>=Fb)):e.overflow==="scrollY"&&(s(h.scrollTop!==0),d(h.scrollHeight-h.clientHeight!==h.scrollTop)))};i.watch([()=>e.overflow,()=>e.items.length],()=>{i.nextTick(()=>{u()})},{immediate:!0});const f=h=>{const g=n.value;g&&g.scrollTo({left:g.scrollLeft+h*g.clientWidth,behavior:"smooth"})},p=()=>{f(-1)},m=()=>{f(1)};return()=>i.createVNode("div",{class:le(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:u,style:e.listStyle},[e.items.map(h=>i.createVNode(qa,{key:h.uid,prefixCls:e.prefixCls,item:h,onRemove:e.onRemove,className:le(e.itemClassName),imageProps:e.imageProps,style:{...e.itemStyle}},null)),!a.value.disabled&&i.createVNode(Ab,{upload:e.upload,children:i.createVNode(Ke,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[i.createVNode(hc,{class:`${t.value}-upload-btn-icon`},null)]})},null),e.overflow==="scrollX"&&i.createVNode(i.Fragment,null,[i.createVNode(Ke,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:i.createVNode(So,null,null),onClick:p},null),i.createVNode(Ke,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:i.createVNode(an,null,null),onClick:m},null)])])}}),bF=i.defineComponent({name:"AXAttachments",__name:"Attachments",props:i.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=Xe(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","onRemove","overflow","imageProps","disabled","classNames","styles"]);i.toRef(e,"prefixCls");const o=i.useSlots(),{getPrefixCls:r,direction:a}=ke(),l=r("attachment",e.prefixCls),s=pn("attachments"),c=i.computed(()=>s.value.classNames),d=i.computed(()=>s.value.styles),u=i.useTemplateRef("attachments-container"),f=i.useTemplateRef("placeholder-uploader"),[p,m,h]=Db(l),g=i.computed(()=>le(m.value,h)),[y,b]=Me(e.items);i.watch(()=>e.items,()=>{b(e.items)});const x=C=>{var I;b(C.fileList),(I=e.onChange)==null||I.call(e,C)},S=i.computed(()=>({...n,fileList:y.value,onChange:x})),$=C=>Promise.resolve(typeof e.onRemove=="function"?e.onRemove(C):e.onRemove).then(I=>{if(I===!1)return;const T=y.value.filter(E=>E.uid!==C.uid);x({file:{...C,status:"removed"},fileList:T})}),w=(C,I)=>{const T=o.placeholder?o.placeholder({type:C}):typeof e.placeholder=="function"?e.placeholder(C):e.placeholder;return i.createVNode(rF,{placeholder:T,upload:S.value,prefixCls:l,className:le(c.value.placeholder,e.classNames.placeholder),style:{...d.value.placeholder,...e.styles.placeholder,...I==null?void 0:I.style},ref:C==="inline"?"placeholder-uploader":void 0},null)},O=i.computed(()=>y.value.length>0);return t({nativeElement:u.value,upload:C=>{var E,M,F;const I=(F=(E=f.value)==null?void 0:(M=E.nativeElement).querySelector)==null?void 0:F.call(M,'input[type="file"]');if(!I)return;const T=new DataTransfer;try{if("length"in C&&C.length>=1)for(let A=0;A<C.length;A++)T.items.add(C[A]);else T.items.add(C);I.files=T.files,I.dispatchEvent(new Event("change",{bubbles:!0}))}catch(A){console.error("upload failed",A)}}}),()=>p(i.createVNode(oF,{value:{disabled:e.disabled}},{default:()=>[e.children?i.createVNode(i.Fragment,null,[i.createVNode(Ab,{upload:S.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),i.createVNode(Rb,{getDropContainer:e.getDropContainer,prefixCls:l,className:le(g.value,e.rootClassName),children:w("drop")},null)]):i.createVNode("div",{class:le(l,g.value,{[`${l}-rtl`]:a.value==="rtl"},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:a.value||"ltr",ref:"attachments-container"},[i.createVNode(yF,{prefixCls:l,items:y.value,onRemove:$,overflow:e.overflow,upload:S.value,listClassName:le(c.value.list,e.classNames.list),listStyle:{...d.value.list,...e.styles.list,...!O.value&&{display:"none"}},itemClassName:le(c.value.item,e.classNames.item),itemStyle:{...d.value.item,...e.styles.item},imageProps:e.imageProps},null),w("inline",O.value?{style:{display:"none"}}:{}),i.createVNode(Rb,{getDropContainer:e.getDropContainer||(()=>u.value),prefixCls:l,className:g.value,children:w("drop")},null)])]}))}}),Qr=Object.assign(bF,{FileCard:qa});Qr.install=function(e){return e.component(Qr.name,Qr),e.component(qa.name,qa),e};const wF=(e,t,n)=>{const o=i.computed(()=>{const s=i.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}}),[r,a]=Me(o.value.customizeExpandedKeys),l=s=>{var d,u;if(!o.value.enableCollapse)return;const c=r.value.includes(s)?r.value.filter(f=>f!==s):[...r.value,s];(u=(d=o.value).customizeOnExpand)==null||u.call(d,c),typeof i.toValue(e)!="object"&&a(c)};return i.watch(o,s=>{a(s.customizeExpandedKeys)},{deep:1}),[i.computed(()=>o.value.enableCollapse),r,l]};var Ya=(e=>(e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e))(Ya||{});const CF=e=>{const{componentCls:t}=e,n=`${t}-item`,o={[Ya.PENDING]:e.colorPrimaryText,[Ya.SUCCESS]:e.colorSuccessText,[Ya.ERROR]:e.colorErrorText},r=Object.keys(o);return r.reduce((a,l)=>{const s=o[l];return r.forEach(c=>{const d=`& ${n}-${l}-${c}`,u=l===c?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${s}, ${o[c]})`};a[d]={[`& ${n}-icon, & > *::before`]:{backgroundColor:`${s} !important`},"& > :last-child::before":u}}),a},{})},SF=e=>{const{calc:t,componentCls:n}=e,o=`${n}-item`,r={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"},[`&${o}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${o}`]:{[`& ${o}-header, & ${o}-content, & ${o}-footer`]:{position:"relative","&::before":{bottom:t(e.itemGap).mul(-1).equal()}},[`& ${o}-header, & ${o}-content`]:{marginInlineStart:t(e.itemSize).mul(-1).equal(),"&::before":{...r,insetInlineStart:t(e.itemSize).div(2).sub(e.lineWidth).equal()}},[`& ${o}-header::before`]:{top:e.itemSize,bottom:t(e.itemGap).mul(-2).equal()},[`& ${o}-content::before`]:{top:"100%"},[`& ${o}-footer::before`]:{...r,top:0,insetInlineStart:t(e.itemSize).div(-2).sub(e.lineWidth).equal()}}}},$F=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:`${yt(e.itemSize)}`,maxHeight:e.itemSize,fontSize:e.itemFontSize,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",[`& ${n}-collapse-icon`]:{marginInlineEnd:e.marginXS}},[`& ${n}-desc`]:{fontSize:e.itemFontSize,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},[`& ${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:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`& ${n}-footer`]:{marginTop:e.itemGap,display:"inline-flex"}}}},ld=(e,t="middle")=>{const{componentCls:n}=e,o={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:o.itemSize,gap:o.itemGap,...$F({...e,...o}),...SF({...e,...o})}}},xF=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",...CF(e),...ld(e),...ld(e,"large"),...ld(e,"small"),[`&${t}-rtl`]:{direction:"rtl"}}}},OF=mn("ThoughtChain",e=>{const t=At(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[xF(t),Nb(t)]}),Lb=Symbol("ThoughtChainNodeContext"),sd=i.shallowRef(),PF=e=>{i.provide(Lb,e),i.watch(e,()=>{sd.value=i.unref(e),i.triggerRef(sd)},{immediate:!0,deep:!0})},IF=()=>i.inject(Lb,i.computed(()=>sd.value||{})),TF=i.defineComponent({props:{value:Mt()},setup(e,{slots:t}){return PF(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),NF=i.defineComponent({name:"AXThoughtChainNode",__name:"item",props:i.mergeDefaults({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(e){const t=Xe(e,["info","nextStatus","onClick"]),n=i.computed(()=>Fo(t,{attr:!0,aria:!0,data:!0})),o=IF(),r=i.computed(()=>o.value.prefixCls),a=i.computed(()=>o.value.enableCollapse),l=i.computed(()=>o.value.expandedKeys),s=i.computed(()=>o.value.direction),c=i.computed(()=>o.value.classNames),d=i.computed(()=>o.value.styles),u=i.useId(),f=i.computed(()=>e.info.key??u),p=i.computed(()=>e.info.icon),m=i.computed(()=>e.info.title),h=i.computed(()=>e.info.extra),g=i.computed(()=>e.info.content),y=i.computed(()=>e.info.footer),b=i.computed(()=>e.info.status),x=i.computed(()=>e.info.description),S=i.computed(()=>{const T=e.info.tooltip??!0,E=s.value==="rtl"?"topRight":"topLeft",M={title:m.value,placement:E},F={title:x.value,placement:E};return typeof T=="boolean"?{titleConfig:M,descriptionConfig:F}:{titleConfig:{...M,...T.titleConfig?T.titleConfig:{}},descriptionConfig:{...F,...T.descriptionConfig?T.descriptionConfig:{}}}}),$=i.computed(()=>!e.info.tooltip),w=i.computed(()=>`${r.value}-item`),O=()=>{var T;return(T=e.onClick)==null?void 0:T.call(e,f.value)},C=i.computed(()=>{var T;return(T=l.value)==null?void 0:T.includes(f.value)}),I=i.computed(()=>a.value?C.value:!0);return()=>i.createVNode("div",i.mergeProps(n.value,{class:le(w.value,{[`${w.value}-${b.value}${e.nextStatus?`-${e.nextStatus}`:""}`]:b.value},t.class),style:t.style}),[i.createVNode("div",{class:le(`${w.value}-header`,c.value.itemHeader),style:d.value.itemHeader,onClick:O},[i.createVNode(Rn,{icon:p.value,class:`${w.value}-icon`},null),i.createVNode("div",{class:le(`${w.value}-header-box`,{[`${w.value}-collapsible`]:a.value&&g.value})},[i.createVNode(Ie.Text,{strong:!0,class:`${w.value}-title`},{default:()=>[a.value&&g.value&&(s.value==="rtl"?i.createVNode(So,{class:`${w.value}-collapse-icon`,rotate:C.value?-90:0},null):i.createVNode(an,{class:`${w.value}-collapse-icon`,rotate:C.value?90:0},null)),$.value?m.value:i.createVNode(Ot,S.value.titleConfig,{default:()=>[m.value]})]}),x.value&&i.createVNode(Ie.Text,{class:`${w.value}-desc`,type:"secondary"},{default:()=>[$.value?x.value:i.createVNode(Ot,S.value.descriptionConfig,{default:()=>[x.value]})]})]),h.value&&i.createVNode("div",{class:`${w.value}-extra`},[h.value])]),i.createVNode(qr,{prefixCls:r.value},{default:()=>[g.value&&i.withDirectives(i.createVNode("div",{class:le(`${w.value}-content`)},[i.createVNode("div",{class:le(`${w.value}-content-box`,c.value.itemContent),style:d.value.itemContent},[g.value])]),[[i.vShow,I.value]])]}),y.value&&i.createVNode("div",{class:le(`${w.value}-footer`,c.value.itemFooter),style:d.value.itemFooter},[y.value])])}}),jb=i.defineComponent({name:"AXThoughtChain",__name:"ThoughtChain",props:i.mergeDefaults({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"}),setup(e){const t=Xe(e,["prefixCls","rootClassName","class","items","collapsible","styles","style","classNames","size"]);i.toRef(e,"class"),i.toRef(e,"prefixCls");const n=i.computed(()=>Fo(t,{attr:!0,aria:!0,data:!0})),{getPrefixCls:o,direction:r}=ke(),a=i.computed(()=>o()),l=i.computed(()=>o("thought-chain",e.prefixCls)),s=pn("thoughtChain"),[c,d,u]=wF(()=>e.collapsible,l.value,a.value),[f,p,m]=OF(l),h=i.computed(()=>le(e.class,e.rootClassName,l.value,s.value.className,p.value,m,{[`${l.value}-rtl`]:r.value==="rtl"},`${l.value}-${e.size}`));return()=>f(i.createVNode("div",i.mergeProps(n.value,{class:h.value,style:{...typeof s.value.style=="object"?s.value.style:{},...typeof e.style=="object"?e.style:{}}}),[i.createVNode(TF,{value:{prefixCls:l.value,enableCollapse:c.value,expandedKeys:d.value,direction:r.value,classNames:{itemHeader:le(s.value.classNames.itemHeader,e.classNames.itemHeader),itemContent:le(s.value.classNames.itemContent,e.classNames.itemContent),itemFooter:le(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 g;return[(g=e.items)==null?void 0:g.map((y,b)=>{var x;return i.createVNode(NF,{key:y.key||`key_${b}`,class:le(s.value.classNames.item,e.classNames.item),style:{...s.value.styles.item,...e.styles.item},info:{...y,icon:y.icon||b+1},onClick:u,nextStatus:((x=e.items[b+1])==null?void 0:x.status)||y.status},null)})]}})]))}}),Bb=Object.freeze(Object.defineProperty({__proto__:null,Attachments:Qr,Bubble:Gr,BubbleList:Xr,Conversations:bb,Prompts:Lo,Sender:Yr,Suggestion:Sb,ThoughtChain:jb,Welcome:wb,XProvider:Ay,defaultPrefixCls:bd,useXProviderContext:ke},Symbol.toStringTag,{value:"Module"})),EF=`
311
311
 
312
312
  `,RF=`
313
313
  `,zb=":",cd=e=>(e??"").trim()!=="";function AF(){let e="";return new TransformStream({transform(t,n){e+=t;const o=e.split(EF);o.slice(0,-1).forEach(r=>{cd(r)&&n.enqueue(r)}),e=o[o.length-1]},flush(t){cd(e)&&t.enqueue(e)}})}function MF(){return new TransformStream({transform(e,t){const o=e.split(RF).reduce((r,a)=>{const l=a.indexOf(zb);if(l===-1)throw new Error(`The key-value separator "${zb}" is not found in the sse line chunk!`);const s=a.slice(0,l);if(!cd(s))return r;const c=a.slice(l+1);return{...r,[s]:c}},{});Object.keys(o).length!==0&&t.enqueue(o)}})}function ud(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const o=new TextDecoderStream,r=n?t.pipeThrough(o).pipeThrough(n):t.pipeThrough(o).pipeThrough(AF()).pipeThrough(MF());return r[Symbol.asyncIterator]=async function*(){const a=this.getReader();for(;;){const{done:l,value:s}=await a.read();if(l)break;s&&(yield s)}},r}const Hb=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:o={},...r}=t;if(typeof n!="function")throw new Error("The options.fetch must be a typeof fetch function!");let a=[e,r];typeof o.onRequest=="function"&&(a=await o.onRequest(...a));let l=await n(...a);if(typeof o.onResponse=="function"){const s=await o.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};class dd{constructor(t){this.create=async(l,s,c)=>{var f,p;const d=new AbortController,u={method:"POST",body:JSON.stringify({model:this.model,...l}),headers:this.defaultHeaders,signal:d.signal};(f=s==null?void 0:s.onStream)==null||f.call(s,d);try{const m=await Hb(this.baseURL,{fetch:this.customOptions.fetch,...u});if(c){await this.customResponseHandler(m,s,c);return}const h=m.headers.get("content-type")||"";switch(h.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(m,s);break;case"application/json":await this.jsonResponseHandler(m,s);break;default:throw new Error(`The response content-type: ${h} is not support!`)}}catch(m){const h=m instanceof Error?m:new Error("Unknown error!");throw(p=s==null?void 0:s.onError)==null||p.call(s,h),h}},this.customResponseHandler=async(l,s,c)=>{var u,f;const d=[];for await(const p of ud({readableStream:l.body,transformStream:c}))d.push(p),(u=s==null?void 0:s.onUpdate)==null||u.call(s,p);(f=s==null?void 0:s.onSuccess)==null||f.call(s,d)},this.sseResponseHandler=async(l,s)=>{var d,u;const c=[];for await(const f of ud({readableStream:l.body}))c.push(f),(d=s==null?void 0:s.onUpdate)==null||d.call(s,f);(u=s==null?void 0:s.onSuccess)==null||u.call(s,c)},this.jsonResponseHandler=async(l,s)=>{var d,u;const c=await l.json();(d=s==null?void 0:s.onUpdate)==null||d.call(s,c),(u=s==null?void 0:s.onSuccess)==null||u.call(s,[c])};const{baseURL:n,model:o,dangerouslyApiKey:r,...a}=t;this.baseURL=t.baseURL,this.model=t.model,this.defaultHeaders={"Content-Type":"application/json",...t.dangerouslyApiKey&&{Authorization:t.dangerouslyApiKey}},this.customOptions=a}static init(t){if(!t.baseURL||typeof t.baseURL!="string")throw new Error("The baseURL is not valid!");return new dd(t)}}const _b=e=>i.computed(()=>dd.init(i.toValue(e)));let Wb=0;class kb{constructor(t){this.requestingMap=i.ref({}),this.request=(n,o,r)=>{const{request:a}=this.config,{onUpdate:l,onSuccess:s,onError:c,onStream:d}=o,u=Wb;Wb+=1,this.requestingMap.value[u]=!0,a==null||a(n,{onStream:f=>{this.requestingMap.value[u]&&(d==null||d(f))},onUpdate:f=>{this.requestingMap.value[u]&&l(f)},onSuccess:f=>{this.requestingMap.value[u]&&(s(f),this.finishRequest(u))},onError:f=>{this.requestingMap.value[u]&&(c(f),this.finishRequest(u))}},r)},this.config=t}finishRequest(t){delete this.requestingMap.value[t]}isRequesting(){return Object.keys(this.requestingMap.value).length>0}}function VF(e){return[i.computed(()=>{const{request:n,...o}=i.toValue(e);return new kb({request:n||_b({baseURL:o.baseURL,model:o.model,dangerouslyApiKey:o.dangerouslyApiKey}).value.create,...o})})]}function DF(e,t){const n=i.ref(e);function o(r){const a=typeof r=="function"?r(n.value):r;a!==n.value&&t(a,n.value),n.value=a}return[n,o]}function FF(e){return Array.isArray(e)?e:[e]}function LF(e){const{defaultMessages:t,agent:n,requestFallback:o,requestPlaceholder:r,parser:a,transformMessage:l,transformStream:s,resolveAbortController:c}=e,d=i.ref(0),u=i.computed(()=>(t||[]).map((S,$)=>({id:`default_${$}`,status:"local",...S}))),[f,p]=DF(u.value,()=>{}),m=(S,$)=>{const w={id:`msg_${d.value}`,message:S,status:$};return d.value+=1,w},h=i.computed(()=>{const S=[];return f.value.forEach($=>{const w=a?a($.message):$.message,O=FF(w);O.forEach((C,I)=>{let T=$.id;O.length>1&&(T=`${T}_${I}`),S.push({id:T,message:C,status:$.status})})}),S}),g=S=>S.filter($=>$.status!=="loading"&&$.status!=="error").map($=>$.message),y=()=>g(f.value),b=S=>{const{chunk:$,chunks:w,originMessage:O}=S;if(typeof l=="function")return l(S);if($)return $;if(Array.isArray(w)){const C=(w==null?void 0:w.length)>0?w==null?void 0:w[(w==null?void 0:w.length)-1]:void 0;return O||C}return w};return{onRequest:za(S=>{if(!n)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let $=null,w,O={};if(S&&typeof S=="object"&&"message"in S){const{message:T,...E}=S;w=T,O=E}else w=S;p(T=>{let E=[...T,m(w,"local")];if(r){let M;typeof r=="function"?M=r(w,{messages:g(E)}):M=r;const F=m(M,"loading");$=F.id,E=[...E,F]}return E});let C=null;const I=(T,E,M)=>{let F=f.value.find(A=>A.id===C);if(F)p(A=>A.map(L=>{if(L.id===C){const P=b({originMessage:L.message,chunk:E,chunks:M,status:T});return{...L,message:P,status:T}}return L}));else{const A=b({chunk:E,status:T,chunks:M});F=m(A,T),p(L=>[...L.filter(N=>N.id!==$),F]),C=F.id}return F};n.request({message:w,messages:y(),...O},{onUpdate:T=>{I("loading",T,[])},onSuccess:T=>{I("success",void 0,T)},onError:async T=>{if(o){let E;typeof o=="function"?E=await o(w,{error:T,messages:y()}):E=o,p(M=>[...M.filter(F=>F.id!==$&&F.id!==C),m(E,"error")])}else p(E=>E.filter(M=>M.id!==$&&M.id!==C))},onStream:T=>{c==null||c(T)}},s)}),messages:f,parsedMessages:h,setMessages:p}}const Xb=function(e){return Object.keys(Bb).forEach(t=>{const n=Bb[t];n.install&&e.use(n)}),e.use(F7.StyleProvider),e},jF={install:Xb};oe.Attachments=Qr,oe.Bubble=Gr,oe.BubbleList=Xr,oe.Conversations=bb,oe.Keyframes=ku,oe.Prompts=Lo,oe.Sender=Yr,oe.StyleProvider=Tu,oe.Suggestion=Sb,oe.Theme=Vu,oe.ThoughtChain=jb,oe.Welcome=wb,oe.XAgent=kb,oe.XFetch=Hb,oe.XProvider=Ay,oe.XRequest=_b,oe.XStream=ud,oe._experimental=L7,oe.createCache=Ro,oe.createTheme=ky,oe.default=jF,oe.defaultPrefixCls=bd,oe.extractStyle=N7,oe.install=Xb,oe.legacyLogicalPropertiesTransformer=M7,oe.legacyNotSelectorLinter=y7,oe.logicalPropertiesLinter=b7,oe.parentSelectorLinter=w7,oe.px2remTransformer=D7,oe.theme=No,oe.token2CSSVar=Wr,oe.unit=yt,oe.useCSSVarRegister=eb,oe.useCacheToken=Ky,oe.useStyleInject=Ao,oe.useStyleProvider=Iu,oe.useStyleRegister=Wu,oe.useXAgent=VF,oe.useXChat=LF,oe.useXProviderContext=ke,Object.defineProperties(oe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});