Files
kefu/deploy/ark-chat-config-20260917/payload/admin-web/apps/web-antd/dist/js/config-provider-D1kcLCP5.js
T
2026-09-21 10:34:06 +08:00

14 lines
38 KiB
JavaScript

import{Cn as e,D as t,Ht as n,Ut as r,ct as i,ft as a,g as o,gn as s,gt as c,k as l,u,vn as d,xn as f}from"./runtime-core.esm-bundler-DkysjgTd.js";import{f as p,n as m}from"./runtime-dom.esm-bundler-CirRHyjC.js";import{t as h}from"./module-CyhaP5hi.js";import{r as g,t as _}from"./en_US-Cv9hrLhb.js";import{$ as v,A as y,B as b,D as x,E as S,H as ee,I as te,L as ne,M as re,N as ie,O as C,St as w,Tt as T,c as ae,h as oe,i as se,l as ce,m as le,n as ue,o as de,s as fe,t as E,u as pe,vt as D,w as O,wt as me,x as he,z as ge}from"./useConfigInject-z_xeO0pP.js";import{t as k}from"./Keyframes-K60KFfv3.js";import{t as _e}from"./motionUtil-BeNb4tZl.js";import{i as ve,t as ye}from"./Portal-jWUJieln.js";import{t as A}from"./AntdIcon-BN7vh055.js";import{t as j}from"./LoadingOutlined-tpSKTswf.js";import{t as M}from"./CloseOutlined-BdX5pn5u.js";import{t as N}from"./CloseCircleFilled-C9x0ZM0q.js";import{t as P}from"./CheckCircleFilled-CvJ3C2gR.js";var be={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`check-circle`,theme:`outlined`};function xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Se(e,t,n[t])})}return e}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=function(e,n){var r=xe({},e,n.attrs);return t(A,xe({},r,{icon:be}),null)};F.displayName=`CheckCircleOutlined`,F.inheritAttrs=!1;var Ce={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z`}}]},name:`exclamation-circle`,theme:`outlined`};function we(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Te(e,t,n[t])})}return e}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=function(e,n){var r=we({},e,n.attrs);return t(A,we({},r,{icon:Ce}),null)};I.displayName=`ExclamationCircleOutlined`,I.inheritAttrs=!1;var Ee={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z`}}]},name:`info-circle`,theme:`outlined`};function De(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Oe(e,t,n[t])})}return e}function Oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=function(e,n){var r=De({},e,n.attrs);return t(A,De({},r,{icon:Ee}),null)};L.displayName=`InfoCircleOutlined`,L.inheritAttrs=!1;var ke={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z`}}]},name:`close-circle`,theme:`outlined`};function Ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){je(e,t,n[t])})}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(e,n){var r=Ae({},e,n.attrs);return t(A,Ae({},r,{icon:ke}),null)};R.displayName=`CloseCircleOutlined`,R.inheritAttrs=!1;var Me={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`exclamation-circle`,theme:`filled`};function Ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Pe(e,t,n[t])})}return e}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z=function(e,n){var r=Ne({},e,n.attrs);return t(A,Ne({},r,{icon:Me}),null)};z.displayName=`ExclamationCircleFilled`,z.inheritAttrs=!1;var Fe={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`info-circle`,theme:`filled`};function Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Le(e,t,n[t])})}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B=function(e,n){var r=Ie({},e,n.attrs);return t(A,Ie({},r,{icon:Fe}),null)};B.displayName=`InfoCircleFilled`,B.inheritAttrs=!1;var V=g({},_.Modal);function Re(e){V=e?g(g({},V),e):g({},_.Modal)}function ze(){return V}var H=`internalMark`,U=l({compatConfig:{MODE:3},name:`ALocaleProvider`,props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:r}=t;C(e.ANT_MARK__===H,`LocaleProvider`,"`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");let i=s({antLocale:g(g({},e.locale),{exist:!0}),ANT_MARK__:H});return c(`localeData`,i),n(()=>e.locale,e=>{Re(e&&e.Modal),i.antLocale=g(g({},e),{exist:!0})},{immediate:!0}),()=>{var e;return(e=r.default)==null?void 0:e.call(r)}}});U.install=function(e){return e.component(U.name,U),e};var Be=v(U),W=l({name:`Notice`,inheritAttrs:!1,props:[`prefixCls`,`duration`,`updateMark`,`noticeKey`,`closeIcon`,`closable`,`props`,`onClick`,`onClose`,`holder`,`visible`],setup(e,r){let{attrs:s,slots:c}=r,l,d=!1,f=o(()=>e.duration===void 0?4.5:e.duration),p=()=>{f.value&&!d&&(l=setTimeout(()=>{h()},f.value*1e3))},m=()=>{l&&(clearTimeout(l),l=null)},h=t=>{t&&t.stopPropagation(),m();let{onClose:n,noticeKey:r}=e;n&&n(r)},g=()=>{m(),p()};return i(()=>{p()}),a(()=>{d=!0,m()}),n([f,()=>e.updateMark,()=>e.visible],(e,t)=>{let[n,r,i]=e,[a,o,s]=t;(n!==a||r!==o||i!==s&&s)&&g()},{flush:`post`}),()=>{var n,r;let{prefixCls:i,closable:a,closeIcon:o=(n=c.closeIcon)==null?void 0:n.call(c),onClick:l,holder:d}=e,{class:f,style:g}=s,_=`${i}-notice`,v=Object.keys(s).reduce((e,t)=>((t.startsWith(`data-`)||t.startsWith(`aria-`)||t===`role`)&&(e[t]=s[t]),e),{}),y=t(`div`,T({class:D(_,f,{[`${_}-closable`]:a}),style:g,onMouseenter:m,onMouseleave:p,onClick:l},v),[t(`div`,{class:`${_}-content`},[(r=c.default)==null?void 0:r.call(c)]),a?t(`a`,{tabindex:0,onClick:h,class:`${_}-close`},[o||t(`span`,{class:`${_}-close-x`},null)]):null]);return d?t(u,{to:d},{default:()=>y}):y}}}),Ve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},He=0,Ue=Date.now();function We(){let e=He;return He+=1,`rcNotification_${Ue}_${e}`}var G=l({name:`Notification`,inheritAttrs:!1,props:[`prefixCls`,`transitionName`,`animation`,`maxCount`,`closeIcon`,`hashId`],setup(n,r){let{attrs:i,expose:a,slots:s}=r,c=new Map,l=d([]),u=o(()=>{let{prefixCls:e,animation:t=`fade`}=n,r=n.transitionName;return!r&&t&&(r=`${e}-${t}`),ve(r)}),f=(e,t)=>{let r=e.key||We(),i=g(g({},e),{key:r}),{maxCount:a}=n,o=l.value.map(e=>e.notice.key).indexOf(r),s=l.value.concat();o===-1?(a&&l.value.length>=a&&(i.key=s[0].notice.key,i.updateMark=We(),i.userPassKey=r,s.shift()),s.push({notice:i,holderCallback:t})):s.splice(o,1,{notice:i,holderCallback:t}),l.value=s},p=t=>{l.value=e(l.value).filter(e=>{let{notice:{key:n,userPassKey:r}}=e;return(r||n)!==t})};return a({add:f,remove:p,notices:l}),()=>{var e;let{prefixCls:r,closeIcon:a=(e=s.closeIcon)==null?void 0:e.call(s,{prefixCls:r})}=n,o=l.value.map((e,i)=>{let{notice:o,holderCallback:s}=e,u=i===l.value.length-1?o.updateMark:void 0,{key:d,userPassKey:f}=o,{content:m}=o,h=g(g(g({prefixCls:r,closeIcon:typeof a==`function`?a({prefixCls:r}):a},o),o.props),{key:d,noticeKey:f||d,updateMark:u,onClose:e=>{var t;p(e),(t=o.onClose)==null||t.call(o)},onClick:o.onClick});return s?t(`div`,{key:d,class:`${r}-hook-holder`,ref:e=>{d!==void 0&&(e?(c.set(d,e),s(e,h)):c.delete(d))}},null):t(W,T(T({},h),{},{class:D(h.class,n.hashId)}),{default:()=>[typeof m==`function`?m({prefixCls:r}):m]})}),d={[r]:1,[i.class]:!!i.class,[n.hashId]:!0};return t(`div`,{class:d,style:i.style||{top:`65px`,left:`50%`}},[t(m,T({tag:`div`},u.value),{default:()=>[o]})])}}});G.newInstance=function(e,n){let r=e||{},{name:a=`notification`,getContainer:s,appContext:c,prefixCls:u,rootPrefixCls:d,transitionName:m,hasTransitionName:h,useStyle:g}=r,_=Ve(r,[`name`,`getContainer`,`appContext`,`prefixCls`,`rootPrefixCls`,`transitionName`,`hasTransitionName`,`useStyle`]),v=document.createElement(`div`);s?s().appendChild(v):document.body.appendChild(v);let y=l({compatConfig:{MODE:3},name:`NotificationWrapper`,setup(e,r){let{attrs:s}=r,c=f(),l=o(()=>Q.getPrefixCls(a,u)),[,_]=g(l);return i(()=>{n({notice(e){var t;(t=c.value)==null||t.add(e)},removeNotice(e){var t;(t=c.value)==null||t.remove(e)},destroy(){p(null,v),v.parentNode&&v.parentNode.removeChild(v)},component:c})}),()=>{let e=Q,n=e.getRootPrefixCls(d,l.value),r=h?m:`${l.value}-${m}`;return t($,T(T({},e),{},{prefixCls:n}),{default:()=>[t(G,T(T({ref:c},s),{},{prefixCls:l.value,transitionName:r,hashId:_.value}),null)]})}}}),b=t(y,_);b.appContext=c||b.appContext,p(b,v)};var Ge=0,Ke=Date.now();function qe(){let e=Ge;return Ge+=1,`rcNotification_${Ke}_${e}`}var Je=l({name:`HookNotification`,inheritAttrs:!1,props:[`prefixCls`,`transitionName`,`animation`,`maxCount`,`closeIcon`,`hashId`,`remove`,`notices`,`getStyles`,`getClassName`,`onAllRemoved`,`getContainer`],setup(e,r){let{attrs:i,slots:a}=r,s=new Map,c=o(()=>e.notices),l=o(()=>{let t=e.transitionName;if(!t&&e.animation)switch(typeof e.animation){case`string`:t=e.animation;break;case`function`:t=e.animation().name;break;case`object`:t=e.animation.name;break;default:t=`${e.prefixCls}-fade`}return ve(t)}),u=t=>e.remove(t),f=d({});n(c,()=>{let t={};Object.keys(f.value).forEach(e=>{t[e]=[]}),e.notices.forEach(e=>{let{placement:n=`topRight`}=e.notice;n&&(t[n]=t[n]||[],t[n].push(e))}),f.value=t});let p=o(()=>Object.keys(f.value));return()=>{var n;let{prefixCls:r,closeIcon:o=(n=a.closeIcon)==null?void 0:n.call(a,{prefixCls:r})}=e,d=p.value.map(n=>{var a,d;let p=f.value[n],h=(a=e.getClassName)==null?void 0:a.call(e,n),_=(d=e.getStyles)==null?void 0:d.call(e,n),v=p.map((n,i)=>{let{notice:a,holderCallback:l}=n,d=i===c.value.length-1?a.updateMark:void 0,{key:f,userPassKey:p}=a,{content:m}=a,h=g(g(g({prefixCls:r,closeIcon:typeof o==`function`?o({prefixCls:r}):o},a),a.props),{key:f,noticeKey:p||f,updateMark:d,onClose:e=>{var t;u(e),(t=a.onClose)==null||t.call(a)},onClick:a.onClick});return l?t(`div`,{key:f,class:`${r}-hook-holder`,ref:e=>{f!==void 0&&(e?(s.set(f,e),l(e,h)):s.delete(f))}},null):t(W,T(T({},h),{},{class:D(h.class,e.hashId)}),{default:()=>[typeof m==`function`?m({prefixCls:r}):m]})}),y={[r]:1,[`${r}-${n}`]:1,[i.class]:!!i.class,[e.hashId]:!0,[h]:!!h};function b(){var t;p.length>0||(Reflect.deleteProperty(f.value,n),(t=e.onAllRemoved)==null||t.call(e))}return t(`div`,{key:n,class:y,style:i.style||_||{top:`65px`,left:`50%`}},[t(m,T(T({tag:`div`},l.value),{},{onAfterLeave:b}),{default:()=>[v]})])});return t(ye,{getContainer:e.getContainer},{default:()=>[d]})}}}),Ye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Xe=()=>document.body,Ze=0;function Qe(){let e={};return[...arguments].forEach(t=>{t&&Object.keys(t).forEach(n=>{let r=t[n];r!==void 0&&(e[n]=r)})}),e}function $e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{getContainer:r=Xe,motion:i,prefixCls:a,maxCount:o,getClassName:s,getStyles:c,onAllRemoved:l}=e,u=Ye(e,[`getContainer`,`motion`,`prefixCls`,`maxCount`,`getClassName`,`getStyles`,`onAllRemoved`]),d=f([]),p=f(),m=(e,t)=>{let n=e.key||qe(),r=g(g({},e),{key:n}),i=d.value.map(e=>e.notice.key).indexOf(n),a=d.value.concat();i===-1?(o&&d.value.length>=o&&(r.key=a[0].notice.key,r.updateMark=qe(),r.userPassKey=n,a.shift()),a.push({notice:r,holderCallback:t})):a.splice(i,1,{notice:r,holderCallback:t}),d.value=a},h=e=>{d.value=d.value.filter(t=>{let{notice:{key:n,userPassKey:r}}=t;return(r||n)!==e})},_=()=>{d.value=[]},v=()=>t(Je,{ref:p,prefixCls:a,maxCount:o,notices:d.value,remove:h,getClassName:s,getStyles:c,animation:i,hashId:e.hashId,onAllRemoved:l,getContainer:r},null),y=f([]);return n(y,()=>{y.value.length&&(y.value.forEach(e=>{switch(e.type){case`open`:m(e.config);break;case`close`:h(e.key);break;case`destroy`:_()}}),y.value=[])}),[{open:e=>{let t=Qe(u,e);(t.key===null||t.key===void 0)&&(t.key=`vc-notification-${Ze}`,Ze+=1),y.value=[...y.value,{type:`open`,config:t}]},close:e=>{y.value=[...y.value,{type:`close`,key:e}]},destroy:()=>{y.value=[...y.value,{type:`destroy`}]}},v]}var et=G,tt=e=>{let{componentCls:t,iconCls:n,boxShadowSecondary:r,colorBgElevated:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:c,fontSizeLG:l,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:m,zIndexPopup:h,messageNoticeContentPadding:_}=e,v=new k(`MessageMoveIn`,{"0%":{padding:0,transform:`translateY(-100%)`,opacity:0},"100%":{padding:p,transform:`translateY(0)`,opacity:1}}),y=new k(`MessageMoveOut`,{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:g(g({},le(e)),{position:`fixed`,top:f,left:`50%`,transform:`translateX(-50%)`,width:`100%`,pointerEvents:`none`,zIndex:h,[`${t}-move-up`]:{animationFillMode:`forwards`},[`
${t}-move-up-appear,
${t}-move-up-enter
`]:{animationName:v,animationDuration:d,animationPlayState:`paused`,animationTimingFunction:u},[`
${t}-move-up-appear${t}-move-up-appear-active,
${t}-move-up-enter${t}-move-up-enter-active
`]:{animationPlayState:`running`},[`${t}-move-up-leave`]:{animationName:y,animationDuration:d,animationPlayState:`paused`,animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:`running`},"&-rtl":{direction:`rtl`,span:{direction:`rtl`}}})},{[`${t}-notice`]:{padding:p,textAlign:`center`,[n]:{verticalAlign:`text-bottom`,marginInlineEnd:f,fontSize:l},[`${t}-notice-content`]:{display:`inline-block`,padding:_,background:i,borderRadius:m,boxShadow:r,pointerEvents:`all`},[`${t}-success ${n}`]:{color:a},[`${t}-error ${n}`]:{color:o},[`${t}-warning ${n}`]:{color:s},[`
${t}-info ${n},
${t}-loading ${n}`]:{color:c}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:`start`}}]},K=pe(`Message`,e=>[tt(ce(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))],e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),nt={info:t(B,null,null),success:t(P,null,null),error:t(N,null,null),warning:t(z,null,null),loading:t(j,null,null)},rt=l({name:`PureContent`,inheritAttrs:!1,props:[`prefixCls`,`type`,`icon`],setup(e,n){let{slots:r}=n;return()=>{var n;return t(`div`,{class:D(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||nt[e.type],t(`span`,null,[(n=r.default)==null?void 0:n.call(r)])])}}});l({name:`PurePanel`,inheritAttrs:!1,props:[`prefixCls`,`class`,`type`,`icon`,`content`],setup(e,n){let{slots:r,attrs:i}=n;var a;let{getPrefixCls:s}=ge(),c=o(()=>e.prefixCls||s(`message`)),[,l]=K(c);return t(W,T(T({},i),{},{prefixCls:c.value,class:D(l.value,`${c.value}-notice-pure-panel`),noticeKey:`pure`,duration:null}),{default:()=>[t(rt,{prefixCls:c.value,type:e.type,icon:e.icon},{default:()=>[(a=r.default)==null?void 0:a.call(r)]})]})}});var it=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},at=8,ot=3,st=l({name:`Holder`,inheritAttrs:!1,props:[`top`,`prefixCls`,`getContainer`,`maxCount`,`duration`,`rtl`,`transitionName`,`onAllRemoved`,`animation`,`staticGetContainer`],setup(e,n){let{expose:r}=n;var i,a;let{getPrefixCls:s,getPopupContainer:c}=E(`message`,e),l=o(()=>s(`message`,e.prefixCls)),[,u]=K(l),d=()=>{var t;let n=(t=e.top)==null?at:t;return{left:`50%`,transform:`translateX(-50%)`,top:typeof n==`number`?`${n}px`:n}},f=()=>D(u.value,e.rtl?`${l.value}-rtl`:``),p=()=>{var t;return _e({prefixCls:l.value,animation:(t=e.animation)==null?`move-up`:t,transitionName:e.transitionName})},m=t(`span`,{class:`${l.value}-close-x`},[t(M,{class:`${l.value}-close-icon`},null)]),[h,_]=$e({getStyles:d,prefixCls:l.value,getClassName:f,motion:p,closable:!1,closeIcon:m,duration:(i=e.duration)==null?ot:i,getContainer:(a=e.staticGetContainer)==null?c.value:a,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return r(g(g({},h),{prefixCls:l,hashId:u})),_}}),ct=0;function lt(e){let n=f(null),r=Symbol(`messageHolderKey`),i=e=>{var t;(t=n.value)==null||t.close(e)},a=e=>{if(!n.value){let e=()=>{};return e.then=()=>{},e}let{open:r,prefixCls:a,hashId:o}=n.value,s=`${a}-notice`,{content:c,icon:l,type:u,key:d,class:f,onClose:p}=e,m=it(e,[`content`,`icon`,`type`,`key`,`class`,`onClose`]),h=d;return h==null&&(ct+=1,h=`antd-message-${ct}`),me(e=>(r(g(g({},m),{key:h,content:()=>t(rt,{prefixCls:a,type:u,icon:typeof l==`function`?l():l},{default:()=>[typeof c==`function`?c():c]}),placement:`top`,class:D(u&&`${s}-${u}`,o,f),onClose:()=>{p==null||p(),e()}})),()=>{i(h)}))},o={open:a,destroy:e=>{var t;e===void 0?(t=n.value)==null||t.destroy():i(e)}};return[`info`,`success`,`warning`,`error`,`loading`].forEach(e=>{o[e]=(t,n,r)=>{let i;i=t&&typeof t==`object`&&`content`in t?t:{content:t};let o,s;typeof n==`function`?s=n:(o=n,s=r);let c=g(g({onClose:s,duration:o},i),{type:e});return a(c)}}),[o,()=>t(st,T(T({key:r},e),{},{ref:n}),null)]}function ut(e){return lt(e)}var dt=3,ft,q,pt=1,mt=``,ht=`move-up`,gt=!1,_t=()=>document.body,vt,yt=!1;function bt(){return pt++}function xt(e){e.top!==void 0&&(ft=e.top,q=null),e.duration!==void 0&&(dt=e.duration),e.prefixCls!==void 0&&(mt=e.prefixCls),e.getContainer!==void 0&&(_t=e.getContainer,q=null),e.transitionName!==void 0&&(ht=e.transitionName,q=null,gt=!0),e.maxCount!==void 0&&(vt=e.maxCount,q=null),e.rtl!==void 0&&(yt=e.rtl)}function St(e,t){if(q){t(q);return}et.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||mt,rootPrefixCls:e.rootPrefixCls,transitionName:ht,hasTransitionName:gt,style:{top:ft},getContainer:_t||e.getPopupContainer,maxCount:vt,name:`message`,useStyle:K},e=>{if(q){t(q);return}q=e,t(e)})}var Ct={info:B,success:P,error:N,warning:z,loading:j},wt=Object.keys(Ct);function Tt(e){let n=e.duration===void 0?dt:e.duration,r=e.key||bt(),i=new Promise(i=>{let a=()=>(typeof e.onClose==`function`&&e.onClose(),i(!0));St(e,i=>{i.notice({key:r,duration:n,style:e.style||{},class:e.class,content:n=>{let{prefixCls:r}=n,i=Ct[e.type],a=i?t(i,null,null):``,o=D(`${r}-custom-content`,{[`${r}-${e.type}`]:e.type,[`${r}-rtl`]:yt===!0});return t(`div`,{class:o},[typeof e.icon==`function`?e.icon():e.icon||a,t(`span`,null,[typeof e.content==`function`?e.content():e.content])])},onClose:a,onClick:e.onClick})})}),a=()=>{q&&q.removeNotice(r)};return a.then=(e,t)=>i.then(e,t),a.promise=i,a}function Et(e){return Object.prototype.toString.call(e)===`[object Object]`&&!!e.content}var J={open:Tt,config:xt,destroy(e){if(q){if(e){let{removeNotice:t}=q;t(e)}else{let{destroy:e}=q;e(),q=null}}}};function Dt(e,t){e[t]=(n,r,i)=>Et(n)?e.open(g(g({},n),{type:t})):(typeof r==`function`&&(i=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:i}))}wt.forEach(e=>Dt(J,e)),J.warn=J.warning,J.useMessage=ut;var Ot=e=>{let{componentCls:t,width:n,notificationMarginEdge:r}=e,i=new k(`antNotificationTopFadeIn`,{"0%":{marginTop:`-100%`,opacity:0},"100%":{marginTop:0,opacity:1}}),a=new k(`antNotificationBottomFadeIn`,{"0%":{marginBottom:`-100%`,opacity:0},"100%":{marginBottom:0,opacity:1}}),o=new k(`antNotificationLeftFadeIn`,{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}}}},kt=e=>{let{iconCls:t,componentCls:n,boxShadowSecondary:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:c,colorWarning:l,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,motionDurationMid:h,motionEaseInOut:_,fontSize:v,lineHeight:y,width:b,notificationIconSize:x}=e,S=`${n}-notice`,ee=new k(`antNotificationFadeIn`,{"0%":{left:{_skip_check_:!0,value:b},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),te=new k(`antNotificationFadeOut`,{"0%":{maxHeight:e.animationMaxHeight,marginBottom:a,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:g(g(g(g({},le(e)),{position:`fixed`,zIndex:e.zIndexPopup,marginInlineEnd:m,[`${n}-hook-holder`]:{position:`relative`},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:`auto auto`}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:`auto`,marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:_,animationFillMode:`both`,opacity:0,animationPlayState:`paused`},[`${n}-fade-leave`]:{animationTimingFunction:_,animationFillMode:`both`,animationDuration:h,animationPlayState:`paused`},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:ee,animationPlayState:`running`},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:te,animationPlayState:`running`}}),Ot(e)),{"&-rtl":{direction:`rtl`,[`${n}-notice-btn`]:{float:`left`}}})},{[S]:{position:`relative`,width:b,maxWidth:`calc(100vw - ${m*2}px)`,marginBottom:a,marginInlineStart:`auto`,padding:p,overflow:`hidden`,lineHeight:y,wordWrap:`break-word`,background:f,borderRadius:o,boxShadow:r,[`${n}-close-icon`]:{fontSize:v,cursor:`pointer`},[`${S}-message`]:{marginBottom:e.marginXS,color:d,fontSize:i,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:v},[`&${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+x,fontSize:i},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.marginSM+x,fontSize:v},[`${S}-icon`]:{position:`absolute`,fontSize:x,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:l},[`&-error${t}`]:{color:u}},[`${S}-close`]:{position:`absolute`,top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:`none`,width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:`flex`,alignItems:`center`,justifyContent:`center`,"&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?`transparent`:e.colorFillContent}},[`${S}-btn`]:{float:`right`,marginTop:e.marginSM}}},{[`${S}-pure-panel`]:{margin:0}}]},At=pe(`Notification`,e=>{let t=e.paddingMD,n=e.paddingLG;return[kt(ce(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55}))]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function jt(e,n){return n||t(`span`,{class:`${e}-close-x`},[t(M,{class:`${e}-close-icon`},null)])}t(B,null,null),t(P,null,null),t(N,null,null),t(z,null,null),t(j,null,null);var Mt={success:P,info:B,error:N,warning:z};function Nt(e){let{prefixCls:n,icon:r,type:i,message:a,description:o,btn:s}=e,c=null;if(r)c=t(`span`,{class:`${n}-icon`},[w(r)]);else if(i){let e=Mt[i];c=t(e,{class:`${n}-icon ${n}-icon-${i}`},null)}return t(`div`,{class:D({[`${n}-with-icon`]:c}),role:`alert`},[c,t(`div`,{class:`${n}-message`},[a]),t(`div`,{class:`${n}-description`},[o]),s&&t(`div`,{class:`${n}-btn`},[s])])}l({name:`PurePanel`,inheritAttrs:!1,props:[`prefixCls`,`icon`,`type`,`message`,`description`,`btn`,`closeIcon`],setup(e){let{getPrefixCls:n}=E(`notification`,e),r=o(()=>e.prefixCls||n(`notification`)),i=o(()=>`${r.value}-notice`),[,a]=At(r);return()=>t(W,T(T({},e),{},{prefixCls:r.value,class:D(a.value,`${i.value}-pure-panel`),noticeKey:`pure`,duration:null,closable:e.closable,closeIcon:jt(r.value,e.closeIcon)}),{default:()=>[t(Nt,{prefixCls:i.value,icon:e.icon,type:e.type,message:e.message,description:e.description,btn:e.btn},null)]})}});function Pt(e,t,n){let r;switch(t=typeof t==`number`?`${t}px`:t,n=typeof n==`number`?`${n}px`:n,e){case`top`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:t,bottom:`auto`};break;case`topLeft`:r={left:0,top:t,bottom:`auto`};break;case`topRight`:r={right:0,top:t,bottom:`auto`};break;case`bottom`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:`auto`,bottom:n};break;case`bottomLeft`:r={left:0,top:`auto`,bottom:n};break;default:r={right:0,top:`auto`,bottom:n}}return r}function Ft(e){return{name:`${e}-fade`}}var It=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Lt=24,Rt=4.5,zt=l({name:`Holder`,inheritAttrs:!1,props:[`prefixCls`,`class`,`type`,`icon`,`content`,`onAllRemoved`],setup(e,t){let{expose:n}=t,{getPrefixCls:r,getPopupContainer:i}=E(`notification`,e),a=o(()=>e.prefixCls||r(`notification`)),s=t=>{var n,r;return Pt(t,(n=e.top)==null?Lt:n,(r=e.bottom)==null?Lt:r)},[,c]=At(a),[l,u]=$e({prefixCls:a.value,getStyles:s,getClassName:()=>D(c.value,{[`${a.value}-rtl`]:e.rtl}),motion:()=>Ft(a.value),closable:!0,closeIcon:jt(a.value),duration:Rt,getContainer:()=>{var t,n;return((t=e.getPopupContainer)==null?void 0:t.call(e))||((n=i.value)==null?void 0:n.call(i))||document.body},maxCount:e.maxCount,hashId:c.value,onAllRemoved:e.onAllRemoved});return n(g(g({},l),{prefixCls:a.value,hashId:c})),u}});function Bt(e){let n=f(null),r=Symbol(`notificationHolderKey`),i=e=>{if(!n.value)return;let{open:r,prefixCls:i,hashId:a}=n.value,o=`${i}-notice`,{message:s,description:c,icon:l,type:u,btn:d,class:f}=e,p=It(e,[`message`,`description`,`icon`,`type`,`btn`,`class`]);return r(g(g({placement:`topRight`},p),{content:()=>t(Nt,{prefixCls:o,icon:typeof l==`function`?l():l,type:u,message:typeof s==`function`?s():s,description:typeof c==`function`?c():c,btn:typeof d==`function`?d():d},null),class:D(u&&`${o}-${u}`,a,f)}))},a={open:i,destroy:e=>{var t,r;e===void 0?(r=n.value)==null||r.destroy():(t=n.value)==null||t.close(e)}};return[`success`,`info`,`warning`,`error`].forEach(e=>{a[e]=t=>i(g(g({},t),{type:e}))}),[a,()=>t(zt,T(T({key:r},e),{},{ref:n}),null)]}function Vt(e){return Bt(e)}var Y={},Ht=4.5,Ut=`24px`,Wt=`24px`,Gt=``,Kt=`topRight`,qt=()=>document.body,Jt=null,Yt=!1,Xt;function Zt(e){let{duration:t,placement:n,bottom:r,top:i,getContainer:a,closeIcon:o,prefixCls:s}=e;s!==void 0&&(Gt=s),t!==void 0&&(Ht=t),n!==void 0&&(Kt=n),r!==void 0&&(Wt=typeof r==`number`?`${r}px`:r),i!==void 0&&(Ut=typeof i==`number`?`${i}px`:i),a!==void 0&&(qt=a),o!==void 0&&(Jt=o),e.rtl!==void 0&&(Yt=e.rtl),e.maxCount!==void 0&&(Xt=e.maxCount)}function Qt(e,n){let{prefixCls:r,placement:i=Kt,getContainer:a=qt,top:o,bottom:s,closeIcon:c=Jt,appContext:l}=e,{getPrefixCls:u}=fn(),d=u(`notification`,r||Gt),f=`${d}-${i}-${Yt}`,p=Y[f];if(p){Promise.resolve(p).then(e=>{n(e)});return}let m=D(`${d}-${i}`,{[`${d}-rtl`]:Yt===!0});et.newInstance({name:`notification`,prefixCls:r||Gt,useStyle:At,class:m,style:Pt(i,o==null?Ut:o,s==null?Wt:s),appContext:l,getContainer:a,closeIcon:e=>{let{prefixCls:n}=e;return t(`span`,{class:`${n}-close-x`},[w(c,{},t(M,{class:`${n}-close-icon`},null))])},maxCount:Xt,hasTransitionName:!0},e=>{Y[f]=e,n(e)})}var $t={success:F,info:L,error:R,warning:I};function en(e){let{icon:n,type:r,description:i,message:a,btn:o}=e,s=e.duration===void 0?Ht:e.duration;Qt(e,c=>{c.notice({content:e=>{let{prefixCls:s}=e,c=`${s}-notice`,l=null;if(n)l=()=>t(`span`,{class:`${c}-icon`},[w(n)]);else if(r){let e=$t[r];l=()=>t(e,{class:`${c}-icon ${c}-icon-${r}`},null)}return t(`div`,{class:l?`${c}-with-icon`:``},[l&&l(),t(`div`,{class:`${c}-message`},[!i&&l?t(`span`,{class:`${c}-message-single-line-auto-margin`},null):null,w(a)]),t(`div`,{class:`${c}-description`},[w(i)]),o?t(`span`,{class:`${c}-btn`},[w(o)]):null])},duration:s,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}var X={open:en,close(e){Object.keys(Y).forEach(t=>Promise.resolve(Y[t]).then(t=>{t.removeNotice(e)}))},config:Zt,destroy(){Object.keys(Y).forEach(e=>{Promise.resolve(Y[e]).then(e=>{e.destroy()}),delete Y[e]})}};[`success`,`info`,`warning`,`error`].forEach(e=>{X[e]=t=>X.open(g(g({},t),{type:e}))}),X.warn=X.warning,X.useNotification=Vt;var tn=`-ant-${Date.now()}-${Math.random()}`;function nn(e,t){let n={},r=(e,t)=>{let n=e.clone();return n=(t==null?void 0:t(n))||n,n.toRgbString()},i=(e,t)=>{let i=new h(e),a=O(i.toRgbString());n[`${t}-color`]=r(i),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=i.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){i(t.primaryColor,`primary`);let e=new h(t.primaryColor),a=O(e.toRgbString());a.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n[`primary-color-deprecated-l-35`]=r(e,e=>e.lighten(35)),n[`primary-color-deprecated-l-20`]=r(e,e=>e.lighten(20)),n[`primary-color-deprecated-t-20`]=r(e,e=>e.tint(20)),n[`primary-color-deprecated-t-50`]=r(e,e=>e.tint(50)),n[`primary-color-deprecated-f-12`]=r(e,e=>e.setAlpha(e.getAlpha()*.12));let o=new h(a[0]);n[`primary-color-active-deprecated-f-30`]=r(o,e=>e.setAlpha(e.getAlpha()*.3)),n[`primary-color-active-deprecated-d-02`]=r(o,e=>e.darken(2))}return t.successColor&&i(t.successColor,`success`),t.warningColor&&i(t.warningColor,`warning`),t.errorColor&&i(t.errorColor,`error`),t.infoColor&&i(t.infoColor,`info`),`
:root {
${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join(`
`)}
}
`.trim()}function rn(e,t){let n=nn(e,t);re()?y(n,`${tn}-dynamic-theme`):C(!1,`ConfigProvider`,`SSR do not support dynamic theme with css variables.`)}var an=e=>{let[t,n]=ae();return S(o(()=>({theme:t.value,token:n.value,hashId:``,path:[`ant-design-icons`,e.value]})),()=>[{[`.${e.value}`]:g(g({},oe()),{[`.${e.value} .${e.value}-icon`]:{display:`block`}})}])};function on(e,t){let n=o(()=>(e==null?void 0:e.value)||{}),r=o(()=>n.value.inherit===!1||!(t!=null&&t.value)?fe:t.value);return o(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;let i=g({},r.value.components);return Object.keys(e.value.components||{}).forEach(t=>{i[t]=g(g({},i[t]),e.value.components[t])}),g(g(g({},r.value),n.value),{token:g(g({},r.value.token),n.value.token),components:i})})}var sn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Z(){return Q.prefixCls||`ant`}function cn(){return Q.iconPrefixCls||`anticon`}var ln=s({}),Q=s({});r(()=>{g(Q,ln),Q.prefixCls=Z(),Q.iconPrefixCls=cn(),Q.getPrefixCls=(e,t)=>t||(e?`${Q.prefixCls}-${e}`:Q.prefixCls),Q.getRootPrefixCls=()=>Q.prefixCls?Q.prefixCls:Z()});var un,dn=e=>{un&&un(),un=r(()=>{g(ln,s(e)),g(Q,s(e))}),e.theme&&rn(Z(),e.theme)},fn=()=>({getPrefixCls:(e,t)=>t||(e?`${Z()}-${e}`:Z()),getIconPrefixCls:cn,getRootPrefixCls:()=>Q.prefixCls?Q.prefixCls:Z()}),$=l({compatConfig:{MODE:3},name:`AConfigProvider`,inheritAttrs:!1,props:ne(),setup(e,i){let{slots:a}=i,s=ge(),c=(t,n)=>{let{prefixCls:r=`ant`}=e;if(n)return n;let i=r||s.getPrefixCls(``);return t?`${i}-${t}`:i},l=o(()=>e.iconPrefixCls||s.iconPrefixCls.value||`anticon`),u=o(()=>l.value!==s.iconPrefixCls.value),d=o(()=>{var t;return e.csp||((t=s.csp)==null?void 0:t.value)}),f=an(l),p=on(o(()=>e.theme),o(()=>{var e;return(e=s.theme)==null?void 0:e.value})),m=t=>(e.renderEmpty||a.renderEmpty||s.renderEmpty||se)(t),h=o(()=>{var t,n;return(t=e.autoInsertSpaceInButton)==null?(n=s.autoInsertSpaceInButton)==null?void 0:n.value:t}),v=o(()=>{var t;return e.locale||((t=s.locale)==null?void 0:t.value)});n(v,()=>{ln.locale=v.value},{immediate:!0});let y=o(()=>{var t;return e.direction||((t=s.direction)==null?void 0:t.value)}),S=o(()=>{var t,n;return(t=e.space)==null?(n=s.space)==null?void 0:n.value:t}),ne=o(()=>{var t,n;return(t=e.virtual)==null?(n=s.virtual)==null?void 0:n.value:t}),re=o(()=>{var t,n;return(t=e.dropdownMatchSelectWidth)==null?(n=s.dropdownMatchSelectWidth)==null?void 0:n.value:t}),C=o(()=>{var t;return e.getTargetContainer===void 0?(t=s.getTargetContainer)==null?void 0:t.value:e.getTargetContainer}),w=o(()=>{var t;return e.getPopupContainer===void 0?(t=s.getPopupContainer)==null?void 0:t.value:e.getPopupContainer}),T=o(()=>{var t;return e.pageHeader===void 0?(t=s.pageHeader)==null?void 0:t.value:e.pageHeader}),ae=o(()=>{var t;return e.input===void 0?(t=s.input)==null?void 0:t.value:e.input}),oe=o(()=>{var t;return e.pagination===void 0?(t=s.pagination)==null?void 0:t.value:e.pagination}),ce=o(()=>{var t;return e.form===void 0?(t=s.form)==null?void 0:t.value:e.form}),le=o(()=>{var t;return e.select===void 0?(t=s.select)==null?void 0:t.value:e.select}),fe=o(()=>e.componentSize),E=o(()=>e.componentDisabled),pe=o(()=>{var t,n;return(t=e.wave)==null?(n=s.wave)==null?void 0:n.value:t}),D={csp:d,autoInsertSpaceInButton:h,locale:v,direction:y,space:S,virtual:ne,dropdownMatchSelectWidth:re,getPrefixCls:c,iconPrefixCls:l,theme:o(()=>{var e,t;return(e=p.value)==null?(t=s.theme)==null?void 0:t.value:e}),renderEmpty:m,getTargetContainer:C,getPopupContainer:w,pageHeader:T,input:ae,pagination:oe,form:ce,select:le,componentSize:fe,componentDisabled:E,transformCellText:o(()=>e.transformCellText),wave:pe},O=o(()=>{let e=p.value||{},{algorithm:t,token:n}=e,r=sn(e,[`algorithm`,`token`]),i=t&&(!Array.isArray(t)||t.length>0)?x(t):void 0;return g(g({},r),{theme:i,token:g(g({},he),n)})}),me=o(()=>{var t,n;let r={};return v.value&&(r=((t=v.value.Form)==null?void 0:t.defaultValidateMessages)||((n=_.Form)==null?void 0:n.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(r=g(g({},r),e.form.validateMessages)),r});b(D),ee({validateMessages:me}),ue(fe),te(E);let k=n=>{var r,i;let o=u.value?f((r=a.default)==null?void 0:r.call(a)):(i=a.default)==null?void 0:i.call(a);if(e.theme){let e=function(){return o}();o=t(de,{value:O.value},{default:()=>[e]})}return t(Be,{locale:v.value||n,ANT_MARK__:H},{default:()=>[o]})};return r(()=>{y.value&&(J.config({rtl:y.value===`rtl`}),X.config({rtl:y.value===`rtl`}))}),()=>t(ie,{children:(e,t,n)=>k(n)},null)}});$.config=dn,$.install=function(e){e.component($.name,$)};export{J as a,B as c,L as d,I as f,Vt as i,z as l,Q as n,ut as o,F as p,X as r,ze as s,$ as t,R as u};