File "antd-3ccb9cfc.js"

Full Path: /home/warrior1/public_html/languages/wp-content/plugins/file-manager/assets/js/antd-3ccb9cfc.js
File size: 813.23 KB
MIME-type: text/plain
Charset: utf-8

import{r as i,R as Ia,g as Xc,c as ae,d as Ns,e as qr,f as B0,a as A0}from"./react-vendor-de3885fb.js";import{_ as de}from"./@emotion/react-b0c8361f.js";function F0(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Pg(e){if(Array.isArray(e))return e}function H0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,l,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return s}}function Ts(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uc(e,t){if(e){if(typeof e=="string")return Ts(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ts(e,t)}}function Ng(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q(e,t){return Pg(e)||H0(e,t)||Uc(e,t)||Ng()}function at(e){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(e)}function k0(e,t){if(at(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(at(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tg(e){var t=k0(e,"string");return at(t)=="symbol"?t:String(t)}function F(e,t,n){return t=Tg(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K0(e){if(Array.isArray(e))return Ts(e)}function Mg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function V0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ve(e){return K0(e)||Mg(e)||Uc(e)||V0()}function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cd(Object(n),!0).forEach(function(r){F(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ei(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function un(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ms(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Sd="data-rc-order",xd="data-rc-priority",W0="rc-util-key",_s=new Map;function _g(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):W0}function Zi(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function G0(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function zg(e){return Array.from((_s.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Lg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!un())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,l=G0(r),s=l==="prependQueue",c=document.createElement("style");c.setAttribute(Sd,l),s&&a&&c.setAttribute(xd,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Zi(t),d=u.firstChild;if(r){if(s){var f=zg(u).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Sd)))return!1;var g=Number(m.getAttribute(xd)||0);return a>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function jg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Zi(t);return zg(n).find(function(r){return r.getAttribute(_g(t))===e})}function ma(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=jg(e,t);if(n){var r=Zi(t);r.removeChild(n)}}function q0(e,t){var n=_s.get(e);if(!n||!Ms(document,n)){var r=Lg("",t),o=r.parentNode;_s.set(e,o),e.removeChild(r)}}function Ir(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Zi(n);q0(r,n);var o=jg(t,n);if(o){var a,l;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((l=n.csp)===null||l===void 0?void 0:l.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=Lg(e,n);return c.setAttribute(_g(n),t),c}function X0(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Qe(e,t){if(e==null)return{};var n=X0(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _r(e,t,n){var r=i.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var zs={},U0=function(t){};function Y0(e,t){}function Z0(e,t){}function Q0(){zs={}}function Dg(e,t,n){!t&&!zs[n]&&(e(!1,n),zs[n]=!0)}function Vt(e,t){Dg(Y0,e,t)}function J0(e,t){Dg(Z0,e,t)}Vt.preMessage=U0;Vt.resetWarned=Q0;Vt.noteOnce=J0;function Vn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(a);if(Vt(!c,"Warning: There may be circular references"),c)return!1;if(a===l)return!0;if(n&&s>1)return!1;r.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(l)||a.length!==l.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],l[d],u))return!1;return!0}if(a&&l&&at(a)==="object"&&at(l)==="object"){var f=Object.keys(a);return f.length!==Object.keys(l).length?!1:f.every(function(m){return o(a[m],l[m],u)})}return!1}return o(e,t)}function fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tg(r.key),r)}}function mn(e,t,n){return t&&$d(e.prototype,t),n&&$d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ey="%";function Ls(e){return e.join(ey)}var ty=function(){function e(t){fn(this,e),F(this,"instanceId",void 0),F(this,"cache",new Map),this.instanceId=t}return mn(e,[{key:"get",value:function(n){return this.opGet(Ls(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Ls(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e}(),ny=["children"],Eo="data-token-hash",Zn="data-css-hash",wr="__cssinjs_instance__";function Bg(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Zn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[wr]=o[wr]||e,o[wr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Zn,"]"))).forEach(function(o){var a=o.getAttribute(Zn);if(r[a]){if(o[wr]===e){var l;(l=o.parentNode)===null||l===void 0||l.removeChild(o)}}else r[a]=!0})}return new ty(e)}var Oo=i.createContext({hashPriority:"low",cache:Bg(),defaultCache:!0}),E3=function(t){var n=t.children,r=Qe(t,ny),o=i.useContext(Oo),a=_r(function(){var l=D({},o);Object.keys(r).forEach(function(c){var u=r[c];r[c]!==void 0&&(l[c]=u)});var s=r.cache;return l.cache=l.cache||Bg(),l.defaultCache=!s&&o.defaultCache,l},[o,r],function(l,s){return!Vn(l[0],s[0],!0)||!Vn(l[1],s[1],!0)});return i.createElement(Oo.Provider,{value:a},n)};function ry(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Yc=function(){function e(){fn(this,e),F(this,"cache",void 0),F(this,"keys",void 0),F(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return mn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return n.forEach(function(s){if(!l)l=void 0;else{var c;l=(c=l)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=l)!==null&&r!==void 0&&r.value&&a&&(l.value[1]=this.cacheCallTimes++),(o=l)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var f=q(u,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),l=q(a,1),s=l[0];this.delete(s)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,o.cacheCallTimes++]});else{var f=c.get(u);f?f.map||(f.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var l=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),l}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!ry(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();F(Yc,"MAX_CACHE_SIZE",20);F(Yc,"MAX_CACHE_OFFSET",5);var wd=0,Ag=function(){function e(t){fn(this,e),F(this,"derivatives",void 0),F(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=wd,t.length===0&&(t.length>0,void 0),wd+=1}return mn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Al=new Yc;function ga(e){var t=Array.isArray(e)?e:[e];return Al.has(t)||Al.set(t,new Ag(t)),Al.get(t)}var oy=new WeakMap,Fl={};function ay(e,t){for(var n=oy,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Fl)||n.set(Fl,e()),n.get(Fl)}var Ed=new WeakMap;function ra(e){var t=Ed.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Ag?t+=r.id:r&&at(r)==="object"?t+=ra(r):t+=r}),Ed.set(e,t)),t}function Od(e,t){return Ei("".concat(t,"_").concat(ra(e)))}var oa="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Fg="_bAmBoO_";function iy(e,t,n){if(un()){var r,o;Ir(e,oa);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a);var l=n?n(a):(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(Fg);return(o=a.parentNode)===null||o===void 0||o.removeChild(a),ma(oa),l}return!1}var Hl=void 0;function ly(){return Hl===void 0&&(Hl=iy("@layer ".concat(oa," { .").concat(oa,' { content: "').concat(Fg,'"!important; } }'),function(e){e.className=oa})),Hl}var js=un();function H(e){return typeof e=="number"?"".concat(e,"px"):e}function Oi(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var l=D(D({},o),{},(r={},F(r,Eo,t),F(r,Zn,n),r)),s=Object.keys(l).map(function(c){var u=l[c];return u?"".concat(c,'="').concat(u,'"'):null}).filter(function(c){return c}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var Hg=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).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()},sy=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=q(o,2),l=a[0],s=a[1];return"".concat(l,":").concat(s,";")}).join(""),"}"):""},kg=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(l){var s,c,u=q(l,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,g=Hg(d,r==null?void 0:r.prefix);o[g]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(g,")")}}),[a,sy(o,n,{scope:r==null?void 0:r.scope})]},Id=un()?i.useLayoutEffect:i.useEffect,xt=function(t,n){var r=i.useRef(!0);Id(function(){return t(r.current)},n),Id(function(){return r.current=!1,function(){r.current=!0}},[])},Ds=function(t,n){xt(function(r){if(!r)return t()},n)},cy=D({},Ia),Rd=cy.useInsertionEffect,uy=function(t,n,r){i.useMemo(t,r),xt(function(){return n(!0)},r)},dy=Rd?function(e,t,n){return Rd(function(){return e(),t()},n)}:uy,fy=D({},Ia),my=fy.useInsertionEffect,gy=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return i.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},vy=function(){return function(t){t()}},py=typeof my<"u"?gy:vy;function Zc(e,t,n,r,o){var a=i.useContext(Oo),l=a.cache,s=[e].concat(ve(t)),c=Ls(s),u=py([c]),d=function(p){l.opUpdate(c,function(v){var h=v||[void 0,void 0],b=q(h,2),y=b[0],C=y===void 0?0:y,S=b[1],$=S,x=$||n(),E=[C,x];return p?p(E):E})};i.useMemo(function(){d()},[c]);var f=l.opGet(c),m=f[1];return dy(function(){o==null||o(m)},function(g){return d(function(p){var v=q(p,2),h=v[0],b=v[1];return g&&h===0&&(o==null||o(m)),[h+1,b]}),function(){l.opUpdate(c,function(p){var v=p||[],h=q(v,2),b=h[0],y=b===void 0?0:b,C=h[1],S=y-1;return S===0?(u(function(){(g||!l.opGet(c))&&(r==null||r(C,!1))}),null):[y-1,C]})}},[c]),m}var hy={},by="css",Ar=new Map;function yy(e){Ar.set(e,(Ar.get(e)||0)+1)}function Cy(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Eo,'="').concat(e,'"]'));n.forEach(function(r){if(r[wr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var Sy=0;function xy(e,t){Ar.set(e,(Ar.get(e)||0)-1);var n=Array.from(Ar.keys()),r=n.filter(function(o){var a=Ar.get(o)||0;return a<=0});n.length-r.length>Sy&&r.forEach(function(o){Cy(o,t),Ar.delete(o)})}var Kg=function(t,n,r,o){var a=r.getDerivativeToken(t),l=D(D({},a),n);return o&&(l=o(l)),l},Vg="token";function $y(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.useContext(Oo),o=r.cache.instanceId,a=r.container,l=n.salt,s=l===void 0?"":l,c=n.override,u=c===void 0?hy:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,g=ay(function(){return Object.assign.apply(Object,[{}].concat(ve(t)))},t),p=ra(g),v=ra(u),h=m?ra(m):"",b=Zc(Vg,[s,e.id,p,v,h],function(){var y,C=f?f(g,u,e):Kg(g,u,e,d),S=D({},C),$="";if(m){var x=kg(C,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),E=q(x,2);C=E[0],$=E[1]}var O=Od(C,s);C._tokenKey=O,S._tokenKey=Od(S,s);var w=(y=m==null?void 0:m.key)!==null&&y!==void 0?y:O;C._themeKey=w,yy(w);var P="".concat(by,"-").concat(Ei(O));return C._hashId=P,[C,P,S,$,(m==null?void 0:m.key)||""]},function(y){xy(y[0]._themeKey,o)},function(y){var C=q(y,4),S=C[0],$=C[3];if(m&&$){var x=Ir($,Ei("css-variables-".concat(S._themeKey)),{mark:Zn,prepend:"queue",attachTo:a,priority:-999});x[wr]=o,x.setAttribute(Eo,S._themeKey)}});return b}var wy=function(t,n,r){var o=q(t,5),a=o[2],l=o[3],s=o[4],c=r||{},u=c.plain;if(!l)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=Oi(l,s,d,m,u);return[f,d,g]},Ey={animationIterationCount: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,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},Wg="comm",Gg="rule",qg="decl",Oy="@import",Iy="@keyframes",Ry="@layer",Xg=Math.abs,Qc=String.fromCharCode;function Ug(e){return e.trim()}function fi(e,t,n){return e.replace(t,n)}function Py(e,t,n){return e.indexOf(t,n)}function va(e,t){return e.charCodeAt(t)|0}function pa(e,t,n){return e.slice(t,n)}function dr(e){return e.length}function Ny(e){return e.length}function Xa(e,t){return t.push(e),e}var Qi=1,Io=1,Yg=0,Wn=0,Jt=0,zo="";function Jc(e,t,n,r,o,a,l,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Qi,column:Io,length:l,return:"",siblings:s}}function Ty(){return Jt}function My(){return Jt=Wn>0?va(zo,--Wn):0,Io--,Jt===10&&(Io=1,Qi--),Jt}function Qn(){return Jt=Wn<Yg?va(zo,Wn++):0,Io++,Jt===10&&(Io=1,Qi++),Jt}function Vr(){return va(zo,Wn)}function mi(){return Wn}function Ji(e,t){return pa(zo,e,t)}function Bs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _y(e){return Qi=Io=1,Yg=dr(zo=e),Wn=0,[]}function zy(e){return zo="",e}function kl(e){return Ug(Ji(Wn-1,As(e===91?e+2:e===40?e+1:e)))}function Ly(e){for(;(Jt=Vr())&&Jt<33;)Qn();return Bs(e)>2||Bs(Jt)>3?"":" "}function jy(e,t){for(;--t&&Qn()&&!(Jt<48||Jt>102||Jt>57&&Jt<65||Jt>70&&Jt<97););return Ji(e,mi()+(t<6&&Vr()==32&&Qn()==32))}function As(e){for(;Qn();)switch(Jt){case e:return Wn;case 34:case 39:e!==34&&e!==39&&As(Jt);break;case 40:e===41&&As(e);break;case 92:Qn();break}return Wn}function Dy(e,t){for(;Qn()&&e+Jt!==47+10;)if(e+Jt===42+42&&Vr()===47)break;return"/*"+Ji(t,Wn-1)+"*"+Qc(e===47?e:Qn())}function By(e){for(;!Bs(Vr());)Qn();return Ji(e,Wn)}function Ay(e){return zy(gi("",null,null,null,[""],e=_y(e),0,[0],e))}function gi(e,t,n,r,o,a,l,s,c){for(var u=0,d=0,f=l,m=0,g=0,p=0,v=1,h=1,b=1,y=0,C="",S=o,$=a,x=r,E=C;h;)switch(p=y,y=Qn()){case 40:if(p!=108&&va(E,f-1)==58){Py(E+=fi(kl(y),"&","&\f"),"&\f",Xg(u?s[u-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:E+=kl(y);break;case 9:case 10:case 13:case 32:E+=Ly(p);break;case 92:E+=jy(mi()-1,7);continue;case 47:switch(Vr()){case 42:case 47:Xa(Fy(Dy(Qn(),mi()),t,n,c),c);break;default:E+="/"}break;case 123*v:s[u++]=dr(E)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+d:b==-1&&(E=fi(E,/\f/g,"")),g>0&&dr(E)-f&&Xa(g>32?Nd(E+";",r,n,f-1,c):Nd(fi(E," ","")+";",r,n,f-2,c),c);break;case 59:E+=";";default:if(Xa(x=Pd(E,t,n,u,d,o,s,C,S=[],$=[],f,a),a),y===123)if(d===0)gi(E,t,x,x,S,a,f,s,$);else switch(m===99&&va(E,3)===110?100:m){case 100:case 108:case 109:case 115:gi(e,x,x,r&&Xa(Pd(e,x,x,0,0,o,s,C,o,S=[],f,$),$),o,$,f,s,r?S:$);break;default:gi(E,x,x,x,[""],$,0,s,$)}}u=d=g=0,v=b=1,C=E="",f=l;break;case 58:f=1+dr(E),g=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&My()==125)continue}switch(E+=Qc(y),y*v){case 38:b=d>0?1:(E+="\f",-1);break;case 44:s[u++]=(dr(E)-1)*b,b=1;break;case 64:Vr()===45&&(E+=kl(Qn())),m=Vr(),d=f=dr(C=E+=By(mi())),y++;break;case 45:p===45&&dr(E)==2&&(v=0)}}return a}function Pd(e,t,n,r,o,a,l,s,c,u,d,f){for(var m=o-1,g=o===0?a:[""],p=Ny(g),v=0,h=0,b=0;v<r;++v)for(var y=0,C=pa(e,m+1,m=Xg(h=l[v])),S=e;y<p;++y)(S=Ug(h>0?g[y]+" "+C:fi(C,/&\f/g,g[y])))&&(c[b++]=S);return Jc(e,t,n,o===0?Gg:s,c,u,d,f)}function Fy(e,t,n,r){return Jc(e,t,n,Wg,Qc(Ty()),pa(e,2,-2),0,r)}function Nd(e,t,n,r,o){return Jc(e,t,n,qg,pa(e,0,r),pa(e,r+1,-1),r,o)}function Fs(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Hy(e,t,n,r){switch(e.type){case Ry:if(e.children.length)break;case Oy:case qg:return e.return=e.return||e.value;case Wg:return"";case Iy:return e.return=e.value+"{"+Fs(e.children,r)+"}";case Gg:if(!dr(e.value=e.props.join(",")))return""}return dr(n=Fs(e.children,r))?e.return=e.value+"{"+n+"}":""}var Td="data-ant-cssinjs-cache-path",Zg="_FILE_STYLE__",Wr,Qg=!0;function ky(){if(!Wr&&(Wr={},un())){var e=document.createElement("div");e.className=Td,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),l=q(a,2),s=l[0],c=l[1];Wr[s]=c});var n=document.querySelector("style[".concat(Td,"]"));if(n){var r;Qg=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function Ky(e){return ky(),!!Wr[e]}function Vy(e){var t=Wr[e],n=null;if(t&&un())if(Qg)n=Zg;else{var r=document.querySelector("style[".concat(Zn,'="').concat(Wr[e],'"]'));r?n=r.innerHTML:delete Wr[e]}return[n,t]}var Wy="_skip_check_",Jg="_multi_value_";function Hs(e){var t=Fs(Ay(e),Hy);return t.replace(/\{%%%\:[^;];}/g,";")}function Gy(e){return at(e)==="object"&&e&&(Wy in e||Jg in e)}function qy(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(l){var s,c=l.trim().split(/\s+/),u=c[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(ve(c.slice(1))).join(" ")});return a.join(",")}var Xy=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,l=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",g={};function p(C){var S=C.getName(s);if(!g[S]){var $=e(C.style,n,{root:!1,parentSelectors:l}),x=q($,1),E=x[0];g[S]="@keyframes ".concat(C.getName(s)).concat(E)}}function v(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function($){Array.isArray($)?v($,S):$&&S.push($)}),S}var h=v(Array.isArray(t)?t:[t]);if(h.forEach(function(C){var S=typeof C=="string"&&!o?{}:C;if(typeof S=="string")m+="".concat(S,`
`);else if(S._keyframe)p(S);else{var $=f.reduce(function(x,E){var O;return(E==null||(O=E.visit)===null||O===void 0?void 0:O.call(E,x))||x},S);Object.keys($).forEach(function(x){var E=$[x];if(at(E)==="object"&&E&&(x!=="animationName"||!E._keyframe)&&!Gy(E)){var O=!1,w=x.trim(),P=!1;(o||a)&&s?w.startsWith("@")?O=!0:w=qy(x,s,u):o&&!s&&(w==="&"||w==="")&&(w="",P=!0);var R=e(E,n,{root:P,injectHash:O,parentSelectors:[].concat(ve(l),[w])}),M=q(R,2),I=M[0],N=M[1];g=D(D({},g),N),m+="".concat(w).concat(I)}else{let T=function(_,B){var j=_.replace(/[A-Z]/g,function(V){return"-".concat(V.toLowerCase())}),A=B;!Ey[_]&&typeof A=="number"&&A!==0&&(A="".concat(A,"px")),_==="animationName"&&B!==null&&B!==void 0&&B._keyframe&&(p(B),A=B.getName(s)),m+="".concat(j,":").concat(A,";")};var z,L=(z=E==null?void 0:E.value)!==null&&z!==void 0?z:E;at(E)==="object"&&E!==null&&E!==void 0&&E[Jg]&&Array.isArray(L)?L.forEach(function(_){T(x,_)}):T(x,L)}})}}),!o)m="{".concat(m,"}");else if(c&&ly()){var b=c.split(","),y=b[b.length-1].trim();m="@layer ".concat(y," {").concat(m,"}"),b.length>1&&(m="@layer ".concat(c,"{%%%:%}").concat(m))}return[m,g]};function ev(e,t){return Ei("".concat(e.join("%")).concat(t))}function Uy(){return null}var tv="style";function ks(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,l=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=i.useContext(Oo),f=d.autoClear;d.mock;var m=d.defaultCache,g=d.hashPriority,p=d.container,v=d.ssrInline,h=d.transformers,b=d.linters,y=d.cache,C=n._tokenKey,S=[C].concat(ve(r)),$=js,x=Zc(tv,S,function(){var R=S.join("|");if(Ky(R)){var M=Vy(R),I=q(M,2),N=I[0],z=I[1];if(N)return[N,C,z,{},s,u]}var L=t(),T=Xy(L,{hashId:o,hashPriority:g,layer:a,path:r.join("-"),transformers:h,linters:b}),_=q(T,2),B=_[0],j=_[1],A=Hs(B),V=ev(S,A);return[A,C,V,j,s,u]},function(R,M){var I=q(R,3),N=I[2];(M||f)&&js&&ma(N,{mark:Zn})},function(R){var M=q(R,4),I=M[0];M[1];var N=M[2],z=M[3];if($&&I!==Zg){var L={mark:Zn,prepend:"queue",attachTo:p,priority:u},T=typeof l=="function"?l():l;T&&(L.csp={nonce:T});var _=Ir(I,N,L);_[wr]=y.instanceId,_.setAttribute(Eo,C),Object.keys(z).forEach(function(B){Ir(Hs(z[B]),"_effect-".concat(B),L)})}}),E=q(x,3),O=E[0],w=E[1],P=E[2];return function(R){var M;if(!v||$||!m)M=i.createElement(Uy,null);else{var I;M=i.createElement("style",de({},(I={},F(I,Eo,w),F(I,Zn,P),I),{dangerouslySetInnerHTML:{__html:O}}))}return i.createElement(i.Fragment,null,M,R)}}var Yy=function(t,n,r){var o=q(t,6),a=o[0],l=o[1],s=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var g=a,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=Oi(a,l,s,p,m),c&&Object.keys(c).forEach(function(v){if(!n[v]){n[v]=!0;var h=Hs(c[v]);g+=Oi(h,l,"_effect-".concat(v),p,m)}}),[d,s,g]},nv="cssVar",Zy=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,l=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=i.useContext(Oo),f=d.cache.instanceId,m=d.container,g=s._tokenKey,p=[].concat(ve(t.path),[r,u,g]),v=Zc(nv,p,function(){var h=n(),b=kg(h,r,{prefix:o,unitless:a,ignore:l,scope:u}),y=q(b,2),C=y[0],S=y[1],$=ev(p,S);return[C,S,$,r]},function(h){var b=q(h,3),y=b[2];js&&ma(y,{mark:Zn})},function(h){var b=q(h,3),y=b[1],C=b[2];if(y){var S=Ir(y,C,{mark:Zn,prepend:"queue",attachTo:m,priority:-999});S[wr]=f,S.setAttribute(Eo,r)}});return v},Qy=function(t,n,r){var o=q(t,4),a=o[1],l=o[2],s=o[3],c=r||{},u=c.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=Oi(a,s,l,f,u);return[d,l,m]},Xo;Xo={},F(Xo,tv,Yy),F(Xo,Vg,wy),F(Xo,nv,Qy);var bt=function(){function e(t,n){fn(this,e),F(this,"name",void 0),F(this,"style",void 0),F(this,"_keyframe",!0),this.name=t,this.style=n}return mn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function to(e){return e.notSplit=!0,e}to(["borderTop","borderBottom"]),to(["borderTop"]),to(["borderBottom"]),to(["borderLeft","borderRight"]),to(["borderLeft"]),to(["borderRight"]);function vt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ks(e,t){return Ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ks(e,t)}var rv={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var s in a)t.call(a,s)&&a[s]&&(l=o(l,s));return l}function o(a,l){return l?a?a+" "+l:a+l:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(rv);var Jy=rv.exports;const K=Xc(Jy);var ov={exports:{}},Mt={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Md;function eC(){if(Md)return Mt;Md=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),p;p=Symbol.for("react.module.reference");function v(h){if(typeof h=="object"&&h!==null){var b=h.$$typeof;switch(b){case e:switch(h=h.type,h){case n:case o:case r:case u:case d:return h;default:switch(h=h&&h.$$typeof,h){case s:case l:case c:case m:case f:case a:return h;default:return b}}case t:return b}}}return Mt.ContextConsumer=l,Mt.ContextProvider=a,Mt.Element=e,Mt.ForwardRef=c,Mt.Fragment=n,Mt.Lazy=m,Mt.Memo=f,Mt.Portal=t,Mt.Profiler=o,Mt.StrictMode=r,Mt.Suspense=u,Mt.SuspenseList=d,Mt.isAsyncMode=function(){return!1},Mt.isConcurrentMode=function(){return!1},Mt.isContextConsumer=function(h){return v(h)===l},Mt.isContextProvider=function(h){return v(h)===a},Mt.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},Mt.isForwardRef=function(h){return v(h)===c},Mt.isFragment=function(h){return v(h)===n},Mt.isLazy=function(h){return v(h)===m},Mt.isMemo=function(h){return v(h)===f},Mt.isPortal=function(h){return v(h)===t},Mt.isProfiler=function(h){return v(h)===o},Mt.isStrictMode=function(h){return v(h)===r},Mt.isSuspense=function(h){return v(h)===u},Mt.isSuspenseList=function(h){return v(h)===d},Mt.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===r||h===u||h===d||h===g||typeof h=="object"&&h!==null&&(h.$$typeof===m||h.$$typeof===f||h.$$typeof===a||h.$$typeof===l||h.$$typeof===c||h.$$typeof===p||h.getModuleId!==void 0)},Mt.typeOf=v,Mt}ov.exports=eC();var eu=ov.exports;function on(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ae.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(on(r)):eu.isFragment(r)&&r.props?n=n.concat(on(r.props.children,t)):n.push(r))}),n}function Ii(e){return e instanceof HTMLElement||e instanceof SVGElement}function aa(e){return Ii(e)?e:e instanceof ae.Component?Ns.findDOMNode(e):null}function ha(e,t){typeof e=="function"?e(t):at(e)==="object"&&e&&"current"in e&&(e.current=t)}function $n(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(a){ha(a,o)})}}function zr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _r(function(){return $n.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,l){return a!==o[l]})})}function Jn(e){var t,n,r=eu.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function tC(e){return!i.isValidElement(e)||eu.isFragment(e)?!1:Jn(e)}var Vs=i.createContext(null);function nC(e){var t=e.children,n=e.onBatchResize,r=i.useRef(0),o=i.useRef([]),a=i.useContext(Vs),l=i.useCallback(function(s,c,u){r.current+=1;var d=r.current;o.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(s,c,u)},[n,a]);return i.createElement(Vs.Provider,{value:l},t)}var av=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o<a.length;o++){var l=a[o];n.call(r,l[1],l[0])}},t}()}(),Ws=typeof window<"u"&&typeof document<"u"&&window.document===document,Ri=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),rC=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ri):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),oC=2;function aC(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s()}function l(){rC(a)}function s(){var c=Date.now();if(n){if(c-o<oC)return;r=!0}else n=!0,r=!1,setTimeout(l,t);o=c}return s}var iC=20,lC=["top","right","bottom","left","width","height","size","weight"],sC=typeof MutationObserver<"u",cC=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=aC(this.refresh.bind(this),iC)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ws||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),sC?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ws||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=lC.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),iv=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Ro=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ri},lv=el(0,0,0,0);function Pi(e){return parseFloat(e)||0}function _d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+Pi(a)},0)}function uC(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],l=e["padding-"+a];n[a]=Pi(l)}return n}function dC(e){var t=e.getBBox();return el(0,0,t.width,t.height)}function fC(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return lv;var r=Ro(e).getComputedStyle(e),o=uC(r),a=o.left+o.right,l=o.top+o.bottom,s=Pi(r.width),c=Pi(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=_d(r,"left","right")+a),Math.round(c+l)!==n&&(c-=_d(r,"top","bottom")+l)),!gC(e)){var u=Math.round(s+a)-t,d=Math.round(c+l)-n;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(c-=d)}return el(o.left,o.top,s,c)}var mC=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ro(e).SVGGraphicsElement}:function(e){return e instanceof Ro(e).SVGElement&&typeof e.getBBox=="function"}}();function gC(e){return e===Ro(e).document.documentElement}function vC(e){return Ws?mC(e)?dC(e):fC(e):lv}function pC(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return iv(l,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),l}function el(e,t,n,r){return{x:e,y:t,width:n,height:r}}var hC=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=el(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=vC(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),bC=function(){function e(t,n){var r=pC(n);iv(this,{target:t,contentRect:r})}return e}(),yC=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new av,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ro(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new hC(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ro(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new bC(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),sv=typeof WeakMap<"u"?new WeakMap:new av,cv=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=cC.getInstance(),r=new yC(t,n,this);sv.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){cv.prototype[e]=function(){var t;return(t=sv.get(this))[e].apply(t,arguments)}});var CC=function(){return typeof Ri.ResizeObserver<"u"?Ri.ResizeObserver:cv}(),Er=new Map;function SC(e){e.forEach(function(t){var n,r=t.target;(n=Er.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var uv=new CC(SC);function xC(e,t){Er.has(e)||(Er.set(e,new Set),uv.observe(e)),Er.get(e).add(t)}function $C(e,t){Er.has(e)&&(Er.get(e).delete(t),Er.get(e).size||(uv.unobserve(e),Er.delete(e)))}function hr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ks(e,t)}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rr(e)}function tl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tl=function(){return!!e})()}function tu(e,t){if(t&&(at(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vt(e)}function Qr(e){var t=tl();return function(){var r=Rr(e),o;if(t){var a=Rr(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return tu(this,o)}}var wC=function(e){hr(n,e);var t=Qr(n);function n(){return fn(this,n),t.apply(this,arguments)}return mn(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component);function EC(e,t){var n=e.children,r=e.disabled,o=i.useRef(null),a=i.useRef(null),l=i.useContext(Vs),s=typeof n=="function",c=s?n(o):n,u=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&i.isValidElement(c)&&Jn(c),f=d?c.ref:null,m=zr(f,o),g=function(){var b;return aa(o.current)||(o.current&&at(o.current)==="object"?aa((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||aa(a.current)};i.useImperativeHandle(t,function(){return g()});var p=i.useRef(e);p.current=e;var v=i.useCallback(function(h){var b=p.current,y=b.onResize,C=b.data,S=h.getBoundingClientRect(),$=S.width,x=S.height,E=h.offsetWidth,O=h.offsetHeight,w=Math.floor($),P=Math.floor(x);if(u.current.width!==w||u.current.height!==P||u.current.offsetWidth!==E||u.current.offsetHeight!==O){var R={width:w,height:P,offsetWidth:E,offsetHeight:O};u.current=R;var M=E===Math.round($)?$:E,I=O===Math.round(x)?x:O,N=D(D({},R),{},{offsetWidth:M,offsetHeight:I});l==null||l(N,h,C),y&&Promise.resolve().then(function(){y(N,h)})}},[]);return i.useEffect(function(){var h=g();return h&&!r&&xC(h,v),function(){return $C(h,v)}},[o.current,r]),i.createElement(wC,{ref:a},d?i.cloneElement(c,{ref:m}):c)}var OC=i.forwardRef(EC),IC="rc-observer-key";function RC(e,t){var n=e.children,r=typeof n=="function"?[n]:on(n);return r.map(function(o,a){var l=(o==null?void 0:o.key)||"".concat(IC,"-").concat(a);return i.createElement(OC,de({},e,{key:l,ref:a===0?t:void 0}),o)})}var hn=i.forwardRef(RC);hn.Collection=nC;function Ft(e,t){var n=D({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var dv=function(t){return+setTimeout(t,16)},fv=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(dv=function(t){return window.requestAnimationFrame(t)},fv=function(t){return window.cancelAnimationFrame(t)});var zd=0,nu=new Map;function mv(e){nu.delete(e)}var Et=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;zd+=1;var r=zd;function o(a){if(a===0)mv(r),t();else{var l=dv(function(){o(a-1)});nu.set(r,l)}}return o(n),r};Et.cancel=function(e){var t=nu.get(e);return mv(e),fv(t)};var PC=i.createContext({});const ru=PC;function gv(e){return Pg(e)||Mg(e)||Uc(e)||Ng()}function Kn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function vv(e,t,n,r){if(!t.length)return n;var o=gv(t),a=o[0],l=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=ve(e):s=D({},e),r&&n===void 0&&l.length===1?delete s[a][l[0]]:s[a]=vv(s[a],l,n,r),s}function Xn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Kn(e,t.slice(0,-1))?e:vv(e,t,n,r)}function NC(e){return at(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ld(e){return Array.isArray(e)?[]:{}}var TC=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ho(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ld(t[0]);return t.forEach(function(o){function a(l,s){var c=new Set(s),u=Kn(o,l),d=Array.isArray(u);if(d||NC(u)){if(!c.has(u)){c.add(u);var f=Kn(r,l);d?r=Xn(r,l,[]):(!f||at(f)!=="object")&&(r=Xn(r,l,Ld(u))),TC(u).forEach(function(m){a([].concat(ve(l),[m]),c)})}}else r=Xn(r,l,u)}a([])}),r}function MC(){}const _C=i.createContext({}),Lr=()=>{const e=()=>{};return e.deprecated=MC,e},pv=i.createContext(void 0);var hv={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},zC={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const LC={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},bv=LC,jC={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},zC),timePickerLocale:Object.assign({},bv)},jd=jC,Pn="${label} is not a valid ${type}",DC={locale:"en",Pagination:hv,DatePicker:jd,TimePicker:bv,Calendar:jd,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Pn,method:Pn,array:Pn,object:Pn,number:Pn,date:Pn,boolean:Pn,integer:Pn,float:Pn,regexp:Pn,email:Pn,url:Pn,hex:Pn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}},or=DC;Object.assign({},or.Modal);let vi=[];const Dd=()=>vi.reduce((e,t)=>Object.assign(Object.assign({},e),t),or.Modal);function BC(e){if(e){const t=Object.assign({},e);return vi.push(t),Dd(),()=>{vi=vi.filter(n=>n!==t),Dd()}}Object.assign({},or.Modal)}const AC=i.createContext(void 0),ou=AC,FC=(e,t)=>{const n=i.useContext(ou),r=i.useMemo(()=>{var a;const l=t||or[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof l=="function"?l():l),s||{})},[e,t,n]),o=i.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?or.locale:a},[n]);return[r,o]},nl=FC,HC="internalMark",kC=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;i.useEffect(()=>BC(t&&t.Modal),[t]);const o=i.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return i.createElement(ou.Provider,{value:o},n)},KC=kC;function cn(e,t){VC(e)&&(e="100%");var n=WC(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ua(e){return Math.min(1,Math.max(0,e))}function VC(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function WC(e){return typeof e=="string"&&e.indexOf("%")!==-1}function yv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ya(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Hr(e){return e.length===1?"0"+e:String(e)}function GC(e,t,n){return{r:cn(e,255)*255,g:cn(t,255)*255,b:cn(n,255)*255}}function Bd(e,t,n){e=cn(e,255),t=cn(t,255),n=cn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,l=0,s=(r+o)/2;if(r===o)l=0,a=0;else{var c=r-o;switch(l=s>.5?c/(2-r-o):c/(r+o),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:l,l:s}}function Kl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qC(e,t,n){var r,o,a;if(e=cn(e,360),t=cn(t,100),n=cn(n,100),t===0)o=n,a=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=Kl(s,l,e+1/3),o=Kl(s,l,e),a=Kl(s,l,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function Gs(e,t,n){e=cn(e,255),t=cn(t,255),n=cn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,l=r,s=r-o,c=r===0?0:s/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6}return{h:a,s:c,v:l}}function XC(e,t,n){e=cn(e,360)*6,t=cn(t,100),n=cn(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),l=n*(1-o*t),s=n*(1-(1-o)*t),c=r%6,u=[n,l,a,a,s,n][c],d=[s,n,n,l,a,a][c],f=[a,a,s,n,n,l][c];return{r:u*255,g:d*255,b:f*255}}function qs(e,t,n,r){var o=[Hr(Math.round(e).toString(16)),Hr(Math.round(t).toString(16)),Hr(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function UC(e,t,n,r,o){var a=[Hr(Math.round(e).toString(16)),Hr(Math.round(t).toString(16)),Hr(Math.round(n).toString(16)),Hr(YC(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function YC(e){return Math.round(parseFloat(e)*255).toString(16)}function Ad(e){return Tn(e)/255}function Tn(e){return parseInt(e,16)}function ZC(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Xs={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function vo(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,l=!1,s=!1;return typeof e=="string"&&(e=eS(e)),typeof e=="object"&&(ir(e.r)&&ir(e.g)&&ir(e.b)?(t=GC(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ir(e.h)&&ir(e.s)&&ir(e.v)?(r=Ya(e.s),o=Ya(e.v),t=XC(e.h,r,o),l=!0,s="hsv"):ir(e.h)&&ir(e.s)&&ir(e.l)&&(r=Ya(e.s),a=Ya(e.l),t=qC(e.h,r,a),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=yv(n),{ok:l,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var QC="[-\\+]?\\d+%?",JC="[-\\+]?\\d*\\.\\d+%?",Or="(?:".concat(JC,")|(?:").concat(QC,")"),Vl="[\\s|\\(]+(".concat(Or,")[,|\\s]+(").concat(Or,")[,|\\s]+(").concat(Or,")\\s*\\)?"),Wl="[\\s|\\(]+(".concat(Or,")[,|\\s]+(").concat(Or,")[,|\\s]+(").concat(Or,")[,|\\s]+(").concat(Or,")\\s*\\)?"),qn={CSS_UNIT:new RegExp(Or),rgb:new RegExp("rgb"+Vl),rgba:new RegExp("rgba"+Wl),hsl:new RegExp("hsl"+Vl),hsla:new RegExp("hsla"+Wl),hsv:new RegExp("hsv"+Vl),hsva:new RegExp("hsva"+Wl),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function eS(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Xs[e])e=Xs[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=qn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=qn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=qn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=qn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=qn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=qn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=qn.hex8.exec(e),n?{r:Tn(n[1]),g:Tn(n[2]),b:Tn(n[3]),a:Ad(n[4]),format:t?"name":"hex8"}:(n=qn.hex6.exec(e),n?{r:Tn(n[1]),g:Tn(n[2]),b:Tn(n[3]),format:t?"name":"hex"}:(n=qn.hex4.exec(e),n?{r:Tn(n[1]+n[1]),g:Tn(n[2]+n[2]),b:Tn(n[3]+n[3]),a:Ad(n[4]+n[4]),format:t?"name":"hex8"}:(n=qn.hex3.exec(e),n?{r:Tn(n[1]+n[1]),g:Tn(n[2]+n[2]),b:Tn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ir(e){return!!qn.CSS_UNIT.exec(String(e))}var Rt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=ZC(t)),this.originalInput=t;var o=vo(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,l=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=yv(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Gs(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Gs(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Bd(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Bd(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),qs(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),UC(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(cn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(cn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+qs(this.r,this.g,this.b,!1),n=0,r=Object.entries(Xs);n<r.length;n++){var o=r[n],a=o[0],l=o[1];if(t===l)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Ua(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Ua(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Ua(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Ua(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,l={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,l=[],s=1/t;t--;)l.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,l=1;l<t;l++)o.push(new e({h:(r+l*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Za=2,Fd=.16,tS=.05,nS=.05,rS=.15,Cv=5,Sv=4,oS=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Hd(e){var t=e.r,n=e.g,r=e.b,o=Gs(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Qa(e){var t=e.r,n=e.g,r=e.b;return"#".concat(qs(t,n,r,!1))}function aS(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function kd(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Za*t:Math.round(e.h)+Za*t:r=n?Math.round(e.h)+Za*t:Math.round(e.h)-Za*t,r<0?r+=360:r>=360&&(r-=360),r}function Kd(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Fd*t:t===Sv?r=e.s+Fd:r=e.s+tS*t,r>1&&(r=1),n&&t===Cv&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Vd(e,t,n){var r;return n?r=e.v+nS*t:r=e.v-rS*t,r>1&&(r=1),Number(r.toFixed(2))}function fr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=vo(e),o=Cv;o>0;o-=1){var a=Hd(r),l=Qa(vo({h:kd(a,o,!0),s:Kd(a,o,!0),v:Vd(a,o,!0)}));n.push(l)}n.push(Qa(r));for(var s=1;s<=Sv;s+=1){var c=Hd(r),u=Qa(vo({h:kd(c,s),s:Kd(c,s),v:Vd(c,s)}));n.push(u)}return t.theme==="dark"?oS.map(function(d){var f=d.index,m=d.opacity,g=Qa(aS(vo(t.backgroundColor||"#141414"),vo(n[f]),m*100));return g}):n}var Gl={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ia={},ql={};Object.keys(Gl).forEach(function(e){ia[e]=fr(Gl[e]),ia[e].primary=ia[e][5],ql[e]=fr(Gl[e],{theme:"dark",backgroundColor:"#141414"}),ql[e].primary=ql[e][5]});var iS=ia.gold,lS=ia.blue;const sS=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},xv=sS;function cS(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const au={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Po=Object.assign(Object.assign({},au),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function $v(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:l,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),m=n(o),g=n(a),p=n(l),v=n(s),h=r(u,d),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},h),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Rt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const uS=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},dS=uS;function fS(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},dS(r))}const lr=(e,t)=>new Rt(e).setAlpha(t).toRgbString(),Uo=(e,t)=>new Rt(e).darken(t).toHexString(),mS=e=>{const t=fr(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},gS=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:lr(r,.88),colorTextSecondary:lr(r,.65),colorTextTertiary:lr(r,.45),colorTextQuaternary:lr(r,.25),colorFill:lr(r,.15),colorFillSecondary:lr(r,.06),colorFillTertiary:lr(r,.04),colorFillQuaternary:lr(r,.02),colorBgLayout:Uo(n,4),colorBgContainer:Uo(n,0),colorBgElevated:Uo(n,0),colorBgSpotlight:lr(r,.85),colorBgBlur:"transparent",colorBorder:Uo(n,15),colorBorderSecondary:Uo(n,6)}};function pi(e){return(e+8)/e}function vS(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),l=r>1?Math.floor(a):Math.ceil(a);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:pi(n)}))}const pS=e=>{const t=vS(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],l=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:l,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*o),fontHeightLG:Math.round(u*l),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},wv=pS;function Ra(e){const t=Object.keys(au).map(n=>{const r=fr(e[n]);return new Array(10).fill(1).reduce((o,a,l)=>(o[`${n}-${l+1}`]=r[l],o[`${n}${l+1}`]=r[l],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),$v(e,{generateColorPalettes:mS,generateNeutralColorPalettes:gS})),wv(e.fontSize)),cS(e)),xv(e)),fS(e))}const Ev=ga(Ra),Ni={token:Po,override:{override:Po},hashed:!0},Ov=ae.createContext(Ni),iu="anticon",hS=(e,t)=>t||(e?`ant-${e}`:"ant"),Ve=i.createContext({getPrefixCls:hS,iconPrefixCls:iu}),bS=`-ant-${Date.now()}-${Math.random()}`;function yS(e,t){const n={},r=(l,s)=>{let c=l.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},o=(l,s)=>{const c=new Rt(l),u=fr(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const l=new Rt(t.primaryColor),s=fr(l.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(l,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(l,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(l,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(l,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(l,u=>u.setAlpha(u.getAlpha()*.12));const c=new Rt(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
  :root {
    ${Object.keys(n).map(l=>`--${e}-${l}: ${n[l]};`).join(`
`)}
  }
  `.trim()}function CS(e,t){const n=yS(e,t);un()&&Ir(n,`${bS}-dynamic-theme`)}const Us=i.createContext(!1),Iv=e=>{let{children:t,disabled:n}=e;const r=i.useContext(Us);return i.createElement(Us.Provider,{value:n??r},t)},br=Us,Ys=i.createContext(void 0),SS=e=>{let{children:t,size:n}=e;const r=i.useContext(Ys);return i.createElement(Ys.Provider,{value:n||r},t)},Pa=Ys;function xS(){const e=i.useContext(br),t=i.useContext(Pa);return{componentDisabled:e,componentSize:t}}const ba=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],$S="5.13.2";function Xl(e){return e>=0&&e<=255}function Ja(e,t){const{r:n,g:r,b:o,a}=new Rt(e).toRgb();if(a<1)return e;const{r:l,g:s,b:c}=new Rt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-l*(1-u))/u),f=Math.round((r-s*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(Xl(d)&&Xl(f)&&Xl(m))return new Rt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new Rt({r:n,g:r,b:o,a:1}).toRgbString()}var wS=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function lu(e){const{override:t}=e,n=wS(e,["override"]),r=Object.assign({},t);Object.keys(Po).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),a=480,l=576,s=768,c=992,u=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ja(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Ja(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ja(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ja(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:a,screenXSMin:a,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new Rt("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Rt("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Rt("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Wd=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Rv={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},Pv={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},ES={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},Nv=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Wd(t,["override"]);let l=Object.assign(Object.assign({},r),{override:o});return l=lu(l),a&&Object.entries(a).forEach(s=>{let[c,u]=s;const{theme:d}=u,f=Wd(u,["theme"]);let m=f;d&&(m=Nv(Object.assign(Object.assign({},l),f),{override:f},d)),l[c]=m}),l};function en(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=ae.useContext(Ov),a=`${$S}-${t||""}`,l=n||Ev,[s,c,u]=$y(l,[Po,e],{salt:a,override:r,getComputedToken:Nv,formatToken:lu,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Rv,ignore:Pv,preserve:ES}});return[l,u,t?c:"",s,o]}function Yt(e){var t=i.useRef();t.current=e;var n=i.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Gr(e){var t=i.useRef(!1),n=i.useState(e),r=q(n,2),o=r[0],a=r[1];i.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function l(s,c){c&&t.current||a(s)}return[o,l]}function Ul(e){return e!==void 0}function At(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,l=n.postState,s=Gr(function(){return Ul(o)?o:Ul(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=q(s,2),u=c[0],d=c[1],f=o!==void 0?o:u,m=l?l(f):f,g=Yt(a),p=Gr([f]),v=q(p,2),h=v[0],b=v[1];Ds(function(){var C=h[0];u!==C&&g(u,C)},[h]),Ds(function(){Ul(o)||d(o)},[o]);var y=Yt(function(C,S){d(C,S),b([f],S)});return[m,y]}const su=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),mr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},_t=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},rl=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Pr=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),OS=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n  &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),IS=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Nr=e=>({outline:`${H(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),gr=e=>({"&:focus-visible":Object.assign({},Nr(e))});let RS=mn(function e(){fn(this,e)});const Tv=RS;function PS(e,t,n){return t=Rr(t),tu(e,tl()?Reflect.construct(t,n||[],Rr(e).constructor):t.apply(e,n))}let NS=function(e){hr(t,e);function t(n){var r;return fn(this,t),r=PS(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return mn(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),t}(Tv);function TS(e,t,n){return t=Rr(t),tu(e,tl()?Reflect.construct(t,n||[],Rr(e).constructor):t.apply(e,n))}const Mv="CALC_UNIT";function Yl(e){return typeof e=="number"?`${e}${Mv}`:e}let MS=function(e){hr(t,e);function t(n){var r;return fn(this,t),r=TS(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=Yl(n):typeof n=="string"&&(r.result=n),r}return mn(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${Yl(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${Yl(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:o=!0}=r||{},a=new RegExp(`${Mv}`,"g");return this.result=this.result.replace(a,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),t}(Tv);const _S=e=>{const t=e==="css"?MS:NS;return n=>new t(n)},zS=_S;function LS(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return`max(${n.map(o=>H(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return`min(${n.map(o=>H(o)).join(",")})`}}}const _v=typeof CSSINJS_STATISTIC<"u";let Zs=!0;function pt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!_v)return Object.assign.apply(Object,[{}].concat(t));Zs=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(l=>{Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:()=>o[l]})})}),Zs=!0,r}const Gd={};function jS(){}const DS=e=>{let t,n=e,r=jS;return _v&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return Zs&&t.add(a),o[a]}}),r=(o,a)=>{var l;Gd[o]={global:Array.from(t),component:Object.assign(Object.assign({},(l=Gd[o])===null||l===void 0?void 0:l.component),a)}}),{token:n,keys:t,flush:r}},BS=(e,t)=>{const[n,r]=en();return ks({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},rl()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},zv=BS,Lv=(e,t,n)=>{var r;return typeof n=="function"?n(pt(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},jv=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:l}=r;l.forEach(s=>{let[c,u]=s;var d;(o!=null&&o[c]||o!=null&&o[u])&&((d=o[u])!==null&&d!==void 0||(o[u]=o==null?void 0:o[c]))})}const a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(l=>{a[l]===t[l]&&delete a[l]}),a},AS=(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 cu(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,l=o.join("-");return s=>{const[c,u,d,f,m]=en(),{getPrefixCls:g,iconPrefixCls:p,csp:v}=i.useContext(Ve),h=g(),b=m?"css":"js",y=zS(b),{max:C,min:S}=LS(b),$={theme:c,token:f,hashId:d,nonce:()=>v==null?void 0:v.nonce,clientOnly:r.clientOnly,order:r.order||-999};return ks(Object.assign(Object.assign({},$),{clientOnly:!1,path:["Shared",h]}),()=>[{"&":OS(f)}]),zv(p,v),[ks(Object.assign(Object.assign({},$),{path:[l,s,p]}),()=>{if(r.injectStyle===!1)return[];const{token:E,flush:O}=DS(f),w=Lv(a,u,n),P=`.${s}`,R=jv(a,u,w,{deprecatedTokens:r.deprecatedTokens});m&&Object.keys(w).forEach(N=>{w[N]=`var(${Hg(N,AS(a,m.prefix))})`});const M=pt(E,{componentCls:P,prefixCls:s,iconCls:`.${p}`,antCls:`.${h}`,calc:y,max:C,min:S},m?w:R),I=t(M,{hashId:d,prefixCls:s,rootPrefixCls:h,iconPrefixCls:p});return O(a,R),[r.resetStyle===!1?null:IS(M,s),I]}),d]}}const ol=(e,t,n,r)=>{const o=cu(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return l=>{let{prefixCls:s}=l;return o(s),null}},FS=(e,t,n)=>{function r(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:a=!0}=n??{},l={[r("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{l[r(u)]=o[u]});const s=u=>{let{rootCls:d,cssVar:f}=u;const[,m]=en();return Zy({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},Rv),l),ignore:Pv,token:m,scope:d},()=>{const g=Lv(e,m,t),p=jv(e,m,g,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(g).forEach(v=>{p[r(v)]=p[v],delete p[v]}),p}),null};return u=>{const[,,,,d]=en();return[f=>a&&d?ae.createElement(ae.Fragment,null,ae.createElement(s,{rootCls:u,cssVar:d,component:e}),f):f,d==null?void 0:d.key]}},zt=(e,t,n,r)=>{const o=cu(e,t,n,r),a=FS(Array.isArray(e)?e[0]:e,n,r);return function(l){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[,c]=o(l),[u,d]=a(s);return[u,c,d]}};function HS(e,t){return ba.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],l=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:l,textColor:s}))},{})}const kS=Object.assign({},Ia),{useId:qd}=kS,KS=()=>"",VS=typeof qd>"u"?KS:qd,WS=VS;function GS(e,t){Lr();const n=e||{},r=n.inherit===!1||!t?Ni:t,o=WS();return _r(()=>{var a,l;if(!e)return t;const s=Object.assign({},r.components);Object.keys(e.components||{}).forEach(d=>{s[d]=Object.assign(Object.assign({},s[d]),e.components[d])});const c=`css-var-${o.replace(/:/g,"")}`,u=((a=n.cssVar)!==null&&a!==void 0?a:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof r.cssVar=="object"?r.cssVar:{}),typeof n.cssVar=="object"?n.cssVar:{}),{key:typeof n.cssVar=="object"&&((l=n.cssVar)===null||l===void 0?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:s,cssVar:u})},[n,r],(a,l)=>a.some((s,c)=>{const u=l[c];return!Vn(s,u,!0)}))}var qS=["children"],Dv=i.createContext({});function XS(e){var t=e.children,n=Qe(e,qS);return i.createElement(Dv.Provider,{value:n},t)}var US=function(e){hr(n,e);var t=Qr(n);function n(){return fn(this,n),t.apply(this,arguments)}return mn(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component),Dr="none",ei="appear",ti="enter",ni="leave",Xd="none",Un="prepare",bo="start",yo="active",uu="end",Bv="prepared";function Ud(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function YS(e,t){var n={animationend:Ud("Animation","AnimationEnd"),transitionend:Ud("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var ZS=YS(un(),typeof window<"u"?window:{}),Av={};if(un()){var QS=document.createElement("div");Av=QS.style}var ri={};function Fv(e){if(ri[e])return ri[e];var t=ZS[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Av)return ri[e]=t[a],ri[e]}return""}var Hv=Fv("animationend"),kv=Fv("transitionend"),Kv=!!(Hv&&kv),Yd=Hv||"animationend",Zd=kv||"transitionend";function Qd(e,t){if(!e)return null;if(at(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const JS=function(e){var t=i.useRef(),n=i.useRef(e);n.current=e;var r=i.useCallback(function(l){n.current(l)},[]);function o(l){l&&(l.removeEventListener(Zd,r),l.removeEventListener(Yd,r))}function a(l){t.current&&t.current!==l&&o(t.current),l&&l!==t.current&&(l.addEventListener(Zd,r),l.addEventListener(Yd,r),t.current=l)}return i.useEffect(function(){return function(){o(t.current)}},[]),[a,o]};var Vv=un()?i.useLayoutEffect:i.useEffect;const ex=function(){var e=i.useRef(null);function t(){Et.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Et(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return i.useEffect(function(){return function(){t()}},[]),[n,t]};var tx=[Un,bo,yo,uu],nx=[Un,Bv],Wv=!1,rx=!0;function Gv(e){return e===yo||e===uu}const ox=function(e,t,n){var r=Gr(Xd),o=q(r,2),a=o[0],l=o[1],s=ex(),c=q(s,2),u=c[0],d=c[1];function f(){l(Un,!0)}var m=t?nx:tx;return Vv(function(){if(a!==Xd&&a!==uu){var g=m.indexOf(a),p=m[g+1],v=n(a);v===Wv?l(p,!0):p&&u(function(h){function b(){h.isCanceled()||l(p,!0)}v===!0?b():Promise.resolve(v).then(b)})}},[e,a]),i.useEffect(function(){return function(){d()}},[]),[f,a]};function ax(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,l=r.motionAppear,s=l===void 0?!0:l,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,p=r.onLeavePrepare,v=r.onAppearStart,h=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,S=r.onLeaveActive,$=r.onAppearEnd,x=r.onEnterEnd,E=r.onLeaveEnd,O=r.onVisibleChanged,w=Gr(),P=q(w,2),R=P[0],M=P[1],I=Gr(Dr),N=q(I,2),z=N[0],L=N[1],T=Gr(null),_=q(T,2),B=_[0],j=_[1],A=i.useRef(!1),V=i.useRef(null);function X(){return n()}var te=i.useRef(!1);function W(){L(Dr,!0),j(null,!0)}function G(re){var le=X();if(!(re&&!re.deadline&&re.target!==le)){var ce=te.current,pe;z===ei&&ce?pe=$==null?void 0:$(le,re):z===ti&&ce?pe=x==null?void 0:x(le,re):z===ni&&ce&&(pe=E==null?void 0:E(le,re)),z!==Dr&&ce&&pe!==!1&&W()}}var ne=JS(G),J=q(ne,1),oe=J[0],Z=function(le){var ce,pe,me;switch(le){case ei:return ce={},F(ce,Un,m),F(ce,bo,v),F(ce,yo,y),ce;case ti:return pe={},F(pe,Un,g),F(pe,bo,h),F(pe,yo,C),pe;case ni:return me={},F(me,Un,p),F(me,bo,b),F(me,yo,S),me;default:return{}}},k=i.useMemo(function(){return Z(z)},[z]),Q=ox(z,!e,function(re){if(re===Un){var le=k[Un];return le?le(X()):Wv}if(U in k){var ce;j(((ce=k[U])===null||ce===void 0?void 0:ce.call(k,X(),null))||null)}return U===yo&&(oe(X()),d>0&&(clearTimeout(V.current),V.current=setTimeout(function(){G({deadline:!0})},d))),U===Bv&&W(),rx}),ee=q(Q,2),Y=ee[0],U=ee[1],ie=Gv(U);te.current=ie,Vv(function(){M(t);var re=A.current;A.current=!0;var le;!re&&t&&s&&(le=ei),re&&t&&a&&(le=ti),(re&&!t&&u||!re&&f&&!t&&u)&&(le=ni);var ce=Z(le);le&&(e||ce[Un])?(L(le),Y()):L(Dr)},[t]),i.useEffect(function(){(z===ei&&!s||z===ti&&!a||z===ni&&!u)&&L(Dr)},[s,a,u]),i.useEffect(function(){return function(){A.current=!1,clearTimeout(V.current)}},[]);var se=i.useRef(!1);i.useEffect(function(){R&&(se.current=!0),R!==void 0&&z===Dr&&((se.current||R)&&(O==null||O(R)),se.current=!0)},[R,z]);var ue=B;return k[Un]&&U===bo&&(ue=D({transition:"none"},ue)),[z,U,ue,R??t]}function ix(e){var t=e;at(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=i.forwardRef(function(o,a){var l=o.visible,s=l===void 0?!0:l,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,g=o.leavedClassName,p=o.eventProps,v=i.useContext(Dv),h=v.motion,b=n(o,h),y=i.useRef(),C=i.useRef();function S(){try{return y.current instanceof HTMLElement?y.current:aa(C.current)}catch{return null}}var $=ax(b,s,S,o),x=q($,4),E=x[0],O=x[1],w=x[2],P=x[3],R=i.useRef(P);P&&(R.current=!0);var M=i.useCallback(function(j){y.current=j,ha(a,j)},[a]),I,N=D(D({},p),{},{visible:s});if(!f)I=null;else if(E===Dr)P?I=f(D({},N),M):!u&&R.current&&g?I=f(D(D({},N),{},{className:g}),M):d||!u&&!g?I=f(D(D({},N),{},{style:{display:"none"}}),M):I=null;else{var z,L;O===Un?L="prepare":Gv(O)?L="active":O===bo&&(L="start");var T=Qd(m,"".concat(E,"-").concat(L));I=f(D(D({},N),{},{className:K(Qd(m,E),(z={},F(z,T,T&&L),F(z,m,typeof m=="string"),z)),style:w}),M)}if(i.isValidElement(I)&&Jn(I)){var _=I,B=_.ref;B||(I=i.cloneElement(I,{ref:M}))}return i.createElement(US,{ref:C},I)});return r.displayName="CSSMotion",r}const Gn=ix(Kv);var Qs="add",Js="keep",ec="remove",Zl="removed";function lx(e){var t;return e&&at(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function tc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(lx)}function sx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=tc(e),l=tc(t);a.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var m=l[f];if(m.key===u.key){r<f&&(n=n.concat(l.slice(r,f).map(function(g){return D(D({},g),{},{status:Qs})})),r=f),n.push(D(D({},m),{},{status:Js})),r+=1,d=!0;break}}d||n.push(D(D({},u),{},{status:ec}))}),r<o&&(n=n.concat(l.slice(r).map(function(u){return D(D({},u),{},{status:Qs})})));var s={};n.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var c=Object.keys(s).filter(function(u){return s[u]>1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==ec}),n.forEach(function(d){d.key===u&&(d.status=Js)})}),n}var cx=["component","children","onVisibleChanged","onAllRemoved"],ux=["status"],dx=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn,n=function(r){hr(a,r);var o=Qr(a);function a(){var l;fn(this,a);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return l=o.call.apply(o,[this].concat(c)),F(vt(l),"state",{keyEntities:[]}),F(vt(l),"removeKey",function(d){var f=l.state.keyEntities,m=f.map(function(g){return g.key!==d?g:D(D({},g),{},{status:Zl})});return l.setState({keyEntities:m}),m.filter(function(g){var p=g.status;return p!==Zl}).length}),l}return mn(a,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged,g=u.onAllRemoved,p=Qe(u,cx),v=d||i.Fragment,h={};return dx.forEach(function(b){h[b]=p[b],delete p[b]}),delete p.keys,i.createElement(v,p,c.map(function(b,y){var C=b.status,S=Qe(b,ux),$=C===Qs||C===Js;return i.createElement(t,de({},h,{key:S.key,visible:$,eventProps:S,onVisibleChanged:function(E){if(m==null||m(E,{key:S.key}),!E){var O=s.removeKey(S.key);O===0&&g&&g()}}}),function(x,E){return f(D(D({},x),{},{index:y}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var u=s.keys,d=c.keyEntities,f=tc(u),m=sx(d,f);return{keyEntities:m.filter(function(g){var p=d.find(function(v){var h=v.key;return g.key===h});return!(p&&p.status===Zl&&g.status===ec)})}}}]),a}(i.Component);return F(n,"defaultProps",{component:"div"}),n}const qv=fx(Kv);function mx(e){const{children:t}=e,[,n]=en(),{motion:r}=n,o=i.useRef(!1);return o.current=o.current||r===!1,o.current?i.createElement(XS,{motion:r},t):t}const gx=()=>null;var vx=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const px=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],hx="ant";let Ti,Xv,Uv,Yv;function hi(){return Ti||hx}function bx(){return Xv||iu}function yx(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Cx=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Ti=t),n!==void 0&&(Xv=n),"holderRender"in e&&(Yv=o),r&&(yx(r)?CS(hi(),r):Uv=r)},Sx=()=>({getPrefixCls:(e,t)=>t||(e?`${hi()}-${e}`:hi()),getIconPrefixCls:bx,getRootPrefixCls:()=>Ti||hi(),getTheme:()=>Uv,holderRender:Yv}),xx=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:l,locale:s,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:p,legacyLocale:v,parentContext:h,iconPrefixCls:b,theme:y,componentDisabled:C,segmented:S,statistic:$,spin:x,calendar:E,carousel:O,cascader:w,collapse:P,typography:R,checkbox:M,descriptions:I,divider:N,drawer:z,skeleton:L,steps:T,image:_,layout:B,list:j,mentions:A,modal:V,progress:X,result:te,slider:W,breadcrumb:G,menu:ne,pagination:J,input:oe,empty:Z,badge:k,radio:Q,rate:ee,switch:Y,transfer:U,avatar:ie,message:se,tag:ue,table:re,card:le,tabs:ce,timeline:pe,timePicker:me,upload:be,notification:ye,tree:xe,colorPicker:qe,datePicker:Ie,rangePicker:Ce,flex:$e,wave:he,dropdown:We,warning:_e}=e,Je=i.useCallback((we,De)=>{const{prefixCls:Ne}=e;if(De)return De;const Fe=Ne||h.getPrefixCls("");return we?`${Fe}-${we}`:Fe},[h.getPrefixCls,e.prefixCls]),Re=b||h.iconPrefixCls||iu,je=n||h.csp;zv(Re,je);const ke=GS(y,h.theme),Ge={csp:je,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||v,direction:u,space:d,virtual:f,popupMatchSelectWidth:g??m,popupOverflow:p,getPrefixCls:Je,iconPrefixCls:Re,theme:ke,segmented:S,statistic:$,spin:x,calendar:E,carousel:O,cascader:w,collapse:P,typography:R,checkbox:M,descriptions:I,divider:N,drawer:z,skeleton:L,steps:T,image:_,input:oe,layout:B,list:j,mentions:A,modal:V,progress:X,result:te,slider:W,breadcrumb:G,menu:ne,pagination:J,empty:Z,badge:k,radio:Q,rate:ee,switch:Y,transfer:U,avatar:ie,message:se,tag:ue,table:re,card:le,tabs:ce,timeline:pe,timePicker:me,upload:be,notification:ye,tree:xe,colorPicker:qe,datePicker:Ie,rangePicker:Ce,flex:$e,wave:he,dropdown:We,warning:_e},ot=Object.assign({},h);Object.keys(Ge).forEach(we=>{Ge[we]!==void 0&&(ot[we]=Ge[we])}),px.forEach(we=>{const De=e[we];De&&(ot[we]=De)});const ge=_r(()=>ot,ot,(we,De)=>{const Ne=Object.keys(we),Fe=Object.keys(De);return Ne.length!==Fe.length||Ne.some(Be=>we[Be]!==De[Be])}),Ae=i.useMemo(()=>({prefixCls:Re,csp:je}),[Re,je]);let Xe=i.createElement(i.Fragment,null,i.createElement(gx,{dropdownMatchSelectWidth:m}),t);const it=i.useMemo(()=>{var we,De,Ne,Fe;return ho(((we=or.Form)===null||we===void 0?void 0:we.defaultValidateMessages)||{},((Ne=(De=ge.locale)===null||De===void 0?void 0:De.Form)===null||Ne===void 0?void 0:Ne.defaultValidateMessages)||{},((Fe=ge.form)===null||Fe===void 0?void 0:Fe.validateMessages)||{},(l==null?void 0:l.validateMessages)||{})},[ge,l==null?void 0:l.validateMessages]);Object.keys(it).length>0&&(Xe=i.createElement(pv.Provider,{value:it},Xe)),s&&(Xe=i.createElement(KC,{locale:s,_ANT_MARK__:HC},Xe)),(Re||je)&&(Xe=i.createElement(ru.Provider,{value:Ae},Xe)),c&&(Xe=i.createElement(SS,{size:c},Xe)),Xe=i.createElement(mx,null,Xe);const Ke=i.useMemo(()=>{const we=ke||{},{algorithm:De,token:Ne,components:Fe,cssVar:Be}=we,ze=vx(we,["algorithm","token","components","cssVar"]),Ee=De&&(!Array.isArray(De)||De.length>0)?ga(De):Ev,Se={};Object.entries(Fe||{}).forEach(lt=>{let[rt,Te]=lt;const Le=Object.assign({},Te);"algorithm"in Le&&(Le.algorithm===!0?Le.theme=Ee:(Array.isArray(Le.algorithm)||typeof Le.algorithm=="function")&&(Le.theme=ga(Le.algorithm)),delete Le.algorithm),Se[rt]=Le});const Ze=Object.assign(Object.assign({},Po),Ne);return Object.assign(Object.assign({},ze),{theme:Ee,token:Ze,components:Se,override:Object.assign({override:Ze},Se),cssVar:Be})},[ke]);return y&&(Xe=i.createElement(Ov.Provider,{value:Ke},Xe)),ge.warning&&(Xe=i.createElement(_C.Provider,{value:ge.warning},Xe)),C!==void 0&&(Xe=i.createElement(Iv,{disabled:C},Xe)),i.createElement(Ve.Provider,{value:ge},Xe)},Lo=e=>{const t=i.useContext(Ve),n=i.useContext(ou);return i.createElement(xx,Object.assign({parentContext:t,legacyLocale:n},e))};Lo.ConfigContext=Ve;Lo.SizeContext=Pa;Lo.config=Cx;Lo.useConfig=xS;Object.defineProperty(Lo,"SizeContext",{get:()=>Pa});const Zv=Lo;var $x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const wx=$x;function Qv(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ex(e){return Qv(e)instanceof ShadowRoot}function Mi(e){return Ex(e)?Qv(e):null}function Ox(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Ix(e,t){Vt(e,"[@ant-design/icons] ".concat(t))}function Jd(e){return at(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(at(e.icon)==="object"||typeof e.icon=="function")}function ef(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Ox(n)]=r}return t},{})}function nc(e,t,n){return n?ae.createElement(e.tag,D(D({key:t},ef(e.attrs)),n),(e.children||[]).map(function(r,o){return nc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ae.createElement(e.tag,D({key:t},ef(e.attrs)),(e.children||[]).map(function(r,o){return nc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Jv(e){return fr(e)[0]}function ep(e){return e?Array.isArray(e)?e:[e]:[]}var Rx=`
.anticon {
  display: inline-block;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,Px=function(t){var n=i.useContext(ru),r=n.csp,o=n.prefixCls,a=Rx;o&&(a=a.replace(/anticon/g,o)),i.useEffect(function(){var l=t.current,s=Mi(l);Ir(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},Nx=["icon","className","onClick","style","primaryColor","secondaryColor"],la={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Tx(e){var t=e.primaryColor,n=e.secondaryColor;la.primaryColor=t,la.secondaryColor=n||Jv(t),la.calculated=!!n}function Mx(){return D({},la)}var al=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,l=t.primaryColor,s=t.secondaryColor,c=Qe(t,Nx),u=i.useRef(),d=la;if(l&&(d={primaryColor:l,secondaryColor:s||Jv(l)}),Px(u),Ix(Jd(n),"icon should be icon definiton, but got ".concat(n)),!Jd(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=D(D({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),nc(f.icon,"svg-".concat(f.name),D(D({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};al.displayName="IconReact";al.getTwoToneColors=Mx;al.setTwoToneColors=Tx;const du=al;function tp(e){var t=ep(e),n=q(t,2),r=n[0],o=n[1];return du.setTwoToneColors({primaryColor:r,secondaryColor:o})}function _x(){var e=du.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var zx=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];tp(lS.primary);var il=i.forwardRef(function(e,t){var n,r=e.className,o=e.icon,a=e.spin,l=e.rotate,s=e.tabIndex,c=e.onClick,u=e.twoToneColor,d=Qe(e,zx),f=i.useContext(ru),m=f.prefixCls,g=m===void 0?"anticon":m,p=f.rootClassName,v=K(p,g,(n={},F(n,"".concat(g,"-").concat(o.name),!!o.name),F(n,"".concat(g,"-spin"),!!a||o.name==="loading"),n),r),h=s;h===void 0&&c&&(h=-1);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,y=ep(u),C=q(y,2),S=C[0],$=C[1];return i.createElement("span",de({role:"img","aria-label":o.name},d,{ref:t,tabIndex:h,onClick:c,className:v}),i.createElement(du,{icon:o,primaryColor:S,secondaryColor:$,style:b}))});il.displayName="AntdIcon";il.getTwoToneColor=_x;il.setTwoToneColor=tp;const Ct=il;var Lx=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:wx}))};const np=i.forwardRef(Lx);var jx={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const Dx=jx;var Bx=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:Dx}))};const Na=i.forwardRef(Bx);var Ax={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const Fx=Ax;var Hx=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:Fx}))};const ll=i.forwardRef(Hx);var kx={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"};const Kx=kx;var Vx=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:Kx}))};const rp=i.forwardRef(Vx);var Wx={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"};const Gx=Wx;var qx=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:Gx}))};const Xx=i.forwardRef(qx);var Ux=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,Yx=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Zx="".concat(Ux," ").concat(Yx).split(/[\s\n]+/),Qx="aria-",Jx="data-";function tf(e,t){return e.indexOf(t)===0}function zn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=D({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||tf(o,Qx))||n.data&&tf(o,Jx)||n.attr&&Zx.includes(o))&&(r[o]=e[o])}),r}const{isValidElement:Ln}=Ia;function op(e){return e&&Ln(e)&&e.type===i.Fragment}function e$(e,t,n){return Ln(e)?i.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function dn(e,t){return e$(e,e,t)}const nf=e=>typeof e=="object"&&e!=null&&e.nodeType===1,rf=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ql=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return rf(n.overflowY,t)||rf(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},oi=(e,t,n,r,o,a,l,s)=>a<e&&l>t||a>e&&l<t?0:a<=e&&s<=n||l>=t&&s>=n?a-e-r:l>t&&s<n||a<e&&s>n?l-t+o:0,t$=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},of=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:l,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:L=>L!==u;if(!nf(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,g=[];let p=e;for(;nf(p)&&f(p);){if(p=t$(p),p===m){g.push(p);break}p!=null&&p===document.body&&Ql(p)&&!Ql(document.documentElement)||p!=null&&Ql(p,d)&&g.push(p)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,h=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:y}=window,{height:C,width:S,top:$,right:x,bottom:E,left:O}=e.getBoundingClientRect(),{top:w,right:P,bottom:R,left:M}=(L=>{const T=window.getComputedStyle(L);return{top:parseFloat(T.scrollMarginTop)||0,right:parseFloat(T.scrollMarginRight)||0,bottom:parseFloat(T.scrollMarginBottom)||0,left:parseFloat(T.scrollMarginLeft)||0}})(e);let I=s==="start"||s==="nearest"?$-w:s==="end"?E+R:$+C/2-w+R,N=c==="center"?O+S/2-M+P:c==="end"?x+P:O-M;const z=[];for(let L=0;L<g.length;L++){const T=g[L],{height:_,width:B,top:j,right:A,bottom:V,left:X}=T.getBoundingClientRect();if(l==="if-needed"&&$>=0&&O>=0&&E<=h&&x<=v&&$>=j&&E<=V&&O>=X&&x<=A)return z;const te=getComputedStyle(T),W=parseInt(te.borderLeftWidth,10),G=parseInt(te.borderTopWidth,10),ne=parseInt(te.borderRightWidth,10),J=parseInt(te.borderBottomWidth,10);let oe=0,Z=0;const k="offsetWidth"in T?T.offsetWidth-T.clientWidth-W-ne:0,Q="offsetHeight"in T?T.offsetHeight-T.clientHeight-G-J:0,ee="offsetWidth"in T?T.offsetWidth===0?0:B/T.offsetWidth:0,Y="offsetHeight"in T?T.offsetHeight===0?0:_/T.offsetHeight:0;if(m===T)oe=s==="start"?I:s==="end"?I-h:s==="nearest"?oi(y,y+h,h,G,J,y+I,y+I+C,C):I-h/2,Z=c==="start"?N:c==="center"?N-v/2:c==="end"?N-v:oi(b,b+v,v,W,ne,b+N,b+N+S,S),oe=Math.max(0,oe+y),Z=Math.max(0,Z+b);else{oe=s==="start"?I-j-G:s==="end"?I-V+J+Q:s==="nearest"?oi(j,V,_,G,J+Q,I,I+C,C):I-(j+_/2)+Q/2,Z=c==="start"?N-X-W:c==="center"?N-(X+B/2)+k/2:c==="end"?N-A+ne+k:oi(X,A,B,W,ne+k,N,N+S,S);const{scrollLeft:U,scrollTop:ie}=T;oe=Y===0?0:Math.max(0,Math.min(ie+oe/Y,T.scrollHeight-_/Y+Q)),Z=ee===0?0:Math.max(0,Math.min(U+Z/ee,T.scrollWidth-B/ee+k)),I+=ie-oe,N+=U-Z}z.push({el:T,top:oe,left:Z})}return z},n$=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function r$(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(of(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:l}of of(e,n$(t))){const s=a-n.top+n.bottom,c=l-n.left+n.right;o.scroll({top:s,left:c,behavior:r})}}function rc(e){return e!=null&&e===e.window}function o$(e,t){var n,r;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let a=0;return rc(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:(e instanceof HTMLElement||e)&&(a=e[o]),e&&!rc(e)&&typeof a!="number"&&(a=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),a}function a$(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function i$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,a=n(),l=o$(a,!0),s=Date.now(),c=()=>{const d=Date.now()-s,f=a$(d>o?o:d,l,e,o);rc(a)?a.scrollTo(window.pageXOffset,f):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=f:a.scrollTop=f,d<o?Et(c):typeof r=="function"&&r()};Et(c)}const l$=e=>{const[,,,,t]=en();return t?`${e}-css-var`:""},tn=l$;var fe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=fe.F1&&n<=fe.F12)return!1;switch(n){case fe.ALT:case fe.CAPS_LOCK:case fe.CONTEXT_MENU:case fe.CTRL:case fe.DOWN:case fe.END:case fe.ESC:case fe.HOME:case fe.INSERT:case fe.LEFT:case fe.MAC_FF_META:case fe.META:case fe.NUMLOCK:case fe.NUM_CENTER:case fe.PAGE_DOWN:case fe.PAGE_UP:case fe.PAUSE:case fe.PRINT_SCREEN:case fe.RIGHT:case fe.SHIFT:case fe.UP:case fe.WIN_KEY:case fe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=fe.ZERO&&t<=fe.NINE||t>=fe.NUM_ZERO&&t<=fe.NUM_MULTIPLY||t>=fe.A&&t<=fe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case fe.SPACE:case fe.QUESTION_MARK:case fe.NUM_PLUS:case fe.NUM_MINUS:case fe.NUM_PERIOD:case fe.NUM_DIVISION:case fe.SEMICOLON:case fe.DASH:case fe.EQUALS:case fe.COMMA:case fe.PERIOD:case fe.SLASH:case fe.APOSTROPHE:case fe.SINGLE_QUOTE:case fe.OPEN_SQUARE_BRACKET:case fe.BACKSLASH:case fe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ap=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,l=a===void 0?4.5:a,s=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,f=d===void 0?"x":d,m=e.props,g=e.onClick,p=e.onNoticeClose,v=e.times,h=e.hovering,b=i.useState(!1),y=q(b,2),C=y[0],S=y[1],$=h||C,x=function(){p(s)},E=function(P){(P.key==="Enter"||P.code==="Enter"||P.keyCode===fe.ENTER)&&x()};i.useEffect(function(){if(!$&&l>0){var w=setTimeout(function(){x()},l*1e3);return function(){clearTimeout(w)}}},[l,$,v]);var O="".concat(n,"-notice");return i.createElement("div",de({},m,{ref:t,className:K(O,o,F({},"".concat(O,"-closable"),u)),style:r,onMouseEnter:function(P){var R;S(!0),m==null||(R=m.onMouseEnter)===null||R===void 0||R.call(m,P)},onMouseLeave:function(P){var R;S(!1),m==null||(R=m.onMouseLeave)===null||R===void 0||R.call(m,P)},onClick:g}),i.createElement("div",{className:"".concat(O,"-content")},c),u&&i.createElement("a",{tabIndex:0,className:"".concat(O,"-close"),onKeyDown:E,onClick:function(P){P.preventDefault(),P.stopPropagation(),x()}},f))}),ip=ae.createContext({}),s$=function(t){var n=t.children,r=t.classNames;return ae.createElement(ip.Provider,{value:{classNames:r}},n)},af=8,lf=3,sf=16,c$=function(t){var n={offset:af,threshold:lf,gap:sf};if(t&&at(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:af,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:lf,n.gap=(a=t.gap)!==null&&a!==void 0?a:sf}return[!!t,n]},u$=["className","style","classNames","styles"],d$=function(t){var n,r=t.configList,o=t.placement,a=t.prefixCls,l=t.className,s=t.style,c=t.motion,u=t.onAllNoticeRemoved,d=t.onNoticeClose,f=t.stack,m=i.useContext(ip),g=m.classNames,p=i.useRef({}),v=i.useState(null),h=q(v,2),b=h[0],y=h[1],C=i.useState([]),S=q(C,2),$=S[0],x=S[1],E=r.map(function(T){return{config:T,key:String(T.key)}}),O=c$(f),w=q(O,2),P=w[0],R=w[1],M=R.offset,I=R.threshold,N=R.gap,z=P&&($.length>0||E.length<=I),L=typeof c=="function"?c(o):c;return i.useEffect(function(){P&&$.length>1&&x(function(T){return T.filter(function(_){return E.some(function(B){var j=B.key;return _===j})})})},[$,E,P]),i.useEffect(function(){var T;if(P&&p.current[(T=E[E.length-1])===null||T===void 0?void 0:T.key]){var _;y(p.current[(_=E[E.length-1])===null||_===void 0?void 0:_.key])}},[E,P]),ae.createElement(qv,de({key:o,className:K(a,"".concat(a,"-").concat(o),g==null?void 0:g.list,l,(n={},F(n,"".concat(a,"-stack"),!!P),F(n,"".concat(a,"-stack-expanded"),z),n)),style:s,keys:E,motionAppear:!0},L,{onAllRemoved:function(){u(o)}}),function(T,_){var B=T.config,j=T.className,A=T.style,V=T.index,X=B,te=X.key,W=X.times,G=String(te),ne=B,J=ne.className,oe=ne.style,Z=ne.classNames,k=ne.styles,Q=Qe(ne,u$),ee=E.findIndex(function(ye){return ye.key===G}),Y={};if(P){var U=E.length-1-(ee>-1?ee:V-1),ie=o==="top"||o==="bottom"?"-50%":"0";if(U>0){var se,ue,re;Y.height=z?(se=p.current[G])===null||se===void 0?void 0:se.offsetHeight:b==null?void 0:b.offsetHeight;for(var le=0,ce=0;ce<U;ce++){var pe;le+=((pe=p.current[E[E.length-1-ce].key])===null||pe===void 0?void 0:pe.offsetHeight)+N}var me=(z?le:U*M)*(o.startsWith("top")?1:-1),be=!z&&b!==null&&b!==void 0&&b.offsetWidth&&(ue=p.current[G])!==null&&ue!==void 0&&ue.offsetWidth?((b==null?void 0:b.offsetWidth)-M*2*(U<3?U:3))/((re=p.current[G])===null||re===void 0?void 0:re.offsetWidth):1;Y.transform="translate3d(".concat(ie,", ").concat(me,"px, 0) scaleX(").concat(be,")")}else Y.transform="translate3d(".concat(ie,", 0, 0)")}return ae.createElement("div",{ref:_,className:K("".concat(a,"-notice-wrapper"),j,Z==null?void 0:Z.wrapper),style:D(D(D({},A),Y),k==null?void 0:k.wrapper),onMouseEnter:function(){return x(function(xe){return xe.includes(G)?xe:[].concat(ve(xe),[G])})},onMouseLeave:function(){return x(function(xe){return xe.filter(function(qe){return qe!==G})})}},ae.createElement(ap,de({},Q,{ref:function(xe){ee>-1?p.current[G]=xe:delete p.current[G]},prefixCls:a,classNames:Z,styles:k,className:K(J,g==null?void 0:g.notice),style:oe,times:W,key:te,eventKey:te,onNoticeClose:d,hovering:P&&$.length>0})))})},f$=i.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,l=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=i.useState([]),g=q(m,2),p=g[0],v=g[1],h=function(w){var P,R=p.find(function(M){return M.key===w});R==null||(P=R.onClose)===null||P===void 0||P.call(R),v(function(M){return M.filter(function(I){return I.key!==w})})};i.useImperativeHandle(t,function(){return{open:function(w){v(function(P){var R=ve(P),M=R.findIndex(function(z){return z.key===w.key}),I=D({},w);if(M>=0){var N;I.times=(((N=P[M])===null||N===void 0?void 0:N.times)||0)+1,R[M]=I}else I.times=0,R.push(I);return l>0&&R.length>l&&(R=R.slice(-l)),R})},close:function(w){h(w)},destroy:function(){v([])}}});var b=i.useState({}),y=q(b,2),C=y[0],S=y[1];i.useEffect(function(){var O={};p.forEach(function(w){var P=w.placement,R=P===void 0?"topRight":P;R&&(O[R]=O[R]||[],O[R].push(w))}),Object.keys(C).forEach(function(w){O[w]=O[w]||[]}),S(O)},[p]);var $=function(w){S(function(P){var R=D({},P),M=R[w]||[];return M.length||delete R[w],R})},x=i.useRef(!1);if(i.useEffect(function(){Object.keys(C).length>0?x.current=!0:x.current&&(u==null||u(),x.current=!1)},[C]),!o)return null;var E=Object.keys(C);return qr.createPortal(i.createElement(i.Fragment,null,E.map(function(O){var w=C[O],P=i.createElement(d$,{key:O,configList:w,placement:O,prefixCls:r,className:s==null?void 0:s(O),style:c==null?void 0:c(O),motion:a,onNoticeClose:h,onAllNoticeRemoved:$,stack:d});return f?f(P,{prefixCls:r,key:O}):P})),o)}),m$=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],g$=function(){return document.body},cf=0;function v$(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var l=o[a];l!==void 0&&(e[a]=l)})}),e}function p$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?g$:t,r=e.motion,o=e.prefixCls,a=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Qe(e,m$),m=i.useState(),g=q(m,2),p=g[0],v=g[1],h=i.useRef(),b=i.createElement(f$,{container:p,ref:h,prefixCls:o,motion:r,maxCount:a,className:l,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),y=i.useState([]),C=q(y,2),S=C[0],$=C[1],x=i.useMemo(function(){return{open:function(O){var w=v$(f,O);(w.key===null||w.key===void 0)&&(w.key="rc-notification-".concat(cf),cf+=1),$(function(P){return[].concat(ve(P),[{type:"open",config:w}])})},close:function(O){$(function(w){return[].concat(ve(w),[{type:"close",key:O}])})},destroy:function(){$(function(O){return[].concat(ve(O),[{type:"destroy"}])})}}},[]);return i.useEffect(function(){v(n())}),i.useEffect(function(){h.current&&S.length&&(S.forEach(function(E){switch(E.type){case"open":h.current.open(E.config);break;case"close":h.current.close(E.key);break;case"destroy":h.current.destroy();break}}),$(function(E){return E.filter(function(O){return!S.includes(O)})}))},[S]),[x,b]}var h$={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const b$=h$;var y$=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:b$}))};const Ta=i.forwardRef(y$),C$=ae.createContext(void 0),fu=C$,Br=100,S$=10,lp=Br*S$,sp={Modal:Br,Drawer:Br,Popover:Br,Popconfirm:Br,Tooltip:Br,Tour:Br},x$={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function $$(e){return e in sp}function jo(e,t){const[,n]=en(),r=ae.useContext(fu),o=$$(e);if(t!==void 0)return[t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+sp[e],a=Math.min(a,n.zIndexPopupBase+lp)):a+=x$[e],[r===void 0?t:a,a]}function Sn(){Sn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(L,T,_){L[T]=_.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(L,T,_){return Object.defineProperty(L,T,{value:_,enumerable:!0,configurable:!0,writable:!0}),L[T]}try{u({},"")}catch{u=function(_,B,j){return _[B]=j}}function d(L,T,_,B){var j=T&&T.prototype instanceof b?T:b,A=Object.create(j.prototype),V=new N(B||[]);return o(A,"_invoke",{value:P(L,_,V)}),A}function f(L,T,_){try{return{type:"normal",arg:L.call(T,_)}}catch(B){return{type:"throw",arg:B}}}t.wrap=d;var m="suspendedStart",g="suspendedYield",p="executing",v="completed",h={};function b(){}function y(){}function C(){}var S={};u(S,l,function(){return this});var $=Object.getPrototypeOf,x=$&&$($(z([])));x&&x!==n&&r.call(x,l)&&(S=x);var E=C.prototype=b.prototype=Object.create(S);function O(L){["next","throw","return"].forEach(function(T){u(L,T,function(_){return this._invoke(T,_)})})}function w(L,T){function _(j,A,V,X){var te=f(L[j],L,A);if(te.type!=="throw"){var W=te.arg,G=W.value;return G&&at(G)=="object"&&r.call(G,"__await")?T.resolve(G.__await).then(function(ne){_("next",ne,V,X)},function(ne){_("throw",ne,V,X)}):T.resolve(G).then(function(ne){W.value=ne,V(W)},function(ne){return _("throw",ne,V,X)})}X(te.arg)}var B;o(this,"_invoke",{value:function(A,V){function X(){return new T(function(te,W){_(A,V,te,W)})}return B=B?B.then(X,X):X()}})}function P(L,T,_){var B=m;return function(j,A){if(B===p)throw new Error("Generator is already running");if(B===v){if(j==="throw")throw A;return{value:e,done:!0}}for(_.method=j,_.arg=A;;){var V=_.delegate;if(V){var X=R(V,_);if(X){if(X===h)continue;return X}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(B===m)throw B=v,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);B=p;var te=f(L,T,_);if(te.type==="normal"){if(B=_.done?v:g,te.arg===h)continue;return{value:te.arg,done:_.done}}te.type==="throw"&&(B=v,_.method="throw",_.arg=te.arg)}}}function R(L,T){var _=T.method,B=L.iterator[_];if(B===e)return T.delegate=null,_==="throw"&&L.iterator.return&&(T.method="return",T.arg=e,R(L,T),T.method==="throw")||_!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+_+"' method")),h;var j=f(B,L.iterator,T.arg);if(j.type==="throw")return T.method="throw",T.arg=j.arg,T.delegate=null,h;var A=j.arg;return A?A.done?(T[L.resultName]=A.value,T.next=L.nextLoc,T.method!=="return"&&(T.method="next",T.arg=e),T.delegate=null,h):A:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,h)}function M(L){var T={tryLoc:L[0]};1 in L&&(T.catchLoc=L[1]),2 in L&&(T.finallyLoc=L[2],T.afterLoc=L[3]),this.tryEntries.push(T)}function I(L){var T=L.completion||{};T.type="normal",delete T.arg,L.completion=T}function N(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(M,this),this.reset(!0)}function z(L){if(L||L===""){var T=L[l];if(T)return T.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var _=-1,B=function j(){for(;++_<L.length;)if(r.call(L,_))return j.value=L[_],j.done=!1,j;return j.value=e,j.done=!0,j};return B.next=B}}throw new TypeError(at(L)+" is not iterable")}return y.prototype=C,o(E,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:y,configurable:!0}),y.displayName=u(C,c,"GeneratorFunction"),t.isGeneratorFunction=function(L){var T=typeof L=="function"&&L.constructor;return!!T&&(T===y||(T.displayName||T.name)==="GeneratorFunction")},t.mark=function(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,C):(L.__proto__=C,u(L,c,"GeneratorFunction")),L.prototype=Object.create(E),L},t.awrap=function(L){return{__await:L}},O(w.prototype),u(w.prototype,s,function(){return this}),t.AsyncIterator=w,t.async=function(L,T,_,B,j){j===void 0&&(j=Promise);var A=new w(d(L,T,_,B),j);return t.isGeneratorFunction(T)?A:A.next().then(function(V){return V.done?V.value:A.next()})},O(E),u(E,c,"Generator"),u(E,l,function(){return this}),u(E,"toString",function(){return"[object Generator]"}),t.keys=function(L){var T=Object(L),_=[];for(var B in T)_.push(B);return _.reverse(),function j(){for(;_.length;){var A=_.pop();if(A in T)return j.value=A,j.done=!1,j}return j.done=!0,j}},t.values=z,N.prototype={constructor:N,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!T)for(var _ in this)_.charAt(0)==="t"&&r.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=e)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var _=this;function B(W,G){return V.type="throw",V.arg=T,_.next=W,G&&(_.method="next",_.arg=e),!!G}for(var j=this.tryEntries.length-1;j>=0;--j){var A=this.tryEntries[j],V=A.completion;if(A.tryLoc==="root")return B("end");if(A.tryLoc<=this.prev){var X=r.call(A,"catchLoc"),te=r.call(A,"finallyLoc");if(X&&te){if(this.prev<A.catchLoc)return B(A.catchLoc,!0);if(this.prev<A.finallyLoc)return B(A.finallyLoc)}else if(X){if(this.prev<A.catchLoc)return B(A.catchLoc,!0)}else{if(!te)throw new Error("try statement without catch or finally");if(this.prev<A.finallyLoc)return B(A.finallyLoc)}}}},abrupt:function(T,_){for(var B=this.tryEntries.length-1;B>=0;--B){var j=this.tryEntries[B];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var A=j;break}}A&&(T==="break"||T==="continue")&&A.tryLoc<=_&&_<=A.finallyLoc&&(A=null);var V=A?A.completion:{};return V.type=T,V.arg=_,A?(this.method="next",this.next=A.finallyLoc,h):this.complete(V)},complete:function(T,_){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&_&&(this.next=_),h},finish:function(T){for(var _=this.tryEntries.length-1;_>=0;--_){var B=this.tryEntries[_];if(B.finallyLoc===T)return this.complete(B.completion,B.afterLoc),I(B),h}},catch:function(T){for(var _=this.tryEntries.length-1;_>=0;--_){var B=this.tryEntries[_];if(B.tryLoc===T){var j=B.completion;if(j.type==="throw"){var A=j.arg;I(B)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(T,_,B){return this.delegate={iterator:z(T),resultName:_,nextLoc:B},this.method==="next"&&(this.arg=e),h}},t}function uf(e,t,n,r,o,a,l){try{var s=e[a](l),c=s.value}catch(u){n(u);return}s.done?t(c):Promise.resolve(c).then(r,o)}function Jr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(c){uf(a,r,o,l,s,"next",c)}function s(c){uf(a,r,o,l,s,"throw",c)}l(void 0)})}}var Ma=D({},B0),w$=Ma.version,E$=Ma.render,O$=Ma.unmountComponentAtNode,sl;try{var I$=Number((w$||"").split(".")[0]);I$>=18&&(sl=Ma.createRoot)}catch{}function df(e){var t=Ma.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&at(t)==="object"&&(t.usingClientEntryPoint=e)}var _i="__rc_react_root__";function R$(e,t){df(!0);var n=t[_i]||sl(t);df(!1),n.render(e),t[_i]=n}function P$(e,t){E$(e,t)}function cp(e,t){if(sl){R$(e,t);return}P$(e,t)}function N$(e){return oc.apply(this,arguments)}function oc(){return oc=Jr(Sn().mark(function e(t){return Sn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[_i])===null||o===void 0||o.unmount(),delete t[_i]}));case 1:case"end":return r.stop()}},e)})),oc.apply(this,arguments)}function T$(e){O$(e)}function M$(e){return ac.apply(this,arguments)}function ac(){return ac=Jr(Sn().mark(function e(t){return Sn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(sl===void 0){r.next=2;break}return r.abrupt("return",N$(t));case 2:T$(t);case 3:case"end":return r.stop()}},e)})),ac.apply(this,arguments)}const Jl=()=>({height:0,opacity:0}),ff=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},_$=e=>({height:e?e.offsetHeight:0}),es=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",z$=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Jl,onEnterStart:Jl,onAppearActive:ff,onEnterActive:ff,onLeaveStart:_$,onLeaveActive:Jl,onAppearEnd:es,onEnterEnd:es,onLeaveEnd:es,motionDeadline:500}},Tr=(e,t,n)=>n!==void 0?n:`${e}-${t}`,zi=z$,_a=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,l=o.height;if(a||l)return!0}}return!1},L$=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},j$=cu("Wave",e=>[L$(e)]);function D$(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function ts(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&D$(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function B$(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return ts(t)?t:ts(n)?n:ts(r)?r:null}const cl="ant-wave-target";function ns(e){return Number.isNaN(e)?0:e}const A$=e=>{const{className:t,target:n,component:r}=e,o=i.useRef(null),[a,l]=i.useState(null),[s,c]=i.useState([]),[u,d]=i.useState(0),[f,m]=i.useState(0),[g,p]=i.useState(0),[v,h]=i.useState(0),[b,y]=i.useState(!1),C={left:u,top:f,width:g,height:v,borderRadius:s.map(x=>`${x}px`).join(" ")};a&&(C["--wave-color"]=a);function S(){const x=getComputedStyle(n);l(B$(n));const E=x.position==="static",{borderLeftWidth:O,borderTopWidth:w}=x;d(E?n.offsetLeft:ns(-parseFloat(O))),m(E?n.offsetTop:ns(-parseFloat(w))),p(n.offsetWidth),h(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:R,borderBottomLeftRadius:M,borderBottomRightRadius:I}=x;c([P,R,I,M].map(N=>ns(parseFloat(N))))}if(i.useEffect(()=>{if(n){const x=Et(()=>{S(),y(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(S),E.observe(n)),()=>{Et.cancel(x),E==null||E.disconnect()}}},[]),!b)return null;const $=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(cl));return i.createElement(Gn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,E)=>{var O;if(E.deadline||E.propertyName==="opacity"){const w=(O=o.current)===null||O===void 0?void 0:O.parentElement;M$(w).then(()=>{w==null||w.remove()})}return!1}},x=>{let{className:E}=x;return i.createElement("div",{ref:o,className:K(t,{"wave-quick":$},E),style:C})})},F$=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),cp(i.createElement(A$,Object.assign({},t,{target:e})),o)},H$=F$;function k$(e,t,n){const{wave:r}=i.useContext(Ve),[,o,a]=en(),l=Yt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${cl}`)||d,{showEffect:m}=r||{};(m||H$)(f,{className:t,token:o,component:n,event:u,hashId:a})}),s=i.useRef();return u=>{Et.cancel(s.current),s.current=Et(()=>{l(u)})}}const K$=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=i.useContext(Ve),a=i.useRef(null),l=o("wave"),[,s]=j$(l),c=k$(a,K(l,s),r);if(ae.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!_a(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!ae.isValidElement(t))return t??null;const u=Jn(t)?$n(t.ref,a):a;return dn(t,{ref:u})},ul=K$,V$=e=>{const t=ae.useContext(Pa);return ae.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},In=V$,W$=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},G$=W$,q$=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},X$=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},up=zt("Space",e=>{const t=pt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[q$(t),X$(t),G$(t)]},()=>({}),{resetStyle:!1});var dp=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dl=i.createContext(null),za=(e,t)=>{const n=i.useContext(dl),r=i.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:l}=n,s=o==="vertical"?"-vertical-":"-";return K(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:l,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Li=e=>{let{children:t}=e;return i.createElement(dl.Provider,{value:null},t)},U$=e=>{var{children:t}=e,n=dp(e,["children"]);return i.createElement(dl.Provider,{value:n},t)},Y$=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Ve),{size:r,direction:o,block:a,prefixCls:l,className:s,rootClassName:c,children:u}=e,d=dp(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=In(C=>r??C),m=t("space-compact",l),[g,p]=up(m),v=K(m,p,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},s,c),h=i.useContext(dl),b=on(u),y=i.useMemo(()=>b.map((C,S)=>{const $=C&&C.key||`${m}-item-${S}`;return i.createElement(U$,{key:$,compactSize:f,compactDirection:o,isFirstItem:S===0&&(!h||(h==null?void 0:h.isFirstItem)),isLastItem:S===b.length-1&&(!h||(h==null?void 0:h.isLastItem))},C)}),[r,b,h]);return b.length===0?null:g(i.createElement("div",Object.assign({className:v},d),y))},Z$=Y$;var Q$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fp=i.createContext(void 0),J$=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Ve),{prefixCls:r,size:o,className:a}=e,l=Q$(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=en();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const d=K(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},a,c);return i.createElement(fp.Provider,{value:o},i.createElement("div",Object.assign({},l,{className:d})))},ew=J$,mf=/^[\u4e00-\u9fa5]{2}$/,ic=mf.test.bind(mf);function gf(e){return typeof e=="string"}function rs(e){return e==="text"||e==="link"}function tw(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&gf(e.type)&&ic(e.props.children)?dn(e,{children:e.props.children.split("").join(n)}):gf(e)?ic(e)?ae.createElement("span",null,e.split("").join(n)):ae.createElement("span",null,e):op(e)?ae.createElement("span",null,e):e}function nw(e,t){let n=!1;const r=[];return ae.Children.forEach(e,o=>{const a=typeof o,l=a==="string"||a==="number";if(n&&l){const s=r.length-1,c=r[s];r[s]=`${c}${o}`}else r.push(o);n=l}),ae.Children.map(r,o=>tw(o,t))}const rw=i.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,l=K(`${a}-icon`,n);return ae.createElement("span",{ref:t,className:l,style:r},o)}),mp=rw,vf=i.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const l=K(`${n}-loading-icon`,r);return ae.createElement(mp,{prefixCls:n,className:l,style:o,ref:t},ae.createElement(Ta,{className:a}))}),os=()=>({width:0,opacity:0,transform:"scale(0)"}),as=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ow=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,l=!!n;return r?ae.createElement(vf,{prefixCls:t,className:o,style:a}):ae.createElement(Gn,{visible:l,motionName:`${t}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:os,onAppearActive:as,onEnterStart:os,onEnterActive:as,onLeaveStart:as,onLeaveActive:os},(s,c)=>{let{className:u,style:d}=s;return ae.createElement(vf,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),d),ref:c,iconClassName:u})})},aw=ow,pf=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),iw=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n          &:focus,\n          &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},pf(`${t}-primary`,o),pf(`${t}-danger`,a)]}},lw=iw,gp=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return pt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},vp=e=>{var t,n,r,o,a,l;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:pi(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:pi(c),m=(l=e.contentLineHeightLG)!==null&&l!==void 0?l:pi(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)}},sw=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},gr(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},vr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),cw=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),uw=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),dw=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ya=(e,t,n,r,o,a,l,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},vr(e,Object.assign({background:t},l),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),mu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},dw(e))}),pp=e=>Object.assign({},mu(e)),ji=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),hp=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pp(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),vr(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ya(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},vr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ya(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),mu(e))}),fw=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pp(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),vr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),ya(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},vr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),ya(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),mu(e))}),mw=e=>Object.assign(Object.assign({},hp(e)),{borderStyle:"dashed"}),gw=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},vr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ji(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},vr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),ji(e))}),vw=e=>Object.assign(Object.assign(Object.assign({},vr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),ji(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ji(e)),vr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),pw=e=>{const{componentCls:t}=e;return{[`${t}-default`]:hp(e),[`${t}-primary`]:fw(e),[`${t}-dashed`]:mw(e),[`${t}-link`]:gw(e),[`${t}-text`]:vw(e),[`${t}-ghost`]:ya(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},gu=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:l,buttonPaddingHorizontal:s,iconCls:c,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,lineHeight:a,height:r,padding:`${H(u)} ${H(s)}`,borderRadius:l,[`&${d}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:cw(e)},{[`${n}${n}-round${t}`]:uw(e)}]},hw=e=>gu(pt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight})),bw=e=>{const t=pt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return gu(t,`${e.componentCls}-sm`)},yw=e=>{const t=pt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return gu(t,`${e.componentCls}-lg`)},Cw=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Sw=zt("Button",e=>{const t=gp(e);return[sw(t),bw(t),hw(t),yw(t),Cw(t),pw(t),lw(t)]},vp,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function xw(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,l=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function $w(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function vu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},xw(e,r,t)),$w(n,r,t))}}function ww(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ew(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ow(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ww(e,t)),Ew(e.componentCls,t))}}const Iw=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${H(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${H(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Rw=ol(["Button","compact"],e=>{const t=gp(e);return[vu(t),Ow(t),Iw(t)]},vp);var Pw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Nw(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Tw=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,type:l="default",danger:s,shape:c="default",size:u,styles:d,disabled:f,className:m,rootClassName:g,children:p,icon:v,ghost:h=!1,block:b=!1,htmlType:y="button",classNames:C,style:S={}}=e,$=Pw(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:x,autoInsertSpaceInButton:E,direction:O,button:w}=i.useContext(Ve),P=x("btn",a),[R,M,I]=Sw(P),N=i.useContext(br),z=f??N,L=i.useContext(fp),T=i.useMemo(()=>Nw(o),[o]),[_,B]=i.useState(T.loading),[j,A]=i.useState(!1),X=$n(t,i.createRef()),te=i.Children.count(p)===1&&!v&&!rs(l);i.useEffect(()=>{let ce=null;T.delay>0?ce=setTimeout(()=>{ce=null,B(!0)},T.delay):B(T.loading);function pe(){ce&&(clearTimeout(ce),ce=null)}return pe},[T]),i.useEffect(()=>{if(!X||!X.current||E===!1)return;const ce=X.current.textContent;te&&ic(ce)?j||A(!0):j&&A(!1)},[X]);const W=ce=>{const{onClick:pe}=e;if(_||z){ce.preventDefault();return}pe==null||pe(ce)},G=E!==!1,{compactSize:ne,compactItemClassnames:J}=za(P,O),oe={large:"lg",small:"sm",middle:void 0},Z=In(ce=>{var pe,me;return(me=(pe=u??ne)!==null&&pe!==void 0?pe:L)!==null&&me!==void 0?me:ce}),k=Z&&oe[Z]||"",Q=_?"loading":v,ee=Ft($,["navigate"]),Y=K(P,M,I,{[`${P}-${c}`]:c!=="default"&&c,[`${P}-${l}`]:l,[`${P}-${k}`]:k,[`${P}-icon-only`]:!p&&p!==0&&!!Q,[`${P}-background-ghost`]:h&&!rs(l),[`${P}-loading`]:_,[`${P}-two-chinese-chars`]:j&&G&&!_,[`${P}-block`]:b,[`${P}-dangerous`]:!!s,[`${P}-rtl`]:O==="rtl"},J,m,g,w==null?void 0:w.className),U=Object.assign(Object.assign({},w==null?void 0:w.style),S),ie=K(C==null?void 0:C.icon,(n=w==null?void 0:w.classNames)===null||n===void 0?void 0:n.icon),se=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=w==null?void 0:w.styles)===null||r===void 0?void 0:r.icon)||{}),ue=v&&!_?ae.createElement(mp,{prefixCls:P,className:ie,style:se},v):ae.createElement(aw,{existIcon:!!v,prefixCls:P,loading:!!_}),re=p||p===0?nw(p,te&&G):null;if(ee.href!==void 0)return R(ae.createElement("a",Object.assign({},ee,{className:K(Y,{[`${P}-disabled`]:z}),href:z?void 0:ee.href,style:U,onClick:W,ref:X,tabIndex:z?-1:0}),ue,re));let le=ae.createElement("button",Object.assign({},$,{type:y,className:Y,style:U,onClick:W,disabled:z,ref:X}),ue,re,!!J&&ae.createElement(Rw,{key:"compact",prefixCls:P}));return rs(l)||(le=ae.createElement(ul,{component:"Button",disabled:!!_},le)),R(le)},pu=i.forwardRef(Tw);pu.Group=ew;pu.__ANT_BUTTON=!0;const Ca=pu;var bp=i.createContext(null),hf=[];function Mw(e,t){var n=i.useState(function(){if(!un())return null;var p=document.createElement("div");return p}),r=q(n,1),o=r[0],a=i.useRef(!1),l=i.useContext(bp),s=i.useState(hf),c=q(s,2),u=c[0],d=c[1],f=l||(a.current?void 0:function(p){d(function(v){var h=[p].concat(ve(v));return h})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function g(){var p;(p=o.parentElement)===null||p===void 0||p.removeChild(o),a.current=!1}return xt(function(){return e?l?l(m):m():g(),g},[e]),xt(function(){u.length&&(u.forEach(function(p){return p()}),d(hf))},[u]),[o,f]}var is;function lc(e){if(typeof document>"u")return 0;if(e||is===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),is=o-a}return is}function bf(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?lc():n}function sc(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:bf(n),height:bf(r)}}function _w(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var zw="rc-util-locker-".concat(Date.now()),yf=0;function Lw(e){var t=!!e,n=i.useState(function(){return yf+=1,"".concat(zw,"_").concat(yf)}),r=q(n,1),o=r[0];xt(function(){if(t){var a=sc(document.body).width,l=_w();Ir(`
html body {
  overflow-y: hidden;
  `.concat(l?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o)}else ma(o);return function(){ma(o)}},[t,o])}var Cf=!1;function jw(e){return typeof e=="boolean"&&(Cf=e),Cf}var Sf=function(t){return t===!1?!1:!un()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},fl=i.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,l=a===void 0?!0:a,s=e.children,c=i.useState(n),u=q(c,2),d=u[0],f=u[1],m=d||n;i.useEffect(function(){(l||n)&&f(n)},[n,l]);var g=i.useState(function(){return Sf(o)}),p=q(g,2),v=p[0],h=p[1];i.useEffect(function(){var R=Sf(o);h(R??null)});var b=Mw(m&&!v),y=q(b,2),C=y[0],S=y[1],$=v??C;Lw(r&&n&&un()&&($===C||$===document.body));var x=null;if(s&&Jn(s)&&t){var E=s;x=E.ref}var O=zr(x,t);if(!m||!un()||v===void 0)return null;var w=$===!1||jw(),P=s;return t&&(P=i.cloneElement(s,{ref:O})),i.createElement(bp.Provider,{value:S},w?P:qr.createPortal(P,$))}),yp=i.createContext({});function Dw(){var e=D({},Ia);return e.useId}var xf=0,$f=Dw();const Cp=$f?function(t){var n=$f();return t||n}:function(t){var n=i.useState("ssr-id"),r=q(n,2),o=r[0],a=r[1];return i.useEffect(function(){var l=xf;xf+=1,a("rc_unique_".concat(l))},[]),t||o};function wf(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Ef(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function Bw(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Ef(o),n.top+=Ef(o,!0),n}const Aw=i.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Of={width:0,height:0,overflow:"hidden",outline:"none"},Fw=ae.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,l=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,g=e.bodyProps,p=e.modalRender,v=e.onMouseDown,h=e.onMouseUp,b=e.holderRef,y=e.visible,C=e.forceRender,S=e.width,$=e.height,x=e.classNames,E=e.styles,O=ae.useContext(yp),w=O.panel,P=zr(b,w),R=i.useRef(),M=i.useRef();ae.useImperativeHandle(t,function(){return{focus:function(){var B;(B=R.current)===null||B===void 0||B.focus()},changeActive:function(B){var j=document,A=j.activeElement;B&&A===M.current?R.current.focus():!B&&A===R.current&&M.current.focus()}}});var I={};S!==void 0&&(I.width=S),$!==void 0&&(I.height=$);var N;s&&(N=ae.createElement("div",{className:K("".concat(n,"-footer"),x==null?void 0:x.footer),style:D({},E==null?void 0:E.footer)},s));var z;a&&(z=ae.createElement("div",{className:K("".concat(n,"-header"),x==null?void 0:x.header),style:D({},E==null?void 0:E.header)},ae.createElement("div",{className:"".concat(n,"-title"),id:l},a)));var L;c&&(L=ae.createElement("button",{type:"button",onClick:d,"aria-label":"Close",className:"".concat(n,"-close")},u||ae.createElement("span",{className:"".concat(n,"-close-x")})));var T=ae.createElement("div",{className:K("".concat(n,"-content"),x==null?void 0:x.content),style:E==null?void 0:E.content},L,z,ae.createElement("div",de({className:K("".concat(n,"-body"),x==null?void 0:x.body),style:D(D({},m),E==null?void 0:E.body)},g),f),N);return ae.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:P,style:D(D({},o),I),className:K(n,r),onMouseDown:v,onMouseUp:h},ae.createElement("div",{tabIndex:0,ref:R,style:Of,"aria-hidden":"true"}),ae.createElement(Aw,{shouldUpdate:y||C},p?p(T):T),ae.createElement("div",{tabIndex:0,ref:M,style:Of,"aria-hidden":"true"}))}),Sp=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,l=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,g=i.useRef(),p=i.useState(),v=q(p,2),h=v[0],b=v[1],y={};h&&(y.transformOrigin=h);function C(){var S=Bw(g.current);b(m?"".concat(m.x-S.left,"px ").concat(m.y-S.top,"px"):"")}return i.createElement(Gn,{visible:l,onVisibleChanged:f,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(S,$){var x=S.className,E=S.style;return i.createElement(Fw,de({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:$,style:D(D(D({},E),o),y),className:K(a,x)}))})});Sp.displayName="Content";function Hw(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,a=e.motionName,l=e.className;return i.createElement(Gn,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(s,c){var u=s.className,d=s.style;return i.createElement("div",de({ref:c,style:D(D({},d),n),className:K("".concat(t,"-mask"),u,l)},o))})}function kw(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,o=e.visible,a=o===void 0?!1:o,l=e.keyboard,s=l===void 0?!0:l,c=e.focusTriggerAfterClose,u=c===void 0?!0:c,d=e.wrapStyle,f=e.wrapClassName,m=e.wrapProps,g=e.onClose,p=e.afterOpenChange,v=e.afterClose,h=e.transitionName,b=e.animation,y=e.closable,C=y===void 0?!0:y,S=e.mask,$=S===void 0?!0:S,x=e.maskTransitionName,E=e.maskAnimation,O=e.maskClosable,w=O===void 0?!0:O,P=e.maskStyle,R=e.maskProps,M=e.rootClassName,I=e.classNames,N=e.styles,z=i.useRef(),L=i.useRef(),T=i.useRef(),_=i.useState(a),B=q(_,2),j=B[0],A=B[1],V=Cp();function X(){Ms(L.current,document.activeElement)||(z.current=document.activeElement)}function te(){if(!Ms(L.current,document.activeElement)){var ee;(ee=T.current)===null||ee===void 0||ee.focus()}}function W(ee){if(ee)te();else{if(A(!1),$&&z.current&&u){try{z.current.focus({preventScroll:!0})}catch{}z.current=null}j&&(v==null||v())}p==null||p(ee)}function G(ee){g==null||g(ee)}var ne=i.useRef(!1),J=i.useRef(),oe=function(){clearTimeout(J.current),ne.current=!0},Z=function(){J.current=setTimeout(function(){ne.current=!1})},k=null;w&&(k=function(Y){ne.current?ne.current=!1:L.current===Y.target&&G(Y)});function Q(ee){if(s&&ee.keyCode===fe.ESC){ee.stopPropagation(),G(ee);return}a&&ee.keyCode===fe.TAB&&T.current.changeActive(!ee.shiftKey)}return i.useEffect(function(){a&&(A(!0),X())},[a]),i.useEffect(function(){return function(){clearTimeout(J.current)}},[]),i.createElement("div",de({className:K("".concat(n,"-root"),M)},zn(e,{data:!0})),i.createElement(Hw,{prefixCls:n,visible:$&&a,motionName:wf(n,x,E),style:D(D({zIndex:r},P),N==null?void 0:N.mask),maskProps:R,className:I==null?void 0:I.mask}),i.createElement("div",de({tabIndex:-1,onKeyDown:Q,className:K("".concat(n,"-wrap"),f,I==null?void 0:I.wrapper),ref:L,onClick:k,style:D(D(D({zIndex:r},d),N==null?void 0:N.wrapper),{},{display:j?null:"none"})},m),i.createElement(Sp,de({},e,{onMouseDown:oe,onMouseUp:Z,ref:T,closable:C,ariaId:V,prefixCls:n,visible:a&&j,onClose:G,onVisibleChanged:W,motionName:wf(n,h,b)}))))}var xp=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,l=a===void 0?!1:a,s=t.afterClose,c=t.panelRef,u=i.useState(n),d=q(u,2),f=d[0],m=d[1],g=i.useMemo(function(){return{panel:c}},[c]);return i.useEffect(function(){n&&m(!0)},[n]),!o&&l&&!f?null:i.createElement(yp.Provider,{value:g},i.createElement(fl,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},i.createElement(kw,de({},t,{destroyOnClose:l,afterClose:function(){s==null||s(),m(!1)}}))))};xp.displayName="Dialog";var $p=function(t){if(un()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},Kw=function(t,n){if(!$p(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function cc(e,t){return!Array.isArray(e)&&t!==void 0?Kw(e,t):$p(e)}var kr="RC_FORM_INTERNAL_HOOKS",Dt=function(){Vt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Xr=i.createContext({getFieldValue:Dt,getFieldsValue:Dt,getFieldError:Dt,getFieldWarning:Dt,getFieldsError:Dt,isFieldsTouched:Dt,isFieldTouched:Dt,isFieldValidating:Dt,isFieldsValidating:Dt,resetFields:Dt,setFields:Dt,setFieldValue:Dt,setFieldsValue:Dt,validateFields:Dt,submit:Dt,getInternalHooks:function(){return Dt(),{dispatch:Dt,initEntityValue:Dt,registerField:Dt,useSubscribe:Dt,setInitialValues:Dt,destroyForm:Dt,setCallbacks:Dt,registerWatch:Dt,getFields:Dt,setValidateMessages:Dt,setPreserve:Dt,getInitialValue:Dt}}}),Sa=i.createContext(null);function uc(e){return e==null?[]:Array.isArray(e)?e:[e]}function Vw(e){return e&&!!e._init}function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr.apply(this,arguments)}function Ww(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xa(e,t)}function dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dc(e)}function xa(e,t){return xa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},xa(e,t)}function Gw(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bi(e,t,n){return Gw()?bi=Reflect.construct.bind():bi=function(o,a,l){var s=[null];s.push.apply(s,a);var c=Function.bind.apply(o,s),u=new c;return l&&xa(u,l.prototype),u},bi.apply(null,arguments)}function qw(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function fc(e){var t=typeof Map=="function"?new Map:void 0;return fc=function(r){if(r===null||!qw(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return bi(r,arguments,dc(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),xa(o,r)},fc(e)}var Xw=/%[sdj%]/g,Uw=function(){};typeof process<"u"&&process.env;function mc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function _n(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var l=e.replace(Xw,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return l}return e}function Yw(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function an(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Yw(t)&&typeof e=="string"&&!e)}function Zw(e,t,n){var r=[],o=0,a=e.length;function l(s){r.push.apply(r,s||[]),o++,o===a&&n(r)}e.forEach(function(s){t(s,l)})}function If(e,t,n){var r=0,o=e.length;function a(l){if(l&&l.length){n(l);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function Qw(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var Rf=function(e){Ww(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(fc(Error));function Jw(e,t,n,r,o){if(t.first){var a=new Promise(function(m,g){var p=function(b){return r(b),b.length?g(new Rf(b,mc(b))):m(o)},v=Qw(e);If(v,n,p)});return a.catch(function(m){return m}),a}var l=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,u=0,d=[],f=new Promise(function(m,g){var p=function(h){if(d.push.apply(d,h),u++,u===c)return r(d),d.length?g(new Rf(d,mc(d))):m(o)};s.length||(r(d),m(o)),s.forEach(function(v){var h=e[v];l.indexOf(v)!==-1?If(h,n,p):Zw(h,n,p)})});return f.catch(function(m){return m}),f}function e1(e){return!!(e&&e.message!==void 0)}function t1(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Pf(e,t){return function(n){var r;return e.fullFields?r=t1(t,e.fullFields):r=t[n.field||e.fullField],e1(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Nf(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Kr({},e[n],r):e[n]=r}}return e}var wp=function(t,n,r,o,a,l){t.required&&(!r.hasOwnProperty(t.field)||an(n,l||t.type))&&o.push(_n(a.messages.required,t.fullField))},n1=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(_n(a.messages.whitespace,t.fullField))},ai,r1=function(){if(ai)return ai;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),l=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),c=function(S){return S&&S.exact?a:new RegExp("(?:"+t(S)+n+t(S)+")|(?:"+t(S)+o+t(S)+")","g")};c.v4=function(C){return C&&C.exact?l:new RegExp(""+t(C)+n+t(C),"g")},c.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+o+t(C),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=c.v4().source,m=c.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",h="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+m+"|"+g+p+v+")"+h+b;return ai=new RegExp("(?:^"+y+"$)","i"),ai},Tf={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ta={integer:function(t){return ta.number(t)&&parseInt(t,10)===t},float:function(t){return ta.number(t)&&!ta.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ta.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Tf.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(r1())},hex:function(t){return typeof t=="string"&&!!t.match(Tf.hex)}},o1=function(t,n,r,o,a){if(t.required&&n===void 0){wp(t,n,r,o,a);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;l.indexOf(s)>-1?ta[s](n)||o.push(_n(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(_n(a.messages.types[s],t.fullField,t.type))},a1=function(t,n,r,o,a){var l=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",g=typeof n=="string",p=Array.isArray(n);if(m?f="number":g?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),g&&(d=n.replace(u,"_").length),l?d!==t.len&&o.push(_n(a.messages[f].len,t.fullField,t.len)):s&&!c&&d<t.min?o.push(_n(a.messages[f].min,t.fullField,t.min)):c&&!s&&d>t.max?o.push(_n(a.messages[f].max,t.fullField,t.max)):s&&c&&(d<t.min||d>t.max)&&o.push(_n(a.messages[f].range,t.fullField,t.min,t.max))},no="enum",i1=function(t,n,r,o,a){t[no]=Array.isArray(t[no])?t[no]:[],t[no].indexOf(n)===-1&&o.push(_n(a.messages[no],t.fullField,t[no].join(", ")))},l1=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(_n(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||o.push(_n(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},$t={required:wp,whitespace:n1,type:o1,range:a1,enum:i1,pattern:l1},s1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(an(n,"string")&&!t.required)return r();$t.required(t,n,o,l,a,"string"),an(n,"string")||($t.type(t,n,o,l,a),$t.range(t,n,o,l,a),$t.pattern(t,n,o,l,a),t.whitespace===!0&&$t.whitespace(t,n,o,l,a))}r(l)},c1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(an(n)&&!t.required)return r();$t.required(t,n,o,l,a),n!==void 0&&$t.type(t,n,o,l,a)}r(l)},u1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),an(n)&&!t.required)return r();$t.required(t,n,o,l,a),n!==void 0&&($t.type(t,n,o,l,a),$t.range(t,n,o,l,a))}r(l)},d1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(an(n)&&!t.required)return r();$t.required(t,n,o,l,a),n!==void 0&&$t.type(t,n,o,l,a)}r(l)},f1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(an(n)&&!t.required)return r();$t.required(t,n,o,l,a),an(n)||$t.type(t,n,o,l,a)}r(l)},m1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(an(n)&&!t.required)return r();$t.required(t,n,o,l,a),n!==void 0&&($t.type(t,n,o,l,a),$t.range(t,n,o,l,a))}r(l)},g1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(an(n)&&!t.required)return r();$t.required(t,n,o,l,a),n!==void 0&&($t.type(t,n,o,l,a),$t.range(t,n,o,l,a))}r(l)},v1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();$t.required(t,n,o,l,a,"array"),n!=null&&($t.type(t,n,o,l,a),$t.range(t,n,o,l,a))}r(l)},p1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(an(n)&&!t.required)return r();$t.required(t,n,o,l,a),n!==void 0&&$t.type(t,n,o,l,a)}r(l)},h1="enum",b1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(an(n)&&!t.required)return r();$t.required(t,n,o,l,a),n!==void 0&&$t[h1](t,n,o,l,a)}r(l)},y1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(an(n,"string")&&!t.required)return r();$t.required(t,n,o,l,a),an(n,"string")||$t.pattern(t,n,o,l,a)}r(l)},C1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(an(n,"date")&&!t.required)return r();if($t.required(t,n,o,l,a),!an(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),$t.type(t,c,o,l,a),c&&$t.range(t,c.getTime(),o,l,a)}}r(l)},S1=function(t,n,r,o,a){var l=[],s=Array.isArray(n)?"array":typeof n;$t.required(t,n,o,l,a,s),r(l)},ls=function(t,n,r,o,a){var l=t.type,s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(an(n,l)&&!t.required)return r();$t.required(t,n,o,s,a,l),an(n,l)||$t.type(t,n,o,s,a)}r(s)},x1=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(an(n)&&!t.required)return r();$t.required(t,n,o,l,a)}r(l)},sa={string:s1,method:c1,number:u1,boolean:d1,regexp:f1,integer:m1,float:g1,array:v1,object:p1,enum:b1,pattern:y1,date:C1,url:ls,hex:ls,email:ls,required:S1,any:x1};function gc(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var vc=gc(),La=function(){function e(n){this.rules=null,this._messages=vc,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var l=r[a];o.rules[a]=Array.isArray(l)?l:[l]})},t.messages=function(r){return r&&(this._messages=Nf(gc(),r)),this._messages},t.validate=function(r,o,a){var l=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var s=r,c=o,u=a;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function d(v){var h=[],b={};function y(S){if(Array.isArray(S)){var $;h=($=h).concat.apply($,S)}else h.push(S)}for(var C=0;C<v.length;C++)y(v[C]);h.length?(b=mc(h),u(h,b)):u(null,s)}if(c.messages){var f=this.messages();f===vc&&(f=gc()),Nf(f,c.messages),c.messages=f}else c.messages=this.messages();var m={},g=c.keys||Object.keys(this.rules);g.forEach(function(v){var h=l.rules[v],b=s[v];h.forEach(function(y){var C=y;typeof C.transform=="function"&&(s===r&&(s=Kr({},s)),b=s[v]=C.transform(b)),typeof C=="function"?C={validator:C}:C=Kr({},C),C.validator=l.getValidationMethod(C),C.validator&&(C.field=v,C.fullField=C.fullField||v,C.type=l.getType(C),m[v]=m[v]||[],m[v].push({rule:C,value:b,source:s,field:v}))})});var p={};return Jw(m,c,function(v,h){var b=v.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&v.value),b.field=v.field;function C(x,E){return Kr({},E,{fullField:b.fullField+"."+x,fullFields:b.fullFields?[].concat(b.fullFields,[x]):[x]})}function S(x){x===void 0&&(x=[]);var E=Array.isArray(x)?x:[x];!c.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&b.message!==void 0&&(E=[].concat(b.message));var O=E.map(Pf(b,s));if(c.first&&O.length)return p[b.field]=1,h(O);if(!y)h(O);else{if(b.required&&!v.value)return b.message!==void 0?O=[].concat(b.message).map(Pf(b,s)):c.error&&(O=[c.error(b,_n(c.messages.required,b.field))]),h(O);var w={};b.defaultField&&Object.keys(v.value).map(function(M){w[M]=b.defaultField}),w=Kr({},w,v.rule.fields);var P={};Object.keys(w).forEach(function(M){var I=w[M],N=Array.isArray(I)?I:[I];P[M]=N.map(C.bind(null,M))});var R=new e(P);R.messages(c.messages),v.rule.options&&(v.rule.options.messages=c.messages,v.rule.options.error=c.error),R.validate(v.value,v.rule.options||c,function(M){var I=[];O&&O.length&&I.push.apply(I,O),M&&M.length&&I.push.apply(I,M),h(I.length?I:null)})}}var $;if(b.asyncValidator)$=b.asyncValidator(b,v.value,S,v.source,c);else if(b.validator){try{$=b.validator(b,v.value,S,v.source,c)}catch(x){console.error==null,c.suppressValidatorError||setTimeout(function(){throw x},0),S(x.message)}$===!0?S():$===!1?S(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):$ instanceof Array?S($):$ instanceof Error&&S($.message)}$&&$.then&&$.then(function(){return S()},function(x){return S(x)})},function(v){d(v)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!sa.hasOwnProperty(r.type))throw new Error(_n("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),a=o.indexOf("message");return a!==-1&&o.splice(a,1),o.length===1&&o[0]==="required"?sa.required:sa[this.getType(r)]||void 0},e}();La.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");sa[t]=n};La.warning=Uw;La.messages=vc;La.validators=sa;var Nn="'${name}' is not a valid ${type}",Ep={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Nn,method:Nn,array:Nn,object:Nn,number:Nn,date:Nn,boolean:Nn,integer:Nn,float:Nn,regexp:Nn,email:Nn,url:Nn,hex:Nn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Mf=La;function $1(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var _f="CODE_LOGIC_ERROR";function pc(e,t,n,r,o){return hc.apply(this,arguments)}function hc(){return hc=Jr(Sn().mark(function e(t,n,r,o,a){var l,s,c,u,d,f,m,g,p;return Sn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return l=D({},r),delete l.ruleIndex,Mf.warning=function(){},l.validator&&(s=l.validator,l.validator=function(){try{return s.apply(void 0,arguments)}catch{return Promise.reject(_f)}}),c=null,l&&l.type==="array"&&l.defaultField&&(c=l.defaultField,delete l.defaultField),u=new Mf(F({},t,[l])),d=ho(Ep,o.validateMessages),u.messages(d),f=[],h.prev=10,h.next=13,Promise.resolve(u.validate(F({},t,n),D({},o)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(f=h.t0.errors.map(function(b,y){var C=b.message,S=C===_f?d.default:C;return i.isValidElement(S)?i.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!f.length&&c)){h.next=23;break}return h.next=21,Promise.all(n.map(function(b,y){return pc("".concat(t,".").concat(y),b,c,o,a)}));case 21:return m=h.sent,h.abrupt("return",m.reduce(function(b,y){return[].concat(ve(b),ve(y))},[]));case 23:return g=D(D({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),p=f.map(function(b){return typeof b=="string"?$1(b,g):b}),h.abrupt("return",p);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),hc.apply(this,arguments)}function w1(e,t,n,r,o,a){var l=e.join("."),s=n.map(function(d,f){var m=d.validator,g=D(D({},d),{},{ruleIndex:f});return m&&(g.validator=function(p,v,h){var b=!1,y=function(){for(var $=arguments.length,x=new Array($),E=0;E<$;E++)x[E]=arguments[E];Promise.resolve().then(function(){Vt(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||h.apply(void 0,x)})},C=m(p,v,y);b=C&&typeof C.then=="function"&&typeof C.catch=="function",Vt(b,"`callback` is deprecated. Please return a promise instead."),b&&C.then(function(){h()}).catch(function(S){h(S||" ")})}),g}).sort(function(d,f){var m=d.warningOnly,g=d.ruleIndex,p=f.warningOnly,v=f.ruleIndex;return!!m==!!p?g-v:m?1:-1}),c;if(o===!0)c=new Promise(function(){var d=Jr(Sn().mark(function f(m,g){var p,v,h;return Sn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:p=0;case 1:if(!(p<s.length)){y.next=12;break}return v=s[p],y.next=5,pc(l,t,v,r,a);case 5:if(h=y.sent,!h.length){y.next=9;break}return g([{errors:h,rule:v}]),y.abrupt("return");case 9:p+=1,y.next=1;break;case 12:m([]);case 13:case"end":return y.stop()}},f)}));return function(f,m){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return pc(l,t,d,r,a).then(function(f){return{errors:f,rule:d}})});c=(o?O1(u):E1(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function E1(e){return bc.apply(this,arguments)}function bc(){return bc=Jr(Sn().mark(function e(t){return Sn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,l=(a=[]).concat.apply(a,ve(o));return l}));case 1:case"end":return r.stop()}},e)})),bc.apply(this,arguments)}function O1(e){return yc.apply(this,arguments)}function yc(){return yc=Jr(Sn().mark(function e(t){var n;return Sn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(l){l.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),yc.apply(this,arguments)}function Ut(e){return uc(e)}function zf(e,t){var n={};return t.forEach(function(r){var o=Kn(e,r);n=Xn(n,r,o)}),n}function So(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Op(t,r,n)})}function Op(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function I1(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||at(e)!=="object"||at(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ve(o).every(function(a){var l=e[a],s=t[a];return typeof l=="function"&&typeof s=="function"?!0:l===s})}function R1(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&at(t.target)==="object"&&e in t.target?t.target[e]:t}function Lf(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(ve(e.slice(0,n)),[o],ve(e.slice(n,t)),ve(e.slice(t+1,r))):a<0?[].concat(ve(e.slice(0,t)),ve(e.slice(t+1,n+1)),[o],ve(e.slice(n+1,r))):e}var P1=["name"],Fn=[];function jf(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var hu=function(e){hr(n,e);var t=Qr(n);function n(r){var o;if(fn(this,n),o=t.call(this,r),F(vt(o),"state",{resetCount:0}),F(vt(o),"cancelRegisterFunc",null),F(vt(o),"mounted",!1),F(vt(o),"touched",!1),F(vt(o),"dirty",!1),F(vt(o),"validatePromise",void 0),F(vt(o),"prevValidating",void 0),F(vt(o),"errors",Fn),F(vt(o),"warnings",Fn),F(vt(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Ut(f)),o.cancelRegisterFunc=null}),F(vt(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(ve(m),ve(u)):[]}),F(vt(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),F(vt(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),F(vt(o),"metaCache",null),F(vt(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=D(D({},o.getMeta()),{},{destroy:c});Vn(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),F(vt(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,g=f.dependencies,p=g===void 0?[]:g,v=f.onReset,h=d.store,b=o.getNamePath(),y=o.getValue(c),C=o.getValue(h),S=u&&So(u,b);switch(d.type==="valueUpdate"&&d.source==="external"&&y!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Fn,o.warnings=Fn,o.triggerMetaEvent()),d.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Fn,o.warnings=Fn,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var $=d.data;if(S){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||Fn),"warnings"in $&&(o.warnings=$.warnings||Fn),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&So(u,b,!0)){o.reRender();return}if(m&&!b.length&&jf(m,c,h,y,C,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=p.map(Ut);if(x.some(function(E){return So(d.relatedFields,E)})){o.reRender();return}break}default:if(S||(!p.length||b.length||m)&&jf(m,c,h,y,C,d)){o.reRender();return}break}m===!0&&o.reRender()}),F(vt(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,g=f.validateOnly,p=g===void 0?!1:g,v=Promise.resolve().then(Jr(Sn().mark(function h(){var b,y,C,S,$,x,E;return Sn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(o.mounted){w.next=2;break}return w.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,C=y===void 0?!1:y,S=b.messageVariables,$=b.validateDebounce,x=o.getRules(),m&&(x=x.filter(function(P){return P}).filter(function(P){var R=P.validateTrigger;if(!R)return!0;var M=uc(R);return M.includes(m)})),!($&&m)){w.next=10;break}return w.next=8,new Promise(function(P){setTimeout(P,$)});case 8:if(o.validatePromise===v){w.next=10;break}return w.abrupt("return",[]);case 10:return E=w1(u,d,x,c,C,S),E.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fn;if(o.validatePromise===v){var R;o.validatePromise=null;var M=[],I=[];(R=P.forEach)===null||R===void 0||R.call(P,function(N){var z=N.rule.warningOnly,L=N.errors,T=L===void 0?Fn:L;z?I.push.apply(I,ve(T)):M.push.apply(M,ve(T))}),o.errors=M,o.warnings=I,o.triggerMetaEvent(),o.reRender()}}),w.abrupt("return",E);case 13:case"end":return w.stop()}},h)})));return p||(o.validatePromise=v,o.dirty=!0,o.errors=Fn,o.warnings=Fn,o.triggerMetaEvent(),o.reRender()),v}),F(vt(o),"isFieldValidating",function(){return!!o.validatePromise}),F(vt(o),"isFieldTouched",function(){return o.touched}),F(vt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(kr),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),F(vt(o),"getErrors",function(){return o.errors}),F(vt(o),"getWarnings",function(){return o.warnings}),F(vt(o),"isListField",function(){return o.props.isListField}),F(vt(o),"isList",function(){return o.props.isList}),F(vt(o),"isPreserve",function(){return o.props.preserve}),F(vt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),F(vt(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return D(D({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=on(c);return d.length!==1||!i.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),F(vt(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Kn(c||u(!0),d)}),F(vt(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.trigger,f=u.validateTrigger,m=u.getValueFromEvent,g=u.normalize,p=u.valuePropName,v=u.getValueProps,h=u.fieldContext,b=f!==void 0?f:h.validateTrigger,y=o.getNamePath(),C=h.getInternalHooks,S=h.getFieldsValue,$=C(kr),x=$.dispatch,E=o.getValue(),O=v||function(M){return F({},p,M)},w=c[d],P=D(D({},c),O(E));P[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var M,I=arguments.length,N=new Array(I),z=0;z<I;z++)N[z]=arguments[z];m?M=m.apply(void 0,N):M=R1.apply(void 0,[p].concat(N)),g&&(M=g(M,E,S(!0))),x({type:"updateValue",namePath:y,value:M}),w&&w.apply(void 0,N)};var R=uc(b||[]);return R.forEach(function(M){var I=P[M];P[M]=function(){I&&I.apply(void 0,arguments);var N=o.props.rules;N&&N.length&&x({type:"validateField",namePath:y,triggerName:M})}}),P}),r.fieldContext){var a=r.fieldContext.getInternalHooks,l=a(kr),s=l.initEntityValue;s(vt(o))}return o}return mn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,l=o.fieldContext;if(this.mounted=!0,l){var s=l.getInternalHooks,c=s(kr),u=c.registerField;this.cancelRegisterFunc=u(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,l=this.getOnlyChild(a),s=l.child,c=l.isFunction,u;return c?u=s:i.isValidElement(s)?u=i.cloneElement(s,this.getControlled(s.props)):(Vt(!s,"`children` of Field is not validate ReactElement."),u=s),i.createElement(i.Fragment,{key:o},u)}}]),n}(i.Component);F(hu,"contextType",Xr);F(hu,"defaultProps",{trigger:"onChange",valuePropName:"value"});function bu(e){var t=e.name,n=Qe(e,P1),r=i.useContext(Xr),o=i.useContext(Sa),a=t!==void 0?Ut(t):void 0,l="keep";return n.isListField||(l="_".concat((a||[]).join("_"))),i.createElement(hu,de({key:l,name:a,isListField:!!o},n,{fieldContext:r}))}function Ip(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,l=e.isListField,s=i.useContext(Xr),c=i.useContext(Sa),u=i.useRef({keys:[],id:0}),d=u.current,f=i.useMemo(function(){var v=Ut(s.prefixName)||[];return[].concat(ve(v),ve(Ut(t)))},[s.prefixName,t]),m=i.useMemo(function(){return D(D({},s),{},{prefixName:f})},[s,f]),g=i.useMemo(function(){return{getKey:function(h){var b=f.length,y=h[b];return[d.keys[y],h.slice(b+1)]}}},[f]);if(typeof r!="function")return Vt(!1,"Form.List only accepts function as children."),null;var p=function(h,b,y){var C=y.source;return C==="internal"?!1:h!==b};return i.createElement(Sa.Provider,{value:g},i.createElement(Xr.Provider,{value:m},i.createElement(bu,{name:[],shouldUpdate:p,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:l??!!c},function(v,h){var b=v.value,y=b===void 0?[]:b,C=v.onChange,S=s.getFieldValue,$=function(){var w=S(f||[]);return w||[]},x={add:function(w,P){var R=$();P>=0&&P<=R.length?(d.keys=[].concat(ve(d.keys.slice(0,P)),[d.id],ve(d.keys.slice(P))),C([].concat(ve(R.slice(0,P)),[w],ve(R.slice(P))))):(d.keys=[].concat(ve(d.keys),[d.id]),C([].concat(ve(R),[w]))),d.id+=1},remove:function(w){var P=$(),R=new Set(Array.isArray(w)?w:[w]);R.size<=0||(d.keys=d.keys.filter(function(M,I){return!R.has(I)}),C(P.filter(function(M,I){return!R.has(I)})))},move:function(w,P){if(w!==P){var R=$();w<0||w>=R.length||P<0||P>=R.length||(d.keys=Lf(d.keys,w,P),C(Lf(R,w,P)))}}},E=y||[];return Array.isArray(E)||(E=[]),r(E.map(function(O,w){var P=d.keys[w];return P===void 0&&(d.keys[w]=d.id,P=d.keys[w],d.id+=1),{name:w,key:P,isListField:!0}}),x,h)})))}function N1(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(l,s){l.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var Rp="__@field_split__";function ss(e){return e.map(function(t){return"".concat(at(t),":").concat(t)}).join(Rp)}var ro=function(){function e(){fn(this,e),F(this,"kvs",new Map)}return mn(e,[{key:"set",value:function(n,r){this.kvs.set(ss(n),r)}},{key:"get",value:function(n){return this.kvs.get(ss(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(ss(n))}},{key:"map",value:function(n){return ve(this.kvs.entries()).map(function(r){var o=q(r,2),a=o[0],l=o[1],s=a.split(Rp);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=q(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:l})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),T1=["name"],M1=mn(function e(t){var n=this;fn(this,e),F(this,"formHooked",!1),F(this,"forceRootUpdate",void 0),F(this,"subscribable",!0),F(this,"store",{}),F(this,"fieldEntities",[]),F(this,"initialValues",{}),F(this,"callbacks",{}),F(this,"validateMessages",null),F(this,"preserve",null),F(this,"lastValidatePromise",null),F(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),F(this,"getInternalHooks",function(r){return r===kr?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Vt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),F(this,"useSubscribe",function(r){n.subscribable=r}),F(this,"prevWithoutPreserves",null),F(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,l=ho(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var c=s.key;l=Xn(l,c,Kn(r,c))}),n.prevWithoutPreserves=null,n.updateStore(l)}}),F(this,"destroyForm",function(){var r=new ro;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),F(this,"getInitialValue",function(r){var o=Kn(n.initialValues,r);return r.length?ho(o):o}),F(this,"setCallbacks",function(r){n.callbacks=r}),F(this,"setValidateMessages",function(r){n.validateMessages=r}),F(this,"setPreserve",function(r){n.preserve=r}),F(this,"watchList",[]),F(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),F(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(l){l(o,a,r)})}}),F(this,"timeoutId",null),F(this,"warningUnhooked",function(){}),F(this,"updateStore",function(r){n.store=r}),F(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),F(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ro;return n.getFieldEntities(r).forEach(function(a){var l=a.getNamePath();o.set(l,a)}),o}),F(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var l=Ut(a);return o.get(l)||{INVALIDATE_NAME_PATH:Ut(a)}})}),F(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,l,s;if(r===!0||Array.isArray(r)?(a=r,l=o):r&&at(r)==="object"&&(s=r.strict,l=r.filter),a===!0&&!l)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var f,m,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var p,v;if((p=(v=d).isList)!==null&&p!==void 0&&p.call(v))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!l)u.push(g);else{var h="getMeta"in d?d.getMeta():null;l(h)&&u.push(g)}}),zf(n.store,u.map(Ut))}),F(this,"getFieldValue",function(r){n.warningUnhooked();var o=Ut(r);return Kn(n.store,o)}),F(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,l){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Ut(r[l]),errors:[],warnings:[]}})}),F(this,"getFieldError",function(r){n.warningUnhooked();var o=Ut(r),a=n.getFieldsError([o])[0];return a.errors}),F(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Ut(r),a=n.getFieldsError([o])[0];return a.warnings}),F(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var l=o[0],s=o[1],c,u=!1;o.length===0?c=null:o.length===1?Array.isArray(l)?(c=l.map(Ut),u=!1):(c=null,u=l):(c=l.map(Ut),u=s);var d=n.getFieldEntities(!0),f=function(h){return h.isFieldTouched()};if(!c)return u?d.every(f):d.some(f);var m=new ro;c.forEach(function(v){m.set(v,[])}),d.forEach(function(v){var h=v.getNamePath();c.forEach(function(b){b.every(function(y,C){return h[C]===y})&&m.update(b,function(y){return[].concat(ve(y),[v])})})});var g=function(h){return h.some(f)},p=m.map(function(v){var h=v.value;return h});return u?p.every(g):p.some(g)}),F(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),F(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(l){return l.isFieldValidating()});var a=r.map(Ut);return o.some(function(l){var s=l.getNamePath();return So(a,s)&&l.isFieldValidating()})}),F(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),F(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ro,a=n.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var l=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)Vt(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var p=o.get(m);if(p&&p.size>1)Vt(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var v=n.getFieldValue(m),h=d.isListField();!h&&(!r.skipExist||v===void 0)&&n.updateStore(Xn(n.store,m,ve(p)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=s).push.apply(d,ve(ve(u).map(function(f){return f.entity})))}})):s=a,l(s)}),F(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ho(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(Ut);a.forEach(function(l){var s=n.getInitialValue(l);n.updateStore(Xn(n.store,l,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),F(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(l){var s=l.name,c=Qe(l,T1),u=Ut(s);a.push(u),"value"in c&&n.updateStore(Xn(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:l})}),n.notifyWatch(a)}),F(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var l=a.getNamePath(),s=a.getMeta(),c=D(D({},s),{},{name:l,value:n.getFieldValue(l)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),F(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),l=Kn(n.store,a);l===void 0&&n.updateStore(Xn(n.store,a,o))}}),F(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),F(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!l||c.length>1)){var u=l?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!Op(f.getNamePath(),o)})){var d=n.store;n.updateStore(Xn(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),F(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var l=r.namePath,s=r.triggerName;n.validateFields([l],{triggerName:s});break}}}),F(this,"notifyObservers",function(r,o,a){if(n.subscribable){var l=D(D({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,o,l)})}else n.forceRootUpdate()}),F(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(ve(a))}),a}),F(this,"updateValue",function(r,o){var a=Ut(r),l=n.store;n.updateStore(Xn(n.store,a,o)),n.notifyObservers(l,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(l,a),c=n.callbacks.onValuesChange;if(c){var u=zf(n.store,[a]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(ve(s)))}),F(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=ho(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),F(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),F(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],l=new ro;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Ut(d);l.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var s=function c(u){var d=l.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return s(r),a}),F(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var l=n.getFields();if(o){var s=new ro;o.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),l.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=l.filter(function(u){var d=u.name;return So(r,d)});c.length&&a(c,l)}}),F(this,"validateFields",function(r,o){n.warningUnhooked();var a,l;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,l=o):l=r;var s=!!a,c=s?a.map(Ut):[],u=[],d=String(Date.now()),f=new Set,m=l||{},g=m.recursive,p=m.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||c.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(p&&!y.isFieldDirty())){var C=y.getNamePath();if(f.add(C.join(d)),!s||So(c,C,g)){var S=y.validateRules(D({validateMessages:D(D({},Ep),n.validateMessages)},l));u.push(S.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function($){var x,E=[],O=[];return(x=$.forEach)===null||x===void 0||x.call($,function(w){var P=w.rule.warningOnly,R=w.errors;P?O.push.apply(O,ve(R)):E.push.apply(E,ve(R))}),E.length?Promise.reject({name:C,errors:E,warnings:O}):{name:C,errors:E,warnings:O}}))}}});var v=N1(u);n.lastValidatePromise=v,v.catch(function(y){return y}).then(function(y){var C=y.map(function(S){var $=S.name;return $});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,y)});var h=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(y){var C=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:C,outOfDate:n.lastValidatePromise!==v})});h.catch(function(y){return y});var b=c.filter(function(y){return f.has(y.join(d))});return n.triggerOnFieldsChange(b),h}),F(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch{}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function yu(e){var t=i.useRef(),n=i.useState({}),r=q(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},l=new M1(a);t.current=l.getForm()}return[t.current]}var Cc=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Pp=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,l=i.useContext(Cc),s=i.useRef({});return i.createElement(Cc.Provider,{value:D(D({},l),{},{validateMessages:D(D({},l.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),l.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:s.current}),l.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=D(D({},s.current),{},F({},u,d))),l.registerForm(u,d)},unregisterForm:function(u){var d=D({},s.current);delete d[u],s.current=d,l.unregisterForm(u)}})},a)},_1=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],z1=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,l=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,p=t.onValuesChange,v=t.onFieldsChange,h=t.onFinish,b=t.onFinishFailed,y=Qe(t,_1),C=i.useContext(Cc),S=yu(l),$=q(S,1),x=$[0],E=x.getInternalHooks(kr),O=E.useSubscribe,w=E.setInitialValues,P=E.setCallbacks,R=E.setValidateMessages,M=E.setPreserve,I=E.destroyForm;i.useImperativeHandle(n,function(){return x}),i.useEffect(function(){return C.registerForm(r,x),function(){C.unregisterForm(r)}},[C,x,r]),R(D(D({},C.validateMessages),f)),P({onValuesChange:p,onFieldsChange:function(V){if(C.triggerFormChange(r,V),v){for(var X=arguments.length,te=new Array(X>1?X-1:0),W=1;W<X;W++)te[W-1]=arguments[W];v.apply(void 0,[V].concat(te))}},onFinish:function(V){C.triggerFormFinish(r,V),h&&h(V)},onFinishFailed:b}),M(s);var N=i.useRef(null);w(o,!N.current),N.current||(N.current=!0),i.useEffect(function(){return I},[]);var z,L=typeof c=="function";if(L){var T=x.getFieldsValue(!0);z=c(T,x)}else z=c;O(!L);var _=i.useRef();i.useEffect(function(){I1(_.current||[],a||[])||x.setFields(a||[]),_.current=a},[a,x]);var B=i.useMemo(function(){return D(D({},x),{},{validateTrigger:g})},[x,g]),j=i.createElement(Sa.Provider,{value:null},i.createElement(Xr.Provider,{value:B},z));return d===!1?j:i.createElement(d,de({},y,{onSubmit:function(V){V.preventDefault(),V.stopPropagation(),x.submit()},onReset:function(V){var X;V.preventDefault(),x.resetFields(),(X=y.onReset)===null||X===void 0||X.call(y,V)}}),j)};function Df(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Np(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=o===void 0?{}:o,l=Vw(a)?{form:a}:a,s=l.form,c=i.useState(),u=q(c,2),d=u[0],f=u[1],m=i.useMemo(function(){return Df(d)},[d]),g=i.useRef(m);g.current=m;var p=i.useContext(Xr),v=s||p,h=v&&v._init,b=Ut(r),y=i.useRef(b);return y.current=b,i.useEffect(function(){if(h){var C=v.getFieldsValue,S=v.getInternalHooks,$=S(kr),x=$.registerWatch,E=function(R,M){var I=l.preserve?M:R;return typeof r=="function"?r(I):Kn(I,y.current)},O=x(function(P,R){var M=E(P,R),I=Df(M);g.current!==I&&(g.current=I,f(M))}),w=E(C(),C(!0));return d!==w&&f(w),O}},[h]),d}var L1=i.forwardRef(z1),Do=L1;Do.FormProvider=Pp;Do.Field=bu;Do.List=Ip;Do.useForm=yu;Do.useWatch=Np;const pr=i.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),Tp=i.createContext(null),Mp=e=>{const t=Ft(e,["prefixCls"]);return i.createElement(Pp,Object.assign({},t))},Cu=i.createContext({prefixCls:""}),jn=i.createContext({}),Bf=e=>{let{children:t,status:n,override:r}=e;const o=i.useContext(jn),a=i.useMemo(()=>{const l=Object.assign({},o);return r&&delete l.isFormItemInput,n&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[n,r,o]);return i.createElement(jn.Provider,{value:a},t)},_p=i.createContext(void 0),j1=e=>({animationDuration:e,animationFillMode:"both"}),D1=e=>({animationDuration:e,animationFillMode:"both"}),ml=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
      ${a}${e}-enter,
      ${a}${e}-appear
    `]:Object.assign(Object.assign({},j1(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},D1(r)),{animationPlayState:"paused"}),[`
      ${a}${e}-enter${e}-enter-active,
      ${a}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},B1=new bt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),A1=new bt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),zp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[ml(r,B1,A1,e.motionDurationMid,t),{[`
        ${o}${r}-enter,
        ${o}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},F1=new bt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),H1=new bt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),k1=new bt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),K1=new bt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),V1=new bt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),W1=new bt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),G1=new bt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),q1=new bt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),X1={"move-up":{inKeyframes:G1,outKeyframes:q1},"move-down":{inKeyframes:F1,outKeyframes:H1},"move-left":{inKeyframes:k1,outKeyframes:K1},"move-right":{inKeyframes:V1,outKeyframes:W1}},Di=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=X1[t];return[ml(r,o,a,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Su=new bt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),xu=new bt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$u=new bt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),wu=new bt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),U1=new bt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Y1=new bt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Z1=new bt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Q1=new bt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),J1={"slide-up":{inKeyframes:Su,outKeyframes:xu},"slide-down":{inKeyframes:$u,outKeyframes:wu},"slide-left":{inKeyframes:U1,outKeyframes:Y1},"slide-right":{inKeyframes:Z1,outKeyframes:Q1}},Mr=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=J1[t];return[ml(r,o,a,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Eu=new bt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),eE=new bt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Af=new bt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ff=new bt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),tE=new bt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),nE=new bt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),rE=new bt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),oE=new bt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),aE=new bt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),iE=new bt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),lE=new bt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),sE=new bt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),cE={zoom:{inKeyframes:Eu,outKeyframes:eE},"zoom-big":{inKeyframes:Af,outKeyframes:Ff},"zoom-big-fast":{inKeyframes:Af,outKeyframes:Ff},"zoom-left":{inKeyframes:rE,outKeyframes:oE},"zoom-right":{inKeyframes:aE,outKeyframes:iE},"zoom-up":{inKeyframes:tE,outKeyframes:nE},"zoom-down":{inKeyframes:lE,outKeyframes:sE}},Bo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=cE[t];return[ml(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},uE=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Ou=uE;function Hf(e){return{position:e,inset:0}}const Lp=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Hf("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Hf("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:zp(e)}]},dE=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${H(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},_t(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${H(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${H(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},gr(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
          ${t}-body,
          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},fE=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},mE=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return pt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},gE=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${H(e.paddingMD)} ${H(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${H(e.padding)} ${H(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${H(e.paddingXS)} ${H(e.padding)}`:0,footerBorderTop:e.wireframe?`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${H(e.padding*2)} ${H(e.padding*2)} ${H(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});zt("Modal",e=>{const t=mE(e);return[dE(t),fE(t),Lp(t),Bo(t,"zoom")]},gE,{unitless:{titleLineHeight:!0}});const vE=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new bt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),l=new bt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new bt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new bt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},pE=vE,hE=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],bE={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},yE=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[bE[t]]:{value:0,_skip_check_:!0}}}}},CE=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},SE=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},xE=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},CE(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},SE(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},hE.map(n=>yE(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},$E=xE,jp=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:l,colorSuccess:s,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:g,notificationMarginEdge:p,fontSize:v,lineHeight:h,width:b,notificationIconSize:y,colorText:C}=e,S=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:m,borderRadius:l,boxShadow:r,[S]:{padding:g,width:b,maxWidth:`calc(100vw - ${H(e.calc(p).mul(2).equal())})`,overflow:"hidden",lineHeight:h,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:v,cursor:"pointer"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:v,color:C},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(y).equal(),fontSize:o},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(y).equal(),fontSize:v},[`${S}-icon`]:{position:"absolute",fontSize:y,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${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.closeBtnHoverBg}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},wE=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,l=`${t}-notice`,s=new bt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},_t(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${l}-btn`]:{float:"left"}}})},{[t]:{[`${l}-wrapper`]:Object.assign({},jp(e))}}]},Dp=e=>({zIndexPopup:e.zIndexPopupBase+lp+50,width:384,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent}),Bp=e=>{const t=e.paddingMD,n=e.paddingLG;return pt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${H(e.paddingMD)} ${H(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},Ap=zt("Notification",e=>{const t=Bp(e);return[wE(t),pE(t),$E(t)]},Dp),EE=ol(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=Bp(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},jp(n)),{width:n.width,maxWidth:`calc(100vw - ${H(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Dp);var OE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Iu(e,t){return t===null||t===!1?null:t||i.createElement("span",{className:`${e}-close-x`},i.createElement(ll,{className:`${e}-close-icon`}))}const IE={success:np,info:Xx,error:Na,warning:rp},Fp=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:a,btn:l,role:s="alert"}=e;let c=null;return n?c=i.createElement("span",{className:`${t}-icon`},n):r&&(c=i.createElement(IE[r]||null,{className:K(`${t}-icon`,`${t}-icon-${r}`)})),i.createElement("div",{className:K({[`${t}-with-icon`]:c}),role:s},c,i.createElement("div",{className:`${t}-message`},o),i.createElement("div",{className:`${t}-description`},a),l&&i.createElement("div",{className:`${t}-btn`},l))},RE=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:a,description:l,btn:s,closable:c=!0,closeIcon:u,className:d}=e,f=OE(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:m}=i.useContext(Ve),g=t||m("notification"),p=`${g}-notice`,v=tn(g),[h,b,y]=Ap(g,v);return h(i.createElement("div",{className:K(`${p}-pure-panel`,b,n,y,v)},i.createElement(EE,{prefixCls:g}),i.createElement(ap,Object.assign({},f,{prefixCls:g,eventKey:"pure",duration:null,closable:c,className:K({notificationClassName:d}),closeIcon:Iu(g,u),content:i.createElement(Fp,{prefixCls:p,icon:r,type:o,message:a,description:l,btn:s})}))))},PE=RE;function NE(e,t,n){let r;switch(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};break}return r}function TE(e){return{motionName:`${e}-fade`}}var ME=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kf=24,_E=4.5,zE="topRight",LE=e=>{let{children:t,prefixCls:n}=e;const r=tn(n),[o,a,l]=Ap(n,r);return o(ae.createElement(s$,{classNames:{list:K(a,l,r)}},t))},jE=(e,t)=>{let{prefixCls:n,key:r}=t;return ae.createElement(LE,{prefixCls:n,key:r},e)},DE=ae.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:l,rtl:s,onAllRemoved:c,stack:u}=e,{getPrefixCls:d,getPopupContainer:f,notification:m,direction:g}=i.useContext(Ve),[,p]=en(),v=o||d("notification"),h=$=>NE($,n??kf,r??kf),b=()=>K({[`${v}-rtl`]:s??g==="rtl"}),y=()=>TE(v),[C,S]=p$({prefixCls:v,style:h,className:b,motion:y,closable:!0,closeIcon:Iu(v),duration:_E,getContainer:()=>(a==null?void 0:a())||(f==null?void 0:f())||document.body,maxCount:l,onAllRemoved:c,renderNotifications:jE,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:p.margin}});return ae.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:v,notification:m})),S});function Hp(e){const t=ae.useRef(null);return Lr(),[ae.useMemo(()=>{const r=s=>{var c;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:g,description:p,icon:v,type:h,btn:b,className:y,style:C,role:S="alert",closeIcon:$}=s,x=ME(s,["message","description","icon","type","btn","className","style","role","closeIcon"]),E=Iu(m,$);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:zE},x),{content:ae.createElement(Fp,{prefixCls:m,icon:v,type:h,message:g,description:p,btn:b,role:S}),className:K(h&&`${m}-${h}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),C),closeIcon:E,closable:!!E}))},a={open:r,destroy:s=>{var c,u;s!==void 0?(c=t.current)===null||c===void 0||c.close(s):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=c=>r(Object.assign(Object.assign({},c),{type:s}))}),a},[]),ae.createElement(DE,Object.assign({key:"notification-holder"},e,{ref:t}))]}function BE(e){return Hp(e)}const AE=ae.createContext({});function FE(e){return t=>i.createElement(Zv,{theme:{token:{motion:!1,zIndexPopupBase:0}}},i.createElement(e,Object.assign({},t)))}const HE=(e,t,n,r)=>FE(a=>{const{prefixCls:l,style:s}=a,c=i.useRef(null),[u,d]=i.useState(0),[f,m]=i.useState(0),[g,p]=At(!1,{value:a.open}),{getPrefixCls:v}=i.useContext(Ve),h=v(t||"select",l);i.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver($=>{const x=$[0].target;d(x.offsetHeight+8),m(x.offsetWidth)}),S=setInterval(()=>{var $;const x=n?`.${n(h)}`:`.${h}-dropdown`,E=($=c.current)===null||$===void 0?void 0:$.querySelector(x);E&&(clearInterval(S),C.observe(E))},10);return()=>{clearInterval(S),C.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});r&&(b=r(b));const y={paddingBottom:u,position:"relative",minWidth:f};return i.createElement("div",{ref:c,style:y},i.createElement(e,Object.assign({},b)))}),kp=HE,Ru=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var gl=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,l=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(o):r;return i.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),l==null||l(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:i.createElement("span",{className:K(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},kE=function(t,n,r,o,a){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=ae.useMemo(function(){if(at(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=ae.useMemo(function(){return!!(!l&&o&&(r.length||s)&&!(c==="combobox"&&s===""))},[o,l,r.length,s,c]);return{allowClear:d,clearIcon:ae.createElement(gl,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},Kp=i.createContext(null);function KE(){return i.useContext(Kp)}function VE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),n=q(t,2),r=n[0],o=n[1],a=i.useRef(null),l=function(){window.clearTimeout(a.current)};i.useEffect(function(){return l},[]);var s=function(u,d){l(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,s,l]}function Vp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=i.useRef(null),n=i.useRef(null);i.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function WE(e,t,n,r){var o=i.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},i.useEffect(function(){function a(l){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=l.target;c.shadowRoot&&l.composed&&(c=l.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}var GE=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],oo=void 0;function qE(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,l=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,g=e.display,p=e.order,v=e.component,h=v===void 0?"div":v,b=Qe(e,GE),y=l&&!g;function C(O){c(u,O)}i.useEffect(function(){return function(){C(null)}},[]);var S=a&&o!==oo?a(o):m,$;r||($={opacity:y?0:1,height:y?0:oo,overflowY:y?"hidden":oo,order:l?p:oo,pointerEvents:y?"none":oo,position:y?"absolute":oo});var x={};y&&(x["aria-hidden"]=!0);var E=i.createElement(h,de({className:K(!r&&n,d),style:D(D({},$),f)},x,b,{ref:t}),S);return l&&(E=i.createElement(hn,{onResize:function(w){var P=w.offsetWidth;C(P)},disabled:s},E)),E}var ca=i.forwardRef(qE);ca.displayName="Item";function XE(e){if(typeof MessageChannel>"u")Et(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function UE(){var e=i.useRef(null),t=function(r){e.current||(e.current=[],XE(function(){qr.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Yo(e,t){var n=i.useState(t),r=q(n,2),o=r[0],a=r[1],l=Yt(function(s){e(function(){a(s)})});return[o,l]}var Bi=ae.createContext(null),YE=["component"],ZE=["className"],QE=["className"],JE=function(t,n){var r=i.useContext(Bi);if(!r){var o=t.component,a=o===void 0?"div":o,l=Qe(t,YE);return i.createElement(a,de({},l,{ref:n}))}var s=r.className,c=Qe(r,ZE),u=t.className,d=Qe(t,QE);return i.createElement(Bi.Provider,{value:null},i.createElement(ca,de({ref:n,className:K(s,u)},c,d)))},Wp=i.forwardRef(JE);Wp.displayName="RawItem";var eO=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Gp="responsive",qp="invalidate";function tO(e){return"+ ".concat(e.length," ...")}function nO(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,l=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,g=e.className,p=e.maxCount,v=e.renderRest,h=e.renderRawRest,b=e.suffix,y=e.component,C=y===void 0?"div":y,S=e.itemComponent,$=e.onVisibleChange,x=Qe(e,eO),E=f==="full",O=UE(),w=Yo(O,null),P=q(w,2),R=P[0],M=P[1],I=R||0,N=Yo(O,new Map),z=q(N,2),L=z[0],T=z[1],_=Yo(O,0),B=q(_,2),j=B[0],A=B[1],V=Yo(O,0),X=q(V,2),te=X[0],W=X[1],G=Yo(O,0),ne=q(G,2),J=ne[0],oe=ne[1],Z=i.useState(null),k=q(Z,2),Q=k[0],ee=k[1],Y=i.useState(null),U=q(Y,2),ie=U[0],se=U[1],ue=i.useMemo(function(){return ie===null&&E?Number.MAX_SAFE_INTEGER:ie||0},[ie,R]),re=i.useState(!1),le=q(re,2),ce=le[0],pe=le[1],me="".concat(r,"-item"),be=Math.max(j,te),ye=p===Gp,xe=a.length&&ye,qe=p===qp,Ie=xe||typeof p=="number"&&a.length>p,Ce=i.useMemo(function(){var Ne=a;return xe?R===null&&E?Ne=a:Ne=a.slice(0,Math.min(a.length,I/d)):typeof p=="number"&&(Ne=a.slice(0,p)),Ne},[a,d,R,p,xe]),$e=i.useMemo(function(){return xe?a.slice(ue+1):a.slice(Ce.length)},[a,Ce,xe,ue]),he=i.useCallback(function(Ne,Fe){var Be;return typeof c=="function"?c(Ne):(Be=c&&(Ne==null?void 0:Ne[c]))!==null&&Be!==void 0?Be:Fe},[c]),We=i.useCallback(l||function(Ne){return Ne},[l]);function _e(Ne,Fe,Be){ie===Ne&&(Fe===void 0||Fe===Q)||(se(Ne),Be||(pe(Ne<a.length-1),$==null||$(Ne)),Fe!==void 0&&ee(Fe))}function Je(Ne,Fe){M(Fe.clientWidth)}function Re(Ne,Fe){T(function(Be){var ze=new Map(Be);return Fe===null?ze.delete(Ne):ze.set(Ne,Fe),ze})}function je(Ne,Fe){W(Fe),A(te)}function ke(Ne,Fe){oe(Fe)}function Ge(Ne){return L.get(he(Ce[Ne],Ne))}xt(function(){if(I&&typeof be=="number"&&Ce){var Ne=J,Fe=Ce.length,Be=Fe-1;if(!Fe){_e(0,null);return}for(var ze=0;ze<Fe;ze+=1){var Ee=Ge(ze);if(E&&(Ee=Ee||0),Ee===void 0){_e(ze-1,void 0,!0);break}if(Ne+=Ee,Be===0&&Ne<=I||ze===Be-1&&Ne+Ge(Be)<=I){_e(Be,null);break}else if(Ne+be>I){_e(ze-1,Ne-Ee-J+te);break}}b&&Ge(0)+J>I&&ee(null)}},[I,L,te,J,he,Ce]);var ot=ce&&!!$e.length,ge={};Q!==null&&xe&&(ge={position:"absolute",left:Q,top:0});var Ae={prefixCls:me,responsive:xe,component:S,invalidate:qe},Xe=s?function(Ne,Fe){var Be=he(Ne,Fe);return i.createElement(Bi.Provider,{key:Be,value:D(D({},Ae),{},{order:Fe,item:Ne,itemKey:Be,registerSize:Re,display:Fe<=ue})},s(Ne,Fe))}:function(Ne,Fe){var Be=he(Ne,Fe);return i.createElement(ca,de({},Ae,{order:Fe,key:Be,item:Ne,renderItem:We,itemKey:Be,registerSize:Re,display:Fe<=ue}))},it,Ke={order:ot?ue:Number.MAX_SAFE_INTEGER,className:"".concat(me,"-rest"),registerSize:je,display:ot};if(h)h&&(it=i.createElement(Bi.Provider,{value:D(D({},Ae),Ke)},h($e)));else{var we=v||tO;it=i.createElement(ca,de({},Ae,Ke),typeof we=="function"?we($e):we)}var De=i.createElement(C,de({className:K(!qe&&r,g),style:m,ref:t},x),Ce.map(Xe),Ie?it:null,b&&i.createElement(ca,de({},Ae,{responsive:ye,responsiveDisabled:!xe,order:ue,className:"".concat(me,"-suffix"),registerSize:ke,display:!0,style:ge}),b));return ye&&(De=i.createElement(hn,{onResize:Je,disabled:!xe},De)),De}var rr=i.forwardRef(nO);rr.displayName="Overflow";rr.Item=Wp;rr.RESPONSIVE=Gp;rr.INVALIDATE=qp;var rO=function(t,n){var r,o=t.prefixCls,a=t.id,l=t.inputElement,s=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,g=t.value,p=t.maxLength,v=t.onKeyDown,h=t.onMouseDown,b=t.onChange,y=t.onPaste,C=t.onCompositionStart,S=t.onCompositionEnd,$=t.open,x=t.attrs,E=l||i.createElement("input",null),O=E,w=O.ref,P=O.props,R=P.onKeyDown,M=P.onChange,I=P.onMouseDown,N=P.onCompositionStart,z=P.onCompositionEnd,L=P.style;return"maxLength"in E.props,E=i.cloneElement(E,D(D(D({type:"search"},P),{},{id:a,ref:$n(n,w),disabled:s,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:K("".concat(o,"-selection-search-input"),(r=E)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":$?m:void 0},x),{},{value:f?g:"",maxLength:p,readOnly:!f,unselectable:f?null:"on",style:D(D({},L),{},{opacity:f?null:0}),onKeyDown:function(_){v(_),R&&R(_)},onMouseDown:function(_){h(_),I&&I(_)},onChange:function(_){b(_),M&&M(_)},onCompositionStart:function(_){C(_),N&&N(_)},onCompositionEnd:function(_){S(_),z&&z(_)},onPaste:y})),E},Xp=i.forwardRef(rO);function Up(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var oO=typeof window<"u"&&window.document&&window.document.documentElement,aO=oO;function iO(e){return e!=null}function lO(e){return!e&&e!==0}function Kf(e){return["string","number"].includes(at(e))}function Yp(e){var t=void 0;return e&&(Kf(e.title)?t=e.title.toString():Kf(e.label)&&(t=e.label.toString())),t}function sO(e,t){aO?i.useLayoutEffect(e,t):i.useEffect(e,t)}function cO(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Vf=function(t){t.preventDefault(),t.stopPropagation()},uO=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,l=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,g=t.autoFocus,p=t.autoComplete,v=t.activeDescendantId,h=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,S=t.maxTagPlaceholder,$=S===void 0?function(ee){return"+ ".concat(ee.length," ...")}:S,x=t.tagRender,E=t.onToggleOpen,O=t.onRemove,w=t.onInputChange,P=t.onInputPaste,R=t.onInputKeyDown,M=t.onInputMouseDown,I=t.onInputCompositionStart,N=t.onInputCompositionEnd,z=i.useRef(null),L=i.useState(0),T=q(L,2),_=T[0],B=T[1],j=i.useState(!1),A=q(j,2),V=A[0],X=A[1],te="".concat(r,"-selection"),W=a||f==="multiple"&&s===!1||f==="tags"?l:"",G=f==="tags"||f==="multiple"&&s===!1||m&&(a||V);sO(function(){B(z.current.scrollWidth)},[W]);var ne=function(Y,U,ie,se,ue){return i.createElement("span",{title:Yp(Y),className:K("".concat(te,"-item"),F({},"".concat(te,"-item-disabled"),ie))},i.createElement("span",{className:"".concat(te,"-item-content")},U),se&&i.createElement(gl,{className:"".concat(te,"-item-remove"),onMouseDown:Vf,onClick:ue,customizeIcon:b},"×"))},J=function(Y,U,ie,se,ue){var re=function(ce){Vf(ce),E(!a)};return i.createElement("span",{onMouseDown:re},x({label:U,value:Y,disabled:ie,closable:se,onClose:ue}))},oe=function(Y){var U=Y.disabled,ie=Y.label,se=Y.value,ue=!d&&!U,re=ie;if(typeof C=="number"&&(typeof ie=="string"||typeof ie=="number")){var le=String(re);le.length>C&&(re="".concat(le.slice(0,C),"..."))}var ce=function(me){me&&me.stopPropagation(),O(Y)};return typeof x=="function"?J(se,re,U,ue,ce):ne(Y,re,U,ue,ce)},Z=function(Y){var U=typeof $=="function"?$(Y):$;return ne({title:U},U,!1)},k=i.createElement("div",{className:"".concat(te,"-search"),style:{width:_},onFocus:function(){X(!0)},onBlur:function(){X(!1)}},i.createElement(Xp,{ref:c,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:p,editable:G,activeDescendantId:v,value:W,onKeyDown:R,onMouseDown:M,onChange:w,onPaste:P,onCompositionStart:I,onCompositionEnd:N,tabIndex:h,attrs:zn(t,!0)}),i.createElement("span",{ref:z,className:"".concat(te,"-search-mirror"),"aria-hidden":!0},W," ")),Q=i.createElement(rr,{prefixCls:"".concat(te,"-overflow"),data:o,renderItem:oe,renderRest:Z,suffix:k,itemKey:cO,maxCount:y});return i.createElement(i.Fragment,null,Q,!o.length&&!W&&i.createElement("span",{className:"".concat(te,"-placeholder")},u))},dO=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,l=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,g=t.placeholder,p=t.tabIndex,v=t.showSearch,h=t.searchValue,b=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,S=t.onInputMouseDown,$=t.onInputChange,x=t.onInputPaste,E=t.onInputCompositionStart,O=t.onInputCompositionEnd,w=t.title,P=i.useState(!1),R=q(P,2),M=R[0],I=R[1],N=d==="combobox",z=N||v,L=m[0],T=h||"";N&&b&&!M&&(T=b),i.useEffect(function(){N&&I(!1)},[N,b]);var _=d!=="combobox"&&!f&&!v?!1:!!T,B=w===void 0?Yp(L):w,j=i.useMemo(function(){return L?null:i.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:_?{visibility:"hidden"}:void 0},g)},[L,_,g,r]);return i.createElement(i.Fragment,null,i.createElement("span",{className:"".concat(r,"-selection-search")},i.createElement(Xp,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:l,autoFocus:s,autoComplete:c,editable:z,activeDescendantId:u,value:T,onKeyDown:C,onMouseDown:S,onChange:function(V){I(!0),$(V)},onPaste:x,onCompositionStart:E,onCompositionEnd:O,tabIndex:p,attrs:zn(t,!0),maxLength:N?y:void 0})),!N&&L?i.createElement("span",{className:"".concat(r,"-selection-item"),title:B,style:_?{visibility:"hidden"}:void 0},L.label):null,j)};function fO(e){return![fe.ESC,fe.SHIFT,fe.BACKSPACE,fe.TAB,fe.WIN_KEY,fe.ALT,fe.META,fe.WIN_KEY_RIGHT,fe.CTRL,fe.SEMICOLON,fe.EQUALS,fe.CAPS_LOCK,fe.CONTEXT_MENU,fe.F1,fe.F2,fe.F3,fe.F4,fe.F5,fe.F6,fe.F7,fe.F8,fe.F9,fe.F10,fe.F11,fe.F12].includes(e)}var mO=function(t,n){var r=i.useRef(null),o=i.useRef(!1),a=t.prefixCls,l=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,p=t.onInputKeyDown,v=t.domRef;i.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var h=Vp(0),b=q(h,2),y=b[0],C=b[1],S=function(T){var _=T.which;(_===fe.UP||_===fe.DOWN)&&T.preventDefault(),p&&p(T),_===fe.ENTER&&s==="tags"&&!o.current&&!l&&(m==null||m(T.target.value)),fO(_)&&g(!0)},$=function(){C(!0)},x=i.useRef(null),E=function(T){f(T,!0,o.current)!==!1&&g(!0)},O=function(){o.current=!0},w=function(T){o.current=!1,s!=="combobox"&&E(T.target.value)},P=function(T){var _=T.target.value;if(u&&x.current&&/[\r\n]/.test(x.current)){var B=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_=_.replace(B,x.current)}x.current=null,E(_)},R=function(T){var _=T.clipboardData,B=_==null?void 0:_.getData("text");x.current=B||""},M=function(T){var _=T.target;if(_!==r.current){var B=document.body.style.msTouchAction!==void 0;B?setTimeout(function(){r.current.focus()}):r.current.focus()}},I=function(T){var _=y();T.target!==r.current&&!_&&s!=="combobox"&&T.preventDefault(),(s!=="combobox"&&(!c||!_)||!l)&&(l&&d!==!1&&f("",!0,!1),g())},N={inputRef:r,onInputKeyDown:S,onInputMouseDown:$,onInputChange:P,onInputPaste:R,onInputCompositionStart:O,onInputCompositionEnd:w},z=s==="multiple"||s==="tags"?i.createElement(uO,de({},t,N)):i.createElement(dO,de({},t,N));return i.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:M,onMouseDown:I},z)},gO=i.forwardRef(mO);function vO(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},l=a.className,s=a.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=i.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],v=n.points[1],h=p[0],b=p[1],y=v[0],C=v[1];h===y||!["t","b"].includes(h)?g.top=f:h==="t"?g.top=0:g.bottom=0,b===C||!["l","r"].includes(b)?g.left=u:b==="l"?g.left=0:g.right=0}return i.createElement("div",{ref:m,className:K("".concat(t,"-arrow"),l),style:g},s)}function pO(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?i.createElement(Gn,de({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(l){var s=l.className;return i.createElement("div",{style:{zIndex:r},className:K("".concat(t,"-mask"),s)})}):null}var hO=i.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),bO=i.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,l=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,g=e.arrow,p=e.arrowPos,v=e.align,h=e.motion,b=e.maskMotion,y=e.forceRender,C=e.getPopupContainer,S=e.autoDestroy,$=e.portal,x=e.zIndex,E=e.onMouseEnter,O=e.onMouseLeave,w=e.onPointerEnter,P=e.ready,R=e.offsetX,M=e.offsetY,I=e.offsetR,N=e.offsetB,z=e.onAlign,L=e.onPrepare,T=e.stretch,_=e.targetWidth,B=e.targetHeight,j=typeof n=="function"?n():n,A=c||u,V=(C==null?void 0:C.length)>0,X=i.useState(!C||!V),te=q(X,2),W=te[0],G=te[1];if(xt(function(){!W&&V&&l&&G(!0)},[W,V,l]),!W)return null;var ne="auto",J={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(P||!c){var oe,Z=v.points,k=v.dynamicInset||((oe=v._experimental)===null||oe===void 0?void 0:oe.dynamicInset),Q=k&&Z[0][1]==="r",ee=k&&Z[0][0]==="b";Q?(J.right=I,J.left=ne):(J.left=R,J.right=ne),ee?(J.bottom=N,J.top=ne):(J.top=M,J.bottom=ne)}var Y={};return T&&(T.includes("height")&&B?Y.height=B:T.includes("minHeight")&&B&&(Y.minHeight=B),T.includes("width")&&_?Y.width=_:T.includes("minWidth")&&_&&(Y.minWidth=_)),c||(Y.pointerEvents="none"),i.createElement($,{open:y||A,getContainer:C&&function(){return C(l)},autoDestroy:S},i.createElement(pO,{prefixCls:o,open:c,zIndex:x,mask:m,motion:b}),i.createElement(hn,{onResize:z,disabled:!c},function(U){return i.createElement(Gn,de({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},h,{onAppearPrepare:L,onEnterPrepare:L,visible:c,onVisibleChanged:function(se){var ue;h==null||(ue=h.onVisibleChanged)===null||ue===void 0||ue.call(h,se),s(se)}}),function(ie,se){var ue=ie.className,re=ie.style,le=K(o,ue,r);return i.createElement("div",{ref:$n(U,t,se),className:le,style:D(D(D(D({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},J),Y),re),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:E,onMouseLeave:O,onPointerEnter:w,onClick:f},g&&i.createElement(vO,{prefixCls:o,arrow:g,arrowPos:p,align:v}),i.createElement(hO,{cache:!c&&!d},j))})}))}),yO=i.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Jn(n),a=i.useCallback(function(s){ha(t,r?r(s):s)},[r]),l=zr(a,n.ref);return o?i.cloneElement(n,{ref:l}):n}),Wf=i.createContext(null);function Gf(e){return e?Array.isArray(e)?e:[e]:[]}function CO(e,t,n,r){return i.useMemo(function(){var o=Gf(n??t),a=Gf(r??t),l=new Set(o),s=new Set(a);return e&&(l.has("hover")&&(l.delete("hover"),l.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[l,s]},[e,t,n,r])}function SO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function xO(e,t,n,r){for(var o=n.points,a=Object.keys(e),l=0;l<a.length;l+=1){var s,c=a[l];if(SO((s=e[c])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function qf(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ja(e){return e.ownerDocument.defaultView}function Sc(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=ja(n).getComputedStyle(n),a=o.overflowX,l=o.overflowY,s=o.overflow;[a,l,s].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function $a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Zo(e){return $a(parseFloat(e),0)}function Xf(e,t){var n=D({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=ja(r).getComputedStyle(r),a=o.overflow,l=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,p=r.offsetWidth,v=r.clientWidth,h=Zo(s),b=Zo(c),y=Zo(u),C=Zo(d),S=$a(Math.round(f.width/p*1e3)/1e3),$=$a(Math.round(f.height/m*1e3)/1e3),x=(p-v-y-C)*S,E=(m-g-h-b)*$,O=h*$,w=b*$,P=y*S,R=C*S,M=0,I=0;if(a==="clip"){var N=Zo(l);M=N*S,I=N*$}var z=f.x+P-M,L=f.y+O-I,T=z+f.width+2*M-P-R-x,_=L+f.height+2*I-O-w-E;n.left=Math.max(n.left,z),n.top=Math.max(n.top,L),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,_)}}),n}function Uf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Yf(e,t){var n=t||[],r=q(n,2),o=r[0],a=r[1];return[Uf(e.width,o),Uf(e.height,a)]}function Zf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ao(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Sr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function $O(e,t,n,r,o,a,l){var s=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=q(s,2),u=c[0],d=c[1],f=i.useRef(0),m=i.useMemo(function(){return t?Sc(t):[]},[t]),g=i.useRef({}),p=function(){g.current={}};e||p();var v=Yt(function(){if(t&&n&&e){let It=function(vn,Cn){var On=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le,An=j.x+vn,ar=j.y+Cn,qo=An+oe,Wa=ar+J,zl=Math.max(An,On.left),Ll=Math.max(ar,On.top),jl=Math.min(qo,On.right),Dl=Math.min(Wa,On.bottom);return Math.max(0,(jl-zl)*(Dl-Ll))},gn=function(){dt=j.y+we,Pe=dt+J,Me=j.x+Ke,ct=Me+oe};var y,C,S=t,$=S.ownerDocument,x=ja(S),E=x.getComputedStyle(S),O=E.width,w=E.height,P=E.position,R=S.style.left,M=S.style.top,I=S.style.right,N=S.style.bottom,z=S.style.overflow,L=D(D({},o[r]),a),T=$.createElement("div");(y=S.parentElement)===null||y===void 0||y.appendChild(T),T.style.left="".concat(S.offsetLeft,"px"),T.style.top="".concat(S.offsetTop,"px"),T.style.position=P,T.style.height="".concat(S.offsetHeight,"px"),T.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else{var B=n.getBoundingClientRect();_={x:B.x,y:B.y,width:B.width,height:B.height}}var j=S.getBoundingClientRect(),A=$.documentElement,V=A.clientWidth,X=A.clientHeight,te=A.scrollWidth,W=A.scrollHeight,G=A.scrollTop,ne=A.scrollLeft,J=j.height,oe=j.width,Z=_.height,k=_.width,Q={left:0,top:0,right:V,bottom:X},ee={left:-ne,top:-G,right:te-ne,bottom:W-G},Y=L.htmlRegion,U="visible",ie="visibleFirst";Y!=="scroll"&&Y!==ie&&(Y=U);var se=Y===ie,ue=Xf(ee,m),re=Xf(Q,m),le=Y===U?re:ue,ce=se?re:le;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var pe=S.getBoundingClientRect();S.style.left=R,S.style.top=M,S.style.right=I,S.style.bottom=N,S.style.overflow=z,(C=S.parentElement)===null||C===void 0||C.removeChild(T);var me=$a(Math.round(oe/parseFloat(O)*1e3)/1e3),be=$a(Math.round(J/parseFloat(w)*1e3)/1e3);if(me===0||be===0||Ii(n)&&!_a(n))return;var ye=L.offset,xe=L.targetOffset,qe=Yf(j,ye),Ie=q(qe,2),Ce=Ie[0],$e=Ie[1],he=Yf(_,xe),We=q(he,2),_e=We[0],Je=We[1];_.x-=_e,_.y-=Je;var Re=L.points||[],je=q(Re,2),ke=je[0],Ge=je[1],ot=Zf(Ge),ge=Zf(ke),Ae=ao(_,ot),Xe=ao(j,ge),it=D({},L),Ke=Ae.x-Xe.x+Ce,we=Ae.y-Xe.y+$e,De=It(Ke,we),Ne=It(Ke,we,re),Fe=ao(_,["t","l"]),Be=ao(j,["t","l"]),ze=ao(_,["b","r"]),Ee=ao(j,["b","r"]),Se=L.overflow||{},Ze=Se.adjustX,lt=Se.adjustY,rt=Se.shiftX,Te=Se.shiftY,Le=function(Cn){return typeof Cn=="boolean"?Cn:Cn>=0},dt,Pe,Me,ct;gn();var Oe=Le(lt),He=ge[0]===ot[0];if(Oe&&ge[0]==="t"&&(Pe>ce.bottom||g.current.bt)){var et=we;He?et-=J-Z:et=Fe.y-Ee.y-$e;var ut=It(Ke,et),Pt=It(Ke,et,re);ut>De||ut===De&&(!se||Pt>=Ne)?(g.current.bt=!0,we=et,$e=-$e,it.points=[Sr(ge,0),Sr(ot,0)]):g.current.bt=!1}if(Oe&&ge[0]==="b"&&(dt<ce.top||g.current.tb)){var Ot=we;He?Ot+=J-Z:Ot=ze.y-Be.y-$e;var Ht=It(Ke,Ot),Lt=It(Ke,Ot,re);Ht>De||Ht===De&&(!se||Lt>=Ne)?(g.current.tb=!0,we=Ot,$e=-$e,it.points=[Sr(ge,0),Sr(ot,0)]):g.current.tb=!1}var Zt=Le(Ze),qt=ge[1]===ot[1];if(Zt&&ge[1]==="l"&&(ct>ce.right||g.current.rl)){var jt=Ke;qt?jt-=oe-k:jt=Fe.x-Ee.x-Ce;var bn=It(jt,we),Dn=It(jt,we,re);bn>De||bn===De&&(!se||Dn>=Ne)?(g.current.rl=!0,Ke=jt,Ce=-Ce,it.points=[Sr(ge,1),Sr(ot,1)]):g.current.rl=!1}if(Zt&&ge[1]==="r"&&(Me<ce.left||g.current.lr)){var Ye=Ke;qt?Ye+=oe-k:Ye=ze.x-Be.x-Ce;var mt=It(Ye,we),wt=It(Ye,we,re);mt>De||mt===De&&(!se||wt>=Ne)?(g.current.lr=!0,Ke=Ye,Ce=-Ce,it.points=[Sr(ge,1),Sr(ot,1)]):g.current.lr=!1}gn();var kt=rt===!0?0:rt;typeof kt=="number"&&(Me<re.left&&(Ke-=Me-re.left-Ce,_.x+k<re.left+kt&&(Ke+=_.x-re.left+k-kt)),ct>re.right&&(Ke-=ct-re.right-Ce,_.x>re.right-kt&&(Ke+=_.x-re.right+kt)));var nn=Te===!0?0:Te;typeof nn=="number"&&(dt<re.top&&(we-=dt-re.top-$e,_.y+Z<re.top+nn&&(we+=_.y-re.top+Z-nn)),Pe>re.bottom&&(we-=Pe-re.bottom-$e,_.y>re.bottom-nn&&(we+=_.y-re.bottom+nn)));var wn=j.x+Ke,yn=wn+oe,ln=j.y+we,Bn=ln+J,En=_.x,St=En+k,ht=_.y,Ue=ht+Z,tt=Math.max(wn,En),yt=Math.min(yn,St),Bt=(tt+yt)/2,Nt=Bt-wn,Kt=Math.max(ln,ht),Xt=Math.min(Bn,Ue),sn=(Kt+Xt)/2,st=sn-ln;l==null||l(t,it);var ft=pe.right-j.x-(Ke+j.width),Tt=pe.bottom-j.y-(we+j.height);d({ready:!0,offsetX:Ke/me,offsetY:we/be,offsetR:ft/me,offsetB:Tt/be,arrowX:Nt/me,arrowY:st/be,scaleX:me,scaleY:be,align:it})}}),h=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&v()})},b=function(){d(function(C){return D(D({},C),{},{ready:!1})})};return xt(b,[r]),xt(function(){e||b()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,h]}function wO(e,t,n,r,o){xt(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,l=n,s=Sc(a),c=Sc(l),u=ja(l),d=new Set([u].concat(ve(s),ve(c)));return d.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function EO(e,t,n,r,o,a,l,s){var c=i.useRef(e),u=i.useRef(!1);c.current!==e&&(u.current=!0,c.current=e),i.useEffect(function(){var d=Et(function(){u.current=!1});return function(){Et.cancel(d)}},[e]),i.useEffect(function(){if(t&&r&&(!o||a)){var d=function(){var x=!1,E=function(P){var R=P.target;x=l(R)},O=function(P){var R=P.target;!u.current&&c.current&&!x&&!l(R)&&s(!1)};return[E,O]},f=d(),m=q(f,2),g=m[0],p=m[1],v=d(),h=q(v,2),b=h[0],y=h[1],C=ja(r);C.addEventListener("mousedown",g,!0),C.addEventListener("click",p,!0),C.addEventListener("contextmenu",p,!0);var S=Mi(n);return S&&(S.addEventListener("mousedown",b,!0),S.addEventListener("click",y,!0),S.addEventListener("contextmenu",y,!0)),function(){C.removeEventListener("mousedown",g,!0),C.removeEventListener("click",p,!0),C.removeEventListener("contextmenu",p,!0),S&&(S.removeEventListener("mousedown",b,!0),S.removeEventListener("click",y,!0),S.removeEventListener("contextmenu",y,!0))}}},[t,n,r,o,a])}var OO=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function IO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fl,t=i.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,l=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,v=n.mouseEnterDelay,h=n.mouseLeaveDelay,b=h===void 0?.1:h,y=n.focusDelay,C=n.blurDelay,S=n.mask,$=n.maskClosable,x=$===void 0?!0:$,E=n.getPopupContainer,O=n.forceRender,w=n.autoDestroy,P=n.destroyPopupOnHide,R=n.popup,M=n.popupClassName,I=n.popupStyle,N=n.popupPlacement,z=n.builtinPlacements,L=z===void 0?{}:z,T=n.popupAlign,_=n.zIndex,B=n.stretch,j=n.getPopupClassNameFromAlign,A=n.fresh,V=n.alignPoint,X=n.onPopupClick,te=n.onPopupAlign,W=n.arrow,G=n.popupMotion,ne=n.maskMotion,J=n.popupTransitionName,oe=n.popupAnimation,Z=n.maskTransitionName,k=n.maskAnimation,Q=n.className,ee=n.getTriggerDOMNode,Y=Qe(n,OO),U=w||P||!1,ie=i.useState(!1),se=q(ie,2),ue=se[0],re=se[1];xt(function(){re(Ru())},[]);var le=i.useRef({}),ce=i.useContext(Wf),pe=i.useMemo(function(){return{registerSubPopup:function(gt,Wt){le.current[gt]=Wt,ce==null||ce.registerSubPopup(gt,Wt)}}},[ce]),me=Cp(),be=i.useState(null),ye=q(be,2),xe=ye[0],qe=ye[1],Ie=Yt(function(nt){Ii(nt)&&xe!==nt&&qe(nt),ce==null||ce.registerSubPopup(me,nt)}),Ce=i.useState(null),$e=q(Ce,2),he=$e[0],We=$e[1],_e=i.useRef(null),Je=Yt(function(nt){Ii(nt)&&he!==nt&&(We(nt),_e.current=nt)}),Re=i.Children.only(l),je=(Re==null?void 0:Re.props)||{},ke={},Ge=Yt(function(nt){var gt,Wt,rn=he;return(rn==null?void 0:rn.contains(nt))||((gt=Mi(rn))===null||gt===void 0?void 0:gt.host)===nt||nt===rn||(xe==null?void 0:xe.contains(nt))||((Wt=Mi(xe))===null||Wt===void 0?void 0:Wt.host)===nt||nt===xe||Object.values(le.current).some(function(Gt){return(Gt==null?void 0:Gt.contains(nt))||nt===Gt})}),ot=qf(a,G,oe,J),ge=qf(a,ne,k,Z),Ae=i.useState(m||!1),Xe=q(Ae,2),it=Xe[0],Ke=Xe[1],we=f??it,De=Yt(function(nt){f===void 0&&Ke(nt)});xt(function(){Ke(f||!1)},[f]);var Ne=i.useRef(we);Ne.current=we;var Fe=i.useRef([]);Fe.current=[];var Be=Yt(function(nt){var gt;De(nt),((gt=Fe.current[Fe.current.length-1])!==null&&gt!==void 0?gt:we)!==nt&&(Fe.current.push(nt),g==null||g(nt))}),ze=i.useRef(),Ee=function(){clearTimeout(ze.current)},Se=function(gt){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ee(),Wt===0?Be(gt):ze.current=setTimeout(function(){Be(gt)},Wt*1e3)};i.useEffect(function(){return Ee},[]);var Ze=i.useState(!1),lt=q(Ze,2),rt=lt[0],Te=lt[1];xt(function(nt){(!nt||we)&&Te(!0)},[we]);var Le=i.useState(null),dt=q(Le,2),Pe=dt[0],Me=dt[1],ct=i.useState([0,0]),Oe=q(ct,2),He=Oe[0],et=Oe[1],ut=function(gt){et([gt.clientX,gt.clientY])},Pt=$O(we,xe,V?He:he,N,L,T,te),Ot=q(Pt,11),Ht=Ot[0],Lt=Ot[1],Zt=Ot[2],qt=Ot[3],jt=Ot[4],bn=Ot[5],Dn=Ot[6],Ye=Ot[7],mt=Ot[8],wt=Ot[9],kt=Ot[10],nn=CO(ue,c,u,d),wn=q(nn,2),yn=wn[0],ln=wn[1],Bn=yn.has("click"),En=ln.has("click")||ln.has("contextMenu"),St=Yt(function(){rt||kt()}),ht=function(){Ne.current&&V&&En&&Se(!1)};wO(we,he,xe,St,ht),xt(function(){St()},[He,N]),xt(function(){we&&!(L!=null&&L[N])&&St()},[JSON.stringify(T)]);var Ue=i.useMemo(function(){var nt=xO(L,a,wt,V);return K(nt,j==null?void 0:j(wt))},[wt,j,L,a,V]);i.useImperativeHandle(r,function(){return{nativeElement:_e.current,forceAlign:St}});var tt=i.useState(0),yt=q(tt,2),Bt=yt[0],Nt=yt[1],Kt=i.useState(0),Xt=q(Kt,2),sn=Xt[0],st=Xt[1],ft=function(){if(B&&he){var gt=he.getBoundingClientRect();Nt(gt.width),st(gt.height)}},Tt=function(){ft(),St()},It=function(gt){Te(!1),kt(),p==null||p(gt)},gn=function(){return new Promise(function(gt){ft(),Me(function(){return gt})})};xt(function(){Pe&&(kt(),Pe(),Me(null))},[Pe]);function vn(nt,gt,Wt,rn){ke[nt]=function(Gt){var Ga;rn==null||rn(Gt),Se(gt,Wt);for(var Bl=arguments.length,yd=new Array(Bl>1?Bl-1:0),qa=1;qa<Bl;qa++)yd[qa-1]=arguments[qa];(Ga=je[nt])===null||Ga===void 0||Ga.call.apply(Ga,[je,Gt].concat(yd))}}(Bn||En)&&(ke.onClick=function(nt){var gt;Ne.current&&En?Se(!1):!Ne.current&&Bn&&(ut(nt),Se(!0));for(var Wt=arguments.length,rn=new Array(Wt>1?Wt-1:0),Gt=1;Gt<Wt;Gt++)rn[Gt-1]=arguments[Gt];(gt=je.onClick)===null||gt===void 0||gt.call.apply(gt,[je,nt].concat(rn))}),EO(we,En,he,xe,S,x,Ge,Se);var Cn=yn.has("hover"),On=ln.has("hover"),An,ar;Cn&&(vn("onMouseEnter",!0,v,function(nt){ut(nt)}),vn("onPointerEnter",!0,v,function(nt){ut(nt)}),An=function(){(we||rt)&&Se(!0,v)},V&&(ke.onMouseMove=function(nt){var gt;(gt=je.onMouseMove)===null||gt===void 0||gt.call(je,nt)})),On&&(vn("onMouseLeave",!1,b),vn("onPointerLeave",!1,b),ar=function(){Se(!1,b)}),yn.has("focus")&&vn("onFocus",!0,y),ln.has("focus")&&vn("onBlur",!1,C),yn.has("contextMenu")&&(ke.onContextMenu=function(nt){var gt;Ne.current&&ln.has("contextMenu")?Se(!1):(ut(nt),Se(!0)),nt.preventDefault();for(var Wt=arguments.length,rn=new Array(Wt>1?Wt-1:0),Gt=1;Gt<Wt;Gt++)rn[Gt-1]=arguments[Gt];(gt=je.onContextMenu)===null||gt===void 0||gt.call.apply(gt,[je,nt].concat(rn))}),Q&&(ke.className=K(je.className,Q));var qo=D(D({},je),ke),Wa={},zl=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];zl.forEach(function(nt){Y[nt]&&(Wa[nt]=function(){for(var gt,Wt=arguments.length,rn=new Array(Wt),Gt=0;Gt<Wt;Gt++)rn[Gt]=arguments[Gt];(gt=qo[nt])===null||gt===void 0||gt.call.apply(gt,[qo].concat(rn)),Y[nt].apply(Y,rn)})});var Ll=i.cloneElement(Re,D(D({},qo),Wa)),jl={x:bn,y:Dn},Dl=W?D({},W!==!0?W:{}):null;return i.createElement(i.Fragment,null,i.createElement(hn,{disabled:!we,ref:Je,onResize:Tt},i.createElement(yO,{getTriggerDOMNode:ee},Ll)),i.createElement(Wf.Provider,{value:pe},i.createElement(bO,{portal:e,ref:Ie,prefixCls:a,popup:R,className:K(M,Ue),style:I,target:he,onMouseEnter:An,onMouseLeave:ar,onPointerEnter:An,zIndex:_,open:we,keepDom:rt,fresh:A,onClick:X,mask:S,motion:ot,maskMotion:ge,onVisibleChanged:It,onPrepare:gn,forceRender:O,autoDestroy:U,getPopupContainer:E,align:wt,arrow:Dl,arrowPos:jl,ready:Ht,offsetX:Lt,offsetY:Zt,offsetR:qt,offsetB:jt,onAlign:St,stretch:B,targetWidth:Bt/Ye,targetHeight:sn/mt})))});return t}const vl=IO(fl);var RO=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],PO=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},NO=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,l=t.popupElement,s=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,m=f===void 0?"ltr":f,g=t.placement,p=t.builtinPlacements,v=t.dropdownMatchSelectWidth,h=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,S=t.getTriggerDOMNode,$=t.onPopupVisibleChange,x=t.onPopupMouseEnter,E=Qe(t,RO),O="".concat(r,"-dropdown"),w=l;h&&(w=h(l));var P=i.useMemo(function(){return p||PO(v)},[p,v]),R=s?"".concat(O,"-").concat(s):c,M=typeof v=="number",I=i.useMemo(function(){return M?null:v===!1?"minWidth":"width"},[v,M]),N=u;M&&(N=D(D({},N),{},{width:v}));var z=i.useRef(null);return i.useImperativeHandle(n,function(){return{getPopupElement:function(){return z.current}}}),i.createElement(vl,de({},E,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:g||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:O,popupTransitionName:R,popup:i.createElement("div",{ref:z,onMouseEnter:x},w),stretch:I,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:K(d,F({},"".concat(O,"-empty"),C)),popupStyle:N,getTriggerDOMNode:S,onPopupVisibleChange:$}),a)},TO=i.forwardRef(NO);function Qf(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Zp(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,l=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:a||"options",groupLabel:l||s}}function MO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=Zp(n,!1),l=a.label,s=a.value,c=a.options,u=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(g){if(m||!(c in g)){var p=g[s];o.push({key:Qf(g,o.length),groupOption:m,data:g,label:g[l],value:p})}else{var v=g[u];v===void 0&&r&&(v=g.label),o.push({key:Qf(g,o.length),group:!0,data:g,label:v}),d(g[c],!0)}})}return d(e,!1),o}function xc(e){var t=D({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Vt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var _O=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function s(c,u){var d=gv(u),f=d[0],m=d.slice(1);if(!f)return[c];var g=c.split(f);return o=o||g.length>1,g.reduce(function(p,v){return[].concat(ve(p),ve(s(v,m)))},[]).filter(Boolean)},l=a(t,n);return o?typeof r<"u"?l.slice(0,r):l:null},Pu=i.createContext(null),zO=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],LO=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],$c=function(t){return t==="tags"||t==="multiple"},jO=i.forwardRef(function(e,t){var n,r,o=e.id,a=e.prefixCls,l=e.className,s=e.showSearch,c=e.tagRender,u=e.direction,d=e.omitDomProps,f=e.displayValues,m=e.onDisplayValuesChange,g=e.emptyOptions,p=e.notFoundContent,v=p===void 0?"Not Found":p,h=e.onClear,b=e.mode,y=e.disabled,C=e.loading,S=e.getInputElement,$=e.getRawInputElement,x=e.open,E=e.defaultOpen,O=e.onDropdownVisibleChange,w=e.activeValue,P=e.onActiveValueChange,R=e.activeDescendantId,M=e.searchValue,I=e.autoClearSearchValue,N=e.onSearch,z=e.onSearchSplit,L=e.tokenSeparators,T=e.allowClear,_=e.suffixIcon,B=e.clearIcon,j=e.OptionList,A=e.animation,V=e.transitionName,X=e.dropdownStyle,te=e.dropdownClassName,W=e.dropdownMatchSelectWidth,G=e.dropdownRender,ne=e.dropdownAlign,J=e.placement,oe=e.builtinPlacements,Z=e.getPopupContainer,k=e.showAction,Q=k===void 0?[]:k,ee=e.onFocus,Y=e.onBlur,U=e.onKeyUp,ie=e.onKeyDown,se=e.onMouseDown,ue=Qe(e,zO),re=$c(b),le=(s!==void 0?s:re)||b==="combobox",ce=D({},ue);LO.forEach(function(Ue){delete ce[Ue]}),d==null||d.forEach(function(Ue){delete ce[Ue]});var pe=i.useState(!1),me=q(pe,2),be=me[0],ye=me[1];i.useEffect(function(){ye(Ru())},[]);var xe=i.useRef(null),qe=i.useRef(null),Ie=i.useRef(null),Ce=i.useRef(null),$e=i.useRef(null),he=i.useRef(!1),We=VE(),_e=q(We,3),Je=_e[0],Re=_e[1],je=_e[2];i.useImperativeHandle(t,function(){var Ue,tt;return{focus:(Ue=Ce.current)===null||Ue===void 0?void 0:Ue.focus,blur:(tt=Ce.current)===null||tt===void 0?void 0:tt.blur,scrollTo:function(Bt){var Nt;return(Nt=$e.current)===null||Nt===void 0?void 0:Nt.scrollTo(Bt)}}});var ke=i.useMemo(function(){var Ue;if(b!=="combobox")return M;var tt=(Ue=f[0])===null||Ue===void 0?void 0:Ue.value;return typeof tt=="string"||typeof tt=="number"?String(tt):""},[M,b,f]),Ge=b==="combobox"&&typeof S=="function"&&S()||null,ot=typeof $=="function"&&$(),ge=zr(qe,ot==null||(n=ot.props)===null||n===void 0?void 0:n.ref),Ae=i.useState(!1),Xe=q(Ae,2),it=Xe[0],Ke=Xe[1];xt(function(){Ke(!0)},[]);var we=At(!1,{defaultValue:E,value:x}),De=q(we,2),Ne=De[0],Fe=De[1],Be=it?Ne:!1,ze=!v&&g;(y||ze&&Be&&b==="combobox")&&(Be=!1);var Ee=ze?!1:Be,Se=i.useCallback(function(Ue){var tt=Ue!==void 0?Ue:!Be;y||(Fe(tt),Be!==tt&&(O==null||O(tt)))},[y,Be,Fe,O]),Ze=i.useMemo(function(){return(L||[]).some(function(Ue){return[`
`,`\r
`].includes(Ue)})},[L]),lt=i.useContext(Pu)||{},rt=lt.maxCount,Te=lt.rawValues,Le=function(tt,yt,Bt){if(!((Te==null?void 0:Te.size)>=rt)){var Nt=!0,Kt=tt;P==null||P(null);var Xt=_O(tt,L,rt&&rt-Te.size),sn=Bt?null:Xt;return b!=="combobox"&&sn&&(Kt="",z==null||z(sn),Se(!1),Nt=!1),N&&ke!==Kt&&N(Kt,{source:yt?"typing":"effect"}),Nt}},dt=function(tt){!tt||!tt.trim()||N(tt,{source:"submit"})};i.useEffect(function(){!Be&&!re&&b!=="combobox"&&Le("",!1,!1)},[Be]),i.useEffect(function(){Ne&&y&&Fe(!1),y&&!he.current&&Re(!1)},[y]);var Pe=Vp(),Me=q(Pe,2),ct=Me[0],Oe=Me[1],He=function(tt){var yt=ct(),Bt=tt.which;if(Bt===fe.ENTER&&(b!=="combobox"&&tt.preventDefault(),Be||Se(!0)),Oe(!!ke),Bt===fe.BACKSPACE&&!yt&&re&&!ke&&f.length){for(var Nt=ve(f),Kt=null,Xt=Nt.length-1;Xt>=0;Xt-=1){var sn=Nt[Xt];if(!sn.disabled){Nt.splice(Xt,1),Kt=sn;break}}Kt&&m(Nt,{type:"remove",values:[Kt]})}for(var st=arguments.length,ft=new Array(st>1?st-1:0),Tt=1;Tt<st;Tt++)ft[Tt-1]=arguments[Tt];if(Be){var It;(It=$e.current)===null||It===void 0||It.onKeyDown.apply(It,[tt].concat(ft))}ie==null||ie.apply(void 0,[tt].concat(ft))},et=function(tt){for(var yt=arguments.length,Bt=new Array(yt>1?yt-1:0),Nt=1;Nt<yt;Nt++)Bt[Nt-1]=arguments[Nt];if(Be){var Kt;(Kt=$e.current)===null||Kt===void 0||Kt.onKeyUp.apply(Kt,[tt].concat(Bt))}U==null||U.apply(void 0,[tt].concat(Bt))},ut=function(tt){var yt=f.filter(function(Bt){return Bt!==tt});m(yt,{type:"remove",values:[tt]})},Pt=i.useRef(!1),Ot=function(){Re(!0),y||(ee&&!Pt.current&&ee.apply(void 0,arguments),Q.includes("focus")&&Se(!0)),Pt.current=!0},Ht=function(){he.current=!0,Re(!1,function(){Pt.current=!1,he.current=!1,Se(!1)}),!y&&(ke&&(b==="tags"?N(ke,{source:"submit"}):b==="multiple"&&N("",{source:"blur"})),Y&&Y.apply(void 0,arguments))},Lt=[];i.useEffect(function(){return function(){Lt.forEach(function(Ue){return clearTimeout(Ue)}),Lt.splice(0,Lt.length)}},[]);var Zt=function(tt){var yt,Bt=tt.target,Nt=(yt=Ie.current)===null||yt===void 0?void 0:yt.getPopupElement();if(Nt&&Nt.contains(Bt)){var Kt=setTimeout(function(){var ft=Lt.indexOf(Kt);if(ft!==-1&&Lt.splice(ft,1),je(),!be&&!Nt.contains(document.activeElement)){var Tt;(Tt=Ce.current)===null||Tt===void 0||Tt.focus()}});Lt.push(Kt)}for(var Xt=arguments.length,sn=new Array(Xt>1?Xt-1:0),st=1;st<Xt;st++)sn[st-1]=arguments[st];se==null||se.apply(void 0,[tt].concat(sn))},qt=i.useState({}),jt=q(qt,2),bn=jt[1];function Dn(){bn({})}var Ye;ot&&(Ye=function(tt){Se(tt)}),WE(function(){var Ue;return[xe.current,(Ue=Ie.current)===null||Ue===void 0?void 0:Ue.getPopupElement()]},Ee,Se,!!ot);var mt=i.useMemo(function(){return D(D({},e),{},{notFoundContent:v,open:Be,triggerOpen:Ee,id:o,showSearch:le,multiple:re,toggleOpen:Se})},[e,v,Ee,Be,o,le,re,Se]),wt=!!_||C,kt;wt&&(kt=i.createElement(gl,{className:K("".concat(a,"-arrow"),F({},"".concat(a,"-arrow-loading"),C)),customizeIcon:_,customizeIconProps:{loading:C,searchValue:ke,open:Be,focused:Je,showSearch:le}}));var nn=function(){var tt;h==null||h(),(tt=Ce.current)===null||tt===void 0||tt.focus(),m([],{type:"clear",values:f}),Le("",!1,!1)},wn=kE(a,nn,f,T,B,y,ke,b),yn=wn.allowClear,ln=wn.clearIcon,Bn=i.createElement(j,{ref:$e}),En=K(a,l,(r={},F(r,"".concat(a,"-focused"),Je),F(r,"".concat(a,"-multiple"),re),F(r,"".concat(a,"-single"),!re),F(r,"".concat(a,"-allow-clear"),T),F(r,"".concat(a,"-show-arrow"),wt),F(r,"".concat(a,"-disabled"),y),F(r,"".concat(a,"-loading"),C),F(r,"".concat(a,"-open"),Be),F(r,"".concat(a,"-customize-input"),Ge),F(r,"".concat(a,"-show-search"),le),r)),St=i.createElement(TO,{ref:Ie,disabled:y,prefixCls:a,visible:Ee,popupElement:Bn,animation:A,transitionName:V,dropdownStyle:X,dropdownClassName:te,direction:u,dropdownMatchSelectWidth:W,dropdownRender:G,dropdownAlign:ne,placement:J,builtinPlacements:oe,getPopupContainer:Z,empty:g,getTriggerDOMNode:function(){return qe.current},onPopupVisibleChange:Ye,onPopupMouseEnter:Dn},ot?i.cloneElement(ot,{ref:ge}):i.createElement(gO,de({},e,{domRef:qe,prefixCls:a,inputElement:Ge,ref:Ce,id:o,showSearch:le,autoClearSearchValue:I,mode:b,activeDescendantId:R,tagRender:c,values:f,open:Be,onToggleOpen:Se,activeValue:w,searchValue:ke,onSearch:Le,onSearchSubmit:dt,onRemove:ut,tokenWithEnter:Ze}))),ht;return ot?ht=St:ht=i.createElement("div",de({className:En},ce,{ref:xe,onMouseDown:Zt,onKeyDown:He,onKeyUp:et,onFocus:Ot,onBlur:Ht}),Je&&!Be&&i.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(f.map(function(Ue){var tt=Ue.label,yt=Ue.value;return["number","string"].includes(at(tt))?tt:yt}).join(", "))),St,kt,yn&&ln),i.createElement(Kp.Provider,{value:mt},ht)}),Nu=function(){return null};Nu.isSelectOptGroup=!0;var Tu=function(){return null};Tu.isSelectOption=!0;var Qp=i.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,l=e.prefixCls,s=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},m={display:"flex",flexDirection:"column"};if(r!==void 0){var g;f={height:n,position:"relative",overflow:"hidden"},m=D(D({},m),{},(g={transform:"translateY(".concat(r,"px)")},F(g,u?"marginRight":"marginLeft",-o),F(g,"position","absolute"),F(g,"left",0),F(g,"right",0),F(g,"top",0),g))}return i.createElement("div",{style:f},i.createElement(hn,{onResize:function(v){var h=v.offsetHeight;h&&s&&s()}},i.createElement("div",de({style:m,className:K(F({},"".concat(l,"-holder-inner"),l)),ref:t},c),a,d)))});Qp.displayName="Filler";function Jf(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var em=i.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,a=e.scrollOffset,l=e.scrollRange,s=e.onStartMove,c=e.onStopMove,u=e.onScroll,d=e.horizontal,f=e.spinSize,m=e.containerSize,g=e.style,p=e.thumbStyle,v=i.useState(!1),h=q(v,2),b=h[0],y=h[1],C=i.useState(null),S=q(C,2),$=S[0],x=S[1],E=i.useState(null),O=q(E,2),w=O[0],P=O[1],R=!o,M=i.useRef(),I=i.useRef(),N=i.useState(!1),z=q(N,2),L=z[0],T=z[1],_=i.useRef(),B=function(){clearTimeout(_.current),T(!0),_.current=setTimeout(function(){T(!1)},3e3)},j=l-m||0,A=m-f||0,V=j>0,X=i.useMemo(function(){if(a===0||j===0)return 0;var Q=a/j;return Q*A},[a,j,A]),te=function(ee){ee.stopPropagation(),ee.preventDefault()},W=i.useRef({top:X,dragging:b,pageY:$,startTop:w});W.current={top:X,dragging:b,pageY:$,startTop:w};var G=function(ee){y(!0),x(Jf(ee,d)),P(W.current.top),s(),ee.stopPropagation(),ee.preventDefault()};i.useEffect(function(){var Q=function(ie){ie.preventDefault()},ee=M.current,Y=I.current;return ee.addEventListener("touchstart",Q),Y.addEventListener("touchstart",G),function(){ee.removeEventListener("touchstart",Q),Y.removeEventListener("touchstart",G)}},[]);var ne=i.useRef();ne.current=j;var J=i.useRef();J.current=A,i.useEffect(function(){if(b){var Q,ee=function(ie){var se=W.current,ue=se.dragging,re=se.pageY,le=se.startTop;if(Et.cancel(Q),ue){var ce=Jf(ie,d)-re,pe=le;!R&&d?pe-=ce:pe+=ce;var me=ne.current,be=J.current,ye=be?pe/be:0,xe=Math.ceil(ye*me);xe=Math.max(xe,0),xe=Math.min(xe,me),Q=Et(function(){u(xe,d)})}},Y=function(){y(!1),c()};return window.addEventListener("mousemove",ee),window.addEventListener("touchmove",ee),window.addEventListener("mouseup",Y),window.addEventListener("touchend",Y),function(){window.removeEventListener("mousemove",ee),window.removeEventListener("touchmove",ee),window.removeEventListener("mouseup",Y),window.removeEventListener("touchend",Y),Et.cancel(Q)}}},[b]),i.useEffect(function(){B()},[a]),i.useImperativeHandle(t,function(){return{delayHidden:B}});var oe="".concat(r,"-scrollbar"),Z={position:"absolute",visibility:L&&V?null:"hidden"},k={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(Z.height=8,Z.left=0,Z.right=0,Z.bottom=0,k.height="100%",k.width=f,R?k.left=X:k.right=X):(Z.width=8,Z.top=0,Z.bottom=0,R?Z.right=0:Z.left=0,k.width="100%",k.height=f,k.top=X),i.createElement("div",{ref:M,className:K(oe,(n={},F(n,"".concat(oe,"-horizontal"),d),F(n,"".concat(oe,"-vertical"),!d),F(n,"".concat(oe,"-visible"),L),n)),style:D(D({},Z),g),onMouseDown:te,onMouseMove:B},i.createElement("div",{ref:I,className:K("".concat(oe,"-thumb"),F({},"".concat(oe,"-thumb-moving"),b)),style:D(D({},k),p),onMouseDown:G}))});function DO(e){var t=e.children,n=e.setRef,r=i.useCallback(function(o){n(o)},[]);return i.cloneElement(t,{ref:r})}function BO(e,t,n,r,o,a,l){var s=l.getKey;return e.slice(t,n+1).map(function(c,u){var d=t+u,f=a(c,d,{style:{width:r}}),m=s(c);return i.createElement(DO,{key:m,setRef:function(p){return o(c,p)}},f)})}var AO=function(){function e(){fn(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return mn(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function FO(e,t,n){var r=i.useState(0),o=q(r,2),a=o[0],l=o[1],s=i.useRef(new Map),c=i.useRef(new AO),u=i.useRef();function d(){Et.cancel(u.current)}function f(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var p=function(){s.current.forEach(function(h,b){if(h&&h.offsetParent){var y=aa(h),C=y.offsetHeight;c.current.get(b)!==C&&c.current.set(b,y.offsetHeight)}}),l(function(h){return h+1})};g?p():u.current=Et(p)}function m(g,p){var v=e(g),h=s.current.get(v);p?(s.current.set(v,p),f()):s.current.delete(v),!h!=!p&&(p?t==null||t(g):n==null||n(g))}return i.useEffect(function(){return d},[]),[m,f,c.current,a]}var HO=10;function kO(e,t,n,r,o,a,l,s){var c=i.useRef(),u=i.useState(null),d=q(u,2),f=d[0],m=d[1];return xt(function(){if(f&&f.times<HO){if(!e.current){m(function(B){return D({},B)});return}a();var g=f.targetAlign,p=f.originAlign,v=f.index,h=f.offset,b=e.current.clientHeight,y=!1,C=g,S=null;if(b){for(var $=g||p,x=0,E=0,O=0,w=Math.min(t.length-1,v),P=0;P<=w;P+=1){var R=o(t[P]);E=x;var M=n.get(R);O=E+(M===void 0?r:M),x=O}for(var I=$==="top"?h:b-h,N=w;N>=0;N-=1){var z=o(t[N]),L=n.get(z);if(L===void 0){y=!0;break}if(I-=L,I<=0)break}switch($){case"top":S=E-h;break;case"bottom":S=O-b+h;break;default:{var T=e.current.scrollTop,_=T+b;E<T?C="top":O>_&&(C="bottom")}}S!==null&&l(S),S!==f.lastTop&&(y=!0)}y&&m(D(D({},f),{},{times:f.times+1,targetAlign:C,lastTop:S}))}},[f,e.current]),function(g){if(g==null){s();return}if(Et.cancel(c.current),typeof g=="number")l(g);else if(g&&at(g)==="object"){var p,v=g.align;"index"in g?p=g.index:p=t.findIndex(function(y){return o(y)===g.key});var h=g.offset,b=h===void 0?0:h;m({times:0,index:p,offset:b,originAlign:v})}}}function KO(e,t,n){var r=e.length,o=t.length,a,l;if(r===0&&o===0)return null;r<o?(a=e,l=t):(a=t,l=e);var s={__EMPTY_ITEM__:!0};function c(p){return p!==void 0?n(p):s}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<l.length;f+=1){var m=c(a[f]),g=c(l[f]);if(m!==g){u=f,d=d||m!==c(l[f+1]);break}}return u===null?null:{index:u,multiple:d}}function VO(e,t,n){var r=i.useState(e),o=q(r,2),a=o[0],l=o[1],s=i.useState(null),c=q(s,2),u=c[0],d=c[1];return i.useEffect(function(){var f=KO(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&(n==null||n(f.index),d(e[f.index])),l(e)},[e]),[u]}var tm=(typeof navigator>"u"?"undefined":at(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Jp=function(e,t){var n=i.useRef(!1),r=i.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var a=i.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=l<0&&a.current.top||l>0&&a.current.bottom;return s&&c?(clearTimeout(r.current),n.current=!1):(!c||n.current)&&o(),!n.current&&c}};function WO(e,t,n,r,o){var a=i.useRef(0),l=i.useRef(null),s=i.useRef(null),c=i.useRef(!1),u=Jp(t,n);function d(h,b){Et.cancel(l.current),a.current+=b,s.current=b,!u(b)&&(tm||h.preventDefault(),l.current=Et(function(){var y=c.current?10:1;o(a.current*y),a.current=0}))}function f(h,b){o(b,!0),tm||h.preventDefault()}var m=i.useRef(null),g=i.useRef(null);function p(h){if(e){Et.cancel(g.current),g.current=Et(function(){m.current=null},2);var b=h.deltaX,y=h.deltaY,C=h.shiftKey,S=b,$=y;(m.current==="sx"||!m.current&&C&&y&&!b)&&(S=y,$=0,m.current="sx");var x=Math.abs(S),E=Math.abs($);m.current===null&&(m.current=r&&x>E?"x":"y"),m.current==="y"?d(h,$):f(h,S)}}function v(h){e&&(c.current=h.detail===s.current)}return[p,v]}var GO=14/15;function qO(e,t,n){var r=i.useRef(!1),o=i.useRef(0),a=i.useRef(null),l=i.useRef(null),s,c=function(m){if(r.current){var g=Math.ceil(m.touches[0].pageY),p=o.current-g;o.current=g,n(p)&&m.preventDefault(),clearInterval(l.current),l.current=setInterval(function(){p*=GO,(!n(p,!0)||Math.abs(p)<=.1)&&clearInterval(l.current)},16)}},u=function(){r.current=!1,s()},d=function(m){s(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",c),a.current.addEventListener("touchend",u))};s=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},xt(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),s(),clearInterval(l.current)}},[e])}var XO=20;function nm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),n=Math.max(n,XO),n=Math.min(n,e/2),Math.floor(n)}function UO(e,t,n,r){var o=i.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=q(o,2),l=a[0],s=a[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=l.get(d),g=l.get(f);if(m===void 0||g===void 0)for(var p=e.length,v=s.length;v<p;v+=1){var h,b=e[v],y=t(b);l.set(y,v);var C=(h=n.get(y))!==null&&h!==void 0?h:r;if(s[v]=(s[v-1]||0)+C,y===d&&(m=v),y===f&&(g=v),m!==void 0&&g!==void 0)break}return{top:s[m-1]||0,bottom:s[g]}};return c}var YO=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],ZO=[],QO={overflowY:"auto",overflowAnchor:"none"};function JO(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,l=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,m=e.itemKey,g=e.virtual,p=e.direction,v=e.scrollWidth,h=e.component,b=h===void 0?"div":h,y=e.onScroll,C=e.onVirtualScroll,S=e.onVisibleChange,$=e.innerProps,x=e.extraRender,E=e.styles,O=Qe(e,YO),w=!!(g!==!1&&a&&l),P=w&&d&&(l*d.length>a||!!v),R=p==="rtl",M=K(r,F({},"".concat(r,"-rtl"),R),o),I=d||ZO,N=i.useRef(),z=i.useRef(),L=i.useState(0),T=q(L,2),_=T[0],B=T[1],j=i.useState(0),A=q(j,2),V=A[0],X=A[1],te=i.useState(!1),W=q(te,2),G=W[0],ne=W[1],J=function(){ne(!0)},oe=function(){ne(!1)},Z=i.useCallback(function(Oe){return typeof m=="function"?m(Oe):Oe==null?void 0:Oe[m]},[m]),k={getKey:Z};function Q(Oe){B(function(He){var et;typeof Oe=="function"?et=Oe(He):et=Oe;var ut=ge(et);return N.current.scrollTop=ut,ut})}var ee=i.useRef({start:0,end:I.length}),Y=i.useRef(),U=VO(I,Z),ie=q(U,1),se=ie[0];Y.current=se;var ue=FO(Z,null,null),re=q(ue,4),le=re[0],ce=re[1],pe=re[2],me=re[3],be=i.useMemo(function(){if(!w)return{scrollHeight:void 0,start:0,end:I.length-1,offset:void 0};if(!P){var Oe;return{scrollHeight:((Oe=z.current)===null||Oe===void 0?void 0:Oe.offsetHeight)||0,start:0,end:I.length-1,offset:void 0}}for(var He=0,et,ut,Pt,Ot=I.length,Ht=0;Ht<Ot;Ht+=1){var Lt=I[Ht],Zt=Z(Lt),qt=pe.get(Zt),jt=He+(qt===void 0?l:qt);jt>=_&&et===void 0&&(et=Ht,ut=He),jt>_+a&&Pt===void 0&&(Pt=Ht),He=jt}return et===void 0&&(et=0,ut=0,Pt=Math.ceil(a/l)),Pt===void 0&&(Pt=I.length-1),Pt=Math.min(Pt+1,I.length-1),{scrollHeight:He,start:et,end:Pt,offset:ut}},[P,w,_,I,me,a]),ye=be.scrollHeight,xe=be.start,qe=be.end,Ie=be.offset;ee.current.start=xe,ee.current.end=qe;var Ce=i.useState({width:0,height:a}),$e=q(Ce,2),he=$e[0],We=$e[1],_e=function(He){We({width:He.width||He.offsetWidth,height:He.height||He.offsetHeight})},Je=i.useRef(),Re=i.useRef(),je=i.useMemo(function(){return nm(he.width,v)},[he.width,v]),ke=i.useMemo(function(){return nm(he.height,ye)},[he.height,ye]),Ge=ye-a,ot=i.useRef(Ge);ot.current=Ge;function ge(Oe){var He=Oe;return Number.isNaN(ot.current)||(He=Math.min(He,ot.current)),He=Math.max(He,0),He}var Ae=_<=0,Xe=_>=Ge,it=Jp(Ae,Xe),Ke=function(){return{x:R?-V:V,y:_}},we=i.useRef(Ke()),De=Yt(function(){if(C){var Oe=Ke();(we.current.x!==Oe.x||we.current.y!==Oe.y)&&(C(Oe),we.current=Oe)}});function Ne(Oe,He){var et=Oe;He?(qr.flushSync(function(){X(et)}),De()):Q(et)}function Fe(Oe){var He=Oe.currentTarget.scrollTop;He!==_&&Q(He),y==null||y(Oe),De()}var Be=function(He){var et=He,ut=v-he.width;return et=Math.max(et,0),et=Math.min(et,ut),et},ze=Yt(function(Oe,He){He?(qr.flushSync(function(){X(function(et){var ut=et+(R?-Oe:Oe);return Be(ut)})}),De()):Q(function(et){var ut=et+Oe;return ut})}),Ee=WO(w,Ae,Xe,!!v,ze),Se=q(Ee,2),Ze=Se[0],lt=Se[1];qO(w,N,function(Oe,He){return it(Oe,He)?!1:(Ze({preventDefault:function(){},deltaY:Oe}),!0)}),xt(function(){function Oe(et){w&&et.preventDefault()}var He=N.current;return He.addEventListener("wheel",Ze),He.addEventListener("DOMMouseScroll",lt),He.addEventListener("MozMousePixelScroll",Oe),function(){He.removeEventListener("wheel",Ze),He.removeEventListener("DOMMouseScroll",lt),He.removeEventListener("MozMousePixelScroll",Oe)}},[w]),xt(function(){v&&X(function(Oe){return Be(Oe)})},[he.width,v]);var rt=function(){var He,et;(He=Je.current)===null||He===void 0||He.delayHidden(),(et=Re.current)===null||et===void 0||et.delayHidden()},Te=kO(N,I,pe,l,Z,function(){return ce(!0)},Q,rt);i.useImperativeHandle(t,function(){return{getScrollInfo:Ke,scrollTo:function(He){function et(ut){return ut&&at(ut)==="object"&&("left"in ut||"top"in ut)}et(He)?(He.left!==void 0&&X(Be(He.left)),Te(He.top)):Te(He)}}}),xt(function(){if(S){var Oe=I.slice(xe,qe+1);S(Oe,I)}},[xe,qe,I]);var Le=UO(I,Z,pe,l),dt=x==null?void 0:x({start:xe,end:qe,virtual:P,offsetX:V,offsetY:Ie,rtl:R,getSize:Le}),Pe=BO(I,xe,qe,v,le,f,k),Me=null;a&&(Me=D(F({},c?"height":"maxHeight",a),QO),w&&(Me.overflowY="hidden",v&&(Me.overflowX="hidden"),G&&(Me.pointerEvents="none")));var ct={};return R&&(ct.dir="rtl"),i.createElement("div",de({style:D(D({},u),{},{position:"relative"}),className:M},ct,O),i.createElement(hn,{onResize:_e},i.createElement(b,{className:"".concat(r,"-holder"),style:Me,ref:N,onScroll:Fe,onMouseEnter:rt},i.createElement(Qp,{prefixCls:r,height:ye,offsetX:V,offsetY:Ie,scrollWidth:v,onInnerResize:ce,ref:z,innerProps:$,rtl:R,extra:dt},Pe))),P&&ye>a&&i.createElement(em,{ref:Je,prefixCls:r,scrollOffset:_,scrollRange:ye,rtl:R,onScroll:Ne,onStartMove:J,onStopMove:oe,spinSize:ke,containerSize:he.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),P&&v&&i.createElement(em,{ref:Re,prefixCls:r,scrollOffset:V,scrollRange:v,rtl:R,onScroll:Ne,onStartMove:J,onStopMove:oe,spinSize:je,containerSize:he.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var pl=i.forwardRef(JO);pl.displayName="List";function eI(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var tI=["disabled","title","children","style","className"];function rm(e){return typeof e=="string"||typeof e=="number"}var nI=function(t,n){var r=KE(),o=r.prefixCls,a=r.id,l=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,g=i.useContext(Pu),p=g.maxCount,v=g.flattenOptions,h=g.onActiveValue,b=g.defaultActiveFirstOption,y=g.onSelect,C=g.menuItemSelectedIcon,S=g.rawValues,$=g.fieldNames,x=g.virtual,E=g.direction,O=g.listHeight,w=g.listItemHeight,P=g.optionRender,R="".concat(o,"-item"),M=_r(function(){return v},[l,v],function(Z,k){return k[0]&&Z[1]!==k[1]}),I=i.useRef(null),N=i.useMemo(function(){return s&&typeof p<"u"&&(S==null?void 0:S.size)>=p},[s,p,S==null?void 0:S.size]),z=function(k){k.preventDefault()},L=function(k){var Q;(Q=I.current)===null||Q===void 0||Q.scrollTo(typeof k=="number"?{index:k}:k)},T=function(k){for(var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ee=M.length,Y=0;Y<ee;Y+=1){var U=(k+Y*Q+ee)%ee,ie=M[U]||{},se=ie.group,ue=ie.data;if(!se&&!(ue!=null&&ue.disabled)&&!N)return U}return-1},_=i.useState(function(){return T(0)}),B=q(_,2),j=B[0],A=B[1],V=function(k){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;A(k);var ee={source:Q?"keyboard":"mouse"},Y=M[k];if(!Y){h(null,-1,ee);return}h(Y.value,k,ee)};i.useEffect(function(){V(b!==!1?T(0):-1)},[M.length,u]);var X=i.useCallback(function(Z){return S.has(Z)&&c!=="combobox"},[c,ve(S).toString(),S.size]);i.useEffect(function(){var Z=setTimeout(function(){if(!s&&l&&S.size===1){var Q=Array.from(S)[0],ee=M.findIndex(function(Y){var U=Y.data;return U.value===Q});ee!==-1&&(V(ee),L(ee))}});if(l){var k;(k=I.current)===null||k===void 0||k.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[l,u]);var te=function(k){k!==void 0&&y(k,{selected:!S.has(k)}),s||d(!1)};if(i.useImperativeHandle(n,function(){return{onKeyDown:function(k){var Q=k.which,ee=k.ctrlKey;switch(Q){case fe.N:case fe.P:case fe.UP:case fe.DOWN:{var Y=0;if(Q===fe.UP?Y=-1:Q===fe.DOWN?Y=1:eI()&&ee&&(Q===fe.N?Y=1:Q===fe.P&&(Y=-1)),Y!==0){var U=T(j+Y,Y);L(U),V(U,!0)}break}case fe.ENTER:{var ie,se=M[j];se&&!(se!=null&&(ie=se.data)!==null&&ie!==void 0&&ie.disabled)&&!N?te(se.value):te(void 0),l&&k.preventDefault();break}case fe.ESC:d(!1),l&&k.stopPropagation()}},onKeyUp:function(){},scrollTo:function(k){L(k)}}}),M.length===0)return i.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(R,"-empty"),onMouseDown:z},f);var W=Object.keys($).map(function(Z){return $[Z]}),G=function(k){return k.label};function ne(Z,k){var Q=Z.group;return{role:Q?"presentation":"option",id:"".concat(a,"_list_").concat(k)}}var J=function(k){var Q=M[k];if(!Q)return null;var ee=Q.data||{},Y=ee.value,U=Q.group,ie=zn(ee,!0),se=G(Q);return Q?i.createElement("div",de({"aria-label":typeof se=="string"&&!U?se:null},ie,{key:k},ne(Q,k),{"aria-selected":X(Y)}),Y):null},oe={role:"listbox",id:"".concat(a,"_list")};return i.createElement(i.Fragment,null,x&&i.createElement("div",de({},oe,{style:{height:0,width:0,overflow:"hidden"}}),J(j-1),J(j),J(j+1)),i.createElement(pl,{itemKey:"key",ref:I,data:M,height:O,itemHeight:w,fullHeight:!1,onMouseDown:z,onScroll:m,virtual:x,direction:E,innerProps:x?null:oe},function(Z,k){var Q,ee=Z.group,Y=Z.groupOption,U=Z.data,ie=Z.label,se=Z.value,ue=U.key;if(ee){var re,le=(re=U.title)!==null&&re!==void 0?re:rm(ie)?ie.toString():void 0;return i.createElement("div",{className:K(R,"".concat(R,"-group")),title:le},ie!==void 0?ie:ue)}var ce=U.disabled,pe=U.title;U.children;var me=U.style,be=U.className,ye=Qe(U,tI),xe=Ft(ye,W),qe=X(se),Ie=ce||!qe&&N,Ce="".concat(R,"-option"),$e=K(R,Ce,be,(Q={},F(Q,"".concat(Ce,"-grouped"),Y),F(Q,"".concat(Ce,"-active"),j===k&&!Ie),F(Q,"".concat(Ce,"-disabled"),Ie),F(Q,"".concat(Ce,"-selected"),qe),Q)),he=G(Z),We=!C||typeof C=="function"||qe,_e=typeof he=="number"?he:he||se,Je=rm(_e)?_e.toString():void 0;return pe!==void 0&&(Je=pe),i.createElement("div",de({},zn(xe),x?{}:ne(Z,k),{"aria-selected":qe,className:$e,title:Je,onMouseMove:function(){j===k||Ie||V(k)},onClick:function(){Ie||te(se)},style:me}),i.createElement("div",{className:"".concat(Ce,"-content")},typeof P=="function"?P(Z,{index:k}):_e),i.isValidElement(C)||qe,We&&i.createElement(gl,{className:"".concat(R,"-option-state"),customizeIcon:C,customizeIconProps:{value:se,disabled:Ie,isSelected:qe}},qe?"✓":null))}))},rI=i.forwardRef(nI);const oI=function(e,t){var n=i.useRef({values:new Map,options:new Map}),r=i.useMemo(function(){var a=n.current,l=a.values,s=a.options,c=e.map(function(f){if(f.label===void 0){var m;return D(D({},f),{},{label:(m=l.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=i.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function cs(e,t){return Up(e).join("").toUpperCase().includes(t)}const aI=function(e,t,n,r,o){return i.useMemo(function(){if(!n||r===!1)return e;var a=t.options,l=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(g,p){return o?cs(p[o],d):p[a]?cs(p[l!=="children"?l:"label"],d):cs(p[s],d)},m=u?function(g){return xc(g)}:function(g){return g};return e.forEach(function(g){if(g[a]){var p=f(n,m(g));if(p)c.push(g);else{var v=g[a].filter(function(h){return f(n,m(h))});v.length&&c.push(D(D({},g),{},F({},a,v)))}return}f(n,m(g))&&c.push(g)}),c},[e,r,o,n,t])};var om=0,iI=un();function lI(){var e;return iI?(e=om,om+=1):e="TEST_OR_SSR",e}function sI(e){var t=i.useState(),n=q(t,2),r=n[0],o=n[1];return i.useEffect(function(){o("rc_select_".concat(lI()))},[]),e||r}var cI=["children","value"],uI=["children"];function dI(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,l=Qe(r,cI);return D({key:n,value:a!==void 0?a:n,children:o},l)}function eh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return on(e).map(function(n,r){if(!i.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,l=o.key,s=o.props,c=s.children,u=Qe(s,uI);return t||!a?dI(n):D(D({key:"__RC_SELECT_GRP__".concat(l===null?r:l,"__"),label:l},u),{},{options:eh(c)})}).filter(function(n){return n})}var fI=function(t,n,r,o,a){return i.useMemo(function(){var l=t,s=!t;s&&(l=eh(n));var c=new Map,u=new Map,d=function(g,p,v){v&&typeof v=="string"&&g.set(p[v],p)},f=function m(g){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<g.length;v+=1){var h=g[v];!h[r.options]||p?(c.set(h[r.value],h),d(u,h,r.label),d(u,h,o),d(u,h,a)):m(h[r.options],!0)}};return f(l),{options:l,valueOptions:c,labelOptions:u}},[t,n,r,o,a])};function am(e){var t=i.useRef();t.current=e;var n=i.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var mI=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],gI=["inputValue"];function vI(e){return!e||at(e)!=="object"}var pI=i.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,l=e.backfill,s=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,g=e.onSelect,p=e.onDeselect,v=e.dropdownMatchSelectWidth,h=v===void 0?!0:v,b=e.filterOption,y=e.filterSort,C=e.optionFilterProp,S=e.optionLabelProp,$=e.options,x=e.optionRender,E=e.children,O=e.defaultActiveFirstOption,w=e.menuItemSelectedIcon,P=e.virtual,R=e.direction,M=e.listHeight,I=M===void 0?200:M,N=e.listItemHeight,z=N===void 0?20:N,L=e.value,T=e.defaultValue,_=e.labelInValue,B=e.onChange,j=e.maxCount,A=Qe(e,mI),V=sI(n),X=$c(r),te=!!(!$&&E),W=i.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),G=i.useMemo(function(){return Zp(s,te)},[JSON.stringify(s),te]),ne=At("",{value:u!==void 0?u:c,postState:function(Ee){return Ee||""}}),J=q(ne,2),oe=J[0],Z=J[1],k=fI($,E,G,C,S),Q=k.valueOptions,ee=k.labelOptions,Y=k.options,U=i.useCallback(function(ze){var Ee=Up(ze);return Ee.map(function(Se){var Ze,lt,rt,Te,Le;if(vI(Se))Ze=Se;else{var dt;rt=Se.key,lt=Se.label,Ze=(dt=Se.value)!==null&&dt!==void 0?dt:rt}var Pe=Q.get(Ze);if(Pe){var Me;lt===void 0&&(lt=Pe==null?void 0:Pe[S||G.label]),rt===void 0&&(rt=(Me=Pe==null?void 0:Pe.key)!==null&&Me!==void 0?Me:Ze),Te=Pe==null?void 0:Pe.disabled,Le=Pe==null?void 0:Pe.title}return{label:lt,value:Ze,key:rt,disabled:Te,title:Le}})},[G,S,Q]),ie=At(T,{value:L}),se=q(ie,2),ue=se[0],re=se[1],le=i.useMemo(function(){var ze,Ee=X&&ue===null?[]:ue,Se=U(Ee);return r==="combobox"&&lO((ze=Se[0])===null||ze===void 0?void 0:ze.value)?[]:Se},[ue,U,r,X]),ce=oI(le,Q),pe=q(ce,2),me=pe[0],be=pe[1],ye=i.useMemo(function(){if(!r&&me.length===1){var ze=me[0];if(ze.value===null&&(ze.label===null||ze.label===void 0))return[]}return me.map(function(Ee){var Se;return D(D({},Ee),{},{label:(Se=Ee.label)!==null&&Se!==void 0?Se:Ee.value})})},[r,me]),xe=i.useMemo(function(){return new Set(me.map(function(ze){return ze.value}))},[me]);i.useEffect(function(){if(r==="combobox"){var ze,Ee=(ze=me[0])===null||ze===void 0?void 0:ze.value;Z(iO(Ee)?String(Ee):"")}},[me]);var qe=am(function(ze,Ee){var Se,Ze=Ee??ze;return Se={},F(Se,G.value,ze),F(Se,G.label,Ze),Se}),Ie=i.useMemo(function(){if(r!=="tags")return Y;var ze=ve(Y),Ee=function(Ze){return Q.has(Ze)};return ve(me).sort(function(Se,Ze){return Se.value<Ze.value?-1:1}).forEach(function(Se){var Ze=Se.value;Ee(Ze)||ze.push(qe(Ze,Se.label))}),ze},[qe,Y,Q,me,r]),Ce=aI(Ie,G,oe,W,C),$e=i.useMemo(function(){return r!=="tags"||!oe||Ce.some(function(ze){return ze[C||"value"]===oe})||Ce.some(function(ze){return ze[G.value]===oe})?Ce:[qe(oe)].concat(ve(Ce))},[qe,C,r,Ce,oe,G]),he=i.useMemo(function(){return y?ve($e).sort(function(ze,Ee){return y(ze,Ee)}):$e},[$e,y]),We=i.useMemo(function(){return MO(he,{fieldNames:G,childrenAsData:te})},[he,G,te]),_e=function(Ee){var Se=U(Ee);if(re(Se),B&&(Se.length!==me.length||Se.some(function(rt,Te){var Le;return((Le=me[Te])===null||Le===void 0?void 0:Le.value)!==(rt==null?void 0:rt.value)}))){var Ze=_?Se:Se.map(function(rt){return rt.value}),lt=Se.map(function(rt){return xc(be(rt.value))});B(X?Ze:Ze[0],X?lt:lt[0])}},Je=i.useState(null),Re=q(Je,2),je=Re[0],ke=Re[1],Ge=i.useState(0),ot=q(Ge,2),ge=ot[0],Ae=ot[1],Xe=O!==void 0?O:r!=="combobox",it=i.useCallback(function(ze,Ee){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ze=Se.source,lt=Ze===void 0?"keyboard":Ze;Ae(Ee),l&&r==="combobox"&&ze!==null&&lt==="keyboard"&&ke(String(ze))},[l,r]),Ke=function(Ee,Se,Ze){var lt=function(){var et,ut=be(Ee);return[_?{label:ut==null?void 0:ut[G.label],value:Ee,key:(et=ut==null?void 0:ut.key)!==null&&et!==void 0?et:Ee}:Ee,xc(ut)]};if(Se&&g){var rt=lt(),Te=q(rt,2),Le=Te[0],dt=Te[1];g(Le,dt)}else if(!Se&&p&&Ze!=="clear"){var Pe=lt(),Me=q(Pe,2),ct=Me[0],Oe=Me[1];p(ct,Oe)}},we=am(function(ze,Ee){var Se,Ze=X?Ee.selected:!0;Ze?Se=X?[].concat(ve(me),[ze]):[ze]:Se=me.filter(function(lt){return lt.value!==ze}),_e(Se),Ke(ze,Ze),r==="combobox"?ke(""):(!$c||m)&&(Z(""),ke(""))}),De=function(Ee,Se){_e(Ee);var Ze=Se.type,lt=Se.values;(Ze==="remove"||Ze==="clear")&&lt.forEach(function(rt){Ke(rt.value,!1,Ze)})},Ne=function(Ee,Se){if(Z(Ee),ke(null),Se.source==="submit"){var Ze=(Ee||"").trim();if(Ze){var lt=Array.from(new Set([].concat(ve(xe),[Ze])));_e(lt),Ke(Ze,!0),Z("")}return}Se.source!=="blur"&&(r==="combobox"&&_e(Ee),d==null||d(Ee))},Fe=function(Ee){var Se=Ee;r!=="tags"&&(Se=Ee.map(function(lt){var rt=ee.get(lt);return rt==null?void 0:rt.value}).filter(function(lt){return lt!==void 0}));var Ze=Array.from(new Set([].concat(ve(xe),ve(Se))));_e(Ze),Ze.forEach(function(lt){Ke(lt,!0)})},Be=i.useMemo(function(){var ze=P!==!1&&h!==!1;return D(D({},k),{},{flattenOptions:We,onActiveValue:it,defaultActiveFirstOption:Xe,onSelect:we,menuItemSelectedIcon:w,rawValues:xe,fieldNames:G,virtual:ze,direction:R,listHeight:I,listItemHeight:z,childrenAsData:te,maxCount:j,optionRender:x})},[j,k,We,it,Xe,we,w,xe,G,P,h,R,I,z,te,x]);return i.createElement(Pu.Provider,{value:Be},i.createElement(jO,de({},A,{id:V,prefixCls:a,ref:t,omitDomProps:gI,mode:r,displayValues:ye,onDisplayValuesChange:De,direction:R,searchValue:oe,onSearch:Ne,autoClearSearchValue:m,onSearchSplit:Fe,dropdownMatchSelectWidth:h,OptionList:rI,emptyOptions:!We.length,activeValue:je,activeDescendantId:"".concat(V,"_list_").concat(ge)})))}),Mu=pI;Mu.Option=Tu;Mu.OptGroup=Nu;function Ai(e,t,n){return K({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const _u=(e,t)=>t||e,hI=()=>{const[,e]=en(),n=new Rt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},bI=hI,yI=()=>{const[,e]=en(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:l,contentColor:s}=i.useMemo(()=>({borderColor:new Rt(t).onBackground(o).toHexShortString(),shadowColor:new Rt(n).onBackground(o).toHexShortString(),contentColor:new Rt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:a},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},CI=yI,SI=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:l}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},xI=zt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=pt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[SI(o)]});var $I=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const th=i.createElement(bI,null),nh=i.createElement(CI,null),zu=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=th,description:a,children:l,imageStyle:s,style:c}=e,u=$I(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=i.useContext(Ve),g=d("empty",r),[p,v,h]=xI(g),[b]=nl("Empty"),y=typeof a<"u"?a:b==null?void 0:b.description,C=typeof y=="string"?y:"empty";let S=null;return typeof o=="string"?S=i.createElement("img",{alt:C,src:o}):S=o,p(i.createElement("div",Object.assign({className:K(v,h,g,m==null?void 0:m.className,{[`${g}-normal`]:o===nh,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),c)},u),i.createElement("div",{className:`${g}-image`,style:s},S),y&&i.createElement("div",{className:`${g}-description`},y),l&&i.createElement("div",{className:`${g}-footer`},l)))};zu.PRESENTED_IMAGE_DEFAULT=th;zu.PRESENTED_IMAGE_SIMPLE=nh;const Fr=zu,wI=e=>{const{componentName:t}=e,{getPrefixCls:n}=i.useContext(Ve),r=n("empty");switch(t){case"Table":case"List":return ae.createElement(Fr,{image:Fr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(Fr,{image:Fr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return ae.createElement(Fr,null)}},rh=wI,EI=["outlined","borderless","filled"],OI=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=i.useContext(_p);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=EI.includes(r);return[r,o]},Lu=OI,II=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function RI(e,t){return e||II(t)}const PI=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},NI=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},_t(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
          ${o}${s}bottomLeft,
          ${a}${s}bottomLeft
        `]:{animationName:Su},[`
          ${o}${s}topLeft,
          ${a}${s}topLeft,
          ${o}${s}topRight,
          ${a}${s}topRight
        `]:{animationName:$u},[`${l}${s}bottomLeft`]:{animationName:xu},[`
          ${l}${s}topLeft,
          ${l}${s}topRight
        `]:{animationName:wu},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},PI(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},mr),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},Mr(e,"slide-up"),Mr(e,"slide-down"),Di(e,"move-up"),Di(e,"move-down")]},TI=NI,io=2,MI=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()};function us(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,l=MI(e),s=t?`${n}-${t}`:"";return{[`${n}-multiple${s}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(io).mul(2).equal(),paddingBlock:e.calc(l).sub(io).equal(),borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${H(io)} 0`,lineHeight:H(a),visibility:"hidden",content:'"\\a0"'}},[`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:io,marginBottom:io,lineHeight:H(e.calc(a).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(io).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},rl()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l).equal(),"\n          &-input,\n          &-mirror\n        ":{height:a,fontFamily:e.fontFamily,lineHeight:H(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const _I=e=>{const{componentCls:t}=e,n=pt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=pt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[us(e),us(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},us(r,"lg")]},zI=_I;function ds(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},_t(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${n}-selection-item,
          ${n}-selection-placeholder
        `]:{padding:0,lineHeight:H(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-placeholder
      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${H(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:H(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${H(r)}`,"&:after":{display:"none"}}}}}}}function LI(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ds(e),ds(pt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${H(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},ds(pt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const jI=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:l,fontWeightStrong:s,controlItemBgActive:c,controlItemBgHover:u,colorBgContainer:d,colorFillSecondary:f,controlHeightLG:m,controlHeightSM:g,colorBgContainerDisabled:p,colorTextDisabled:v}=e;return{zIndexPopup:a+50,optionSelectedColor:l,optionSelectedFontWeight:s,optionSelectedBg:c,optionActiveBg:u,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:d,clearBg:d,singleItemHeightLG:m,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:g,multipleItemHeightLG:r,multipleSelectorBgDisabled:p,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},oh=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${H(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${H(o)} ${t.activeShadowColor}`,outline:0}}}},im=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},oh(e,t))}),DI=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},oh(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),im(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),im(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ah=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${H(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},lm=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ah(e,t))}),BI=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ah(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),lm(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),lm(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),AI=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),FI=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},DI(e)),BI(e)),AI(e))}),HI=FI,kI=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},KI=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},VI=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},_t(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},kI(e)),KI(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},mr),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},mr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},rl()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},WI=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},VI(e),LI(e),zI(e),TI(e),{[`${t}-rtl`]:{direction:"rtl"}},vu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},GI=zt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=pt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[WI(r),HI(r)]},jI,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var qI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const XI=qI;var UI=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:XI}))};const ih=i.forwardRef(UI);var YI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const ZI=YI;var QI=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:ZI}))};const ju=i.forwardRef(QI);var JI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const eR=JI;var tR=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:eR}))};const Du=i.forwardRef(tR);function nR(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;const g=n??i.createElement(Na,null),p=y=>t===null&&!s&&!f?null:i.createElement(i.Fragment,null,u!==!1&&y,s&&d);let v=null;if(t!==void 0)v=p(t);else if(a)v=p(i.createElement(Ta,{spin:!0}));else{const y=`${c}-suffix`;v=C=>{let{open:S,showSearch:$}=C;return p(S&&$?i.createElement(Du,{className:y}):i.createElement(ju,{className:y}))}}let h=null;r!==void 0?h=r:l?h=i.createElement(ih,null):h=null;let b=null;return o!==void 0?b=o:b=i.createElement(ll,null),{clearIcon:g,suffixIcon:v,itemIcon:h,removeIcon:b}}function rR(e,t){return t!==void 0?t:e!==null}var oR=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lh="SECRET_COMBOBOX_MODE_DO_NOT_USE",aR=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:a,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:g,disabled:p,notFoundContent:v,status:h,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:C,direction:S,style:$,allowClear:x,variant:E,dropdownStyle:O,transitionName:w,tagRender:P,maxCount:R}=e,M=oR(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:I,getPrefixCls:N,renderEmpty:z,direction:L,virtual:T,popupMatchSelectWidth:_,popupOverflow:B,select:j}=i.useContext(Ve),[,A]=en(),V=m??(A==null?void 0:A.controlHeight),X=N("select",r),te=N(),W=S??L,{compactSize:G,compactItemClassnames:ne}=za(X,W),[J,oe]=Lu(E,o),Z=tn(X),[k,Q,ee]=GI(X,Z),Y=i.useMemo(()=>{const{mode:ke}=e;if(ke!=="combobox")return ke===lh?"combobox":ke},[e.mode]),U=Y==="multiple"||Y==="tags",ie=rR(e.suffixIcon,e.showArrow),se=(n=C??y)!==null&&n!==void 0?n:_,{status:ue,hasFeedback:re,isFormItemInput:le,feedbackIcon:ce}=i.useContext(jn),pe=_u(ue,h);let me;v!==void 0?me=v:Y==="combobox"?me=null:me=(z==null?void 0:z("Select"))||i.createElement(rh,{componentName:"Select"});const{suffixIcon:be,itemIcon:ye,removeIcon:xe,clearIcon:qe}=nR(Object.assign(Object.assign({},M),{multiple:U,hasFeedback:re,feedbackIcon:ce,showSuffixIcon:ie,prefixCls:X,componentName:"Select"})),Ie=x===!0?{clearIcon:qe}:x,Ce=Ft(M,["suffixIcon","itemIcon"]),$e=K(c||u,{[`${X}-dropdown-${W}`]:W==="rtl"},l,ee,Z,Q),he=In(ke=>{var Ge;return(Ge=g??G)!==null&&Ge!==void 0?Ge:ke}),We=i.useContext(br),_e=p??We,Je=K({[`${X}-lg`]:he==="large",[`${X}-sm`]:he==="small",[`${X}-rtl`]:W==="rtl",[`${X}-${J}`]:oe,[`${X}-in-form-item`]:le},Ai(X,pe,re),ne,j==null?void 0:j.className,a,l,ee,Z,Q),Re=i.useMemo(()=>f!==void 0?f:W==="rtl"?"bottomRight":"bottomLeft",[f,W]),[je]=jo("SelectLike",O==null?void 0:O.zIndex);return k(i.createElement(Mu,Object.assign({ref:t,virtual:T,showSearch:j==null?void 0:j.showSearch},Ce,{style:Object.assign(Object.assign({},j==null?void 0:j.style),$),dropdownMatchSelectWidth:se,transitionName:Tr(te,"slide-up",w),builtinPlacements:RI(b,B),listHeight:d,listItemHeight:V,mode:Y,prefixCls:X,placement:Re,direction:W,suffixIcon:be,menuItemSelectedIcon:ye,removeIcon:xe,allowClear:Ie,notFoundContent:me,className:Je,getPopupContainer:s||I,dropdownClassName:$e,disabled:_e,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:je}),maxCount:U?R:void 0,tagRender:U?P:void 0})))},Ao=i.forwardRef(aR),iR=kp(Ao);Ao.SECRET_COMBOBOX_MODE_DO_NOT_USE=lh;Ao.Option=Tu;Ao.OptGroup=Nu;Ao._InternalPanelDoNotUseOrYouWillBeFired=iR;const hl=Ao,No=["xxl","xl","lg","md","sm","xs"],lR=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),sR=e=>{const t=e,n=[].concat(No).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),l=`screen${a}Min`,s=`screen${a}`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);if(o<n.length-1){const c=`screen${a}Max`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`)}}),e};function sh(){const[,e]=en(),t=lR(sR(e));return ae.useMemo(()=>{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,n.forEach(l=>l(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const l=t[a],s=this.matchHandlers[l];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const l=t[a],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[a]:d}))},c=window.matchMedia(l);c.addListener(s),this.matchHandlers[l]={mql:c,listener:s},s(c)})},responsiveMap:t}},[e])}function ch(){const[,e]=i.useReducer(t=>t+1,0);return e}function Bu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=i.useRef({}),n=ch(),r=sh();return xt(()=>{const o=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}const cR=i.createContext({}),wc=cR,uR=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:l,containerSizeLG:s,containerSizeSM:c,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,borderRadius:m,borderRadiusLG:g,borderRadiusSM:p,lineWidth:v,lineType:h,calc:b}=e,y=(C,S,$)=>({width:C,height:C,lineHeight:H(b(C).sub(b(v).mul(2)).equal()),borderRadius:"50%",[`&${n}-square`]:{borderRadius:$},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:S,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},_t(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${H(v)} ${h} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(l,u,m)),{"&-lg":Object.assign({},y(s,d,g)),"&-sm":Object.assign({},y(c,f,p)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},dR=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},fR=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:l,fontSizeHeading3:s,marginXS:c,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+l)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:u,groupOverlapping:-c,groupBorderColor:d}},uh=zt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=pt(e,{avatarBg:n,avatarColor:t});return[uR(r),dR(r)]},fR);var mR=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gR=(e,t)=>{const[n,r]=i.useState(1),[o,a]=i.useState(!1),[l,s]=i.useState(!0),c=i.useRef(null),u=i.useRef(null),d=$n(t,c),{getPrefixCls:f,avatar:m}=i.useContext(Ve),g=i.useContext(wc),p=()=>{if(!u.current||!c.current)return;const J=u.current.offsetWidth,oe=c.current.offsetWidth;if(J!==0&&oe!==0){const{gap:Z=4}=e;Z*2<oe&&r(oe-Z*2<J?(oe-Z*2)/J:1)}};i.useEffect(()=>{a(!0)},[]),i.useEffect(()=>{s(!0),r(1)},[e.src]),i.useEffect(p,[e.gap]);const v=()=>{const{onError:J}=e;(J==null?void 0:J())!==!1&&s(!1)},{prefixCls:h,shape:b,size:y,src:C,srcSet:S,icon:$,className:x,rootClassName:E,alt:O,draggable:w,children:P,crossOrigin:R}=e,M=mR(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),I=In(J=>{var oe,Z;return(Z=(oe=y??(g==null?void 0:g.size))!==null&&oe!==void 0?oe:J)!==null&&Z!==void 0?Z:"default"}),N=Object.keys(typeof I=="object"?I||{}:{}).some(J=>["xs","sm","md","lg","xl","xxl"].includes(J)),z=Bu(N),L=i.useMemo(()=>{if(typeof I!="object")return{};const J=No.find(Z=>z[Z]),oe=I[J];return oe?{width:oe,height:oe,lineHeight:`${oe}px`,fontSize:oe&&($||P)?oe/2:18}:{}},[z,I]),T=f("avatar",h),_=tn(T),[B,j,A]=uh(T,_),V=K({[`${T}-lg`]:I==="large",[`${T}-sm`]:I==="small"}),X=i.isValidElement(C),te=b||(g==null?void 0:g.shape)||"circle",W=K(T,V,m==null?void 0:m.className,`${T}-${te}`,{[`${T}-image`]:X||C&&l,[`${T}-icon`]:!!$},A,_,x,E,j),G=typeof I=="number"?{width:I,height:I,lineHeight:`${I}px`,fontSize:$?I/2:18}:{};let ne;if(typeof C=="string"&&l)ne=i.createElement("img",{src:C,draggable:w,srcSet:S,onError:v,alt:O,crossOrigin:R});else if(X)ne=C;else if($)ne=$;else if(o||n!==1){const J=`scale(${n}) translateX(-50%)`,oe={msTransform:J,WebkitTransform:J,transform:J},Z=typeof I=="number"?{lineHeight:`${I}px`}:{};ne=i.createElement(hn,{onResize:p},i.createElement("span",{className:`${T}-string`,ref:u,style:Object.assign(Object.assign({},Z),oe)},P))}else ne=i.createElement("span",{className:`${T}-string`,style:{opacity:0},ref:u},P);return delete M.onError,delete M.gap,B(i.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},G),L),m==null?void 0:m.style),M.style),className:W,ref:d}),ne))},vR=i.forwardRef(gR),dh=vR,Fi=e=>e?typeof e=="function"?e():e:null;function Au(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,l=e.style;return i.createElement("div",{className:K("".concat(n,"-content"),a),style:l},i.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var lo={shiftX:64,adjustY:1},so={adjustX:1,shiftY:!0},Hn=[0,0],pR={left:{points:["cr","cl"],overflow:so,offset:[-4,0],targetOffset:Hn},right:{points:["cl","cr"],overflow:so,offset:[4,0],targetOffset:Hn},top:{points:["bc","tc"],overflow:lo,offset:[0,-4],targetOffset:Hn},bottom:{points:["tc","bc"],overflow:lo,offset:[0,4],targetOffset:Hn},topLeft:{points:["bl","tl"],overflow:lo,offset:[0,-4],targetOffset:Hn},leftTop:{points:["tr","tl"],overflow:so,offset:[-4,0],targetOffset:Hn},topRight:{points:["br","tr"],overflow:lo,offset:[0,-4],targetOffset:Hn},rightTop:{points:["tl","tr"],overflow:so,offset:[4,0],targetOffset:Hn},bottomRight:{points:["tr","br"],overflow:lo,offset:[0,4],targetOffset:Hn},rightBottom:{points:["bl","br"],overflow:so,offset:[4,0],targetOffset:Hn},bottomLeft:{points:["tl","bl"],overflow:lo,offset:[0,4],targetOffset:Hn},leftBottom:{points:["br","bl"],overflow:so,offset:[-4,0],targetOffset:Hn}},hR=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],bR=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,l=t.mouseEnterDelay,s=l===void 0?0:l,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,g=t.children,p=t.onVisibleChange,v=t.afterVisibleChange,h=t.transitionName,b=t.animation,y=t.motion,C=t.placement,S=C===void 0?"right":C,$=t.align,x=$===void 0?{}:$,E=t.destroyTooltipOnHide,O=E===void 0?!1:E,w=t.defaultVisible,P=t.getTooltipContainer,R=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,I=t.id,N=t.showArrow,z=N===void 0?!0:N,L=Qe(t,hR),T=i.useRef(null);i.useImperativeHandle(n,function(){return T.current});var _=D({},L);"visible"in t&&(_.popupVisible=t.visible);var B=function(){return i.createElement(Au,{key:"content",prefixCls:m,id:I,overlayInnerStyle:R},M)};return i.createElement(vl,de({popupClassName:r,prefixCls:m,popup:B,action:a,builtinPlacements:pR,popupPlacement:S,ref:T,popupAlign:x,getPopupContainer:P,onPopupVisibleChange:p,afterPopupVisibleChange:v,popupTransitionName:h,popupAnimation:b,popupMotion:y,defaultPopupVisible:w,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:z},_),g)};const yR=i.forwardRef(bR);function Fu(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,l=o,s=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,g=2*o-s,p=c,v=2*o-a,h=l,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),C=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,S=`path('M ${a} ${l} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${g} ${p} A ${r} ${r} 0 0 0 ${v} ${h} Z')`;return{arrowShadowWidth:b,arrowPath:S,arrowPolygon:C}}const CR=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:l,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${H(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},fh=8;function bl(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?fh:r}}function ii(e,t){return e?t:{}}function Hu(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:l}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},CR(e,t,o)),{"&:before":{background:t}})]},ii(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}})),ii(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}})),ii(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),ii(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function SR(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const l=Object.assign(Object.assign({},a),o);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}const sm={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},xR={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},$R=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function mh(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:l}=e,s=t/2,c={};return Object.keys(sm).forEach(u=>{const d=r&&xR[u]||sm[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,$R.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}const m=bl({contentRadius:a,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal+s;break}f.overflow=SR(u,m,t,n),l&&(f.htmlRegion="visibleFirst")}),c}const wR=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},_t(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${H(e.calc(u).div(2).equal())} ${H(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,fh)}},[`${t}-content`]:{position:"relative"}}),HS(e,(f,m)=>{let{darkColor:g}=m;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},Hu(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ER=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},bl({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Fu(pt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),gh=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return zt("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:l}=r,s=pt(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:l});return[wR(s),Bo(r,"zoom-big-fast")]},ER,{resetStyle:!1,injectStyle:t})(e)},OR=ba.map(e=>`${e}-inverse`);function IR(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ve(OR),ve(ba)).includes(e):ba.includes(e)}function vh(e,t){const n=IR(t),r=K({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const RR=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:l}=e,{getPrefixCls:s}=i.useContext(Ve),c=s("tooltip",t),[u,d,f]=gh(c),m=vh(c,a),g=m.arrowStyle,p=Object.assign(Object.assign({},l),m.overlayStyle),v=K(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(i.createElement("div",{className:v,style:g},i.createElement("div",{className:`${c}-arrow`}),i.createElement(Au,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:p}),o)))},PR=RR;var NR=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ph=i.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:l,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:p=!0,title:v,overlay:h,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0}=e,S=!!p,[,$]=en(),{getPopupContainer:x,getPrefixCls:E,direction:O}=i.useContext(Ve),w=Lr(),P=i.useRef(null),R=()=>{var me;(me=P.current)===null||me===void 0||me.forceAlign()};i.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{w.deprecated(!1,"forcePopupAlign","forceAlign"),R()}}));const[M,I]=At(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),N=!v&&!h&&v!==0,z=me=>{var be,ye;I(N?!1:me),N||((be=e.onOpenChange)===null||be===void 0||be.call(e,me),(ye=e.onVisibleChange)===null||ye===void 0||ye.call(e,me))},L=i.useMemo(()=>{var me,be;let ye=y;return typeof p=="object"&&(ye=(be=(me=p.pointAtCenter)!==null&&me!==void 0?me:p.arrowPointAtCenter)!==null&&be!==void 0?be:y),b||mh({arrowPointAtCenter:ye,autoAdjustOverflow:C,arrowWidth:S?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[y,p,b,$]),T=i.useMemo(()=>v===0?v:h||v||"",[h,v]),_=i.createElement(Li,null,typeof T=="function"?T():T),{getPopupContainer:B,placement:j="top",mouseEnterDelay:A=.1,mouseLeaveDelay:V=.1,overlayStyle:X,rootClassName:te}=e,W=NR(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),G=E("tooltip",o),ne=E(),J=e["data-popover-inject"];let oe=M;!("open"in e)&&!("visible"in e)&&N&&(oe=!1);const Z=Ln(d)&&!op(d)?d:i.createElement("span",null,d),k=Z.props,Q=!k.className||typeof k.className=="string"?K(k.className,a||`${G}-open`):k.className,[ee,Y,U]=gh(G,!J),ie=vh(G,c),se=ie.arrowStyle,ue=Object.assign(Object.assign({},u),ie.overlayStyle),re=K(s,{[`${G}-rtl`]:O==="rtl"},ie.className,te,Y,U),[le,ce]=jo("Tooltip",W.zIndex),pe=i.createElement(yR,Object.assign({},W,{zIndex:le,showArrow:S,placement:j,mouseEnterDelay:A,mouseLeaveDelay:V,prefixCls:G,overlayClassName:re,overlayStyle:Object.assign(Object.assign({},se),X),getTooltipContainer:B||l||x,ref:P,builtinPlacements:L,overlay:_,visible:oe,onVisibleChange:z,afterVisibleChange:f??m,overlayInnerStyle:ue,arrowContent:i.createElement("span",{className:`${G}-arrow-content`}),motion:{motionName:Tr(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),oe?dn(Z,{className:Q}):Z);return ee(i.createElement(fu.Provider,{value:ce},pe))});ph._InternalPanelDoNotUseOrYouWillBeFired=PR;const Ur=ph,TR=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:l,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:g,innerContentPadding:p,titlePadding:v}=e;return[{[t]:Object.assign(Object.assign({},_t(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:l,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:o,borderBottom:g,padding:v},[`${t}-inner-content`]:{color:n,padding:p}})},Hu(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},MR=e=>{const{componentCls:t}=e;return{[t]:ba.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},_R=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:l,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,g=m/2,p=m/2-t,v=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:l+30},Fu(e)),bl({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${g}px ${v}px ${p}px`:0,titleBorderBottom:a?`${t}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${v}px`:0})},hh=zt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=pt(e,{popoverBg:t,popoverColor:n});return[TR(r),MR(r),Bo(r,"zoom-big")]},_R,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var zR=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const LR=(e,t,n)=>!t&&!n?null:i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${e}-title`},Fi(t)),i.createElement("div",{className:`${e}-inner-content`},Fi(n))),jR=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:l,content:s,children:c}=e;return i.createElement("div",{className:K(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},i.createElement("div",{className:`${n}-arrow`}),i.createElement(Au,Object.assign({},e,{className:t,prefixCls:n}),c||LR(n,l,s)))},DR=e=>{const{prefixCls:t,className:n}=e,r=zR(e,["prefixCls","className"]),{getPrefixCls:o}=i.useContext(Ve),a=o("popover",t),[l,s,c]=hh(a);return l(i.createElement(jR,Object.assign({},r,{prefixCls:a,hashId:s,className:K(n,c)})))},BR=DR;var AR=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FR=e=>{let{title:t,content:n,prefixCls:r}=e;return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${r}-title`},Fi(t)),i.createElement("div",{className:`${r}-inner-content`},Fi(n)))},bh=i.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:a,placement:l="top",trigger:s="hover",mouseEnterDelay:c=.1,mouseLeaveDelay:u=.1,overlayStyle:d={}}=e,f=AR(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=i.useContext(Ve),g=m("popover",n),[p,v,h]=hh(g),b=m(),y=K(a,v,h);return p(i.createElement(Ur,Object.assign({placement:l,trigger:s,mouseEnterDelay:c,mouseLeaveDelay:u,overlayStyle:d},f,{prefixCls:g,overlayClassName:y,ref:t,overlay:r||o?i.createElement(FR,{prefixCls:g,title:r,content:o}):null,transitionName:Tr(b,"zoom-big",f.transitionName),"data-popover-inject":!0})))});bh._InternalPanelDoNotUseOrYouWillBeFired=BR;const HR=bh,cm=e=>{const{size:t,shape:n}=i.useContext(wc),r=i.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return i.createElement(wc.Provider,{value:r},e.children)},kR=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Ve),{prefixCls:r,className:o,rootClassName:a,style:l,maxCount:s,maxStyle:c,size:u,shape:d,maxPopoverPlacement:f="top",maxPopoverTrigger:m="hover",children:g}=e,p=t("avatar",r),v=`${p}-group`,h=tn(p),[b,y,C]=uh(p,h),S=K(v,{[`${v}-rtl`]:n==="rtl"},C,h,o,a,y),$=on(g).map((E,O)=>dn(E,{key:`avatar-key-${O}`})),x=$.length;if(s&&s<x){const E=$.slice(0,s),O=$.slice(s,x);return E.push(i.createElement(HR,{key:"avatar-popover-key",content:O,trigger:m,placement:f,overlayClassName:`${v}-popover`},i.createElement(dh,{style:c},`+${x-s}`))),b(i.createElement(cm,{shape:d,size:u},i.createElement("div",{className:S,style:l},E)))}return b(i.createElement(cm,{shape:d,size:u},i.createElement("div",{className:S,style:l},$)))},KR=kR,yh=dh;yh.Group=KR;const O3=yh;var VR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const WR=VR;var GR=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:WR}))};const To=i.forwardRef(GR);var qR=fe.ESC,XR=fe.TAB;function UR(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,l=i.useRef(!1),s=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),l.current=!0,!0):!1},u=function(f){switch(f.keyCode){case qR:s();break;case XR:{var m=!1;l.current||(m=c()),m?f.preventDefault():s();break}}};i.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&Et(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[t])}var YR=i.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=i.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),l=$n(t,a==null?void 0:a.ref);return ae.createElement(ae.Fragment,null,r&&ae.createElement("div",{className:"".concat(o,"-arrow")}),ae.cloneElement(a,{ref:Jn(a)?l:void 0}))}),co={adjustX:1,adjustY:1},uo=[0,0],ZR={topLeft:{points:["bl","tl"],overflow:co,offset:[0,-4],targetOffset:uo},top:{points:["bc","tc"],overflow:co,offset:[0,-4],targetOffset:uo},topRight:{points:["br","tr"],overflow:co,offset:[0,-4],targetOffset:uo},bottomLeft:{points:["tl","bl"],overflow:co,offset:[0,4],targetOffset:uo},bottom:{points:["tc","bc"],overflow:co,offset:[0,4],targetOffset:uo},bottomRight:{points:["tr","br"],overflow:co,offset:[0,4],targetOffset:uo}},QR=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function JR(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,l=a===void 0?"rc-dropdown":a,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,g=m===void 0?ZR:m,p=e.getPopupContainer,v=e.showAction,h=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,C=e.visible,S=e.trigger,$=S===void 0?["hover"]:S,x=e.autoFocus,E=e.overlay,O=e.children,w=e.onVisibleChange,P=Qe(e,QR),R=ae.useState(),M=q(R,2),I=M[0],N=M[1],z="visible"in e?C:I,L=ae.useRef(null),T=ae.useRef(null),_=ae.useRef(null);ae.useImperativeHandle(t,function(){return L.current});var B=function(J){N(J),w==null||w(J)};UR({visible:z,triggerRef:_,onVisibleChange:B,autoFocus:x,overlayRef:T});var j=function(J){var oe=e.onOverlayClick;N(!1),oe&&oe(J)},A=function(){return ae.createElement(YR,{ref:T,overlay:E,prefixCls:l,arrow:o})},V=function(){return typeof E=="function"?A:A()},X=function(){var J=e.minOverlayWidthMatchTrigger,oe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!oe},te=function(){var J=e.openClassName;return J!==void 0?J:"".concat(l,"-open")},W=ae.cloneElement(O,{className:K((n=O.props)===null||n===void 0?void 0:n.className,z&&te()),ref:Jn(O)?$n(_,O.ref):void 0}),G=h;return!G&&$.indexOf("contextMenu")!==-1&&(G=["click"]),ae.createElement(vl,de({builtinPlacements:g},P,{prefixCls:l,ref:L,popupClassName:K(b,F({},"".concat(l,"-show-arrow"),o)),popupStyle:y,action:$,showAction:v,hideAction:G,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:z,stretch:X()?"minWidth":"",popup:V(),onPopupVisibleChange:B,onPopupClick:j,getPopupContainer:p}),W)}const Ch=ae.forwardRef(JR);var Sh=i.createContext(null);function xh(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function $h(e){var t=i.useContext(Sh);return xh(t,e)}var eP=["children","locked"],er=i.createContext(null);function tP(e,t){var n=D({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function wa(e){var t=e.children,n=e.locked,r=Qe(e,eP),o=i.useContext(er),a=_r(function(){return tP(o,r)},[o,r],function(l,s){return!n&&(l[0]!==s[0]||!Vn(l[1],s[1],!0))});return i.createElement(er.Provider,{value:a},t)}var nP=[],wh=i.createContext(null);function yl(){return i.useContext(wh)}var Eh=i.createContext(nP);function Fo(e){var t=i.useContext(Eh);return i.useMemo(function(){return e!==void 0?[].concat(ve(t),[e]):t},[t,e])}var Oh=i.createContext(null),ku=i.createContext({});function um(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_a(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),l=null;return o&&!Number.isNaN(a)?l=a:r&&l===null&&(l=0),r&&e.disabled&&(l=null),l!==null&&(l>=0||t&&l<0)}return!1}function rP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ve(e.querySelectorAll("*")).filter(function(r){return um(r,t)});return um(e,t)&&n.unshift(e),n}var Ec=fe.LEFT,Oc=fe.RIGHT,Ic=fe.UP,yi=fe.DOWN,Ci=fe.ENTER,Ih=fe.ESC,Qo=fe.HOME,Jo=fe.END,dm=[Ic,yi,Ec,Oc];function oP(e,t,n,r){var o,a,l,s,c="prev",u="next",d="children",f="parent";if(e==="inline"&&r===Ci)return{inlineTrigger:!0};var m=(o={},F(o,Ic,c),F(o,yi,u),o),g=(a={},F(a,Ec,n?u:c),F(a,Oc,n?c:u),F(a,yi,d),F(a,Ci,d),a),p=(l={},F(l,Ic,c),F(l,yi,u),F(l,Ci,d),F(l,Ih,f),F(l,Ec,n?d:f),F(l,Oc,n?f:d),l),v={inline:m,horizontal:g,vertical:p,inlineSub:m,horizontalSub:p,verticalSub:p},h=(s=v["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(h){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function aP(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function iP(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Ku(e,t){var n=rP(e,!0);return n.filter(function(r){return t.has(r)})}function fm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Ku(e,t),a=o.length,l=o.findIndex(function(s){return n===s});return r<0?l===-1?l=a-1:l-=1:r>0&&(l+=1),l=(l+a)%a,o[l]}var Rc=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(l){var s=document.querySelector("[data-menu-id='".concat(xh(n,l),"']"));s&&(r.add(s),a.set(s,l),o.set(l,s))}),{elements:r,key2element:o,element2key:a}};function lP(e,t,n,r,o,a,l,s,c,u){var d=i.useRef(),f=i.useRef();f.current=t;var m=function(){Et.cancel(d.current)};return i.useEffect(function(){return function(){m()}},[]),function(g){var p=g.which;if([].concat(dm,[Ci,Ih,Qo,Jo]).includes(p)){var v=a(),h=Rc(v,r),b=h,y=b.elements,C=b.key2element,S=b.element2key,$=C.get(t),x=iP($,y),E=S.get(x),O=oP(e,l(E,!0).length===1,n,p);if(!O&&p!==Qo&&p!==Jo)return;(dm.includes(p)||[Qo,Jo].includes(p))&&g.preventDefault();var w=function(T){if(T){var _=T,B=T.querySelector("a");B!=null&&B.getAttribute("href")&&(_=B);var j=S.get(T);s(j),m(),d.current=Et(function(){f.current===j&&_.focus()})}};if([Qo,Jo].includes(p)||O.sibling||!x){var P;!x||e==="inline"?P=o.current:P=aP(x);var R,M=Ku(P,y);p===Qo?R=M[0]:p===Jo?R=M[M.length-1]:R=fm(P,y,x,O.offset),w(R)}else if(O.inlineTrigger)c(E);else if(O.offset>0)c(E,!0),m(),d.current=Et(function(){h=Rc(v,r);var L=x.getAttribute("aria-controls"),T=document.getElementById(L),_=fm(T,h.elements);w(_)},5);else if(O.offset<0){var I=l(E,!0),N=I[I.length-2],z=C.get(N);c(N,!1),w(z)}}u==null||u(g)}}function sP(e){Promise.resolve().then(e)}var Vu="__RC_UTIL_PATH_SPLIT__",mm=function(t){return t.join(Vu)},cP=function(t){return t.split(Vu)},Pc="rc-menu-more";function uP(){var e=i.useState({}),t=q(e,2),n=t[1],r=i.useRef(new Map),o=i.useRef(new Map),a=i.useState([]),l=q(a,2),s=l[0],c=l[1],u=i.useRef(0),d=i.useRef(!1),f=function(){d.current||n({})},m=i.useCallback(function(C,S){var $=mm(S);o.current.set($,C),r.current.set(C,$),u.current+=1;var x=u.current;sP(function(){x===u.current&&f()})},[]),g=i.useCallback(function(C,S){var $=mm(S);o.current.delete($),r.current.delete(C)},[]),p=i.useCallback(function(C){c(C)},[]),v=i.useCallback(function(C,S){var $=r.current.get(C)||"",x=cP($);return S&&s.includes(x[0])&&x.unshift(Pc),x},[s]),h=i.useCallback(function(C,S){return C.some(function($){var x=v($,!0);return x.includes(S)})},[v]),b=function(){var S=ve(r.current.keys());return s.length&&S.push(Pc),S},y=i.useCallback(function(C){var S="".concat(r.current.get(C)).concat(Vu),$=new Set;return ve(o.current.keys()).forEach(function(x){x.startsWith(S)&&$.add(o.current.get(x))}),$},[]);return i.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:p,isSubPathKey:h,getKeyPath:v,getKeys:b,getSubPathKeys:y}}function na(e){var t=i.useRef(e);t.current=e;var n=i.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var dP=Math.random().toFixed(5).toString().slice(2),gm=0;function fP(e){var t=At(e,{value:e}),n=q(t,2),r=n[0],o=n[1];return i.useEffect(function(){gm+=1;var a="".concat(dP,"-").concat(gm);o("rc-menu-uuid-".concat(a))},[]),r}function Rh(e,t,n,r){var o=i.useContext(er),a=o.activeKey,l=o.onActive,s=o.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),l(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),s(e)}),c}function Ph(e){var t=i.useContext(er),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function Nh(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=i.createElement(t,D({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var mP=["item"];function Hi(e){var t=e.item,n=Qe(e,mP);return Object.defineProperty(n,"item",{get:function(){return Vt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var gP=["title","attribute","elementRef"],vP=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],pP=["active"],hP=function(e){hr(n,e);var t=Qr(n);function n(){return fn(this,n),t.apply(this,arguments)}return mn(n,[{key:"render",value:function(){var o=this.props,a=o.title,l=o.attribute,s=o.elementRef,c=Qe(o,gP),u=Ft(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Vt(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(rr.Item,de({},l,{title:typeof a=="string"?a:void 0},u,{ref:s}))}}]),n}(i.Component),bP=i.forwardRef(function(e,t){var n,r=e.style,o=e.className,a=e.eventKey;e.warnKey;var l=e.disabled,s=e.itemIcon,c=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,m=e.onClick,g=e.onKeyDown,p=e.onFocus,v=Qe(e,vP),h=$h(a),b=i.useContext(er),y=b.prefixCls,C=b.onItemClick,S=b.disabled,$=b.overflowDisabled,x=b.itemIcon,E=b.selectedKeys,O=b.onActive,w=i.useContext(ku),P=w._internalRenderMenuItem,R="".concat(y,"-item"),M=i.useRef(),I=i.useRef(),N=S||l,z=zr(t,I),L=Fo(a),T=function(Z){return{key:a,keyPath:ve(L).reverse(),item:M.current,domEvent:Z}},_=s||x,B=Rh(a,N,d,f),j=B.active,A=Qe(B,pP),V=E.includes(a),X=Ph(L.length),te=function(Z){if(!N){var k=T(Z);m==null||m(Hi(k)),C(k)}},W=function(Z){if(g==null||g(Z),Z.which===fe.ENTER){var k=T(Z);m==null||m(Hi(k)),C(k)}},G=function(Z){O(a),p==null||p(Z)},ne={};e.role==="option"&&(ne["aria-selected"]=V);var J=i.createElement(hP,de({ref:M,elementRef:z,role:u===null?"none":u||"menuitem",tabIndex:l?null:-1,"data-menu-id":$&&h?null:h},v,A,ne,{component:"li","aria-disabled":l,style:D(D({},X),r),className:K(R,(n={},F(n,"".concat(R,"-active"),j),F(n,"".concat(R,"-selected"),V),F(n,"".concat(R,"-disabled"),N),n),o),onClick:te,onKeyDown:W,onFocus:G}),c,i.createElement(Nh,{props:D(D({},e),{},{isSelected:V}),icon:_}));return P&&(J=P(J,e,{selected:V})),J});function yP(e,t){var n=e.eventKey,r=yl(),o=Fo(n);return i.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:i.createElement(bP,de({},e,{ref:t}))}const Da=i.forwardRef(yP);var CP=["className","children"],SP=function(t,n){var r=t.className,o=t.children,a=Qe(t,CP),l=i.useContext(er),s=l.prefixCls,c=l.mode,u=l.rtl;return i.createElement("ul",de({className:K(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},Wu=i.forwardRef(SP);Wu.displayName="SubMenuList";function Gu(e,t){return on(e).map(function(n,r){if(i.isValidElement(n)){var o,a,l=n.key,s=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:l,c=s==null;c&&(s="tmp_key-".concat([].concat(ve(t),[r]).join("-")));var u={key:s,eventKey:s};return i.cloneElement(n,u)}return n})}var pn={adjustX:1,adjustY:1},xP={topLeft:{points:["bl","tl"],overflow:pn},topRight:{points:["br","tr"],overflow:pn},bottomLeft:{points:["tl","bl"],overflow:pn},bottomRight:{points:["tr","br"],overflow:pn},leftTop:{points:["tr","tl"],overflow:pn},leftBottom:{points:["br","bl"],overflow:pn},rightTop:{points:["tl","tr"],overflow:pn},rightBottom:{points:["bl","br"],overflow:pn}},$P={topLeft:{points:["bl","tl"],overflow:pn},topRight:{points:["br","tr"],overflow:pn},bottomLeft:{points:["tl","bl"],overflow:pn},bottomRight:{points:["tr","br"],overflow:pn},rightTop:{points:["tr","tl"],overflow:pn},rightBottom:{points:["br","bl"],overflow:pn},leftTop:{points:["tl","tr"],overflow:pn},leftBottom:{points:["bl","br"],overflow:pn}};function Th(e,t,n){if(t)return t;if(n)return n[e]||n.other}var wP={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function EP(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,l=e.popupClassName,s=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=i.useContext(er),m=f.getPopupContainer,g=f.rtl,p=f.subMenuOpenDelay,v=f.subMenuCloseDelay,h=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,C=f.rootClassName,S=f.motion,$=f.defaultMotions,x=i.useState(!1),E=q(x,2),O=E[0],w=E[1],P=D(g?D({},$P):D({},xP),h),R=wP[u],M=Th(u,S,$),I=i.useRef(M);u!=="inline"&&(I.current=M);var N=D(D({},I.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),z=i.useRef();return i.useEffect(function(){return z.current=Et(function(){w(n)}),function(){Et.cancel(z.current)}},[n]),i.createElement(vl,{prefixCls:t,popupClassName:K("".concat(t,"-popup"),F({},"".concat(t,"-rtl"),g),l,C),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:P,popupPlacement:R,popupVisible:O,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:c?[]:[b],mouseEnterDelay:p,mouseLeaveDelay:v,onPopupVisibleChange:d,forceRender:y,popupMotion:N,fresh:!0},r)}function OP(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",l=i.useContext(er),s=l.prefixCls,c=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,m=i.useRef(!1);m.current=f===a;var g=i.useState(!m.current),p=q(g,2),v=p[0],h=p[1],b=m.current?n:!1;i.useEffect(function(){m.current&&h(!1)},[f]);var y=D({},Th(a,u,d));r.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(S){return!m.current&&!S&&h(!0),C==null?void 0:C(S)},v?null:i.createElement(wa,{mode:a,locked:!m.current},i.createElement(Gn,de({visible:b},y,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var $=S.className,x=S.style;return i.createElement(Wu,{id:t,className:$,style:x},o)}))}var IP=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],RP=["active"],PP=function(t){var n,r=t.style,o=t.className,a=t.title,l=t.eventKey;t.warnKey;var s=t.disabled,c=t.internalPopupClose,u=t.children,d=t.itemIcon,f=t.expandIcon,m=t.popupClassName,g=t.popupOffset,p=t.popupStyle,v=t.onClick,h=t.onMouseEnter,b=t.onMouseLeave,y=t.onTitleClick,C=t.onTitleMouseEnter,S=t.onTitleMouseLeave,$=Qe(t,IP),x=$h(l),E=i.useContext(er),O=E.prefixCls,w=E.mode,P=E.openKeys,R=E.disabled,M=E.overflowDisabled,I=E.activeKey,N=E.selectedKeys,z=E.itemIcon,L=E.expandIcon,T=E.onItemClick,_=E.onOpenChange,B=E.onActive,j=i.useContext(ku),A=j._internalRenderSubMenuItem,V=i.useContext(Oh),X=V.isSubPathKey,te=Fo(),W="".concat(O,"-submenu"),G=R||s,ne=i.useRef(),J=i.useRef(),oe=d??z,Z=f??L,k=P.includes(l),Q=!M&&k,ee=X(N,l),Y=Rh(l,G,C,S),U=Y.active,ie=Qe(Y,RP),se=i.useState(!1),ue=q(se,2),re=ue[0],le=ue[1],ce=function(je){G||le(je)},pe=function(je){ce(!0),h==null||h({key:l,domEvent:je})},me=function(je){ce(!1),b==null||b({key:l,domEvent:je})},be=i.useMemo(function(){return U||(w!=="inline"?re||X([I],l):!1)},[w,U,I,re,l,X]),ye=Ph(te.length),xe=function(je){G||(y==null||y({key:l,domEvent:je}),w==="inline"&&_(l,!k))},qe=na(function(Re){v==null||v(Hi(Re)),T(Re)}),Ie=function(je){w!=="inline"&&_(l,je)},Ce=function(){B(l)},$e=x&&"".concat(x,"-popup"),he=i.createElement("div",de({role:"menuitem",style:ye,className:"".concat(W,"-title"),tabIndex:G?null:-1,ref:ne,title:typeof a=="string"?a:null,"data-menu-id":M&&x?null:x,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":$e,"aria-disabled":G,onClick:xe,onFocus:Ce},ie),a,i.createElement(Nh,{icon:w!=="horizontal"?Z:void 0,props:D(D({},t),{},{isOpen:Q,isSubMenu:!0})},i.createElement("i",{className:"".concat(W,"-arrow")}))),We=i.useRef(w);if(w!=="inline"&&te.length>1?We.current="vertical":We.current=w,!M){var _e=We.current;he=i.createElement(EP,{mode:_e,prefixCls:W,visible:!c&&Q&&w!=="inline",popupClassName:m,popupOffset:g,popupStyle:p,popup:i.createElement(wa,{mode:_e==="horizontal"?"vertical":_e},i.createElement(Wu,{id:$e,ref:J},u)),disabled:G,onVisibleChange:Ie},he)}var Je=i.createElement(rr.Item,de({role:"none"},$,{component:"li",style:r,className:K(W,"".concat(W,"-").concat(w),o,(n={},F(n,"".concat(W,"-open"),Q),F(n,"".concat(W,"-active"),be),F(n,"".concat(W,"-selected"),ee),F(n,"".concat(W,"-disabled"),G),n)),onMouseEnter:pe,onMouseLeave:me}),he,!M&&i.createElement(OP,{id:$e,open:Q,keyPath:te},u));return A&&(Je=A(Je,t,{selected:ee,active:be,open:Q,disabled:G})),i.createElement(wa,{onItemClick:qe,mode:w==="horizontal"?"vertical":w,itemIcon:oe,expandIcon:Z},Je)};function Cl(e){var t=e.eventKey,n=e.children,r=Fo(t),o=Gu(n,r),a=yl();i.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}},[r]);var l;return a?l=o:l=i.createElement(PP,e,o),i.createElement(Eh.Provider,{value:r},l)}var NP=["className","title","eventKey","children"],TP=["children"],MP=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=Qe(t,NP),l=i.useContext(er),s=l.prefixCls,c="".concat(s,"-item-group");return i.createElement("li",de({role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:K(c,n)}),i.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),i.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function Sl(e){var t=e.children,n=Qe(e,TP),r=Fo(n.eventKey),o=Gu(t,r),a=yl();return a?o:i.createElement(MP,Ft(n,["warnKey"]),o)}function qu(e){var t=e.className,n=e.style,r=i.useContext(er),o=r.prefixCls,a=yl();return a?null:i.createElement("li",{role:"separator",className:K("".concat(o,"-item-divider"),t),style:n})}var _P=["label","children","key","type"];function Nc(e){return(e||[]).map(function(t,n){if(t&&at(t)==="object"){var r=t,o=r.label,a=r.children,l=r.key,s=r.type,c=Qe(r,_P),u=l??"tmp-".concat(n);return a||s==="group"?s==="group"?i.createElement(Sl,de({key:u},c,{title:o}),Nc(a)):i.createElement(Cl,de({key:u},c,{title:o}),Nc(a)):s==="divider"?i.createElement(qu,de({key:u},c)):i.createElement(Da,de({key:u},c),o)}return null}).filter(function(t){return t})}function zP(e,t,n){var r=e;return t&&(r=Nc(t)),Gu(r,n)}var LP=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],fo=[],jP=i.forwardRef(function(e,t){var n,r,o=e,a=o.prefixCls,l=a===void 0?"rc-menu":a,s=o.rootClassName,c=o.style,u=o.className,d=o.tabIndex,f=d===void 0?0:d,m=o.items,g=o.children,p=o.direction,v=o.id,h=o.mode,b=h===void 0?"vertical":h,y=o.inlineCollapsed,C=o.disabled,S=o.disabledOverflow,$=o.subMenuOpenDelay,x=$===void 0?.1:$,E=o.subMenuCloseDelay,O=E===void 0?.1:E,w=o.forceSubMenuRender,P=o.defaultOpenKeys,R=o.openKeys,M=o.activeKey,I=o.defaultActiveFirst,N=o.selectable,z=N===void 0?!0:N,L=o.multiple,T=L===void 0?!1:L,_=o.defaultSelectedKeys,B=o.selectedKeys,j=o.onSelect,A=o.onDeselect,V=o.inlineIndent,X=V===void 0?24:V,te=o.motion,W=o.defaultMotions,G=o.triggerSubMenuAction,ne=G===void 0?"hover":G,J=o.builtinPlacements,oe=o.itemIcon,Z=o.expandIcon,k=o.overflowedIndicator,Q=k===void 0?"...":k,ee=o.overflowedIndicatorPopupClassName,Y=o.getPopupContainer,U=o.onClick,ie=o.onOpenChange,se=o.onKeyDown;o.openAnimation,o.openTransitionName;var ue=o._internalRenderMenuItem,re=o._internalRenderSubMenuItem,le=Qe(o,LP),ce=i.useMemo(function(){return zP(g,m,fo)},[g,m]),pe=i.useState(!1),me=q(pe,2),be=me[0],ye=me[1],xe=i.useRef(),qe=fP(v),Ie=p==="rtl",Ce=At(P,{value:R,postState:function(ht){return ht||fo}}),$e=q(Ce,2),he=$e[0],We=$e[1],_e=function(ht){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function tt(){We(ht),ie==null||ie(ht)}Ue?qr.flushSync(tt):tt()},Je=i.useState(he),Re=q(Je,2),je=Re[0],ke=Re[1],Ge=i.useRef(!1),ot=i.useMemo(function(){return(b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),ge=q(ot,2),Ae=ge[0],Xe=ge[1],it=Ae==="inline",Ke=i.useState(Ae),we=q(Ke,2),De=we[0],Ne=we[1],Fe=i.useState(Xe),Be=q(Fe,2),ze=Be[0],Ee=Be[1];i.useEffect(function(){Ne(Ae),Ee(Xe),Ge.current&&(it?We(je):_e(fo))},[Ae,Xe]);var Se=i.useState(0),Ze=q(Se,2),lt=Ze[0],rt=Ze[1],Te=lt>=ce.length-1||De!=="horizontal"||S;i.useEffect(function(){it&&ke(he)},[he]),i.useEffect(function(){return Ge.current=!0,function(){Ge.current=!1}},[]);var Le=uP(),dt=Le.registerPath,Pe=Le.unregisterPath,Me=Le.refreshOverflowKeys,ct=Le.isSubPathKey,Oe=Le.getKeyPath,He=Le.getKeys,et=Le.getSubPathKeys,ut=i.useMemo(function(){return{registerPath:dt,unregisterPath:Pe}},[dt,Pe]),Pt=i.useMemo(function(){return{isSubPathKey:ct}},[ct]);i.useEffect(function(){Me(Te?fo:ce.slice(lt+1).map(function(St){return St.key}))},[lt,Te]);var Ot=At(M||I&&((n=ce[0])===null||n===void 0?void 0:n.key),{value:M}),Ht=q(Ot,2),Lt=Ht[0],Zt=Ht[1],qt=na(function(St){Zt(St)}),jt=na(function(){Zt(void 0)});i.useImperativeHandle(t,function(){return{list:xe.current,focus:function(ht){var Ue,tt=He(),yt=Rc(tt,qe),Bt=yt.elements,Nt=yt.key2element,Kt=yt.element2key,Xt=Ku(xe.current,Bt),sn=Lt??(Xt[0]?Kt.get(Xt[0]):(Ue=ce.find(function(Tt){return!Tt.props.disabled}))===null||Ue===void 0?void 0:Ue.key),st=Nt.get(sn);if(sn&&st){var ft;st==null||(ft=st.focus)===null||ft===void 0||ft.call(st,ht)}}}});var bn=At(_||[],{value:B,postState:function(ht){return Array.isArray(ht)?ht:ht==null?fo:[ht]}}),Dn=q(bn,2),Ye=Dn[0],mt=Dn[1],wt=function(ht){if(z){var Ue=ht.key,tt=Ye.includes(Ue),yt;T?tt?yt=Ye.filter(function(Nt){return Nt!==Ue}):yt=[].concat(ve(Ye),[Ue]):yt=[Ue],mt(yt);var Bt=D(D({},ht),{},{selectedKeys:yt});tt?A==null||A(Bt):j==null||j(Bt)}!T&&he.length&&De!=="inline"&&_e(fo)},kt=na(function(St){U==null||U(Hi(St)),wt(St)}),nn=na(function(St,ht){var Ue=he.filter(function(yt){return yt!==St});if(ht)Ue.push(St);else if(De!=="inline"){var tt=et(St);Ue=Ue.filter(function(yt){return!tt.has(yt)})}Vn(he,Ue,!0)||_e(Ue,!0)}),wn=function(ht,Ue){var tt=Ue??!he.includes(ht);nn(ht,tt)},yn=lP(De,Lt,Ie,qe,xe,He,Oe,Zt,wn,se);i.useEffect(function(){ye(!0)},[]);var ln=i.useMemo(function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:re}},[ue,re]),Bn=De!=="horizontal"||S?ce:ce.map(function(St,ht){return i.createElement(wa,{key:St.key,overflowDisabled:ht>lt},St)}),En=i.createElement(rr,de({id:v,ref:xe,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Da,className:K(l,"".concat(l,"-root"),"".concat(l,"-").concat(De),u,(r={},F(r,"".concat(l,"-inline-collapsed"),ze),F(r,"".concat(l,"-rtl"),Ie),r),s),dir:p,style:c,role:"menu",tabIndex:f,data:Bn,renderRawItem:function(ht){return ht},renderRawRest:function(ht){var Ue=ht.length,tt=Ue?ce.slice(-Ue):null;return i.createElement(Cl,{eventKey:Pc,title:Q,disabled:Te,internalPopupClose:Ue===0,popupClassName:ee},tt)},maxCount:De!=="horizontal"||S?rr.INVALIDATE:rr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ht){rt(ht)},onKeyDown:yn},le));return i.createElement(ku.Provider,{value:ln},i.createElement(Sh.Provider,{value:qe},i.createElement(wa,{prefixCls:l,rootClassName:s,mode:De,openKeys:he,rtl:Ie,disabled:C,motion:be?te:null,defaultMotions:be?W:null,activeKey:Lt,onActive:qt,onInactive:jt,selectedKeys:Ye,inlineIndent:X,subMenuOpenDelay:x,subMenuCloseDelay:O,forceSubMenuRender:w,builtinPlacements:J,triggerSubMenuAction:ne,getPopupContainer:Y,itemIcon:oe,expandIcon:Z,onItemClick:kt,onOpenChange:nn},i.createElement(Oh.Provider,{value:Pt},En),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(wh.Provider,{value:ut},ce)))))}),Ho=jP;Ho.Item=Da;Ho.SubMenu=Cl;Ho.ItemGroup=Sl;Ho.Divider=qu;var DP={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const BP=DP;var AP=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:BP}))};const FP=i.forwardRef(AP);var HP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const kP=HP;var KP=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:kP}))};const Ea=i.forwardRef(KP),VP=e=>!isNaN(parseFloat(e))&&isFinite(e),WP=VP,Mh=i.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var GP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vm={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},xl=i.createContext({}),qP=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),XP=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:l=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:p,onCollapse:v,onBreakpoint:h}=e,b=GP(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=i.useContext(Mh),[C,S]=i.useState("collapsed"in e?e.collapsed:l),[$,x]=i.useState(!1);i.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const E=(I,N)=>{"collapsed"in e||S(I),v==null||v(I,N)},O=i.useRef();O.current=I=>{x(I.matches),h==null||h(I.matches),C!==I.matches&&E(I.matches,"responsive")},i.useEffect(()=>{function I(z){return O.current(z)}let N;if(typeof window<"u"){const{matchMedia:z}=window;if(z&&p&&p in vm){N=z(`screen and (max-width: ${vm[p]})`);try{N.addEventListener("change",I)}catch{N.addListener(I)}I(N)}}return()=>{try{N==null||N.removeEventListener("change",I)}catch{N==null||N.removeListener(I)}}},[p]),i.useEffect(()=>{const I=qP("ant-sider-");return y.addSider(I),()=>y.removeSider(I)},[]);const w=()=>{E(!C,"clickTrigger")},{getPrefixCls:P}=i.useContext(Ve),R=()=>{const I=P("layout-sider",n),N=Ft(b,["collapsed"]),z=C?m:f,L=WP(z)?`${z}px`:String(z),T=parseFloat(String(m||0))===0?i.createElement("span",{onClick:w,className:K(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${d?"right":"left"}`),style:g},o||i.createElement(FP,null)):null,j={expanded:d?i.createElement(To,null):i.createElement(Ea,null),collapsed:d?i.createElement(Ea,null):i.createElement(To,null)}[C?"collapsed":"expanded"],A=o!==null?T||i.createElement("div",{className:`${I}-trigger`,onClick:w,style:{width:L}},o||j):null,V=Object.assign(Object.assign({},c),{flex:`0 0 ${L}`,maxWidth:L,minWidth:L,width:L}),X=K(I,`${I}-${s}`,{[`${I}-collapsed`]:!!C,[`${I}-has-trigger`]:u&&o!==null&&!T,[`${I}-below`]:!!$,[`${I}-zero-width`]:parseFloat(L)===0},r);return i.createElement("aside",Object.assign({className:X},N,{style:V,ref:t}),i.createElement("div",{className:`${I}-children`},a),u||$&&T?A:null)},M=i.useMemo(()=>({siderCollapsed:C}),[C]);return i.createElement(xl.Provider,{value:M},R())}),_h=XP;var UP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const YP=UP;var ZP=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:YP}))};const Xu=i.forwardRef(ZP);var QP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const JP=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=QP(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=i.useContext(Ve),l=a("menu",t),s=K({[`${l}-item-divider-dashed`]:!!r},n);return i.createElement(qu,Object.assign({className:s},o))},zh=JP,e2=i.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ki=e2,t2=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:l}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=i.useContext(ki),m=y=>{const C=i.createElement("span",{className:`${s}-title-content`},r);return(!o||Ln(r)&&r.type==="span")&&r&&y&&c&&typeof r=="string"?i.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:g}=i.useContext(xl);let p=a;typeof a>"u"?p=c?r:"":a===!1&&(p="");const v={title:p};!g&&!f&&(v.title=null,v.open=!1);const h=on(r).length;let b=i.createElement(Da,Object.assign({},Ft(e,["title","icon","danger"]),{className:K({[`${s}-item-danger`]:l,[`${s}-item-only-child`]:(o?h+1:h)===1},n),title:typeof a=="string"?a:void 0}),dn(o,{className:K(Ln(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(f));return d||(b=i.createElement(Ur,Object.assign({},v,{placement:u==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},Lh=t2,n2=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,l=i.useContext(ki),{prefixCls:s,inlineCollapsed:c,theme:u}=l,d=Fo();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?i.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):i.createElement("span",{className:`${s}-title-content`},o);else{const p=Ln(o)&&o.type==="span";f=i.createElement(i.Fragment,null,dn(r,{className:K(Ln(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),p?o:i.createElement("span",{className:`${s}-title-content`},o))}const m=i.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[g]=jo("Menu");return i.createElement(ki.Provider,{value:m},i.createElement(Cl,Object.assign({},Ft(e,["icon"]),{title:f,popupClassName:K(s,n,`${s}-${a||u}`),popupStyle:{zIndex:g}})))},jh=n2;var r2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Tc(e){return(e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:l,type:s}=r,c=r2(r,["label","children","key","type"]),u=l??`tmp-${n}`;return a||s==="group"?s==="group"?i.createElement(Sl,Object.assign({key:u},c,{title:o}),Tc(a)):i.createElement(jh,Object.assign({key:u},c,{title:o}),Tc(a)):s==="divider"?i.createElement(zh,Object.assign({key:u},c)):i.createElement(Lh,Object.assign({key:u},c),o)}return null}).filter(t=>t)}function o2(e){return i.useMemo(()=>e&&Tc(e),[e])}var a2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Mc=i.createContext(null),Dh=i.forwardRef((e,t)=>{const{children:n}=e,r=a2(e,["children"]),o=i.useContext(Mc),a=i.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=tC(n),s=zr(t,l?n.ref:null);return i.createElement(Mc.Provider,{value:a},i.createElement(Li,null,l?i.cloneElement(n,{ref:s}):n))}),pm=Mc,i2=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:l,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${H(a)} ${l} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},l2=i2,s2=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
    ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${H(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${H(n)})`}}}}},c2=s2,hm=e=>Object.assign({},Nr(e)),u2=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:g,motionEaseOut:p,itemPaddingInline:v,motionDurationMid:h,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:S,dangerItemColor:$,dangerItemHoverColor:x,dangerItemSelectedColor:E,dangerItemActiveBg:O,dangerItemSelectedBg:w,popupBg:P,itemHoverBg:R,itemActiveBg:M,menuSubMenuBg:I,horizontalItemSelectedColor:N,horizontalItemSelectedBg:z,horizontalItemBorderRadius:L,horizontalItemHoverBg:T}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},hm(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:w}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},hm(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:I},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${H(u)} solid transparent`,transition:`border-color ${m} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:u,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:u,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${H(f)} ${y} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${H(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${p}`,`opacity ${h} ${p}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${g}`,`opacity ${h} ${g}`].join(",")}}}}}},bm=u2,ym=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:l,itemMarginBlock:s,itemWidth:c}=e,u=e.calc(a).add(o).add(l).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:H(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:H(n)},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:u}}},d2=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:l,motionDurationMid:s,motionEaseOut:c,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:p,collapsedWidth:v,collapsedIconSize:h}=e,b={height:r,lineHeight:H(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},ym(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},ym(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${H(e.calc(l).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${s} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${H(e.calc(f).div(2).equal())} - ${H(d)})`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:H(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},mr),{paddingInline:g})}}]},f2=d2,Cm=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:l,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},rl()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Sm=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${H(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${H(l)})`}}}}},m2=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:l,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:p,menuArrowOffset:v,lineType:h,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:C}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},Pr()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_t(e)),Pr()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${H(s)} ${H(c)}`,fontSize:C,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${l}`,`background ${o} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${l}`,`background ${o} ${l}`,`padding ${a} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${l}`,`padding ${o} ${l}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:h,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Cm(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${H(e.calc(r).mul(2).equal())} ${H(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${H(b)} 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:e.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:e.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:e.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},Cm(e)),Sm(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${l}`}})}}),Sm(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${H(v)})`},"&::after":{transform:`rotate(45deg) translateX(${H(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${H(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${H(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${H(v)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},g2=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:l,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:g,lineWidthBold:p,controlItemBgActive:v,colorBgTextHover:h,controlHeightLG:b,lineHeight:y,colorBgElevated:C,marginXXS:S,padding:$,fontSize:x,controlHeightSM:E,fontSizeLG:O,colorTextLightSolid:w,colorErrorHover:P}=e,R=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,M=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,I=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,N=new Rt(w).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:R,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:g,activeBarBorderWidth:M,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:I,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:C,itemMarginBlock:S,itemPaddingInline:$,horizontalLineHeight:`${b*1.15}px`,iconSize:x,iconMarginInlineEnd:E-x,collapsedIconSize:O,groupTitleFontSize:x,darkItemDisabledColor:new Rt(w).setAlpha(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:w,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:a,itemWidth:R?`calc(100% + ${M}px)`:`calc(100% - ${I*2}px)`}},v2=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return zt("Menu",o=>{const{colorBgElevated:a,colorPrimary:l,colorTextLightSolid:s,controlHeightLG:c,fontSize:u,darkItemColor:d,darkDangerItemColor:f,darkItemBg:m,darkSubMenuItemBg:g,darkItemSelectedColor:p,darkItemSelectedBg:v,darkDangerItemSelectedBg:h,darkItemHoverBg:b,darkGroupTitleColor:y,darkItemHoverColor:C,darkItemDisabledColor:S,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:E,popupBg:O,darkPopupBg:w}=o,P=o.calc(u).div(7).mul(5).equal(),R=pt(o,{menuArrowSize:P,menuHorizontalHeight:o.calc(c).mul(1.15).equal(),menuArrowOffset:o.calc(P).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:a,calc:o.calc,popupBg:O}),M=pt(R,{itemColor:d,itemHoverColor:C,groupTitleColor:y,itemSelectedColor:p,itemBg:m,popupBg:w,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:S,dangerItemColor:f,dangerItemHoverColor:$,dangerItemSelectedColor:x,dangerItemActiveBg:E,dangerItemSelectedBg:h,menuSubMenuBg:g,horizontalItemSelectedColor:s,horizontalItemSelectedBg:l});return[m2(R),l2(R),f2(R),bm(R,"light"),bm(M,"dark"),c2(R),Ou(R),Mr(R,"slide-up"),Mr(R,"slide-down"),Bo(R,"zoom-big")]},g2,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var p2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const h2=i.forwardRef((e,t)=>{var n,r;const o=i.useContext(pm),a=o||{},{getPrefixCls:l,getPopupContainer:s,direction:c,menu:u}=i.useContext(Ve),d=l(),{prefixCls:f,className:m,style:g,theme:p="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:b,siderCollapsed:y,items:C,children:S,rootClassName:$,mode:x,selectable:E,onClick:O,overflowedIndicatorPopupClassName:w}=e,P=p2(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=Ft(P,["collapsedWidth"]),M=o2(C)||S;(n=a.validator)===null||n===void 0||n.call(a,{mode:x});const I=Yt(function(){var G;O==null||O.apply(void 0,arguments),(G=a.onClick)===null||G===void 0||G.call(a)}),N=a.mode||x,z=E??a.selectable,L=i.useMemo(()=>y!==void 0?y:b,[b,y]),T={horizontal:{motionName:`${d}-slide-up`},inline:zi(d),other:{motionName:`${d}-zoom-big`}},_=l("menu",f||a.prefixCls),B=tn(_),[j,A,V]=v2(_,B,!o),X=K(`${_}-${p}`,u==null?void 0:u.className,m);let te;if(typeof v=="function")te=v;else if(v===null||v===!1)te=null;else if(a.expandIcon===null||a.expandIcon===!1)te=null;else{const G=v??a.expandIcon;te=dn(G,{className:K(`${_}-submenu-expand-icon`,Ln(G)?(r=G.props)===null||r===void 0?void 0:r.className:"")})}const W=i.useMemo(()=>({prefixCls:_,inlineCollapsed:L||!1,direction:c,firstLevel:!0,theme:p,mode:N,disableMenuItemTitleTooltip:h}),[_,L,c,h,p]);return j(i.createElement(pm.Provider,{value:null},i.createElement(ki.Provider,{value:W},i.createElement(Ho,Object.assign({getPopupContainer:s,overflowedIndicator:i.createElement(Xu,null),overflowedIndicatorPopupClassName:K(_,`${_}-${p}`,w),mode:N,selectable:z,onClick:I},R,{inlineCollapsed:L,style:Object.assign(Object.assign({},u==null?void 0:u.style),g),className:X,prefixCls:_,direction:c,defaultMotions:T,expandIcon:te,ref:t,rootClassName:K($,A,a.rootClassName,V,B)}),M))))}),b2=h2,Ba=i.forwardRef((e,t)=>{const n=i.useRef(null),r=i.useContext(xl);return i.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),i.createElement(b2,Object.assign({ref:n},e,r))});Ba.Item=Lh;Ba.SubMenu=jh;Ba.Divider=zh;Ba.ItemGroup=Sl;const Bh=Ba,y2=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},C2=y2,S2=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:l,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:p,colorBgElevated:v}=e;return[{[t]:Object.assign(Object.assign({},_t(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${l}-btn`]:{[`& > ${s}-down, & > ${l}-btn-icon > ${s}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${l}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft,
          &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft,
          &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom,
          &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom,
          &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight,
          &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Su},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft,
          &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft,
          &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top,
          &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top,
          &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight,
          &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:$u},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft,
          &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom,
          &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:xu},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft,
          &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top,
          &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:wu}})},Hu(e,v,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},gr(e)),{[`${n}-item-group-title`]:{padding:`${H(u)} ${H(p)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${H(u)} ${H(p)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},gr(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${H(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${H(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Mr(e,"slide-up"),Mr(e,"slide-down"),Di(e,"move-up"),Di(e,"move-down"),Bo(e,"zoom-big")]]},x2=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},bl({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Fu(e)),$2=zt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=pt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[S2(a),C2(a)]},x2),Uu=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:l,dropdownRender:s,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:f,open:m,onOpenChange:g,visible:p,onVisibleChange:v,mouseEnterDelay:h=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:C="",overlay:S,transitionName:$}=e,{getPopupContainer:x,getPrefixCls:E,direction:O,dropdown:w}=i.useContext(Ve);Lr();const P=i.useMemo(()=>{const Q=E();return $!==void 0?$:C.includes("top")?`${Q}-slide-down`:`${Q}-slide-up`},[E,C,$]),R=i.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:O==="rtl"?"bottomRight":"bottomLeft",[C,O]),M=E("dropdown",r),I=tn(M),[N,z,L]=$2(M,I),[,T]=en(),_=i.Children.only(o),B=dn(_,{className:K(`${M}-trigger`,{[`${M}-rtl`]:O==="rtl"},_.props.className),disabled:l}),j=l?[]:a;let A;j&&j.includes("contextMenu")&&(A=!0);const[V,X]=At(!1,{value:m??p}),te=Yt(Q=>{g==null||g(Q,{source:"trigger"}),v==null||v(Q),X(Q)}),W=K(u,d,z,L,I,w==null?void 0:w.className,{[`${M}-rtl`]:O==="rtl"}),G=mh({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:T.marginXXS,arrowWidth:n?T.sizePopupArrow:0,borderRadius:T.borderRadius}),ne=i.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(g==null||g(!1,{source:"menu"}),X(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),J=()=>{let Q;return t!=null&&t.items?Q=i.createElement(Bh,Object.assign({},t)):typeof S=="function"?Q=S():Q=S,s&&(Q=s(Q)),Q=i.Children.only(typeof Q=="string"?i.createElement("span",null,Q):Q),i.createElement(Dh,{prefixCls:`${M}-menu`,rootClassName:K(L,I),expandIcon:i.createElement("span",{className:`${M}-menu-submenu-arrow`},i.createElement(To,{className:`${M}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ne,validator:ee=>{}},Q)},[oe,Z]=jo("Dropdown",f==null?void 0:f.zIndex);let k=i.createElement(Ch,Object.assign({alignPoint:A},Ft(e,["rootClassName"]),{mouseEnterDelay:h,mouseLeaveDelay:b,visible:V,builtinPlacements:G,arrow:!!n,overlayClassName:W,prefixCls:M,getPopupContainer:c||x,transitionName:P,trigger:j,overlay:J,placement:R,onVisibleChange:te,overlayStyle:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.style),f),{zIndex:oe})}),B);return oe&&(k=i.createElement(fu.Provider,{value:Z},k)),N(k)};function w2(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const E2=kp(Uu,"dropdown",e=>e,w2),O2=e=>i.createElement(E2,Object.assign({},e),i.createElement("span",null));Uu._InternalPanelDoNotUseOrYouWillBeFired=O2;const Yu=Uu,Ah=e=>{let{children:t}=e;const{getPrefixCls:n}=i.useContext(Ve),r=n("breadcrumb");return i.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};Ah.__ANT_BREADCRUMB_SEPARATOR=!0;const Zu=Ah;var I2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function R2(e,t){if(e.title===void 0||e.title===null)return null;const n=Object.keys(t).join("|");return typeof e.title=="object"?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(r,o)=>t[o]||r)}function Fh(e,t,n,r){if(n==null)return null;const{className:o,onClick:a}=t,l=I2(t,["className","onClick"]),s=Object.assign(Object.assign({},zn(l,{data:!0,aria:!0})),{onClick:a});return r!==void 0?i.createElement("a",Object.assign({},s,{className:K(`${e}-link`,o),href:r}),n):i.createElement("span",Object.assign({},s,{className:K(`${e}-link`,o)}),n)}function P2(e,t){return(r,o,a,l,s)=>{if(t)return t(r,o,a,l);const c=R2(r,o);return Fh(e,r,c,s)}}var _c=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hh=e=>{const{prefixCls:t,separator:n="/",children:r,menu:o,overlay:a,dropdownProps:l,href:s}=e,u=(d=>{if(o||a){const f=Object.assign({},l);if(o){const m=o||{},{items:g}=m,p=_c(m,["items"]);f.menu=Object.assign(Object.assign({},p),{items:g==null?void 0:g.map((v,h)=>{var{key:b,title:y,label:C,path:S}=v,$=_c(v,["key","title","label","path"]);let x=C??y;return S&&(x=i.createElement("a",{href:`${s}${S}`},x)),Object.assign(Object.assign({},$),{key:b??h,label:x})})})}else a&&(f.overlay=a);return i.createElement(Yu,Object.assign({placement:"bottom"},f),i.createElement("span",{className:`${t}-overlay-link`},d,i.createElement(ju,null)))}return d})(r);return u!=null?i.createElement(i.Fragment,null,i.createElement("li",null,u),n&&i.createElement(Zu,null,n)):null},kh=e=>{const{prefixCls:t,children:n,href:r}=e,o=_c(e,["prefixCls","children","href"]),{getPrefixCls:a}=i.useContext(Ve),l=a("breadcrumb",t);return i.createElement(Hh,Object.assign({},o,{prefixCls:l}),Fh(l,o,n,r))};kh.__ANT_BREADCRUMB_ITEM=!0;const N2=kh,T2=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},_t(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${H(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},gr(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
          > ${n} + span,
          > ${n} + a
        `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${H(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},M2=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),_2=zt("Breadcrumb",e=>{const t=pt(e,{});return T2(t)},M2);var xm=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function z2(e){const{breadcrumbName:t,children:n}=e,r=xm(e,["breadcrumbName","children"]),o=Object.assign({title:t},r);return n&&(o.menu={items:n.map(a=>{var{breadcrumbName:l}=a,s=xm(a,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:l})})}),o}function L2(e,t){return i.useMemo(()=>e||(t?t.map(z2):null),[e,t])}var j2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const D2=(e,t)=>{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},Qu=e=>{const{prefixCls:t,separator:n="/",style:r,className:o,rootClassName:a,routes:l,items:s,children:c,itemRender:u,params:d={}}=e,f=j2(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:m,direction:g,breadcrumb:p}=i.useContext(Ve);let v;const h=m("breadcrumb",t),[b,y,C]=_2(h),S=L2(s,l),$=P2(h,u);if(S&&S.length>0){const O=[],w=s||l;v=S.map((P,R)=>{const{path:M,key:I,type:N,menu:z,overlay:L,onClick:T,className:_,separator:B,dropdownProps:j}=P,A=D2(d,M);A!==void 0&&O.push(A);const V=I??R;if(N==="separator")return i.createElement(Zu,{key:V},B);const X={},te=R===S.length-1;z?X.menu=z:L&&(X.overlay=L);let{href:W}=P;return O.length&&A!==void 0&&(W=`#/${O.join("/")}`),i.createElement(Hh,Object.assign({key:V},X,zn(P,{data:!0,aria:!0}),{className:_,dropdownProps:j,href:W,separator:te?"":n,onClick:T,prefixCls:h}),$(P,d,w,O,W))})}else if(c){const O=on(c).length;v=on(c).map((w,P)=>{if(!w)return w;const R=P===O-1;return dn(w,{separator:R?"":n,key:P})})}const x=K(h,p==null?void 0:p.className,{[`${h}-rtl`]:g==="rtl"},o,a,y,C),E=Object.assign(Object.assign({},p==null?void 0:p.style),r);return b(i.createElement("nav",Object.assign({className:x,style:E},f),i.createElement("ol",null,v)))};Qu.Item=N2;Qu.Separator=Zu;const I3=Qu,Kh=i.createContext(null),B2=Kh.Provider,Vh=i.createContext(null),A2=Vh.Provider;var F2=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Wh=i.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,a=e.className,l=e.style,s=e.checked,c=e.disabled,u=e.defaultChecked,d=u===void 0?!1:u,f=e.type,m=f===void 0?"checkbox":f,g=e.title,p=e.onChange,v=Qe(e,F2),h=i.useRef(null),b=At(d,{value:s}),y=q(b,2),C=y[0],S=y[1];i.useImperativeHandle(t,function(){return{focus:function(){var O;(O=h.current)===null||O===void 0||O.focus()},blur:function(){var O;(O=h.current)===null||O===void 0||O.blur()},input:h.current}});var $=K(o,a,(n={},F(n,"".concat(o,"-checked"),C),F(n,"".concat(o,"-disabled"),c),n)),x=function(O){c||("checked"in e||S(O.target.checked),p==null||p({target:D(D({},e),{},{type:m,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation()},preventDefault:function(){O.preventDefault()},nativeEvent:O.nativeEvent}))};return i.createElement("span",{className:$,title:g,style:l},i.createElement("input",de({},v,{className:"".concat(o,"-input"),ref:h,onChange:x,disabled:c,checked:!!C,type:m})),i.createElement("span",{className:"".concat(o,"-inner")}))});const H2=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},_t(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},k2=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:l,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:g,dotColorDisabled:p,lineType:v,radioColor:h,radioBgColor:b,calc:y}=e,C=`${t}-inner`,S=4,$=y(o).sub(y(S).mul(2)),x=y(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},_t(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${H(d)} ${v} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},_t(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
        &:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:Object.assign({},Nr(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:y(1).mul(o).div(-2).equal(),marginInlineStart:y(1).mul(o).div(-2).equal(),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${y($).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},K2=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:l,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:g,controlHeightSM:p,paddingXS:v,borderRadius:h,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:C,buttonSolidCheckedColor:S,colorTextDisabled:$,colorBgContainerDisabled:x,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:O,colorPrimary:w,colorPrimaryHover:P,colorPrimaryActive:R,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:I,buttonSolidCheckedActiveBg:N,calc:z}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:H(z(n).sub(z(o).mul(2)).equal()),background:f,border:`${H(o)} ${a} ${l}`,borderBlockStartWidth:z(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:z(o).mul(-1).equal(),insetInlineStart:z(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:l,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${H(o)} ${a} ${l}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:g,fontSize:m,lineHeight:H(z(g).sub(z(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:p,paddingInline:z(v).sub(o).equal(),paddingBlock:0,lineHeight:H(z(p).sub(z(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:w},"&:has(:focus-visible)":Object.assign({},Nr(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:C,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:M,borderColor:M,"&:hover":{color:S,background:I,borderColor:I},"&:active":{color:S,background:N,borderColor:N}},"&-disabled":{color:$,backgroundColor:x,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:x,borderColor:l}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:E,borderColor:l,boxShadow:"none"}}}},V2=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:l,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:g,colorWhite:p}=e,v=4,h=a,b=t?h-v*2:h-(v+o)*2;return{radioSize:h,dotSize:b,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:s,buttonCheckedBg:s,buttonColor:l,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:p,radioBgColor:t?s:f}},Gh=zt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${H(n)} ${t}`,a=pt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[H2(a),k2(a),K2(a)]},V2,{unitless:{radioSize:!0,dotSize:!0}});var W2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const G2=(e,t)=>{var n,r;const o=i.useContext(Kh),a=i.useContext(Vh),{getPrefixCls:l,direction:s,radio:c}=i.useContext(Ve),u=i.useRef(null),d=$n(t,u),{isFormItemInput:f}=i.useContext(jn),m=N=>{var z,L;(z=e.onChange)===null||z===void 0||z.call(e,N),(L=o==null?void 0:o.onChange)===null||L===void 0||L.call(o,N)},{prefixCls:g,className:p,rootClassName:v,children:h,style:b,title:y}=e,C=W2(e,["prefixCls","className","rootClassName","children","style","title"]),S=l("radio",g),$=((o==null?void 0:o.optionType)||a)==="button",x=$?`${S}-button`:S,E=tn(S),[O,w,P]=Gh(S,E),R=Object.assign({},C),M=i.useContext(br);o&&(R.name=o.name,R.onChange=m,R.checked=e.value===o.value,R.disabled=(n=R.disabled)!==null&&n!==void 0?n:o.disabled),R.disabled=(r=R.disabled)!==null&&r!==void 0?r:M;const I=K(`${x}-wrapper`,{[`${x}-wrapper-checked`]:R.checked,[`${x}-wrapper-disabled`]:R.disabled,[`${x}-wrapper-rtl`]:s==="rtl",[`${x}-wrapper-in-form-item`]:f},c==null?void 0:c.className,p,v,w,P,E);return O(i.createElement(ul,{component:"Radio",disabled:R.disabled},i.createElement("label",{className:I,style:Object.assign(Object.assign({},c==null?void 0:c.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},i.createElement(Wh,Object.assign({},R,{className:K(R.className,!$&&cl),type:"radio",prefixCls:x,ref:d})),h!==void 0?i.createElement("span",null,h):null)))},q2=i.forwardRef(G2),Ki=q2,X2=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(Ve),[o,a]=At(e.defaultValue,{value:e.value}),l=N=>{const z=o,L=N.target.value;"value"in e||a(L);const{onChange:T}=e;T&&L!==z&&T(N)},{prefixCls:s,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:m,children:g,size:p,style:v,id:h,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:S}=e,$=n("radio",s),x=`${$}-group`,E=tn($),[O,w,P]=Gh($,E);let R=g;d&&d.length>0&&(R=d.map(N=>typeof N=="string"||typeof N=="number"?i.createElement(Ki,{key:N.toString(),prefixCls:$,disabled:m,value:N,checked:o===N},N):i.createElement(Ki,{key:`radio-group-value-options-${N.value}`,prefixCls:$,disabled:N.disabled||m,value:N.value,checked:o===N.value,title:N.title,style:N.style,id:N.id,required:N.required},N.label)));const M=In(p),I=K(x,`${x}-${f}`,{[`${x}-${M}`]:M,[`${x}-rtl`]:r==="rtl"},c,u,w,P,E);return O(i.createElement("div",Object.assign({},zn(e,{aria:!0,data:!0}),{className:I,style:v,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:S,id:h,ref:t}),i.createElement(B2,{value:{onChange:l,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},R)))}),U2=i.memo(X2);var Y2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Z2=(e,t)=>{const{getPrefixCls:n}=i.useContext(Ve),{prefixCls:r}=e,o=Y2(e,["prefixCls"]),a=n("radio",r);return i.createElement(A2,{value:"button"},i.createElement(Ki,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},Q2=i.forwardRef(Z2),$l=Ki;$l.Button=Q2;$l.Group=U2;$l.__ANT_RADIO=!0;const qh=$l;function Xh(e){return pt(e,{inputAffixPadding:e.paddingXXS})}const Uh=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:l,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:p,controlOutlineWidth:v,controlOutline:h,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:C}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((l-s*c)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:p,hoverBorderColor:g,activeShadow:`0 0 0 ${v}px ${h}`,errorActiveShadow:`0 0 0 ${v}px ${b}`,warningActiveShadow:`0 0 0 ${v}px ${y}`,hoverBg:C,activeBg:C,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},J2=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),wl=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},J2(pt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Ju=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),$m=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ju(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),eN=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ju(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},wl(e))}),$m(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),$m(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),wm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),tN=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},wm(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),wm(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},wl(e))}})}),nN=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),Yh=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Em=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Yh(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),rN=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yh(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},wl(e))}),Em(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Em(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Om=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),oN=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Om(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Om(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),aN=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Zh=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${H(t)} ${H(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},ed=e=>({padding:`${H(e.paddingBlockSM)} ${H(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),td=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${H(e.paddingBlock)} ${H(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},aN(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Zh(e)),"&-sm":Object.assign({},ed(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),iN=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Zh(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ed(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${H(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${H(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${H(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${H(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${H(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Pr()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},lN=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=16,l=o(n).sub(o(r).mul(2)).sub(a).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_t(e)),td(e)),eN(e)),rN(e)),nN(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},sN=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${H(e.inputAffixPadding)}`}}}},cN=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:l,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},td(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),sN(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:l}}})}},uN=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},_t(e)),iN(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},tN(e)),oN(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},dN=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
        > ${t},
        ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},fN=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},mN=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},nd=zt("Input",e=>{const t=pt(e,Xh(e));return[lN(t),fN(t),cN(t),uN(t),dN(t),mN(t),vu(t)]},Uh),gN=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,l=K({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=K({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),c=i.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return i.createElement("span",{className:K(t,l,s,n),style:Object.assign(Object.assign({},c),r)})},El=gN,vN=new bt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ol=e=>({height:e,lineHeight:H(e)}),xo=e=>Object.assign({width:e},Ol(e)),pN=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:vN,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),fs=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Ol(e)),hN=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},xo(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},xo(o)),[`${t}${t}-sm`]:Object.assign({},xo(a))}},bN=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:l,calc:s}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},fs(t,s)),[`${r}-lg`]:Object.assign({},fs(o,s)),[`${r}-sm`]:Object.assign({},fs(a,s))}},Im=e=>Object.assign({width:e},Ol(e)),yN=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},Im(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Im(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ms=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},gs=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Ol(e)),CN=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:l,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},gs(r,s))},ms(e,r,n)),{[`${n}-lg`]:Object.assign({},gs(o,s))}),ms(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},gs(a,s))}),ms(e,a,`${n}-sm`))},SN=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:l,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:g,borderRadius:p,titleHeight:v,blockRadius:h,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:C}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},xo(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},xo(u)),[`${n}-sm`]:Object.assign({},xo(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:v,background:f,borderRadius:h,[`+ ${o}`]:{marginBlockStart:d}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:h,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:g,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},CN(e)),hN(e)),bN(e)),yN(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${l}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${o} > li,
        ${n},
        ${a},
        ${l},
        ${s}
      `]:Object.assign({},pN(e))}}},xN=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},ko=zt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=pt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[SN(r)]},xN,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),$N=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:l="default"}=e,{getPrefixCls:s}=i.useContext(Ve),c=s("skeleton",t),[u,d,f]=ko(c),m=Ft(e,["prefixCls","className"]),g=K(c,`${c}-element`,{[`${c}-active`]:o},n,r,d,f);return u(i.createElement("div",{className:g},i.createElement(El,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:l},m))))},wN=$N,EN=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:l="default"}=e,{getPrefixCls:s}=i.useContext(Ve),c=s("skeleton",t),[u,d,f]=ko(c),m=Ft(e,["prefixCls"]),g=K(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(i.createElement("div",{className:g},i.createElement(El,Object.assign({prefixCls:`${c}-button`,size:l},m))))},ON=EN,IN="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",RN=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:l}=i.useContext(Ve),s=l("skeleton",t),[c,u,d]=ko(s),f=K(s,`${s}-element`,{[`${s}-active`]:a},n,r,u,d);return c(i.createElement("div",{className:f},i.createElement("div",{className:K(`${s}-image`,n),style:o},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},i.createElement("path",{d:IN,className:`${s}-image-path`})))))},PN=RN,NN=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:l="default"}=e,{getPrefixCls:s}=i.useContext(Ve),c=s("skeleton",t),[u,d,f]=ko(c),m=Ft(e,["prefixCls"]),g=K(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(i.createElement("div",{className:g},i.createElement(El,Object.assign({prefixCls:`${c}-input`,size:l},m))))},TN=NN;var MN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const _N=MN;var zN=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:_N}))};const LN=i.forwardRef(zN),jN=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:l}=e,{getPrefixCls:s}=i.useContext(Ve),c=s("skeleton",t),[u,d,f]=ko(c),m=K(c,`${c}-element`,{[`${c}-active`]:a},d,n,r,f),g=l??i.createElement(LN,null);return u(i.createElement("div",{className:m},i.createElement("div",{className:K(`${c}-image`,n),style:o},g)))},DN=jN,BN=e=>{const t=s=>{const{width:c,rows:u=2}=e;if(Array.isArray(c))return c[s];if(u-1===s)return c},{prefixCls:n,className:r,style:o,rows:a}=e,l=ve(Array(a)).map((s,c)=>i.createElement("li",{key:c,style:{width:t(c)}}));return i.createElement("ul",{className:K(n,r),style:o},l)},AN=BN,FN=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return i.createElement("h3",{className:K(t,n),style:Object.assign({width:r},o)})},HN=FN;function vs(e){return e&&typeof e=="object"?e:{}}function kN(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function KN(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function VN(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ko=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:l,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:g,skeleton:p}=i.useContext(Ve),v=m("skeleton",t),[h,b,y]=ko(v);if(n||!("loading"in e)){const C=!!s,S=!!c,$=!!u;let x;if(C){const w=Object.assign(Object.assign({prefixCls:`${v}-avatar`},kN(S,$)),vs(s));x=i.createElement("div",{className:`${v}-header`},i.createElement(El,Object.assign({},w)))}let E;if(S||$){let w;if(S){const R=Object.assign(Object.assign({prefixCls:`${v}-title`},KN(C,$)),vs(c));w=i.createElement(HN,Object.assign({},R))}let P;if($){const R=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},VN(C,S)),vs(u));P=i.createElement(AN,Object.assign({},R))}E=i.createElement("div",{className:`${v}-content`},w,P)}const O=K(v,{[`${v}-with-avatar`]:C,[`${v}-active`]:d,[`${v}-rtl`]:g==="rtl",[`${v}-round`]:f},p==null?void 0:p.className,r,o,b,y);return h(i.createElement("div",{className:O,style:Object.assign(Object.assign({},p==null?void 0:p.style),a)},x,E))}return typeof l<"u"?l:null};Ko.Button=ON;Ko.Avatar=wN;Ko.Input=TN;Ko.Image=PN;Ko.Node=DN;const WN=Ko;var GN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const qN=GN;var XN=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:qN}))};const UN=i.forwardRef(XN),Il=i.createContext(null);var YN=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,l=a===void 0?{}:a,s=l.size,c=l.align,u=c===void 0?"center":c,d=i.useState(),f=q(d,2),m=f[0],g=f[1],p=i.useRef(),v=ae.useCallback(function(b){return typeof s=="function"?s(b):typeof s=="number"?s:b},[s]);function h(){Et.cancel(p.current)}return i.useEffect(function(){var b={};if(n)if(r){b.width=v(n.width);var y=o?"right":"left";u==="start"&&(b[y]=n[y]),u==="center"&&(b[y]=n[y]+n.width/2,b.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(b[y]=n[y]+n.width,b.transform="translateX(-100%)")}else b.height=v(n.height),u==="start"&&(b.top=n.top),u==="center"&&(b.top=n.top+n.height/2,b.transform="translateY(-50%)"),u==="end"&&(b.top=n.top+n.height,b.transform="translateY(-100%)");return h(),p.current=Et(function(){g(b)}),h},[n,r,o,u,v]),{style:m}},Rm={width:0,height:0,left:0,top:0};function ZN(e,t,n){return i.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Rm,l=a.left+a.width,s=0;s<e.length;s+=1){var c=e[s].key,u=t.get(c);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||Rm}var f=o.get(c)||D({},u);f.right=l-f.left-f.width,o.set(c,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Pm(e,t){var n=i.useRef(e),r=i.useState({}),o=q(r,2),a=o[1];function l(s){var c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,a({})}return[n.current,l]}var QN=.1,Nm=.01,Si=20,Tm=Math.pow(.995,Si);function JN(e,t){var n=i.useState(),r=q(n,2),o=r[0],a=r[1],l=i.useState(0),s=q(l,2),c=s[0],u=s[1],d=i.useState(0),f=q(d,2),m=f[0],g=f[1],p=i.useState(),v=q(p,2),h=v[0],b=v[1],y=i.useRef();function C(w){var P=w.touches[0],R=P.screenX,M=P.screenY;a({x:R,y:M}),window.clearInterval(y.current)}function S(w){if(o){w.preventDefault();var P=w.touches[0],R=P.screenX,M=P.screenY;a({x:R,y:M});var I=R-o.x,N=M-o.y;t(I,N);var z=Date.now();u(z),g(z-c),b({x:I,y:N})}}function $(){if(o&&(a(null),b(null),h)){var w=h.x/m,P=h.y/m,R=Math.abs(w),M=Math.abs(P);if(Math.max(R,M)<QN)return;var I=w,N=P;y.current=window.setInterval(function(){if(Math.abs(I)<Nm&&Math.abs(N)<Nm){window.clearInterval(y.current);return}I*=Tm,N*=Tm,t(I*Si,N*Si)},Si)}}var x=i.useRef();function E(w){var P=w.deltaX,R=w.deltaY,M=0,I=Math.abs(P),N=Math.abs(R);I===N?M=x.current==="x"?P:R:I>N?(M=P,x.current="x"):(M=R,x.current="y"),t(-M,-M)&&w.preventDefault()}var O=i.useRef(null);O.current={onTouchStart:C,onTouchMove:S,onTouchEnd:$,onWheel:E},i.useEffect(function(){function w(I){O.current.onTouchStart(I)}function P(I){O.current.onTouchMove(I)}function R(I){O.current.onTouchEnd(I)}function M(I){O.current.onWheel(I)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),e.current.addEventListener("touchstart",w,{passive:!1}),e.current.addEventListener("wheel",M),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",R)}},[])}function Qh(e){var t=i.useState(0),n=q(t,2),r=n[0],o=n[1],a=i.useRef(0),l=i.useRef();return l.current=e,Ds(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function eT(e){var t=i.useRef([]),n=i.useState({}),r=q(n,2),o=r[1],a=i.useRef(typeof e=="function"?e():e),l=Qh(function(){var c=a.current;t.current.forEach(function(u){c=u(c)}),t.current=[],a.current=c,o({})});function s(c){t.current.push(c),l()}return[a.current,s]}var Mm={width:0,height:0,left:0,top:0,right:0};function tT(e,t,n,r,o,a,l){var s=l.tabs,c=l.tabPosition,u=l.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),i.useMemo(function(){if(!s.length)return[0,0];for(var g=s.length,p=g,v=0;v<g;v+=1){var h=e.get(s[v].key)||Mm;if(h[f]+h[d]>m+t){p=v-1;break}}for(var b=0,y=g-1;y>=0;y-=1){var C=e.get(s[y].key)||Mm;if(C[f]<m){b=y+1;break}}return b>=p?[0,0]:[b,p]},[e,t,r,o,a,m,c,s.map(function(g){return g.key}).join("_"),u])}function _m(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var nT="TABS_DQ";function Jh(e){return String(e).replace(/"/g,nT)}function eb(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var tb=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:i.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),zm=i.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,l={};return at(o)==="object"&&!i.isValidElement(o)?l=o:l.right=o,n==="right"&&(a=l.right),n==="left"&&(a=l.left),a?i.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),rT=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,l=e.mobile,s=e.moreIcon,c=s===void 0?"More":s,u=e.moreTransitionName,d=e.style,f=e.className,m=e.editable,g=e.tabBarGutter,p=e.rtl,v=e.removeAriaLabel,h=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,C=i.useState(!1),S=q(C,2),$=S[0],x=S[1],E=i.useState(null),O=q(E,2),w=O[0],P=O[1],R="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),I=w!==null?"".concat(R,"-").concat(w):null,N=a==null?void 0:a.dropdownAriaLabel;function z(V,X){V.preventDefault(),V.stopPropagation(),m.onEdit("remove",{key:X,event:V})}var L=i.createElement(Ho,{onClick:function(X){var te=X.key,W=X.domEvent;h(te,W),x(!1)},prefixCls:"".concat(M,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[w],"aria-label":N!==void 0?N:"expanded dropdown"},o.map(function(V){var X=V.closable,te=V.disabled,W=V.closeIcon,G=V.key,ne=V.label,J=eb(X,W,m,te);return i.createElement(Da,{key:G,id:"".concat(R,"-").concat(G),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(G),disabled:te},i.createElement("span",null,ne),J&&i.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(Z){Z.stopPropagation(),z(Z,G)}},W||m.removeIcon||"×"))}));function T(V){for(var X=o.filter(function(J){return!J.disabled}),te=X.findIndex(function(J){return J.key===w})||0,W=X.length,G=0;G<W;G+=1){te=(te+V+W)%W;var ne=X[te];if(!ne.disabled){P(ne.key);return}}}function _(V){var X=V.which;if(!$){[fe.DOWN,fe.SPACE,fe.ENTER].includes(X)&&(x(!0),V.preventDefault());return}switch(X){case fe.UP:T(-1),V.preventDefault();break;case fe.DOWN:T(1),V.preventDefault();break;case fe.ESC:x(!1);break;case fe.SPACE:case fe.ENTER:w!==null&&h(w,V);break}}i.useEffect(function(){var V=document.getElementById(I);V&&V.scrollIntoView&&V.scrollIntoView(!1)},[w]),i.useEffect(function(){$||P(null)},[$]);var B=F({},p?"marginRight":"marginLeft",g);o.length||(B.visibility="hidden",B.order=1);var j=K(F({},"".concat(M,"-rtl"),p)),A=l?null:i.createElement(Ch,{prefixCls:M,overlay:L,trigger:["hover"],visible:o.length?$:!1,transitionName:u,onVisibleChange:x,overlayClassName:K(j,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},i.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:B,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":R,id:"".concat(r,"-more"),"aria-expanded":$,onKeyDown:_},c));return i.createElement("div",{className:K("".concat(n,"-nav-operations"),f),style:d,ref:t},A,i.createElement(tb,{prefixCls:n,locale:a,editable:m}))});const oT=i.memo(rT,function(e,t){return t.tabMoving});var aT=function(t){var n=t.prefixCls,r=t.id,o=t.active,a=t.tab,l=a.key,s=a.label,c=a.disabled,u=a.closeIcon,d=a.icon,f=t.closable,m=t.renderWrapper,g=t.removeAriaLabel,p=t.editable,v=t.onClick,h=t.onFocus,b=t.style,y="".concat(n,"-tab"),C=eb(f,u,p,c);function S(O){c||v(O)}function $(O){O.preventDefault(),O.stopPropagation(),p.onEdit("remove",{key:l,event:O})}var x=i.useMemo(function(){return d&&typeof s=="string"?i.createElement("span",null,s):s},[s,d]),E=i.createElement("div",{key:l,"data-node-key":Jh(l),className:K(y,F(F(F({},"".concat(y,"-with-remove"),C),"".concat(y,"-active"),o),"".concat(y,"-disabled"),c)),style:b,onClick:S},i.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(l),className:"".concat(y,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(l),"aria-disabled":c,tabIndex:c?null:0,onClick:function(w){w.stopPropagation(),S(w)},onKeyDown:function(w){[fe.SPACE,fe.ENTER].includes(w.which)&&(w.preventDefault(),S(w))},onFocus:h},d&&i.createElement("span",{className:"".concat(y,"-icon")},d),s&&x),C&&i.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(w){w.stopPropagation(),$(w)}},u||p.removeIcon||"×"));return m?m(E):E},iT=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,l=t.offsetLeft,s=t.getBoundingClientRect(),c=s.width,u=s.height,d=s.x,f=s.y;return Math.abs(c-r)<1?[c,u,d-n.x,f-n.y]:[r,o,l,a]},mo=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,l=a===void 0?0:a;if(t.current){var s=t.current.getBoundingClientRect(),c=s.width,u=s.height;if(Math.abs(c-o)<1)return[c,u]}return[o,l]},li=function(t,n){return t[n?0:1]},Lm=i.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,a=e.animated,l=e.activeKey,s=e.rtl,c=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,m=e.tabBarGutter,g=e.children,p=e.onTabClick,v=e.onTabScroll,h=e.indicator,b=i.useContext(Il),y=b.prefixCls,C=b.tabs,S=i.useRef(null),$=i.useRef(null),x=i.useRef(null),E=i.useRef(null),O=i.useRef(null),w=i.useRef(null),P=i.useRef(null),R=f==="top"||f==="bottom",M=Pm(0,function(Pe,Me){R&&v&&v({direction:Pe>Me?"left":"right"})}),I=q(M,2),N=I[0],z=I[1],L=Pm(0,function(Pe,Me){!R&&v&&v({direction:Pe>Me?"top":"bottom"})}),T=q(L,2),_=T[0],B=T[1],j=i.useState([0,0]),A=q(j,2),V=A[0],X=A[1],te=i.useState([0,0]),W=q(te,2),G=W[0],ne=W[1],J=i.useState([0,0]),oe=q(J,2),Z=oe[0],k=oe[1],Q=i.useState([0,0]),ee=q(Q,2),Y=ee[0],U=ee[1],ie=eT(new Map),se=q(ie,2),ue=se[0],re=se[1],le=ZN(C,ue,G[0]),ce=li(V,R),pe=li(G,R),me=li(Z,R),be=li(Y,R),ye=ce<pe+me,xe=ye?ce-be:ce-me,qe="".concat(y,"-nav-operations-hidden"),Ie=0,Ce=0;R&&s?(Ie=0,Ce=Math.max(0,pe-xe)):(Ie=Math.min(0,xe-pe),Ce=0);function $e(Pe){return Pe<Ie?Ie:Pe>Ce?Ce:Pe}var he=i.useRef(null),We=i.useState(),_e=q(We,2),Je=_e[0],Re=_e[1];function je(){Re(Date.now())}function ke(){he.current&&clearTimeout(he.current)}JN(E,function(Pe,Me){function ct(Oe,He){Oe(function(et){var ut=$e(et+He);return ut})}return ye?(R?ct(z,Pe):ct(B,Me),ke(),je(),!0):!1}),i.useEffect(function(){return ke(),Je&&(he.current=setTimeout(function(){Re(0)},100)),ke},[Je]);var Ge=tT(le,xe,R?N:_,pe,me,be,D(D({},e),{},{tabs:C})),ot=q(Ge,2),ge=ot[0],Ae=ot[1],Xe=Yt(function(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,Me=le.get(Pe)||{width:0,height:0,left:0,right:0,top:0};if(R){var ct=N;s?Me.right<N?ct=Me.right:Me.right+Me.width>N+xe&&(ct=Me.right+Me.width-xe):Me.left<-N?ct=-Me.left:Me.left+Me.width>-N+xe&&(ct=-(Me.left+Me.width-xe)),B(0),z($e(ct))}else{var Oe=_;Me.top<-_?Oe=-Me.top:Me.top+Me.height>-_+xe&&(Oe=-(Me.top+Me.height-xe)),z(0),B($e(Oe))}}),it={};f==="top"||f==="bottom"?it[s?"marginRight":"marginLeft"]=m:it.marginTop=m;var Ke=C.map(function(Pe,Me){var ct=Pe.key;return i.createElement(aT,{id:o,prefixCls:y,key:ct,tab:Pe,style:Me===0?void 0:it,closable:Pe.closable,editable:u,active:ct===l,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(He){p(ct,He)},onFocus:function(){Xe(ct),je(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),we=function(){return re(function(){var Me,ct=new Map,Oe=(Me=O.current)===null||Me===void 0?void 0:Me.getBoundingClientRect();return C.forEach(function(He){var et,ut=He.key,Pt=(et=O.current)===null||et===void 0?void 0:et.querySelector('[data-node-key="'.concat(Jh(ut),'"]'));if(Pt){var Ot=iT(Pt,Oe),Ht=q(Ot,4),Lt=Ht[0],Zt=Ht[1],qt=Ht[2],jt=Ht[3];ct.set(ut,{width:Lt,height:Zt,left:qt,top:jt})}}),ct})};i.useEffect(function(){we()},[C.map(function(Pe){return Pe.key}).join("_")]);var De=Qh(function(){var Pe=mo(S),Me=mo($),ct=mo(x);X([Pe[0]-Me[0]-ct[0],Pe[1]-Me[1]-ct[1]]);var Oe=mo(P);k(Oe);var He=mo(w);U(He);var et=mo(O);ne([et[0]-Oe[0],et[1]-Oe[1]]),we()}),Ne=C.slice(0,ge),Fe=C.slice(Ae+1),Be=[].concat(ve(Ne),ve(Fe)),ze=le.get(l),Ee=YN({activeTabOffset:ze,horizontal:R,indicator:h,rtl:s}),Se=Ee.style;i.useEffect(function(){Xe()},[l,Ie,Ce,_m(ze),_m(le),R]),i.useEffect(function(){De()},[s]);var Ze=!!Be.length,lt="".concat(y,"-nav-wrap"),rt,Te,Le,dt;return R?s?(Te=N>0,rt=N!==Ce):(rt=N<0,Te=N!==Ie):(Le=_<0,dt=_!==Ie),i.createElement(hn,{onResize:De},i.createElement("div",{ref:zr(t,S),role:"tablist",className:K("".concat(y,"-nav"),n),style:r,onKeyDown:function(){je()}},i.createElement(zm,{ref:$,position:"left",extra:c,prefixCls:y}),i.createElement(hn,{onResize:De},i.createElement("div",{className:K(lt,F(F(F(F({},"".concat(lt,"-ping-left"),rt),"".concat(lt,"-ping-right"),Te),"".concat(lt,"-ping-top"),Le),"".concat(lt,"-ping-bottom"),dt)),ref:E},i.createElement(hn,{onResize:De},i.createElement("div",{ref:O,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(N,"px, ").concat(_,"px)"),transition:Je?"none":void 0}},Ke,i.createElement(tb,{ref:P,prefixCls:y,locale:d,editable:u,style:D(D({},Ke.length===0?void 0:it),{},{visibility:Ze?"hidden":null})}),i.createElement("div",{className:K("".concat(y,"-ink-bar"),F({},"".concat(y,"-ink-bar-animated"),a.inkBar)),style:Se}))))),i.createElement(oT,de({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:w,prefixCls:y,tabs:Be,className:!Ze&&qe,tabMoving:!!Je})),i.createElement(zm,{ref:x,position:"right",extra:c,prefixCls:y})))}),nb=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,l=e.active,s=e.tabKey,c=e.children;return i.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!l,style:o,className:K(n,l&&"".concat(n,"-active"),r),ref:t},c)}),lT=["renderTabBar"],sT=["label","key"],cT=function(t){var n=t.renderTabBar,r=Qe(t,lT),o=i.useContext(Il),a=o.tabs;if(n){var l=D(D({},r),{},{panes:a.map(function(s){var c=s.label,u=s.key,d=Qe(s,sT);return i.createElement(nb,de({tab:c,key:u,tabKey:u},d))})});return n(l,Lm)}return i.createElement(Lm,r)},uT=["key","forceRender","style","className","destroyInactiveTabPane"],dT=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,l=t.destroyInactiveTabPane,s=i.useContext(Il),c=s.prefixCls,u=s.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return i.createElement("div",{className:K("".concat(c,"-content-holder"))},i.createElement("div",{className:K("".concat(c,"-content"),"".concat(c,"-content-").concat(a),F({},"".concat(c,"-content-animated"),d))},u.map(function(m){var g=m.key,p=m.forceRender,v=m.style,h=m.className,b=m.destroyInactiveTabPane,y=Qe(m,uT),C=g===r;return i.createElement(Gn,de({key:g,visible:C,forceRender:p,removeOnLeave:!!(l||b),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,$){var x=S.style,E=S.className;return i.createElement(nb,de({},y,{prefixCls:f,id:n,tabKey:g,animated:d,active:C,style:D(D({},v),x),className:K(h,E),ref:$}))})})))};function fT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=D({inkBar:!0},at(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var mT=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],jm=0,gT=i.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,l=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,g=m===void 0?"top":m,p=e.tabBarGutter,v=e.tabBarStyle,h=e.tabBarExtraContent,b=e.locale,y=e.moreIcon,C=e.moreTransitionName,S=e.destroyInactiveTabPane,$=e.renderTabBar,x=e.onChange,E=e.onTabClick,O=e.onTabScroll,w=e.getPopupContainer,P=e.popupClassName,R=e.indicator,M=Qe(e,mT),I=i.useMemo(function(){return(l||[]).filter(function(U){return U&&at(U)==="object"&&"key"in U})},[l]),N=s==="rtl",z=fT(f),L=i.useState(!1),T=q(L,2),_=T[0],B=T[1];i.useEffect(function(){B(Ru())},[]);var j=At(function(){var U;return(U=I[0])===null||U===void 0?void 0:U.key},{value:c,defaultValue:u}),A=q(j,2),V=A[0],X=A[1],te=i.useState(function(){return I.findIndex(function(U){return U.key===V})}),W=q(te,2),G=W[0],ne=W[1];i.useEffect(function(){var U=I.findIndex(function(se){return se.key===V});if(U===-1){var ie;U=Math.max(0,Math.min(G,I.length-1)),X((ie=I[U])===null||ie===void 0?void 0:ie.key)}ne(U)},[I.map(function(U){return U.key}).join("_"),V,G]);var J=At(null,{value:n}),oe=q(J,2),Z=oe[0],k=oe[1];i.useEffect(function(){n||(k("rc-tabs-".concat(jm)),jm+=1)},[]);function Q(U,ie){E==null||E(U,ie);var se=U!==V;X(U),se&&(x==null||x(U))}var ee={id:Z,activeKey:V,animated:z,tabPosition:g,rtl:N,mobile:_},Y=D(D({},ee),{},{editable:d,locale:b,moreIcon:y,moreTransitionName:C,tabBarGutter:p,onTabClick:Q,onTabScroll:O,extra:h,style:v,panes:null,getPopupContainer:w,popupClassName:P,indicator:R});return i.createElement(Il.Provider,{value:{tabs:I,prefixCls:o}},i.createElement("div",de({ref:t,id:n,className:K(o,"".concat(o,"-").concat(g),F(F(F({},"".concat(o,"-mobile"),_),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),N),a)},M),i.createElement(cT,de({},Y,{renderTabBar:$})),i.createElement(dT,de({destroyInactiveTabPane:S},ee,{animated:z}))))});const vT={motionAppear:!1,motionEnter:!0,motionLeave:!0};function pT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},vT),{motionName:Tr(e,"switch")})),n}var hT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function bT(e){return e.filter(t=>t)}function yT(e,t){if(e)return e;const n=on(t).map(r=>{if(i.isValidElement(r)){const{key:o,props:a}=r,l=a||{},{tab:s}=l,c=hT(l,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:s})}return null});return bT(n)}const CT=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Mr(e,"slide-up"),Mr(e,"slide-down")]]},ST=CT,xT=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${H(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:H(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:H(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${H(e.borderRadiusLG)} 0 0 ${H(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},$T=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},_t(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${H(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},mr),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${H(e.paddingXXS)} ${H(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},wT=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:l,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${H(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:H(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ET=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${H(e.borderRadius)} ${H(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${H(e.borderRadius)} ${H(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${H(e.borderRadius)} ${H(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${H(e.borderRadius)} 0 0 ${H(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},OT=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:l,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},gr(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},IT=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:H(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:H(e.marginXS)},marginLeft:{_skip_check_:!0,value:H(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},RT=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:l,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},_t(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${H(e.paddingXS)}`,background:"transparent",border:`${H(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:l}},gr(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),OT(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},PT=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},NT=zt("Tabs",e=>{const t=pt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${H(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${H(e.horizontalItemGutter)}`});return[ET(t),IT(t),wT(t),$T(t),xT(t),RT(t),ST(t)]},PT),TT=()=>null,MT=TT;var _T=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rb=e=>{var t,n,r,o,a,l;const{type:s,className:c,rootClassName:u,size:d,onEdit:f,hideAdd:m,centered:g,addIcon:p,popupClassName:v,children:h,items:b,animated:y,style:C,indicatorSize:S,indicator:$}=e,x=_T(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:E,moreIcon:O=i.createElement(Xu,null)}=x,{direction:w,tabs:P,getPrefixCls:R,getPopupContainer:M}=i.useContext(Ve),I=R("tabs",E),N=tn(I),[z,L,T]=NT(I,N);let _;s==="editable-card"&&(_={onEdit:(W,G)=>{let{key:ne,event:J}=G;f==null||f(W==="add"?J:ne,W)},removeIcon:i.createElement(ll,null),addIcon:p||i.createElement(UN,null),showAdd:m!==!0});const B=R(),j=In(d),A=yT(b,h),V=pT(I,y),X=Object.assign(Object.assign({},P==null?void 0:P.style),C),te={align:(t=$==null?void 0:$.align)!==null&&t!==void 0?t:(n=P==null?void 0:P.indicator)===null||n===void 0?void 0:n.align,size:(l=(o=(r=$==null?void 0:$.size)!==null&&r!==void 0?r:S)!==null&&o!==void 0?o:(a=P==null?void 0:P.indicator)===null||a===void 0?void 0:a.size)!==null&&l!==void 0?l:P==null?void 0:P.indicatorSize};return z(i.createElement(gT,Object.assign({direction:w,getPopupContainer:M,moreTransitionName:`${B}-slide-up`},x,{items:A,className:K({[`${I}-${j}`]:j,[`${I}-card`]:["card","editable-card"].includes(s),[`${I}-editable-card`]:s==="editable-card",[`${I}-centered`]:g},P==null?void 0:P.className,c,u,L,T,N),popupClassName:K(v,L,T,N),style:X,editable:_,moreIcon:O,prefixCls:I,animated:V,indicator:te})))};rb.TabPane=MT;const zT=rb;var LT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const jT=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=LT(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=i.useContext(Ve),l=a("card",t),s=K(`${l}-grid`,n,{[`${l}-grid-hoverable`]:r});return i.createElement("div",Object.assign({},o,{className:s}))},ob=jT,DT=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${H(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`},Pr()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},mr),{[`
          > ${n}-typography,
          > ${n}-typography-edit-content
        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},BT=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
      ${H(o)} 0 0 0 ${n},
      0 ${H(o)} 0 0 ${n},
      ${H(o)} ${H(o)} 0 0 ${n},
      ${H(o)} 0 0 0 ${n} inset,
      0 ${H(o)} 0 0 ${n} inset;
    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},AT=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${H(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},Pr()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:H(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:H(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${a}`}}})},FT=e=>Object.assign(Object.assign({margin:`${H(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Pr()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},mr),"&-description":{color:e.colorTextDescription}}),HT=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${H(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${H(e.padding)} ${H(n)}`}}},kT=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},KT=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:a,boxShadowTertiary:l,cardPaddingBase:s,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},_t(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:l},[`${n}-head`]:DT(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:s,borderRadius:` 0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},Pr()),[`${n}-grid`]:BT(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:AT(e),[`${n}-meta`]:FT(e)}),[`${n}-bordered`]:{border:`${H(e.lineWidth)} ${e.lineType} ${a}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:HT(e),[`${n}-loading`]:kT(e),[`${n}-rtl`]:{direction:"rtl"}}},VT=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${H(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},WT=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),GT=zt("Card",e=>{const t=pt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[KT(t),VT(t)]},WT);var Dm=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qT=e=>{const{prefixCls:t,actions:n=[]}=e;return i.createElement("ul",{className:`${t}-actions`},n.map((r,o)=>{const a=`action-${o}`;return i.createElement("li",{style:{width:`${100/n.length}%`},key:a},i.createElement("span",null,r))}))},XT=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,extra:l,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f=!0,size:m,type:g,cover:p,actions:v,tabList:h,children:b,activeTabKey:y,defaultActiveTabKey:C,tabBarExtraContent:S,hoverable:$,tabProps:x={}}=e,E=Dm(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:O,direction:w,card:P}=i.useContext(Ve),R=Z=>{var k;(k=e.onTabChange)===null||k===void 0||k.call(e,Z)},M=i.useMemo(()=>{let Z=!1;return i.Children.forEach(b,k=>{k&&k.type&&k.type===ob&&(Z=!0)}),Z},[b]),I=O("card",n),[N,z,L]=GT(I),T=i.createElement(WN,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),_=y!==void 0,B=Object.assign(Object.assign({},x),{[_?"activeKey":"defaultActiveKey"]:_?y:C,tabBarExtraContent:S});let j;const A=In(m),V=!A||A==="default"?"large":A,X=h?i.createElement(zT,Object.assign({size:V},B,{className:`${I}-head-tabs`,onChange:R,items:h.map(Z=>{var{tab:k}=Z,Q=Dm(Z,["tab"]);return Object.assign({label:k},Q)})})):null;(u||l||X)&&(j=i.createElement("div",{className:`${I}-head`,style:s},i.createElement("div",{className:`${I}-head-wrapper`},u&&i.createElement("div",{className:`${I}-head-title`},u),l&&i.createElement("div",{className:`${I}-extra`},l)),X));const te=p?i.createElement("div",{className:`${I}-cover`},p):null,W=i.createElement("div",{className:`${I}-body`,style:c},d?T:b),G=v&&v.length?i.createElement(qT,{prefixCls:I,actions:v}):null,ne=Ft(E,["onTabChange"]),J=K(I,P==null?void 0:P.className,{[`${I}-loading`]:d,[`${I}-bordered`]:f,[`${I}-hoverable`]:$,[`${I}-contain-grid`]:M,[`${I}-contain-tabs`]:h&&h.length,[`${I}-${A}`]:A,[`${I}-type-${g}`]:!!g,[`${I}-rtl`]:w==="rtl"},r,o,z,L),oe=Object.assign(Object.assign({},P==null?void 0:P.style),a);return N(i.createElement("div",Object.assign({ref:t},ne,{className:J,style:oe}),j,te,W,G))}),UT=XT;var YT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZT=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,l=YT(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=i.useContext(Ve),c=s("card",t),u=K(`${c}-meta`,n),d=r?i.createElement("div",{className:`${c}-meta-avatar`},r):null,f=o?i.createElement("div",{className:`${c}-meta-title`},o):null,m=a?i.createElement("div",{className:`${c}-meta-description`},a):null,g=f||m?i.createElement("div",{className:`${c}-meta-detail`},f,m):null;return i.createElement("div",Object.assign({},l,{className:u}),d,g)},QT=ZT,rd=UT;rd.Grid=ob;rd.Meta=QT;const R3=rd;function JT(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,l=r.noLeading,s=l===void 0?!1:l,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function g(){d&&clearTimeout(d)}function p(h){var b=h||{},y=b.upcomingOnly,C=y===void 0?!1:y;g(),f=!C}function v(){for(var h=arguments.length,b=new Array(h),y=0;y<h;y++)b[y]=arguments[y];var C=this,S=Date.now()-m;if(f)return;function $(){m=Date.now(),t.apply(C,b)}function x(){d=void 0}!s&&u&&!d&&$(),g(),u===void 0&&S>e?s?(m=Date.now(),a||(d=setTimeout(u?x:$,e))):$():a!==!0&&(d=setTimeout(u?x:$,u===void 0?e-S:e))}return v.cancel=p,v}function eM(e,t,n){var r=n||{},o=r.atBegin,a=o===void 0?!1:o;return JT(e,t,{debounceMode:a!==!1})}function Mn(e,t){return e[t]}var tM=["children"];function ab(e,t){return"".concat(e,"-").concat(t)}function nM(e){return e&&e.type&&e.type.isTreeNode}function Aa(e,t){return e??t}function Mo(e){var t=e||{},n=t.title,r=t._title,o=t.key,a=t.children,l=n||"title";return{title:l,_title:r||[l],key:o||"key",children:a||"children"}}function ib(e){function t(n){var r=on(n);return r.map(function(o){if(!nM(o))return Vt(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,l=o.props,s=l.children,c=Qe(l,tM),u=D({key:a},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function ps(e,t,n){var r=Mo(n),o=r._title,a=r.key,l=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,g){for(var p=ab(f?f.pos:"0",g),v=Aa(m[a],p),h,b=0;b<o.length;b+=1){var y=o[b];if(m[y]!==void 0){h=m[y];break}}var C=D(D({},Ft(m,[].concat(ve(o),[a,l]))),{},{title:h,key:v,parent:f,pos:p,children:null,data:m,isStart:[].concat(ve(f?f.isStart:[]),[g===0]),isEnd:[].concat(ve(f?f.isEnd:[]),[g===d.length-1])});return c.push(C),t===!0||s.has(v)?C.children=u(m[l]||[],C):C.children=[],C})}return u(e),c}function rM(e,t,n){var r={};at(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,a=o.childrenPropName,l=o.externalGetKey,s=o.fieldNames,c=Mo(s),u=c.key,d=c.children,f=a||d,m;l?typeof l=="string"?m=function(v){return v[l]}:typeof l=="function"&&(m=function(v){return l(v)}):m=function(v,h){return Aa(v[u],h)};function g(p,v,h,b){var y=p?p[f]:e,C=p?ab(h.pos,v):"0",S=p?[].concat(ve(b),[p]):[];if(p){var $=m(p,C),x={node:p,index:v,pos:C,key:$,parentPos:h.node?h.pos:null,level:h.level+1,nodes:S};t(x)}y&&y.forEach(function(E,O){g(E,O,{node:p,pos:C,level:h?h.level+1:-1},S)})}g(null)}function od(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,l=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),rM(e,function(g){var p=g.node,v=g.index,h=g.pos,b=g.key,y=g.parentPos,C=g.level,S=g.nodes,$={node:p,nodes:S,index:v,key:b,pos:h,level:C},x=Aa(b,h);d[h]=$,f[x]=$,$.parent=d[y],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,m)},{externalGetKey:u,childrenPropName:l,fieldNames:s}),o&&o(m),m}function ua(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,l=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=Mn(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:l.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function Qt(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,l=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,g=e.eventKey,p=D(D({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:l,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:g});return"props"in p||Object.defineProperty(p,"props",{get:function(){return Vt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}function lb(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function oM(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function aM(e,t,n,r){for(var o=new Set(e),a=new Set,l=0;l<=n;l+=1){var s=t.get(l)||new Set;s.forEach(function(f){var m=f.key,g=f.node,p=f.children,v=p===void 0?[]:p;o.has(m)&&!r(g)&&v.filter(function(h){return!r(h.node)}).forEach(function(h){o.add(h.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,g=f.node;if(!(r(g)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var p=!0,v=!1;(m.children||[]).filter(function(h){return!r(h.node)}).forEach(function(h){var b=h.key,y=o.has(b);p&&!y&&(p=!1),!v&&(y||a.has(b))&&(v=!0)}),p&&o.add(m.key),v&&a.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(lb(a,o))}}function iM(e,t,n,r,o){for(var a=new Set(e),l=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(m){var g=m.key,p=m.node,v=m.children,h=v===void 0?[]:v;!a.has(g)&&!l.has(g)&&!o(p)&&h.filter(function(b){return!o(b.node)}).forEach(function(b){a.delete(b.key)})})}l=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var g=m.parent,p=m.node;if(!(o(p)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(g.key);return}var v=!0,h=!1;(g.children||[]).filter(function(b){return!o(b.node)}).forEach(function(b){var y=b.key,C=a.has(y);v&&!C&&(v=!1),!h&&(C||l.has(y))&&(h=!0)}),v||a.delete(g.key),h&&l.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(lb(l,a))}}function $o(e,t,n,r){var o=[],a;r?a=r:a=oM;var l=new Set(e.filter(function(d){var f=!!Mn(n,d);return f||o.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,g=s.get(m);g||(g=new Set,s.set(m,g)),g.add(f),c=Math.max(c,m)}),Vt(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=aM(l,s,c,a):u=iM(l,t.halfCheckedKeys,s,c,a),u}const lM=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},_t(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},_t(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},_t(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Nr(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${H(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
        ${n}:not(${n}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
        ${n}-checked:not(${n}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function sb(e,t){const n=pt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[lM(n)]}const cb=zt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[sb(n,e)]}),sM=ae.createContext(null),ub=sM;var cM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uM=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:l,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,g=cM(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:v,checkbox:h}=i.useContext(Ve),b=i.useContext(ub),{isFormItemInput:y}=i.useContext(jn),C=i.useContext(br),S=(n=(b==null?void 0:b.disabled)||m)!==null&&n!==void 0?n:C,$=i.useRef(g.value);i.useEffect(()=>{b==null||b.registerValue(g.value)},[]),i.useEffect(()=>{if(!f)return g.value!==$.current&&(b==null||b.cancelValue($.current),b==null||b.registerValue(g.value),$.current=g.value),()=>b==null?void 0:b.cancelValue(g.value)},[g.value]);const x=p("checkbox",r),E=tn(x),[O,w,P]=cb(x,E),R=Object.assign({},g);b&&!f&&(R.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),b.toggleOption&&b.toggleOption({label:l,value:g.value})},R.name=b.name,R.checked=b.value.includes(g.value));const M=K(`${x}-wrapper`,{[`${x}-rtl`]:v==="rtl",[`${x}-wrapper-checked`]:R.checked,[`${x}-wrapper-disabled`]:S,[`${x}-wrapper-in-form-item`]:y},h==null?void 0:h.className,o,a,P,E,w),I=K({[`${x}-indeterminate`]:s},cl,w),N=s?"mixed":void 0;return O(i.createElement(ul,{component:"Checkbox",disabled:S},i.createElement("label",{className:M,style:Object.assign(Object.assign({},h==null?void 0:h.style),c),onMouseEnter:u,onMouseLeave:d},i.createElement(Wh,Object.assign({"aria-checked":N},R,{prefixCls:x,className:I,disabled:S,ref:t})),l!==void 0&&i.createElement("span",null,l))))},dM=i.forwardRef(uM),db=dM;var fM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mM=i.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:l,rootClassName:s,style:c,onChange:u}=e,d=fM(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=i.useContext(Ve),[g,p]=i.useState(d.value||n||[]),[v,h]=i.useState([]);i.useEffect(()=>{"value"in d&&p(d.value||[])},[d.value]);const b=i.useMemo(()=>o.map(z=>typeof z=="string"||typeof z=="number"?{label:z,value:z}:z),[o]),y=z=>{h(L=>L.filter(T=>T!==z))},C=z=>{h(L=>[].concat(ve(L),[z]))},S=z=>{const L=g.indexOf(z.value),T=ve(g);L===-1?T.push(z.value):T.splice(L,1),"value"in d||p(T),u==null||u(T.filter(_=>v.includes(_)).sort((_,B)=>{const j=b.findIndex(V=>V.value===_),A=b.findIndex(V=>V.value===B);return j-A}))},$=f("checkbox",a),x=`${$}-group`,E=tn($),[O,w,P]=cb($,E),R=Ft(d,["value","disabled"]),M=o.length?b.map(z=>i.createElement(db,{prefixCls:$,key:z.value.toString(),disabled:"disabled"in z?z.disabled:d.disabled,value:z.value,checked:g.includes(z.value),onChange:z.onChange,className:`${x}-item`,style:z.style,title:z.title,id:z.id,required:z.required},z.label)):r,I={toggleOption:S,value:g,disabled:d.disabled,name:d.name,registerValue:C,cancelValue:y},N=K(x,{[`${x}-rtl`]:m==="rtl"},l,s,P,E,w);return O(i.createElement("div",Object.assign({className:N,style:c},R,{ref:t}),i.createElement(ub.Provider,{value:I},M)))}),gM=mM,ad=db;ad.Group=gM;ad.__ANT_CHECKBOX=!0;const Vi=ad,vM=i.createContext({}),fb=vM,pM=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},hM=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},bM=(e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let a=r;a>=0;a--)a===0?(o[`${n}${t}-${a}`]={display:"none"},o[`${n}-push-${a}`]={insetInlineStart:"auto"},o[`${n}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${a}`]={marginInlineStart:0},o[`${n}${t}-order-${a}`]={order:0}):(o[`${n}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/r*100}%`,maxWidth:`${a/r*100}%`}],o[`${n}${t}-push-${a}`]={insetInlineStart:`${a/r*100}%`},o[`${n}${t}-pull-${a}`]={insetInlineEnd:`${a/r*100}%`},o[`${n}${t}-offset-${a}`]={marginInlineStart:`${a/r*100}%`},o[`${n}${t}-order-${a}`]={order:a});return o},zc=(e,t)=>bM(e,t),yM=(e,t,n)=>({[`@media (min-width: ${H(t)})`]:Object.assign({},zc(e,n))}),CM=()=>({}),SM=()=>({}),xM=zt("Grid",pM,CM),$M=zt("Grid",e=>{const t=pt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[hM(t),zc(t,""),zc(t,"-xs"),Object.keys(n).map(r=>yM(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},SM);var wM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function EM(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const OM=["xs","sm","md","lg","xl","xxl"],IM=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(Ve),{gutter:o,wrap:a}=i.useContext(fb),{prefixCls:l,span:s,order:c,offset:u,push:d,pull:f,className:m,children:g,flex:p,style:v}=e,h=wM(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",l),[y,C,S]=$M(b);let $={};OM.forEach(O=>{let w={};const P=e[O];typeof P=="number"?w.span=P:typeof P=="object"&&(w=P||{}),delete h[O],$=Object.assign(Object.assign({},$),{[`${b}-${O}-${w.span}`]:w.span!==void 0,[`${b}-${O}-order-${w.order}`]:w.order||w.order===0,[`${b}-${O}-offset-${w.offset}`]:w.offset||w.offset===0,[`${b}-${O}-push-${w.push}`]:w.push||w.push===0,[`${b}-${O}-pull-${w.pull}`]:w.pull||w.pull===0,[`${b}-${O}-flex-${w.flex}`]:w.flex||w.flex==="auto",[`${b}-rtl`]:r==="rtl"})});const x=K(b,{[`${b}-${s}`]:s!==void 0,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${f}`]:f},m,$,C,S),E={};if(o&&o[0]>0){const O=o[0]/2;E.paddingLeft=O,E.paddingRight=O}return p&&(E.flex=EM(p),a===!1&&!E.minWidth&&(E.minWidth=0)),y(i.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign({},E),v),className:x,ref:t}),g))}),mb=IM;var RM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Bm(e,t){const[n,r]=i.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<No.length;a++){const l=No[a];if(!t[l])continue;const s=e[l];if(s!==void 0){r(s);return}}};return i.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const PM=i.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:l,children:s,gutter:c=0,wrap:u}=e,d=RM(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=i.useContext(Ve),[g,p]=i.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,h]=i.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=Bm(o,v),y=Bm(r,v),C=i.useRef(c),S=sh();i.useEffect(()=>{const T=S.subscribe(_=>{h(_);const B=C.current||0;(!Array.isArray(B)&&typeof B=="object"||Array.isArray(B)&&(typeof B[0]=="object"||typeof B[1]=="object"))&&p(_)});return()=>S.unsubscribe(T)},[]);const $=()=>{const T=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((B,j)=>{if(typeof B=="object")for(let A=0;A<No.length;A++){const V=No[A];if(g[V]&&B[V]!==void 0){T[j]=B[V];break}}else T[j]=B}),T},x=f("row",n),[E,O,w]=xM(x),P=$(),R=K(x,{[`${x}-no-wrap`]:u===!1,[`${x}-${y}`]:y,[`${x}-${b}`]:b,[`${x}-rtl`]:m==="rtl"},a,O,w),M={},I=P[0]!=null&&P[0]>0?P[0]/-2:void 0;I&&(M.marginLeft=I,M.marginRight=I),[,M.rowGap]=P;const[N,z]=P,L=i.useMemo(()=>({gutter:[N,z],wrap:u}),[N,z,u]);return E(i.createElement(fb.Provider,{value:L},i.createElement("div",Object.assign({},d,{className:R,style:Object.assign(Object.assign({},M),l),ref:t}),s)))}),NM=PM;function TM(e){return!!(e.addonBefore||e.addonAfter)}function MM(e){return!!(e.prefix||e.suffix||e.allowClear)}function Wi(e,t,n,r){if(n){var o=t;if(t.type==="click"){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",n(o);return}if(e.type!=="file"&&r!==void 0){var l=e.cloneNode(!0);o=Object.create(t,{target:{value:l},currentTarget:{value:l}}),l.value=r,n(o);return}n(o)}}function _M(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var gb=function(t){var n,r,o=t.inputElement,a=t.children,l=t.prefixCls,s=t.prefix,c=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,m=t.style,g=t.disabled,p=t.readOnly,v=t.focused,h=t.triggerFocus,b=t.allowClear,y=t.value,C=t.handleReset,S=t.hidden,$=t.classes,x=t.classNames,E=t.dataAttrs,O=t.styles,w=t.components,P=a??o,R=(w==null?void 0:w.affixWrapper)||"span",M=(w==null?void 0:w.groupWrapper)||"span",I=(w==null?void 0:w.wrapper)||"span",N=(w==null?void 0:w.groupAddon)||"span",z=i.useRef(null),L=function(Y){var U;(U=z.current)!==null&&U!==void 0&&U.contains(Y.target)&&(h==null||h())},T=MM(t),_=i.cloneElement(P,{value:y,className:K(P.props.className,!T&&(x==null?void 0:x.variant))||null});if(T){var B,j=null;if(b){var A,V=!g&&!p&&y,X="".concat(l,"-clear-icon"),te=at(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";j=ae.createElement("span",{onClick:C,onMouseDown:function(Y){return Y.preventDefault()},className:K(X,(A={},F(A,"".concat(X,"-hidden"),!V),F(A,"".concat(X,"-has-suffix"),!!c),A)),role:"button",tabIndex:-1},te)}var W="".concat(l,"-affix-wrapper"),G=K(W,(B={},F(B,"".concat(l,"-disabled"),g),F(B,"".concat(W,"-disabled"),g),F(B,"".concat(W,"-focused"),v),F(B,"".concat(W,"-readonly"),p),F(B,"".concat(W,"-input-with-clear-btn"),c&&b&&y),B),$==null?void 0:$.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),ne=(c||b)&&ae.createElement("span",{className:K("".concat(l,"-suffix"),x==null?void 0:x.suffix),style:O==null?void 0:O.suffix},j,c);_=ae.createElement(R,de({className:G,style:O==null?void 0:O.affixWrapper,onClick:L},E==null?void 0:E.affixWrapper,{ref:z}),s&&ae.createElement("span",{className:K("".concat(l,"-prefix"),x==null?void 0:x.prefix),style:O==null?void 0:O.prefix},s),_,ne)}if(TM(t)){var J="".concat(l,"-group"),oe="".concat(J,"-addon"),Z="".concat(J,"-wrapper"),k=K("".concat(l,"-wrapper"),J,$==null?void 0:$.wrapper,x==null?void 0:x.wrapper),Q=K(Z,F({},"".concat(Z,"-disabled"),g),$==null?void 0:$.group,x==null?void 0:x.groupWrapper);_=ae.createElement(M,{className:Q},ae.createElement(I,{className:k},u&&ae.createElement(N,{className:oe},u),_,d&&ae.createElement(N,{className:oe},d)))}return ae.cloneElement(_,{className:K((n=_.props)===null||n===void 0?void 0:n.className,f)||null,style:D(D({},(r=_.props)===null||r===void 0?void 0:r.style),m),hidden:S})},zM=["show"];function vb(e,t){return i.useMemo(function(){var n={};t&&(n.show=at(t)==="object"&&t.formatter?t.formatter:!!t),n=D(D({},n),e);var r=n,o=r.show,a=Qe(r,zM);return D(D({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(l){return l.length}})},[e,t])}var LM=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],jM=i.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,l=e.onPressEnter,s=e.onKeyDown,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,m=e.className,g=e.maxLength,p=e.suffix,v=e.showCount,h=e.count,b=e.type,y=b===void 0?"text":b,C=e.classes,S=e.classNames,$=e.styles,x=e.onCompositionStart,E=e.onCompositionEnd,O=Qe(e,LM),w=i.useState(!1),P=q(w,2),R=P[0],M=P[1],I=i.useRef(!1),N=i.useRef(null),z=function(le){N.current&&_M(N.current,le)},L=At(e.defaultValue,{value:e.value}),T=q(L,2),_=T[0],B=T[1],j=_==null?"":String(_),A=i.useState(null),V=q(A,2),X=V[0],te=V[1],W=vb(h,v),G=W.max||g,ne=W.strategy(j),J=!!G&&ne>G;i.useImperativeHandle(t,function(){return{focus:z,blur:function(){var le;(le=N.current)===null||le===void 0||le.blur()},setSelectionRange:function(le,ce,pe){var me;(me=N.current)===null||me===void 0||me.setSelectionRange(le,ce,pe)},select:function(){var le;(le=N.current)===null||le===void 0||le.select()},input:N.current}}),i.useEffect(function(){M(function(re){return re&&d?!1:re})},[d]);var oe=function(le,ce,pe){var me=ce;if(!I.current&&W.exceedFormatter&&W.max&&W.strategy(ce)>W.max){if(me=W.exceedFormatter(ce,{max:W.max}),ce!==me){var be,ye;te([((be=N.current)===null||be===void 0?void 0:be.selectionStart)||0,((ye=N.current)===null||ye===void 0?void 0:ye.selectionEnd)||0])}}else if(pe.source==="compositionEnd")return;B(me),N.current&&Wi(N.current,le,r,me)};i.useEffect(function(){if(X){var re;(re=N.current)===null||re===void 0||re.setSelectionRange.apply(re,ve(X))}},[X]);var Z=function(le){oe(le,le.target.value,{source:"change"})},k=function(le){I.current=!1,oe(le,le.currentTarget.value,{source:"compositionEnd"}),E==null||E(le)},Q=function(le){l&&le.key==="Enter"&&l(le),s==null||s(le)},ee=function(le){M(!0),o==null||o(le)},Y=function(le){M(!1),a==null||a(le)},U=function(le){B(""),z(),N.current&&Wi(N.current,le,r)},ie=J&&"".concat(u,"-out-of-range"),se=function(){var le=Ft(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return ae.createElement("input",de({autoComplete:n},le,{onChange:Z,onFocus:ee,onBlur:Y,onKeyDown:Q,className:K(u,F({},"".concat(u,"-disabled"),d),S==null?void 0:S.input),style:$==null?void 0:$.input,ref:N,size:f,type:y,onCompositionStart:function(pe){I.current=!0,x==null||x(pe)},onCompositionEnd:k}))},ue=function(){var le=Number(G)>0;if(p||W.show){var ce=W.showFormatter?W.showFormatter({value:j,count:ne,maxLength:G}):"".concat(ne).concat(le?" / ".concat(G):"");return ae.createElement(ae.Fragment,null,W.show&&ae.createElement("span",{className:K("".concat(u,"-show-count-suffix"),F({},"".concat(u,"-show-count-has-suffix"),!!p),S==null?void 0:S.count),style:D({},$==null?void 0:$.count)},ce),p)}return null};return ae.createElement(gb,de({},O,{prefixCls:u,className:K(m,ie),handleReset:U,value:j,focused:R,triggerFocus:z,suffix:ue(),disabled:d,classes:C,classNames:S,styles:$}),se())});const DM=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Ve),{prefixCls:r,className:o}=e,a=t("input-group",r),l=t("input"),[s,c]=nd(l),u=K(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},c,o),d=i.useContext(jn),f=i.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(i.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(jn.Provider,{value:f},e.children)))},BM=DM;function pb(e,t){const n=i.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,l,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((l=e.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return i.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function AM(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const FM=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ae.createElement(Na,null)}),t},HM=FM;var kM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function KM(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}const VM=i.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:l,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:g,className:p,style:v,styles:h,rootClassName:b,onChange:y,classNames:C,variant:S}=e,$=kM(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:E,input:O}=ae.useContext(Ve),w=x("input",r),P=i.useRef(null),R=tn(w),[M,I,N]=nd(w,R),{compactSize:z,compactItemClassnames:L}=za(w,E),T=In(ee=>{var Y;return(Y=l??z)!==null&&Y!==void 0?Y:ee}),_=ae.useContext(br),B=s??_,{status:j,hasFeedback:A,feedbackIcon:V}=i.useContext(jn),X=_u(j,a),te=AM(e)||!!A;i.useRef(te);const W=pb(P,!0),G=ee=>{W(),c==null||c(ee)},ne=ee=>{W(),u==null||u(ee)},J=ee=>{W(),y==null||y(ee)},oe=(A||d)&&ae.createElement(ae.Fragment,null,d,A&&V),Z=HM(f),[k,Q]=Lu(S,o);return M(ae.createElement(jM,Object.assign({ref:$n(t,P),prefixCls:w,autoComplete:O==null?void 0:O.autoComplete},$,{disabled:B,onBlur:G,onFocus:ne,style:Object.assign(Object.assign({},O==null?void 0:O.style),v),styles:Object.assign(Object.assign({},O==null?void 0:O.styles),h),suffix:oe,allowClear:Z,className:K(p,b,N,R,L,O==null?void 0:O.className),onChange:J,addonAfter:m&&ae.createElement(Li,null,ae.createElement(Bf,{override:!0,status:!0},m)),addonBefore:g&&ae.createElement(Li,null,ae.createElement(Bf,{override:!0,status:!0},g)),classNames:Object.assign(Object.assign(Object.assign({},C),O==null?void 0:O.classNames),{input:K({[`${w}-sm`]:T==="small",[`${w}-lg`]:T==="large",[`${w}-rtl`]:E==="rtl"},C==null?void 0:C.input,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.input,I),variant:K({[`${w}-${k}`]:Q},Ai(w,X)),affixWrapper:K({[`${w}-affix-wrapper-sm`]:T==="small",[`${w}-affix-wrapper-lg`]:T==="large",[`${w}-affix-wrapper-rtl`]:E==="rtl"},I),wrapper:K({[`${w}-group-rtl`]:E==="rtl"},I),groupWrapper:K({[`${w}-group-wrapper-sm`]:T==="small",[`${w}-group-wrapper-lg`]:T==="large",[`${w}-group-wrapper-rtl`]:E==="rtl",[`${w}-group-wrapper-${k}`]:Q},Ai(`${w}-group-wrapper`,X,A),I)})})))}),id=VM;var WM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const GM=WM;var qM=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:GM}))};const XM=i.forwardRef(qM);var UM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const YM=UM;var ZM=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:YM}))};const hb=i.forwardRef(ZM);var QM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const JM=e=>e?i.createElement(hb,null):i.createElement(XM,null),e_={click:"onClick",hover:"onMouseOver"},t_=i.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=i.useState(()=>r?n.visible:!1),l=i.useRef(null);i.useEffect(()=>{r&&a(n.visible)},[r,n]);const s=pb(l),c=()=>{const{disabled:$}=e;$||(o&&s(),a(x=>{var E;const O=!x;return typeof n=="object"&&((E=n.onVisibleChange)===null||E===void 0||E.call(n,O)),O}))},u=$=>{const{action:x="click",iconRender:E=JM}=e,O=e_[x]||"",w=E(o),P={[O]:c,className:`${$}-icon`,key:"passwordIcon",onMouseDown:R=>{R.preventDefault()},onMouseUp:R=>{R.preventDefault()}};return i.cloneElement(i.isValidElement(w)?w:i.createElement("span",null,w),P)},{className:d,prefixCls:f,inputPrefixCls:m,size:g}=e,p=QM(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=i.useContext(Ve),h=v("input",m),b=v("input-password",f),y=n&&u(b),C=K(b,d,{[`${b}-${g}`]:!!g}),S=Object.assign(Object.assign({},Ft(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:h,suffix:y});return g&&(S.size=g),i.createElement(id,Object.assign({ref:$n(t,l)},S))}),n_=t_;var r_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const o_=i.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:l,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:g,onCompositionEnd:p}=e,v=r_(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:b}=i.useContext(Ve),y=i.useRef(!1),C=h("input-search",n),S=h("input",r),{compactSize:$}=za(C,b),x=In(j=>{var A;return(A=a??$)!==null&&A!==void 0?A:j}),E=i.useRef(null),O=j=>{j&&j.target&&j.type==="click"&&f&&f(j.target.value,j,{source:"clear"}),m&&m(j)},w=j=>{var A;document.activeElement===((A=E.current)===null||A===void 0?void 0:A.input)&&j.preventDefault()},P=j=>{var A,V;f&&f((V=(A=E.current)===null||A===void 0?void 0:A.input)===null||V===void 0?void 0:V.value,j,{source:"input"})},R=j=>{y.current||u||P(j)},M=typeof s=="boolean"?i.createElement(Du,null):null,I=`${C}-button`;let N;const z=s||{},L=z.type&&z.type.__ANT_BUTTON===!0;L||z.type==="button"?N=dn(z,Object.assign({onMouseDown:w,onClick:j=>{var A,V;(V=(A=z==null?void 0:z.props)===null||A===void 0?void 0:A.onClick)===null||V===void 0||V.call(A,j),P(j)},key:"enterButton"},L?{className:I,size:x}:{})):N=i.createElement(Ca,{className:I,type:s?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:w,onClick:P,loading:u,icon:M},s),c&&(N=[N,dn(c,{key:"addonAfter"})]);const T=K(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${x}`]:!!x,[`${C}-with-button`]:!!s},o),_=j=>{y.current=!0,g==null||g(j)},B=j=>{y.current=!1,p==null||p(j)};return i.createElement(id,Object.assign({ref:$n(E,t),onPressEnter:R},v,{size:x,onCompositionStart:_,onCompositionEnd:B,prefixCls:S,addonAfter:N,suffix:l,onChange:O,className:T,disabled:d}))}),a_=o_;var i_=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,l_=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],hs={},kn;function s_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&hs[n])return hs[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),l=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=l_.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:a,borderSize:l,boxSizing:o};return t&&n&&(hs[n]=c),c}function c_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;kn||(kn=document.createElement("textarea"),kn.setAttribute("tab-index","-1"),kn.setAttribute("aria-hidden","true"),document.body.appendChild(kn)),e.getAttribute("wrap")?kn.setAttribute("wrap",e.getAttribute("wrap")):kn.removeAttribute("wrap");var o=s_(e,t),a=o.paddingSize,l=o.borderSize,s=o.boxSizing,c=o.sizingStyle;kn.setAttribute("style","".concat(c,";").concat(i_)),kn.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=kn.scrollHeight;if(s==="border-box"?m+=l:s==="content-box"&&(m-=a),n!==null||r!==null){kn.value=" ";var g=kn.scrollHeight-a;n!==null&&(u=g*n,s==="border-box"&&(u=u+a+l),m=Math.max(u,m)),r!==null&&(d=g*r,s==="border-box"&&(d=d+a+l),f=m>d?"":"hidden",m=Math.min(d,m))}var p={height:m,overflowY:f,resize:"none"};return u&&(p.minHeight=u),d&&(p.maxHeight=d),p}var u_=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],bs=0,ys=1,Cs=2,d_=i.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,l=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=Qe(n,u_),g=At(o,{value:a,postState:function(te){return te??""}}),p=q(g,2),v=p[0],h=p[1],b=function(te){h(te.target.value),f==null||f(te)},y=i.useRef();i.useImperativeHandle(t,function(){return{textArea:y.current}});var C=i.useMemo(function(){return l&&at(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),S=q(C,2),$=S[0],x=S[1],E=!!l,O=function(){try{if(document.activeElement===y.current){var te=y.current,W=te.selectionStart,G=te.selectionEnd,ne=te.scrollTop;y.current.setSelectionRange(W,G),y.current.scrollTop=ne}}catch{}},w=i.useState(Cs),P=q(w,2),R=P[0],M=P[1],I=i.useState(),N=q(I,2),z=N[0],L=N[1],T=function(){M(bs)};xt(function(){E&&T()},[a,$,x,E]),xt(function(){if(R===bs)M(ys);else if(R===ys){var X=c_(y.current,!1,$,x);M(Cs),L(X)}else O()},[R]);var _=i.useRef(),B=function(){Et.cancel(_.current)},j=function(te){R===Cs&&(s==null||s(te),l&&(B(),_.current=Et(function(){T()})))};i.useEffect(function(){return B},[]);var A=E?z:null,V=D(D({},u),A);return(R===bs||R===ys)&&(V.overflowY="hidden",V.overflowX="hidden"),i.createElement(hn,{onResize:j,disabled:!(l||s)},i.createElement("textarea",de({},m,{ref:y,style:V,className:K(r,c,F({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:b})))}),f_=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],m_=ae.forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,l=e.onFocus,s=e.onBlur,c=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,p=e.prefixCls,v=p===void 0?"rc-textarea":p,h=e.showCount,b=e.count,y=e.className,C=e.style,S=e.disabled,$=e.hidden,x=e.classNames,E=e.styles,O=e.onResize,w=Qe(e,f_),P=At(o,{value:a,defaultValue:o}),R=q(P,2),M=R[0],I=R[1],N=M==null?"":String(M),z=ae.useState(!1),L=q(z,2),T=L[0],_=L[1],B=ae.useRef(!1),j=ae.useState(null),A=q(j,2),V=A[0],X=A[1],te=i.useRef(null),W=function(){var Ce;return(Ce=te.current)===null||Ce===void 0?void 0:Ce.textArea},G=function(){W().focus()};i.useImperativeHandle(t,function(){return{resizableTextArea:te.current,focus:G,blur:function(){W().blur()}}}),i.useEffect(function(){_(function(Ie){return!S&&Ie})},[S]);var ne=ae.useState(null),J=q(ne,2),oe=J[0],Z=J[1];ae.useEffect(function(){if(oe){var Ie;(Ie=W()).setSelectionRange.apply(Ie,ve(oe))}},[oe]);var k=vb(b,h),Q=(n=k.max)!==null&&n!==void 0?n:d,ee=Number(Q)>0,Y=k.strategy(N),U=!!Q&&Y>Q,ie=function(Ce,$e){var he=$e;!B.current&&k.exceedFormatter&&k.max&&k.strategy($e)>k.max&&(he=k.exceedFormatter($e,{max:k.max}),$e!==he&&Z([W().selectionStart||0,W().selectionEnd||0])),I(he),Wi(Ce.currentTarget,Ce,c,he)},se=function(Ce){B.current=!0,f==null||f(Ce)},ue=function(Ce){B.current=!1,ie(Ce,Ce.currentTarget.value),m==null||m(Ce)},re=function(Ce){ie(Ce,Ce.target.value)},le=function(Ce){var $e=w.onPressEnter,he=w.onKeyDown;Ce.key==="Enter"&&$e&&$e(Ce),he==null||he(Ce)},ce=function(Ce){_(!0),l==null||l(Ce)},pe=function(Ce){_(!1),s==null||s(Ce)},me=function(Ce){I(""),G(),Wi(W(),Ce,c)},be=g,ye;k.show&&(k.showFormatter?ye=k.showFormatter({value:N,count:Y,maxLength:Q}):ye="".concat(Y).concat(ee?" / ".concat(Q):""),be=ae.createElement(ae.Fragment,null,be,ae.createElement("span",{className:K("".concat(v,"-data-count"),x==null?void 0:x.count),style:E==null?void 0:E.count},ye)));var xe=function(Ce){var $e;O==null||O(Ce),($e=W())!==null&&$e!==void 0&&$e.style.height&&X(!0)},qe=!w.autoSize&&!h&&!u;return ae.createElement(gb,{value:N,allowClear:u,handleReset:me,suffix:be,prefixCls:v,classNames:D(D({},x),{},{affixWrapper:K(x==null?void 0:x.affixWrapper,(r={},F(r,"".concat(v,"-show-count"),h),F(r,"".concat(v,"-textarea-allow-clear"),u),r))}),disabled:S,focused:T,className:K(y,U&&"".concat(v,"-out-of-range")),style:D(D({},C),V&&!qe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ye=="string"?ye:void 0}},hidden:$},ae.createElement(d_,de({},w,{maxLength:d,onKeyDown:le,onChange:re,onFocus:ce,onBlur:pe,onCompositionStart:se,onCompositionEnd:ue,className:K(x==null?void 0:x.textarea),style:D(D({},E==null?void 0:E.textarea),{},{resize:C==null?void 0:C.resize}),disabled:S,prefixCls:v,onResize:xe,ref:te})))}),g_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const v_=i.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:l,status:s,allowClear:c,classNames:u,rootClassName:d,className:f,variant:m}=e,g=g_(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:p,direction:v}=i.useContext(Ve),h=In(a),b=i.useContext(br),y=l??b,{status:C,hasFeedback:S,feedbackIcon:$}=i.useContext(jn),x=_u(C,s),E=i.useRef(null);i.useImperativeHandle(t,()=>{var L;return{resizableTextArea:(L=E.current)===null||L===void 0?void 0:L.resizableTextArea,focus:T=>{var _,B;KM((B=(_=E.current)===null||_===void 0?void 0:_.resizableTextArea)===null||B===void 0?void 0:B.textArea,T)},blur:()=>{var T;return(T=E.current)===null||T===void 0?void 0:T.blur()}}});const O=p("input",r);let w;typeof c=="object"&&(c!=null&&c.clearIcon)?w=c:c&&(w={clearIcon:i.createElement(Na,null)});const P=tn(O),[R,M,I]=nd(O,P),[N,z]=Lu(m,o);return R(i.createElement(m_,Object.assign({},g,{disabled:y,allowClear:w,className:K(I,P,f,d),classNames:Object.assign(Object.assign({},u),{textarea:K({[`${O}-sm`]:h==="small",[`${O}-lg`]:h==="large"},M,u==null?void 0:u.textarea),variant:K({[`${O}-${N}`]:z},Ai(O,x)),affixWrapper:K(`${O}-textarea-affix-wrapper`,{[`${O}-affix-wrapper-rtl`]:v==="rtl",[`${O}-affix-wrapper-sm`]:h==="small",[`${O}-affix-wrapper-lg`]:h==="large",[`${O}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},M)}),prefixCls:O,suffix:S&&i.createElement("span",{className:`${O}-textarea-suffix`},$),ref:E})))}),bb=v_,Fa=id;Fa.Group=BM;Fa.Search=a_;Fa.TextArea=bb;Fa.Password=n_;const p_=Fa;function Gi(e){return["small","middle","large"].includes(e)}function Am(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const yb=ae.createContext({latestIndex:0}),h_=yb.Provider,b_=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:l}=i.useContext(yb);return r==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:t,style:a},r),n<l&&o&&i.createElement("span",{className:`${t}-split`},o))},y_=b_;var C_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const S_=i.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:l}=i.useContext(Ve),{size:s=(a==null?void 0:a.size)||"small",align:c,className:u,rootClassName:d,children:f,direction:m="horizontal",prefixCls:g,split:p,style:v,wrap:h=!1,classNames:b,styles:y}=e,C=C_(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,$]=Array.isArray(s)?s:[s,s],x=Gi($),E=Gi(S),O=Am($),w=Am(S),P=on(f,{keepEmpty:!0}),R=c===void 0&&m==="horizontal"?"center":c,M=o("space",g),[I,N,z]=up(M),L=K(M,a==null?void 0:a.className,N,`${M}-${m}`,{[`${M}-rtl`]:l==="rtl",[`${M}-align-${R}`]:R,[`${M}-gap-row-${$}`]:x,[`${M}-gap-col-${S}`]:E},u,d,z),T=K(`${M}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let _=0;const B=P.map((V,X)=>{var te,W;V!=null&&(_=X);const G=V&&V.key||`${T}-${X}`;return i.createElement(y_,{className:T,key:G,index:X,split:p,style:(te=y==null?void 0:y.item)!==null&&te!==void 0?te:(W=a==null?void 0:a.styles)===null||W===void 0?void 0:W.item},V)}),j=i.useMemo(()=>({latestIndex:_}),[_]);if(P.length===0)return null;const A={};return h&&(A.flexWrap="wrap"),!E&&w&&(A.columnGap=S),!x&&O&&(A.rowGap=$),I(i.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},A),a==null?void 0:a.style),v)},C),i.createElement(h_,{value:j},B)))}),Cb=S_;Cb.Compact=Z$;const x_=Cb;var $_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Sb=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=i.useContext(Ve),{prefixCls:o,type:a="default",danger:l,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:g,arrow:p,autoFocus:v,overlay:h,trigger:b,align:y,open:C,onOpenChange:S,placement:$,getPopupContainer:x,href:E,icon:O=i.createElement(Xu,null),title:w,buttonsRender:P=J=>J,mouseEnterDelay:R,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:N,destroyPopupOnHide:z,dropdownRender:L}=e,T=$_(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),_=n("dropdown",o),B=`${_}-button`,j={menu:g,arrow:p,autoFocus:v,align:y,disabled:s,trigger:s?[]:b,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:R,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:N,destroyPopupOnHide:z,dropdownRender:L},{compactSize:A,compactItemClassnames:V}=za(_,r),X=K(B,V,m);"overlay"in e&&(j.overlay=h),"open"in e&&(j.open=C),"placement"in e?j.placement=$:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=i.createElement(Ca,{type:a,danger:l,disabled:s,loading:c,onClick:u,htmlType:d,href:E,title:w},f),W=i.createElement(Ca,{type:a,danger:l,icon:O}),[G,ne]=P([te,W]);return i.createElement(x_.Compact,Object.assign({className:X,size:A,block:!0},T),G,i.createElement(Yu,Object.assign({},j),ne))};Sb.__ANT_BUTTON=!0;const w_=Sb,xb=Yu;xb.Button=w_;const $b=xb,wb=["wrap","nowrap","wrap-reverse"],Eb=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Ob=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],E_=(e,t)=>{const n={};return wb.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},O_=(e,t)=>{const n={};return Ob.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},I_=(e,t)=>{const n={};return Eb.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function R_(e,t){return K(Object.assign(Object.assign(Object.assign({},E_(e,t)),O_(e,t)),I_(e,t)))}const P_=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},N_=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},T_=e=>{const{componentCls:t}=e,n={};return wb.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},M_=e=>{const{componentCls:t}=e,n={};return Ob.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},__=e=>{const{componentCls:t}=e,n={};return Eb.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},z_=()=>({}),L_=zt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=pt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[P_(o),N_(o),T_(o),M_(o),__(o)]},z_,{resetStyle:!1});var j_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const D_=ae.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:a,flex:l,gap:s,children:c,vertical:u=!1,component:d="div"}=e,f=j_(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:g,getPrefixCls:p}=ae.useContext(Ve),v=p("flex",n),[h,b,y]=L_(v),C=u??(m==null?void 0:m.vertical),S=K(o,r,m==null?void 0:m.className,v,b,y,R_(v,e),{[`${v}-rtl`]:g==="rtl",[`${v}-gap-${s}`]:Gi(s),[`${v}-vertical`]:C}),$=Object.assign(Object.assign({},m==null?void 0:m.style),a);return l&&($.flex=l),s&&!Gi(s)&&($.gap=s),h(ae.createElement(d,Object.assign({ref:t,className:S,style:$},Ft(f,["justify","wrap","align"])),c))}),P3=D_;function qi(e){const[t,n]=i.useState(e);return i.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const B_=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
                     opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
                     transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},A_=B_,F_=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n  input[type='radio']:focus,\n  input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${H(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Fm=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},H_=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},_t(e)),F_(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Fm(e,e.controlHeightSM)),"&-large":Object.assign({},Fm(e,e.controlHeightLG))})}},k_=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:l,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},_t(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
        &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:l,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Eu,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},K_=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},V_=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
        > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},po=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),W_=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:po(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},G_=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,
      .${r}-col-24${n}-label,
      .${r}-col-xl-24${n}-label`]:po(e),[`@media (max-width: ${H(e.screenXSMax)})`]:[W_(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:po(e)}}],[`@media (max-width: ${H(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:po(e)}},[`@media (max-width: ${H(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:po(e)}},[`@media (max-width: ${H(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:po(e)}}}},q_=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0}),Ib=(e,t)=>pt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),ld=zt("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Ib(e,n);return[H_(r),k_(r),A_(r),K_(r),V_(r),G_(r),Ou(r),Eu]},q_,{order:-1e3}),Hm=[];function Ss(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const X_=e=>{let{help:t,helpStatus:n,errors:r=Hm,warnings:o=Hm,className:a,fieldId:l,onVisibleChanged:s}=e;const{prefixCls:c}=i.useContext(Cu),u=`${c}-item-explain`,d=tn(c),[f,m,g]=ld(c,d),p=i.useMemo(()=>zi(c),[c]),v=qi(r),h=qi(o),b=i.useMemo(()=>t!=null?[Ss(t,"help",n)]:[].concat(ve(v.map((C,S)=>Ss(C,"error","error",S))),ve(h.map((C,S)=>Ss(C,"warning","warning",S)))),[t,n,v,h]),y={};return l&&(y.id=`${l}_help`),f(i.createElement(Gn,{motionDeadline:p.motionDeadline,motionName:`${c}-show-help`,visible:!!b.length,onVisibleChanged:s},C=>{const{className:S,style:$}=C;return i.createElement("div",Object.assign({},y,{className:K(u,S,g,d,a,m),style:$,role:"alert"}),i.createElement(qv,Object.assign({keys:b},zi(c),{motionName:`${c}-show-help-item`,component:!1}),x=>{const{key:E,error:O,errorStatus:w,className:P,style:R}=x;return i.createElement("div",{key:E,className:K(P,{[`${u}-${w}`]:w}),style:R},O)}))}))},Rb=X_,U_=["parentNode"],Y_="form_item";function da(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Pb(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:U_.includes(n)?`${Y_}_${n}`:n}function Nb(e,t,n,r,o,a){let l=r;return a!==void 0?l=a:n.validating?l="validating":e.length?l="error":t.length?l="warning":(n.touched||o&&n.validated)&&(l="success"),l}function km(e){return da(e).join("_")}function Tb(e){const[t]=yu(),n=i.useRef({}),r=i.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const l=km(o);a?n.current[l]=a:delete n.current[l]}},scrollToField:function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const l=da(o),s=Pb(l,r.__INTERNAL__.name),c=s?document.getElementById(s):null;c&&r$(c,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:o=>{const a=km(o);return n.current[a]}}),[e,t]);return[r]}var Z_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Q_=(e,t)=>{const n=i.useContext(br),{getPrefixCls:r,direction:o,form:a}=i.useContext(Ve),{prefixCls:l,className:s,rootClassName:c,size:u,disabled:d=n,form:f,colon:m,labelAlign:g,labelWrap:p,labelCol:v,wrapperCol:h,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:C,requiredMark:S,onFinishFailed:$,name:x,style:E,feedbackIcons:O,variant:w}=e,P=Z_(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),R=In(u),M=i.useContext(pv),I=i.useMemo(()=>S!==void 0?S:b?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[b,S,a]),N=m??(a==null?void 0:a.colon),z=r("form",l),L=tn(z),[T,_,B]=ld(z,L),j=K(z,`${z}-${y}`,{[`${z}-hide-required-mark`]:I===!1,[`${z}-rtl`]:o==="rtl",[`${z}-${R}`]:R},B,L,_,a==null?void 0:a.className,s,c),[A]=Tb(f),{__INTERNAL__:V}=A;V.name=x;const X=i.useMemo(()=>({name:x,labelAlign:g,labelCol:v,labelWrap:p,wrapperCol:h,vertical:y==="vertical",colon:N,requiredMark:I,itemRef:V.itemRef,form:A,feedbackIcons:O}),[x,g,v,h,y,N,I,A,O]);i.useImperativeHandle(t,()=>A);const te=(G,ne)=>{if(G){let J={block:"nearest"};typeof G=="object"&&(J=G),A.scrollToField(ne,J)}},W=G=>{if($==null||$(G),G.errorFields.length){const ne=G.errorFields[0].name;if(C!==void 0){te(C,ne);return}a&&a.scrollToFirstError!==void 0&&te(a.scrollToFirstError,ne)}};return T(i.createElement(_p.Provider,{value:w},i.createElement(Iv,{disabled:d},i.createElement(Pa.Provider,{value:R},i.createElement(Mp,{validateMessages:M},i.createElement(pr.Provider,{value:X},i.createElement(Do,Object.assign({id:x},P,{name:x,onFinishFailed:W,form:A,style:Object.assign(Object.assign({},a==null?void 0:a.style),E),className:j}))))))))},J_=i.forwardRef(Q_),ez=J_;function tz(e){if(typeof e=="function")return e;const t=on(e);return t.length<=1?t[0]:t}const Mb=()=>{const{status:e,errors:t=[],warnings:n=[]}=i.useContext(jn);return{status:e,errors:t,warnings:n}};Mb.Context=jn;const nz=Mb;function rz(e){const[t,n]=i.useState(e),r=i.useRef(null),o=i.useRef([]),a=i.useRef(!1);i.useEffect(()=>(a.current=!1,()=>{a.current=!0,Et.cancel(r.current),r.current=null}),[]);function l(s){a.current||(r.current===null&&(o.current=[],r.current=Et(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(s))}return[t,l]}function oz(){const{itemRef:e}=i.useContext(pr),t=i.useRef({});function n(r,o){const a=o&&typeof o=="object"&&o.ref,l=r.join("_");return(t.current.name!==l||t.current.originRef!==a)&&(t.current.name=l,t.current.originRef=a,t.current.ref=$n(e(r),a)),t.current.ref}return n}const az=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},iz=ol(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Ib(e,n);return[az(r)]}),lz=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:l,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:m}=e,g=`${t}-item`,p=i.useContext(pr),v=r||p.wrapperCol||{},h=K(`${g}-control`,v.className),b=i.useMemo(()=>Object.assign({},p),[p]);delete b.labelCol,delete b.wrapperCol;const y=i.createElement("div",{className:`${g}-control-input`},i.createElement("div",{className:`${g}-control-input-content`},o)),C=i.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||a.length||l.length?i.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},i.createElement(Cu.Provider,{value:C},i.createElement(Rb,{fieldId:d,errors:a,warnings:l,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:m})),!!f&&i.createElement("div",{style:{width:0,height:f}})):null,$={};d&&($.id=`${d}_extra`);const x=c?i.createElement("div",Object.assign({},$,{className:`${g}-extra`}),c):null,E=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:y,errorList:S,extra:x}):i.createElement(i.Fragment,null,y,S,x);return i.createElement(pr.Provider,{value:b},i.createElement(mb,Object.assign({},v,{className:h}),E),i.createElement(iz,{prefixCls:t}))},sz=lz;var cz={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const uz=cz;var dz=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:uz}))};const fz=i.forwardRef(dz);var mz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function gz(e){return e?typeof e=="object"&&!i.isValidElement(e)?e:{title:e}:null}const vz=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:l,required:s,requiredMark:c,tooltip:u}=e;var d;const[f]=nl("Form"),{vertical:m,labelAlign:g,labelCol:p,labelWrap:v,colon:h}=i.useContext(pr);if(!n)return null;const b=o||p||{},y=a||g,C=`${t}-item-label`,S=K(C,y==="left"&&`${C}-left`,b.className,{[`${C}-wrap`]:!!v});let $=n;const x=l===!0||h!==!1&&l!==!1;x&&!m&&typeof n=="string"&&n.trim()!==""&&($=n.replace(/[:|:]\s*$/,""));const O=gz(u);if(O){const{icon:M=i.createElement(fz,null)}=O,I=mz(O,["icon"]),N=i.createElement(Ur,Object.assign({},I),i.cloneElement(M,{className:`${t}-item-tooltip`,title:"",onClick:z=>{z.preventDefault()},tabIndex:null}));$=i.createElement(i.Fragment,null,$,N)}const w=c==="optional",P=typeof c=="function";P?$=c($,{required:!!s}):w&&!s&&($=i.createElement(i.Fragment,null,$,i.createElement("span",{className:`${t}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=or.Form)===null||d===void 0?void 0:d.optional))));const R=K({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:w||P,[`${t}-item-no-colon`]:!x});return i.createElement(mb,Object.assign({},b,{className:S}),i.createElement("label",{htmlFor:r,className:R,title:typeof n=="string"?n:""},$))},pz=vz,hz={success:np,warning:rp,error:Na,validating:Ta};function _b(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:a,prefixCls:l,meta:s,noStyle:c}=e;const u=`${l}-item`,{feedbackIcons:d}=i.useContext(pr),f=Nb(n,r,s,null,!!o,a),{isFormItemInput:m,status:g,hasFeedback:p,feedbackIcon:v}=i.useContext(jn),h=i.useMemo(()=>{var b;let y;if(o){const S=o!==!0&&o.icons||d,$=f&&((b=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||b===void 0?void 0:b[f]),x=f&&hz[f];y=$!==!1&&x?i.createElement("span",{className:K(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},$||i.createElement(x,null)):null}const C={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:y,isFormItemInput:!0};return c&&(C.status=(f??g)||"",C.isFormItemInput=m,C.hasFeedback=!!(o??p),C.feedbackIcon=o!==void 0?C.feedbackIcon:v),C},[f,o,c,m,g]);return i.createElement(jn.Provider,{value:h},t)}var bz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function yz(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:l,warnings:s,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:m,fieldId:g,required:p,isRequired:v,onSubItemMetaChange:h}=e,b=bz(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),y=`${t}-item`,{requiredMark:C}=i.useContext(pr),S=i.useRef(null),$=qi(l),x=qi(s),E=a!=null,O=!!(E||l.length||s.length),w=!!S.current&&_a(S.current),[P,R]=i.useState(null);xt(()=>{if(O&&S.current){const L=getComputedStyle(S.current);R(parseInt(L.marginBottom,10))}},[O,w]);const M=L=>{L||R(null)},N=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const T=L?$:u.errors,_=L?x:u.warnings;return Nb(T,_,u,"",!!d,c)}(),z=K(y,n,r,{[`${y}-with-help`]:E||$.length||x.length,[`${y}-has-feedback`]:N&&d,[`${y}-has-success`]:N==="success",[`${y}-has-warning`]:N==="warning",[`${y}-has-error`]:N==="error",[`${y}-is-validating`]:N==="validating",[`${y}-hidden`]:f});return i.createElement("div",{className:z,style:o,ref:S},i.createElement(NM,Object.assign({className:`${y}-row`},Ft(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),i.createElement(pz,Object.assign({htmlFor:g},e,{requiredMark:C,required:p??v,prefixCls:t})),i.createElement(sz,Object.assign({},e,u,{errors:$,warnings:x,prefixCls:t,status:N,help:a,marginBottom:P,onErrorVisibleChanged:M}),i.createElement(Tp.Provider,{value:h},i.createElement(_b,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:N},m)))),!!P&&i.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-P}}))}const Cz="__SPLIT__";function Sz(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],l=t[o];return a===l||typeof a=="function"||typeof l=="function"})}const xz=i.memo(e=>{let{children:t}=e;return t},(e,t)=>Sz(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Km(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function $z(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:l,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:g,hidden:p,help:v}=e,{getPrefixCls:h}=i.useContext(Ve),{name:b}=i.useContext(pr),y=tz(c),C=typeof y=="function",S=i.useContext(Tp),{validateTrigger:$}=i.useContext(Xr),x=g!==void 0?g:$,E=t!=null,O=h("form",a),w=tn(O),[P,R,M]=ld(O,w);Lr();const I=i.useContext(Sa),N=i.useRef(),[z,L]=rz({}),[T,_]=Gr(()=>Km()),B=G=>{const ne=I==null?void 0:I.getKey(G.name);if(_(G.destroy?Km():G,!0),n&&v!==!1&&S){let J=G.name;if(G.destroy)J=N.current||J;else if(ne!==void 0){const[oe,Z]=ne;J=[oe].concat(ve(Z)),N.current=J}S(G,J)}},j=(G,ne)=>{L(J=>{const oe=Object.assign({},J),k=[].concat(ve(G.name.slice(0,-1)),ve(ne)).join(Cz);return G.destroy?delete oe[k]:oe[k]=G,oe})},[A,V]=i.useMemo(()=>{const G=ve(T.errors),ne=ve(T.warnings);return Object.values(z).forEach(J=>{G.push.apply(G,ve(J.errors||[])),ne.push.apply(ne,ve(J.warnings||[]))}),[G,ne]},[z,T.errors,T.warnings]),X=oz();function te(G,ne,J){return n&&!p?i.createElement(_b,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:T,errors:A,warnings:V,noStyle:!0},G):i.createElement(yz,Object.assign({key:"row"},e,{className:K(r,M,w,R),prefixCls:O,fieldId:ne,isRequired:J,errors:A,warnings:V,meta:T,onSubItemMetaChange:j}),G)}if(!E&&!C&&!o)return P(te(y));let W={};return typeof d=="string"?W.label=d:t&&(W.label=String(t)),f&&(W=Object.assign(Object.assign({},W),f)),P(i.createElement(bu,Object.assign({},e,{messageVariables:W,trigger:m,validateTrigger:x,onMetaChange:B}),(G,ne,J)=>{const oe=da(t).length&&ne?ne.name:[],Z=Pb(oe,b),k=u!==void 0?u:!!(s&&s.some(Y=>{if(Y&&typeof Y=="object"&&Y.required&&!Y.warningOnly)return!0;if(typeof Y=="function"){const U=Y(J);return U&&U.required&&!U.warningOnly}return!1})),Q=Object.assign({},G);let ee=null;if(Array.isArray(y)&&E)ee=y;else if(!(C&&(!(l||o)||E))){if(!(o&&!C&&!E))if(Ln(y)){const Y=Object.assign(Object.assign({},y.props),Q);if(Y.id||(Y.id=Z),v||A.length>0||V.length>0||e.extra){const se=[];(v||A.length>0)&&se.push(`${Z}_help`),e.extra&&se.push(`${Z}_extra`),Y["aria-describedby"]=se.join(" ")}A.length>0&&(Y["aria-invalid"]="true"),k&&(Y["aria-required"]="true"),Jn(y)&&(Y.ref=X(oe,y)),new Set([].concat(ve(da(m)),ve(da(x)))).forEach(se=>{Y[se]=function(){for(var ue,re,le,ce,pe,me=arguments.length,be=new Array(me),ye=0;ye<me;ye++)be[ye]=arguments[ye];(le=Q[se])===null||le===void 0||(ue=le).call.apply(ue,[Q].concat(be)),(pe=(ce=y.props)[se])===null||pe===void 0||(re=pe).call.apply(re,[ce].concat(be))}});const ie=[Y["aria-required"],Y["aria-invalid"],Y["aria-describedby"]];ee=i.createElement(xz,{control:Q,update:y,childProps:ie},dn(y,Y))}else C&&(l||o)&&!E?ee=y(J):ee=y}return te(ee,Z,k)}))}const zb=$z;zb.useStatus=nz;const wz=zb;var Ez=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Oz=e=>{var{prefixCls:t,children:n}=e,r=Ez(e,["prefixCls","children"]);const{getPrefixCls:o}=i.useContext(Ve),a=o("form",t),l=i.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return i.createElement(Ip,Object.assign({},r),(s,c,u)=>i.createElement(Cu.Provider,{value:l},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))},Iz=Oz;function Rz(){const{form:e}=i.useContext(pr);return e}const yr=ez;yr.Item=wz;yr.List=Iz;yr.ErrorList=Rb;yr.useForm=Tb;yr.useFormInstance=Rz;yr.useWatch=Np;yr.Provider=Mp;yr.create=()=>{};const N3=yr;function Lb(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Lc(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var jc=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Ha=i.createContext(null),Vm=0;function Pz(e,t){var n=i.useState(function(){return Vm+=1,String(Vm)}),r=q(n,1),o=r[0],a=i.useContext(Ha),l={data:t,canPreview:e};return i.useEffect(function(){if(a)return a.register(o,l)},[]),i.useEffect(function(){a&&a.register(o,l)},[e,t]),o}function Nz(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function jb(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=i.useState(n?"loading":"normal"),a=q(o,2),l=a[0],s=a[1],c=i.useRef(!1),u=l==="error";i.useEffect(function(){var g=!0;return Nz(t).then(function(p){!p&&g&&s("error")}),function(){g=!1}},[t]),i.useEffect(function(){n&&!c.current?s("loading"):u&&s("normal")},[t]);var d=function(){s("normal")},f=function(p){c.current=!1,l==="loading"&&p!==null&&p!==void 0&&p.complete&&(p.naturalWidth||p.naturalHeight)&&(c.current=!0,d())},m=u&&r?{src:r}:{onLoad:d,src:t};return[f,m,l]}function nr(e,t,n,r){var o=Ns.unstable_batchedUpdates?function(l){Ns.unstable_batchedUpdates(n,l)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var si={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Tz(e,t,n,r){var o=i.useRef(null),a=i.useRef([]),l=i.useState(si),s=q(l,2),c=s[0],u=s[1],d=function(p){u(si),r&&!Vn(si,c)&&r({transform:si,action:p})},f=function(p,v){o.current===null&&(a.current=[],o.current=Et(function(){u(function(h){var b=h;return a.current.forEach(function(y){b=D(D({},b),y)}),o.current=null,r==null||r({transform:b,action:v}),b})})),a.current.push(D(D({},c),p))},m=function(p,v,h,b,y){var C=e.current,S=C.width,$=C.height,x=C.offsetWidth,E=C.offsetHeight,O=C.offsetLeft,w=C.offsetTop,P=p,R=c.scale*p;R>n?(R=n,P=n/c.scale):R<t&&(R=y?R:t,P=R/c.scale);var M=h??innerWidth/2,I=b??innerHeight/2,N=P-1,z=N*S*.5,L=N*$*.5,T=N*(M-c.x-O),_=N*(I-c.y-w),B=c.x-(T-z),j=c.y-(_-L);if(p<1&&R===1){var A=x*R,V=E*R,X=Lb(),te=X.width,W=X.height;A<=te&&V<=W&&(B=0,j=0)}f({x:B,y:j,scale:R},v)};return{transform:c,resetTransform:d,updateTransform:f,dispatchZoomChange:m}}function Wm(e,t,n,r){var o=t+n,a=(n-r)/2;if(n>r){if(t>0)return F({},e,a);if(t<0&&o<r)return F({},e,-a)}else if(t<0||o>r)return F({},e,t<0?a:-a);return{}}function Db(e,t,n,r){var o=Lb(),a=o.width,l=o.height,s=null;return e<=a&&t<=l?s={x:0,y:0}:(e>a||t>l)&&(s=D(D({},Wm("x",n,e,a)),Wm("y",r,t,l))),s}var Co=1,Mz=1;function _z(e,t,n,r,o,a,l){var s=o.rotate,c=o.scale,u=o.x,d=o.y,f=i.useState(!1),m=q(f,2),g=m[0],p=m[1],v=i.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),h=function($){!t||$.button!==0||($.preventDefault(),$.stopPropagation(),v.current={diffX:$.pageX-u,diffY:$.pageY-d,transformX:u,transformY:d},p(!0))},b=function($){n&&g&&a({x:$.pageX-v.current.diffX,y:$.pageY-v.current.diffY},"move")},y=function(){if(n&&g){p(!1);var $=v.current,x=$.transformX,E=$.transformY,O=u!==x&&d!==E;if(!O)return;var w=e.current.offsetWidth*c,P=e.current.offsetHeight*c,R=e.current.getBoundingClientRect(),M=R.left,I=R.top,N=s%180!==0,z=Db(N?P:w,N?w:P,M,I);z&&a(D({},z),"dragRebound")}},C=function($){if(!(!n||$.deltaY==0)){var x=Math.abs($.deltaY/100),E=Math.min(x,Mz),O=Co+E*r;$.deltaY>0&&(O=Co/O),l(O,"wheel",$.clientX,$.clientY)}};return i.useEffect(function(){var S,$,x,E;if(t){x=nr(window,"mouseup",y,!1),E=nr(window,"mousemove",b,!1);try{window.top!==window.self&&(S=nr(window.top,"mouseup",y,!1),$=nr(window.top,"mousemove",b,!1))}catch{}}return function(){var O,w,P,R;(O=x)===null||O===void 0||O.remove(),(w=E)===null||w===void 0||w.remove(),(P=S)===null||P===void 0||P.remove(),(R=$)===null||R===void 0||R.remove()}},[n,g,u,d,s,t]),{isMoving:g,onMouseDown:h,onMouseMove:b,onMouseUp:y,onWheel:C}}function Xi(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function zz(e,t,n,r){var o=Xi(e,n),a=Xi(t,r);if(o===0&&a===0)return[e.x,e.y];var l=o/(o+a),s=e.x+l*(t.x-e.x),c=e.y+l*(t.y-e.y);return[s,c]}function Lz(e,t,n,r,o,a,l){var s=o.rotate,c=o.scale,u=o.x,d=o.y,f=i.useState(!1),m=q(f,2),g=m[0],p=m[1],v=i.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),h=function($){v.current=D(D({},v.current),$)},b=function($){if(t){$.stopPropagation(),p(!0);var x=$.touches,E=x===void 0?[]:x;E.length>1?h({point1:{x:E[0].clientX,y:E[0].clientY},point2:{x:E[1].clientX,y:E[1].clientY},eventType:"touchZoom"}):h({point1:{x:E[0].clientX-u,y:E[0].clientY-d},eventType:"move"})}},y=function($){var x=$.touches,E=x===void 0?[]:x,O=v.current,w=O.point1,P=O.point2,R=O.eventType;if(E.length>1&&R==="touchZoom"){var M={x:E[0].clientX,y:E[0].clientY},I={x:E[1].clientX,y:E[1].clientY},N=zz(w,P,M,I),z=q(N,2),L=z[0],T=z[1],_=Xi(M,I)/Xi(w,P);l(_,"touchZoom",L,T,!0),h({point1:M,point2:I,eventType:"touchZoom"})}else R==="move"&&(a({x:E[0].clientX-w.x,y:E[0].clientY-w.y},"move"),h({eventType:"move"}))},C=function(){if(n){if(g&&p(!1),h({eventType:"none"}),r>c)return a({x:0,y:0,scale:r},"touchZoom");var $=e.current.offsetWidth*c,x=e.current.offsetHeight*c,E=e.current.getBoundingClientRect(),O=E.left,w=E.top,P=s%180!==0,R=Db(P?x:$,P?$:x,O,w);R&&a(D({},R),"dragRebound")}};return i.useEffect(function(){var S;return n&&t&&(S=nr(window,"touchmove",function($){return $.preventDefault()},{passive:!1})),function(){var $;($=S)===null||$===void 0||$.remove()}},[n,t]),{isTouching:g,onTouchStart:b,onTouchMove:y,onTouchEnd:C}}var jz=function(t){var n=t.visible,r=t.maskTransitionName,o=t.getContainer,a=t.prefixCls,l=t.rootClassName,s=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,m=t.transform,g=t.count,p=t.scale,v=t.minScale,h=t.maxScale,b=t.closeIcon,y=t.onSwitchLeft,C=t.onSwitchRight,S=t.onClose,$=t.onZoomIn,x=t.onZoomOut,E=t.onRotateRight,O=t.onRotateLeft,w=t.onFlipX,P=t.onFlipY,R=t.toolbarRender,M=t.zIndex,I=i.useContext(Ha),N=s.rotateLeft,z=s.rotateRight,L=s.zoomIn,T=s.zoomOut,_=s.close,B=s.left,j=s.right,A=s.flipX,V=s.flipY,X="".concat(a,"-operations-operation");i.useEffect(function(){var ne=function(oe){oe.keyCode===fe.ESC&&S()};return n&&window.addEventListener("keydown",ne),function(){window.removeEventListener("keydown",ne)}},[n]);var te=[{icon:V,onClick:P,type:"flipY"},{icon:A,onClick:w,type:"flipX"},{icon:N,onClick:O,type:"rotateLeft"},{icon:z,onClick:E,type:"rotateRight"},{icon:T,onClick:x,type:"zoomOut",disabled:p<=v},{icon:L,onClick:$,type:"zoomIn",disabled:p===h}],W=te.map(function(ne){var J,oe=ne.icon,Z=ne.onClick,k=ne.type,Q=ne.disabled;return i.createElement("div",{className:K(X,(J={},F(J,"".concat(a,"-operations-operation-").concat(k),!0),F(J,"".concat(a,"-operations-operation-disabled"),!!Q),J)),onClick:Z,key:k},oe)}),G=i.createElement("div",{className:"".concat(a,"-operations")},W);return i.createElement(Gn,{visible:n,motionName:r},function(ne){var J=ne.className,oe=ne.style;return i.createElement(fl,{open:!0,getContainer:o??document.body},i.createElement("div",{className:K("".concat(a,"-operations-wrapper"),J,l),style:D(D({},oe),{},{zIndex:M})},b===null?null:i.createElement("button",{className:"".concat(a,"-close"),onClick:S},b||_),u&&i.createElement(i.Fragment,null,i.createElement("div",{className:K("".concat(a,"-switch-left"),F({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:y},B),i.createElement("div",{className:K("".concat(a,"-switch-right"),F({},"".concat(a,"-switch-right-disabled"),f===g-1)),onClick:C},j)),i.createElement("div",{className:"".concat(a,"-footer")},d&&i.createElement("div",{className:"".concat(a,"-progress")},c?c(f+1,g):"".concat(f+1," / ").concat(g)),R?R(G,D({icons:{flipYIcon:W[0],flipXIcon:W[1],rotateLeftIcon:W[2],rotateRightIcon:W[3],zoomOutIcon:W[4],zoomInIcon:W[5]},actions:{onFlipY:P,onFlipX:w,onRotateLeft:O,onRotateRight:E,onZoomOut:x,onZoomIn:$},transform:m},I?{current:f,total:g}:{})):G)))})},Dz=["fallback","src","imgRef"],Bz=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Az=function(t){var n=t.fallback,r=t.src,o=t.imgRef,a=Qe(t,Dz),l=jb({src:r,fallback:n}),s=q(l,2),c=s[0],u=s[1];return ae.createElement("img",de({ref:function(f){o.current=f,c(f)}},a,u))},Bb=function(t){var n=t.prefixCls,r=t.src,o=t.alt,a=t.fallback,l=t.movable,s=l===void 0?!0:l,c=t.onClose,u=t.visible,d=t.icons,f=d===void 0?{}:d,m=t.rootClassName,g=t.closeIcon,p=t.getContainer,v=t.current,h=v===void 0?0:v,b=t.count,y=b===void 0?1:b,C=t.countRender,S=t.scaleStep,$=S===void 0?.5:S,x=t.minScale,E=x===void 0?1:x,O=t.maxScale,w=O===void 0?50:O,P=t.transitionName,R=P===void 0?"zoom":P,M=t.maskTransitionName,I=M===void 0?"fade":M,N=t.imageRender,z=t.imgCommonProps,L=t.toolbarRender,T=t.onTransform,_=t.onChange,B=Qe(t,Bz),j=i.useRef(),A=i.useContext(Ha),V=A&&y>1,X=A&&y>=1,te=i.useState(!0),W=q(te,2),G=W[0],ne=W[1],J=Tz(j,E,w,T),oe=J.transform,Z=J.resetTransform,k=J.updateTransform,Q=J.dispatchZoomChange,ee=_z(j,s,u,$,oe,k,Q),Y=ee.isMoving,U=ee.onMouseDown,ie=ee.onWheel,se=Lz(j,s,u,E,oe,k,Q),ue=se.isTouching,re=se.onTouchStart,le=se.onTouchMove,ce=se.onTouchEnd,pe=oe.rotate,me=oe.scale,be=K(F({},"".concat(n,"-moving"),Y));i.useEffect(function(){G||ne(!0)},[G]);var ye=function(){Z("close")},xe=function(){Q(Co+$,"zoomIn")},qe=function(){Q(Co/(Co+$),"zoomOut")},Ie=function(){k({rotate:pe+90},"rotateRight")},Ce=function(){k({rotate:pe-90},"rotateLeft")},$e=function(){k({flipX:!oe.flipX},"flipX")},he=function(){k({flipY:!oe.flipY},"flipY")},We=function(Ge){Ge==null||Ge.preventDefault(),Ge==null||Ge.stopPropagation(),h>0&&(ne(!1),Z("prev"),_==null||_(h-1,h))},_e=function(Ge){Ge==null||Ge.preventDefault(),Ge==null||Ge.stopPropagation(),h<y-1&&(ne(!1),Z("next"),_==null||_(h+1,h))},Je=function(Ge){!u||!V||(Ge.keyCode===fe.LEFT?We():Ge.keyCode===fe.RIGHT&&_e())},Re=function(Ge){u&&(me!==1?k({x:0,y:0,scale:1},"doubleClick"):Q(Co+$,"doubleClick",Ge.clientX,Ge.clientY))};i.useEffect(function(){var ke=nr(window,"keydown",Je,!1);return function(){ke.remove()}},[u,V,h]);var je=ae.createElement(Az,de({},z,{width:t.width,height:t.height,imgRef:j,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(oe.x,"px, ").concat(oe.y,"px, 0) scale3d(").concat(oe.flipX?"-":"").concat(me,", ").concat(oe.flipY?"-":"").concat(me,", 1) rotate(").concat(pe,"deg)"),transitionDuration:(!G||ue)&&"0s"},fallback:a,src:r,onWheel:ie,onMouseDown:U,onDoubleClick:Re,onTouchStart:re,onTouchMove:le,onTouchEnd:ce,onTouchCancel:ce}));return ae.createElement(ae.Fragment,null,ae.createElement(xp,de({transitionName:R,maskTransitionName:I,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:be},rootClassName:m,getContainer:p},B,{afterClose:ye}),ae.createElement("div",{className:"".concat(n,"-img-wrapper")},N?N(je,D({transform:oe},A?{current:h}:{})):je)),ae.createElement(jz,{visible:u,transform:oe,maskTransitionName:I,closeIcon:g,getContainer:p,prefixCls:n,rootClassName:m,icons:f,countRender:C,showSwitch:V,showProgress:X,current:h,count:y,scale:me,minScale:E,maxScale:w,toolbarRender:L,onSwitchLeft:We,onSwitchRight:_e,onZoomIn:xe,onZoomOut:qe,onRotateRight:Ie,onRotateLeft:Ce,onFlipX:$e,onFlipY:he,onClose:c,zIndex:B.zIndex!==void 0?B.zIndex+1:void 0}))};function Fz(e){var t=i.useState({}),n=q(t,2),r=n[0],o=n[1],a=i.useCallback(function(s,c){return o(function(u){return D(D({},u),{},F({},s,c))}),function(){o(function(u){var d=D({},u);return delete d[s],d})}},[]),l=i.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var c={};return Object.keys(s).forEach(function(u){["src"].concat(ve(jc)).includes(u)&&(c[u]=s[u])}),{data:c}}):Object.keys(r).reduce(function(s,c){var u=r[c],d=u.canPreview,f=u.data;return d&&s.push({data:f,id:c}),s},[])},[e,r]);return[l,a]}var Hz=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],kz=["src"],Kz=function(t){var n,r=t.previewPrefixCls,o=r===void 0?"rc-image-preview":r,a=t.children,l=t.icons,s=l===void 0?{}:l,c=t.items,u=t.preview,d=t.fallback,f=at(u)==="object"?u:{},m=f.visible,g=f.onVisibleChange,p=f.getContainer,v=f.current,h=f.movable,b=f.minScale,y=f.maxScale,C=f.countRender,S=f.closeIcon,$=f.onChange,x=f.onTransform,E=f.toolbarRender,O=f.imageRender,w=Qe(f,Hz),P=Fz(c),R=q(P,2),M=R[0],I=R[1],N=At(0,{value:v}),z=q(N,2),L=z[0],T=z[1],_=i.useState(!1),B=q(_,2),j=B[0],A=B[1],V=((n=M[L])===null||n===void 0?void 0:n.data)||{},X=V.src,te=Qe(V,kz),W=At(!!m,{value:m,onChange:function(ue,re){g==null||g(ue,re,L)}}),G=q(W,2),ne=G[0],J=G[1],oe=i.useState(null),Z=q(oe,2),k=Z[0],Q=Z[1],ee=i.useCallback(function(se,ue,re){var le=M.findIndex(function(ce){return ce.id===se});J(!0),Q({x:ue,y:re}),T(le<0?0:le),A(!0)},[M]);i.useEffect(function(){ne?j||T(0):A(!1)},[ne]);var Y=function(ue,re){T(ue),$==null||$(ue,re)},U=function(){J(!1),Q(null)},ie=i.useMemo(function(){return{register:I,onPreview:ee}},[I,ee]);return i.createElement(Ha.Provider,{value:ie},a,i.createElement(Bb,de({"aria-hidden":!ne,movable:h,visible:ne,prefixCls:o,closeIcon:S,onClose:U,mousePosition:k,imgCommonProps:te,src:X,fallback:d,icons:s,minScale:b,maxScale:y,getContainer:p,current:L,count:M.length,countRender:C,onTransform:x,toolbarRender:E,imageRender:O,onChange:Y},w)))},Vz=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Wz=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Rl=function(t){var n=t.src,r=t.alt,o=t.onPreviewClose,a=t.prefixCls,l=a===void 0?"rc-image":a,s=t.previewPrefixCls,c=s===void 0?"".concat(l,"-preview"):s,u=t.placeholder,d=t.fallback,f=t.width,m=t.height,g=t.style,p=t.preview,v=p===void 0?!0:p,h=t.className,b=t.onClick,y=t.onError,C=t.wrapperClassName,S=t.wrapperStyle,$=t.rootClassName,x=Qe(t,Vz),E=u&&u!==!0,O=at(v)==="object"?v:{},w=O.src,P=O.visible,R=P===void 0?void 0:P,M=O.onVisibleChange,I=M===void 0?o:M,N=O.getContainer,z=N===void 0?void 0:N,L=O.mask,T=O.maskClassName,_=O.movable,B=O.icons,j=O.scaleStep,A=O.minScale,V=O.maxScale,X=O.imageRender,te=O.toolbarRender,W=Qe(O,Wz),G=w??n,ne=At(!!R,{value:R,onChange:I}),J=q(ne,2),oe=J[0],Z=J[1],k=jb({src:n,isCustomPlaceholder:E,fallback:d}),Q=q(k,3),ee=Q[0],Y=Q[1],U=Q[2],ie=i.useState(null),se=q(ie,2),ue=se[0],re=se[1],le=i.useContext(Ha),ce=!!v,pe=function(){Z(!1),re(null)},me=K(l,C,$,F({},"".concat(l,"-error"),U==="error")),be=i.useMemo(function(){var Ie={};return jc.forEach(function(Ce){t[Ce]!==void 0&&(Ie[Ce]=t[Ce])}),Ie},jc.map(function(Ie){return t[Ie]})),ye=i.useMemo(function(){return D(D({},be),{},{src:G})},[G,be]),xe=Pz(ce,ye),qe=function(Ce){var $e=Lc(Ce.target),he=$e.left,We=$e.top;le?le.onPreview(xe,he,We):(re({x:he,y:We}),Z(!0)),b==null||b(Ce)};return i.createElement(i.Fragment,null,i.createElement("div",de({},x,{className:me,onClick:ce?qe:b,style:D({width:f,height:m},S)}),i.createElement("img",de({},be,{className:K("".concat(l,"-img"),F({},"".concat(l,"-img-placeholder"),u===!0),h),style:D({height:m},g),ref:ee},Y,{width:f,height:m,onError:y})),U==="loading"&&i.createElement("div",{"aria-hidden":"true",className:"".concat(l,"-placeholder")},u),L&&ce&&i.createElement("div",{className:K("".concat(l,"-mask"),T),style:{display:(g==null?void 0:g.display)==="none"?"none":void 0}},L)),!le&&ce&&i.createElement(Bb,de({"aria-hidden":!oe,visible:oe,prefixCls:c,onClose:pe,mousePosition:ue,src:G,alt:r,fallback:d,getContainer:z,icons:B,movable:_,scaleStep:j,minScale:A,maxScale:V,rootClassName:$,imageRender:X,imgCommonProps:be,toolbarRender:te},W)))};Rl.PreviewGroup=Kz;Rl.displayName="Image";var Gz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const qz=Gz;var Xz=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:qz}))};const Uz=i.forwardRef(Xz);var Yz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};const Zz=Yz;var Qz=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:Zz}))};const Jz=i.forwardRef(Qz);var eL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};const tL=eL;var nL=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:tL}))};const Gm=i.forwardRef(nL);var rL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};const oL=rL;var aL=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:oL}))};const iL=i.forwardRef(aL);var lL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};const sL=lL;var cL=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:sL}))};const uL=i.forwardRef(cL),Dc=e=>({position:e||"absolute",inset:0}),dL=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:a,colorTextLightSolid:l}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:l,background:new Rt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},mr),{padding:`0 ${H(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},fL=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:a,paddingLG:l,previewOperationColorDisabled:s,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,m=new Rt(n).setAlpha(.1),g=m.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:g.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${H(l)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},mL=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:a,motionDurationSlow:l}=e,s=new Rt(t).setAlpha(.1),c=s.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${l}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},gL=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Dc()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Dc()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[fL(e),mL(e)]}]},vL=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},dL(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Dc())}}},pL=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Bo(e,"zoom"),"&":zp(e,!0)}},hL=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Rt(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Rt(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Rt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),Ab=zt("Image",e=>{const t=`${e.componentCls}-preview`,n=pt(e,{previewCls:t,modalMaskBg:new Rt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[vL(n),gL(n),Lp(pt(n,{componentCls:t})),pL(n)]},hL);var bL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Fb={rotateLeft:i.createElement(Uz,null),rotateRight:i.createElement(Jz,null),zoomIn:i.createElement(iL,null),zoomOut:i.createElement(uL,null),close:i.createElement(ll,null),left:i.createElement(Ea,null),right:i.createElement(To,null),flipX:i.createElement(Gm,null),flipY:i.createElement(Gm,{rotate:90})},yL=e=>{var{previewPrefixCls:t,preview:n}=e,r=bL(e,["previewPrefixCls","preview"]);const{getPrefixCls:o}=i.useContext(Ve),a=o("image",t),l=`${a}-preview`,s=o(),c=tn(a),[u,d,f]=Ab(a,c),[m]=jo("ImagePreview",typeof n=="object"?n.zIndex:void 0),g=i.useMemo(()=>{var p;if(n===!1)return n;const v=typeof n=="object"?n:{},h=K(d,f,c,(p=v.rootClassName)!==null&&p!==void 0?p:"");return Object.assign(Object.assign({},v),{transitionName:Tr(s,"zoom",v.transitionName),maskTransitionName:Tr(s,"fade",v.maskTransitionName),rootClassName:h,zIndex:m})},[n]);return u(i.createElement(Rl.PreviewGroup,Object.assign({preview:g,previewPrefixCls:l,icons:Fb},r)))},CL=yL;var qm=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hb=e=>{const{prefixCls:t,preview:n,className:r,rootClassName:o,style:a}=e,l=qm(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:c=or,getPopupContainer:u,image:d}=i.useContext(Ve),f=s("image",t),m=s(),g=c.Image||or.Image,p=tn(f),[v,h,b]=Ab(f,p),y=K(o,h,b,p),C=K(r,h,d==null?void 0:d.className),[S]=jo("ImagePreview",typeof n=="object"?n.zIndex:void 0),$=i.useMemo(()=>{if(n===!1)return n;const E=typeof n=="object"?n:{},{getContainer:O}=E,w=qm(E,["getContainer"]);return Object.assign(Object.assign({mask:i.createElement("div",{className:`${f}-mask-info`},i.createElement(hb,null),g==null?void 0:g.preview),icons:Fb},w),{getContainer:O??u,transitionName:Tr(m,"zoom",E.transitionName),maskTransitionName:Tr(m,"fade",E.maskTransitionName),zIndex:S})},[n,g]),x=Object.assign(Object.assign({},d==null?void 0:d.style),a);return v(i.createElement(Rl,Object.assign({prefixCls:f,preview:$,rootClassName:y,className:C,style:x},l)))};Hb.PreviewGroup=CL;const T3=Hb;function SL(e,t,n){return typeof n=="boolean"?n:e.length?!0:on(t).some(o=>o.type===_h)}const xL=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:a}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:a,background:o},[`${t}-sider-zero-width-trigger`]:{color:a,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},$L=xL,wL=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:a,triggerBg:l,headerHeight:s,headerPadding:c,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:m,zeroTriggerWidth:g,motionDurationMid:p,motionDurationSlow:v,fontSize:h,borderRadius:b,bodyBg:y,headerBg:C,siderBg:S}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:y,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:S,transition:`all ${p}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:H(f),textAlign:"center",background:l,cursor:"pointer",transition:`all ${p}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:m,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:S,borderStartStartRadius:0,borderStartEndRadius:b,borderEndEndRadius:b,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:b,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b}}}}},$L(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:c,color:u,lineHeight:H(s),background:C,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:h,background:a},[`${n}-content`]:{flex:"auto",minHeight:0}}},EL=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:l,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+l*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},kb=zt("Layout",e=>[wL(e)],EL,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var Kb=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Pl(e){let{suffixCls:t,tagName:n,displayName:r}=e;return o=>i.forwardRef((l,s)=>i.createElement(o,Object.assign({ref:s,suffixCls:t,tagName:n},l)))}const sd=i.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,l=Kb(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=i.useContext(Ve),c=s("layout",n),[u,d,f]=kb(c),m=r?`${c}-${r}`:c;return u(i.createElement(a,Object.assign({className:K(n||m,o,d,f),ref:t},l)))}),OL=i.forwardRef((e,t)=>{const{direction:n}=i.useContext(Ve),[r,o]=i.useState([]),{prefixCls:a,className:l,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,m=Kb(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=Ft(m,["suffixCls"]),{getPrefixCls:p,layout:v}=i.useContext(Ve),h=p("layout",a),b=SL(r,c,u),[y,C,S]=kb(h),$=K(h,{[`${h}-has-sider`]:b,[`${h}-rtl`]:n==="rtl"},v==null?void 0:v.className,l,s,C,S),x=i.useMemo(()=>({siderHook:{addSider:E=>{o(O=>[].concat(ve(O),[E]))},removeSider:E=>{o(O=>O.filter(w=>w!==E))}}}),[]);return y(i.createElement(Mh.Provider,{value:x},i.createElement(d,Object.assign({ref:t,className:$,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},g),c)))}),IL=Pl({tagName:"div",displayName:"Layout"})(OL),RL=Pl({suffixCls:"header",tagName:"header",displayName:"Header"})(sd),PL=Pl({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(sd),NL=Pl({suffixCls:"content",tagName:"main",displayName:"Content"})(sd),TL=IL,Vo=TL;Vo.Header=RL;Vo.Footer=PL;Vo.Content=NL;Vo.Sider=_h;Vo._InternalSiderContext=xl;const M3=Vo,ML=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const o=n[r];o!==void 0&&(e[r]=o)})}return e},_L=ML;var zL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const LL=zL;var jL=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:LL}))};const Xm=i.forwardRef(jL);var DL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const BL=DL;var AL=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:BL}))};const Um=i.forwardRef(AL);var FL={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},HL=["10","20","50","100"],kL=function(t){var n=t.pageSizeOptions,r=n===void 0?HL:n,o=t.locale,a=t.changeSize,l=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,m=t.disabled,g=t.buildOptionText,p=ae.useState(""),v=q(p,2),h=v[0],b=v[1],y=function(){return!h||Number.isNaN(h)?void 0:Number(h)},C=typeof g=="function"?g:function(N){return"".concat(N," ").concat(o.items_per_page)},S=function(z){a==null||a(Number(z))},$=function(z){b(z.target.value)},x=function(z){s||h===""||(b(""),!(z.relatedTarget&&(z.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||z.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(y())))},E=function(z){h!==""&&(z.keyCode===fe.ENTER||z.type==="click")&&(b(""),c==null||c(y()))},O=function(){return r.some(function(z){return z.toString()===l.toString()})?r:r.concat([l.toString()]).sort(function(z,L){var T=Number.isNaN(Number(z))?0:Number(z),_=Number.isNaN(Number(L))?0:Number(L);return T-_})},w="".concat(u,"-options");if(!a&&!c)return null;var P=null,R=null,M=null;if(a&&d){var I=O().map(function(N,z){return ae.createElement(d.Option,{key:z,value:N.toString()},C(N))});P=ae.createElement(d,{disabled:m,prefixCls:f,showSearch:!1,className:"".concat(w,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(l||r[0]).toString(),onChange:S,getPopupContainer:function(z){return z.parentNode},"aria-label":o.page_size,defaultOpen:!1},I)}return c&&(s&&(M=typeof s=="boolean"?ae.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:m,className:"".concat(w,"-quick-jumper-button")},o.jump_to_confirm):ae.createElement("span",{onClick:E,onKeyUp:E},s)),R=ae.createElement("div",{className:"".concat(w,"-quick-jumper")},o.jump_to,ae.createElement("input",{disabled:m,type:"text",value:h,onChange:$,onKeyUp:E,onBlur:x,"aria-label":o.page}),o.page,M)),ae.createElement("li",{className:w},P,R)},ea=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,l=t.className,s=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),m=K(f,"".concat(f,"-").concat(o),(n={},F(n,"".concat(f,"-active"),a),F(n,"".concat(f,"-disabled"),!o),n),l),g=function(){c(o)},p=function(b){u(b,c,o)},v=d(o,"page",ae.createElement("a",{rel:"nofollow"},o));return v?ae.createElement("li",{title:s?String(o):null,className:m,onClick:g,onKeyDown:p,tabIndex:0},v):null},KL=function(t,n,r){return r};function Ym(){}function Zm(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function jr(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var VL=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,l=a===void 0?"rc-select":a,s=t.className,c=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,m=t.total,g=m===void 0?0:m,p=t.pageSize,v=t.defaultPageSize,h=v===void 0?10:v,b=t.onChange,y=b===void 0?Ym:b,C=t.hideOnSinglePage,S=t.showPrevNextJumpers,$=S===void 0?!0:S,x=t.showQuickJumper,E=t.showLessItems,O=t.showTitle,w=O===void 0?!0:O,P=t.onShowSizeChange,R=P===void 0?Ym:P,M=t.locale,I=M===void 0?FL:M,N=t.style,z=t.totalBoundaryShowSizeChanger,L=z===void 0?50:z,T=t.disabled,_=t.simple,B=t.showTotal,j=t.showSizeChanger,A=t.pageSizeOptions,V=t.itemRender,X=V===void 0?KL:V,te=t.jumpPrevIcon,W=t.jumpNextIcon,G=t.prevIcon,ne=t.nextIcon,J=ae.useRef(null),oe=At(10,{value:p,defaultValue:h}),Z=q(oe,2),k=Z[0],Q=Z[1],ee=At(1,{value:u,defaultValue:f,postState:function(mt){return Math.max(1,Math.min(mt,jr(void 0,k,g)))}}),Y=q(ee,2),U=Y[0],ie=Y[1],se=ae.useState(U),ue=q(se,2),re=ue[0],le=ue[1];i.useEffect(function(){le(U)},[U]);var ce=Math.max(1,U-(E?3:5)),pe=Math.min(jr(void 0,k,g),U+(E?3:5));function me(Ye,mt){var wt=Ye||ae.createElement("button",{type:"button","aria-label":mt,className:"".concat(o,"-item-link")});return typeof Ye=="function"&&(wt=ae.createElement(Ye,D({},t))),wt}function be(Ye){var mt=Ye.target.value,wt=jr(void 0,k,g),kt;return mt===""?kt=mt:Number.isNaN(Number(mt))?kt=re:mt>=wt?kt=wt:kt=Number(mt),kt}function ye(Ye){return Zm(Ye)&&Ye!==U&&Zm(g)&&g>0}var xe=g>k?x:!1;function qe(Ye){(Ye.keyCode===fe.UP||Ye.keyCode===fe.DOWN)&&Ye.preventDefault()}function Ie(Ye){var mt=be(Ye);switch(mt!==re&&le(mt),Ye.keyCode){case fe.ENTER:he(mt);break;case fe.UP:he(mt-1);break;case fe.DOWN:he(mt+1);break}}function Ce(Ye){he(be(Ye))}function $e(Ye){var mt=jr(Ye,k,g),wt=U>mt&&mt!==0?mt:U;Q(Ye),le(wt),R==null||R(U,Ye),ie(wt),y==null||y(wt,Ye)}function he(Ye){if(ye(Ye)&&!T){var mt=jr(void 0,k,g),wt=Ye;return Ye>mt?wt=mt:Ye<1&&(wt=1),wt!==re&&le(wt),ie(wt),y==null||y(wt,k),wt}return U}var We=U>1,_e=U<jr(void 0,k,g),Je=j??g>L;function Re(){We&&he(U-1)}function je(){_e&&he(U+1)}function ke(){he(ce)}function Ge(){he(pe)}function ot(Ye,mt){if(Ye.key==="Enter"||Ye.charCode===fe.ENTER||Ye.keyCode===fe.ENTER){for(var wt=arguments.length,kt=new Array(wt>2?wt-2:0),nn=2;nn<wt;nn++)kt[nn-2]=arguments[nn];mt.apply(void 0,kt)}}function ge(Ye){ot(Ye,Re)}function Ae(Ye){ot(Ye,je)}function Xe(Ye){ot(Ye,ke)}function it(Ye){ot(Ye,Ge)}function Ke(Ye){var mt=X(Ye,"prev",me(G,"prev page"));return ae.isValidElement(mt)?ae.cloneElement(mt,{disabled:!We}):mt}function we(Ye){var mt=X(Ye,"next",me(ne,"next page"));return ae.isValidElement(mt)?ae.cloneElement(mt,{disabled:!_e}):mt}function De(Ye){(Ye.type==="click"||Ye.keyCode===fe.ENTER)&&he(re)}var Ne=null,Fe=zn(t,{aria:!0,data:!0}),Be=B&&ae.createElement("li",{className:"".concat(o,"-total-text")},B(g,[g===0?0:(U-1)*k+1,U*k>g?g:U*k])),ze=null,Ee=jr(void 0,k,g);if(C&&g<=k)return null;var Se=[],Ze={rootPrefixCls:o,onClick:he,onKeyPress:ot,showTitle:w,itemRender:X,page:-1},lt=U-1>0?U-1:0,rt=U+1<Ee?U+1:Ee,Te=x&&x.goButton,Le=Te,dt=null;_&&(Te&&(typeof Te=="boolean"?Le=ae.createElement("button",{type:"button",onClick:De,onKeyUp:De},I.jump_to_confirm):Le=ae.createElement("span",{onClick:De,onKeyUp:De},Te),Le=ae.createElement("li",{title:w?"".concat(I.jump_to).concat(U,"/").concat(Ee):null,className:"".concat(o,"-simple-pager")},Le)),dt=ae.createElement("li",{title:w?"".concat(U,"/").concat(Ee):null,className:"".concat(o,"-simple-pager")},ae.createElement("input",{type:"text",value:re,disabled:T,onKeyDown:qe,onKeyUp:Ie,onChange:Ie,onBlur:Ce,size:3}),ae.createElement("span",{className:"".concat(o,"-slash")},"/"),Ee));var Pe=E?1:2;if(Ee<=3+Pe*2){Ee||Se.push(ae.createElement(ea,de({},Ze,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var Me=1;Me<=Ee;Me+=1)Se.push(ae.createElement(ea,de({},Ze,{key:Me,page:Me,active:U===Me})))}else{var ct=E?I.prev_3:I.prev_5,Oe=E?I.next_3:I.next_5,He=X(ce,"jump-prev",me(te,"prev page")),et=X(pe,"jump-next",me(W,"next page"));$&&(Ne=He?ae.createElement("li",{title:w?ct:null,key:"prev",onClick:ke,tabIndex:0,onKeyDown:Xe,className:K("".concat(o,"-jump-prev"),F({},"".concat(o,"-jump-prev-custom-icon"),!!te))},He):null,ze=et?ae.createElement("li",{title:w?Oe:null,key:"next",onClick:Ge,tabIndex:0,onKeyDown:it,className:K("".concat(o,"-jump-next"),F({},"".concat(o,"-jump-next-custom-icon"),!!W))},et):null);var ut=Math.max(1,U-Pe),Pt=Math.min(U+Pe,Ee);U-1<=Pe&&(Pt=1+Pe*2),Ee-U<=Pe&&(ut=Ee-Pe*2);for(var Ot=ut;Ot<=Pt;Ot+=1)Se.push(ae.createElement(ea,de({},Ze,{key:Ot,page:Ot,active:U===Ot})));if(U-1>=Pe*2&&U!==1+2&&(Se[0]=ae.cloneElement(Se[0],{className:K("".concat(o,"-item-after-jump-prev"),Se[0].props.className)}),Se.unshift(Ne)),Ee-U>=Pe*2&&U!==Ee-2){var Ht=Se[Se.length-1];Se[Se.length-1]=ae.cloneElement(Ht,{className:K("".concat(o,"-item-before-jump-next"),Ht.props.className)}),Se.push(ze)}ut!==1&&Se.unshift(ae.createElement(ea,de({},Ze,{key:1,page:1}))),Pt!==Ee&&Se.push(ae.createElement(ea,de({},Ze,{key:Ee,page:Ee})))}var Lt=Ke(lt);if(Lt){var Zt=!We||!Ee;Lt=ae.createElement("li",{title:w?I.prev_page:null,onClick:Re,tabIndex:Zt?null:0,onKeyDown:ge,className:K("".concat(o,"-prev"),F({},"".concat(o,"-disabled"),Zt)),"aria-disabled":Zt},Lt)}var qt=we(rt);if(qt){var jt,bn;_?(jt=!_e,bn=We?0:null):(jt=!_e||!Ee,bn=jt?null:0),qt=ae.createElement("li",{title:w?I.next_page:null,onClick:je,tabIndex:bn,onKeyDown:Ae,className:K("".concat(o,"-next"),F({},"".concat(o,"-disabled"),jt)),"aria-disabled":jt},qt)}var Dn=K(o,s,(n={},F(n,"".concat(o,"-simple"),_),F(n,"".concat(o,"-disabled"),T),n));return ae.createElement("ul",de({className:Dn,style:N,ref:J},Fe),Be,Lt,_?dt:Se,qt,ae.createElement(kL,{locale:I,rootPrefixCls:o,disabled:T,selectComponentClass:c,selectPrefixCls:l,changeSize:Je?$e:null,pageSize:k,pageSizeOptions:A,quickGo:xe?he:null,goButton:Le}))};const Vb=e=>i.createElement(hl,Object.assign({},e,{showSearch:!0,size:"small"})),Wb=e=>i.createElement(hl,Object.assign({},e,{showSearch:!0,size:"middle"}));Vb.Option=hl.Option;Wb.Option=hl.Option;const WL=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},GL=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:H(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:H(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
    &${t}-mini ${t}-prev ${t}-item-link,
    &${t}-mini ${t}-next ${t}-item-link
    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:H(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM),input:Object.assign(Object.assign({},ed(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},qL=e=>{const{componentCls:t}=e;return{[`
    &${t}-simple ${t}-prev,
    &${t}-simple ${t}-next
    `]:{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${H(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${H(e.inputOutlineOffset)} 0 ${H(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},XL=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{marginInlineEnd:e.marginXS},[`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${H(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:H(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},td(e)),Ju(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},wl(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},UL=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:H(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${H(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},YL=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_t(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:H(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),UL(e)),XL(e)),qL(e)),GL(e)),WL(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},ZL=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},gr(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Nr(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Nr(e))}}}},Gb=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Uh(e)),qb=e=>pt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Xh(e)),QL=zt("Pagination",e=>{const t=qb(e);return[YL(t),ZL(t)]},Gb),JL=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},e4=ol(["Pagination","bordered"],e=>{const t=qb(e);return[JL(t)]},Gb);var t4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const n4=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:l,locale:s,selectComponentClass:c,responsive:u,showSizeChanger:d}=e,f=t4(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=Bu(u),[,g]=en(),{getPrefixCls:p,direction:v,pagination:h={}}=i.useContext(Ve),b=p("pagination",t),[y,C,S]=QL(b),$=d??h.showSizeChanger,x=i.useMemo(()=>{const N=i.createElement("span",{className:`${b}-item-ellipsis`},"•••"),z=i.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},v==="rtl"?i.createElement(To,null):i.createElement(Ea,null)),L=i.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},v==="rtl"?i.createElement(Ea,null):i.createElement(To,null)),T=i.createElement("a",{className:`${b}-item-link`},i.createElement("div",{className:`${b}-item-container`},v==="rtl"?i.createElement(Um,{className:`${b}-item-link-icon`}):i.createElement(Xm,{className:`${b}-item-link-icon`}),N)),_=i.createElement("a",{className:`${b}-item-link`},i.createElement("div",{className:`${b}-item-container`},v==="rtl"?i.createElement(Xm,{className:`${b}-item-link-icon`}):i.createElement(Um,{className:`${b}-item-link-icon`}),N));return{prevIcon:z,nextIcon:L,jumpPrevIcon:T,jumpNextIcon:_}},[v,b]),[E]=nl("Pagination",hv),O=Object.assign(Object.assign({},E),s),w=In(l),P=w==="small"||!!(m&&!w&&u),R=p("select",n),M=K({[`${b}-mini`]:P,[`${b}-rtl`]:v==="rtl",[`${b}-bordered`]:g.wireframe},h==null?void 0:h.className,r,o,C,S),I=Object.assign(Object.assign({},h==null?void 0:h.style),a);return y(i.createElement(i.Fragment,null,g.wireframe&&i.createElement(e4,{prefixCls:b}),i.createElement(VL,Object.assign({},x,f,{style:I,prefixCls:b,selectPrefixCls:R,className:M,selectComponentClass:c||(P?Vb:Wb),locale:O,showSizeChanger:$}))))},r4=n4,o4=new bt("antSpinMove",{to:{opacity:1}}),a4=new bt("antRotate",{to:{transform:"rotate(405deg)"}}),i4=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},_t(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:o4,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:a4,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},l4=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},s4=zt("Spin",e=>{const t=pt(e,{spinDotDefault:e.colorTextDescription});return[i4(t)]},l4);var c4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let xi=null;function u4(e,t){const{indicator:n}=t,r=`${e}-dot`;return n===null?null:Ln(n)?dn(n,{className:K(n.props.className,r)}):Ln(xi)?dn(xi,{className:K(xi.props.className,r)}):i.createElement("span",{className:K(r,`${e}-dot-spin`)},i.createElement("i",{className:`${e}-dot-item`,key:1}),i.createElement("i",{className:`${e}-dot-item`,key:2}),i.createElement("i",{className:`${e}-dot-item`,key:3}),i.createElement("i",{className:`${e}-dot-item`,key:4}))}function d4(e,t){return!!e&&!!t&&!isNaN(Number(t))}const Xb=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:a,size:l="default",tip:s,wrapperClassName:c,style:u,children:d,fullscreen:f}=e,m=c4(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:g}=i.useContext(Ve),p=g("spin",t),[v,h,b]=s4(p),[y,C]=i.useState(()=>n&&!d4(n,r));i.useEffect(()=>{if(n){const M=eM(r,()=>{C(!0)});return M(),()=>{var I;(I=M==null?void 0:M.cancel)===null||I===void 0||I.call(M)}}C(!1)},[r,n]);const S=i.useMemo(()=>typeof d<"u"&&!f,[d,f]),{direction:$,spin:x}=i.useContext(Ve),E=K(p,x==null?void 0:x.className,{[`${p}-sm`]:l==="small",[`${p}-lg`]:l==="large",[`${p}-spinning`]:y,[`${p}-show-text`]:!!s,[`${p}-fullscreen`]:f,[`${p}-fullscreen-show`]:f&&y,[`${p}-rtl`]:$==="rtl"},o,a,h,b),O=K(`${p}-container`,{[`${p}-blur`]:y}),w=Ft(m,["indicator"]),P=Object.assign(Object.assign({},x==null?void 0:x.style),u),R=i.createElement("div",Object.assign({},w,{style:P,className:E,"aria-live":"polite","aria-busy":y}),u4(p,e),s&&(S||f)?i.createElement("div",{className:`${p}-text`},s):null);return v(S?i.createElement("div",Object.assign({},w,{className:K(`${p}-nested-loading`,c,h,b)}),y&&i.createElement("div",{key:"loading"},R),i.createElement("div",{className:O,key:"container"},d)):R)};Xb.setDefaultIndicator=e=>{xi=e};const f4=Xb;let Yn=null,$i=e=>e(),Ui=[],Oa={};function Qm(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=Oa,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,rtl:t,maxCount:n,top:r,bottom:o}}const m4=ae.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=i.useContext(Ve),a=Oa.prefixCls||o("notification"),l=i.useContext(AE),[s,c]=Hp(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),l.notification));return ae.useEffect(r,[]),ae.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:u,sync:r}}),c}),g4=ae.forwardRef((e,t)=>{const[n,r]=ae.useState(Qm),o=()=>{r(Qm)};ae.useEffect(o,[]);const a=Sx(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=ae.createElement(m4,{ref:t,sync:o,notificationConfig:n});return ae.createElement(Zv,{prefixCls:l,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)});function cd(){if(!Yn){const e=document.createDocumentFragment(),t={fragment:e};Yn=t,$i(()=>{cp(ae.createElement(g4,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,cd())})}}),e)});return}Yn.instance&&(Ui.forEach(e=>{switch(e.type){case"open":{$i(()=>{Yn.instance.open(Object.assign(Object.assign({},Oa),e.config))});break}case"destroy":$i(()=>{Yn==null||Yn.instance.destroy(e.key)});break}}),Ui=[])}function v4(e){Oa=Object.assign(Object.assign({},Oa),e),$i(()=>{var t;(t=Yn==null?void 0:Yn.sync)===null||t===void 0||t.call(Yn)})}function Ub(e){Ui.push({type:"open",config:e}),cd()}function p4(e){Ui.push({type:"destroy",key:e}),cd()}const h4=["success","info","warning","error"],b4={open:Ub,destroy:p4,config:v4,useNotification:BE,_InternalPanelDoNotUseOrYouWillBeFired:PE},Yb=b4;h4.forEach(e=>{Yb[e]=t=>Ub(Object.assign(Object.assign({},t),{type:e}))});const _3=Yb;var y4=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Zb=i.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,l=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,g=e.onChange,p=e.onKeyDown,v=Qe(e,y4),h=At(!1,{value:l,defaultValue:s}),b=q(h,2),y=b[0],C=b[1];function S(O,w){var P=y;return c||(P=O,C(P),g==null||g(P,w)),P}function $(O){O.which===fe.LEFT?S(!1,O):O.which===fe.RIGHT&&S(!0,O),p==null||p(O)}function x(O){var w=S(!y,O);m==null||m(w,O)}var E=K(o,a,(n={},F(n,"".concat(o,"-checked"),y),F(n,"".concat(o,"-disabled"),c),n));return i.createElement("button",de({},v,{type:"button",role:"switch","aria-checked":y,disabled:c,className:E,ref:t,onKeyDown:$,onClick:x}),u,i.createElement("span",{className:"".concat(o,"-inner")},i.createElement("span",{className:"".concat(o,"-inner-checked")},d),i.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});Zb.displayName="Switch";const C4=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:l,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=H(c(s).add(c(r).mul(2)).equal()),f=H(c(l).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:H(n),[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:l,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${H(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},S4=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},x4=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:l}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:l(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${H(l(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},$4=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:l,calc:s}=e,c=`${t}-inner`,u=H(s(l).add(s(r).mul(2)).equal()),d=H(s(a).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},w4=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},_t(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${H(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),gr(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},E4=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,l=r/2,s=2,c=a-s*2,u=l-s*2;return{trackHeight:a,trackHeightSM:l,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Rt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},O4=zt("Switch",e=>{const t=pt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[w4(t),$4(t),x4(t),S4(t),C4(t)]},E4);var I4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Qb=i.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:l,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:g}=e,p=I4(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,h]=At(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:b,direction:y,switch:C}=i.useContext(Ve),S=i.useContext(br),$=(o??S)||a,x=b("switch",n),E=i.createElement("div",{className:`${x}-handle`},a&&i.createElement(Ta,{className:`${x}-loading-icon`})),[O,w,P]=O4(x),R=In(r),M=K(C==null?void 0:C.className,{[`${x}-small`]:R==="small",[`${x}-loading`]:a,[`${x}-rtl`]:y==="rtl"},l,s,w,P),I=Object.assign(Object.assign({},C==null?void 0:C.style),c),N=function(){h(arguments.length<=0?void 0:arguments[0]),g==null||g.apply(void 0,arguments)};return O(i.createElement(ul,{component:"Switch"},i.createElement(Zb,Object.assign({},p,{checked:v,onChange:N,prefixCls:x,className:M,style:I,disabled:$,ref:t,loadingIcon:E}))))});Qb.__ANT_SWITCH=!0;const z3=Qb;var $r={},ka="rc-table-internal-hook";function ud(e){var t=i.createContext(void 0),n=function(o){var a=o.value,l=o.children,s=i.useRef(a);s.current=a;var c=i.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=q(c,1),d=u[0];return xt(function(){qr.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(a)})})},[a]),i.createElement(t.Provider,{value:d},l)};return{Context:t,Provider:n,defaultValue:e}}function xn(e,t){var n=Yt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(g){m[g]=f[g]}),m}),r=i.useContext(e==null?void 0:e.Context),o=r||{},a=o.listeners,l=o.getValue,s=i.useRef();s.current=n(r?l():e==null?void 0:e.defaultValue);var c=i.useState({}),u=q(c,2),d=u[1];return xt(function(){if(!r)return;function f(m){var g=n(m);Vn(s.current,g,!0)||d({})}return a.add(f),function(){a.delete(f)}},[r]),s.current}function R4(){var e=i.createContext(null);function t(){return i.useContext(e)}function n(o,a){var l=Jn(o),s=function(u,d){var f=l?{ref:d}:{},m=i.useRef(0),g=i.useRef(u),p=t();return p!==null?i.createElement(o,de({},u,f)):((!a||a(g.current,u))&&(m.current+=1),g.current=u,i.createElement(e.Provider,{value:m.current},i.createElement(o,de({},u,f))))};return l?i.forwardRef(s):s}function r(o,a){var l=Jn(o),s=function(u,d){var f=l?{ref:d}:{};return t(),i.createElement(o,de({},u,f))};return l?i.memo(i.forwardRef(s),a):i.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var dd=R4(),Jb=dd.makeImmutable,Wo=dd.responseImmutable,P4=dd.useImmutableMark,Rn=ud();function N4(e,t){var n=i.useRef(0);n.current+=1;var r=i.useRef(e),o=[];Object.keys(e||{}).map(function(l){var s;(e==null?void 0:e[l])!==((s=r.current)===null||s===void 0?void 0:s[l])&&o.push(l)}),r.current=e;var a=i.useRef([]);return o.length&&(a.current=o),i.useDebugValue(n.current),i.useDebugValue(a.current.join(", ")),n.current}var T4=i.memo(function(){var e=N4();return i.createElement("h1",null,"Render Times: ",e)});T4.displayName="RenderBlock";var e0=i.createContext({renderWithProps:!1}),M4="RC_TABLE_KEY";function _4(e){return e==null?[]:Array.isArray(e)?e:[e]}function Nl(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},a=o.key,l=o.dataIndex,s=a||_4(l).join("-")||M4;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function Bc(e){return e!=null}function z4(e){return e&&at(e)==="object"&&!Array.isArray(e)&&!i.isValidElement(e)}function L4(e,t,n,r,o,a){var l=i.useContext(e0),s=P4(),c=_r(function(){if(Bc(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Kn(e,u),f=d,m=void 0;if(o){var g=o(d,e,n);z4(g)?(f=g.children,m=g.props,l.renderWithProps=!0):f=g}return[f,m]},[s,e,r,t,o,n],function(u,d){if(a){var f=q(u,2),m=f[1],g=q(d,2),p=g[1];return a(p,m)}return l.renderWithProps?!0:!Vn(u,d,!0)});return c}function j4(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function D4(e,t){return xn(Rn,function(n){var r=j4(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var B4=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,a,l=n===!0?{showTitle:!0}:n;return l&&(l.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?a=o.toString():i.isValidElement(o)&&typeof o.props.children=="string"&&(a=o.props.children)),a};function A4(e){var t,n,r,o,a,l,s,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,g=e.prefixCls,p=e.className,v=e.align,h=e.record,b=e.render,y=e.dataIndex,C=e.renderIndex,S=e.shouldCellUpdate,$=e.index,x=e.rowType,E=e.colSpan,O=e.rowSpan,w=e.fixLeft,P=e.fixRight,R=e.firstFixLeft,M=e.lastFixLeft,I=e.firstFixRight,N=e.lastFixRight,z=e.appendNode,L=e.additionalProps,T=L===void 0?{}:L,_=e.isSticky,B="".concat(g,"-cell"),j=xn(Rn,["supportSticky","allColumnsFixedLeft"]),A=j.supportSticky,V=j.allColumnsFixedLeft,X=L4(h,y,C,d,b,S),te=q(X,2),W=te[0],G=te[1],ne={},J=typeof w=="number"&&A,oe=typeof P=="number"&&A;J&&(ne.position="sticky",ne.left=w),oe&&(ne.position="sticky",ne.right=P);var Z=(t=(n=(r=G==null?void 0:G.colSpan)!==null&&r!==void 0?r:T.colSpan)!==null&&n!==void 0?n:E)!==null&&t!==void 0?t:1,k=(o=(a=(l=G==null?void 0:G.rowSpan)!==null&&l!==void 0?l:T.rowSpan)!==null&&a!==void 0?a:O)!==null&&o!==void 0?o:1,Q=D4($,k),ee=q(Q,2),Y=ee[0],U=ee[1],ie=Yt(function(me){var be;h&&U($,$+k-1),T==null||(be=T.onMouseEnter)===null||be===void 0||be.call(T,me)}),se=Yt(function(me){var be;h&&U(-1,-1),T==null||(be=T.onMouseLeave)===null||be===void 0||be.call(T,me)});if(Z===0||k===0)return null;var ue=(s=T.title)!==null&&s!==void 0?s:B4({rowType:x,ellipsis:f,children:W}),re=K(B,p,(c={},F(F(F(F(F(F(F(F(F(F(c,"".concat(B,"-fix-left"),J&&A),"".concat(B,"-fix-left-first"),R&&A),"".concat(B,"-fix-left-last"),M&&A),"".concat(B,"-fix-left-all"),M&&V&&A),"".concat(B,"-fix-right"),oe&&A),"".concat(B,"-fix-right-first"),I&&A),"".concat(B,"-fix-right-last"),N&&A),"".concat(B,"-ellipsis"),f),"".concat(B,"-with-append"),z),"".concat(B,"-fix-sticky"),(J||oe)&&_&&A),F(c,"".concat(B,"-row-hover"),!G&&Y)),T.className,G==null?void 0:G.className),le={};v&&(le.textAlign=v);var ce=D(D(D(D({},ne),T.style),le),G==null?void 0:G.style),pe=W;return at(pe)==="object"&&!Array.isArray(pe)&&!i.isValidElement(pe)&&(pe=null),f&&(M||I)&&(pe=i.createElement("span",{className:"".concat(B,"-content")},pe)),i.createElement(u,de({},G,T,{className:re,style:ce,title:ue,scope:m,onMouseEnter:ie,onMouseLeave:se,colSpan:Z!==1?Z:null,rowSpan:k!==1?k:null}),z,pe)}const eo=i.memo(A4);function fd(e,t,n,r,o,a){var l=n[e]||{},s=n[t]||{},c,u;l.fixed==="left"?c=r.left[o==="rtl"?t:e]:s.fixed==="right"&&(u=r.right[o==="rtl"?e:t]);var d=!1,f=!1,m=!1,g=!1,p=n[t+1],v=n[e-1],h=!(a!=null&&a.children);if(o==="rtl"){if(c!==void 0){var b=v&&v.fixed==="left";g=!b&&h}else if(u!==void 0){var y=p&&p.fixed==="right";m=!y&&h}}else if(c!==void 0){var C=p&&p.fixed==="left";d=!C&&h}else if(u!==void 0){var S=v&&v.fixed==="right";f=!S&&h}return{fixLeft:c,fixRight:u,lastFixLeft:d,firstFixRight:f,lastFixRight:m,firstFixLeft:g,isSticky:r.isSticky}}var t0=i.createContext({});function F4(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=o===void 0?1:o,l=e.rowSpan,s=e.align,c=xn(Rn,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=i.useContext(t0),m=f.scrollColumnIndex,g=f.stickyOffsets,p=f.flattenColumns,v=f.columns,h=n+a-1,b=h+1===m?a+1:a,y=fd(n,n+b-1,p,g,d,v==null?void 0:v[n]);return i.createElement(eo,de({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:b,rowSpan:l,render:function(){return r}},y))}var H4=["children"];function k4(e){var t=e.children,n=Qe(e,H4);return i.createElement("tr",n,t)}function Tl(e){var t=e.children;return t}Tl.Row=k4;Tl.Cell=F4;function K4(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=e.columns,a=xn(Rn,"prefixCls"),l=r.length-1,s=r[l],c=i.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:s!=null&&s.scrollbar?l:null,columns:o}},[s,r,l,n,o]);return i.createElement(t0.Provider,{value:c},i.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const ci=Wo(K4);var n0=Tl;function V4(e){return null}function W4(e){return null}function r0(e,t,n,r,o,a,l){e.push({record:t,indent:n,index:l});var s=a(t),c=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u<t[r].length;u+=1)r0(e,t[r][u],n+1,r,o,a,u)}function o0(e,t,n,r){var o=i.useMemo(function(){if(n!=null&&n.size){for(var a=[],l=0;l<(e==null?void 0:e.length);l+=1){var s=e[l];r0(a,s,0,t,n,r,l)}return a}return e==null?void 0:e.map(function(c,u){return{record:c,indent:0,index:u}})},[e,t,n,r]);return o}function a0(e,t,n,r){var o=xn(Rn,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=o.flattenColumns,l=o.expandableType,s=o.expandedKeys,c=o.childrenColumnName,u=o.onTriggerExpand,d=o.rowExpandable,f=o.onRow,m=o.expandRowByClick,g=o.rowClassName,p=l==="nest",v=l==="row"&&(!d||d(e)),h=v||p,b=s&&s.has(t),y=c&&e&&e[c],C=Yt(u),S=f==null?void 0:f(e,n),$=S==null?void 0:S.onClick,x=function(P){m&&h&&u(e,P);for(var R=arguments.length,M=new Array(R>1?R-1:0),I=1;I<R;I++)M[I-1]=arguments[I];$==null||$.apply(void 0,[P].concat(M))},E;typeof g=="string"?E=g:typeof g=="function"&&(E=g(e,n,r));var O=Nl(a);return D(D({},o),{},{columnsKey:O,nestExpandable:p,expanded:b,hasNestChildren:y,record:e,onTriggerExpand:C,rowSupportExpand:v,expandable:h,rowProps:D(D({},S),{},{className:K(E,S==null?void 0:S.className),onClick:x})})}function i0(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,a=e.className,l=e.expanded,s=e.colSpan,c=e.isEmpty,u=xn(Rn,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,m=u.fixColumn,g=u.componentWidth,p=u.horizonScroll,v=n;return(c?p&&g:m)&&(v=i.createElement("div",{style:{width:g-(f?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},v)),i.createElement(r,{className:a,style:{display:l?null:"none"}},i.createElement(eo,{component:o,prefixCls:t,colSpan:s},v))}function l0(e,t,n,r,o){var a=e.record,l=e.prefixCls,s=e.columnsKey,c=e.fixedInfoList,u=e.expandIconColumnIndex,d=e.nestExpandable,f=e.indentSize,m=e.expandIcon,g=e.expanded,p=e.hasNestChildren,v=e.onTriggerExpand,h=s[n],b=c[n],y;n===(u||0)&&d&&(y=i.createElement(i.Fragment,null,i.createElement("span",{style:{paddingLeft:"".concat(f*r,"px")},className:"".concat(l,"-row-indent indent-level-").concat(r)}),m({prefixCls:l,expanded:g,expandable:p,record:a,onExpand:v})));var C;return t.onCell&&(C=t.onCell(a,o)),{key:h,fixedInfo:b,appendCellNode:y,additionalCellProps:C||{}}}function s0(e){var t=e.className,n=e.style,r=e.record,o=e.index,a=e.renderIndex,l=e.rowKey,s=e.indent,c=s===void 0?0:s,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,m=a0(r,l,o,c),g=m.prefixCls,p=m.flattenColumns,v=m.expandedRowClassName,h=m.expandedRowRender,b=m.rowProps,y=m.expanded,C=m.rowSupportExpand,S=i.useRef(!1);S.current||(S.current=y);var $=i.createElement(u,de({},b,{"data-row-key":l,className:K(t,"".concat(g,"-row"),"".concat(g,"-row-level-").concat(c),b==null?void 0:b.className),style:D(D({},n),b==null?void 0:b.style)}),p.map(function(w,P){var R=w.render,M=w.dataIndex,I=w.className,N=l0(m,w,P,c,o),z=N.key,L=N.fixedInfo,T=N.appendCellNode,_=N.additionalCellProps;return i.createElement(eo,de({className:I,ellipsis:w.ellipsis,align:w.align,scope:w.rowScope,component:w.rowScope?f:d,prefixCls:g,key:z,record:r,index:o,renderIndex:a,dataIndex:M,render:R,shouldCellUpdate:w.shouldCellUpdate},L,{appendNode:T,additionalProps:_}))})),x;if(C&&(S.current||y)){var E=h(r,o,c+1,y),O=v&&v(r,o,c);x=i.createElement(i0,{expanded:y,className:K("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),O),prefixCls:g,component:u,cellComponent:d,colSpan:p.length,isEmpty:!1},E)}return i.createElement(i.Fragment,null,$,x)}s0.displayName="BodyRow";const G4=Wo(s0);function q4(e){var t=e.columnKey,n=e.onColumnResize,r=i.useRef();return i.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),i.createElement(hn,{data:t},i.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},i.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function X4(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return i.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},i.createElement(hn.Collection,{onBatchResize:function(a){a.forEach(function(l){var s=l.data,c=l.size;r(s,c.offsetWidth)})}},n.map(function(o){return i.createElement(q4,{key:o,columnKey:o,onColumnResize:r})})))}function c0(e){var t=e.data,n=e.measureColumnWidth,r=xn(Rn,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,a=r.getComponent,l=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=o0(t,d,u,c),g=i.useRef({renderWithProps:!1}),p=a(["body","wrapper"],"tbody"),v=a(["body","row"],"tr"),h=a(["body","cell"],"td"),b=a(["body","cell"],"th"),y;t.length?y=m.map(function(S,$){var x=S.record,E=S.indent,O=S.index,w=c(x,$);return i.createElement(G4,{key:w,rowKey:w,record:x,index:$,renderIndex:O,rowComponent:v,cellComponent:h,scopeCellComponent:b,getRowKey:c,indent:E})}):y=i.createElement(i0,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:v,cellComponent:h,colSpan:s.length,isEmpty:!0},f);var C=Nl(s);return i.createElement(e0.Provider,{value:g.current},i.createElement(p,{className:"".concat(o,"-tbody")},n&&i.createElement(X4,{prefixCls:o,columnsKey:C,onColumnResize:l}),y))}c0.displayName="Body";const U4=Wo(c0);var Y4=["expandable"],fa="RC_TABLE_INTERNAL_COL_DEFINE";function Z4(e){var t=e.expandable,n=Qe(e,Y4),r;return"expandable"in e?r=D(D({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var Q4=["columnType"];function u0(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=[],a=r||n.length,l=!1,s=a-1;s>=0;s-=1){var c=t[s],u=n&&n[s],d=u&&u[fa];if(c||d||l){var f=d||{};f.columnType;var m=Qe(f,Q4);o.unshift(i.createElement("col",de({key:s,style:{width:c}},m))),l=!0}}return i.createElement("colgroup",null,o)}var J4=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ej(e,t){return i.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}var d0=i.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,l=e.colWidths,s=e.columCount,c=e.stickyOffsets,u=e.direction,d=e.fixHeader,f=e.stickyTopOffset,m=e.stickyBottomOffset,g=e.stickyClassName,p=e.onScroll,v=e.maxContentScroll,h=e.children,b=Qe(e,J4),y=xn(Rn,["prefixCls","scrollbarSize","isSticky"]),C=y.prefixCls,S=y.scrollbarSize,$=y.isSticky,x=$&&!d?0:S,E=i.useRef(null),O=i.useCallback(function(L){ha(t,L),ha(E,L)},[]);i.useEffect(function(){var L;function T(_){var B=_,j=B.currentTarget,A=B.deltaX;A&&(p({currentTarget:j,scrollLeft:j.scrollLeft+A}),_.preventDefault())}return(L=E.current)===null||L===void 0||L.addEventListener("wheel",T),function(){var _;(_=E.current)===null||_===void 0||_.removeEventListener("wheel",T)}},[]);var w=i.useMemo(function(){return a.every(function(L){return L.width})},[a]),P=a[a.length-1],R={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},M=i.useMemo(function(){return x?[].concat(ve(o),[R]):o},[x,o]),I=i.useMemo(function(){return x?[].concat(ve(a),[R]):a},[x,a]),N=i.useMemo(function(){var L=c.right,T=c.left;return D(D({},c),{},{left:u==="rtl"?[].concat(ve(T.map(function(_){return _+x})),[0]):T,right:u==="rtl"?L:[].concat(ve(L.map(function(_){return _+x})),[0]),isSticky:$})},[x,c,$]),z=ej(l,s);return i.createElement("div",{style:D({overflow:"hidden"},$?{top:f,bottom:m}:{}),ref:O,className:K(n,F({},g,!!g))},i.createElement("table",{style:{tableLayout:"fixed",visibility:r||z?null:"hidden"}},(!r||!v||w)&&i.createElement(u0,{colWidths:z?[].concat(ve(z),[x]):[],columCount:s+1,columns:I}),h(D(D({},b),{},{stickyOffsets:N,columns:M,flattenColumns:I}))))});d0.displayName="FixedHolder";const Jm=i.memo(d0);function f0(e){var t=e.cells,n=e.stickyOffsets,r=e.flattenColumns,o=e.rowComponent,a=e.cellComponent,l=e.tdCellComponent,s=e.onHeaderRow,c=e.index,u=xn(Rn,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,m;s&&(m=s(t.map(function(p){return p.column}),c));var g=Nl(t.map(function(p){return p.column}));return i.createElement(o,m,t.map(function(p,v){var h=p.column,b=fd(p.colStart,p.colEnd,r,n,f,h),y;return h&&h.onHeaderCell&&(y=p.column.onHeaderCell(h)),i.createElement(eo,de({},p,{scope:h.title?p.colSpan>1?"colgroup":"col":null,ellipsis:h.ellipsis,align:h.align,component:h.title?a:l,prefixCls:d,key:g[v]},b,{additionalProps:y,rowType:"header"}))}))}f0.displayName="HeaderRow";function tj(e){var t=[];function n(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=l.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,p=f.children;return p&&p.length>0&&(g=n(p,u,c+1).reduce(function(v,h){return v+h},0),m.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=g,m.colEnd=m.colStart+g-1,t[c].push(m),u+=g,g});return d}n(e,0);for(var r=t.length,o=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},a=0;a<r;a+=1)o(a);return t}function nj(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=xn(Rn,["prefixCls","getComponent"]),l=a.prefixCls,s=a.getComponent,c=i.useMemo(function(){return tj(n)},[n]),u=s(["header","wrapper"],"thead"),d=s(["header","row"],"tr"),f=s(["header","cell"],"th"),m=s(["header","cell"],"td");return i.createElement(u,{className:"".concat(l,"-thead")},c.map(function(g,p){var v=i.createElement(f0,{key:p,flattenColumns:r,cells:g,stickyOffsets:t,rowComponent:d,cellComponent:f,tdCellComponent:m,onHeaderRow:o,index:p});return v}))}const eg=Wo(nj);function tg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function rj(e,t,n){return i.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var g=tg(t,m.width);g?r+=g:o+=1});var a=Math.max(t,n),l=Math.max(a-r,o),s=o,c=l/o,u=0,d=e.map(function(m){var g=D({},m),p=tg(t,g.width);if(p)g.width=p;else{var v=Math.floor(c);g.width=s===1?l:v,l-=v,s-=1}return u+=g.width,g});if(u<a){var f=a/u;l=a,d.forEach(function(m,g){var p=Math.floor(m.width*f);m.width=g===d.length-1?l:p,l-=p})}return[d,Math.max(u,a)]}return[e,t]},[e,t,n])}var oj=["children"],aj=["fixed"];function md(e){return on(e).filter(function(t){return i.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,a=Qe(r,oj),l=D({key:n},a);return o&&(l.children=md(o)),l})}function m0(e){return e.filter(function(t){return t&&at(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?D(D({},t),{},{children:m0(n)}):t})}function Ac(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&at(n)==="object"}).reduce(function(n,r,o){var a=r.fixed,l=a===!0?"left":a,s="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(ve(n),ve(Ac(c,s).map(function(u){return D({fixed:l},u)}))):[].concat(ve(n),[D(D({key:s},r),{},{fixed:l})])},[])}function ij(e){return e.map(function(t){var n=t.fixed,r=Qe(t,aj),o=n;return n==="left"?o="right":n==="right"&&(o="left"),D({fixed:o},r)})}function lj(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,l=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,g=e.direction,p=e.expandRowByClick,v=e.columnWidth,h=e.fixed,b=e.scrollWidth,y=e.clientWidth,C=i.useMemo(function(){var R=r||md(o)||[];return m0(R.slice())},[r,o]),S=i.useMemo(function(){if(a){var R=C.slice();if(!R.includes($r)){var M=m||0;M>=0&&R.splice(M,0,$r)}var I=R.indexOf($r);R=R.filter(function(T,_){return T!==$r||_===I});var N=C[I],z;(h==="left"||h)&&!m?z="left":(h==="right"||h)&&m===C.length?z="right":z=N?N.fixed:null;var L=F(F(F(F(F(F({},fa,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",z),"className","".concat(n,"-row-expand-icon-cell")),"width",v),"render",function(_,B,j){var A=c(B,j),V=l.has(A),X=f?f(B):!0,te=d({prefixCls:n,expanded:V,expandable:X,record:B,onExpand:u});return p?i.createElement("span",{onClick:function(G){return G.stopPropagation()}},te):te});return R.map(function(T){return T===$r?L:T})}return C.filter(function(T){return T!==$r})},[a,C,c,l,d,g]),$=i.useMemo(function(){var R=S;return t&&(R=t(R)),R.length||(R=[{render:function(){return null}}]),R},[t,S,g]),x=i.useMemo(function(){return g==="rtl"?ij(Ac($)):Ac($)},[$,g,b]),E=rj(x,b,y),O=q(E,2),w=O[0],P=O[1];return[$,w,P]}function sj(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,a=e.expandable,l="".concat(t,"-row-expand-icon");if(!a)return i.createElement("span",{className:K(l,"".concat(t,"-row-spaced"))});var s=function(u){r(n,u),u.stopPropagation()};return i.createElement("span",{className:K(l,F(F({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:s})}function cj(e,t,n){var r=[];function o(a){(a||[]).forEach(function(l,s){r.push(t(l,s)),o(l[n])})}return o(e),r}function uj(e,t,n){var r=Z4(e),o=r.expandIcon,a=r.expandedRowKeys,l=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,m=o||sj,g=f||"children",p=i.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===ka&&e.expandable.__PARENT_RENDER_ICON__||t.some(function($){return $&&at($)==="object"&&$[g]})?"nest":!1},[!!c,t]),v=i.useState(function(){return l||(s?cj(t,n,g):[])}),h=q(v,2),b=h[0],y=h[1],C=i.useMemo(function(){return new Set(a||b||[])},[a,b]),S=i.useCallback(function($){var x=n($,t.indexOf($)),E,O=C.has(x);O?(C.delete(x),E=ve(C)):E=[].concat(ve(C),[x]),y(E),u&&u(!O,$),d&&d(E)},[n,C,t,u,d]);return[r,p,C,m,g,S]}function dj(e,t,n,r){var o=e.map(function(a,l){return fd(l,l,e,t,n,r==null?void 0:r[l])});return _r(function(){return o},[o],function(a,l){return!Vn(a,l)})}function g0(e){var t=i.useRef(e),n=i.useState({}),r=q(n,2),o=r[1],a=i.useRef(null),l=i.useRef([]);function s(c){l.current.push(c);var u=Promise.resolve();a.current=u,u.then(function(){if(a.current===u){var d=l.current,f=t.current;l.current=[],d.forEach(function(m){t.current=m(t.current)}),a.current=null,f!==t.current&&o({})}})}return i.useEffect(function(){return function(){a.current=null}},[]),[t.current,s]}function fj(e){var t=i.useRef(e||null),n=i.useRef();function r(){window.clearTimeout(n.current)}function o(l){t.current=l,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function a(){return t.current}return i.useEffect(function(){return r},[]),[o,a]}function mj(){var e=i.useState(-1),t=q(e,2),n=t[0],r=t[1],o=i.useState(-1),a=q(o,2),l=a[0],s=a[1],c=i.useCallback(function(u,d){r(u),s(d)},[]);return[n,l,c]}var ng=un()?window:null;function gj(e,t){var n=at(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,a=n.offsetSummary,l=a===void 0?0:a,s=n.offsetScroll,c=s===void 0?0:s,u=n.getContainer,d=u===void 0?function(){return ng}:u,f=d()||ng;return i.useMemo(function(){var m=!!e;return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:l,offsetScroll:c,container:f}},[c,o,l,t,f])}function vj(e,t,n){var r=i.useMemo(function(){for(var o=[],a=[],l=0,s=0,c=0;c<t;c+=1)if(n==="rtl"){a[c]=s,s+=e[c]||0;var u=t-c-1;o[u]=l,l+=e[u]||0}else{o[c]=l,l+=e[c]||0;var d=t-c-1;a[d]=s,s+=e[d]||0}return{left:o,right:a}},[e,t,n]);return r}function rg(e){var t=e.className,n=e.children;return i.createElement("div",{className:t},n)}var pj=function(t,n){var r,o,a=t.scrollBodyRef,l=t.onScroll,s=t.offsetScroll,c=t.container,u=xn(Rn,"prefixCls"),d=((r=a.current)===null||r===void 0?void 0:r.scrollWidth)||0,f=((o=a.current)===null||o===void 0?void 0:o.clientWidth)||0,m=d&&f*(f/d),g=i.useRef(),p=g0({scrollLeft:0,isHiddenScrollBar:!1}),v=q(p,2),h=v[0],b=v[1],y=i.useRef({delta:0,x:0}),C=i.useState(!1),S=q(C,2),$=S[0],x=S[1],E=function(){x(!1)},O=function(I){I.persist(),y.current.delta=I.pageX-h.scrollLeft,y.current.x=0,x(!0),I.preventDefault()},w=function(I){var N,z=I||((N=window)===null||N===void 0?void 0:N.event),L=z.buttons;if(!$||L===0){$&&x(!1);return}var T=y.current.x+I.pageX-y.current.x-y.current.delta;T<=0&&(T=0),T+m>=f&&(T=f-m),l({scrollLeft:T/f*(d+2)}),y.current.x=I.pageX},P=function(){if(a.current){var I=Lc(a.current).top,N=I+a.current.offsetHeight,z=c===window?document.documentElement.scrollTop+window.innerHeight:Lc(c).top+c.clientHeight;N-lc()<=z||I>=z-s?b(function(L){return D(D({},L),{},{isHiddenScrollBar:!0})}):b(function(L){return D(D({},L),{},{isHiddenScrollBar:!1})})}},R=function(I){b(function(N){return D(D({},N),{},{scrollLeft:I/d*f||0})})};return i.useImperativeHandle(n,function(){return{setScrollLeft:R}}),i.useEffect(function(){var M=nr(document.body,"mouseup",E,!1),I=nr(document.body,"mousemove",w,!1);return P(),function(){M.remove(),I.remove()}},[m,$]),i.useEffect(function(){var M=nr(c,"scroll",P,!1),I=nr(window,"resize",P,!1);return function(){M.remove(),I.remove()}},[c]),i.useEffect(function(){h.isHiddenScrollBar||b(function(M){var I=a.current;return I?D(D({},M),{},{scrollLeft:I.scrollLeft/I.scrollWidth*I.clientWidth}):M})},[h.isHiddenScrollBar]),d<=f||!m||h.isHiddenScrollBar?null:i.createElement("div",{style:{height:lc(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},i.createElement("div",{onMouseDown:O,ref:g,className:K("".concat(u,"-sticky-scroll-bar"),F({},"".concat(u,"-sticky-scroll-bar-active"),$)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(h.scrollLeft,"px, 0, 0)")}}))};const hj=i.forwardRef(pj);var v0="rc-table",bj=[],yj={};function Cj(){return"No Data"}function Sj(e,t){var n=D({rowKey:"key",prefixCls:v0,emptyText:Cj},e),r=n.prefixCls,o=n.className,a=n.rowClassName,l=n.style,s=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,g=n.footer,p=n.summary,v=n.caption,h=n.id,b=n.showHeader,y=n.components,C=n.emptyText,S=n.onRow,$=n.onHeaderRow,x=n.internalHooks,E=n.transformColumns,O=n.internalRefs,w=n.tailor,P=n.getContainerWidth,R=n.sticky,M=s||bj,I=!!M.length,N=x===ka,z=i.useCallback(function(st,ft){return Kn(y,st)||ft},[y]),L=i.useMemo(function(){return typeof c=="function"?c:function(st){var ft=st&&st[c];return ft}},[c]),T=z(["body"]),_=mj(),B=q(_,3),j=B[0],A=B[1],V=B[2],X=uj(n,M,L),te=q(X,6),W=te[0],G=te[1],ne=te[2],J=te[3],oe=te[4],Z=te[5],k=u==null?void 0:u.x,Q=i.useState(0),ee=q(Q,2),Y=ee[0],U=ee[1],ie=lj(D(D(D({},n),W),{},{expandable:!!W.expandedRowRender,columnTitle:W.columnTitle,expandedKeys:ne,getRowKey:L,onTriggerExpand:Z,expandIcon:J,expandIconColumnIndex:W.expandIconColumnIndex,direction:f,scrollWidth:N&&w&&typeof k=="number"?k:null,clientWidth:Y}),N?E:null),se=q(ie,3),ue=se[0],re=se[1],le=se[2],ce=le??k,pe=i.useMemo(function(){return{columns:ue,flattenColumns:re}},[ue,re]),me=i.useRef(),be=i.useRef(),ye=i.useRef(),xe=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:me.current,scrollTo:function(ft){var Tt;if(ye.current instanceof HTMLElement){var It=ft.index,gn=ft.top,vn=ft.key;if(gn){var Cn;(Cn=ye.current)===null||Cn===void 0||Cn.scrollTo({top:gn})}else{var On,An=vn??L(M[It]);(On=ye.current.querySelector('[data-row-key="'.concat(An,'"]')))===null||On===void 0||On.scrollIntoView()}}else(Tt=ye.current)!==null&&Tt!==void 0&&Tt.scrollTo&&ye.current.scrollTo(ft)}}});var qe=i.useRef(),Ie=i.useState(!1),Ce=q(Ie,2),$e=Ce[0],he=Ce[1],We=i.useState(!1),_e=q(We,2),Je=_e[0],Re=_e[1],je=g0(new Map),ke=q(je,2),Ge=ke[0],ot=ke[1],ge=Nl(re),Ae=ge.map(function(st){return Ge.get(st)}),Xe=i.useMemo(function(){return Ae},[Ae.join("_")]),it=vj(Xe,re.length,f),Ke=u&&Bc(u.y),we=u&&Bc(ce)||!!W.fixed,De=we&&re.some(function(st){var ft=st.fixed;return ft}),Ne=i.useRef(),Fe=gj(R,r),Be=Fe.isSticky,ze=Fe.offsetHeader,Ee=Fe.offsetSummary,Se=Fe.offsetScroll,Ze=Fe.stickyClassName,lt=Fe.container,rt=i.useMemo(function(){return p==null?void 0:p(M)},[p,M]),Te=(Ke||Be)&&i.isValidElement(rt)&&rt.type===Tl&&rt.props.fixed,Le,dt,Pe;Ke&&(dt={overflowY:"scroll",maxHeight:u.y}),we&&(Le={overflowX:"auto"},Ke||(dt={overflowY:"hidden"}),Pe={width:ce===!0?"auto":ce,minWidth:"100%"});var Me=i.useCallback(function(st,ft){_a(me.current)&&ot(function(Tt){if(Tt.get(st)!==ft){var It=new Map(Tt);return It.set(st,ft),It}return Tt})},[]),ct=fj(null),Oe=q(ct,2),He=Oe[0],et=Oe[1];function ut(st,ft){ft&&(typeof ft=="function"?ft(st):ft.scrollLeft!==st&&(ft.scrollLeft=st,ft.scrollLeft!==st&&setTimeout(function(){ft.scrollLeft=st},0)))}var Pt=Yt(function(st){var ft=st.currentTarget,Tt=st.scrollLeft,It=f==="rtl",gn=typeof Tt=="number"?Tt:ft.scrollLeft,vn=ft||yj;if(!et()||et()===vn){var Cn;He(vn),ut(gn,be.current),ut(gn,ye.current),ut(gn,qe.current),ut(gn,(Cn=Ne.current)===null||Cn===void 0?void 0:Cn.setScrollLeft)}var On=ft||be.current;if(On){var An=On.scrollWidth,ar=On.clientWidth;if(An===ar){he(!1),Re(!1);return}It?(he(-gn<An-ar),Re(-gn>0)):(he(gn>0),Re(gn<An-ar))}}),Ot=function(){we&&ye.current?Pt({currentTarget:ye.current}):(he(!1),Re(!1))},Ht=function(ft){var Tt=ft.width,It=me.current?me.current.offsetWidth:Tt;N&&P&&me.current&&(It=P(me.current,It)||It),It!==Y&&(Ot(),U(It))},Lt=i.useRef(!1);i.useEffect(function(){Lt.current&&Ot()},[we,s,ue.length]),i.useEffect(function(){Lt.current=!0},[]);var Zt=i.useState(0),qt=q(Zt,2),jt=qt[0],bn=qt[1],Dn=i.useState(!0),Ye=q(Dn,2),mt=Ye[0],wt=Ye[1];i.useEffect(function(){(!w||!N)&&(ye.current instanceof Element?bn(sc(ye.current).width):bn(sc(xe.current).width)),wt(cc("position","sticky"))},[]),i.useEffect(function(){N&&O&&(O.body.current=ye.current)});var kt=i.useCallback(function(st){return i.createElement(i.Fragment,null,i.createElement(eg,st),Te==="top"&&i.createElement(ci,st,rt))},[Te,rt]),nn=i.useCallback(function(st){return i.createElement(ci,st,rt)},[rt]),wn=z(["table"],"table"),yn=i.useMemo(function(){return d||(De?ce==="max-content"?"auto":"fixed":Ke||Be||re.some(function(st){var ft=st.ellipsis;return ft})?"fixed":"auto")},[Ke,De,re,d,Be]),ln,Bn={colWidths:Xe,columCount:re.length,stickyOffsets:it,onHeaderRow:$,fixHeader:Ke,scroll:u},En=i.useMemo(function(){return I?null:typeof C=="function"?C():C},[I,C]),St=i.createElement(U4,{data:M,measureColumnWidth:Ke||we||Be}),ht=i.createElement(u0,{colWidths:re.map(function(st){var ft=st.width;return ft}),columns:re}),Ue=v!=null?i.createElement("caption",{className:"".concat(r,"-caption")},v):void 0,tt=zn(n,{data:!0}),yt=zn(n,{aria:!0});if(Ke||Be){var Bt;typeof T=="function"?(Bt=T(M,{scrollbarSize:jt,ref:ye,onScroll:Pt}),Bn.colWidths=re.map(function(st,ft){var Tt=st.width,It=ft===re.length-1?Tt-jt:Tt;return typeof It=="number"&&!Number.isNaN(It)?It:0})):Bt=i.createElement("div",{style:D(D({},Le),dt),onScroll:Pt,ref:ye,className:K("".concat(r,"-body"))},i.createElement(wn,de({style:D(D({},Pe),{},{tableLayout:yn})},yt),Ue,ht,St,!Te&&rt&&i.createElement(ci,{stickyOffsets:it,flattenColumns:re,columns:ue},rt)));var Nt=D(D(D({noData:!M.length,maxContentScroll:we&&ce==="max-content"},Bn),pe),{},{direction:f,stickyClassName:Ze,onScroll:Pt});ln=i.createElement(i.Fragment,null,b!==!1&&i.createElement(Jm,de({},Nt,{stickyTopOffset:ze,className:"".concat(r,"-header"),ref:be}),kt),Bt,Te&&Te!=="top"&&i.createElement(Jm,de({},Nt,{stickyBottomOffset:Ee,className:"".concat(r,"-summary"),ref:qe}),nn),Be&&ye.current&&ye.current instanceof Element&&i.createElement(hj,{ref:Ne,offsetScroll:Se,scrollBodyRef:ye,onScroll:Pt,container:lt}))}else ln=i.createElement("div",{style:D(D({},Le),dt),className:K("".concat(r,"-content")),onScroll:Pt,ref:ye},i.createElement(wn,de({style:D(D({},Pe),{},{tableLayout:yn})},yt),Ue,ht,b!==!1&&i.createElement(eg,de({},Bn,pe)),St,rt&&i.createElement(ci,{stickyOffsets:it,flattenColumns:re,columns:ue},rt)));var Kt=i.createElement("div",de({className:K(r,o,F(F(F(F(F(F(F(F(F({},"".concat(r,"-rtl"),f==="rtl"),"".concat(r,"-ping-left"),$e),"".concat(r,"-ping-right"),Je),"".concat(r,"-layout-fixed"),d==="fixed"),"".concat(r,"-fixed-header"),Ke),"".concat(r,"-fixed-column"),De),"".concat(r,"-scroll-horizontal"),we),"".concat(r,"-has-fix-left"),re[0]&&re[0].fixed),"".concat(r,"-has-fix-right"),re[re.length-1]&&re[re.length-1].fixed==="right")),style:l,id:h,ref:me},tt),m&&i.createElement(rg,{className:"".concat(r,"-title")},m(M)),i.createElement("div",{ref:xe,className:"".concat(r,"-container")},ln),g&&i.createElement(rg,{className:"".concat(r,"-footer")},g(M)));we&&(Kt=i.createElement(hn,{onResize:Ht},Kt));var Xt=dj(re,it,f,ue),sn=i.useMemo(function(){return{scrollX:ce,prefixCls:r,getComponent:z,scrollbarSize:jt,direction:f,fixedInfoList:Xt,isSticky:Be,supportSticky:mt,componentWidth:Y,fixHeader:Ke,fixColumn:De,horizonScroll:we,tableLayout:yn,rowClassName:a,expandedRowClassName:W.expandedRowClassName,expandIcon:J,expandableType:G,expandRowByClick:W.expandRowByClick,expandedRowRender:W.expandedRowRender,onTriggerExpand:Z,expandIconColumnIndex:W.expandIconColumnIndex,indentSize:W.indentSize,allColumnsFixedLeft:re.every(function(st){return st.fixed==="left"}),emptyNode:En,columns:ue,flattenColumns:re,onColumnResize:Me,hoverStartRow:j,hoverEndRow:A,onHover:V,rowExpandable:W.rowExpandable,onRow:S,getRowKey:L,expandedKeys:ne,childrenColumnName:oe}},[ce,r,z,jt,f,Xt,Be,mt,Y,Ke,De,we,yn,a,W.expandedRowClassName,J,G,W.expandRowByClick,W.expandedRowRender,Z,W.expandIconColumnIndex,W.indentSize,En,ue,re,Me,j,A,V,W.rowExpandable,S,L,ne,oe]);return i.createElement(Rn.Provider,{value:sn},Kt)}var xj=i.forwardRef(Sj);function p0(e){return Jb(xj,e)}var Go=p0();Go.EXPAND_COLUMN=$r;Go.INTERNAL_HOOKS=ka;Go.Column=V4;Go.ColumnGroup=W4;Go.Summary=n0;var h0=ud(null),b0=ud(null);function $j(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function wj(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,a=e.index,l=e.renderIndex,s=e.record,c=e.style,u=e.className,d=e.inverse,f=e.getHeight,m=n.render,g=n.dataIndex,p=n.className,v=n.width,h=xn(b0,["columnsOffset"]),b=h.columnsOffset,y=l0(t,n,r,o,a),C=y.key,S=y.fixedInfo,$=y.appendCellNode,x=y.additionalCellProps,E=x.style,O=x.colSpan,w=O===void 0?1:O,P=x.rowSpan,R=P===void 0?1:P,M=r-1,I=$j(M,w,b),N=w>1?v-I:0,z=D(D(D({},E),c),{},{flex:"0 0 ".concat(I,"px"),width:"".concat(I,"px"),marginRight:N,pointerEvents:"auto"}),L=i.useMemo(function(){return d?R<=1:w===0||R===0||R>1},[R,w,d]);L?z.visibility="hidden":d&&(z.height=f==null?void 0:f(R));var T=L?function(){return null}:m,_={};return(R===0||w===0)&&(_.rowSpan=1,_.colSpan=1),i.createElement(eo,de({className:K(p,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:"div",prefixCls:t.prefixCls,key:C,record:s,index:a,renderIndex:l,dataIndex:g,render:T,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:$,additionalProps:D(D({},x),{},{style:z},_)}))}var Ej=["data","index","className","rowKey","style","extra","getHeight"],Oj=i.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,a=e.rowKey,l=e.style,s=e.extra,c=e.getHeight,u=Qe(e,Ej),d=n.record,f=n.indent,m=n.index,g=xn(Rn,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=g.scrollX,v=g.flattenColumns,h=g.prefixCls,b=g.fixColumn,y=g.componentWidth,C=a0(d,a,r,f),S=C.rowSupportExpand,$=C.expanded,x=C.rowProps,E=C.expandedRowRender,O=C.expandedRowClassName,w;if(S&&$){var P=E(d,r,f+1,$),R=O==null?void 0:O(d,r,f),M={};b&&(M={style:F({},"--virtual-width","".concat(y,"px"))});var I="".concat(h,"-expanded-row-cell");w=i.createElement("div",{className:K("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(f+1),R)},i.createElement(eo,{component:"div",prefixCls:h,className:K(I,F({},"".concat(I,"-fixed"),b)),additionalProps:M},P))}var N=D(D({},l),{},{width:p});s&&(N.position="absolute",N.pointerEvents="none");var z=i.createElement("div",de({},x,u,{ref:S?null:t,className:K(o,"".concat(h,"-row"),x==null?void 0:x.className,F({},"".concat(h,"-row-extra"),s)),style:D(D({},N),x==null?void 0:x.style)}),v.map(function(L,T){return i.createElement(wj,{key:T,rowInfo:C,column:L,colIndex:T,indent:f,index:r,renderIndex:m,record:d,inverse:s,getHeight:c})}));return S?i.createElement("div",{ref:t},z,w):z}),og=Wo(Oj),Ij=i.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=xn(Rn,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=o.flattenColumns,l=o.onColumnResize,s=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.emptyNode,m=o.scrollX,g=xn(h0),p=g.sticky,v=g.scrollY,h=g.listItemHeight,b=i.useRef(),y=o0(n,d,c,s),C=i.useMemo(function(){var R=0;return a.map(function(M){var I=M.width,N=M.key;return R+=I,[N,I,R]})},[a]),S=i.useMemo(function(){return C.map(function(R){return R[2]})},[C]);i.useEffect(function(){C.forEach(function(R){var M=q(R,2),I=M[0],N=M[1];l(I,N)})},[C]),i.useImperativeHandle(t,function(){var R={scrollTo:function(I){var N;(N=b.current)===null||N===void 0||N.scrollTo(I)}};return Object.defineProperty(R,"scrollLeft",{get:function(){var I;return((I=b.current)===null||I===void 0?void 0:I.getScrollInfo().x)||0},set:function(I){var N;(N=b.current)===null||N===void 0||N.scrollTo({left:I})}}),R});var $=function(M,I){var N,z=(N=y[I])===null||N===void 0?void 0:N.record,L=M.onCell;if(L){var T,_=L(z,I);return(T=_==null?void 0:_.rowSpan)!==null&&T!==void 0?T:1}return 1},x=function(M){var I=M.start,N=M.end,z=M.getSize,L=M.offsetY;if(N<0)return null;for(var T=a.filter(function(oe){return $(oe,I)===0}),_=I,B=function(Z){if(T=T.filter(function(k){return $(k,Z)===0}),!T.length)return _=Z,1},j=I;j>=0&&!B(j);j-=1);for(var A=a.filter(function(oe){return $(oe,N)!==1}),V=N,X=function(Z){if(A=A.filter(function(k){return $(k,Z)!==1}),!A.length)return V=Math.max(Z-1,N),1},te=N;te<y.length&&!X(te);te+=1);for(var W=[],G=function(Z){var k=y[Z];if(!k)return 1;a.some(function(Q){return $(Q,Z)>1})&&W.push(Z)},ne=_;ne<=V;ne+=1)G(ne);var J=W.map(function(oe){var Z=y[oe],k=s(Z.record,oe),Q=function(U){var ie=oe+U-1,se=s(y[ie].record,ie),ue=z(k,se);return ue.bottom-ue.top},ee=z(k);return i.createElement(og,{key:oe,data:Z,rowKey:k,index:oe,style:{top:-L+ee.top},extra:!0,getHeight:Q})});return J},E=i.useMemo(function(){return{columnsOffset:S}},[S]),O="".concat(u,"-tbody"),w;if(y.length){var P={};p&&(P.position="sticky",P.bottom=0,at(p)==="object"&&p.offsetScroll&&(P.bottom=p.offsetScroll)),w=i.createElement(pl,{fullHeight:!1,ref:b,styles:{horizontalScrollBar:P},className:K(O,"".concat(O,"-virtual")),height:v,itemHeight:h||24,data:y,itemKey:function(M){return s(M.record)},scrollWidth:m,onVirtualScroll:function(M){var I=M.x;r({scrollLeft:I})},extraRender:x},function(R,M,I){var N=s(R.record,M);return i.createElement(og,de({data:R,rowKey:N,index:M},I))})}else w=i.createElement("div",{className:K("".concat(u,"-placeholder"))},i.createElement(eo,{component:"div",prefixCls:u},f));return i.createElement(b0.Provider,{value:E},w)}),Rj=Wo(Ij),Pj=function(t,n){var r=n.ref,o=n.onScroll;return i.createElement(Rj,{ref:r,data:t,onScroll:o})};function Nj(e,t){var n=e.columns,r=e.scroll,o=e.sticky,a=e.prefixCls,l=a===void 0?v0:a,s=e.className,c=e.listItemHeight,u=e.components,d=r||{},f=d.x,m=d.y;typeof f!="number"&&(f=1),typeof m!="number"&&(m=500);var g=i.useMemo(function(){return{sticky:o,scrollY:m,listItemHeight:c}},[o,m,c]);return i.createElement(h0.Provider,{value:g},i.createElement(Go,de({},e,{className:K(s,"".concat(l,"-virtual")),scroll:D(D({},r),{},{x:f}),components:D(D({},u),{},{body:Pj}),columns:n,internalHooks:ka,tailor:!0,ref:t})))}var Tj=i.forwardRef(Nj);function y0(e){return Jb(Tj,e)}y0();function Mj(e){return null}function _j(e){return null}var gd=i.createContext(null),zj=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,l="".concat(n,"-indent-unit"),s=[],c=0;c<r;c+=1){var u;s.push(i.createElement("span",{key:c,className:K(l,(u={},F(u,"".concat(l,"-start"),o[c]),F(u,"".concat(l,"-end"),a[c]),u))}))}return i.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const Lj=i.memo(zj);var jj=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ag="open",ig="close",Dj="---",Bj=function(e){hr(n,e);var t=Qr(n);function n(){var r;fn(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return r=t.call.apply(t,[this].concat(a)),r.state={dragNodeHighlight:!1},r.selectHandle=void 0,r.cacheIndent=void 0,r.onSelectorClick=function(s){var c=r.props.context.onNodeClick;c(s,Qt(r.props)),r.isSelectable()?r.onSelect(s):r.onCheck(s)},r.onSelectorDoubleClick=function(s){var c=r.props.context.onNodeDoubleClick;c(s,Qt(r.props))},r.onSelect=function(s){if(!r.isDisabled()){var c=r.props.context.onNodeSelect;c(s,Qt(r.props))}},r.onCheck=function(s){if(!r.isDisabled()){var c=r.props,u=c.disableCheckbox,d=c.checked,f=r.props.context.onNodeCheck;if(!(!r.isCheckable()||u)){var m=!d;f(s,Qt(r.props),m)}}},r.onMouseEnter=function(s){var c=r.props.context.onNodeMouseEnter;c(s,Qt(r.props))},r.onMouseLeave=function(s){var c=r.props.context.onNodeMouseLeave;c(s,Qt(r.props))},r.onContextMenu=function(s){var c=r.props.context.onNodeContextMenu;c(s,Qt(r.props))},r.onDragStart=function(s){var c=r.props.context.onNodeDragStart;s.stopPropagation(),r.setState({dragNodeHighlight:!0}),c(s,vt(r));try{s.dataTransfer.setData("text/plain","")}catch{}},r.onDragEnter=function(s){var c=r.props.context.onNodeDragEnter;s.preventDefault(),s.stopPropagation(),c(s,vt(r))},r.onDragOver=function(s){var c=r.props.context.onNodeDragOver;s.preventDefault(),s.stopPropagation(),c(s,vt(r))},r.onDragLeave=function(s){var c=r.props.context.onNodeDragLeave;s.stopPropagation(),c(s,vt(r))},r.onDragEnd=function(s){var c=r.props.context.onNodeDragEnd;s.stopPropagation(),r.setState({dragNodeHighlight:!1}),c(s,vt(r))},r.onDrop=function(s){var c=r.props.context.onNodeDrop;s.preventDefault(),s.stopPropagation(),r.setState({dragNodeHighlight:!1}),c(s,vt(r))},r.onExpand=function(s){var c=r.props,u=c.loading,d=c.context.onNodeExpand;u||d(s,Qt(r.props))},r.setSelectHandle=function(s){r.selectHandle=s},r.getNodeState=function(){var s=r.props.expanded;return r.isLeaf()?null:s?ag:ig},r.hasChildren=function(){var s=r.props.eventKey,c=r.props.context.keyEntities,u=Mn(c,s)||{},d=u.children;return!!(d||[]).length},r.isLeaf=function(){var s=r.props,c=s.isLeaf,u=s.loaded,d=r.props.context.loadData,f=r.hasChildren();return c===!1?!1:c||!d&&!f||d&&u&&!f},r.isDisabled=function(){var s=r.props.disabled,c=r.props.context.disabled;return!!(c||s)},r.isCheckable=function(){var s=r.props.checkable,c=r.props.context.checkable;return!c||s===!1?!1:c},r.syncLoadData=function(s){var c=s.expanded,u=s.loading,d=s.loaded,f=r.props.context,m=f.loadData,g=f.onNodeLoad;u||m&&c&&!r.isLeaf()&&!r.hasChildren()&&!d&&g(Qt(r.props))},r.isDraggable=function(){var s=r.props,c=s.data,u=s.context.draggable;return!!(u&&(!u.nodeDraggable||u.nodeDraggable(c)))},r.renderDragHandler=function(){var s=r.props.context,c=s.draggable,u=s.prefixCls;return c!=null&&c.icon?i.createElement("span",{className:"".concat(u,"-draggable-icon")},c.icon):null},r.renderSwitcherIconDom=function(s){var c=r.props.switcherIcon,u=r.props.context.switcherIcon,d=c||u;return typeof d=="function"?d(D(D({},r.props),{},{isLeaf:s})):d},r.renderSwitcher=function(){var s=r.props.expanded,c=r.props.context.prefixCls;if(r.isLeaf()){var u=r.renderSwitcherIconDom(!0);return u!==!1?i.createElement("span",{className:K("".concat(c,"-switcher"),"".concat(c,"-switcher-noop"))},u):null}var d=K("".concat(c,"-switcher"),"".concat(c,"-switcher_").concat(s?ag:ig)),f=r.renderSwitcherIconDom(!1);return f!==!1?i.createElement("span",{onClick:r.onExpand,className:d},f):null},r.renderCheckbox=function(){var s=r.props,c=s.checked,u=s.halfChecked,d=s.disableCheckbox,f=r.props.context.prefixCls,m=r.isDisabled(),g=r.isCheckable();if(!g)return null;var p=typeof g!="boolean"?g:null;return i.createElement("span",{className:K("".concat(f,"-checkbox"),c&&"".concat(f,"-checkbox-checked"),!c&&u&&"".concat(f,"-checkbox-indeterminate"),(m||d)&&"".concat(f,"-checkbox-disabled")),onClick:r.onCheck},p)},r.renderIcon=function(){var s=r.props.loading,c=r.props.context.prefixCls;return i.createElement("span",{className:K("".concat(c,"-iconEle"),"".concat(c,"-icon__").concat(r.getNodeState()||"docu"),s&&"".concat(c,"-icon_loading"))})},r.renderSelector=function(){var s=r.state.dragNodeHighlight,c=r.props,u=c.title,d=u===void 0?Dj:u,f=c.selected,m=c.icon,g=c.loading,p=c.data,v=r.props.context,h=v.prefixCls,b=v.showIcon,y=v.icon,C=v.loadData,S=v.titleRender,$=r.isDisabled(),x="".concat(h,"-node-content-wrapper"),E;if(b){var O=m||y;E=O?i.createElement("span",{className:K("".concat(h,"-iconEle"),"".concat(h,"-icon__customize"))},typeof O=="function"?O(r.props):O):r.renderIcon()}else C&&g&&(E=r.renderIcon());var w;typeof d=="function"?w=d(p):S?w=S(p):w=d;var P=i.createElement("span",{className:"".concat(h,"-title")},w);return i.createElement("span",{ref:r.setSelectHandle,title:typeof d=="string"?d:"",className:K("".concat(x),"".concat(x,"-").concat(r.getNodeState()||"normal"),!$&&(f||s)&&"".concat(h,"-node-selected")),onMouseEnter:r.onMouseEnter,onMouseLeave:r.onMouseLeave,onContextMenu:r.onContextMenu,onClick:r.onSelectorClick,onDoubleClick:r.onSelectorDoubleClick},E,P,r.renderDropIndicator())},r.renderDropIndicator=function(){var s=r.props,c=s.disabled,u=s.eventKey,d=r.props.context,f=d.draggable,m=d.dropLevelOffset,g=d.dropPosition,p=d.prefixCls,v=d.indent,h=d.dropIndicatorRender,b=d.dragOverNodeKey,y=d.direction,C=!!f,S=!c&&C&&b===u,$=v??r.cacheIndent;return r.cacheIndent=v,S?h({dropPosition:g,dropLevelOffset:m,indent:$,prefixCls:p,direction:y}):null},r}return mn(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var o=this.props.selectable,a=this.props.context.selectable;return typeof o=="boolean"?o:a}},{key:"render",value:function(){var o,a=this.props,l=a.eventKey,s=a.className,c=a.style,u=a.dragOver,d=a.dragOverGapTop,f=a.dragOverGapBottom,m=a.isLeaf,g=a.isStart,p=a.isEnd,v=a.expanded,h=a.selected,b=a.checked,y=a.halfChecked,C=a.loading,S=a.domRef,$=a.active;a.data;var x=a.onMouseMove,E=a.selectable,O=Qe(a,jj),w=this.props.context,P=w.prefixCls,R=w.filterTreeNode,M=w.keyEntities,I=w.dropContainerKey,N=w.dropTargetKey,z=w.draggingNodeKey,L=this.isDisabled(),T=zn(O,{aria:!0,data:!0}),_=Mn(M,l)||{},B=_.level,j=p[p.length-1],A=this.isDraggable(),V=!L&&A,X=z===l,te=E!==void 0?{"aria-selected":!!E}:void 0;return i.createElement("div",de({ref:S,className:K(s,"".concat(P,"-treenode"),(o={},F(o,"".concat(P,"-treenode-disabled"),L),F(o,"".concat(P,"-treenode-switcher-").concat(v?"open":"close"),!m),F(o,"".concat(P,"-treenode-checkbox-checked"),b),F(o,"".concat(P,"-treenode-checkbox-indeterminate"),y),F(o,"".concat(P,"-treenode-selected"),h),F(o,"".concat(P,"-treenode-loading"),C),F(o,"".concat(P,"-treenode-active"),$),F(o,"".concat(P,"-treenode-leaf-last"),j),F(o,"".concat(P,"-treenode-draggable"),A),F(o,"dragging",X),F(o,"drop-target",N===l),F(o,"drop-container",I===l),F(o,"drag-over",!L&&u),F(o,"drag-over-gap-top",!L&&d),F(o,"drag-over-gap-bottom",!L&&f),F(o,"filter-node",R&&R(Qt(this.props))),o)),style:c,draggable:V,"aria-grabbed":X,onDragStart:V?this.onDragStart:void 0,onDragEnter:A?this.onDragEnter:void 0,onDragOver:A?this.onDragOver:void 0,onDragLeave:A?this.onDragLeave:void 0,onDrop:A?this.onDrop:void 0,onDragEnd:A?this.onDragEnd:void 0,onMouseMove:x},te,T),i.createElement(Lj,{prefixCls:P,level:B,isStart:g,isEnd:p}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(i.Component),_o=function(t){return i.createElement(gd.Consumer,null,function(n){return i.createElement(Bj,de({},t,{context:n}))})};_o.displayName="TreeNode";_o.isTreeNode=1;function tr(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function cr(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function vd(e){return e.split("-")}function Aj(e,t){var n=[],r=Mn(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(l){var s=l.key,c=l.children;n.push(s),o(c)})}return o(r.children),n}function Fj(e){if(e.parent){var t=vd(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Hj(e){var t=vd(e.pos);return Number(t[t.length-1])===0}function lg(e,t,n,r,o,a,l,s,c,u){var d,f=e.clientX,m=e.clientY,g=e.target.getBoundingClientRect(),p=g.top,v=g.height,h=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),b=(h-12)/r,y=Mn(s,n.props.eventKey);if(m<p+v/2){var C=l.findIndex(function(z){return z.key===y.key}),S=C<=0?0:C-1,$=l[S].key;y=Mn(s,$)}var x=y.key,E=y,O=y.key,w=0,P=0;if(!c.includes(x))for(var R=0;R<b&&Fj(y);R+=1)y=y.parent,P+=1;var M=t.props.data,I=y.node,N=!0;return Hj(y)&&y.level===0&&m<p+v/2&&a({dragNode:M,dropNode:I,dropPosition:-1})&&y.key===n.props.eventKey?w=-1:(E.children||[]).length&&c.includes(O)?a({dragNode:M,dropNode:I,dropPosition:0})?w=0:N=!1:P===0?b>-1.5?a({dragNode:M,dropNode:I,dropPosition:1})?w=1:N=!1:a({dragNode:M,dropNode:I,dropPosition:0})?w=0:a({dragNode:M,dropNode:I,dropPosition:1})?w=1:N=!1:a({dragNode:M,dropNode:I,dropPosition:1})?w=1:N=!1,{dropPosition:w,dropLevelOffset:P,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:O,dropContainerKey:w===0?null:((d=y.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:N}}function sg(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function xs(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(at(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Vt(!1,"`checkedKeys` is not an array or an object"),null;return t}function Fc(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=Mn(t,o);if(a){n.add(o);var l=a.parent,s=a.node;s.disabled||l&&r(l.key)}}}return(e||[]).forEach(function(o){r(o)}),ve(n)}function kj(e){const[t,n]=i.useState(null);return[i.useCallback((a,l,s)=>{const c=t??a,u=Math.min(c||0,a),d=Math.max(c||0,a),f=l.slice(u,d+1).map(p=>e(p)),m=f.some(p=>!s.has(p)),g=[];return f.forEach(p=>{m?(s.has(p)||g.push(p),s.add(p)):(s.delete(p),g.push(p))}),n(m?d:null),g},[t]),a=>{n(a)}]}const xr={},Hc="SELECT_ALL",kc="SELECT_INVERT",Kc="SELECT_NONE",cg=[],C0=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(ve(n),ve(C0(e,r[e]))))}),n},Kj=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,onChange:l,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:m,type:g,selections:p,fixed:v,renderCell:h,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:C,data:S,pageData:$,getRecordByKey:x,getRowKey:E,expandType:O,childrenColumnName:w,locale:P,getPopupContainer:R}=e,M=Lr(),[I,N]=kj(k=>k),[z,L]=At(r||o||cg,{value:r}),T=i.useRef(new Map),_=i.useCallback(k=>{if(n){const Q=new Map;k.forEach(ee=>{let Y=x(ee);!Y&&T.current.has(ee)&&(Y=T.current.get(ee)),Q.set(ee,Y)}),T.current=Q}},[x,n]);i.useEffect(()=>{_(z)},[z]);const{keyEntities:B}=i.useMemo(()=>{if(y)return{keyEntities:null};let k=S;if(n){const Q=new Set(S.map((Y,U)=>E(Y,U))),ee=Array.from(T.current).reduce((Y,U)=>{let[ie,se]=U;return Q.has(ie)?Y:Y.concat(se)},[]);k=[].concat(ve(k),ve(ee))}return od(k,{externalGetKey:E,childrenPropName:w})},[S,E,y,w,n]),j=i.useMemo(()=>C0(w,$),[w,$]),A=i.useMemo(()=>{const k=new Map;return j.forEach((Q,ee)=>{const Y=E(Q,ee),U=(a?a(Q):null)||{};k.set(Y,U)}),k},[j,E,a]),V=i.useCallback(k=>{var Q;return!!(!((Q=A.get(E(k)))===null||Q===void 0)&&Q.disabled)},[A,E]),[X,te]=i.useMemo(()=>{if(y)return[z||[],[]];const{checkedKeys:k,halfCheckedKeys:Q}=$o(z,!0,B,V);return[k||[],Q]},[z,y,B,V]),W=i.useMemo(()=>{const k=g==="radio"?X.slice(0,1):X;return new Set(k)},[X,g]),G=i.useMemo(()=>g==="radio"?new Set:new Set(te),[te,g]);i.useEffect(()=>{t||L(cg)},[!!t]);const ne=i.useCallback((k,Q)=>{let ee,Y;_(k),n?(ee=k,Y=k.map(U=>T.current.get(U))):(ee=[],Y=[],k.forEach(U=>{const ie=x(U);ie!==void 0&&(ee.push(U),Y.push(ie))})),L(ee),l==null||l(ee,Y,{type:Q})},[L,x,l,n]),J=i.useCallback((k,Q,ee,Y)=>{if(s){const U=ee.map(ie=>x(ie));s(x(k),Q,U,Y)}ne(ee,"single")},[s,x,ne]),oe=i.useMemo(()=>!p||b?null:(p===!0?[Hc,kc,Kc]:p).map(Q=>Q===Hc?{key:"all",text:P.selectionAll,onSelect(){ne(S.map((ee,Y)=>E(ee,Y)).filter(ee=>{const Y=A.get(ee);return!(Y!=null&&Y.disabled)||W.has(ee)}),"all")}}:Q===kc?{key:"invert",text:P.selectInvert,onSelect(){const ee=new Set(W);$.forEach((U,ie)=>{const se=E(U,ie),ue=A.get(se);ue!=null&&ue.disabled||(ee.has(se)?ee.delete(se):ee.add(se))});const Y=Array.from(ee);u&&(M.deprecated(!1,"onSelectInvert","onChange"),u(Y)),ne(Y,"invert")}}:Q===Kc?{key:"none",text:P.selectNone,onSelect(){d==null||d(),ne(Array.from(W).filter(ee=>{const Y=A.get(ee);return Y==null?void 0:Y.disabled}),"none")}}:Q).map(Q=>Object.assign(Object.assign({},Q),{onSelect:function(){for(var ee,Y,U=arguments.length,ie=new Array(U),se=0;se<U;se++)ie[se]=arguments[se];(Y=Q.onSelect)===null||Y===void 0||(ee=Y).call.apply(ee,[Q].concat(ie)),N(null)}})),[p,W,$,E,u,ne]);return[i.useCallback(k=>{var Q;if(!t)return k.filter($e=>$e!==xr);let ee=ve(k);const Y=new Set(W),U=j.map(E).filter($e=>!A.get($e).disabled),ie=U.every($e=>Y.has($e)),se=U.some($e=>Y.has($e)),ue=()=>{const $e=[];ie?U.forEach(We=>{Y.delete(We),$e.push(We)}):U.forEach(We=>{Y.has(We)||(Y.add(We),$e.push(We))});const he=Array.from(Y);c==null||c(!ie,he.map(We=>x(We)),$e.map(We=>x(We))),ne(he,"all"),N(null)};let re,le;if(g!=="radio"){let $e;if(oe){const Re={getPopupContainer:R,items:oe.map((je,ke)=>{const{key:Ge,text:ot,onSelect:ge}=je;return{key:Ge??ke,onClick:()=>{ge==null||ge(U)},label:ot}})};$e=i.createElement("div",{className:`${C}-selection-extra`},i.createElement($b,{menu:Re,getPopupContainer:R},i.createElement("span",null,i.createElement(ju,null))))}const he=j.map((Re,je)=>{const ke=E(Re,je),Ge=A.get(ke)||{};return Object.assign({checked:Y.has(ke)},Ge)}).filter(Re=>{let{disabled:je}=Re;return je}),We=!!he.length&&he.length===j.length,_e=We&&he.every(Re=>{let{checked:je}=Re;return je}),Je=We&&he.some(Re=>{let{checked:je}=Re;return je});le=i.createElement(Vi,{checked:We?_e:!!j.length&&ie,indeterminate:We?!_e&&Je:!ie&&se,onChange:ue,disabled:j.length===0||We,"aria-label":$e?"Custom selection":"Select all",skipGroup:!0}),re=!b&&i.createElement("div",{className:`${C}-selection`},le,$e)}let ce;g==="radio"?ce=($e,he,We)=>{const _e=E(he,We),Je=Y.has(_e);return{node:i.createElement(qh,Object.assign({},A.get(_e),{checked:Je,onClick:Re=>Re.stopPropagation(),onChange:Re=>{Y.has(_e)||J(_e,!0,[_e],Re.nativeEvent)}})),checked:Je}}:ce=($e,he,We)=>{var _e;const Je=E(he,We),Re=Y.has(Je),je=G.has(Je),ke=A.get(Je);let Ge;return O==="nest"?Ge=je:Ge=(_e=ke==null?void 0:ke.indeterminate)!==null&&_e!==void 0?_e:je,{node:i.createElement(Vi,Object.assign({},ke,{indeterminate:Ge,checked:Re,skipGroup:!0,onClick:ot=>ot.stopPropagation(),onChange:ot=>{let{nativeEvent:ge}=ot;const{shiftKey:Ae}=ge,Xe=U.findIndex(Ke=>Ke===Je),it=X.some(Ke=>U.includes(Ke));if(Ae&&y&&it){const Ke=I(Xe,U,Y),we=Array.from(Y);f==null||f(!Re,we.map(De=>x(De)),Ke.map(De=>x(De))),ne(we,"multiple")}else{const Ke=X;if(y){const we=Re?tr(Ke,Je):cr(Ke,Je);J(Je,!Re,we,ge)}else{const we=$o([].concat(ve(Ke),[Je]),!0,B,V),{checkedKeys:De,halfCheckedKeys:Ne}=we;let Fe=De;if(Re){const Be=new Set(De);Be.delete(Je),Fe=$o(Array.from(Be),{checked:!1,halfCheckedKeys:Ne},B,V).checkedKeys}J(Je,!Re,Fe,ge)}}N(Re?null:Xe)}})),checked:Re}};const pe=($e,he,We)=>{const{node:_e,checked:Je}=ce($e,he,We);return h?h(Je,he,We,_e):_e};if(!ee.includes(xr))if(ee.findIndex($e=>{var he;return((he=$e[fa])===null||he===void 0?void 0:he.columnType)==="EXPAND_COLUMN"})===0){const[$e,...he]=ee;ee=[$e,xr].concat(ve(he))}else ee=[xr].concat(ve(ee));const me=ee.indexOf(xr);ee=ee.filter(($e,he)=>$e!==xr||he===me);const be=ee[me-1],ye=ee[me+1];let xe=v;xe===void 0&&((ye==null?void 0:ye.fixed)!==void 0?xe=ye.fixed:(be==null?void 0:be.fixed)!==void 0&&(xe=be.fixed)),xe&&be&&((Q=be[fa])===null||Q===void 0?void 0:Q.columnType)==="EXPAND_COLUMN"&&be.fixed===void 0&&(be.fixed=xe);const qe=K(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:p&&g==="checkbox"}),Ie=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(le):t.columnTitle:re,Ce={fixed:xe,width:m,className:`${C}-selection-column`,title:Ie(),render:pe,onCell:t.onCell,[fa]:{className:qe}};return ee.map($e=>$e===xr?Ce:$e)},[E,j,t,X,W,G,m,oe,O,A,f,J,V]),W]};function Vj(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function Wj(e,t){return i.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,a){return n[a]?n[a]:Reflect.get(o,a)}}):Vj(r,n)})}function Gj(e){return function(n){let{prefixCls:r,onExpand:o,record:a,expanded:l,expandable:s}=n;const c=`${r}-row-expand-icon`;return i.createElement("button",{type:"button",onClick:u=>{o(a,u),u.stopPropagation()},className:K(c,{[`${c}-spaced`]:!s,[`${c}-expanded`]:s&&l,[`${c}-collapsed`]:s&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}}function qj(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let a=r;if(o){const l=getComputedStyle(o),s=parseInt(l.borderLeftWidth,10),c=parseInt(l.borderRightWidth,10);a=r-s-c}return a}}function Yr(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Ka(e,t){return t?`${t}-${e}`:`${e}`}function Ml(e,t){return typeof e=="function"?e(t):e}function Xj(e,t){const n=Ml(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}var Uj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const Yj=Uj;var Zj=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:Yj}))};const Qj=i.forwardRef(Zj);function Jj(e){const t=i.useRef(e),n=ch();return[()=>t.current,r=>{t.current=r,n()}]}function eD(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return i.createElement("div",{style:o})}function S0(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function tD(e,t){var n=i.useState(!1),r=q(n,2),o=r[0],a=r[1];xt(function(){if(o)return e(),function(){t()}},[o]),xt(function(){return a(!0),function(){a(!1)}},[])}var nD=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],x0=function(t,n){var r=t.className,o=t.style,a=t.motion,l=t.motionNodes,s=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,m=Qe(t,nD),g=i.useState(!0),p=q(g,2),v=p[0],h=p[1],b=i.useContext(gd),y=b.prefixCls,C=l&&s!=="hide";xt(function(){l&&C!==v&&h(C)},[l]);var S=function(){l&&c()},$=i.useRef(!1),x=function(){l&&!$.current&&($.current=!0,u())};tD(S,x);var E=function(w){C===w&&x()};return l?i.createElement(Gn,de({ref:n,visible:v},a,{motionAppear:s==="show",onVisibleChanged:E}),function(O,w){var P=O.className,R=O.style;return i.createElement("div",{ref:w,className:K("".concat(y,"-treenode-motion"),P),style:R},l.map(function(M){var I=de({},(S0(M.data),M.data)),N=M.title,z=M.key,L=M.isStart,T=M.isEnd;delete I.children;var _=ua(z,f);return i.createElement(_o,de({},I,_,{title:N,active:d,data:M.data,key:z,isStart:L,isEnd:T}))}))}):i.createElement(_o,de({domRef:n,className:r,style:o},m,{active:d}))};x0.displayName="MotionTreeNode";var rD=i.forwardRef(x0);function oD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,l){var s=new Map;a.forEach(function(u){s.set(u,!0)});var c=l.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function ug(e,t,n){var r=e.findIndex(function(s){return s.key===n}),o=e[r+1],a=t.findIndex(function(s){return s.key===n});if(o){var l=t.findIndex(function(s){return s.key===o.key});return t.slice(a+1,l)}return t.slice(a+1)}var aD=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],dg={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},iD=function(){},Zr="RC_TREE_MOTION_".concat(Math.random()),Vc={key:Zr},$0={key:Zr,level:0,index:0,pos:"0",node:Vc,nodes:[Vc]},fg={parent:null,children:[],pos:$0.pos,data:Vc,title:null,key:Zr,isStart:[],isEnd:[]};function mg(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function gg(e){var t=e.key,n=e.pos;return Aa(t,n)}function lD(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var w0=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,l=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,g=e.dragOverNodeKey,p=e.dropPosition,v=e.motion,h=e.height,b=e.itemHeight,y=e.virtual,C=e.focusable,S=e.activeItem,$=e.focused,x=e.tabIndex,E=e.onKeyDown,O=e.onFocus,w=e.onBlur,P=e.onActiveChange,R=e.onListChangeStart,M=e.onListChangeEnd,I=Qe(e,aD),N=i.useRef(null),z=i.useRef(null);i.useImperativeHandle(t,function(){return{scrollTo:function(ce){N.current.scrollTo(ce)},getIndentWidth:function(){return z.current.offsetWidth}}});var L=i.useState(o),T=q(L,2),_=T[0],B=T[1],j=i.useState(r),A=q(j,2),V=A[0],X=A[1],te=i.useState(r),W=q(te,2),G=W[0],ne=W[1],J=i.useState([]),oe=q(J,2),Z=oe[0],k=oe[1],Q=i.useState(null),ee=q(Q,2),Y=ee[0],U=ee[1],ie=i.useRef(r);ie.current=r;function se(){var le=ie.current;X(le),ne(le),k([]),U(null),M()}xt(function(){B(o);var le=oD(_,o);if(le.key!==null)if(le.add){var ce=V.findIndex(function(qe){var Ie=qe.key;return Ie===le.key}),pe=mg(ug(V,r,le.key),y,h,b),me=V.slice();me.splice(ce+1,0,fg),ne(me),k(pe),U("show")}else{var be=r.findIndex(function(qe){var Ie=qe.key;return Ie===le.key}),ye=mg(ug(r,V,le.key),y,h,b),xe=r.slice();xe.splice(be+1,0,fg),ne(xe),k(ye),U("hide")}else V!==r&&(X(r),ne(r))},[o,r]),i.useEffect(function(){m||se()},[m]);var ue=v?G:r,re={expandedKeys:o,selectedKeys:a,loadedKeys:s,loadingKeys:c,checkedKeys:l,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:p,keyEntities:d};return i.createElement(i.Fragment,null,$&&S&&i.createElement("span",{style:dg,"aria-live":"assertive"},lD(S)),i.createElement("div",null,i.createElement("input",{style:dg,disabled:C===!1||f,tabIndex:C!==!1?x:null,onKeyDown:E,onFocus:O,onBlur:w,value:"",onChange:iD,"aria-label":"for screen reader"})),i.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},i.createElement("div",{className:"".concat(n,"-indent")},i.createElement("div",{ref:z,className:"".concat(n,"-indent-unit")}))),i.createElement(pl,de({},I,{data:ue,itemKey:gg,height:h,fullHeight:!1,virtual:y,itemHeight:b,prefixCls:"".concat(n,"-list"),ref:N,onVisibleChange:function(ce,pe){var me=new Set(ce),be=pe.filter(function(ye){return!me.has(ye)});be.some(function(ye){return gg(ye)===Zr})&&se()}}),function(le){var ce=le.pos,pe=de({},(S0(le.data),le.data)),me=le.title,be=le.key,ye=le.isStart,xe=le.isEnd,qe=Aa(be,ce);delete pe.key,delete pe.children;var Ie=ua(qe,re);return i.createElement(rD,de({},pe,Ie,{title:me,active:!!S&&be===S.key,pos:ce,data:le.data,isStart:ye,isEnd:xe,motion:v,motionNodes:be===Zr?Z:null,motionType:Y,onMotionStart:R,onMotionEnd:se,treeNodeRequiredProps:re,onMouseMove:function(){P(null)}}))}))});w0.displayName="NodeList";var sD=10,pd=function(e){hr(n,e);var t=Qr(n);function n(){var r;fn(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return r=t.call.apply(t,[this].concat(a)),r.destroyed=!1,r.delayedDragEnterLogic=void 0,r.loadingRetryTimes={},r.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Mo()},r.dragStartMousePosition=null,r.dragNode=void 0,r.currentMouseOverDroppableNodeKey=null,r.listRef=i.createRef(),r.onNodeDragStart=function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=r.props.onDragStart,g=c.props.eventKey;r.dragNode=c,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var p=tr(d,g);r.setState({draggingNodeKey:g,dragChildrenKeys:Aj(g,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(p),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:s,node:Qt(c.props)})},r.onNodeDragEnter=function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=u.dragChildrenKeys,g=u.flattenNodes,p=u.indent,v=r.props,h=v.onDragEnter,b=v.onExpand,y=v.allowDrop,C=v.direction,S=c.props,$=S.pos,x=S.eventKey,E=vt(r),O=E.dragNode;if(r.currentMouseOverDroppableNodeKey!==x&&(r.currentMouseOverDroppableNodeKey=x),!O){r.resetDragState();return}var w=lg(s,O,c,p,r.dragStartMousePosition,y,g,f,d,C),P=w.dropPosition,R=w.dropLevelOffset,M=w.dropTargetKey,I=w.dropContainerKey,N=w.dropTargetPos,z=w.dropAllowed,L=w.dragOverNodeKey;if(m.indexOf(M)!==-1||!z){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(T){clearTimeout(r.delayedDragEnterLogic[T])}),O.props.eventKey!==c.props.eventKey&&(s.persist(),r.delayedDragEnterLogic[$]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var T=ve(d),_=Mn(f,c.props.eventKey);_&&(_.children||[]).length&&(T=cr(d,c.props.eventKey)),"expandedKeys"in r.props||r.setExpandedKeys(T),b==null||b(T,{node:Qt(c.props),expanded:!0,nativeEvent:s.nativeEvent})}},800)),O.props.eventKey===M&&R===0){r.resetDragState();return}r.setState({dragOverNodeKey:L,dropPosition:P,dropLevelOffset:R,dropTargetKey:M,dropContainerKey:I,dropTargetPos:N,dropAllowed:z}),h==null||h({event:s,node:Qt(c.props),expandedKeys:d})},r.onNodeDragOver=function(s,c){var u=r.state,d=u.dragChildrenKeys,f=u.flattenNodes,m=u.keyEntities,g=u.expandedKeys,p=u.indent,v=r.props,h=v.onDragOver,b=v.allowDrop,y=v.direction,C=vt(r),S=C.dragNode;if(S){var $=lg(s,S,c,p,r.dragStartMousePosition,b,f,m,g,y),x=$.dropPosition,E=$.dropLevelOffset,O=$.dropTargetKey,w=$.dropContainerKey,P=$.dropAllowed,R=$.dropTargetPos,M=$.dragOverNodeKey;d.indexOf(O)!==-1||!P||(S.props.eventKey===O&&E===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():x===r.state.dropPosition&&E===r.state.dropLevelOffset&&O===r.state.dropTargetKey&&w===r.state.dropContainerKey&&R===r.state.dropTargetPos&&P===r.state.dropAllowed&&M===r.state.dragOverNodeKey||r.setState({dropPosition:x,dropLevelOffset:E,dropTargetKey:O,dropContainerKey:w,dropTargetPos:R,dropAllowed:P,dragOverNodeKey:M}),h==null||h({event:s,node:Qt(c.props)}))}},r.onNodeDragLeave=function(s,c){r.currentMouseOverDroppableNodeKey===c.props.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:s,node:Qt(c.props)})},r.onWindowDragEnd=function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)},r.onNodeDragEnd=function(s,c){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:s,node:Qt(c.props)}),r.dragNode=null,window.removeEventListener("dragend",r.onWindowDragEnd)},r.onNodeDrop=function(s,c){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,g=f.dropPosition,p=f.dropTargetKey,v=f.dropTargetPos,h=f.dropAllowed;if(h){var b=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),p!==null){var y=D(D({},ua(p,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===p,data:Mn(r.state.keyEntities,p).node}),C=m.indexOf(p)!==-1;Vt(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=vd(v),$={event:s,node:Qt(y),dragNode:r.dragNode?Qt(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(m),dropToGap:g!==0,dropPosition:g+Number(S[S.length-1])};d||b==null||b($),r.dragNode=null}}},r.cleanDragState=function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null},r.triggerExpandActionExpand=function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,g=c.key,p=c.isLeaf;if(!(p||s.shiftKey||s.metaKey||s.ctrlKey)){var v=f.filter(function(b){return b.key===g})[0],h=Qt(D(D({},ua(g,r.getTreeNodeRequiredProps())),{},{data:v.data}));r.setExpandedKeys(m?tr(d,g):cr(d,g)),r.onNodeExpand(s,h)}},r.onNodeClick=function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)},r.onNodeDoubleClick=function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)},r.onNodeSelect=function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,g=r.props,p=g.onSelect,v=g.multiple,h=c.selected,b=c[m.key],y=!h;y?v?u=cr(u,b):u=[b]:u=tr(u,b);var C=u.map(function(S){var $=Mn(f,S);return $?$.node:null}).filter(function(S){return S});r.setUncontrolledState({selectedKeys:u}),p==null||p(u,{event:"select",selected:y,node:c,selectedNodes:C,nativeEvent:s.nativeEvent})},r.onNodeCheck=function(s,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,g=d.halfCheckedKeys,p=r.props,v=p.checkStrictly,h=p.onCheck,b=c.key,y,C={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(v){var S=u?cr(m,b):tr(m,b),$=tr(g,b);y={checked:S,halfChecked:$},C.checkedNodes=S.map(function(R){return Mn(f,R)}).filter(function(R){return R}).map(function(R){return R.node}),r.setUncontrolledState({checkedKeys:S})}else{var x=$o([].concat(ve(m),[b]),!0,f),E=x.checkedKeys,O=x.halfCheckedKeys;if(!u){var w=new Set(E);w.delete(b);var P=$o(Array.from(w),{checked:!1,halfCheckedKeys:O},f);E=P.checkedKeys,O=P.halfCheckedKeys}y=E,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=O,E.forEach(function(R){var M=Mn(f,R);if(M){var I=M.node,N=M.pos;C.checkedNodes.push(I),C.checkedNodesPositions.push({node:I,pos:N})}}),r.setUncontrolledState({checkedKeys:E},!1,{halfCheckedKeys:O})}h==null||h(y,C)},r.onNodeLoad=function(s){var c=s.key,u=new Promise(function(d,f){r.setState(function(m){var g=m.loadedKeys,p=g===void 0?[]:g,v=m.loadingKeys,h=v===void 0?[]:v,b=r.props,y=b.loadData,C=b.onLoad;if(!y||p.indexOf(c)!==-1||h.indexOf(c)!==-1)return null;var S=y(s);return S.then(function(){var $=r.state.loadedKeys,x=cr($,c);C==null||C(x,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:x}),r.setState(function(E){return{loadingKeys:tr(E.loadingKeys,c)}}),d()}).catch(function($){if(r.setState(function(E){return{loadingKeys:tr(E.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=sD){var x=r.state.loadedKeys;Vt(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:cr(x,c)}),d()}f($)}),{loadingKeys:cr(h,c)}})});return u.catch(function(){}),u},r.onNodeMouseEnter=function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})},r.onNodeMouseLeave=function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})},r.onNodeContextMenu=function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))},r.onFocus=function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)},r.onBlur=function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)},r.getTreeNodeRequiredProps=function(){var s=r.state,c=s.expandedKeys,u=s.selectedKeys,d=s.loadedKeys,f=s.loadingKeys,m=s.checkedKeys,g=s.halfCheckedKeys,p=s.dragOverNodeKey,v=s.dropPosition,h=s.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:m||[],halfCheckedKeys:g||[],dragOverNodeKey:p,dropPosition:v,keyEntities:h}},r.setExpandedKeys=function(s){var c=r.state,u=c.treeData,d=c.fieldNames,f=ps(u,s,d);r.setUncontrolledState({expandedKeys:s,flattenNodes:f},!0)},r.onNodeExpand=function(s,c){var u=r.state.expandedKeys,d=r.state,f=d.listChanging,m=d.fieldNames,g=r.props,p=g.onExpand,v=g.loadData,h=c.expanded,b=c[m.key];if(!f){var y=u.indexOf(b),C=!h;if(Vt(h&&y!==-1||!h&&y===-1,"Expand state not sync with index check"),C?u=cr(u,b):u=tr(u,b),r.setExpandedKeys(u),p==null||p(u,{node:c,expanded:C,nativeEvent:s.nativeEvent}),C&&v){var S=r.onNodeLoad(c);S&&S.then(function(){var $=ps(r.state.treeData,u,m);r.setUncontrolledState({flattenNodes:$})}).catch(function(){var $=r.state.expandedKeys,x=tr($,b);r.setExpandedKeys(x)})}}},r.onListChangeStart=function(){r.setUncontrolledState({listChanging:!0})},r.onListChangeEnd=function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})},r.onActiveChange=function(s){var c=r.state.activeKey,u=r.props,d=u.onActiveChange,f=u.itemScrollOffset,m=f===void 0?0:f;c!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:m}),d==null||d(s))},r.getActiveItem=function(){var s=r.state,c=s.activeKey,u=s.flattenNodes;return c===null?null:u.find(function(d){var f=d.key;return f===c})||null},r.offsetActiveKey=function(s){var c=r.state,u=c.flattenNodes,d=c.activeKey,f=u.findIndex(function(p){var v=p.key;return v===d});f===-1&&s<0&&(f=u.length),f=(f+s+u.length)%u.length;var m=u[f];if(m){var g=m.key;r.onActiveChange(g)}else r.onActiveChange(null)},r.onKeyDown=function(s){var c=r.state,u=c.activeKey,d=c.expandedKeys,f=c.checkedKeys,m=c.fieldNames,g=r.props,p=g.onKeyDown,v=g.checkable,h=g.selectable;switch(s.which){case fe.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case fe.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var b=r.getActiveItem();if(b&&b.data){var y=r.getTreeNodeRequiredProps(),C=b.data.isLeaf===!1||!!(b.data[m.children]||[]).length,S=Qt(D(D({},ua(u,y)),{},{data:b.data,active:!0}));switch(s.which){case fe.LEFT:{C&&d.includes(u)?r.onNodeExpand({},S):b.parent&&r.onActiveChange(b.parent.key),s.preventDefault();break}case fe.RIGHT:{C&&!d.includes(u)?r.onNodeExpand({},S):b.children&&b.children.length&&r.onActiveChange(b.children[0].key),s.preventDefault();break}case fe.ENTER:case fe.SPACE:{v&&!S.disabled&&S.checkable!==!1&&!S.disableCheckbox?r.onNodeCheck({},S,!f.includes(u)):!v&&h&&!S.disabled&&S.selectable!==!1&&r.onNodeSelect({},S);break}}}p==null||p(s)},r.setUncontrolledState=function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(s).forEach(function(g){if(g in r.props){f=!1;return}d=!0,m[g]=s[g]}),d&&(!c||f)&&r.setState(D(D({},m),u))}},r.scrollTo=function(s){r.listRef.current.scrollTo(s)},r}return mn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,l=o.itemScrollOffset,s=l===void 0?0:l;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o,a=this.state,l=a.focused,s=a.flattenNodes,c=a.keyEntities,u=a.draggingNodeKey,d=a.activeKey,f=a.dropLevelOffset,m=a.dropContainerKey,g=a.dropTargetKey,p=a.dropPosition,v=a.dragOverNodeKey,h=a.indent,b=this.props,y=b.prefixCls,C=b.className,S=b.style,$=b.showLine,x=b.focusable,E=b.tabIndex,O=E===void 0?0:E,w=b.selectable,P=b.showIcon,R=b.icon,M=b.switcherIcon,I=b.draggable,N=b.checkable,z=b.checkStrictly,L=b.disabled,T=b.motion,_=b.loadData,B=b.filterTreeNode,j=b.height,A=b.itemHeight,V=b.virtual,X=b.titleRender,te=b.dropIndicatorRender,W=b.onContextMenu,G=b.onScroll,ne=b.direction,J=b.rootClassName,oe=b.rootStyle,Z=zn(this.props,{aria:!0,data:!0}),k;return I&&(at(I)==="object"?k=I:typeof I=="function"?k={nodeDraggable:I}:k={}),i.createElement(gd.Provider,{value:{prefixCls:y,selectable:w,showIcon:P,icon:R,switcherIcon:M,draggable:k,draggingNodeKey:u,checkable:N,checkStrictly:z,disabled:L,keyEntities:c,dropLevelOffset:f,dropContainerKey:m,dropTargetKey:g,dropPosition:p,dragOverNodeKey:v,indent:h,direction:ne,dropIndicatorRender:te,loadData:_,filterTreeNode:B,titleRender:X,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},i.createElement("div",{role:"tree",className:K(y,C,J,(o={},F(o,"".concat(y,"-show-line"),$),F(o,"".concat(y,"-focused"),l),F(o,"".concat(y,"-active-focused"),d!==null),o)),style:oe},i.createElement(w0,de({ref:this.listRef,prefixCls:y,style:S,data:s,disabled:L,selectable:w,checkable:!!N,motion:T,dragging:u!==null,height:j,itemHeight:A,virtual:V,focusable:x,focused:l,tabIndex:O,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:G},this.getTreeNodeRequiredProps(),Z))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var l=a.prevProps,s={prevProps:o};function c(x){return!l&&x in o||l&&l[x]!==o[x]}var u,d=a.fieldNames;if(c("fieldNames")&&(d=Mo(o.fieldNames),s.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(Vt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=ib(o.children)),u){s.treeData=u;var f=od(u,{fieldNames:d});s.keyEntities=D(F({},Zr,$0),f.keyEntities)}var m=s.keyEntities||a.keyEntities;if(c("expandedKeys")||l&&c("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!l&&o.defaultExpandParent?Fc(o.expandedKeys,m):o.expandedKeys;else if(!l&&o.defaultExpandAll){var g=D({},m);delete g[Zr],s.expandedKeys=Object.keys(g).map(function(x){return g[x].key})}else!l&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Fc(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var p=ps(u||a.treeData,s.expandedKeys||a.expandedKeys,d);s.flattenNodes=p}if(o.selectable&&(c("selectedKeys")?s.selectedKeys=sg(o.selectedKeys,o):!l&&o.defaultSelectedKeys&&(s.selectedKeys=sg(o.defaultSelectedKeys,o))),o.checkable){var v;if(c("checkedKeys")?v=xs(o.checkedKeys)||{}:!l&&o.defaultCheckedKeys?v=xs(o.defaultCheckedKeys)||{}:u&&(v=xs(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),v){var h=v,b=h.checkedKeys,y=b===void 0?[]:b,C=h.halfCheckedKeys,S=C===void 0?[]:C;if(!o.checkStrictly){var $=$o(y,!0,m);y=$.checkedKeys,S=$.halfCheckedKeys}s.checkedKeys=y,s.halfCheckedKeys=S}}return c("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(i.Component);pd.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:eD,allowDrop:function(){return!0},expandAction:!1};pd.TreeNode=_o;var cD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const uD=cD;var dD=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:uD}))};const E0=i.forwardRef(dD);var fD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const mD=fD;var gD=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:mD}))};const vD=i.forwardRef(gD);var pD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const hD=pD;var bD=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:hD}))};const yD=i.forwardRef(bD);var CD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const SD=CD;var xD=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:SD}))};const $D=i.forwardRef(xD),wD=new bt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ED=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),OD=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${H(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ID=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,nodeSelectedBg:l,nodeHoverBg:s}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},_t(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Nr(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:wD,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${H(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${H(a)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},ED(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${H(a)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${H(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${H(a)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${H(a)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${H(a)}`,userSelect:"none"},OD(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${H(t.calc(a).div(2).equal())} !important`}}}}})}},RD=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n            &:hover::before,\n            &::before\n          ":{background:o},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},PD=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=pt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[ID(e,a),RD(a)]},ND=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},TD=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},ND(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},MD=zt("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:sb(`${n}-checkbox`,e)},PD(n,e),Ou(e)]},TD),vg=4;function _D(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,l=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",c={[l]:-n*o+vg,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=o+vg;break}return ae.createElement("div",{style:c,className:`${r}-drop-indicator`})}var zD={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const LD=zD;var jD=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:LD}))};const DD=i.forwardRef(jD);var BD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const AD=BD;var FD=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:AD}))};const HD=i.forwardRef(FD);var kD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const KD=kD;var VD=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:KD}))};const WD=i.forwardRef(VD),GD=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:a,expanded:l,loading:s}=r;if(s)return i.createElement(Ta,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),a){if(!o)return null;if(typeof c!="boolean"&&c){const f=typeof c=="function"?c(r):c,m=`${t}-switcher-line-custom-icon`;return Ln(f)?dn(f,{className:K(f.props.className||"",m)}):f}return c?i.createElement(E0,{className:`${t}-switcher-line-icon`}):i.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return Ln(d)?dn(d,{className:K(d.props.className||"",u)}):d!==void 0?d:o?l?i.createElement(HD,{className:`${t}-switcher-line-icon`}):i.createElement(WD,{className:`${t}-switcher-line-icon`}):i.createElement(DD,{className:u})},qD=GD,XD=ae.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:l}=ae.useContext(Ve),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,blockNode:m=!1,children:g,checkable:p=!1,selectable:v=!0,draggable:h,motion:b,style:y}=e,C=r("tree",s),S=r(),$=b??Object.assign(Object.assign({},zi(S)),{motionAppear:!1}),x=Object.assign(Object.assign({},e),{checkable:p,selectable:v,showIcon:u,motion:$,blockNode:m,showLine:!!d,dropIndicatorRender:_D}),[E,O,w]=MD(C),[,P]=en(),R=P.paddingXS/2+(((n=P.Tree)===null||n===void 0?void 0:n.titleHeight)||P.controlHeightSM),M=ae.useMemo(()=>{if(!h)return!1;let N={};switch(typeof h){case"function":N.nodeDraggable=h;break;case"object":N=Object.assign({},h);break}return N.icon!==!1&&(N.icon=N.icon||ae.createElement($D,null)),N},[h]),I=N=>ae.createElement(qD,{prefixCls:C,switcherIcon:f,treeNodeProps:N,showLine:d});return E(ae.createElement(pd,Object.assign({itemHeight:R,ref:t,virtual:a},x,{style:Object.assign(Object.assign({},l==null?void 0:l.style),y),prefixCls:C,className:K({[`${C}-icon-hide`]:!u,[`${C}-block-node`]:m,[`${C}-unselectable`]:!v,[`${C}-rtl`]:o==="rtl"},l==null?void 0:l.className,c,O,w),direction:o,checkable:p&&ae.createElement("span",{className:`${C}-checkbox-inner`}),selectable:v,switcherIcon:I,draggable:M}),g))}),O0=XD;var ur;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(ur||(ur={}));function hd(e,t,n){const{key:r,children:o}=n;function a(l){const s=l[r],c=l[o];t(s,l)!==!1&&hd(c||[],t,n)}e.forEach(a)}function UD(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:a}=e;const l=[];let s=ur.None;if(r&&r===o)return[r];if(!r||!o)return[];function c(u){return u===r||u===o}return hd(t,u=>{if(s===ur.End)return!1;if(c(u)){if(l.push(u),s===ur.None)s=ur.Start;else if(s===ur.Start)return s=ur.End,!1}else s===ur.Start&&l.push(u);return n.includes(u)},Mo(a)),l}function $s(e,t,n){const r=ve(t),o=[];return hd(e,(a,l)=>{const s=r.indexOf(a);return s!==-1&&(o.push(l),r.splice(s,1)),!!r.length},Mo(n)),o}var pg=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function YD(e){const{isLeaf:t,expanded:n}=e;return t?i.createElement(E0,null):n?i.createElement(vD,null):i.createElement(yD,null)}function hg(e){let{treeData:t,children:n}=e;return t||ib(n)}const ZD=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=pg(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=i.useRef(),s=i.useRef(),c=()=>{const{keyEntities:O}=od(hg(a));let w;return n?w=Object.keys(O):r?w=Fc(a.expandedKeys||o||[],O):w=a.expandedKeys||o,w},[u,d]=i.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,m]=i.useState(()=>c());i.useEffect(()=>{"selectedKeys"in a&&d(a.selectedKeys)},[a.selectedKeys]),i.useEffect(()=>{"expandedKeys"in a&&m(a.expandedKeys)},[a.expandedKeys]);const g=(O,w)=>{var P;return"expandedKeys"in a||m(O),(P=a.onExpand)===null||P===void 0?void 0:P.call(a,O,w)},p=(O,w)=>{var P;const{multiple:R,fieldNames:M}=a,{node:I,nativeEvent:N}=w,{key:z=""}=I,L=hg(a),T=Object.assign(Object.assign({},w),{selected:!0}),_=(N==null?void 0:N.ctrlKey)||(N==null?void 0:N.metaKey),B=N==null?void 0:N.shiftKey;let j;R&&_?(j=O,l.current=z,s.current=j,T.selectedNodes=$s(L,j,M)):R&&B?(j=Array.from(new Set([].concat(ve(s.current||[]),ve(UD({treeData:L,expandedKeys:f,startKey:z,endKey:l.current,fieldNames:M}))))),T.selectedNodes=$s(L,j,M)):(j=[z],l.current=z,s.current=j,T.selectedNodes=$s(L,j,M)),(P=a.onSelect)===null||P===void 0||P.call(a,j,T),"selectedKeys"in a||d(j)},{getPrefixCls:v,direction:h}=i.useContext(Ve),{prefixCls:b,className:y,showIcon:C=!0,expandAction:S="click"}=a,$=pg(a,["prefixCls","className","showIcon","expandAction"]),x=v("tree",b),E=K(`${x}-directory`,{[`${x}-directory-rtl`]:h==="rtl"},y);return i.createElement(O0,Object.assign({icon:YD,ref:t,blockNode:!0},$,{showIcon:C,expandAction:S,prefixCls:x,className:E,expandedKeys:f,selectedKeys:u,onSelect:p,onExpand:g}))},QD=i.forwardRef(ZD),JD=QD,bd=O0;bd.DirectoryTree=JD;bd.TreeNode=_o;const eB=bd;function bg(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:a}=e;return r?i.createElement("div",{className:`${o}-filter-dropdown-search`},i.createElement(p_,{prefix:i.createElement(Du,null),placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const tB=e=>{const{keyCode:t}=e;t===fe.ENTER&&e.stopPropagation()},nB=i.forwardRef((e,t)=>i.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:tB,ref:t},e.children)),rB=nB;function wo(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(ve(t),ve(wo(o))))}),t}function oB(e){return e.some(t=>{let{children:n}=t;return n})}function I0(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function R0(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:l}=e;return t.map((s,c)=>{const u=String(s.value);if(s.children)return{key:u||c,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:R0({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:l})};const d=o?Vi:qh,f={key:s.value!==void 0?u:c,label:i.createElement(i.Fragment,null,i.createElement(d,{checked:r.includes(u)}),i.createElement("span",null,s.text))};return a.trim()?typeof l=="function"?l(a,s)?f:null:I0(a,s.text)?f:null:f})}function ws(e){return e||[]}function aB(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:a,dropdownPrefixCls:l,columnKey:s,filterMultiple:c,filterMode:u="menu",filterSearch:d=!1,filterState:f,triggerFilter:m,locale:g,children:p,getPopupContainer:v,rootClassName:h}=e,{filterDropdownOpen:b,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:C,defaultFilteredValue:S,filterDropdownVisible:$,onFilterDropdownVisibleChange:x}=a,[E,O]=i.useState(!1),w=!!(f&&(!((t=f.filteredKeys)===null||t===void 0)&&t.length||f.forceFiltered)),P=ie=>{O(ie),y==null||y(ie),x==null||x(ie)},R=(n=b??$)!==null&&n!==void 0?n:E,M=f==null?void 0:f.filteredKeys,[I,N]=Jj(ws(M)),z=ie=>{let{selectedKeys:se}=ie;N(se)},L=(ie,se)=>{let{node:ue,checked:re}=se;z(c?{selectedKeys:ie}:{selectedKeys:re&&ue.key?[ue.key]:[]})};i.useEffect(()=>{E&&z({selectedKeys:ws(M)})},[M]);const[T,_]=i.useState([]),B=ie=>{_(ie)},[j,A]=i.useState(""),V=ie=>{const{value:se}=ie.target;A(se)};i.useEffect(()=>{E||A("")},[E]);const X=ie=>{const se=ie&&ie.length?ie:null;if(se===null&&(!f||!f.filteredKeys)||Vn(se,f==null?void 0:f.filteredKeys,!0))return null;m({column:a,key:s,filteredKeys:se})},te=()=>{P(!1),X(I())},W=function(){let{confirm:ie,closeDropdown:se}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ie&&X([]),se&&P(!1),A(""),N(C?(S||[]).map(ue=>String(ue)):[])},G=function(){let{closeDropdown:ie}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ie&&P(!1),X(I())},ne=(ie,se)=>{se.source==="trigger"&&(ie&&M!==void 0&&N(ws(M)),P(ie),!ie&&!a.filterDropdown&&te())},J=K({[`${l}-menu-without-submenu`]:!oB(a.filters||[])}),oe=ie=>{if(ie.target.checked){const se=wo(a==null?void 0:a.filters).map(ue=>String(ue));N(se)}else N([])},Z=ie=>{let{filters:se}=ie;return(se||[]).map((ue,re)=>{const le=String(ue.value),ce={title:ue.text,key:ue.value!==void 0?le:String(re)};return ue.children&&(ce.children=Z({filters:ue.children})),ce})},k=ie=>{var se;return Object.assign(Object.assign({},ie),{text:ie.title,value:ie.key,children:((se=ie.children)===null||se===void 0?void 0:se.map(ue=>k(ue)))||[]})};let Q;if(typeof a.filterDropdown=="function")Q=a.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:ie=>z({selectedKeys:ie}),selectedKeys:I(),confirm:G,clearFilters:W,filters:a.filters,visible:R,close:()=>{P(!1)}});else if(a.filterDropdown)Q=a.filterDropdown;else{const ie=I()||[],se=()=>(a.filters||[]).length===0?i.createElement(Fr,{image:Fr.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):u==="tree"?i.createElement(i.Fragment,null,i.createElement(bg,{filterSearch:d,value:j,onChange:V,tablePrefixCls:r,locale:g}),i.createElement("div",{className:`${r}-filter-dropdown-tree`},c?i.createElement(Vi,{checked:ie.length===wo(a.filters).length,indeterminate:ie.length>0&&ie.length<wo(a.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:oe},g.filterCheckall):null,i.createElement(eB,{checkable:!0,selectable:!1,blockNode:!0,multiple:c,checkStrictly:!c,className:`${l}-menu`,onCheck:L,checkedKeys:ie,selectedKeys:ie,showIcon:!1,treeData:Z({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:j.trim()?re=>typeof d=="function"?d(j,k(re)):I0(j,re.title):void 0}))):i.createElement(i.Fragment,null,i.createElement(bg,{filterSearch:d,value:j,onChange:V,tablePrefixCls:r,locale:g}),i.createElement(Bh,{selectable:!0,multiple:c,prefixCls:`${l}-menu`,className:J,onSelect:z,onDeselect:z,selectedKeys:ie,getPopupContainer:v,openKeys:T,onOpenChange:B,items:R0({filters:a.filters||[],filterSearch:d,prefixCls:o,filteredKeys:I(),filterMultiple:c,searchValue:j})})),ue=()=>C?Vn((S||[]).map(re=>String(re)),ie,!0):ie.length===0;Q=i.createElement(i.Fragment,null,se(),i.createElement("div",{className:`${o}-dropdown-btns`},i.createElement(Ca,{type:"link",size:"small",disabled:ue(),onClick:()=>W()},g.filterReset),i.createElement(Ca,{type:"primary",size:"small",onClick:te},g.filterConfirm)))}a.filterDropdown&&(Q=i.createElement(Dh,{selectable:void 0},Q));const ee=()=>i.createElement(rB,{className:`${o}-dropdown`},Q);let Y;typeof a.filterIcon=="function"?Y=a.filterIcon(w):a.filterIcon?Y=a.filterIcon:Y=i.createElement(Qj,null);const{direction:U}=i.useContext(Ve);return i.createElement("div",{className:`${o}-column`},i.createElement("span",{className:`${r}-column-title`},p),i.createElement($b,{dropdownRender:ee,trigger:["click"],open:R,onOpenChange:ne,getPopupContainer:v,placement:U==="rtl"?"bottomLeft":"bottomRight",rootClassName:h},i.createElement("span",{role:"button",tabIndex:-1,className:K(`${o}-trigger`,{active:w}),onClick:ie=>{ie.stopPropagation()}},Y)))}function Wc(e,t,n){let r=[];return(e||[]).forEach((o,a)=>{var l;const s=Ka(a,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;"filterDropdown"in o||(c=(l=c==null?void 0:c.map(String))!==null&&l!==void 0?l:c),r.push({column:o,key:Yr(o,s),filteredKeys:c,forceFiltered:o.filtered})}else r.push({column:o,key:Yr(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(ve(r),ve(Wc(o.children,t,s))))}),r}function P0(e,t,n,r,o,a,l,s,c){return n.map((u,d)=>{const f=Ka(d,s),{filterMultiple:m=!0,filterMode:g,filterSearch:p}=u;let v=u;if(v.filters||v.filterDropdown){const h=Yr(v,f),b=r.find(y=>{let{key:C}=y;return h===C});v=Object.assign(Object.assign({},v),{title:y=>i.createElement(aB,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:h,filterState:b,filterMultiple:m,filterMode:g,filterSearch:p,triggerFilter:a,locale:o,getPopupContainer:l,rootClassName:c},Ml(u.title,y))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:P0(e,t,v.children,r,o,a,l,f,c)})),v})}function yg(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:a}=n;const l=r,{filters:s,filterDropdown:c}=a;if(c)t[l]=o||null;else if(Array.isArray(o)){const u=wo(s);t[l]=u.filter(d=>o.includes(String(d)))}else t[l]=null}),t}function Cg(e,t){return t.reduce((n,r)=>{const{column:{onFilter:o,filters:a},filteredKeys:l}=r;return o&&l&&l.length?n.filter(s=>l.some(c=>{const u=wo(a),d=u.findIndex(m=>String(m)===String(c)),f=d!==-1?u[d]:c;return o(f,s)})):n},e)}const N0=e=>e.flatMap(t=>"children"in t?[t].concat(ve(N0(t.children||[]))):[t]);function iB(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:l,rootClassName:s}=e;Lr();const c=i.useMemo(()=>N0(r||[]),[r]),[u,d]=i.useState(()=>Wc(c,!0)),f=i.useMemo(()=>{const v=Wc(c,!1);if(v.length===0)return v;let h=!0;if(v.forEach(b=>{let{filteredKeys:y}=b;y!==void 0&&(h=!1)}),h){const b=(c||[]).map((y,C)=>Yr(y,Ka(C)));return u.filter(y=>{let{key:C}=y;return b.includes(C)}).map(y=>{const C=c[b.findIndex(S=>S===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),C),forceFiltered:C.filtered})})}return v},[c,u]),m=i.useMemo(()=>yg(f),[f]),g=v=>{const h=f.filter(b=>{let{key:y}=b;return y!==v.key});h.push(v),d(h),o(yg(h),h)};return[v=>P0(t,n,v,f,l,g,a,void 0,s),f,m]}function lB(e,t,n){const r=i.useRef({});function o(a){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let s=function(c){c.forEach((u,d)=>{const f=n(u,d);l.set(f,u),u&&typeof u=="object"&&t in u&&s(u[t]||[])})};const l=new Map;s(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return r.current.kvMap.get(a)}return[o]}var sB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const T0=10;function cB(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const a=e[o];typeof a!="function"&&(n[o]=a)}),n}function uB(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,a=sB(r,["total"]),[l,s]=i.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:T0})),c=_L(l,a,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,g)=>{s({current:m??1,pageSize:g||c.pageSize})},f=(m,g)=>{var p;n&&((p=n.onChange)===null||p===void 0||p.call(n,m,g)),d(m,g),t(m,g||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}var dB={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const fB=dB;var mB=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:fB}))};const gB=i.forwardRef(mB);var vB={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const pB=vB;var hB=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:pB}))};const bB=i.forwardRef(hB),wi="ascend",Es="descend";function Yi(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Sg(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function yB(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Gc(e,t,n){let r=[];function o(a,l){r.push({column:a,key:Yr(a,l),multiplePriority:Yi(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,l)=>{const s=Ka(l,n);a.children?("sortOrder"in a&&o(a,s),r=[].concat(ve(r),ve(Gc(a.children,t,s)))):a.sorter&&("sortOrder"in a?o(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:Yr(a,s),multiplePriority:Yi(a),sortOrder:a.defaultSortOrder}))}),r}function M0(e,t,n,r,o,a,l,s){return(t||[]).map((c,u)=>{const d=Ka(u,s);let f=c;if(f.sorter){const m=f.sortDirections||o,g=f.showSorterTooltip===void 0?l:f.showSorterTooltip,p=Yr(f,d),v=n.find(O=>{let{key:w}=O;return w===p}),h=v?v.sortOrder:null,b=yB(m,h);let y;if(c.sortIcon)y=c.sortIcon({sortOrder:h});else{const O=m.includes(wi)&&i.createElement(bB,{className:K(`${e}-column-sorter-up`,{active:h===wi})}),w=m.includes(Es)&&i.createElement(gB,{className:K(`${e}-column-sorter-down`,{active:h===Es})});y=i.createElement("span",{className:K(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(O&&w)})},i.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},O,w))}const{cancelSort:C,triggerAsc:S,triggerDesc:$}=a||{};let x=C;b===Es?x=$:b===wi&&(x=S);const E=typeof g=="object"?Object.assign({title:x},g):{title:x};f=Object.assign(Object.assign({},f),{className:K(f.className,{[`${e}-column-sort`]:h}),title:O=>{const w=i.createElement("div",{className:`${e}-column-sorters`},i.createElement("span",{className:`${e}-column-title`},Ml(c.title,O)),y);return g?i.createElement(Ur,Object.assign({},E),w):w},onHeaderCell:O=>{const w=c.onHeaderCell&&c.onHeaderCell(O)||{},P=w.onClick,R=w.onKeyDown;w.onClick=N=>{r({column:c,key:p,sortOrder:b,multiplePriority:Yi(c)}),P==null||P(N)},w.onKeyDown=N=>{N.keyCode===fe.ENTER&&(r({column:c,key:p,sortOrder:b,multiplePriority:Yi(c)}),R==null||R(N))};const M=Xj(c.title,{}),I=M==null?void 0:M.toString();return h?w["aria-sort"]=h==="ascend"?"ascending":"descending":w["aria-label"]=I||"",w.className=K(w.className,`${e}-column-has-sorters`),w.tabIndex=0,c.ellipsis&&(w.title=(M??"").toString()),w}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:M0(e,f.children,n,r,o,a,l,d)})),f})}function xg(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function $g(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(xg);return t.length===0&&e.length?Object.assign(Object.assign({},xg(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function qc(e,t,n){const r=t.slice().sort((l,s)=>s.multiplePriority-l.multiplePriority),o=e.slice(),a=r.filter(l=>{let{column:{sorter:s},sortOrder:c}=l;return Sg(s)&&c});return a.length?o.sort((l,s)=>{for(let c=0;c<a.length;c+=1){const u=a[c],{column:{sorter:d},sortOrder:f}=u,m=Sg(d);if(m&&f){const g=m(l,s,f);if(g!==0)return f===wi?g:-g}}return 0}).map(l=>{const s=l[n];return s?Object.assign(Object.assign({},l),{[n]:qc(s,t,n)}):l}):o}function CB(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:a,showSorterTooltip:l}=e;const[s,c]=i.useState(Gc(n,!0)),u=i.useMemo(()=>{let p=!0;const v=Gc(n,!1);if(!v.length)return s;const h=[];function b(C){p?h.push(C):h.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let y=null;return v.forEach(C=>{y===null?(b(C),C.sortOrder&&(C.multiplePriority===!1?p=!1:y=!0)):(y&&C.multiplePriority!==!1||(p=!1),b(C))}),h},[n,s]),d=i.useMemo(()=>{const p=u.map(v=>{let{column:h,sortOrder:b}=v;return{column:h,order:b}});return{sortColumns:p,sortColumn:p[0]&&p[0].column,sortOrder:p[0]&&p[0].order}},[u]);function f(p){let v;p.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?v=[p]:v=[].concat(ve(u.filter(h=>{let{key:b}=h;return b!==p.key})),[p]),c(v),r($g(v),v)}return[p=>M0(t,p,u,f,o,a,l),u,d,()=>$g(u)]}function _0(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=Ml(n.title,t),"children"in r&&(r.children=_0(r.children,t)),r})}function SB(e){return[i.useCallback(n=>_0(n,e),[e])]}const xB=p0((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),$B=y0((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),wB=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:l,tablePaddingHorizontal:s,calc:c}=e,u=`${H(n)} ${r} ${o}`,d=(f,m,g)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n            > table > tbody > tr > th,\n            > table > tbody > tr > td\n          ":{[`> ${t}-expanded-row-fixed`]:{margin:`${H(c(m).mul(-1).equal())}
              ${H(c(c(g).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`
            > ${t}-content,
            > ${t}-header,
            > ${t}-body,
            > ${t}-summary
          `]:{"> table":{"\n                > thead > tr > th,\n                > thead > tr > td,\n                > tbody > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n                > tbody > tr > th,\n                > tbody > tr > td\n              ":{[`> ${t}-expanded-row-fixed`]:{margin:`${H(c(l).mul(-1).equal())} ${H(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
                > tr${t}-expanded-row,
                > tr${t}-placeholder
              `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${H(n)} 0 ${H(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},EB=wB,OB=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},mr),{wordBreak:"keep-all",[`
          &${t}-cell-fix-left-last,
          &${t}-cell-fix-right-first
        `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},IB=OB,RB=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n          &:hover > th,\n          &:hover > td,\n        ":{background:e.colorBgContainer}}}}},PB=RB,NB=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:l,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:g,paddingXXS:p,expandIconMarginTop:v,expandIconSize:h,expandIconHalfInner:b,expandIconScale:y,calc:C}=e,S=`${H(o)} ${l} ${s}`,$=C(p).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},su(e)),{position:"relative",float:"left",boxSizing:"border-box",width:h,height:h,padding:0,color:"inherit",lineHeight:H(h),background:c,border:S,borderRadius:d,transform:`scale(${y})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:$,insetInlineStart:$,height:o},"&::after":{top:$,bottom:$,insetInlineStart:b,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:v,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${H(C(f).mul(-1).equal())} ${H(C(m).mul(-1).equal())}`,padding:`${H(f)} ${H(m)}`}}}},TB=NB,MB=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:l,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:g,tablePaddingHorizontal:p,borderRadius:v,motionDurationSlow:h,colorTextDescription:b,colorPrimary:y,tableHeaderFilterActiveBg:C,colorTextDisabled:S,tableFilterDropdownBg:$,tableFilterDropdownHeight:x,controlItemBgHover:E,controlItemBgActive:O,boxShadowSecondary:w,filterDropdownMenuBg:P,calc:R}=e,M=`${n}-dropdown`,I=`${t}-filter-dropdown`,N=`${n}-tree`,z=`${H(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:R(l).mul(-1).equal(),marginInline:`${H(l)} ${H(R(p).div(2).mul(-1).equal())}`,padding:`0 ${H(l)}`,color:m,fontSize:g,borderRadius:v,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:b,background:C},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[I]:Object.assign(Object.assign({},_t(e)),{minWidth:o,backgroundColor:$,borderRadius:v,boxShadow:w,overflow:"hidden",[`${M}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${H(s)} 0`,color:S,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${I}-tree`]:{paddingBlock:`${H(s)} 0`,paddingInline:s,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:E},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${I}-search`]:{padding:s,borderBottom:z,"&-input":{input:{minWidth:a},[r]:{color:S}}},[`${I}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${I}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${H(R(s).sub(u).equal())} ${H(s)}`,overflow:"hidden",borderTop:z}})}},{[`${n}-dropdown ${I}, ${I}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},_B=MB,zB=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:l,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[`
        ${t}-cell-fix-left,
        ${t}-cell-fix-right
      `]:{position:"sticky !important",zIndex:a,background:l},[`
        ${t}-cell-fix-left-first::after,
        ${t}-cell-fix-left-last::after
      `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
        ${t}-cell-fix-right-first::after,
        ${t}-cell-fix-right-last::after
      `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`
          ${t}-cell-fix-left-first::after,
          ${t}-cell-fix-left-last::after
        `]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[`
          ${t}-cell-fix-right-first::after,
          ${t}-cell-fix-right-last::after
        `]:{boxShadow:`inset -10px 0 8px -8px ${u}`}}}}},LB=zB,jB=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${H(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},DB=jB,BB=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${H(n)} ${H(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${H(n)} ${H(n)}`}}}}},AB=BB,FB=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},HB=FB,kB=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:l,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:g,calc:p}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:p(u).add(o).add(p(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:p(u).add(p(l).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:p(u).add(o).add(p(a).div(4)).add(p(l).mul(2)).equal()}},[`
        table tr th${t}-selection-column,
        table tr td${t}-selection-column,
        ${t}-selection-column
      `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:H(p(g).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},KB=kB,VB=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(a,l,s,c)=>({[`${t}${t}-${a}`]:{fontSize:c,[`
        ${t}-title,
        ${t}-footer,
        ${t}-cell,
        ${t}-thead > tr > th,
        ${t}-tbody > tr > th,
        ${t}-tbody > tr > td,
        tfoot > tr > th,
        tfoot > tr > td
      `]:{padding:`${H(l)} ${H(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:H(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${H(r(l).mul(-1).equal())} ${H(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:H(r(l).mul(-1).equal()),marginInline:`${H(r(n).sub(s).equal())} ${H(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:H(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},WB=VB,GB=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
          &${t}-cell-fix-left:hover,
          &${t}-cell-fix-right:hover
        `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},qB=GB,XB=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:l,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${H(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${H(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:l,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},UB=XB,YB=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a=`${H(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${H(o(n).mul(-1).equal())} 0 ${r}`}}}},wg=YB,ZB=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:l}=e,s=`${H(r)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${H(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:l(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},QB=ZB,JB=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:l,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:g,tableHeaderBg:p,tableHeaderCellSplitColor:v,tableFooterTextColor:h,tableFooterBg:b,calc:y}=e,C=`${H(l)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Pr()),{[t]:Object.assign(Object.assign({},_t(e)),{fontSize:u,background:d,borderRadius:`${H(f)} ${H(f)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${H(f)} ${H(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
          ${t}-cell,
          ${t}-thead > tr > th,
          ${t}-tbody > tr > th,
          ${t}-tbody > tr > td,
          tfoot > tr > th,
          tfoot > tr > td
        `]:{position:"relative",padding:`${H(r)} ${H(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${H(r)} ${H(o)}`},[`${t}-thead`]:{"\n          > tr > th,\n          > tr > td\n        ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:p,borderBottom:C,transition:`background ${g} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:v,transform:"translateY(-50%)",transition:`background-color ${g}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${g}, border-color ${g}`,borderBottom:C,[`
              > ${t}-wrapper:only-child,
              > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
            `]:{[t]:{marginBlock:H(y(r).mul(-1).equal()),marginInline:`${H(y(a).sub(o).equal())}
                ${H(y(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:p,borderBottom:C,transition:`background ${g} ease`}}},[`${t}-footer`]:{padding:`${H(r)} ${H(o)}`,color:h,background:b}})}},eA=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:l,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:g,colorTextPlaceholder:p,fontSize:v,fontSizeSM:h,lineHeight:b,lineWidth:y,colorIcon:C,colorIconHover:S,opacityLoading:$,controlInteractiveSize:x}=e,E=new Rt(o).onBackground(n).toHexShortString(),O=new Rt(a).onBackground(n).toHexShortString(),w=new Rt(t).onBackground(n).toHexShortString(),P=new Rt(C),R=new Rt(S),M=x/2-y,I=M*2+y*3;return{headerBg:w,headerColor:r,headerSortActiveBg:E,headerSortHoverBg:O,bodySortBg:w,rowHoverBg:w,rowSelectedBg:l,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:w,footerColor:r,cellFontSize:v,cellFontSizeMD:v,cellFontSizeSM:v,headerSplitColor:f,fixedHeaderSortActiveBg:E,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(v*b-y*3)/2-Math.ceil((h*1.4-y*3)/2),headerIconColor:P.clone().setAlpha(P.getAlpha()*$).toRgbString(),headerIconHoverColor:R.clone().setAlpha(R.getAlpha()*$).toRgbString(),expandIconHalfInner:M,expandIconSize:I,expandIconScale:x/I}},tA=zt("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:l,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:g,cellPaddingBlock:p,cellPaddingInline:v,cellPaddingBlockMD:h,cellPaddingInlineMD:b,cellPaddingBlockSM:y,cellPaddingInlineSM:C,borderColor:S,footerBg:$,footerColor:x,headerBorderRadius:E,cellFontSize:O,cellFontSizeMD:w,cellFontSizeSM:P,headerSplitColor:R,fixedHeaderSortActiveBg:M,headerFilterHoverBg:I,filterDropdownBg:N,expandIconBg:z,selectionColumnWidth:L,stickyScrollBarBg:T,calc:_}=e,B=2,j=pt(e,{tableFontSize:O,tableBg:r,tableRadius:E,tablePaddingVertical:p,tablePaddingHorizontal:v,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:C,tableBorderColor:S,tableHeaderTextColor:l,tableHeaderBg:a,tableFooterTextColor:x,tableFooterBg:$,tableHeaderCellSplitColor:R,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:I,tableFilterDropdownBg:N,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:B,zIndexTableSticky:B+1,tableFontSizeMiddle:w,tableFontSizeSmall:P,tableSelectionColumnWidth:L,tableExpandIconBg:z,tableExpandColumnWidth:_(o).add(_(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:T,tableScrollThumbBgHover:t,tableScrollBg:n});return[JB(j),DB(j),wg(j),qB(j),_B(j),EB(j),AB(j),TB(j),wg(j),PB(j),KB(j),LB(j),UB(j),IB(j),WB(j),HB(j),QB(j)]},eA,{unitless:{expandIconScale:!0}}),nA=[],rA=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,size:l,bordered:s,dropdownPrefixCls:c,dataSource:u,pagination:d,rowSelection:f,rowKey:m="key",rowClassName:g,columns:p,children:v,childrenColumnName:h,onChange:b,getPopupContainer:y,loading:C,expandIcon:S,expandable:$,expandedRowRender:x,expandIconColumnIndex:E,indentSize:O,scroll:w,sortDirections:P,locale:R,showSorterTooltip:M=!0,virtual:I}=e;Lr();const N=i.useMemo(()=>p||md(v),[p,v]),z=i.useMemo(()=>N.some(Te=>Te.responsive),[N]),L=Bu(z),T=i.useMemo(()=>{const Te=new Set(Object.keys(L).filter(Le=>L[Le]));return N.filter(Le=>!Le.responsive||Le.responsive.some(dt=>Te.has(dt)))},[N,L]),_=Ft(e,["className","style","columns"]),{locale:B=or,direction:j,table:A,renderEmpty:V,getPrefixCls:X,getPopupContainer:te}=i.useContext(Ve),W=In(l),G=Object.assign(Object.assign({},B.Table),R),ne=u||nA,J=X("table",n),oe=X("dropdown",c),[,Z]=en(),k=tn(J),[Q,ee,Y]=tA(J,k),U=Object.assign({childrenColumnName:h,expandIconColumnIndex:E},$),{childrenColumnName:ie="children"}=U,se=i.useMemo(()=>ne.some(Te=>Te==null?void 0:Te[ie])?"nest":x||$&&$.expandedRowRender?"row":null,[ne]),ue={body:i.useRef()},re=qj(J),le=i.useRef(null),ce=i.useRef(null);Wj(t,()=>Object.assign(Object.assign({},ce.current),{nativeElement:le.current}));const pe=i.useMemo(()=>typeof m=="function"?m:Te=>Te==null?void 0:Te[m],[m]),[me]=lB(ne,ie,pe),be={},ye=function(Te,Le){let dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Pe,Me,ct;const Oe=Object.assign(Object.assign({},be),Te);dt&&((Pe=be.resetPagination)===null||Pe===void 0||Pe.call(be),!((Me=Oe.pagination)===null||Me===void 0)&&Me.current&&(Oe.pagination.current=1),d&&d.onChange&&d.onChange(1,(ct=Oe.pagination)===null||ct===void 0?void 0:ct.pageSize)),w&&w.scrollToFirstRowOnChange!==!1&&ue.body.current&&i$(0,{getContainer:()=>ue.body.current}),b==null||b(Oe.pagination,Oe.filters,Oe.sorter,{currentDataSource:Cg(qc(ne,Oe.sorterStates,ie),Oe.filterStates),action:Le})},xe=(Te,Le)=>{ye({sorter:Te,sorterStates:Le},"sort",!1)},[qe,Ie,Ce,$e]=CB({prefixCls:J,mergedColumns:T,onSorterChange:xe,sortDirections:P||["ascend","descend"],tableLocale:G,showSorterTooltip:M}),he=i.useMemo(()=>qc(ne,Ie,ie),[ne,Ie]);be.sorter=$e(),be.sorterStates=Ie;const We=(Te,Le)=>{ye({filters:Te,filterStates:Le},"filter",!0)},[_e,Je,Re]=iB({prefixCls:J,locale:G,dropdownPrefixCls:oe,mergedColumns:T,onFilterChange:We,getPopupContainer:y||te,rootClassName:K(o,k)}),je=Cg(he,Je);be.filters=Re,be.filterStates=Je;const ke=i.useMemo(()=>{const Te={};return Object.keys(Re).forEach(Le=>{Re[Le]!==null&&(Te[Le]=Re[Le])}),Object.assign(Object.assign({},Ce),{filters:Te})},[Ce,Re]),[Ge]=SB(ke),ot=(Te,Le)=>{ye({pagination:Object.assign(Object.assign({},be.pagination),{current:Te,pageSize:Le})},"paginate")},[ge,Ae]=uB(je.length,ot,d);be.pagination=d===!1?{}:cB(ge,d),be.resetPagination=Ae;const Xe=i.useMemo(()=>{if(d===!1||!ge.pageSize)return je;const{current:Te=1,total:Le,pageSize:dt=T0}=ge;return je.length<Le?je.length>dt?je.slice((Te-1)*dt,Te*dt):je:je.slice((Te-1)*dt,Te*dt)},[!!d,je,ge&&ge.current,ge&&ge.pageSize,ge&&ge.total]),[it,Ke]=Kj({prefixCls:J,data:je,pageData:Xe,getRowKey:pe,getRecordByKey:me,expandType:se,childrenColumnName:ie,locale:G,getPopupContainer:y||te},f),we=(Te,Le,dt)=>{let Pe;return typeof g=="function"?Pe=K(g(Te,Le,dt)):Pe=K(g),K({[`${J}-row-selected`]:Ke.has(pe(Te,Le))},Pe)};U.__PARENT_RENDER_ICON__=U.expandIcon,U.expandIcon=U.expandIcon||S||Gj(G),se==="nest"&&U.expandIconColumnIndex===void 0?U.expandIconColumnIndex=f?1:0:U.expandIconColumnIndex>0&&f&&(U.expandIconColumnIndex-=1),typeof U.indentSize!="number"&&(U.indentSize=typeof O=="number"?O:15);const De=i.useCallback(Te=>Ge(it(_e(qe(Te)))),[qe,_e,it]);let Ne,Fe;if(d!==!1&&(ge!=null&&ge.total)){let Te;ge.size?Te=ge.size:Te=W==="small"||W==="middle"?"small":void 0;const Le=Me=>i.createElement(r4,Object.assign({},ge,{className:K(`${J}-pagination ${J}-pagination-${Me}`,ge.className),size:Te})),dt=j==="rtl"?"left":"right",{position:Pe}=ge;if(Pe!==null&&Array.isArray(Pe)){const Me=Pe.find(He=>He.includes("top")),ct=Pe.find(He=>He.includes("bottom")),Oe=Pe.every(He=>`${He}`=="none");!Me&&!ct&&!Oe&&(Fe=Le(dt)),Me&&(Ne=Le(Me.toLowerCase().replace("top",""))),ct&&(Fe=Le(ct.toLowerCase().replace("bottom","")))}else Fe=Le(dt)}let Be;typeof C=="boolean"?Be={spinning:C}:typeof C=="object"&&(Be=Object.assign({spinning:!0},C));const ze=K(Y,k,`${J}-wrapper`,A==null?void 0:A.className,{[`${J}-wrapper-rtl`]:j==="rtl"},r,o,ee),Ee=Object.assign(Object.assign({},A==null?void 0:A.style),a),Se=R&&R.emptyText||(V==null?void 0:V("Table"))||i.createElement(rh,{componentName:"Table"}),Ze=I?$B:xB,lt={},rt=i.useMemo(()=>{const{fontSize:Te,lineHeight:Le,padding:dt,paddingXS:Pe,paddingSM:Me}=Z,ct=Math.floor(Te*Le);switch(W){case"large":return dt*2+ct;case"small":return Pe*2+ct;default:return Me*2+ct}},[Z,W]);return I&&(lt.listItemHeight=rt),Q(i.createElement("div",{ref:le,className:ze,style:Ee},i.createElement(f4,Object.assign({spinning:!1},Be),Ne,i.createElement(Ze,Object.assign({},lt,_,{ref:ce,columns:T,direction:j,expandable:U,prefixCls:J,className:K({[`${J}-middle`]:W==="middle",[`${J}-small`]:W==="small",[`${J}-bordered`]:s,[`${J}-empty`]:ne.length===0},Y,k,ee),data:Xe,rowKey:pe,rowClassName:we,emptyText:Se,internalHooks:ka,internalRefs:ue,transformColumns:De,getContainerWidth:re})),Fe)))},oA=i.forwardRef(rA),aA=(e,t)=>{const n=i.useRef(0);return n.current+=1,i.createElement(oA,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Cr=i.forwardRef(aA);Cr.SELECTION_COLUMN=xr;Cr.EXPAND_COLUMN=$r;Cr.SELECTION_ALL=Hc;Cr.SELECTION_INVERT=kc;Cr.SELECTION_NONE=Kc;Cr.Column=Mj;Cr.ColumnGroup=_j;Cr.Summary=n0;const L3=Cr,iA=e=>{const t=e!=null&&e.algorithm?ga(e.algorithm):ga(Ra),n=Object.assign(Object.assign({},Po),e==null?void 0:e.token);return Kg(n,{override:e==null?void 0:e.token},t,lu)},lA=iA;function sA(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const cA=(e,t)=>{const n=t??Ra(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),sA(t??e)),wv(r)),{controlHeight:o}),xv(Object.assign(Object.assign({},n),{controlHeight:o})))},uA=cA,sr=(e,t)=>new Rt(e).setAlpha(t).toRgbString(),go=(e,t)=>new Rt(e).lighten(t).toHexString(),dA=e=>{const t=fr(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]}},fA=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:sr(r,.85),colorTextSecondary:sr(r,.65),colorTextTertiary:sr(r,.45),colorTextQuaternary:sr(r,.25),colorFill:sr(r,.18),colorFillSecondary:sr(r,.12),colorFillTertiary:sr(r,.08),colorFillQuaternary:sr(r,.04),colorBgElevated:go(n,12),colorBgContainer:go(n,8),colorBgLayout:go(n,0),colorBgSpotlight:go(n,26),colorBgBlur:sr(r,.04),colorBorder:go(n,26),colorBorderSecondary:go(n,19)}},mA=(e,t)=>{const n=Object.keys(au).map(o=>{const a=fr(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((l,s,c)=>(l[`${o}-${c+1}`]=a[c],l[`${o}${c+1}`]=a[c],l),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??Ra(e);return Object.assign(Object.assign(Object.assign({},r),n),$v(e,{generateColorPalettes:dA,generateNeutralColorPalettes:fA}))},gA=mA;function vA(){const[e,t,n]=en();return{theme:e,token:t,hashId:n}}const j3={defaultConfig:Ni,defaultSeed:Ni.token,useToken:vA,defaultAlgorithm:Ra,darkAlgorithm:gA,compactAlgorithm:uA,getDesignToken:lA};var pA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hA={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},bA=i.forwardRef((e,t)=>{const n=u=>{const{keyCode:d}=u;d===fe.ENTER&&u.preventDefault()},r=u=>{const{keyCode:d}=u,{onClick:f}=e;d===fe.ENTER&&f&&f()},{style:o,noStyle:a,disabled:l}=e,s=pA(e,["style","noStyle","disabled"]);let c={};return a||(c=Object.assign({},hA)),l&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),o),i.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:c}))}),Eg=bA;var yA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const CA=yA;var SA=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:CA}))};const xA=i.forwardRef(SA);var $A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const wA=$A;var EA=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:wA}))};const OA=i.forwardRef(EA);var z0=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}};const IA=Xc(z0),RA=F0({__proto__:null,default:IA},[z0]),PA=A0(RA);var NA=PA,Og={"text/plain":"Text","text/html":"Url",default:"Text"},TA="Copy to clipboard: #{key}, Enter";function MA(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function _A(e,t){var n,r,o,a,l,s,c=!1;t||(t={}),n=t.debug||!1;try{o=NA(),a=document.createRange(),l=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){window.clipboardData.clearData();var f=Og[t.format]||Og.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),l.addRange(a);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch{try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch{r=MA("message"in t?t.message:TA),window.prompt(r,e)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(a):l.removeAllRanges()),s&&document.body.removeChild(s),o()}return c}var zA=_A;const LA=Xc(zA);var jA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const DA=jA;var BA=function(t,n){return i.createElement(Ct,de({},t,{ref:n,icon:DA}))};const AA=i.forwardRef(BA),FA=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}},HA=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
      h${r}&,
      div&-h${r},
      div&-h${r} > textarea,
      h${r}
    `]=FA(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},kA=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},su(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},KA=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:iS[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),VA=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${H(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},WA=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),GA=()=>({"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),qA=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},HA(e)),{[`
      & + h1${t},
      & + h2${t},
      & + h3${t},
      & + h4${t},
      & + h5${t}
      `]:{marginTop:n},"\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5":{"\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ":{marginTop:n}}}),KA(e)),kA(e)),{[`
        ${t}-expand,
        ${t}-edit,
        ${t}-copy
      `]:Object.assign(Object.assign({},su(e)),{marginInlineStart:e.marginXXS})}),VA(e)),WA(e)),GA()),{"&-rtl":{direction:"rtl"}})}},XA=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),L0=zt("Typography",e=>[qA(e)],XA),UA=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:a,maxLength:l,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:g=i.createElement(AA,null)}=e,p=i.useRef(null),v=i.useRef(!1),h=i.useRef(),[b,y]=i.useState(c);i.useEffect(()=>{y(c)},[c]),i.useEffect(()=>{if(p.current&&p.current.resizableTextArea){const{textArea:z}=p.current.resizableTextArea;z.focus();const{length:L}=z.value;z.setSelectionRange(L,L)}},[]);const C=z=>{let{target:L}=z;y(L.value.replace(/[\n\r]/g,""))},S=()=>{v.current=!0},$=()=>{v.current=!1},x=z=>{let{keyCode:L}=z;v.current||(h.current=L)},E=()=>{u(b.trim())},O=z=>{let{keyCode:L,ctrlKey:T,altKey:_,metaKey:B,shiftKey:j}=z;h.current===L&&!v.current&&!T&&!_&&!B&&!j&&(L===fe.ENTER?(E(),f==null||f()):L===fe.ESC&&d())},w=()=>{E()},P=m?`${t}-${m}`:"",[R,M,I]=L0(t),N=K(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl"},r,P,M,I);return R(i.createElement("div",{className:N,style:o},i.createElement(bb,{ref:p,maxLength:l,value:b,onChange:C,onKeyDown:x,onKeyUp:O,onCompositionStart:S,onCompositionEnd:$,onBlur:w,"aria-label":n,rows:1,autoSize:s}),g!==null?dn(g,{className:`${t}-edit-content-confirm`}):null))},YA=UA;function Os(e,t){return i.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const ZA=(e,t)=>{const n=i.useRef(!1);i.useEffect(()=>{n.current?e():n.current=!0},t)},QA=ZA;var JA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const e3=i.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:a,setContentRef:l,children:s,direction:c,style:u}=e,d=JA(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,typography:g}=i.useContext(Ve),p=c??m;let v=t;l&&(v=$n(t,l));const h=f("typography",n),[b,y,C]=L0(h),S=K(h,g==null?void 0:g.className,{[`${h}-rtl`]:p==="rtl"},o,a,y,C),$=Object.assign(Object.assign({},g==null?void 0:g.style),u);return b(i.createElement(r,Object.assign({className:S,style:$,ref:v},d),s))}),j0=e3;function D0(e){const t=typeof e;return t==="string"||t==="number"}function t3(e){let t=0;return e.forEach(n=>{D0(n)?t+=String(n).length:t+=1}),t}function Is(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const a=e[o],s=D0(a)?String(a).length:1,c=n+s;if(c>t){const u=t-n;return r.push(String(a).slice(0,u)),r}r.push(a),n=c}return e}const n3=0,ui=1,Ig=2,Rs=3,Ps=4,r3=e=>{let{enabledMeasure:t,children:n,text:r,width:o,fontSize:a,rows:l,onEllipsis:s}=e;const[[c,u,d],f]=i.useState([0,0,0]),[m,g]=i.useState(0),[p,v]=i.useState(n3),[h,b]=i.useState(0),y=i.useRef(null),C=i.useRef(null),S=i.useMemo(()=>on(r),[r]),$=i.useMemo(()=>t3(S),[S]),x=i.useMemo(()=>!t||p!==Rs?m&&p!==Ps&&t?n(Is(S,m),m<$):n(S,!1):n(Is(S,u),u<$),[t,p,n,S,u,$]);xt(()=>{t&&o&&a&&$&&(v(ui),f([0,Math.ceil($/2),$]))},[t,o,a,r,$,l]),xt(()=>{var P;p===ui&&b(((P=y.current)===null||P===void 0?void 0:P.offsetHeight)||0)},[p]),xt(()=>{var P,R;if(h){if(p===ui){const M=((P=C.current)===null||P===void 0?void 0:P.offsetHeight)||0,I=l*h;M<=I?(v(Ps),s(!1)):v(Ig)}else if(p===Ig)if(c!==d){const M=((R=C.current)===null||R===void 0?void 0:R.offsetHeight)||0,I=l*h;let N=c,z=d;c===d-1?z=c:M<=I?N=u:z=u;const L=Math.ceil((N+z)/2);f([N,L,z])}else v(Rs),g(u),s(!0)}},[p,c,d,l,h]);const E={width:o,whiteSpace:"normal",margin:0,padding:0},O=(P,R,M)=>i.createElement("span",{"aria-hidden":!0,ref:R,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(a/2)*2},M)},P),w=(P,R)=>{const M=Is(S,P);return O(n(M,!0),R,E)};return i.createElement(i.Fragment,null,x,t&&p!==Rs&&p!==Ps&&i.createElement(i.Fragment,null,O("lg",y,{wordBreak:"keep-all",whiteSpace:"nowrap"}),p===ui?O(n(S,!1),C,E):w(u,C)))},o3=r3,a3=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:i.createElement(Ur,Object.assign({open:n?void 0:!1},o),r)},i3=a3;var l3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function s3(e,t){let{mark:n,code:r,underline:o,delete:a,strong:l,keyboard:s,italic:c}=e,u=t;function d(f,m){m&&(u=i.createElement(f,{},u))}return d("strong",l),d("u",o),d("del",a),d("code",r),d("mark",n),d("kbd",s),d("i",c),u}function di(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Rg(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}const c3="...",u3=i.forwardRef((e,t)=>{var n,r,o;const{prefixCls:a,className:l,style:s,type:c,disabled:u,children:d,ellipsis:f,editable:m,copyable:g,component:p,title:v}=e,h=l3(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=i.useContext(Ve),[C]=nl("Text"),S=i.useRef(null),$=i.useRef(null),x=b("typography",a),E=Ft(h,["mark","code","delete","underline","strong","keyboard","italic"]),[O,w]=Os(m),[P,R]=At(!1,{value:w.editing}),{triggerType:M=["icon"]}=w,I=ge=>{var Ae;ge&&((Ae=w.onStart)===null||Ae===void 0||Ae.call(w)),R(ge)};QA(()=>{var ge;P||(ge=$.current)===null||ge===void 0||ge.focus()},[P]);const N=ge=>{ge==null||ge.preventDefault(),I(!0)},z=ge=>{var Ae;(Ae=w.onChange)===null||Ae===void 0||Ae.call(w,ge),I(!1)},L=()=>{var ge;(ge=w.onCancel)===null||ge===void 0||ge.call(w),I(!1)},[T,_]=Os(g),[B,j]=i.useState(!1),A=i.useRef(null),V={};_.format&&(V.format=_.format);const X=()=>{A.current&&clearTimeout(A.current)},te=ge=>{var Ae;ge==null||ge.preventDefault(),ge==null||ge.stopPropagation(),LA(_.text||String(d)||"",V),j(!0),X(),A.current=setTimeout(()=>{j(!1)},3e3),(Ae=_.onCopy)===null||Ae===void 0||Ae.call(_,ge)};i.useEffect(()=>X,[]);const[W,G]=i.useState(!1),[ne,J]=i.useState(!1),[oe,Z]=i.useState(!1),[k,Q]=i.useState(!1),[ee,Y]=i.useState(!1),[U,ie]=i.useState(!0),[se,ue]=Os(f,{expandable:!1}),re=se&&!oe,{rows:le=1}=ue,ce=i.useMemo(()=>!re||ue.suffix!==void 0||ue.onEllipsis||ue.expandable||O||T,[re,ue,O,T]);xt(()=>{se&&!ce&&(G(cc("webkitLineClamp")),J(cc("textOverflow")))},[ce,se]);const pe=i.useMemo(()=>ce?!1:le===1?ne:W,[ce,ne,W]),me=re&&(pe?ee:k),be=re&&le===1&&pe,ye=re&&le>1&&pe,xe=ge=>{var Ae;Z(!0),(Ae=ue.onExpand)===null||Ae===void 0||Ae.call(ue,ge)},[qe,Ie]=i.useState(0),[Ce,$e]=i.useState(0),he=(ge,Ae)=>{let{offsetWidth:Xe}=ge;var it;Ie(Xe),$e(parseInt((it=window.getComputedStyle)===null||it===void 0?void 0:it.call(window,Ae).fontSize,10)||0)},We=ge=>{var Ae;Q(ge),k!==ge&&((Ae=ue.onEllipsis)===null||Ae===void 0||Ae.call(ue,ge))};i.useEffect(()=>{const ge=S.current;if(se&&pe&&ge){const Ae=ye?ge.offsetHeight<ge.scrollHeight:ge.offsetWidth<ge.scrollWidth;ee!==Ae&&Y(Ae)}},[se,pe,d,ye,U,qe]),i.useEffect(()=>{const ge=S.current;if(typeof IntersectionObserver>"u"||!ge||!pe||!re)return;const Ae=new IntersectionObserver(()=>{ie(!!ge.offsetParent)});return Ae.observe(ge),()=>{Ae.disconnect()}},[pe,re]);let _e={};ue.tooltip===!0?_e={title:(n=w.text)!==null&&n!==void 0?n:d}:i.isValidElement(ue.tooltip)?_e={title:ue.tooltip}:typeof ue.tooltip=="object"?_e=Object.assign({title:(r=w.text)!==null&&r!==void 0?r:d},ue.tooltip):_e={title:ue.tooltip};const Je=i.useMemo(()=>{const ge=Ae=>["string","number"].includes(typeof Ae);if(!(!se||pe)){if(ge(w.text))return w.text;if(ge(d))return d;if(ge(v))return v;if(ge(_e.title))return _e.title}},[se,pe,v,_e.title,me]);if(P)return i.createElement(YA,{value:(o=w.text)!==null&&o!==void 0?o:typeof d=="string"?d:"",onSave:z,onCancel:L,onEnd:w.onEnd,prefixCls:x,className:l,style:s,direction:y,component:p,maxLength:w.maxLength,autoSize:w.autoSize,enterIcon:w.enterIcon});const Re=()=>{const{expandable:ge,symbol:Ae}=ue;if(!ge)return null;let Xe;return Ae?Xe=Ae:Xe=C==null?void 0:C.expand,i.createElement("a",{key:"expand",className:`${x}-expand`,onClick:xe,"aria-label":C==null?void 0:C.expand},Xe)},je=()=>{if(!O)return;const{icon:ge,tooltip:Ae}=w,Xe=on(Ae)[0]||(C==null?void 0:C.edit),it=typeof Xe=="string"?Xe:"";return M.includes("icon")?i.createElement(Ur,{key:"edit",title:Ae===!1?"":Xe},i.createElement(Eg,{ref:$,className:`${x}-edit`,onClick:N,"aria-label":it},ge||i.createElement(OA,{role:"button"}))):null},ke=()=>{if(!T)return null;const{tooltips:ge,icon:Ae}=_,Xe=Rg(ge),it=Rg(Ae),Ke=B?di(Xe[1],C==null?void 0:C.copied):di(Xe[0],C==null?void 0:C.copy),we=B?C==null?void 0:C.copied:C==null?void 0:C.copy,De=typeof Ke=="string"?Ke:we;return i.createElement(Ur,{key:"copy",title:Ke},i.createElement(Eg,{className:K(`${x}-copy`,{[`${x}-copy-success`]:B,[`${x}-copy-icon-only`]:d==null}),onClick:te,"aria-label":De},B?di(it[1],i.createElement(ih,null),!0):di(it[0],i.createElement(xA,null),!0)))},Ge=ge=>[ge&&Re(),je(),ke()],ot=ge=>[ge&&i.createElement("span",{"aria-hidden":!0,key:"ellipsis"},c3),ue.suffix,Ge(ge)];return i.createElement(hn,{onResize:he,disabled:!re},ge=>i.createElement(i3,{tooltipProps:_e,enabledEllipsis:re,isEllipsis:me},i.createElement(j0,Object.assign({className:K({[`${x}-${c}`]:c,[`${x}-disabled`]:u,[`${x}-ellipsis`]:se,[`${x}-single-line`]:re&&le===1,[`${x}-ellipsis-single-line`]:be,[`${x}-ellipsis-multiple-line`]:ye},l),prefixCls:a,style:Object.assign(Object.assign({},s),{WebkitLineClamp:ye?le:void 0}),component:p,ref:$n(ge,S,t),direction:y,onClick:M.includes("text")?N:void 0,"aria-label":Je==null?void 0:Je.toString(),title:v},E),i.createElement(o3,{enabledMeasure:re&&!pe,text:d,rows:le,width:qe,fontSize:Ce,onEllipsis:We},(Ae,Xe)=>{let it=Ae;return Ae.length&&Xe&&Je&&(it=i.createElement("span",{key:"show-content","aria-hidden":!0},it)),s3(e,i.createElement(i.Fragment,null,it,ot(Xe)))}))))}),_l=u3;var d3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const f3=i.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=d3(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,i.createElement(_l,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),m3=f3,g3=i.forwardRef((e,t)=>i.createElement(_l,Object.assign({ref:t},e,{component:"div"}))),v3=g3;var p3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const h3=(e,t)=>{var{ellipsis:n}=e,r=p3(e,["ellipsis"]);const o=i.useMemo(()=>n&&typeof n=="object"?Ft(n,["expandable","rows"]):n,[n]);return i.createElement(_l,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},b3=i.forwardRef(h3);var y3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const C3=[1,2,3,4,5],S3=i.forwardRef((e,t)=>{const{level:n=1}=e,r=y3(e,["level"]);let o;return C3.includes(n)?o=`h${n}`:o="h1",i.createElement(_l,Object.assign({ref:t},r,{component:o}))}),x3=S3,Va=j0;Va.Text=b3;Va.Link=m3;Va.Title=x3;Va.Paragraph=v3;const D3=Va;export{M3 as A,Ca as B,Zv as C,P3 as F,T3 as I,Bh as M,NM as R,x_ as S,D3 as T,Ks as _,vt as a,X0 as b,hl as c,f4 as d,I3 as e,E3 as f,mb as g,R3 as h,WN as i,O3 as j,L3 as k,N3 as l,p_ as m,_3 as n,z3 as o,qh as p,j3 as t};