react-frontend-common-components 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7,13 +7,13 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */"production"===process.env.NODE_ENV?l.exports=function(){if(a)return c;a=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var a,c={},s=null,u=null;for(a in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,a)&&!l.hasOwnProperty(a)&&(c[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===c[a]&&(c[a]=t[a]);return{$$typeof:n,type:e,key:s,ref:u,props:c,_owner:i.current}}return c.Fragment=r,c.jsx=s,c.jsxs=s,c}():l.exports=(s||(s=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),g=Symbol.iterator,h="@@iterator",b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=b.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var w,x=!1,E=!1,C=!1,S=!1,$=!1;function k(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return k(e)+".Consumer";case l:return k(e._context)+".Provider";case s:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case m:var n=e,u=n._payload,v=n._init;try{return O(v(u))}catch(e){return null}}return null}w=Symbol.for("react.module.reference");var N,P,I,R,M,j,_,A=Object.assign,T=0;function F(){}F.__reactDisabledLog=!0;var B,z=b.ReactCurrentDispatcher;function D(e,t,n){if(void 0===B)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);B=r&&r[1]||""}return"\n"+B+e}var L,H=!1,V="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||H)return"";var n,r=L.get(e);if(void 0!==r)return r;H=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=z.current,z.current=null,function(){if(0===T){N=console.log,P=console.info,I=console.warn,R=console.error,M=console.group,j=console.groupCollapsed,_=console.groupEnd;var e={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}T++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),c=n.stack.split("\n"),s=l.length-1,u=c.length-1;s>=1&&u>=0&&l[s]!==c[u];)u--;for(;s>=1&&u>=0;s--,u--)if(l[s]!==c[u]){if(1!==s||1!==u)do{if(s--,--u<0||l[s]!==c[u]){var d="\n"+l[s].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&L.set(e,d),d}}while(s>=1&&u>=0);break}}}finally{H=!1,z.current=o,function(){if(0==--T){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:N}),info:A({},e,{value:P}),warn:A({},e,{value:I}),error:A({},e,{value:R}),group:A({},e,{value:M}),groupCollapsed:A({},e,{value:j}),groupEnd:A({},e,{value:_})})}T<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?D(f):"";return"function"==typeof e&&L.set(e,p),p}function q(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return D(e);switch(e){case d:return D("Suspense");case f:return D("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return W(e.render,!1);case p:return q(e.type,t,n);case m:var o=e,i=o._payload,a=o._init;try{return q(a(i),t,n)}catch(e){}}return""}L=new V;var X=Object.prototype.hasOwnProperty,G={},K=b.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);K.setExtraStackFrame(n)}else K.setExtraStackFrame(null)}var Y=Array.isArray;function Q(e){return Y(e)}function Z(e){return""+e}function J(e){if(function(e){try{return Z(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Z(e)}var ee,te,ne,re=b.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,r,o,i,a,l){var c={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function ae(e,t,n,r,o){var i,a={},l=null,c=null;for(i in void 0!==n&&(J(n),l=""+n),function(e){if(X.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(J(t.key),l=""+t.key),function(e){if(X.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var n=O(re.current.type);ne[n]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)X.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var s=e.defaultProps;for(i in s)void 0===a[i]&&(a[i]=s[i])}if(l||c){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){ee||(ee=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,u),c&&function(e,t){var n=function(){te||(te=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,u)}return ie(e,l,c,o,r,re.current,a)}var le,ce=b.ReactCurrentOwner,se=b.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function fe(){if(ce.current){var e=O(ce.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}le=!1;var pe={};function me(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=fe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==ce.current&&(r=" It was passed a child from "+O(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ue(null)}}}function ve(e,t){if("object"==typeof e)if(Q(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&me(r,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[h];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)de(i.value)&&me(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==s&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=O(n);!function(e,t,n,r,o){var i=Function.call.bind(X);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var c=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(U(o),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof l),U(null)),l instanceof Error&&!(l.message in G)&&(G[l.message]=!0,U(o),y("Failed %s type: %s",n,l.message),U(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||le||(le=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var he={};function be(e,t,r,u,g,h){var b=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||$||e===i||e===d||e===f||S||e===v||x||E||C)||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===s||e.$$typeof===w||void 0!==e.getModuleId)}(e);if(!b){var k,N="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),N+=fe(),null===e?k="null":Q(e)?k="array":void 0!==e&&e.$$typeof===n?(k="<"+(O(e.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,N)}var P=ae(e,t,r,g,h);if(null==P)return P;if(b){var I=t.children;if(void 0!==I)if(u)if(Q(I)){for(var R=0;R<I.length;R++)ve(I[R],e);Object.freeze&&Object.freeze(I)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ve(I,e)}if(X.call(t,"key")){var M=O(e),j=Object.keys(t).filter((function(e){return"key"!==e})),_=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";he[M+_]||(y('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',_,M,j.length>0?"{"+j.join(": ..., ")+": ...}":"{}",M),he[M+_]=!0)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(P):ge(P),P}var ye=function(e,t,n){return be(e,t,n,!1)},we=function(e,t,n){return be(e,t,n,!0)};u.Fragment=o,u.jsx=ye,u.jsxs=we}()),u);var d=l.exports,f={exports:{}};
10
+ */"production"===process.env.NODE_ENV?l.exports=function(){if(a)return c;a=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var a,c={},s=null,u=null;for(a in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,a)&&!l.hasOwnProperty(a)&&(c[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===c[a]&&(c[a]=t[a]);return{$$typeof:n,type:e,key:s,ref:u,props:c,_owner:i.current}}return c.Fragment=r,c.jsx=s,c.jsxs=s,c}():l.exports=(s||(s=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),v=Symbol.iterator,h="@@iterator",b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=b.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var x,w=!1,C=!1,E=!1,S=!1,$=!1;function O(e){return e.displayName||"Context"}function k(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return O(e)+".Consumer";case l:return O(e._context)+".Provider";case s:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:k(e.type)||"Memo";case m:var n=e,u=n._payload,g=n._init;try{return k(g(u))}catch(e){return null}}return null}x=Symbol.for("react.module.reference");var N,j,P,I,R,M,T,A=Object.assign,_=0;function B(){}B.__reactDisabledLog=!0;var L,F=b.ReactCurrentDispatcher;function z(e,t,n){if(void 0===L)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);L=r&&r[1]||""}return"\n"+L+e}var D,H=!1,V="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||H)return"";var n,r=D.get(e);if(void 0!==r)return r;H=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=F.current,F.current=null,function(){if(0===_){N=console.log,j=console.info,P=console.warn,I=console.error,R=console.group,M=console.groupCollapsed,T=console.groupEnd;var e={configurable:!0,enumerable:!0,value:B,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}_++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),c=n.stack.split("\n"),s=l.length-1,u=c.length-1;s>=1&&u>=0&&l[s]!==c[u];)u--;for(;s>=1&&u>=0;s--,u--)if(l[s]!==c[u]){if(1!==s||1!==u)do{if(s--,--u<0||l[s]!==c[u]){var d="\n"+l[s].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,d),d}}while(s>=1&&u>=0);break}}}finally{H=!1,F.current=o,function(){if(0==--_){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:N}),info:A({},e,{value:j}),warn:A({},e,{value:P}),error:A({},e,{value:I}),group:A({},e,{value:R}),groupCollapsed:A({},e,{value:M}),groupEnd:A({},e,{value:T})})}_<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?z(f):"";return"function"==typeof e&&D.set(e,p),p}function q(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return z(e);switch(e){case d:return z("Suspense");case f:return z("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return W(e.render,!1);case p:return q(e.type,t,n);case m:var o=e,i=o._payload,a=o._init;try{return q(a(i),t,n)}catch(e){}}return""}D=new V;var X=Object.prototype.hasOwnProperty,K={},G=b.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);G.setExtraStackFrame(n)}else G.setExtraStackFrame(null)}var Y=Array.isArray;function Z(e){return Y(e)}function Q(e){return""+e}function J(e){if(function(e){try{return Q(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Q(e)}var ee,te,ne,re=b.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,r,o,i,a,l){var c={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function ae(e,t,n,r,o){var i,a={},l=null,c=null;for(i in void 0!==n&&(J(n),l=""+n),function(e){if(X.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(J(t.key),l=""+t.key),function(e){if(X.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var n=k(re.current.type);ne[n]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',k(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)X.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var s=e.defaultProps;for(i in s)void 0===a[i]&&(a[i]=s[i])}if(l||c){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){ee||(ee=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,u),c&&function(e,t){var n=function(){te||(te=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,u)}return ie(e,l,c,o,r,re.current,a)}var le,ce=b.ReactCurrentOwner,se=b.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function fe(){if(ce.current){var e=k(ce.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}le=!1;var pe={};function me(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=fe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==ce.current&&(r=" It was passed a child from "+k(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ue(null)}}}function ge(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&me(r,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e[h];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)de(i.value)&&me(i.value,t)}}function ve(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==s&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=k(n);!function(e,t,n,r,o){var i=Function.call.bind(X);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var c=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(U(o),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof l),U(null)),l instanceof Error&&!(l.message in K)&&(K[l.message]=!0,U(o),y("Failed %s type: %s",n,l.message),U(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||le||(le=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var he={};function be(e,t,r,u,v,h){var b=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||$||e===i||e===d||e===f||S||e===g||w||C||E)||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===s||e.$$typeof===x||void 0!==e.getModuleId)}(e);if(!b){var O,N="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),N+=fe(),null===e?O="null":Z(e)?O="array":void 0!==e&&e.$$typeof===n?(O="<"+(k(e.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):O=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,N)}var j=ae(e,t,r,v,h);if(null==j)return j;if(b){var P=t.children;if(void 0!==P)if(u)if(Z(P)){for(var I=0;I<P.length;I++)ge(P[I],e);Object.freeze&&Object.freeze(P)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ge(P,e)}if(X.call(t,"key")){var R=k(e),M=Object.keys(t).filter((function(e){return"key"!==e})),T=M.length>0?"{key: someKey, "+M.join(": ..., ")+": ...}":"{key: someKey}";he[R+T]||(y('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',T,R,M.length>0?"{"+M.join(": ..., ")+": ...}":"{}",R),he[R+T]=!0)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(j):ve(j),j}var ye=function(e,t,n){return be(e,t,n,!1)},xe=function(e,t,n){return be(e,t,n,!0)};u.Fragment=o,u.jsx=ye,u.jsxs=xe}()),u);var d=l.exports,f={exports:{}};
11
11
  /*!
12
12
  Copyright (c) 2018 Jed Watson.
13
13
  Licensed under the MIT License (MIT), see
14
14
  http://jedwatson.github.io/classnames
15
15
  */
16
- !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(f);var p=i(f.exports);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}var v,g={exports:{}},h={};var b,y={};
16
+ !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(f);var p=i(f.exports);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}var g,v={exports:{}},h={};var b,y={};
17
17
  /**
18
18
  * @license React
19
19
  * react-is.development.js
@@ -22,5 +22,5 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */"production"===process.env.NODE_ENV?g.exports=function(){if(v)return h;v=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case s:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),h.ContextConsumer=l,h.ContextProvider=a,h.Element=t,h.ForwardRef=s,h.Fragment=r,h.Lazy=p,h.Memo=f,h.Portal=n,h.Profiler=i,h.StrictMode=o,h.Suspense=u,h.SuspenseList=d,h.isAsyncMode=function(){return!1},h.isConcurrentMode=function(){return!1},h.isContextConsumer=function(e){return g(e)===l},h.isContextProvider=function(e){return g(e)===a},h.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},h.isForwardRef=function(e){return g(e)===s},h.isFragment=function(e){return g(e)===r},h.isLazy=function(e){return g(e)===p},h.isMemo=function(e){return g(e)===f},h.isPortal=function(e){return g(e)===n},h.isProfiler=function(e){return g(e)===i},h.isStrictMode=function(e){return g(e)===o},h.isSuspense=function(e){return g(e)===u},h.isSuspenseList=function(e){return g(e)===d},h.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},h.typeOf=g,h}():g.exports=(b||(b=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var v=e.type;switch(v){case r:case i:case o:case u:case d:return v;default:var g=v&&v.$$typeof;switch(g){case c:case l:case s:case p:case f:case a:return g;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var g=l,h=a,b=t,w=s,x=r,E=p,C=f,S=n,$=i,k=o,O=u,N=d,P=!1,I=!1;y.ContextConsumer=g,y.ContextProvider=h,y.Element=b,y.ForwardRef=w,y.Fragment=x,y.Lazy=E,y.Memo=C,y.Portal=S,y.Profiler=$,y.StrictMode=k,y.Suspense=O,y.SuspenseList=N,y.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isConcurrentMode=function(e){return I||(I=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isContextConsumer=function(e){return v(e)===l},y.isContextProvider=function(e){return v(e)===a},y.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},y.isForwardRef=function(e){return v(e)===s},y.isFragment=function(e){return v(e)===r},y.isLazy=function(e){return v(e)===p},y.isMemo=function(e){return v(e)===f},y.isPortal=function(e){return v(e)===n},y.isProfiler=function(e){return v(e)===i},y.isStrictMode=function(e){return v(e)===o},y.isSuspense=function(e){return v(e)===u},y.isSuspenseList=function(e){return v(e)===d},y.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},y.typeOf=v}()),y);var w=g.exports;function x(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return e.Children.forEach(t,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(x(e)):w.isFragment(e)&&e.props?r=r.concat(x(e.props.children,n)):r.push(e))})),r}var E={},C=[];function S(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=C.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function $(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=C.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function k(){E={}}function O(e,t,n){t||E[n]||(e(!1,n),E[n]=!0)}function N(e,t){O(S,e,t)}function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function I(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}function R(e,t,n){return(t=I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){return e instanceof HTMLElement||e instanceof SVGElement}function A(n){var r,o=function(e){return e&&"object"===P(e)&&_(e.nativeElement)?e.nativeElement:_(e)?e:null}(n);return o||(n instanceof e.Component?null===(r=t.findDOMNode)||void 0===r?void 0:r.call(t,n):null)}function T(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}N.preMessage=function(e){C.push(e)},N.resetWarned=k,N.noteOnce=function(e,t){O($,e,t)};var F=function(e,t){"function"==typeof e?e(t):"object"===P(e)&&e&&"current"in e&&(e.current=t)},B=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){F(t,e)}))}},z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T((function(){return B.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},D=function(e){var t,n,r=w.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===w.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===w.ForwardRef)};Number(e.version.split(".")[0]);var L=r.createContext(null);var H=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}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(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),V="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,W="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),q="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(W):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var X=["top","right","bottom","left","width","height","size","weight"],G="undefined"!=typeof MutationObserver,K=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){q(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){V&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),G?(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(){V&&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(e){var t=e.propertyName,n=void 0===t?"":t;X.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),U=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},Y=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||W},Q=re(0,0,0,0);function Z(e){return parseFloat(e)||0}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Z(e["border-"+n+"-width"])}),0)}function ee(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Q;var r=Y(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Z(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Z(r.width),c=Z(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=J(r,"left","right")+i),Math.round(c+a)!==n&&(c-=J(r,"top","bottom")+a)),!function(e){return e===Y(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return re(o.left,o.top,l,c)}var te="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Y(e).SVGGraphicsElement}:function(e){return e instanceof Y(e).SVGElement&&"function"==typeof e.getBBox};function ne(e){return V?te(e)?function(e){var t=e.getBBox();return re(0,0,t.width,t.height)}(e):ee(e):Q}function re(e,t,n,r){return{x:e,y:t,width:n,height:r}}var oe=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=re(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ne(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ie=function(e,t){var n,r,o,i,a,l,c,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),U(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);U(this,{target:e,contentRect:s})},ae=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new H,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Y(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new oe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Y(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new ie(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),le="undefined"!=typeof WeakMap?new WeakMap:new H,ce=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=K.getInstance(),r=new ae(t,n,this);le.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ce.prototype[e]=function(){var t;return(t=le.get(this))[e].apply(t,arguments)}}));var se=void 0!==W.ResizeObserver?W.ResizeObserver:ce,ue=new Map;function de(e){e.forEach((function(e){var t,n=e.target;null===(t=ue.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var fe=new se(de);function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(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,I(r.key),r)}}function ve(e,t,n){return t&&me(e.prototype,t),n&&me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ge(e,t){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ge(e,t)}function he(e,t){if("function"!=typeof t&&null!==t)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&&ge(e,t)}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}function ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ye=function(){return!!e})()}function we(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xe(e){var t=ye();return function(){var n,r=be(e);if(t){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return we(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ee=function(){he(t,r.Component);var e=xe(t);function t(){return pe(this,t),e.apply(this,arguments)}return ve(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Ce(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(L),c="function"==typeof n,s=c?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&r.isValidElement(s)&&D(s),f=d?s.ref:null,p=z(f,i),m=function(){var e;return A(i.current)||(i.current&&"object"===P(i.current)?A(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||A(a.current)};r.useImperativeHandle(t,(function(){return m()}));var v=r.useRef(e);v.current=e;var g=r.useCallback((function(e){var t=v.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var m=c===Math.round(i)?i:c,g=s===Math.round(a)?a:s,h=j(j({},p),{},{offsetWidth:m,offsetHeight:g});null==l||l(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return r.useEffect((function(){var e,t,n=m();return n&&!o&&(e=n,t=g,ue.has(e)||(ue.set(e,new Set),fe.observe(e)),ue.get(e).add(t)),function(){return function(e,t){ue.has(e)&&(ue.get(e).delete(t),ue.get(e).size||(fe.unobserve(e),ue.delete(e)))}(n,g)}}),[i.current,o]),r.createElement(Ee,{ref:a},d?r.cloneElement(s,{ref:p}):s)}var Se=r.forwardRef(Ce);"production"!==process.env.NODE_ENV&&(Se.displayName="SingleObserver");function $e(e,t){var n=e.children,o="function"==typeof n?[n]:x(n);return"production"!==process.env.NODE_ENV&&(o.length>1?S(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&S(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Se,m({},e,{key:i,ref:0===o?t:void 0}),n)}))}var ke=r.forwardRef($e);function Oe(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ie(e,t){if(e){if("string"==typeof e)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}function Re(e){return function(e){if(Array.isArray(e))return Ne(e)}(e)||Pe(e)||Ie(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"!==process.env.NODE_ENV&&(ke.displayName="ResizeObserver"),ke.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(L),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(L.Provider,{value:l},t)};var Me=function(e){return+setTimeout(e,16)},je=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Me=function(e){return window.requestAnimationFrame(e)},je=function(e){return window.cancelAnimationFrame(e)});var _e=0,Ae=new Map;function Te(e){Ae.delete(e)}var Fe=function(e){var t=_e+=1;return function n(r){if(0===r)Te(t),e();else{var o=Me((function(){n(r-1)}));Ae.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function Be(e){if(Array.isArray(e))return e}function ze(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function De(e,t){return Be(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||Ie(e,t)||ze()}function Le(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function He(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}Fe.cancel=function(e){var t=Ae.get(e);return Te(e),je(t)},"production"!==process.env.NODE_ENV&&(Fe.ids=function(){return Ae});var Ve="data-rc-order",We="data-rc-priority",qe="rc-util-key",Xe=new Map;function Ge(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):qe}function Ke(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ue(e){return Array.from((Xe.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!He())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(Ve,a),l&&i&&c.setAttribute(We,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=Ke(t),u=s.firstChild;if(r){if(l){var d=(t.styles||Ue(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Ve)))return!1;var t=Number(e.getAttribute(We)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ke(t);return(t.styles||Ue(n)).find((function(n){return n.getAttribute(Ge(t))===e}))}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Qe(e,t);n&&Ke(t).removeChild(n)}function Je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ke(n),o=Ue(r),i=j(j({},n),{},{styles:o});!function(e,t){var n=Xe.get(e);if(!n||!function(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}(document,n)){var r=Ye("",t),o=r.parentNode;Xe.set(e,o),e.removeChild(r)}}(r,i);var a=Qe(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Ye(e,i);return u.setAttribute(Ge(i),t),u}function et(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(N(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===P(t)&&"object"===P(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)}var nt="%";function rt(e){return e.join(nt)}var ot=function(){function e(t){pe(this,e),R(this,"instanceId",void 0),R(this,"cache",new Map),this.instanceId=t}return ve(e,[{key:"get",value:function(e){return this.opGet(rt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(rt(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),it="data-token-hash",at="data-css-hash",lt="data-cache-path",ct="__cssinjs_instance__";var st=r.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(at,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[ct]=t[ct]||e,t[ct]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(at,"]"))).forEach((function(t){var n,o=t.getAttribute(at);r[o]?t[ct]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new ot(e)}(),defaultCache:!0});var ut=function(){function e(){pe(this,e),R(this,"cache",void 0),R(this,"keys",void 0),R(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ve(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=De(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=De(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(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}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();R(ut,"MAX_CACHE_SIZE",20),R(ut,"MAX_CACHE_OFFSET",5);var dt=0,ft=function(){function e(t){pe(this,e),R(this,"derivatives",void 0),R(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=dt,0===t.length&&S(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),dt+=1}return ve(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),pt=new ut;function mt(e){var t=Array.isArray(e)?e:[e];return pt.has(t)||pt.set(t,new ft(t)),pt.get(t)}var vt=new WeakMap,gt={};var ht=new WeakMap;function bt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ht.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof ft?n+=o.id:o&&"object"===P(o)?n+=bt(o,t):n+=o})),t&&(n=Le(n)),ht.set(e,n)),n}function yt(e,t){return Le("".concat(t,"_").concat(bt(e,!0)))}var wt=He();function xt(e){return"number"==typeof e?"".concat(e,"px"):e}function Et(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=j(j({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},R(R({},it,t),at,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},St=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=De(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},$t=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=De(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=Ct(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,St(r,t,{scope:null==n?void 0:n.scope})]},kt="test"!==process.env.NODE_ENV&&He()?r.useLayoutEffect:r.useEffect,Ot=function(e,t){var n=r.useRef(!0);kt((function(){return e(n.current)}),t),kt((function(){return n.current=!1,function(){n.current=!0}}),[])},Nt=function(e,t){Ot((function(t){if(!t)return e()}),t)},Pt=j({},r).useInsertionEffect,It=Pt?function(e,t,n){return Pt((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),Ot((function(){return t(!0)}),n)},Rt=void 0!==j({},r).useInsertionEffect?function(e){var t=[],n=!1;return r.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&S(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var Mt=!1;var jt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Mt};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var _t=window;if("function"==typeof _t.webpackHotUpdate){var At=_t.webpackHotUpdate;_t.webpackHotUpdate=function(){return Mt=!0,setTimeout((function(){Mt=!1}),0),At.apply(void 0,arguments)}}}function Tt(e,t,n,o,i){var a=r.useContext(st).cache,l=rt([e].concat(Re(t))),c=Rt([l]),s=jt(),u=function(e){a.opUpdate(l,(function(t){var r=De(t||[void 0,void 0],2),i=r[0],a=void 0===i?0:i,l=r[1],c=l;"production"!==process.env.NODE_ENV&&l&&s&&(null==o||o(c,s),c=null);var u=[a,c||n()];return e?e(u):u}))};r.useMemo((function(){u()}),[l]);var d=a.opGet(l);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(l));var f=d[1];return It((function(){null==i||i(f)}),(function(e){return u((function(t){var n=De(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(f)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=De(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null==o||o(s,!1)})),null):[i-1,s]}))}}),[l]),f}var Ft={},Bt="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",zt=new Map;var Dt=0;function Lt(e,t){zt.set(e,(zt.get(e)||0)-1);var n=Array.from(zt.keys()),r=n.filter((function(e){return(zt.get(e)||0)<=0}));n.length-r.length>Dt&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(it,'="').concat(e,'"]')).forEach((function(e){var n;e[ct]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),zt.delete(e)}))}var Ht=function(e,t,n,r){var o=j(j({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},Vt="token";function Wt(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.useContext(st),i=o.cache.instanceId,a=o.container,l=r.salt,c=void 0===l?"":l,s=r.override,u=void 0===s?Ft:s,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,m=function(e,t){for(var n=vt,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(gt)||n.set(gt,e()),n.get(gt)}((function(){return Object.assign.apply(Object,[{}].concat(Re(n)))}),n),v=bt(m),g=bt(u),h=p?bt(p):"",b=Tt(Vt,[c,t.id,v,g,h],(function(){var e,n=f?f(m,u,t):Ht(m,u,t,d),r=j({},n),o="";if(p){var i=De($t(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=yt(n,c);n._tokenKey=a,r._tokenKey=yt(r,c);var l=null!==(e=null==p?void 0:p.key)&&void 0!==e?e:a;n._themeKey=l,function(e){zt.set(e,(zt.get(e)||0)+1)}(l);var s="".concat(Bt,"-").concat(Le(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]}),(function(e){Lt(e[0]._themeKey,i)}),(function(e){var t=De(e,4),n=t[0],r=t[3];if(p&&r){var o=Je(r,Le("css-variables-".concat(n._themeKey)),{mark:at,prepend:"queue",attachTo:a,priority:-999});o[ct]=i,o.setAttribute(it,n._themeKey)}}));return b}var qt={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},Xt="comm",Gt="rule",Kt="decl",Ut="@import",Yt="@keyframes",Qt="@layer",Zt=Math.abs,Jt=String.fromCharCode;function en(e){return e.trim()}function tn(e,t,n){return e.replace(t,n)}function nn(e,t,n){return e.indexOf(t,n)}function rn(e,t){return 0|e.charCodeAt(t)}function on(e,t,n){return e.slice(t,n)}function an(e){return e.length}function ln(e,t){return t.push(e),e}var cn=1,sn=1,un=0,dn=0,fn=0,pn="";function mn(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cn,column:sn,length:a,return:"",siblings:l}}function vn(){return fn=dn>0?rn(pn,--dn):0,sn--,10===fn&&(sn=1,cn--),fn}function gn(){return fn=dn<un?rn(pn,dn++):0,sn++,10===fn&&(sn=1,cn++),fn}function hn(){return rn(pn,dn)}function bn(){return dn}function yn(e,t){return on(pn,e,t)}function wn(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 xn(e){return en(yn(dn-1,Sn(91===e?e+2:40===e?e+1:e)))}function En(e){for(;(fn=hn())&&fn<33;)gn();return wn(e)>2||wn(fn)>3?"":" "}function Cn(e,t){for(;--t&&gn()&&!(fn<48||fn>102||fn>57&&fn<65||fn>70&&fn<97););return yn(e,bn()+(t<6&&32==hn()&&32==gn()))}function Sn(e){for(;gn();)switch(fn){case e:return dn;case 34:case 39:34!==e&&39!==e&&Sn(fn);break;case 40:41===e&&Sn(e);break;case 92:gn()}return dn}function $n(e,t){for(;gn()&&e+fn!==57&&(e+fn!==84||47!==hn()););return"/*"+yn(t,dn-1)+"*"+Jt(47===e?e:gn())}function kn(e){for(;!wn(hn());)gn();return yn(e,dn)}function On(e){return function(e){return pn="",e}(Nn("",null,null,null,[""],e=function(e){return cn=sn=1,un=an(pn=e),dn=0,[]}(e),0,[0],e))}function Nn(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,v=1,g=1,h=1,b=0,y="",w=o,x=i,E=r,C=y;g;)switch(m=b,b=gn()){case 40:if(108!=m&&58==rn(C,d-1)){-1!=nn(C+=tn(xn(b),"&","&\f"),"&\f",Zt(s?l[s-1]:0))&&(h=-1);break}case 34:case 39:case 91:C+=xn(b);break;case 9:case 10:case 13:case 32:C+=En(m);break;case 92:C+=Cn(bn()-1,7);continue;case 47:switch(hn()){case 42:case 47:ln(In($n(gn(),bn()),t,n,c),c),5!=wn(m||1)&&5!=wn(hn()||1)||!an(C)||" "===on(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*v:l[s++]=an(C)*h;case 125*v:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==h&&(C=tn(C,/\f/g,"")),p>0&&(an(C)-d||0===v&&47===m)&&ln(p>32?Rn(C+";",r,n,d-1,c):Rn(tn(C," ","")+";",r,n,d-2,c),c);break;case 59:C+=";";default:if(ln(E=Pn(C,t,n,s,u,o,l,y,w=[],x=[],d,i),i),123===b)if(0===u)Nn(C,t,E,E,w,i,d,l,x);else switch(99===f&&110===rn(C,3)?100:f){case 100:case 108:case 109:case 115:Nn(e,E,E,r&&ln(Pn(e,E,E,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:Nn(C,E,E,E,[""],x,0,l,x)}}s=u=p=0,v=h=1,y=C="",d=a;break;case 58:d=1+an(C),p=m;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==vn())continue;switch(C+=Jt(b),b*v){case 38:h=u>0?1:(C+="\f",-1);break;case 44:l[s++]=(an(C)-1)*h,h=1;break;case 64:45===hn()&&(C+=xn(gn())),f=hn(),u=d=an(y=C+=kn(bn())),b++;break;case 45:45===m&&2==an(C)&&(v=0)}}return i}function Pn(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),v=0,g=0,h=0;v<r;++v)for(var b=0,y=on(e,f+1,f=Zt(g=a[v])),w=e;b<m;++b)(w=en(g>0?p[b]+" "+y:tn(y,/&\f/g,p[b])))&&(c[h++]=w);return mn(e,t,n,0===o?Gt:l,c,s,u,d)}function In(e,t,n,r){return mn(e,t,n,Xt,Jt(fn),on(e,2,-2),0,r)}function Rn(e,t,n,r,o){return mn(e,t,n,Kt,on(e,0,r),on(e,r+1,-1),r,o)}function Mn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function jn(e,t,n,r){switch(e.type){case Qt:if(e.children.length)break;case Ut:case Kt:return e.return=e.return||e.value;case Xt:return"";case Yt:return e.return=e.value+"{"+Mn(e.children,r)+"}";case Gt:if(!an(e.value=e.props.join(",")))return""}return an(n=Mn(e.children,r))?e.return=e.value+"{"+n+"}":""}function _n(e,t){var n=t.path,r=t.parentSelectors;N(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var An,Tn=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&_n("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},Fn=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&_n("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Bn="data-ant-cssinjs-cache-path",zn="_FILE_STYLE__",Dn=!0;function Ln(e){return function(){if(!An&&(An={},He())){var e=document.createElement("div");e.className=Bn,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(/"$/,"")).split(";").forEach((function(e){var t=De(e.split(":"),2),n=t[0],r=t[1];An[n]=r}));var n,r=document.querySelector("style[".concat(Bn,"]"));r&&(Dn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!An[e]}var Hn="_skip_check_",Vn="_multi_value_";function Wn(e){return Mn(On(e),jn).replace(/\{%%%\:[^;];}/g,";")}function qn(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Re(n.slice(1))).join(" ")})).join(",")}var Xn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,s=n.path,u=n.hashPriority,d=n.transformers,f=void 0===d?[]:d,p=n.linters,m=void 0===p?[]:p,v="",g={};function h(t){var r=t.getName(l);if(!g[r]){var o=De(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];g[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)v+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==P(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===P(e)&&e&&(Hn in e||Vn in e)}(r)){var d;function C(e,t){"production"===process.env.NODE_ENV||"object"===P(r)&&null!=r&&r[Hn]||[Tn,Fn].concat(Re(m)).forEach((function(n){return n(e,t,{path:s,hashId:l,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;qt[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),o=t.getName(l)),v+="".concat(n,":").concat(o,";")}var f=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===P(r)&&null!=r&&r[Vn]&&Array.isArray(f)?f.forEach((function(e){C(t,e)})):C(t,f)}else{var p=!1,b=t.trim(),y=!1;(o||i)&&l?b.startsWith("@")?p=!0:b=qn("&"===b?"":t,l,u):!o||l||"&"!==b&&""!==b||(b="",y=!0);var w=De(e(r,n,{root:y,injectHash:p,parentSelectors:[].concat(Re(a),[b])}),2),x=w[0],E=w[1];g=j(j({},g),E),v+="".concat(b).concat(x)}}))}})),o?c&&(v="@layer ".concat(c.name," {").concat(v,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):v="{".concat(v,"}"),[v,g]};function Gn(e,t){return Le("".concat(e.join("%")).concat(t))}function Kn(){return null}var Un="style";function Yn(e,t){var n=e.token,o=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=r.useContext(st),f=d.autoClear,p=d.mock,v=d.defaultCache,g=d.hashPriority,h=d.container,b=d.ssrInline,y=d.transformers,w=d.linters,x=d.cache,E=d.layer,C=n._tokenKey,S=[C];E&&S.push("layer"),S.push.apply(S,Re(o));var $=wt;"production"!==process.env.NODE_ENV&&void 0!==p&&($="client"===p);var k=Tt(Un,S,(function(){var e=S.join("|");if(Ln(e)){var n=function(e){var t=An[e],n=null;if(t&&He())if(Dn)n=zn;else{var r=document.querySelector("style[".concat(at,'="').concat(An[e],'"]'));r?n=r.innerHTML:delete An[e]}return[n,t]}(e),r=De(n,2),l=r[0],s=r[1];if(l)return[l,C,s,{},c,u]}var d=t(),f=De(Xn(d,{hashId:i,hashPriority:g,layer:E?a:void 0,path:o.join("-"),transformers:y,linters:w}),2),p=f[0],m=f[1],v=Wn(p),h=Gn(S,v);return[v,C,h,m,c,u]}),(function(e,t){var n=De(e,3)[2];(t||f)&&wt&&Ze(n,{mark:at})}),(function(e){var t=De(e,4),n=t[0];t[1];var r=t[2],o=t[3];if($&&n!==zn){var i={mark:at,prepend:!E&&"queue",attachTo:h,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){Je(Wn(o[e]),"_layer-".concat(e),j(j({},i),{},{prepend:!0}))}));var d=Je(n,r,i);d[ct]=x.instanceId,d.setAttribute(it,C),"production"!==process.env.NODE_ENV&&d.setAttribute(lt,S.join("|")),s.forEach((function(e){Je(Wn(o[e]),"_effect-".concat(e),i)}))}})),O=De(k,3),N=O[0],P=O[1],I=O[2];return function(e){var t;return t=b&&!$&&v?r.createElement("style",m({},R(R({},it,P),at,I),{dangerouslySetInnerHTML:{__html:N}})):r.createElement(Kn,null),r.createElement(r.Fragment,null,t,e)}}var Qn="cssVar";R(R(R({},Un,(function(e,t,n){var r=De(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=Et(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Et(Wn(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),Vt,(function(e,t,n){var r=De(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,Et(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),Qn,(function(e,t,n){var r=De(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Et(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var Zn=function(){function e(t,n){pe(this,e),R(this,"name",void 0),R(this,"style",void 0),R(this,"_keyframe",!0),this.name=t,this.style=n}return ve(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function Jn(e){return e.notSplit=!0,e}Jn(["borderTop","borderBottom"]),Jn(["borderTop"]),Jn(["borderBottom"]),Jn(["borderLeft","borderRight"]),Jn(["borderLeft"]),Jn(["borderRight"]);var er=e.createContext({});function tr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function nr(e,t,n,r){if(!t.length)return n;var o,i,a=Be(o=t)||Pe(o)||Ie(o)||ze(),l=a[0],c=a.slice(1);return i=e||"number"!=typeof l?Array.isArray(e)?Re(e):j({},e):[],r&&void 0===n&&1===c.length?delete i[l][c[0]]:i[l]=nr(i[l],c,n,r),i}function rr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!tr(e,t.slice(0,-1))?e:nr(e,t,n,r)}function or(e){return Array.isArray(e)?[]:{}}var ir="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function ar(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=or(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=tr(e,n),c=Array.isArray(l);if(c||"object"===P(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=tr(r,n);c?r=rr(r,n,[]):s&&"object"===P(s)||(r=rr(r,n,or(l))),ir(l).forEach((function(e){t([].concat(Re(n),[e]),a)}))}}else r=rr(r,n,l)}([])})),r}function lr(){}let cr=null;let sr=lr;"production"!==process.env.NODE_ENV&&(sr=(e,t,n)=>{N(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(cr=null,k())});const ur=r.createContext({}),dr="production"!==process.env.NODE_ENV?e=>{const{strict:t}=r.useContext(ur),n=(n,r,o)=>{if(!n)if(!1===t&&"deprecated"===r){const t=cr;cr||(cr={}),cr[e]=cr[e]||[],cr[e].includes(o||"")||cr[e].push(o||""),t||console.warn("[antd] There exists deprecated usage in your code:",cr)}else"production"!==process.env.NODE_ENV&&sr(n,e,o)};return n.deprecated=(e,t,r,o)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${r}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=lr,e};var fr=sr,pr=e.createContext(void 0),mr=j(j({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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 vr={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},gr={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"]},mr),timePickerLocale:Object.assign({},vr)},hr="${label} is not a valid ${type}",br={locale:"en",Pagination:{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"},DatePicker:gr,TimePicker:vr,Calendar:gr,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:hr,method:hr,array:hr,object:hr,number:hr,date:hr,boolean:hr,integer:hr,float:hr,regexp:hr,email:hr,url:hr,hex:hr},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},br.Modal);let yr=[];const wr=()=>yr.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),br.Modal);const xr=e.createContext(void 0),Er="internalMark",Cr=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;if("production"!==process.env.NODE_ENV){const e=dr("LocaleProvider");"production"!==process.env.NODE_ENV&&e(o===Er,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}r.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return yr.push(t),wr(),()=>{yr=yr.filter((e=>e!==t)),wr()}}Object.assign({},br.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(xr.Provider,{value:i},n)};function Sr(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function $r(e){return Math.min(1,Math.max(0,e))}function kr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Or(e){return e<=1?"".concat(100*Number(e),"%"):e}function Nr(e){return 1===e.length?"0"+e:String(e)}function Pr(e,t,n){e=Sr(e,255),t=Sr(t,255),n=Sr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function Ir(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Rr(e,t,n){e=Sr(e,255),t=Sr(t,255),n=Sr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function Mr(e,t,n,r){var o=[Nr(Math.round(e).toString(16)),Nr(Math.round(t).toString(16)),Nr(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 jr(e){return _r(e)/255}function _r(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(Cr.displayName="LocaleProvider");var Ar={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 Tr(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,l=null,c=null,s=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Ar[e])e=Ar[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Dr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Dr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Dr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Dr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Dr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Dr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Dr.hex8.exec(e),n)return{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),a:jr(n[4]),format:t?"name":"hex8"};if(n=Dr.hex6.exec(e),n)return{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),format:t?"name":"hex"};if(n=Dr.hex4.exec(e),n)return{r:_r(n[1]+n[1]),g:_r(n[2]+n[2]),b:_r(n[3]+n[3]),a:jr(n[4]+n[4]),format:t?"name":"hex8"};if(n=Dr.hex3.exec(e),n)return{r:_r(n[1]+n[1]),g:_r(n[2]+n[2]),b:_r(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Lr(e.r)&&Lr(e.g)&&Lr(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Sr(t,255),g:255*Sr(n,255),b:255*Sr(r,255)},s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Lr(e.h)&&Lr(e.s)&&Lr(e.v)?(a=Or(e.s),l=Or(e.v),o=function(e,t,n){e=6*Sr(e,360),t=Sr(t,100),n=Sr(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,a,l),s=!0,u="hsv"):Lr(e.h)&&Lr(e.s)&&Lr(e.l)&&(a=Or(e.s),c=Or(e.l),o=function(e,t,n){var r,o,i;if(e=Sr(e,360),t=Sr(t,100),n=Sr(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Ir(l,a,e+1/3),o=Ir(l,a,e),i=Ir(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=kr(i),{ok:s,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var Fr="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Br="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),zr="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),Dr={CSS_UNIT:new RegExp(Fr),rgb:new RegExp("rgb"+Br),rgba:new RegExp("rgba"+zr),hsl:new RegExp("hsl"+Br),hsla:new RegExp("hsla"+zr),hsv:new RegExp("hsv"+Br),hsva:new RegExp("hsva"+zr),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 Lr(e){return Boolean(Dr.CSS_UNIT.exec(String(e)))}var Hr=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Tr(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=null!==(r=n.format)&&void 0!==r?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 e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=kr(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Rr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Rr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Pr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Pr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Mr(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[Nr(Math.round(e).toString(16)),Nr(Math.round(t).toString(16)),Nr(Math.round(n).toString(16)),Nr((i=r,Math.round(255*parseFloat(i)).toString(16)))];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("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},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 e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Sr(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Sr(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Mr(this.r,this.g,this.b,!1),t=0,n=Object.entries(Ar);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=$r(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=$r(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=$r(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=$r(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){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},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],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Vr=2,Wr=.16,qr=.05,Xr=.05,Gr=.15,Kr=5,Ur=4,Yr=[{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 Qr(e){var t=Rr(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Zr(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Mr(t,n,r,!1))}function Jr(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Vr*t:Math.round(e.h)+Vr*t:n?Math.round(e.h)+Vr*t:Math.round(e.h)-Vr*t)<0?r+=360:r>=360&&(r-=360),r}function eo(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-Wr*t:t===Ur?e.s+Wr:e.s+qr*t)>1&&(r=1),n&&t===Kr&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function to(e,t,n){var r;return(r=n?e.v+Xr*t:e.v-Gr*t)>1&&(r=1),Number(r.toFixed(2))}function no(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Tr(e),o=Kr;o>0;o-=1){var i=Qr(r),a=Zr(Tr({h:Jr(i,o,!0),s:eo(i,o,!0),v:to(i,o,!0)}));n.push(a)}n.push(Zr(r));for(var l=1;l<=Ur;l+=1){var c=Qr(r),s=Zr(Tr({h:Jr(c,l),s:eo(c,l),v:to(c,l)}));n.push(s)}return"dark"===t.theme?Yr.map((function(e){var r,o,i,a=e.index,l=e.opacity;return Zr((r=Tr(t.backgroundColor||"#141414"),o=Tr(n[a]),i=100*l/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var ro={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"},oo=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];oo.primary=oo[5];var io=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];io.primary=io[5];var ao=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ao.primary=ao[5];var lo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];lo.primary=lo[5];var co=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];co.primary=co[5];var so=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];so.primary=so[5];var uo=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];uo.primary=uo[5];var fo=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];fo.primary=fo[5];var po=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];po.primary=po[5];var mo=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];mo.primary=mo[5];var vo=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];vo.primary=vo[5];var go=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];go.primary=go[5];var ho=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ho.primary=ho[5];var bo={red:oo,volcano:io,orange:ao,gold:lo,yellow:co,lime:so,green:uo,cyan:fo,blue:po,geekblue:mo,purple:vo,magenta:go,grey:ho};const yo={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"},wo=Object.assign(Object.assign({},yo),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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});const xo=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}};function Eo(e){return(e+8)/e}const Co=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Eo(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const So=(e,t)=>new Hr(e).setAlpha(t).toRgbString(),$o=(e,t)=>new Hr(e).darken(t).toHexString(),ko=e=>{const t=no(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]}},Oo=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:So(r,.88),colorTextSecondary:So(r,.65),colorTextTertiary:So(r,.45),colorTextQuaternary:So(r,.25),colorFill:So(r,.15),colorFillSecondary:So(r,.06),colorFillTertiary:So(r,.04),colorFillQuaternary:So(r,.02),colorBgLayout:$o(n,4),colorBgContainer:$o(n,0),colorBgElevated:$o(n,0),colorBgSpotlight:So(r,.85),colorBgBlur:"transparent",colorBorder:$o(n,15),colorBorderSecondary:$o(n,6)}};const No=mt((function(e){ro.pink=ro.magenta,bo.pink=bo.magenta;const t=Object.keys(yo).map((t=>{const n=e[t]===ro[t]?bo[t]:no(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(o),p=n(i),m=n(a),v=n(l),g=r(s,u),h=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[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:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new Hr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:ko,generateNeutralColorPalettes:Oo})),Co(e.fontSize)),function(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)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},xo(r))}(e))})),Po={token:wo,override:{override:wo},hashed:!0},Io=e.createContext(Po),Ro="ant",Mo="anticon",jo=["outlined","borderless","filled"],_o=r.createContext({getPrefixCls:(e,t)=>t||(e?`${Ro}-${e}`:Ro),iconPrefixCls:Mo}),Ao=`-ant-${Date.now()}-${Math.random()}`;function To(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Hr(e),i=no(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Hr(t.primaryColor),i=no(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Hr(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.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"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);He()?Je(n,`${Ao}-dynamic-theme`):"production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Fo=r.createContext(!1),Bo=e=>{let{children:t,disabled:n}=e;const o=r.useContext(Fo);return r.createElement(Fo.Provider,{value:null!=n?n:o},t)},zo=r.createContext(void 0),Do=e=>{let{children:t,size:n}=e;const o=r.useContext(zo);return r.createElement(zo.Provider,{value:n||o},t)};var Lo=ve((function e(){pe(this,e)})),Ho="CALC_UNIT",Vo=new RegExp(Ho,"g");function Wo(e){return"number"==typeof e?"".concat(e).concat(Ho):e}var qo=function(){he(t,Lo);var e=xe(t);function t(n,r){var o;pe(this,t),R(we(o=e.call(this)),"result",""),R(we(o),"unitlessCssVar",void 0),R(we(o),"lowPriority",void 0);var i=P(n);return o.unitlessCssVar=r,n instanceof t?o.result="(".concat(n.result,")"):"number"===i?o.result=Wo(n):"string"===i&&(o.result=n),o}return ve(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Wo(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Wo(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Vo,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),Xo=function(){he(t,Lo);var e=xe(t);function t(n){var r;return pe(this,t),R(we(r=e.call(this)),"result",0),n instanceof t?r.result=n.result:"number"==typeof n&&(r.result=n),r}return ve(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),Go=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ko(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Uo(e){var t=r.useRef(!1),n=De(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}function Yo(e){return void 0!==e}function Qo(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=De(Uo((function(){return Yo(o)?o:Yo(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=Ko(i),p=De(Uo([u]),2),m=p[0],v=p[1];return Nt((function(){var e=m[0];c!==e&&f(c,e)}),[m]),Nt((function(){Yo(o)||s(o)}),[o]),[d,Ko((function(e,t){s(e,t),v([u],t)}))]}function Zo(e,t,n,r){var o=j({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=De(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&N(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))}));var i=j(j({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var Jo="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,ei=!0;function ti(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Jo)return Object.assign.apply(Object,[{}].concat(t));ei=!1;var r={};return t.forEach((function(e){"object"===P(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),ei=!0,r}var ni={};function ri(){}function oi(e,t,n){var r;return"function"==typeof n?n(ti(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var ii=function(){function e(){pe(this,e),R(this,"map",new Map),R(this,"objectIDMap",new WeakMap),R(this,"nextID",0),R(this,"lastAccessBeat",new Map),R(this,"accessBeat",0)}return ve(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===P(e)?"obj_".concat(t.getObjectID(e)):"".concat(P(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),ai=new ii;var li=function(){return{}};const ci=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var si="5.20.5";function ui(e){return e>=0&&e<=255}function di(e,t){const{r:n,g:r,b:o,a:i}=new Hr(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Hr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(ui(t)&&ui(i)&&ui(s))return new Hr({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new Hr({r:n,g:r,b:o,a:1}).toRgbString()}var fi=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 pi(e){const{override:t}=e,n=fi(e,["override"]),r=Object.assign({},t);Object.keys(wo).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:di(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:di(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:di(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:di(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:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Hr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Hr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Hr("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",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 mi=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 vi={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},gi={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},hi={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},bi=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=mi(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=pi(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=mi(n,["theme"]);let i=o;r&&(i=bi(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function yi(){const{token:t,hashed:n,theme:r,override:o,cssVar:i}=e.useContext(Io),a=`${si}-${n||""}`,l=r||No,[c,s,u]=Wt(l,[wo,t],{salt:a,override:o,getComputedToken:bi,formatToken:pi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:vi,ignore:gi,preserve:hi}});return[l,u,n?s:"",c,i]}const wi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},xi=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[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}},Ei=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, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ci=e=>({outline:`${xt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Si=e=>({"&:focus-visible":Object.assign({},Ci(e))}),$i=(e,t)=>{const[n,r]=yi();return Yn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},{genStyleHooks:ki,genComponentStyleHook:Oi,genSubStyleComponent:Ni}=function(t){var n=t.useCSP,r=void 0===n?li:n,o=t.useToken,i=t.usePrefix,a=t.getResetStyles,l=t.getCommonStyle,c=t.getCompUnitless;function s(t,n,c){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=De(u,1)[0],f=u.join("-");return function(t){var u,p,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,v=o(),g=v.theme,h=v.realToken,b=v.hashId,y=v.token,w=v.cssVar,x=i(),E=x.rootPrefixCls,C=x.iconPrefixCls,S=r(),$=w?"css":"js",k=(u=function(){var e=new Set;return w&&Object.keys(s.unitless||{}).forEach((function(t){e.add(Ct(t,w.prefix)),e.add(Ct(t,Go(d,w.prefix)))})),function(e,t){var n="css"===e?qo:Xo;return function(e){return new n(e,t)}}($,e)},p=[$,d,null==w?void 0:w.prefix],e.useMemo((function(){var e=ai.get(p);if(e)return e;var t=u();return ai.set(p,t),t}),p)),O=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return xt(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return xt(e)})).join(","),")")}}}($),N=O.max,I=O.min,R={theme:g,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:{name:"antd"},order:s.order||-999};Yn(j(j({},R),{},{clientOnly:!1,path:["Shared",E]}),(function(){return"function"==typeof a?a(y):[]}));var M=Yn(j(j({},R),{},{path:[f,t,C]}),(function(){if(!1===s.injectStyle)return[];var e=function(e){var t,n=e,r=ri;return Jo&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return ei&&t.add(n),e[n]}}),r=function(e,n){var r;ni[e]={global:Array.from(t),component:j(j({},null===(r=ni[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(y),r=e.token,o=e.flush,i=oi(d,h,c),a=".".concat(t),u=Zo(d,h,i,{deprecatedTokens:s.deprecatedTokens});w&&"object"===P(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(Ct(e,Go(d,w.prefix)),")")}));var f=ti(r,{componentCls:a,prefixCls:t,iconCls:".".concat(C),antCls:".".concat(E),calc:k,max:N,min:I},w?i:u),p=n(f,{hashId:b,prefixCls:t,rootPrefixCls:E,iconPrefixCls:C});o(d,u);var v="function"==typeof l?l(f,t,m,s.resetFont):null;return[!1===s.resetStyle?null:v,p]}));return[M,b]}}return{genStyleHooks:function(t,n,r,i){var a=Array.isArray(t)?t[0]:t;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=j(j({},"function"==typeof c?c(t):{}),{},R({},l("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[l(e)]=u[e]}));var f=j(j({},i),{},{unitless:d,prefixToken:l}),p=s(t,n,r,f),m=function(t,n,r){var i=r.unitless,a=r.injectStyle,l=void 0===a||a,c=r.prefixToken,s=r.ignore,u=function(a){var l=a.rootCls,u=a.cssVar,d=void 0===u?{}:u,f=o().realToken;return function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,s=void 0===c?"":c,u=e.useContext(st),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(Re(t.path),[r,s,p]),v=Tt(Qn,m,(function(){var e=n(),t=De($t(e,r,{prefix:o,unitless:i,ignore:a,scope:s}),2),l=t[0],c=t[1];return[l,c,Gn(m,c),r]}),(function(e){var t=De(e,3)[2];wt&&Ze(t,{mark:at})}),(function(e){var t=De(e,3),n=t[1],o=t[2];if(n){var i=Je(n,o,{mark:at,prepend:"queue",attachTo:f,priority:-999});i[ct]=d,i.setAttribute(it,r)}}))}({path:[t],prefix:d.prefix,key:d.key,unitless:i,ignore:s,token:f,scope:l},(function(){var e=oi(t,f,n),o=Zo(t,f,e,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(e).forEach((function(e){o[c(e)]=o[e],delete o[e]})),o})),null},d=function(n){var r=o().cssVar;return[function(o){return l&&r?e.createElement(e.Fragment,null,e.createElement(u,{rootCls:n,cssVar:r,component:t}),o):o},null==r?void 0:r.key]};return d}(a,r,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=De(p(e,t),2)[1],r=De(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,j({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=e.useContext(_o);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=yi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t,iconPrefixCls:n}=e.useContext(_o);return $i(n,t),null!=t?t:{}},getResetStyles:e=>[{"&":Ei(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>vi});function Pi(e,t){return ci.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const Ii=Object.assign({},r),{useId:Ri}=Ii,Mi=void 0===Ri?()=>"":Ri;var ji=["children"],_i=r.createContext({});function Ai(e){var t=e.children,n=et(e,ji);return r.createElement(_i.Provider,{value:n},t)}var Ti=function(){he(t,r.Component);var e=xe(t);function t(){return pe(this,t),e.apply(this,arguments)}return ve(t,[{key:"render",value:function(){return this.props.children}}]),t}();var Fi="none",Bi="appear",zi="enter",Di="leave",Li="none",Hi="prepare",Vi="start",Wi="active",qi="end",Xi="prepared";function Gi(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}var Ki=function(e,t){var n={animationend:Gi("Animation","AnimationEnd"),transitionend:Gi("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(He(),"undefined"!=typeof window?window:{}),Ui={};if(He()){var Yi=document.createElement("div");Ui=Yi.style}var Qi={};function Zi(e){if(Qi[e])return Qi[e];var t=Ki[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Ui)return Qi[e]=t[i],Qi[e]}return""}var Ji=Zi("animationend"),ea=Zi("transitionend"),ta=!(!Ji||!ea),na=Ji||"animationend",ra=ea||"transitionend";function oa(e,t){if(!e)return null;if("object"===P(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var ia=function(t){var n=e.useRef();function o(e){e&&(e.removeEventListener(ra,t),e.removeEventListener(na,t))}return r.useEffect((function(){return function(){o(n.current)}}),[]),[function(e){n.current&&n.current!==e&&o(n.current),e&&e!==n.current&&(e.addEventListener(ra,t),e.addEventListener(na,t),n.current=e)},o]},aa=He()?e.useLayoutEffect:e.useEffect,la=[Hi,Vi,Wi,qi],ca=[Hi,Xi],sa=!1,ua=!0;function da(e){return e===Wi||e===qi}var fa=function(e,t,n){var o=De(Uo(Li),2),i=o[0],a=o[1],l=function(){var e=r.useRef(null);function t(){Fe.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Fe((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=De(l,2),s=c[0],u=c[1];var d=t?ca:la;return aa((function(){if(i!==Li&&i!==qi){var e=d.indexOf(i),t=d[e+1],r=n(i);r===sa?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(Hi,!0)},i]};function pa(t,n,o,i){var a,l,c,s=i.motionEnter,u=void 0===s||s,d=i.motionAppear,f=void 0===d||d,p=i.motionLeave,m=void 0===p||p,v=i.motionDeadline,g=i.motionLeaveImmediately,h=i.onAppearPrepare,b=i.onEnterPrepare,y=i.onLeavePrepare,w=i.onAppearStart,x=i.onEnterStart,E=i.onLeaveStart,C=i.onAppearActive,S=i.onEnterActive,$=i.onLeaveActive,k=i.onAppearEnd,O=i.onEnterEnd,N=i.onLeaveEnd,P=i.onVisibleChanged,I=De(Uo(),2),M=I[0],_=I[1],A=(a=Fi,l=De(r.useReducer((function(e){return e+1}),0),2)[1],c=r.useRef(a),[Ko((function(){return c.current})),Ko((function(e){c.current="function"==typeof e?e(c.current):e,l()}))]),T=De(A,2),F=T[0],B=T[1],z=De(Uo(null),2),D=z[0],L=z[1],H=F(),V=e.useRef(!1),W=e.useRef(null);function q(){return o()}var X=e.useRef(!1);function G(){B(Fi),L(null,!0)}var K=Ko((function(e){var t=F();if(t!==Fi){var n=q();if(!e||e.deadline||e.target===n){var r,o=X.current;t===Bi&&o?r=null==k?void 0:k(n,e):t===zi&&o?r=null==O?void 0:O(n,e):t===Di&&o&&(r=null==N?void 0:N(n,e)),o&&!1!==r&&G()}}})),U=De(ia(K),1)[0],Y=function(e){switch(e){case Bi:return R(R(R({},Hi,h),Vi,w),Wi,C);case zi:return R(R(R({},Hi,b),Vi,x),Wi,S);case Di:return R(R(R({},Hi,y),Vi,E),Wi,$);default:return{}}},Q=r.useMemo((function(){return Y(H)}),[H]),Z=De(fa(H,!t,(function(e){if(e===Hi){var t=Q[Hi];return t?t(q()):sa}var n;ee in Q&&L((null===(n=Q[ee])||void 0===n?void 0:n.call(Q,q(),null))||null);return ee===Wi&&H!==Fi&&(U(q()),v>0&&(clearTimeout(W.current),W.current=setTimeout((function(){K({deadline:!0})}),v))),ee===Xi&&G(),ua})),2),J=Z[0],ee=Z[1],te=da(ee);X.current=te,aa((function(){_(n);var e,r=V.current;V.current=!0,!r&&n&&f&&(e=Bi),r&&n&&u&&(e=zi),(r&&!n&&m||!r&&g&&!n&&m)&&(e=Di);var o=Y(e);e&&(t||o[Hi])?(B(e),J()):B(Fi)}),[n]),e.useEffect((function(){(H===Bi&&!f||H===zi&&!u||H===Di&&!m)&&B(Fi)}),[f,u,m]),e.useEffect((function(){return function(){V.current=!1,clearTimeout(W.current)}}),[]);var ne=r.useRef(!1);e.useEffect((function(){M&&(ne.current=!0),void 0!==M&&H===Fi&&((ne.current||M)&&(null==P||P(M)),ne.current=!0)}),[M,H]);var re=D;return Q[Hi]&&ee===Vi&&(re=j({transition:"none"},re)),[H,ee,re,null!=M?M:n]}var ma=function(t){var n=t;"object"===P(t)&&(n=t.transitionSupport);var o=r.forwardRef((function(t,o){var i=t.visible,a=void 0===i||i,l=t.removeOnLeave,c=void 0===l||l,s=t.forceRender,u=t.children,d=t.motionName,f=t.leavedClassName,m=t.eventProps,v=function(e,t){return!(!e.motionName||!n||!1===t)}(t,r.useContext(_i).motion),g=e.useRef(),h=e.useRef();var b=De(pa(v,a,(function(){try{return g.current instanceof HTMLElement?g.current:A(h.current)}catch(e){return null}}),t),4),y=b[0],w=b[1],x=b[2],E=b[3],C=r.useRef(E);E&&(C.current=!0);var S,$=r.useCallback((function(e){g.current=e,F(o,e)}),[o]),k=j(j({},m),{},{visible:a});if(u)if(y===Fi)S=E?u(j({},k),$):!c&&C.current&&f?u(j(j({},k),{},{className:f}),$):s||!c&&!f?u(j(j({},k),{},{style:{display:"none"}}),$):null;else{var O;w===Hi?O="prepare":da(w)?O="active":w===Vi&&(O="start");var N=oa(d,"".concat(y,"-").concat(O));S=u(j(j({},k),{},{className:p(oa(d,y),R(R({},N,N&&O),d,"string"==typeof d)),style:x}),$)}else S=null;r.isValidElement(S)&&D(S)&&(S.ref||(S=r.cloneElement(S,{ref:$})));return r.createElement(Ti,{ref:h},S)}));return o.displayName="CSSMotion",o}(ta),va="add",ga="keep",ha="remove",ba="removed";function ya(e){var t;return j(j({},t=e&&"object"===P(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function wa(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ya)}var xa=["component","children","onVisibleChanged","onAllRemoved"],Ea=["status"],Ca=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Sa(e){const{children:t}=e,[,n]=yi(),{motion:o}=n,i=r.useRef(!1);return i.current=i.current||!1===o,i.current?r.createElement(Ai,{motion:o},t):t}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ma,t=function(){he(n,r.Component);var t=xe(n);function n(){var e;pe(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return R(we(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),R(we(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:j(j({},e),{},{status:ba})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==ba})).length})),e}return ve(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=et(o,xa),u=i||r.Fragment,d={};return Ca.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,r.createElement(u,s,n.map((function(n,o){var i=n.status,s=et(n,Ea),u=i===va||i===ga;return r.createElement(e,m({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(e){(null==l||l(e,{key:s.key}),e)||0===t.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(j(j({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=wa(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=wa(e),a=wa(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return j(j({},e),{},{status:va})}))),r=i),n.push(j(j({},l),{},{status:ga})),r+=1,t=!0;break}}t||n.push(j(j({},e),{},{status:ha}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return j(j({},e),{},{status:va})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ha}))).forEach((function(t){t.key===e&&(t.status=ga)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ba||e.status!==ha}))}}}]),n}();R(t,"defaultProps",{component:"div"})}(ta);const $a=r.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return dr("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&($a.displayName="PropWarning");var ka="production"!==process.env.NODE_ENV?$a:()=>null,Oa=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Na=!1;process.env.NODE_ENV;const Pa=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ia;const Ra=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:v,legacyLocale:g,parentContext:h,iconPrefixCls:b,theme:y,componentDisabled:w,segmented:x,statistic:E,spin:C,calendar:S,carousel:$,cascader:k,collapse:O,typography:N,checkbox:P,descriptions:I,divider:R,drawer:M,skeleton:j,steps:_,image:A,layout:F,list:B,mentions:z,modal:D,progress:L,result:H,slider:V,breadcrumb:W,menu:q,pagination:X,input:G,textArea:K,empty:U,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ve,wave:ge,dropdown:he,warning:be,tour:ye,floatButtonGroup:we,variant:xe,inputNumber:Ee,treeSelect:Ce}=e,Se=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||h.getPrefixCls("");return t?`${o}-${t}`:o}),[h.getPrefixCls,e.prefixCls]),$e=b||h.iconPrefixCls||Mo,ke=n||h.csp;$i($e,ke);const Oe=function(e,t,n){var r,o;const i=dr("ConfigProvider"),a=e||{},l=!1!==a.inherit&&t?t:Object.assign(Object.assign({},Po),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:Po.hashed,cssVar:null==t?void 0:t.cssVar}),c=Mi();if("production"!==process.env.NODE_ENV){const e=a.cssVar||l.cssVar,t=!!("object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||c);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return T((()=>{var r,o;if(!e)return t;const i=Object.assign({},l.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const s=`css-var-${c.replace(/:/g,"")}`,u=(null!==(r=a.cssVar)&&void 0!==r?r:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof l.cssVar?l.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||s});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:i,cssVar:u})}),[a,l],((e,t)=>e.some(((e,n)=>!tt(e,t[n],!0)))))}(y,h.theme,{prefixCls:Se("")});"production"!==process.env.NODE_ENV&&(Na=Na||!!Oe);const Ne={csp:ke,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||g,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=m?m:p,popupOverflow:v,getPrefixCls:Se,iconPrefixCls:$e,theme:Oe,segmented:x,statistic:E,spin:C,calendar:S,carousel:$,cascader:k,collapse:O,typography:N,checkbox:P,descriptions:I,divider:R,drawer:M,skeleton:j,steps:_,image:A,input:G,textArea:K,layout:F,list:B,mentions:z,modal:D,progress:L,result:H,slider:V,breadcrumb:W,menu:q,pagination:X,empty:U,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ve,wave:ge,dropdown:he,warning:be,tour:ye,floatButtonGroup:we,variant:xe,inputNumber:Ee,treeSelect:Ce};if("production"!==process.env.NODE_ENV){dr("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Pe=Object.assign({},h);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&(Pe[e]=Ne[e])})),Pa.forEach((t=>{const n=e[t];n&&(Pe[t]=n)})),void 0!==o&&(Pe.button=Object.assign({autoInsertSpace:o},Pe.button));const Ie=T((()=>Pe),Pe,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Re=r.useMemo((()=>({prefixCls:$e,csp:ke})),[$e,ke]);let Me=r.createElement(r.Fragment,null,r.createElement(ka,{dropdownMatchSelectWidth:p}),t);const je=r.useMemo((()=>{var e,t,n,r;return ar((null===(e=br.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ie.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ie.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Ie,null==l?void 0:l.validateMessages]);Object.keys(je).length>0&&(Me=r.createElement(pr.Provider,{value:je},Me)),c&&(Me=r.createElement(Cr,{locale:c,_ANT_MARK__:Er},Me)),($e||ke)&&(Me=r.createElement(er.Provider,{value:Re},Me)),s&&(Me=r.createElement(Do,{size:s},Me)),Me=r.createElement(Sa,null,Me);const _e=r.useMemo((()=>{const e=Oe||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=Oa(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?mt(t):No,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=mt(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},wo),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[Oe]);return y&&(Me=r.createElement(Io.Provider,{value:_e},Me)),Ie.warning&&(Me=r.createElement(ur.Provider,{value:Ie.warning},Me)),void 0!==w&&(Me=r.createElement(Bo,{disabled:w},Me)),r.createElement(_o.Provider,{value:Ie},Me)},Ma=e=>{const t=r.useContext(_o),n=r.useContext(xr);return r.createElement(Ra,Object.assign({parentContext:t,legacyLocale:n},e))};function ja(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function _a(e){return function(e){return ja(e)instanceof ShadowRoot}(e)?ja(e):null}function Aa(e){return"object"===P(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===P(e.icon)||"function"==typeof e.icon)}function Ta(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function Fa(t,n,r){return r?e.createElement(t.tag,j(j({key:n},Ta(t.attrs)),r),(t.children||[]).map((function(e,r){return Fa(e,"".concat(n,"-").concat(t.tag,"-").concat(r))}))):e.createElement(t.tag,j({key:n},Ta(t.attrs)),(t.children||[]).map((function(e,r){return Fa(e,"".concat(n,"-").concat(t.tag,"-").concat(r))})))}function Ba(e){return no(e)[0]}function za(e){return e?Array.isArray(e)?e:[e]:[]}Ma.ConfigContext=_o,Ma.SizeContext=zo,Ma.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Ia=t),r&&function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)&&("production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),To(Ia||Ro,r))},Ma.useConfig=function(){return{componentDisabled:e.useContext(Fo),componentSize:e.useContext(zo)}},Object.defineProperty(Ma,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),zo)}),"production"!==process.env.NODE_ENV&&(Ma.displayName="ConfigProvider");var Da=["icon","className","onClick","style","primaryColor","secondaryColor"],La={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ha=function(t){var n,o,i,a,l,c,s,u=t.icon,d=t.className,f=t.onClick,p=t.style,m=t.primaryColor,v=t.secondaryColor,g=et(t,Da),h=r.useRef(),b=La;if(m&&(b={primaryColor:m,secondaryColor:v||Ba(m)}),n=h,o=e.useContext(er),i=o.csp,a=o.prefixCls,l="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",a&&(l=l.replace(/anticon/g,a)),e.useEffect((function(){var e=_a(n.current);Je(l,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),c=Aa(u),s="icon should be icon definiton, but got ".concat(u),N(c,"[@ant-design/icons] ".concat(s)),!Aa(u))return null;var y=u;return y&&"function"==typeof y.icon&&(y=j(j({},y),{},{icon:y.icon(b.primaryColor,b.secondaryColor)})),Fa(y.icon,"svg-".concat(y.name),j(j({className:d,onClick:f,style:p,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:h}))};function Va(e){var t=De(za(e),2),n=t[0],r=t[1];return Ha.setTwoToneColors({primaryColor:n,secondaryColor:r})}Ha.displayName="IconReact",Ha.getTwoToneColors=function(){return j({},La)},Ha.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;La.primaryColor=t,La.secondaryColor=n||Ba(t),La.calculated=!!n};var Wa=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Va(po.primary);var qa=r.forwardRef((function(e,t){var n=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=et(e,Wa),d=r.useContext(er),f=d.prefixCls,v=void 0===f?"anticon":f,g=d.rootClassName,h=p(g,v,R(R({},"".concat(v,"-").concat(o.name),!!o.name),"".concat(v,"-spin"),!!i||"loading"===o.name),n),b=l;void 0===b&&c&&(b=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=De(za(s),2),x=w[0],E=w[1];return r.createElement("span",m({role:"img","aria-label":o.name},u,{ref:t,tabIndex:b,onClick:c,className:h}),r.createElement(Ha,{icon:o,primaryColor:x,secondaryColor:E,style:y}))}));qa.displayName="AntdIcon",qa.getTwoToneColor=function(){var e=Ha.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},qa.setTwoToneColor=Va;var Xa={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"},Ga=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Xa}))},Ka=r.forwardRef(Ga);"production"!==process.env.NODE_ENV&&(Ka.displayName="CloseCircleFilled");var Ua={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"},Ya=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Ua}))},Qa=r.forwardRef(Ya);"production"!==process.env.NODE_ENV&&(Qa.displayName="CloseOutlined");var Za="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Ja(e,t){return 0===e.indexOf(t)}function el(t){return t&&e.isValidElement(t)&&t.type===e.Fragment}const tl=(t,n,r)=>e.isValidElement(t)?e.cloneElement(t,"function"==typeof r?r(t.props||{}):r):n;function nl(e,t){return tl(e,e,t)}const rl=e=>{const[,,,,t]=yi();return t?`${e}-css-var`:""};var ol={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(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=ol.F1&&t<=ol.F12)return!1;switch(t){case ol.ALT:case ol.CAPS_LOCK:case ol.CONTEXT_MENU:case ol.CTRL:case ol.DOWN:case ol.END:case ol.ESC:case ol.HOME:case ol.INSERT:case ol.LEFT:case ol.MAC_FF_META:case ol.META:case ol.NUMLOCK:case ol.NUM_CENTER:case ol.PAGE_DOWN:case ol.PAGE_UP:case ol.PAUSE:case ol.PRINT_SCREEN:case ol.RIGHT:case ol.SHIFT:case ol.UP:case ol.WIN_KEY:case ol.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ol.ZERO&&e<=ol.NINE)return!0;if(e>=ol.NUM_ZERO&&e<=ol.NUM_MULTIPLY)return!0;if(e>=ol.A&&e<=ol.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ol.SPACE:case ol.QUESTION_MARK:case ol.NUM_PLUS:case ol.NUM_MINUS:case ol.NUM_PERIOD:case ol.NUM_DIVISION:case ol.SEMICOLON:case ol.DASH:case ol.EQUALS:case ol.COMMA:case ol.PERIOD:case ol.SLASH:case ol.APOSTROPHE:case ol.SINGLE_QUOTE:case ol.OPEN_SQUARE_BRACKET:case ol.BACKSLASH:case ol.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},il={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"},al=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:il}))},ll=r.forwardRef(al);"production"!==process.env.NODE_ENV&&(ll.displayName="LoadingOutlined");const cl=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(cl.displayName="zIndexContext");const sl=100,ul={Modal:sl,Drawer:sl,Popover:sl,Popconfirm:sl,Tooltip:sl,Tour:sl},dl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function fl(t,n){const[,r]=yi(),o=e.useContext(cl),i=function(e){return e in ul}(t);let a;if(void 0!==n)a=[n,n];else{let e=null!=o?o:0;e+=i?(o?0:r.zIndexPopupBase)+ul[t]:dl[t],a=[void 0===o?n:e,e]}if("production"!==process.env.NODE_ENV){const e=dr(t),o=r.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&e(void 0!==n||i<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function pl(){pl=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new R(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",v="completed",g={};function h(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(M([])));E&&E!==n&&r.call(E,a)&&(w=E);var C=y.prototype=h.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function $(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==P(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=O(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(P(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S($.prototype),s($.prototype,l,(function(){return this})),t.AsyncIterator=$,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new $(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,R.prototype={constructor:R,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 n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function ml(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function vl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ml(i,r,o,a,l,"next",e)}function l(e){ml(i,r,o,a,l,"throw",e)}a(void 0)}))}}var gl,hl=j({},o),bl=hl.version,yl=hl.render,wl=hl.unmountComponentAtNode;try{Number((bl||"").split(".")[0])>=18&&(gl=hl.createRoot)}catch(e){}function xl(e){var t=hl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===P(t)&&(t.usingClientEntryPoint=e)}var El="__rc_react_root__";function Cl(e,t){gl?function(e,t){xl(!0);var n=t[El]||gl(t);xl(!1),n.render(e),t[El]=n}(e,t):function(e,t){yl(e,t)}(e,t)}function Sl(e){return $l.apply(this,arguments)}function $l(){return($l=vl(pl().mark((function e(t){return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[El])||void 0===e||e.unmount(),delete t[El]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kl(e){wl(e)}function Ol(){return(Ol=vl(pl().mark((function e(t){return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===gl){e.next=2;break}return e.abrupt("return",Sl(t));case 2:kl(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Nl=()=>({height:0,opacity:0}),Pl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Il=e=>({height:e?e.offsetHeight:0}),Rl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Ml=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ro}-motion-collapse`,onAppearStart:Nl,onEnterStart:Nl,onAppearActive:Pl,onEnterActive:Pl,onLeaveStart:Il,onLeaveActive:Nl,onAppearEnd:Rl,onEnterEnd:Rl,onLeaveEnd:Rl,motionDeadline:500}},jl=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var _l=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(),i=o.width,a=o.height;if(i||a)return!0}}return!1};const Al=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 ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var Tl=Oi("Wave",(e=>[Al(e)]));const Fl=`${Ro}-wave-target`;function Bl(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(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])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function zl(e){return Number.isNaN(e)?0:e}const Dl=e=>{const{className:t,target:n,component:o}=e,i=r.useRef(null),[a,l]=r.useState(null),[c,s]=r.useState([]),[u,d]=r.useState(0),[f,m]=r.useState(0),[v,g]=r.useState(0),[h,b]=r.useState(0),[y,w]=r.useState(!1),x={left:u,top:f,width:v,height:h,borderRadius:c.map((e=>`${e}px`)).join(" ")};function E(){const e=getComputedStyle(n);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Bl(t)?t:Bl(n)?n:Bl(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:zl(-parseFloat(r))),m(t?n.offsetTop:zl(-parseFloat(o))),g(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>zl(parseFloat(e)))))}if(a&&(x["--wave-color"]=a),r.useEffect((()=>{if(n){const e=Fe((()=>{E(),w(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(E),t.observe(n)),()=>{Fe.cancel(e),null==t||t.disconnect()}}}),[]),!y)return null;const C=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(Fl));return r.createElement(ma,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(function(e){return Ol.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:o}=e;return r.createElement("div",{ref:B(i,n),className:p(t,o,{"wave-quick":C}),style:x})}))},Ll=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),Cl(r.createElement(Dl,Object.assign({},t,{target:e})),i)},Hl=(e,t,n)=>{const{wave:o}=r.useContext(_o),[,i,a]=yi(),l=Ko((r=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${Fl}`)||l,{showEffect:s}=o||{};(s||Ll)(c,{className:t,token:i,component:n,event:r,hashId:a})})),c=r.useRef();return e=>{Fe.cancel(c.current),c.current=Fe((()=>{l(e)}))}},Vl=t=>{const{children:n,disabled:r,component:o}=t,{getPrefixCls:i}=e.useContext(_o),a=e.useRef(null),l=i("wave"),[,c]=Tl(l),s=Hl(a,p(l,c),o);if(e.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!_l(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!e.isValidElement(n))return null!=n?n:null;return nl(n,{ref:D(n)?B(n.ref,a):a})};"production"!==process.env.NODE_ENV&&(Vl.displayName="Wave");const Wl=t=>{const n=e.useContext(zo);return e.useMemo((()=>t?"string"==typeof t?null!=t?t:n:t instanceof Function?t(n):n:n),[t,n])},ql=r.createContext(null),Xl=(e,t)=>{const n=r.useContext(ql),o=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return p(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},Gl=e=>{let{children:t}=e;return r.createElement(ql.Provider,{value:null},t)};var Kl=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Ul=r.createContext(void 0),Yl=/^[\u4e00-\u9fa5]{2}$/,Ql=Yl.test.bind(Yl);function Zl(e){return"string"==typeof e}function Jl(e){return"text"===e||"link"===e}function ec(t,n){let r=!1;const o=[];return e.Children.forEach(t,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),e.Children.map(o,(t=>function(t,n){if(null==t)return;const r=n?" ":"";return"string"!=typeof t&&"number"!=typeof t&&Zl(t.type)&&Ql(t.props.children)?nl(t,{children:t.props.children.split("").join(r)}):Zl(t)?Ql(t)?e.createElement("span",null,t.split("").join(r)):e.createElement("span",null,t):el(t)?e.createElement("span",null,t):t}(t,n)))}const tc=e.forwardRef(((t,n)=>{const{className:r,style:o,children:i,prefixCls:a}=t,l=p(`${a}-icon`,r);return e.createElement("span",{ref:n,className:l,style:o},i)})),nc=e.forwardRef(((t,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=t,l=p(`${r}-loading-icon`,o);return e.createElement(tc,{prefixCls:r,className:l,style:i,ref:n},e.createElement(ll,{className:a}))})),rc=()=>({width:0,opacity:0,transform:"scale(0)"}),oc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ic=t=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=t,l=!!r;return o?e.createElement(nc,{prefixCls:n,className:i,style:a}):e.createElement(ma,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:rc,onAppearActive:oc,onEnterStart:rc,onEnterActive:oc,onLeaveStart:oc,onLeaveActive:rc},((t,r)=>{let{className:o,style:l}=t;return e.createElement(nc,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))},ac=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),lc=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},ac(`${t}-primary`,o),ac(`${t}-danger`,i)]}},cc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return ti(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},sc=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Eo(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Eo(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Eo(s);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,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},uc=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${xt(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:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Si(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},dc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),fc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),pc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),mc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),vc=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},dc(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),gc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},mc(e))}),hc=e=>Object.assign({},gc(e)),bc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),yc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),dc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),vc(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},dc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),gc(e))}),wc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),dc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),vc(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},dc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),vc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gc(e))}),xc=e=>Object.assign(Object.assign({},yc(e)),{borderStyle:"dashed"}),Ec=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},dc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),bc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},dc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),bc(e))}),Cc=e=>Object.assign(Object.assign(Object.assign({},dc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),bc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},bc(e)),dc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Sc=e=>{const{componentCls:t}=e;return{[`${t}-default`]:yc(e),[`${t}-primary`]:wc(e),[`${t}-dashed`]:xc(e),[`${t}-link`]:Ec(e),[`${t}-text`]:Cc(e),[`${t}-ghost`]:vc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},$c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${xt(s)} ${xt(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${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}`]:fc(e)},{[`${n}${n}-round${t}`]:pc(e)}]},kc=e=>{const t=ti(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return $c(t,e.componentCls)},Oc=e=>{const t=ti(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 $c(t,`${e.componentCls}-sm`)},Nc=e=>{const t=ti(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return $c(t,`${e.componentCls}-lg`)},Pc=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Ic=ki("Button",(e=>{const t=cc(e);return[uc(t),kc(t),Oc(t),Nc(t),Pc(t),Sc(t),lc(t)]}),sc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Rc(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Mc(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 jc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Rc(e,r,t)),Mc(n,r,t))}}function _c(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 Ac(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_c(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Tc=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% + ${xt(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% + ${xt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var Fc=Ni(["Button","compact"],(e=>{const t=cc(e);return[jc(t),Ac(t),Tc(t)]}),sc),Bc=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 zc=e.forwardRef(((t,n)=>{var r,o,i;const{loading:a=!1,prefixCls:l,type:c,danger:s=!1,shape:u="default",size:d,styles:f,disabled:m,className:v,rootClassName:g,children:h,icon:b,iconPosition:y="start",ghost:w=!1,block:x=!1,htmlType:E="button",classNames:C,style:S={},autoInsertSpace:$}=t,k=Bc(t,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=c||"default",{getPrefixCls:N,direction:P,button:I}=e.useContext(_o),R=null===(r=null!=$?$:null==I?void 0:I.autoInsertSpace)||void 0===r||r,M=N("btn",l),[j,_,A]=Ic(M),T=e.useContext(Fo),F=null!=m?m:T,z=e.useContext(Ul),D=e.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a)),[a]),[L,H]=e.useState(D.loading),[V,W]=e.useState(!1),q=B(n,e.createRef()),X=1===e.Children.count(h)&&!b&&!Jl(O);e.useEffect((()=>{let e=null;return D.delay>0?e=setTimeout((()=>{e=null,H(!0)}),D.delay):H(D.loading),function(){e&&(clearTimeout(e),e=null)}}),[D]),e.useEffect((()=>{if(!q||!q.current||!R)return;const e=q.current.textContent;X&&Ql(e)?V||W(!0):V&&W(!1)}),[q]);const G=e=>{const{onClick:n}=t;L||F?e.preventDefault():null==n||n(e)};if("production"!==process.env.NODE_ENV){const e=dr("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof b&&b.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(w&&Jl(O)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:K,compactItemClassnames:U}=Xl(M,P),Y={large:"lg",small:"sm",middle:void 0},Q=Wl((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:K)&&void 0!==t?t:z)&&void 0!==n?n:e})),Z=Q&&Y[Q]||"",J=L?"loading":b,ee=Oe(k,["navigate"]),te=p(M,_,A,{[`${M}-${u}`]:"default"!==u&&u,[`${M}-${O}`]:O,[`${M}-${Z}`]:Z,[`${M}-icon-only`]:!h&&0!==h&&!!J,[`${M}-background-ghost`]:w&&!Jl(O),[`${M}-loading`]:L,[`${M}-two-chinese-chars`]:V&&R&&!L,[`${M}-block`]:x,[`${M}-dangerous`]:s,[`${M}-rtl`]:"rtl"===P,[`${M}-icon-end`]:"end"===y},U,v,g,null==I?void 0:I.className),ne=Object.assign(Object.assign({},null==I?void 0:I.style),S),re=p(null==C?void 0:C.icon,null===(o=null==I?void 0:I.classNames)||void 0===o?void 0:o.icon),oe=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),(null===(i=null==I?void 0:I.styles)||void 0===i?void 0:i.icon)||{}),ie=b&&!L?e.createElement(tc,{prefixCls:M,className:re,style:oe},b):e.createElement(ic,{existIcon:!!b,prefixCls:M,loading:L}),ae=h||0===h?ec(h,X&&R):null;if(void 0!==ee.href)return j(e.createElement("a",Object.assign({},ee,{className:p(te,{[`${M}-disabled`]:F}),href:F?void 0:ee.href,style:ne,onClick:G,ref:q,tabIndex:F?-1:0}),ie,ae));let le=e.createElement("button",Object.assign({},k,{type:E,className:te,style:ne,onClick:G,disabled:F,ref:q}),ie,ae,!!U&&e.createElement(Fc,{key:"compact",prefixCls:M}));return Jl(O)||(le=e.createElement(Vl,{component:"Button",disabled:L},le)),j(le)})),Dc=zc;Dc.Group=e=>{const{getPrefixCls:t,direction:n}=r.useContext(_o),{prefixCls:o,size:i,className:a}=e,l=Kl(e,["prefixCls","size","className"]),c=t("btn-group",o),[,,s]=yi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=dr("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=p(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===n},a,s);return r.createElement(Ul.Provider,{value:i},r.createElement("div",Object.assign({},l,{className:d})))},Dc.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(Dc.displayName="Button");var Lc=r.createContext(null),Hc=[];function Vc(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";Je("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ze(t),{width:f,height:p}}(e):{width:0,height:0}}var Wc="rc-util-locker-".concat(Date.now()),qc=0;function Xc(e){var t=!!e,n=De(r.useState((function(){return qc+=1,"".concat(Wc,"_").concat(qc)})),1)[0];Ot((function(){if(t){var e=Vc(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Je("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Ze(n);return function(){Ze(n)}}),[t,n])}var Gc=function(e){return!1!==e&&(He()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Kc=r.forwardRef((function(e,n){var o=e.open,i=e.autoLock,a=e.getContainer,l=e.debug,c=e.autoDestroy,s=void 0===c||c,u=e.children,d=De(r.useState(o),2),f=d[0],p=d[1],m=f||o;"production"!==process.env.NODE_ENV&&N(He()||!o,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),r.useEffect((function(){(s||o)&&p(o)}),[o,s]);var v=De(r.useState((function(){return Gc(a)})),2),g=v[0],h=v[1];r.useEffect((function(){var e=Gc(a);h(null!=e?e:null)}));var b=function(e,t){var n=De(r.useState((function(){if(!He())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e})),1)[0],o=r.useRef(!1),i=r.useContext(Lc),a=De(r.useState(Hc),2),l=a[0],c=a[1],s=i||(o.current?void 0:function(e){c((function(t){return[e].concat(Re(t))}))});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return Ot((function(){return e?i?i(u):u():d(),d}),[e]),Ot((function(){l.length&&(l.forEach((function(e){return e()})),c(Hc))}),[l]),[n,s]}(m&&!g,l),y=De(b,2),w=y[0],x=y[1],E=null!=g?g:w;Xc(i&&o&&He()&&(E===w||E===document.body));var C=null;u&&D(u)&&n&&(C=u.ref);var S=z(C,n);if(!m||!He()||void 0===g)return null;var $=!1===E||!1,k=u;return n&&(k=r.cloneElement(u,{ref:S})),r.createElement(Lc.Provider,{value:x},$?k:t.createPortal(k,E))}));"production"!==process.env.NODE_ENV&&(Kc.displayName="Portal");var Uc=0,Yc=j({},r).useId,Qc=Yc?function(e){var t=Yc();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=De(r.useState("ssr-id"),2),n=t[0],o=t[1];return r.useEffect((function(){var e=Uc;Uc+=1,o("rc_unique_".concat(e))}),[]),e||("test"===process.env.NODE_ENV?"test-id":n)},Zc="RC_FORM_INTERNAL_HOOKS",Jc=function(){N(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},es=r.createContext({getFieldValue:Jc,getFieldsValue:Jc,getFieldError:Jc,getFieldWarning:Jc,getFieldsError:Jc,isFieldsTouched:Jc,isFieldTouched:Jc,isFieldValidating:Jc,isFieldsValidating:Jc,resetFields:Jc,setFields:Jc,setFieldValue:Jc,setFieldsValue:Jc,validateFields:Jc,submit:Jc,getInternalHooks:function(){return Jc(),{dispatch:Jc,initEntityValue:Jc,registerField:Jc,useSubscribe:Jc,setInitialValues:Jc,destroyForm:Jc,setCallbacks:Jc,registerWatch:Jc,getFields:Jc,setValidateMessages:Jc,setPreserve:Jc,getInitialValue:Jc}}}),ts=r.createContext(null);function ns(e){return null==e?[]:Array.isArray(e)?e:[e]}function rs(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var os=rs();function is(e){var t="function"==typeof Map?new Map:void 0;return is=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(ye())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ge(o,n.prototype),o}(e,arguments,be(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ge(n,e)},is(e)}var as=/%[sdj%]/g,ls=function(){};function cs(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function ss(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,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(as,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function us(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function ds(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(ls=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var fs=function(){he(t,is(Error));var e=xe(t);function t(n,r){var o;return pe(this,t),R(we(o=e.call(this,"Async Validation Error")),"errors",void 0),R(we(o),"fields",void 0),o.errors=n,o.fields=r,o}return ve(t)}();function ps(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Re(e[n]||[]))})),t}(e);ds(a,n,(function(e){return r(e),e.length?i(new fs(e,cs(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new fs(u,cs(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?ds(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Re(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function ms(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function vs(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===P(r)&&"object"===P(e[n])?e[n]=j(j({},e[n]),r):e[n]=r}return e}var gs,hs="enum",bs=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!us(t,i||e.type)||r.push(ss(o.messages.required,e.fullField))},ys=/^(([^<>()\[\]\\.,;:\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,}))$/,ws=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,xs={integer:function(e){return xs.number(e)&&parseInt(e,10)===e},float:function(e){return xs.number(e)&&!xs.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===P(e)&&!xs.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(ys)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(gs)return gs;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(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=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return gs=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(ws)}},Es={required:bs,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(ss(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)bs(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?xs[i](t)||r.push(ss(o.messages.types[i],e.fullField,e.type)):i&&P(t)!==e.type&&r.push(ss(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(ss(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(ss(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(ss(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(ss(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[hs]=Array.isArray(e[hs])?e[hs]:[],-1===e[hs].indexOf(t)&&r.push(ss(o.messages[hs],e.fullField,e[hs].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(ss(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(ss(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Cs=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,i)&&!e.required)return n();Es.required(e,t,r,a,o,i),us(t,i)||Es.type(e,t,r,a,o)}n(a)},Ss={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,"string")&&!e.required)return n();Es.required(e,t,r,i,o,"string"),us(t,"string")||(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o),Es.pattern(e,t,r,i,o),!0===e.whitespace&&Es.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),us(t)||Es.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Es.required(e,t,r,i,o,"array"),null!=t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,"string")&&!e.required)return n();Es.required(e,t,r,i,o),us(t,"string")||Es.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,"date")&&!e.required)return n();var a;if(Es.required(e,t,r,i,o),!us(t,"date"))a=t instanceof Date?t:new Date(t),Es.type(e,a,r,i,o),a&&Es.range(e,a.getTime(),r,i,o)}n(i)},url:Cs,hex:Cs,email:Cs,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":P(t);Es.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o)}n(i)}},$s=function(){function e(t){pe(this,e),R(this,"rules",null),R(this,"_messages",os),this.define(t)}return ve(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==P(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=vs(rs(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===os&&(a=rs()),vs(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=j({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":P(i)))),(a="function"==typeof a?{validator:a}:j({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return ps(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==P(a.fields)&&"object"!==P(a.defaultField));function s(e,t){return j(j({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Re(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(ms(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(ms(a,r)):o.error&&(d=[o.error(a,ss(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=j(j({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Re(d)),e&&e.length&&t.push.apply(t,Re(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,Re(t)):o.push(t);o.length?(a=cs(o),i(o,a)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Ss.hasOwnProperty(e.type))throw new Error(ss("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Ss.required:Ss[this.getType(e)]||void 0}}]),e}();R($s,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ss[e]=t})),R($s,"warning",ls),R($s,"messages",os),R($s,"validators",Ss);var ks="'${name}' is not a valid ${type}",Os={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:ks,method:ks,array:ks,object:ks,number:ks,date:ks,boolean:ks,integer:ks,float:ks,regexp:ks,email:ks,url:ks,hex:ks},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}"}},Ns=$s;function Ps(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var Is="CODE_LOGIC_ERROR";function Rs(e,t,n,r,o){return Ms.apply(this,arguments)}function Ms(){return Ms=vl(pl().mark((function e(t,n,o,i,a){var l,c,s,u,d,f,p,m,v;return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=j({},o)).ruleIndex,Ns.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Is)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new Ns(R({},t,[l])),d=ar(Os,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(R({},t,n),j({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,t){var n=e.message,o=n===Is?d.default:n;return r.isValidElement(o)?r.cloneElement(o,{key:"error_".concat(t)}):o})));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Rs("".concat(t,".").concat(n),e,s,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Re(e),Re(t))}),[]));case 23:return m=j(j({},o),{},{name:t,enum:(o.enum||[]).join(", ")},a),v=f.map((function(e){return"string"==typeof e?Ps(e,m):e})),e.abrupt("return",v);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Ms.apply(this,arguments)}function js(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=j(j({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){N(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));N(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=vl(pl().mark((function e(n,o){var a,s,u;return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Rs(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map((function(e){return Rs(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return As.apply(this,arguments)}(s):function(e){return _s.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function _s(){return(_s=vl(pl().mark((function e(t){return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Re(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function As(){return(As=vl(pl().mark((function e(t){var n;return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ts(e){return ns(e)}function Fs(e,t){var n={};return t.forEach((function(t){var r=tr(e,t);n=rr(n,t,r)})),n}function Bs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return zs(t,e,n)}))}function zs(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function Ds(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===P(t.target)&&e in t.target?t.target[e]:t}function Ls(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Re(e.slice(0,n)),[o],Re(e.slice(n,t)),Re(e.slice(t+1,r))):i<0?[].concat(Re(e.slice(0,t)),Re(e.slice(t+1,n+1)),[o],Re(e.slice(n+1,r))):e}var Hs=["name"],Vs=[];function Ws(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var qs=function(){he(t,r.Component);var e=xe(t);function t(n){var o;(pe(this,t),R(we(o=e.call(this,n)),"state",{resetCount:0}),R(we(o),"cancelRegisterFunc",null),R(we(o),"mounted",!1),R(we(o),"touched",!1),R(we(o),"dirty",!1),R(we(o),"validatePromise",void 0),R(we(o),"prevValidating",void 0),R(we(o),"errors",Vs),R(we(o),"warnings",Vs),R(we(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Ts(r)),o.cancelRegisterFunc=null})),R(we(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Re(void 0===n?[]:n),Re(t)):[]})),R(we(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),R(we(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),R(we(o),"metaCache",null),R(we(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=j(j({},o.getMeta()),{},{destroy:e});tt(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),R(we(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(s),p=t&&Bs(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||tt(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Vs,o.warnings=Vs,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Vs,o.warnings=Vs,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&Ws(i,e,s,d,f,n))return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||Vs),"warnings"in m&&(o.warnings=m.warnings||Vs),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&Bs(t,u,!0))return void o.reRender();if(i&&!u.length&&Ws(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Ts).some((function(e){return Bs(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&Ws(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),R(we(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(vl(pl().mark((function r(){var a,l,s,u,d,f,p;return pl().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||ns(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=js(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vs;if(o.validatePromise===c){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?Vs:o;t?r.push.apply(r,Re(i)):n.push.apply(n,Re(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=c,o.dirty=!0,o.errors=Vs,o.warnings=Vs,o.triggerMetaEvent(),o.reRender()),c})),R(we(o),"isFieldValidating",(function(){return!!o.validatePromise})),R(we(o),"isFieldTouched",(function(){return o.touched})),R(we(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Zc).getInitialValue)(o.getNamePath())})),R(we(o),"getErrors",(function(){return o.errors})),R(we(o),"getWarnings",(function(){return o.warnings})),R(we(o),"isListField",(function(){return o.props.isListField})),R(we(o),"isList",(function(){return o.props.isList})),R(we(o),"isPreserve",(function(){return o.props.preserve})),R(we(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),R(we(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return j(j({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=x(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),R(we(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return tr(e||t(!0),n)})),R(we(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,v=p(Zc).dispatch,g=o.getValue(),h=s||function(e){return R({},c,e)},b=e[r],y=void 0!==n?h(g):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){N("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var w=j(j({},e),y);return w[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):Ds.apply(void 0,[c].concat(n)),l&&(e=l(e,g,m(!0))),v({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},ns(d||[]).forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&v({type:"validateField",namePath:f,triggerName:e})}})),w})),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(Zc).initEntityValue)(we(o));return o}return ve(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Zc).registerField;this.cancelRegisterFunc=r(this)}!0===t&&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 e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),i=o.child;return o.isFunction?e=i:r.isValidElement(i)?e=r.cloneElement(i,this.getControlled(i.props)):(N(!i,"`children` of Field is not validate ReactElement."),e=i),r.createElement(r.Fragment,{key:t},e)}}]),t}();function Xs(e){var t=e.name,n=et(e,Hs),o=r.useContext(es),i=r.useContext(ts),a=void 0!==t?Ts(t):void 0,l="keep";return n.isListField||(l="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===n.preserve&&n.isListField&&a.length<=1&&N(!1,"`preserve` should not apply on Form.List fields."),r.createElement(qs,m({key:l,name:a,isListField:!!i},n,{fieldContext:o}))}R(qs,"contextType",es),R(qs,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Gs="__@field_split__";function Ks(e){return e.map((function(e){return"".concat(P(e),":").concat(e)})).join(Gs)}var Us=function(){function e(){pe(this,e),R(this,"kvs",new Map)}return ve(e,[{key:"set",value:function(e,t){this.kvs.set(Ks(e),t)}},{key:"get",value:function(e){return this.kvs.get(Ks(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Ks(e))}},{key:"map",value:function(e){return Re(this.kvs.entries()).map((function(t){var n=De(t,2),r=n[0],o=n[1],i=r.split(Gs);return e({key:i.map((function(e){var t=De(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),Ys=["name"],Qs=ve((function e(t){var n=this;pe(this,e),R(this,"formHooked",!1),R(this,"forceRootUpdate",void 0),R(this,"subscribable",!0),R(this,"store",{}),R(this,"fieldEntities",[]),R(this,"initialValues",{}),R(this,"callbacks",{}),R(this,"validateMessages",null),R(this,"preserve",null),R(this,"lastValidatePromise",null),R(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}})),R(this,"getInternalHooks",(function(e){return e===Zc?(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}):(N(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),R(this,"useSubscribe",(function(e){n.subscribable=e})),R(this,"prevWithoutPreserves",null),R(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=ar(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=rr(o,n,tr(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),R(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new Us;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),R(this,"getInitialValue",(function(e){var t=tr(n.initialValues,e);return e.length?ar(t):t})),R(this,"setCallbacks",(function(e){n.callbacks=e})),R(this,"setValidateMessages",(function(e){n.validateMessages=e})),R(this,"setPreserve",(function(e){n.preserve=e})),R(this,"watchList",[]),R(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),R(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),R(this,"timeoutId",null),R(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||N(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),R(this,"updateStore",(function(e){n.store=e})),R(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),R(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Us;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),R(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Ts(e);return t.get(n)||{INVALIDATE_NAME_PATH:Ts(e)}}))})),R(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===P(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)})),Fs(n.store,l.map(Ts))})),R(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Ts(e);return tr(n.store,t)})),R(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Ts(e[n]),errors:[],warnings:[]}}))})),R(this,"getFieldError",(function(e){n.warningUnhooked();var t=Ts(e);return n.getFieldsError([t])[0].errors})),R(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Ts(e);return n.getFieldsError([t])[0].warnings})),R(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Ts),l=!1):(o=null,l=i):(o=i.map(Ts),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every((function(e){return s(e)||e.isList()})):c.some(s);var u=new Us;o.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Re(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),R(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),R(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Ts);return t.some((function(e){var t=e.getNamePath();return Bs(r,t)&&e.isFieldValidating()}))})),R(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),R(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Us,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Re(Re(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))N(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)N(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(rr(n.store,o,Re(i)[0].value))}}}}))})),R(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(ar(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Ts);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(rr(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),R(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=et(e,Ys),a=Ts(o);r.push(a),"value"in i&&n.updateStore(rr(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),R(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=j(j({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),R(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===tr(n.store,r)&&n.updateStore(rr(n.store,r,t))}})),R(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),R(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!zs(e.getNamePath(),t)}))){var l=n.store;n.updateStore(rr(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),R(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),R(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=j(j({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),R(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Re(r))}),r})),R(this,"updateValue",(function(e,t){var r=Ts(e),o=n.store;n.updateStore(rr(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Fs(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Re(i)))})),R(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=ar(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),R(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),R(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Us;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Ts(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),R(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Us;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return Bs(e,n)}));a.length&&r(a,o)}})),R(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Ts):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||Bs(a,t,d)){var r=e.validateRules(j({validateMessages:j(j({},Os),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Re(n)):r.push.apply(r,Re(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var v=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(v),m})),R(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function Zs(e){var t=r.useRef(),n=De(r.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new Qs((function(){n({})}));t.current=o.getForm()}return[t.current]}var Js=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],tu=function(e,t){var n=e.name,o=e.initialValues,i=e.fields,a=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,v=e.onValuesChange,g=e.onFieldsChange,h=e.onFinish,b=e.onFinishFailed,y=e.clearOnDestroy,w=et(e,eu),x=r.useRef(null),E=r.useContext(Js),C=De(Zs(a),1)[0],S=C.getInternalHooks(Zc),$=S.useSubscribe,k=S.setInitialValues,O=S.setCallbacks,N=S.setValidateMessages,I=S.setPreserve,R=S.destroyForm;r.useImperativeHandle(t,(function(){return j(j({},C),{},{nativeElement:x.current})})),r.useEffect((function(){return E.registerForm(n,C),function(){E.unregisterForm(n)}}),[E,C,n]),N(j(j({},E.validateMessages),d)),O({onValuesChange:v,onFieldsChange:function(e){if(E.triggerFormChange(n,e),g){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];g.apply(void 0,[e].concat(r))}},onFinish:function(e){E.triggerFormFinish(n,e),h&&h(e)},onFinishFailed:b}),I(l);var M,_=r.useRef(null);k(o,!_.current),_.current||(_.current=!0),r.useEffect((function(){return function(){return R(y)}}),[]);var A="function"==typeof c;A?M=c(C.getFieldsValue(!0),C):M=c;$(!A);var T=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==P(e)||"object"!==P(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Re(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(T.current||[],i||[])||C.setFields(i||[]),T.current=i}),[i,C]);var F=r.useMemo((function(){return j(j({},C),{},{validateTrigger:p})}),[C,p]),B=r.createElement(ts.Provider,{value:null},r.createElement(es.Provider,{value:F},M));return!1===u?B:r.createElement(u,m({},w,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),C.submit()},onReset:function(e){var t;e.preventDefault(),C.resetFields(),null===(t=w.onReset)||void 0===t||t.call(w,e)}}),B)};function nu(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ru="production"!==process.env.NODE_ENV?function(t){var n=t.join("__RC_FIELD_FORM_SPLIT__");N(e.useRef(n).current===n,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var ou=r.forwardRef(tu);ou.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,i=e.children,a=r.useContext(Js),l=r.useRef({});return r.createElement(Js.Provider,{value:j(j({},a),{},{validateMessages:j(j({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=j(j({},l.current),{},R({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=j({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},ou.Field=Xs,ou.List=function(e){var t=e.name,n=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=r.useContext(es),s=r.useContext(ts),u=r.useRef({keys:[],id:0}).current,d=r.useMemo((function(){var e=Ts(c.prefixName)||[];return[].concat(Re(e),Re(Ts(t)))}),[c.prefixName,t]),f=r.useMemo((function(){return j(j({},c),{},{prefixName:d})}),[c,d]),p=r.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(N(!1,"Form.List only accepts function as children."),null):r.createElement(ts.Provider,{value:p},r.createElement(es.Provider,{value:f},r.createElement(Xs,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=l?l:!!s},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(Re(u.keys.slice(0,t)),[u.id],Re(u.keys.slice(t))),i([].concat(Re(n.slice(0,t)),[e],Re(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&N(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Re(u.keys),[u.id]),i([].concat(Re(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Ls(u.keys,e,t),i(Ls(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[],"production"!==process.env.NODE_ENV&&N(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),o(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))},ou.useForm=Zs,ou.useWatch=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=De(e.useState(),2),u=s[0],d=s[1],f=e.useMemo((function(){return nu(u)}),[u]),p=e.useRef(f);p.current=f;var m=e.useContext(es),v=c||m,g=v&&v._init;"production"!==process.env.NODE_ENV&&N(2===n.length&&!c||g,"useWatch requires a form instance since it can not auto detect from context.");var h=Ts(o),b=e.useRef(h);return b.current=h,ru(h),e.useEffect((function(){if(g){var e=v.getFieldsValue,t=(0,v.getInternalHooks)(Zc).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):tr(n,b.current)},r=t((function(e,t){var r=n(e,t),o=nu(r);p.current!==o&&(p.current=o,d(r))})),i=n(e(),e(!0));return u!==i&&d(i),r}}),[g]),u};const iu=r.createContext({});"production"!==process.env.NODE_ENV&&(iu.displayName="FormItemInputContext");const au=t=>{let{children:n,status:o,override:i}=t;const a=e.useContext(iu),l=e.useMemo((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,o&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[o,i,a]);return r.createElement(iu.Provider,{value:l},n)},lu=e.createContext(void 0),cu=t=>{const{space:n,form:r,children:o}=t;if(null==o)return null;let i=o;return r&&(i=e.createElement(au,{override:!0,status:!0},i)),n&&(i=e.createElement(Gl,null,i)),i},su=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),uu=e=>({animationDuration:e,animationFillMode:"both"}),du=e=>({animationDuration:e,animationFillMode:"both"}),fu=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},uu(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},du(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},pu={"slide-up":{inKeyframes:new Zn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Zn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new Zn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new Zn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new Zn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Zn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new Zn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new Zn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},mu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=pu[t];return[fu(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},vu=new Zn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),gu=new Zn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),hu=new Zn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bu=new Zn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),yu=new Zn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wu=new Zn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),xu={zoom:{inKeyframes:vu,outKeyframes:gu},"zoom-big":{inKeyframes:hu,outKeyframes:bu},"zoom-big-fast":{inKeyframes:hu,outKeyframes:bu},"zoom-left":{inKeyframes:new Zn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Zn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Zn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Zn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:yu,outKeyframes:wu},"zoom-down":{inKeyframes:new Zn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Zn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Eu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=xu[t];return[fu(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Cu=function(){if("undefined"==typeof navigator||"undefined"==typeof window)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(null==e?void 0:e.substr(0,4))},Su=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$u=void 0;function ku(e,t){var n=e.prefixCls,o=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,g=e.display,h=e.order,b=e.component,y=void 0===b?"div":b,w=et(e,Su),x=l&&!g;function E(e){s(u,e)}r.useEffect((function(){return function(){E(null)}}),[]);var C,S=a&&i!==$u?a(i):v;o||(C={opacity:x?0:1,height:x?0:$u,overflowY:x?"hidden":$u,order:l?h:$u,pointerEvents:x?"none":$u,position:x?"absolute":$u});var $={};x&&($["aria-hidden"]=!0);var k=r.createElement(y,m({className:p(!o&&n,d),style:j(j({},C),f)},$,w,{ref:t}),S);return l&&(k=r.createElement(ke,{onResize:function(e){E(e.offsetWidth)},disabled:c},k)),k}var Ou=r.forwardRef(ku);function Nu(){var e=r.useRef(null);return function(n){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Fe(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){t.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(n)}}function Pu(e,t){var n=De(r.useState(t),2),o=n[0],i=n[1];return[o,Ko((function(t){e((function(){i(t)}))}))]}Ou.displayName="Item";var Iu=e.createContext(null),Ru=["component"],Mu=["className"],ju=["className"],_u=function(e,t){var n=r.useContext(Iu);if(!n){var o=e.component,i=void 0===o?"div":o,a=et(e,Ru);return r.createElement(i,m({},a,{ref:t}))}var l=n.className,c=et(n,Mu),s=e.className,u=et(e,ju);return r.createElement(Iu.Provider,{value:null},r.createElement(Ou,m({ref:t,className:p(l,s)},c,u)))},Au=r.forwardRef(_u);Au.displayName="RawItem";var Tu=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fu="responsive",Bu="invalidate";function zu(e){return"+ ".concat(e.length," ...")}function Du(t,n){var o=t.prefixCls,i=void 0===o?"rc-overflow":o,a=t.data,l=void 0===a?[]:a,c=t.renderItem,s=t.renderRawItem,u=t.itemKey,d=t.itemWidth,f=void 0===d?10:d,v=t.ssr,g=t.style,h=t.className,b=t.maxCount,y=t.renderRest,w=t.renderRawRest,x=t.suffix,E=t.component,C=void 0===E?"div":E,S=t.itemComponent,$=t.onVisibleChange,k=et(t,Tu),O="full"===v,N=Nu(),P=De(Pu(N,null),2),I=P[0],R=P[1],M=I||0,_=De(Pu(N,new Map),2),A=_[0],T=_[1],F=De(Pu(N,0),2),B=F[0],z=F[1],D=De(Pu(N,0),2),L=D[0],H=D[1],V=De(Pu(N,0),2),W=V[0],q=V[1],X=De(e.useState(null),2),G=X[0],K=X[1],U=De(e.useState(null),2),Y=U[0],Q=U[1],Z=r.useMemo((function(){return null===Y&&O?Number.MAX_SAFE_INTEGER:Y||0}),[Y,I]),J=De(e.useState(!1),2),ee=J[0],te=J[1],ne="".concat(i,"-item"),re=Math.max(B,L),oe=b===Fu,ie=l.length&&oe,ae=b===Bu,le=ie||"number"==typeof b&&l.length>b,ce=e.useMemo((function(){var e=l;return ie?e=null===I&&O?l:l.slice(0,Math.min(l.length,M/f)):"number"==typeof b&&(e=l.slice(0,b)),e}),[l,f,I,b,ie]),se=e.useMemo((function(){return ie?l.slice(Z+1):l.slice(ce.length)}),[l,ce,ie,Z]),ue=e.useCallback((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),de=e.useCallback(c||function(e){return e},[c]);function fe(e,t,n){(Y!==e||void 0!==t&&t!==G)&&(Q(e),n||(te(e<l.length-1),null==$||$(e)),void 0!==t&&K(t))}function pe(e,t){T((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function me(e){return A.get(ue(ce[e],e))}Ot((function(){if(M&&"number"==typeof re&&ce){var e=W,t=ce.length,n=t-1;if(!t)return void fe(0,null);for(var r=0;r<t;r+=1){var o=me(r);if(O&&(o=o||0),void 0===o){fe(r-1,void 0,!0);break}if(e+=o,0===n&&e<=M||r===n-1&&e+me(n)<=M){fe(n,null);break}if(e+re>M){fe(r-1,e-o-W+L);break}}x&&me(0)+W>M&&K(null)}}),[M,A,L,W,ue,ce]);var ve=ee&&!!se.length,ge={};null!==G&&ie&&(ge={position:"absolute",left:G,top:0});var he,be={prefixCls:ne,responsive:ie,component:S,invalidate:ae},ye=s?function(e,t){var n=ue(e,t);return r.createElement(Iu.Provider,{key:n,value:j(j({},be),{},{order:t,item:e,itemKey:n,registerSize:pe,display:t<=Z})},s(e,t))}:function(e,t){var n=ue(e,t);return r.createElement(Ou,m({},be,{order:t,key:n,item:e,renderItem:de,itemKey:n,registerSize:pe,display:t<=Z}))},we={order:ve?Z:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:function(e,t){H(t),z(L)},display:ve};if(w)w&&(he=r.createElement(Iu.Provider,{value:j(j({},be),we)},w(se)));else{var xe=y||zu;he=r.createElement(Ou,m({},be,we),"function"==typeof xe?xe(se):xe)}var Ee=r.createElement(C,m({className:p(!ae&&i,h),style:g,ref:n},k),ce.map(ye),le?he:null,x&&r.createElement(Ou,m({},be,{responsive:oe,responsiveDisabled:!ie,order:Z,className:"".concat(ne,"-suffix"),registerSize:function(e,t){q(t)},display:!0,style:ge}),x));return oe&&(Ee=r.createElement(ke,{onResize:function(e,t){R(t.clientWidth)},disabled:!ie},Ee)),Ee}var Lu=r.forwardRef(Du);function Hu(e){var t=e.prefixCls,n=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,m=r.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],h=n.points[1],b=g[0],y=g[1],w=h[0],x=h[1];b!==w&&["t","b"].includes(b)?"t"===b?v.top=0:v.bottom=0:v.top=f,y!==x&&["l","r"].includes(y)?"l"===y?v.left=0:v.right=0:v.left=u}return r.createElement("div",{ref:m,className:p("".concat(t,"-arrow"),l),style:v},c)}function Vu(e){var t=e.prefixCls,n=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?r.createElement(ma,m({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:p("".concat(t,"-mask"),n)})})):null}Lu.displayName="Overflow",Lu.Item=Au,Lu.RESPONSIVE=Fu,Lu.INVALIDATE=Bu;var Wu=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(Wu.displayName="PopupContent");var qu=r.forwardRef((function(e,t){var n=e.popup,o=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,g=e.arrow,h=e.arrowPos,b=e.align,y=e.motion,w=e.maskMotion,x=e.forceRender,E=e.getPopupContainer,C=e.autoDestroy,S=e.portal,$=e.zIndex,k=e.onMouseEnter,O=e.onMouseLeave,N=e.onPointerEnter,P=e.ready,I=e.offsetX,R=e.offsetY,M=e.offsetR,_=e.offsetB,A=e.onAlign,T=e.onPrepare,F=e.stretch,z=e.targetWidth,D=e.targetHeight,L="function"==typeof n?n():n,H=s||u,V=(null==E?void 0:E.length)>0,W=De(r.useState(!E||!V),2),q=W[0],X=W[1];if(Ot((function(){!q&&V&&l&&X(!0)}),[q,V,l]),!q)return null;var G="auto",K={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(P||!s){var U,Y=b.points,Q=b.dynamicInset||(null===(U=b._experimental)||void 0===U?void 0:U.dynamicInset),Z=Q&&"r"===Y[0][1],J=Q&&"b"===Y[0][0];Z?(K.right=M,K.left=G):(K.left=I,K.right=G),J?(K.bottom=_,K.top=G):(K.top=R,K.bottom=G)}var ee={};return F&&(F.includes("height")&&D?ee.height=D:F.includes("minHeight")&&D&&(ee.minHeight=D),F.includes("width")&&z?ee.width=z:F.includes("minWidth")&&z&&(ee.minWidth=z)),s||(ee.pointerEvents="none"),r.createElement(S,{open:x||H,getContainer:E&&function(){return E(l)},autoDestroy:C},r.createElement(Vu,{prefixCls:i,open:s,zIndex:$,mask:v,motion:w}),r.createElement(ke,{onResize:A,disabled:!s},(function(e){return r.createElement(ma,m({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:T,onEnterPrepare:T,visible:s,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),c(e)}}),(function(n,l){var c=n.className,u=n.style,m=p(i,c,o);return r.createElement("div",{ref:B(e,t,l),className:m,style:j(j(j(j({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},K),ee),u),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:k,onMouseLeave:O,onPointerEnter:N,onClick:f},g&&r.createElement(Hu,{prefixCls:i,arrow:g,arrowPos:h,align:b}),r.createElement(Wu,{cache:!s&&!d},L))}))})))}));"production"!==process.env.NODE_ENV&&(qu.displayName="Popup");var Xu=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=D(n),a=r.useCallback((function(e){F(t,o?o(e):e)}),[o]),l=z(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));"production"!==process.env.NODE_ENV&&(Xu.displayName="TriggerWrapper");var Gu=r.createContext(null);function Ku(e){return e?Array.isArray(e)?e:[e]:[]}function Uu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Yu(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Qu(e){return e.ownerDocument.defaultView}function Zu(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Qu(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Ju(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function ed(e){return Ju(parseFloat(e),0)}function td(e,t){var n=j({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Qu(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=ed(i),v=ed(a),g=ed(l),h=ed(c),b=Ju(Math.round(s.width/f*1e3)/1e3),y=Ju(Math.round(s.height/u*1e3)/1e3),w=(f-p-g-h)*b,x=(u-d-m-v)*y,E=m*y,C=v*y,S=g*b,$=h*b,k=0,O=0;if("clip"===r){var N=ed(o);k=N*b,O=N*y}var P=s.x+S-k,I=s.y+E-O,R=P+s.width+2*k-S-$-w,M=I+s.height+2*O-E-C-x;n.left=Math.max(n.left,P),n.top=Math.max(n.top,I),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,M)}})),n}function nd(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function rd(e,t){var n=De(t||[],2),r=n[0],o=n[1];return[nd(e.width,r),nd(e.height,o)]}function od(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function id(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function ad(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var ld=["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"];var cd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kc,t=r.forwardRef((function(t,n){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=t.children,l=t.action,c=void 0===l?"hover":l,s=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,m=t.onPopupVisibleChange,v=t.afterPopupVisibleChange,g=t.mouseEnterDelay,h=t.mouseLeaveDelay,b=void 0===h?.1:h,y=t.focusDelay,w=t.blurDelay,x=t.mask,E=t.maskClosable,C=void 0===E||E,$=t.getPopupContainer,k=t.forceRender,O=t.autoDestroy,N=t.destroyPopupOnHide,P=t.popup,I=t.popupClassName,R=t.popupStyle,M=t.popupPlacement,A=t.builtinPlacements,T=void 0===A?{}:A,F=t.popupAlign,B=t.zIndex,z=t.stretch,D=t.getPopupClassNameFromAlign,L=t.fresh,H=t.alignPoint,V=t.onPopupClick,W=t.onPopupAlign,q=t.arrow,X=t.popupMotion,G=t.maskMotion,K=t.popupTransitionName,U=t.popupAnimation,Y=t.maskTransitionName,Q=t.maskAnimation,Z=t.className,J=t.getTriggerDOMNode,ee=et(t,ld),te=O||N||!1,ne=De(r.useState(!1),2),re=ne[0],oe=ne[1];Ot((function(){oe(Cu())}),[]);var ie=r.useRef({}),ae=r.useContext(Gu),le=r.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),ce=Qc(),se=De(r.useState(null),2),ue=se[0],de=se[1],fe=r.useRef(null),pe=Ko((function(e){fe.current=e,_(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(ce,e)})),me=De(r.useState(null),2),ve=me[0],ge=me[1],he=r.useRef(null),be=Ko((function(e){_(e)&&ve!==e&&(ge(e),he.current=e)})),ye=r.Children.only(a),we=(null==ye?void 0:ye.props)||{},xe={},Ee=function(e,t){var n,r;return e===t||t.contains(e)||(null===(n=_a(t))||void 0===n?void 0:n.host)===e||t.contains(null===(r=_a(e))||void 0===r?void 0:r.host)},Ce=Ko((function(e){var t=ve,n=Ee.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Se=Yu(i,X,U,K),$e=Yu(i,G,Q,Y),Oe=De(r.useState(f||!1),2),Ne=Oe[0],Pe=Oe[1],Ie=null!=d?d:Ne,Me=Ko((function(e){void 0===d&&Pe(e)}));Ot((function(){Pe(d||!1)}),[d]);var je=r.useRef(Ie);je.current=Ie;var _e=r.useRef([]);_e.current=[];var Ae=Ko((function(e){var t;Me(e),(null!==(t=_e.current[_e.current.length-1])&&void 0!==t?t:Ie)!==e&&(_e.current.push(e),null==m||m(e))})),Te=r.useRef(),Fe=function(){clearTimeout(Te.current)},Be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Fe(),0===t?Ae(e):Te.current=setTimeout((function(){Ae(e)}),1e3*t)};r.useEffect((function(){return Fe}),[]);var ze=De(r.useState(!1),2),Le=ze[0],He=ze[1];Ot((function(e){e&&!Ie||He(!0)}),[Ie]);var Ve=De(r.useState(null),2),We=Ve[0],qe=Ve[1],Xe=De(r.useState(null),2),Ge=Xe[0],Ke=Xe[1],Ue=function(e){Ke([e.clientX,e.clientY])},Ye=function(e,t,n,o,i,a,l){var c=De(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=r.useRef(0),f=r.useMemo((function(){return t?Zu(t):[]}),[t]),p=r.useRef({});e||(p.current={});var m=Ko((function(){if(t&&n&&e){var r,c,s,d,m,v=t,g=v.ownerDocument,h=Qu(v).getComputedStyle(v),b=h.width,y=h.height,w=h.position,x=v.style.left,E=v.style.top,C=v.style.right,S=v.style.bottom,$=v.style.overflow,k=j(j({},i[o]),a),O=g.createElement("div");if(null===(r=v.parentElement)||void 0===r||r.appendChild(O),O.style.left="".concat(v.offsetLeft,"px"),O.style.top="".concat(v.offsetTop,"px"),O.style.position=w,O.style.height="".concat(v.offsetHeight,"px"),O.style.width="".concat(v.offsetWidth,"px"),v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var N,P,I=n.getBoundingClientRect();I.x=null!==(N=I.x)&&void 0!==N?N:I.left,I.y=null!==(P=I.y)&&void 0!==P?P:I.top,m={x:I.x,y:I.y,width:I.width,height:I.height}}var R=v.getBoundingClientRect();R.x=null!==(c=R.x)&&void 0!==c?c:R.left,R.y=null!==(s=R.y)&&void 0!==s?s:R.top;var M=g.documentElement,A=M.clientWidth,T=M.clientHeight,F=M.scrollWidth,B=M.scrollHeight,z=M.scrollTop,D=M.scrollLeft,L=R.height,H=R.width,V=m.height,W=m.width,q={left:0,top:0,right:A,bottom:T},X={left:-D,top:-z,right:F-D,bottom:B-z},G=k.htmlRegion,K="visible",U="visibleFirst";"scroll"!==G&&G!==U&&(G=K);var Y=G===U,Q=td(X,f),Z=td(q,f),J=G===K?Z:Q,ee=Y?Z:J;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";var te=v.getBoundingClientRect();v.style.left=x,v.style.top=E,v.style.right=C,v.style.bottom=S,v.style.overflow=$,null===(d=v.parentElement)||void 0===d||d.removeChild(O);var ne=Ju(Math.round(H/parseFloat(b)*1e3)/1e3),re=Ju(Math.round(L/parseFloat(y)*1e3)/1e3);if(0===ne||0===re||_(n)&&!_l(n))return;var oe=k.offset,ie=k.targetOffset,ae=De(rd(R,oe),2),le=ae[0],ce=ae[1],se=De(rd(m,ie),2),ue=se[0],de=se[1];m.x-=ue,m.y-=de;var fe=De(k.points||[],2),pe=fe[0],me=od(fe[1]),ve=od(pe),ge=id(m,me),he=id(R,ve),be=j({},k),ye=ge.x-he.x+le,we=ge.y-he.y+ce;function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=R.x+e,o=R.y+t,i=r+H,a=o+L,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var xe,Ee,Ce,Se,$e=mt(ye,we),ke=mt(ye,we,Z),Oe=id(m,["t","l"]),Ne=id(R,["t","l"]),Pe=id(m,["b","r"]),Ie=id(R,["b","r"]),Re=k.overflow||{},Me=Re.adjustX,je=Re.adjustY,_e=Re.shiftX,Ae=Re.shiftY,Te=function(e){return"boolean"==typeof e?e:e>=0};function vt(){xe=R.y+we,Ee=xe+L,Ce=R.x+ye,Se=Ce+H}vt();var Fe=Te(je),Be=ve[0]===me[0];if(Fe&&"t"===ve[0]&&(Ee>ee.bottom||p.current.bt)){var ze=we;Be?ze-=L-V:ze=Oe.y-Ie.y-ce;var Le=mt(ye,ze),He=mt(ye,ze,Z);Le>$e||Le===$e&&(!Y||He>=ke)?(p.current.bt=!0,we=ze,ce=-ce,be.points=[ad(ve,0),ad(me,0)]):p.current.bt=!1}if(Fe&&"b"===ve[0]&&(xe<ee.top||p.current.tb)){var Ve=we;Be?Ve+=L-V:Ve=Pe.y-Ne.y-ce;var We=mt(ye,Ve),qe=mt(ye,Ve,Z);We>$e||We===$e&&(!Y||qe>=ke)?(p.current.tb=!0,we=Ve,ce=-ce,be.points=[ad(ve,0),ad(me,0)]):p.current.tb=!1}var Xe=Te(Me),Ge=ve[1]===me[1];if(Xe&&"l"===ve[1]&&(Se>ee.right||p.current.rl)){var Ke=ye;Ge?Ke-=H-W:Ke=Oe.x-Ie.x-le;var Ue=mt(Ke,we),Ye=mt(Ke,we,Z);Ue>$e||Ue===$e&&(!Y||Ye>=ke)?(p.current.rl=!0,ye=Ke,le=-le,be.points=[ad(ve,1),ad(me,1)]):p.current.rl=!1}if(Xe&&"r"===ve[1]&&(Ce<ee.left||p.current.lr)){var Qe=ye;Ge?Qe+=H-W:Qe=Pe.x-Ne.x-le;var Ze=mt(Qe,we),Je=mt(Qe,we,Z);Ze>$e||Ze===$e&&(!Y||Je>=ke)?(p.current.lr=!0,ye=Qe,le=-le,be.points=[ad(ve,1),ad(me,1)]):p.current.lr=!1}vt();var et=!0===_e?0:_e;"number"==typeof et&&(Ce<Z.left&&(ye-=Ce-Z.left-le,m.x+W<Z.left+et&&(ye+=m.x-Z.left+W-et)),Se>Z.right&&(ye-=Se-Z.right-le,m.x>Z.right-et&&(ye+=m.x-Z.right+et)));var tt=!0===Ae?0:Ae;"number"==typeof tt&&(xe<Z.top&&(we-=xe-Z.top-ce,m.y+V<Z.top+tt&&(we+=m.y-Z.top+V-tt)),Ee>Z.bottom&&(we-=Ee-Z.bottom-ce,m.y>Z.bottom-tt&&(we+=m.y-Z.bottom+tt)));var nt=R.x+ye,rt=nt+H,ot=R.y+we,it=ot+L,at=m.x,lt=at+W,ct=m.y,st=ct+V,ut=(Math.max(nt,at)+Math.min(rt,lt))/2-nt,dt=(Math.max(ot,ct)+Math.min(it,st))/2-ot;null==l||l(t,be);var ft=te.right-R.x-(ye+R.width),pt=te.bottom-R.y-(we+R.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===re&&(we=Math.round(we),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:we/re,offsetR:ft/ne,offsetB:pt/re,arrowX:ut/ne,arrowY:dt/re,scaleX:ne,scaleY:re,align:be})}})),v=function(){u((function(e){return j(j({},e),{},{ready:!1})}))};return Ot(v,[o]),Ot((function(){e||v()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(Ie,ue,H&&null!==Ge?Ge:ve,M,T,F,W),Qe=De(Ye,11),Ze=Qe[0],Je=Qe[1],tt=Qe[2],nt=Qe[3],rt=Qe[4],ot=Qe[5],it=Qe[6],at=Qe[7],lt=Qe[8],ct=Qe[9],st=Qe[10],ut=function(e,t,n,o){return r.useMemo((function(){var r=Ku(null!=n?n:t),i=Ku(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(re,c,s,u),dt=De(ut,2),ft=dt[0],pt=dt[1],mt=ft.has("click"),vt=pt.has("click")||pt.has("contextMenu"),gt=Ko((function(){Le||st()}));!function(e,t,n,r,o){Ot((function(){if(e&&t&&n){var i=n,a=Zu(t),l=Zu(i),c=Qu(i),s=new Set([c].concat(Re(a),Re(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(Ie,ve,ue,gt,(function(){je.current&&H&&vt&&Be(!1)})),Ot((function(){gt()}),[Ge,M]),Ot((function(){!Ie||null!=T&&T[M]||gt()}),[JSON.stringify(F)]);var ht=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(Uu(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(T,i,ct,H);return p(e,null==D?void 0:D(ct))}),[ct,D,T,i,H]);r.useImperativeHandle(n,(function(){return{nativeElement:he.current,popupElement:fe.current,forceAlign:gt}}));var bt=De(r.useState(0),2),yt=bt[0],wt=bt[1],xt=De(r.useState(0),2),Et=xt[0],Ct=xt[1],St=function(){if(z&&ve){var e=ve.getBoundingClientRect();wt(e.width),Ct(e.height)}};function $t(e,t,n,r){xe[e]=function(o){var i;null==r||r(o),Be(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=we[e])||void 0===i||i.call.apply(i,[we,o].concat(l))}}Ot((function(){We&&(st(),We(),qe(null))}),[We]),(mt||vt)&&(xe.onClick=function(e){var t;je.current&&vt?Be(!1):!je.current&&mt&&(Ue(e),Be(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=we.onClick)||void 0===t||t.call.apply(t,[we,e].concat(r))}),function(e,t,n,o,i,a,l,c){var s=r.useRef(e);s.current=e,r.useEffect((function(){if(t&&o&&(!i||a)){var e=function(e){var t;s.current&&!l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},r=Qu(o);r.addEventListener("mousedown",e,!0),r.addEventListener("contextmenu",e,!0);var u,d,f=_a(n);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&S((null==n||null===(u=n.getRootNode)||void 0===u?void 0:u.call(n))===(null===(d=o.getRootNode)||void 0===d?void 0:d.call(o)),"trigger element and popup element should in same shadow root."),function(){r.removeEventListener("mousedown",e,!0),r.removeEventListener("contextmenu",e,!0),f&&(f.removeEventListener("mousedown",e,!0),f.removeEventListener("contextmenu",e,!0))}}}),[t,n,o,i,a])}(Ie,vt,ve,ue,x,C,Ce,Be);var kt,Nt,Pt=ft.has("hover"),It=pt.has("hover");Pt&&($t("onMouseEnter",!0,g,(function(e){Ue(e)})),$t("onPointerEnter",!0,g,(function(e){Ue(e)})),kt=function(e){(Ie||Le)&&null!=ue&&ue.contains(e.target)&&Be(!0,g)},H&&(xe.onMouseMove=function(e){var t;null===(t=we.onMouseMove)||void 0===t||t.call(we,e)})),It&&($t("onMouseLeave",!1,b),$t("onPointerLeave",!1,b),Nt=function(){Be(!1,b)}),ft.has("focus")&&$t("onFocus",!0,y),pt.has("focus")&&$t("onBlur",!1,w),ft.has("contextMenu")&&(xe.onContextMenu=function(e){var t;je.current&&pt.has("contextMenu")?Be(!1):(Ue(e),Be(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=we.onContextMenu)||void 0===t||t.call.apply(t,[we,e].concat(r))}),Z&&(xe.className=p(we.className,Z));var Rt=j(j({},we),xe),Mt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(Mt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Rt[e])||void 0===t||t.call.apply(t,[Rt].concat(r)),ee[e].apply(ee,r)})}));var jt=r.cloneElement(ye,j(j({},Rt),Mt)),_t={x:ot,y:it},At=q?j({},!0!==q?q:{}):null;return r.createElement(r.Fragment,null,r.createElement(ke,{disabled:!Ie,ref:be,onResize:function(){St(),gt()}},r.createElement(Xu,{getTriggerDOMNode:J},jt)),r.createElement(Gu.Provider,{value:le},r.createElement(qu,{portal:e,ref:pe,prefixCls:i,popup:P,className:p(I,ht),style:R,target:ve,onMouseEnter:kt,onMouseLeave:Nt,onPointerEnter:kt,zIndex:B,open:Ie,keepDom:Le,fresh:L,onClick:V,mask:x,motion:Se,maskMotion:$e,onVisibleChanged:function(e){He(!1),st(),null==v||v(e)},onPrepare:function(){return new Promise((function(e){St(),qe((function(){return e}))}))},forceRender:k,autoDestroy:te,getPopupContainer:$,align:ct,arrow:At,arrowPos:_t,ready:Ze,offsetX:Je,offsetY:tt,offsetR:nt,offsetB:rt,onAlign:gt,stretch:z,targetWidth:yt/at,targetHeight:Et/lt})))}));return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(Kc);function sd(e,t,n){return p({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const ud=(e,t)=>t||e,dd=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[t]:l}=e.useContext(_o),c=e.useContext(lu),s=null==l?void 0:l.variant;let u;u=void 0!==n?n:!1===r?"borderless":null!==(i=null!==(o=null!=c?c:s)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,jo.includes(u)]};var fd={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"},pd=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:fd}))},md=r.forwardRef(pd);function vd(e){var t=e.children,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return r.createElement("div",{className:p("".concat(n,"-content"),a),style:l},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof t?t():t))}"production"!==process.env.NODE_ENV&&(md.displayName="SearchOutlined");var gd={shiftX:64,adjustY:1},hd={adjustX:1,shiftY:!0},bd=[0,0],yd={left:{points:["cr","cl"],overflow:hd,offset:[-4,0],targetOffset:bd},right:{points:["cl","cr"],overflow:hd,offset:[4,0],targetOffset:bd},top:{points:["bc","tc"],overflow:gd,offset:[0,-4],targetOffset:bd},bottom:{points:["tc","bc"],overflow:gd,offset:[0,4],targetOffset:bd},topLeft:{points:["bl","tl"],overflow:gd,offset:[0,-4],targetOffset:bd},leftTop:{points:["tr","tl"],overflow:hd,offset:[-4,0],targetOffset:bd},topRight:{points:["br","tr"],overflow:gd,offset:[0,-4],targetOffset:bd},rightTop:{points:["tl","tr"],overflow:hd,offset:[4,0],targetOffset:bd},bottomRight:{points:["tr","br"],overflow:gd,offset:[0,4],targetOffset:bd},rightBottom:{points:["bl","br"],overflow:hd,offset:[4,0],targetOffset:bd},bottomLeft:{points:["tl","bl"],overflow:gd,offset:[0,4],targetOffset:bd},leftBottom:{points:["br","bl"],overflow:hd,offset:[-4,0],targetOffset:bd}},wd=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],xd=function(t,n){var o=t.overlayClassName,i=t.trigger,a=void 0===i?["hover"]:i,l=t.mouseEnterDelay,c=void 0===l?0:l,s=t.mouseLeaveDelay,u=void 0===s?.1:s,d=t.overlayStyle,f=t.prefixCls,p=void 0===f?"rc-tooltip":f,v=t.children,g=t.onVisibleChange,h=t.afterVisibleChange,b=t.transitionName,y=t.animation,w=t.motion,x=t.placement,E=void 0===x?"right":x,C=t.align,S=void 0===C?{}:C,$=t.destroyTooltipOnHide,k=void 0!==$&&$,O=t.defaultVisible,N=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,R=t.id,M=t.showArrow,_=void 0===M||M,A=et(t,wd),T=e.useRef(null);e.useImperativeHandle(n,(function(){return T.current}));var F=j({},A);"visible"in t&&(F.popupVisible=t.visible);return r.createElement(cd,m({popupClassName:o,prefixCls:p,popup:function(){return r.createElement(vd,{key:"content",prefixCls:p,id:R,overlayInnerStyle:P},I)},action:a,builtinPlacements:yd,popupPlacement:E,ref:T,popupAlign:S,getPopupContainer:N,onPopupVisibleChange:g,afterPopupVisibleChange:h,popupTransitionName:b,popupAnimation:y,popupMotion:w,defaultPopupVisible:O,autoDestroy:k,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:c,arrow:_},F),v)},Ed=e.forwardRef(xd);const Cd=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,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,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${xt(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Sd=8;function $d(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Sd:r}}function kd(e,t){return e?t:{}}function Od(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Cd(e,t,o)),{"&:before":{background:t}})]},kd(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${xt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),kd(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${xt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),kd(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),kd(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Nd={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"]}},Pd={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"]}},Id=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Rd(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Nd).forEach((e=>{const s=r&&Pd[e]||Nd[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Id.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=$d({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const Md=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xi(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${xt(e.calc(s).div(2).equal())} ${xt(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Sd)}},[`${t}-content`]:{position:"relative"}}),Pi(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Od(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},jd=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},$d({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,m=2*o-0,v=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${v} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*o-h}px 100%, ${h}px 100%)`}}(ti(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var _d=function(e){const t=ki("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=ti(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Md(o),Eu(e,"zoom-big-fast")]}),jd,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Ad=ci.map((e=>`${e}-inverse`));function Td(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?ci.includes(e):[].concat(Re(Ad),Re(ci)).includes(e)}(t),r=p({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Fd=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Bd=r.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:v,arrow:g=!0,title:h,overlay:b,builtinPlacements:y,arrowPointAtCenter:w=!1,autoAdjustOverflow:x=!0}=e,E=!!g,[,C]=yi(),{getPopupContainer:S,getPrefixCls:$,direction:k}=r.useContext(_o),O=dr("Tooltip"),N=r.useRef(null),P=()=>{var e;null===(e=N.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>{var e;return{forceAlign:P,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),P()},nativeElement:null===(e=N.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((t=>{let[n,r]=t;O.deprecated(!(n in e),n,r)})),"production"!==process.env.NODE_ENV&&O(!v||"boolean"==typeof v,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&O(!g||"boolean"==typeof g||!("arrowPointAtCenter"in g),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[I,R]=Qo(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),M=!h&&!b&&0!==h,j=r.useMemo((()=>{var e,t;let n=w;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:w),y||Rd({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[w,g,y,C]),_=r.useMemo((()=>0===h?h:b||h||""),[b,h]),A=r.createElement(cu,{space:!0},"function"==typeof _?_():_),{getPopupContainer:T,placement:F="top",mouseEnterDelay:B=.1,mouseLeaveDelay:z=.1,overlayStyle:D,rootClassName:L}=e,H=Fd(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=$("tooltip",i),W=$(),q=e["data-popover-inject"];let X=I;"open"in e||"visible"in e||!M||(X=!1);const G=r.isValidElement(d)&&!el(d)?d:r.createElement("span",null,d),K=G.props,U=K.className&&"string"!=typeof K.className?K.className:p(K.className,a||`${V}-open`),[Y,Q,Z]=_d(V,!q),J=Td(V,s),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=p(c,{[`${V}-rtl`]:"rtl"===k},J.className,L,Q,Z),[re,oe]=fl("Tooltip",H.zIndex),ie=r.createElement(Ed,Object.assign({},H,{zIndex:re,showArrow:E,placement:F,mouseEnterDelay:B,mouseLeaveDelay:z,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),D),getTooltipContainer:T||l||S,ref:N,builtinPlacements:j,overlay:A,visible:X,onVisibleChange:t=>{var n,r;R(!M&&t),M||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:m,overlayInnerStyle:te,arrowContent:r.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:jl(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),X?nl(G,{className:U}):G);return Y(r.createElement(cl.Provider,{value:oe},ie))})),zd=Bd;"production"!==process.env.NODE_ENV&&(zd.displayName="Tooltip"),zd._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:o="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=r.useContext(_o),s=c("tooltip",t),[u,d,f]=_d(s),m=Td(s,a),v=m.arrowStyle,g=Object.assign(Object.assign({},l),m.overlayStyle),h=p(d,f,s,`${s}-pure`,`${s}-placement-${o}`,n,m.className);return u(r.createElement("div",{className:h,style:v},r.createElement("div",{className:`${s}-arrow`}),r.createElement(vd,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:g}),i)))};var Dd={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"},Ld=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Dd}))},Hd=r.forwardRef(Ld);"production"!==process.env.NODE_ENV&&(Hd.displayName="RightOutlined");var Vd=ol.ESC,Wd=ol.TAB;var qd=e.forwardRef((function(t,n){var r=t.overlay,o=t.arrow,i=t.prefixCls,a=e.useMemo((function(){return"function"==typeof r?r():r}),[r]),l=B(n,null==a?void 0:a.ref);return e.createElement(e.Fragment,null,o&&e.createElement("div",{className:"".concat(i,"-arrow")}),e.cloneElement(a,{ref:D(a)?l:void 0}))})),Xd={adjustX:1,adjustY:1},Gd=[0,0],Kd={topLeft:{points:["bl","tl"],overflow:Xd,offset:[0,-4],targetOffset:Gd},top:{points:["bc","tc"],overflow:Xd,offset:[0,-4],targetOffset:Gd},topRight:{points:["br","tr"],overflow:Xd,offset:[0,-4],targetOffset:Gd},bottomLeft:{points:["tl","bl"],overflow:Xd,offset:[0,4],targetOffset:Gd},bottom:{points:["tc","bc"],overflow:Xd,offset:[0,4],targetOffset:Gd},bottomRight:{points:["tr","br"],overflow:Xd,offset:[0,4],targetOffset:Gd}},Ud=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Yd(t,n){var o,i=t.arrow,a=void 0!==i&&i,l=t.prefixCls,c=void 0===l?"rc-dropdown":l,s=t.transitionName,u=t.animation,d=t.align,f=t.placement,v=void 0===f?"bottomLeft":f,g=t.placements,h=void 0===g?Kd:g,b=t.getPopupContainer,y=t.showAction,w=t.hideAction,x=t.overlayClassName,E=t.overlayStyle,C=t.visible,S=t.trigger,$=void 0===S?["hover"]:S,k=t.autoFocus,O=t.overlay,N=t.children,P=t.onVisibleChange,I=et(t,Ud),M=De(e.useState(),2),j=M[0],_=M[1],A="visible"in t?C:j,T=e.useRef(null),F=e.useRef(null),z=e.useRef(null);e.useImperativeHandle(n,(function(){return T.current}));var L=function(e){_(e),null==P||P(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=r.useRef(!1),c=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case Vd:c();break;case Wd:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};r.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&Fe(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:A,triggerRef:z,onVisibleChange:L,autoFocus:k,overlayRef:F});var H,V,W,q=function(){return e.createElement(qd,{ref:F,overlay:O,prefixCls:c,arrow:a})},X=e.cloneElement(N,{className:p(null===(o=N.props)||void 0===o?void 0:o.className,A&&(H=t.openClassName,void 0!==H?H:"".concat(c,"-open"))),ref:D(N)?B(z,N.ref):void 0}),G=w;return G||-1===$.indexOf("contextMenu")||(G=["click"]),e.createElement(cd,m({builtinPlacements:h},I,{prefixCls:c,ref:T,popupClassName:p(x,R({},"".concat(c,"-show-arrow"),a)),popupStyle:E,action:$,showAction:y,hideAction:G,popupPlacement:v,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:A,stretch:(V=t.minOverlayWidthMatchTrigger,W=t.alignPoint,("minOverlayWidthMatchTrigger"in t?V:!W)?"minWidth":""),popup:"function"==typeof O?q:q(),onPopupVisibleChange:L,onPopupClick:function(e){var n=t.onOverlayClick;_(!1),n&&n(e)},getPopupContainer:b}),X)}var Qd=e.forwardRef(Yd),Zd=r.createContext(null);function Jd(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function ef(e){return Jd(r.useContext(Zd),e)}var tf=["children","locked"],nf=r.createContext(null);function rf(e){var t=e.children,n=e.locked,o=et(e,tf),i=r.useContext(nf),a=T((function(){return e=o,t=j({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(n||e[0]===t[0]&&tt(e[1],t[1],!0))}));return r.createElement(nf.Provider,{value:a},t)}var of=[],af=r.createContext(null);function lf(){return r.useContext(af)}var cf=r.createContext(of);function sf(e){var t=r.useContext(cf);return r.useMemo((function(){return void 0!==e?[].concat(Re(t),[e]):t}),[t,e])}var uf=r.createContext(null),df=r.createContext({});function ff(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(_l(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var pf=ol.LEFT,mf=ol.RIGHT,vf=ol.UP,gf=ol.DOWN,hf=ol.ENTER,bf=ol.ESC,yf=ol.HOME,wf=ol.END,xf=[vf,gf,pf,mf];function Ef(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Re(e.querySelectorAll("*")).filter((function(e){return ff(e,t)}));return ff(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function Cf(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Ef(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var Sf=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Jd(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function $f(e,t,n,o,i,a,l,c,s,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){Fe.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var m=r.which;if([].concat(xf,[hf,bf,yf,wf]).includes(m)){var v=a(),g=Sf(v,o),h=g,b=h.elements,y=h.key2element,w=h.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),E=w.get(x),C=function(e,t,n,r){var o,i,a,l,c="prev",s="next",u="children",d="parent";if("inline"===e&&r===hf)return{inlineTrigger:!0};var f=(R(o={},vf,c),R(o,gf,s),o),p=(R(i={},pf,n?s:c),R(i,mf,n?c:s),R(i,gf,u),R(i,hf,u),i),m=(R(a={},vf,c),R(a,gf,s),R(a,hf,u),R(a,bf,d),R(a,pf,n?u:d),R(a,mf,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(E,!0).length,n,m);if(!C&&m!==yf&&m!==wf)return;(xf.includes(m)||[yf,wf].includes(m))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);c(r),p(),d.current=Fe((function(){f.current===r&&t.focus()}))}};if([yf,wf].includes(m)||C.sibling||!x){var $,k,O=Ef($=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):i.current,b);k=m===yf?O[0]:m===wf?O[O.length-1]:Cf($,b,x,C.offset),S(k)}else if(C.inlineTrigger)s(E);else if(C.offset>0)s(E,!0),p(),d.current=Fe((function(){g=Sf(v,o);var e=x.getAttribute("aria-controls"),t=Cf(document.getElementById(e),g.elements);S(t)}),5);else if(C.offset<0){var N=l(E,!0),P=N[N.length-2],I=y.get(P);s(P,!1),S(I)}}null==u||u(r)}}var kf="__RC_UTIL_PATH_SPLIT__",Of=function(e){return e.join(kf)},Nf="rc-menu-more";function Pf(){var t=De(r.useState({}),2)[1],n=e.useRef(new Map),o=e.useRef(new Map),i=De(r.useState([]),2),a=i[0],l=i[1],c=e.useRef(0),s=e.useRef(!1),u=e.useCallback((function(e,r){"production"!==process.env.NODE_ENV&&N(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(r.join(" > "),"]"));var i=Of(r);o.current.set(i,e),n.current.set(e,i),c.current+=1;var a,l=c.current;a=function(){l===c.current&&(s.current||t({}))},Promise.resolve().then(a)}),[]),d=e.useCallback((function(e,t){var r=Of(t);o.current.delete(r),n.current.delete(e)}),[]),f=e.useCallback((function(e){l(e)}),[]),p=e.useCallback((function(e,t){var r=n.current.get(e)||"",o=r.split(kf);return t&&a.includes(o[0])&&o.unshift(Nf),o}),[a]),m=e.useCallback((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return p(e,!0).includes(t)}))}),[p]),v=e.useCallback((function(e){var t="".concat(n.current.get(e)).concat(kf),r=new Set;return Re(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return r.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:m,getKeyPath:p,getKeys:function(){var e=Re(n.current.keys());return a.length&&e.push(Nf),e},getSubPathKeys:v}}function If(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var Rf=Math.random().toFixed(5).toString().slice(2),Mf=0;function jf(e,t,n,o){var i=r.useContext(nf),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),c(e)}),s}function _f(e){var t=r.useContext(nf),n=t.mode,o=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return o?{paddingRight:e*i}:{paddingLeft:e*i}}function Af(e){var t,n=e.icon,o=e.props,i=e.children;return null===n||!1===n?null:("function"==typeof n?t=r.createElement(n,j({},o)):"boolean"!=typeof n&&(t=n),t||i||null)}var Tf=["item"];function Ff(e){var t=e.item,n=et(e,Tf);return Object.defineProperty(n,"item",{get:function(){return N(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Bf=["title","attribute","elementRef"],zf=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Df=["active"],Lf=function(){he(t,r.Component);var e=xe(t);function t(){return pe(this,t),e.apply(this,arguments)}return ve(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=Oe(et(e,Bf),["eventKey","popupClassName","popupOffset","onTitleClick"]);return N(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(Lu.Item,m({},n,{title:"string"==typeof t?t:void 0},i,{ref:o}))}}]),t}(),Hf=r.forwardRef((function(e,t){var n,o=e.style,i=e.className,a=e.eventKey,l=e.warnKey,c=e.disabled,s=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,h=e.onKeyDown,b=e.onFocus,y=et(e,zf),w=ef(a),x=r.useContext(nf),E=x.prefixCls,C=x.onItemClick,S=x.disabled,$=x.overflowDisabled,k=x.itemIcon,O=x.selectedKeys,P=x.onActive,I=r.useContext(df)._internalRenderMenuItem,M="".concat(E,"-item"),_=r.useRef(),A=r.useRef(),T=S||c,F=z(t,A),B=sf(a);"production"!==process.env.NODE_ENV&&l&&N(!1,"MenuItem should not leave undefined `key`.");var D=function(e){return{key:a,keyPath:Re(B).reverse(),item:_.current,domEvent:e}},L=s||k,H=jf(a,T,f,v),V=H.active,W=et(H,Df),q=O.includes(a),X=_f(B.length),G={};"option"===e.role&&(G["aria-selected"]=q);var K=r.createElement(Lf,m({ref:_,elementRef:F,role:null===d?"none":d||"menuitem",tabIndex:c?null:-1,"data-menu-id":$&&w?null:w},y,W,G,{component:"li","aria-disabled":c,style:j(j({},X),o),className:p(M,(n={},R(n,"".concat(M,"-active"),V),R(n,"".concat(M,"-selected"),q),R(n,"".concat(M,"-disabled"),T),n),i),onClick:function(e){if(!T){var t=D(e);null==g||g(Ff(t)),C(t)}},onKeyDown:function(e){if(null==h||h(e),e.which===ol.ENTER){var t=D(e);null==g||g(Ff(t)),C(t)}},onFocus:function(e){P(a),null==b||b(e)}}),u,r.createElement(Af,{props:j(j({},e),{},{isSelected:q}),icon:L}));return I&&(K=I(K,e,{selected:q})),K}));function Vf(e,t){var n=e.eventKey,o=lf(),i=sf(n);return r.useEffect((function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}}),[i]),o?null:r.createElement(Hf,m({},e,{ref:t}))}var Wf=r.forwardRef(Vf),qf=["className","children"],Xf=function(e,t){var n=e.className,o=e.children,i=et(e,qf),a=r.useContext(nf),l=a.prefixCls,c=a.mode,s=a.rtl;return r.createElement("ul",m({className:p(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)},Gf=r.forwardRef(Xf);function Kf(e,t){return x(e).map((function(e,n){if(r.isValidElement(e)){var o,i,a=e.key,l=null!==(o=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a,c=null==l;c&&(l="tmp_key-".concat([].concat(Re(t),[n]).join("-")));var s={key:l,eventKey:l};return"production"!==process.env.NODE_ENV&&c&&(s.warnKey=!0),r.cloneElement(e,s)}return e}))}Gf.displayName="SubMenuList";var Uf={adjustX:1,adjustY:1},Yf={topLeft:{points:["bl","tl"],overflow:Uf},topRight:{points:["br","tr"],overflow:Uf},bottomLeft:{points:["tl","bl"],overflow:Uf},bottomRight:{points:["tr","br"],overflow:Uf},leftTop:{points:["tr","tl"],overflow:Uf},leftBottom:{points:["br","bl"],overflow:Uf},rightTop:{points:["tl","tr"],overflow:Uf},rightBottom:{points:["bl","br"],overflow:Uf}},Qf={topLeft:{points:["bl","tl"],overflow:Uf},topRight:{points:["br","tr"],overflow:Uf},bottomLeft:{points:["tl","bl"],overflow:Uf},bottomRight:{points:["tr","br"],overflow:Uf},rightTop:{points:["tr","tl"],overflow:Uf},rightBottom:{points:["br","bl"],overflow:Uf},leftTop:{points:["tl","tr"],overflow:Uf},leftBottom:{points:["bl","br"],overflow:Uf}};function Zf(e,t,n){return t||(n?n[e]||n.other:void 0)}var Jf={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ep(e){var t=e.prefixCls,n=e.visible,o=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=r.useContext(nf),m=f.getPopupContainer,v=f.rtl,g=f.subMenuOpenDelay,h=f.subMenuCloseDelay,b=f.builtinPlacements,y=f.triggerSubMenuAction,w=f.forceSubMenuRender,x=f.rootClassName,E=f.motion,C=f.defaultMotions,S=De(r.useState(!1),2),$=S[0],k=S[1],O=j(j({},v?Qf:Yf),b),N=Jf[u],P=Zf(u,E,C),I=r.useRef(P);"inline"!==u&&(I.current=P);var M=j(j({},I.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=r.useRef();return r.useEffect((function(){return _.current=Fe((function(){k(n)})),function(){Fe.cancel(_.current)}}),[n]),r.createElement(cd,{prefixCls:t,popupClassName:p("".concat(t,"-popup"),R({},"".concat(t,"-rtl"),v),l,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:m,builtinPlacements:O,popupPlacement:N,popupVisible:$,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[y],mouseEnterDelay:g,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:w,popupMotion:M,fresh:!0},o)}function tp(e){var t=e.id,n=e.open,o=e.keyPath,i=e.children,a="inline",l=r.useContext(nf),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=r.useRef(!1);p.current=f===a;var v=De(r.useState(!p.current),2),g=v[0],h=v[1],b=!!p.current&&n;r.useEffect((function(){p.current&&h(!1)}),[f]);var y=j({},Zf(a,u,d));o.length>1&&(y.motionAppear=!1);var w=y.onVisibleChanged;return y.onVisibleChanged=function(e){return p.current||e||h(!0),null==w?void 0:w(e)},g?null:r.createElement(rf,{mode:a,locked:!p.current},r.createElement(ma,m({visible:b},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(Gf,{id:t,className:n,style:o},i)})))}var np=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],rp=["active"],op=r.forwardRef((function(e,t){var n,o=e.style,i=e.className,a=e.title,l=e.eventKey,c=e.warnKey,s=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,g=e.popupClassName,h=e.popupOffset,b=e.popupStyle,y=e.onClick,w=e.onMouseEnter,x=e.onMouseLeave,E=e.onTitleClick,C=e.onTitleMouseEnter,S=e.onTitleMouseLeave,$=et(e,np),k=ef(l),O=r.useContext(nf),P=O.prefixCls,I=O.mode,M=O.openKeys,_=O.disabled,A=O.overflowDisabled,T=O.activeKey,F=O.selectedKeys,B=O.itemIcon,z=O.expandIcon,D=O.onItemClick,L=O.onOpenChange,H=O.onActive,V=r.useContext(df)._internalRenderSubMenuItem,W=r.useContext(uf).isSubPathKey,q=sf(),X="".concat(P,"-submenu"),G=_||s,K=r.useRef(),U=r.useRef();"production"!==process.env.NODE_ENV&&c&&N(!1,"SubMenu should not leave undefined `key`.");var Y=null!=f?f:B,Q=null!=v?v:z,Z=M.includes(l),J=!A&&Z,ee=W(F,l),te=jf(l,G,C,S),ne=te.active,re=et(te,rp),oe=De(r.useState(!1),2),ie=oe[0],ae=oe[1],le=function(e){G||ae(e)},ce=r.useMemo((function(){return ne||"inline"!==I&&(ie||W([T],l))}),[I,ne,T,ie,l,W]),se=_f(q.length),ue=If((function(e){null==y||y(Ff(e)),D(e)})),de=k&&"".concat(k,"-popup"),fe=r.createElement("div",m({role:"menuitem",style:se,className:"".concat(X,"-title"),tabIndex:G?null:-1,ref:K,title:"string"==typeof a?a:null,"data-menu-id":A&&k?null:k,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":G,onClick:function(e){G||(null==E||E({key:l,domEvent:e}),"inline"===I&&L(l,!Z))},onFocus:function(){H(l)}},re),a,r.createElement(Af,{icon:"horizontal"!==I?Q:void 0,props:j(j({},e),{},{isOpen:J,isSubMenu:!0})},r.createElement("i",{className:"".concat(X,"-arrow")}))),pe=r.useRef(I);if("inline"!==I&&q.length>1?pe.current="vertical":pe.current=I,!A){var me=pe.current;fe=r.createElement(ep,{mode:me,prefixCls:X,visible:!u&&J&&"inline"!==I,popupClassName:g,popupOffset:h,popupStyle:b,popup:r.createElement(rf,{mode:"horizontal"===me?"vertical":me},r.createElement(Gf,{id:de,ref:U},d)),disabled:G,onVisibleChange:function(e){"inline"!==I&&L(l,e)}},fe)}var ve=r.createElement(Lu.Item,m({ref:t,role:"none"},$,{component:"li",style:o,className:p(X,"".concat(X,"-").concat(I),i,(n={},R(n,"".concat(X,"-open"),J),R(n,"".concat(X,"-active"),ce),R(n,"".concat(X,"-selected"),ee),R(n,"".concat(X,"-disabled"),G),n)),onMouseEnter:function(e){le(!0),null==w||w({key:l,domEvent:e})},onMouseLeave:function(e){le(!1),null==x||x({key:l,domEvent:e})}}),fe,!A&&r.createElement(tp,{id:de,open:J,keyPath:q},d));return V&&(ve=V(ve,e,{selected:ee,active:ce,open:J,disabled:G})),r.createElement(rf,{onItemClick:ue,mode:"horizontal"===I?"vertical":I,itemIcon:Y,expandIcon:Q},ve)})),ip=r.forwardRef((function(e,t){var n,o=e.eventKey,i=e.children,a=sf(o),l=Kf(i,a),c=lf();return r.useEffect((function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}}),[a]),n=c?l:r.createElement(op,m({ref:t},e),l),r.createElement(cf.Provider,{value:a},n)}));function ap(e){var t=e.className,n=e.style,o=r.useContext(nf).prefixCls;return lf()?null:r.createElement("li",{role:"separator",className:p("".concat(o,"-item-divider"),t),style:n})}"production"!==process.env.NODE_ENV&&(ip.displayName="SubMenu");var lp=["className","title","eventKey","children"],cp=r.forwardRef((function(e,t){var n=e.className,o=e.title;e.eventKey;var i=e.children,a=et(e,lp),l=r.useContext(nf).prefixCls,c="".concat(l,"-item-group");return r.createElement("li",m({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:p(c,n)}),r.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),r.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))})),sp=r.forwardRef((function(e,t){var n=e.eventKey,o=Kf(e.children,sf(n));return lf()?o:r.createElement(cp,m({ref:t},Oe(e,["warnKey"])),o)}));"production"!==process.env.NODE_ENV&&(sp.displayName="MenuItemGroup");var up=["label","children","key","type"];function dp(e,t){var n=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,l){if(e&&"object"===P(e)){var c=e,s=c.label,u=c.children,d=c.key,f=c.type,p=et(c,up),v=null!=d?d:"tmp-".concat(l);return u||"group"===f?"group"===f?r.createElement(o,m({key:v},p,{title:s}),dp(u,t)):r.createElement(i,m({key:v},p,{title:s}),dp(u,t)):"divider"===f?r.createElement(a,m({key:v},p)):r.createElement(n,m({key:v},p),s)}return null})).filter((function(e){return e}))}function fp(e,t,n,r){var o=e,i=j({divider:ap,item:Wf,group:sp,submenu:ip},r);return t&&(o=dp(t,i)),Kf(o,n)}var pp=["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","_internalComponents"],mp=[],vp=r.forwardRef((function(n,o){var i,a,l=n,c=l.prefixCls,s=void 0===c?"rc-menu":c,u=l.rootClassName,d=l.style,f=l.className,v=l.tabIndex,g=void 0===v?0:v,h=l.items,b=l.children,y=l.direction,w=l.id,x=l.mode,E=void 0===x?"vertical":x,C=l.inlineCollapsed,S=l.disabled,$=l.disabledOverflow,k=l.subMenuOpenDelay,O=void 0===k?.1:k,P=l.subMenuCloseDelay,I=void 0===P?.1:P,M=l.forceSubMenuRender,_=l.defaultOpenKeys,A=l.openKeys,T=l.activeKey,F=l.defaultActiveFirst,B=l.selectable,z=void 0===B||B,D=l.multiple,L=void 0!==D&&D,H=l.defaultSelectedKeys,V=l.selectedKeys,W=l.onSelect,q=l.onDeselect,X=l.inlineIndent,G=void 0===X?24:X,K=l.motion,U=l.defaultMotions,Y=l.triggerSubMenuAction,Q=void 0===Y?"hover":Y,Z=l.builtinPlacements,J=l.itemIcon,ee=l.expandIcon,te=l.overflowedIndicator,ne=void 0===te?"...":te,re=l.overflowedIndicatorPopupClassName,oe=l.getPopupContainer,ie=l.onClick,ae=l.onOpenChange,le=l.onKeyDown,ce=l.openAnimation,se=l.openTransitionName,ue=l._internalRenderMenuItem,de=l._internalRenderSubMenuItem,fe=l._internalComponents,pe=et(l,pp),me=De(r.useMemo((function(){return[fp(b,h,mp,fe),fp(b,h,mp,{})]}),[b,h,fe]),2),ve=me[0],ge=me[1],he=De(r.useState(!1),2),be=he[0],ye=he[1],we=r.useRef(),xe=function(e){var t=De(Qo(e,{value:e}),2),n=t[0],o=t[1];return r.useEffect((function(){Mf+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(Rf,"-").concat(Mf);o("rc-menu-uuid-".concat(e))}),[]),n}(w),Ee="rtl"===y;"production"!==process.env.NODE_ENV&&N(!ce&&!se,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ce=Qo(_,{value:A,postState:function(e){return e||mp}}),Se=De(Ce,2),$e=Se[0],ke=Se[1],Oe=function(e){function n(){ke(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t.flushSync(n):n()},Ne=De(r.useState($e),2),Pe=Ne[0],Ie=Ne[1],Me=r.useRef(!1),je=De(r.useMemo((function(){return"inline"!==E&&"vertical"!==E||!C?[E,!1]:["vertical",C]}),[E,C]),2),_e=je[0],Ae=je[1],Te="inline"===_e,Fe=De(r.useState(_e),2),Be=Fe[0],ze=Fe[1],Le=De(r.useState(Ae),2),He=Le[0],Ve=Le[1];r.useEffect((function(){ze(_e),Ve(Ae),Me.current&&(Te?ke(Pe):Oe(mp))}),[_e,Ae]);var We=De(r.useState(0),2),qe=We[0],Xe=We[1],Ge=qe>=ve.length-1||"horizontal"!==Be||$;r.useEffect((function(){Te&&Ie($e)}),[$e]),r.useEffect((function(){return Me.current=!0,function(){Me.current=!1}}),[]);var Ke=Pf(),Ue=Ke.registerPath,Ye=Ke.unregisterPath,Qe=Ke.refreshOverflowKeys,Ze=Ke.isSubPathKey,Je=Ke.getKeyPath,nt=Ke.getKeys,rt=Ke.getSubPathKeys,ot=r.useMemo((function(){return{registerPath:Ue,unregisterPath:Ye}}),[Ue,Ye]),it=r.useMemo((function(){return{isSubPathKey:Ze}}),[Ze]);r.useEffect((function(){Qe(Ge?mp:ve.slice(qe+1).map((function(e){return e.key})))}),[qe,Ge]);var at=De(Qo(T||F&&(null===(i=ve[0])||void 0===i?void 0:i.key),{value:T}),2),lt=at[0],ct=at[1],st=If((function(e){ct(e)})),ut=If((function(){ct(void 0)}));e.useImperativeHandle(o,(function(){return{list:we.current,focus:function(e){var t,n,r=nt(),o=Sf(r,xe),i=o.elements,a=o.key2element,l=o.element2key,c=Ef(we.current,i),s=null!=lt?lt:c[0]?l.get(c[0]):null===(t=ve.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var dt=Qo(H||[],{value:V,postState:function(e){return Array.isArray(e)?e:null==e?mp:[e]}}),ft=De(dt,2),pt=ft[0],mt=ft[1],vt=If((function(e){null==ie||ie(Ff(e)),function(e){if(z){var t,n=e.key,r=pt.includes(n);t=L?r?pt.filter((function(e){return e!==n})):[].concat(Re(pt),[n]):[n],mt(t);var o=j(j({},e),{},{selectedKeys:t});r?null==q||q(o):null==W||W(o)}!L&&$e.length&&"inline"!==Be&&Oe(mp)}(e)})),gt=If((function(e,t){var n=$e.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Be){var r=rt(e);n=n.filter((function(e){return!r.has(e)}))}tt($e,n,!0)||Oe(n,!0)})),ht=$f(Be,lt,Ee,xe,we,nt,Je,ct,(function(e,t){var n=null!=t?t:!$e.includes(e);gt(e,n)}),le);r.useEffect((function(){ye(!0)}),[]);var bt=r.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),yt="horizontal"!==Be||$?ve:ve.map((function(e,t){return r.createElement(rf,{key:e.key,overflowDisabled:t>qe},e)})),wt=r.createElement(Lu,m({id:w,ref:we,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Wf,className:p(s,"".concat(s,"-root"),"".concat(s,"-").concat(Be),f,(a={},R(a,"".concat(s,"-inline-collapsed"),He),R(a,"".concat(s,"-rtl"),Ee),a),u),dir:y,style:d,role:"menu",tabIndex:g,data:yt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ve.slice(-t):null;return r.createElement(ip,{eventKey:Nf,title:ne,disabled:Ge,internalPopupClose:0===t,popupClassName:re},n)},maxCount:"horizontal"!==Be||$?Lu.INVALIDATE:Lu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Xe(e)},onKeyDown:ht},pe));return r.createElement(df.Provider,{value:bt},r.createElement(Zd.Provider,{value:xe},r.createElement(rf,{prefixCls:s,rootClassName:u,mode:Be,openKeys:$e,rtl:Ee,disabled:S,motion:be?K:null,defaultMotions:be?U:null,activeKey:lt,onActive:st,onInactive:ut,selectedKeys:pt,inlineIndent:G,subMenuOpenDelay:O,subMenuCloseDelay:I,forceSubMenuRender:M,builtinPlacements:Z,triggerSubMenuAction:Q,getPopupContainer:oe,itemIcon:J,expandIcon:ee,onItemClick:vt,onOpenChange:gt},r.createElement(uf.Provider,{value:it},wt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(af.Provider,{value:ot},ge)))))})),gp=vp;gp.Item=Wf,gp.SubMenu=ip,gp.ItemGroup=sp,gp.Divider=ap;var hp={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"},bp=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:hp}))},yp=r.forwardRef(bp);"production"!==process.env.NODE_ENV&&(yp.displayName="BarsOutlined");var wp={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"},xp=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:wp}))},Ep=r.forwardRef(xp);"production"!==process.env.NODE_ENV&&(Ep.displayName="LeftOutlined");const Cp=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Sp=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 $p={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},kp=r.createContext({}),Op=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Np=r.forwardRef(((t,n)=>{const{prefixCls:o,className:i,trigger:a,children:l,defaultCollapsed:c=!1,theme:s="dark",style:u={},collapsible:d=!1,reverseArrow:f=!1,width:m=200,collapsedWidth:v=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:b,onBreakpoint:y}=t,w=Sp(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:x}=e.useContext(Cp),[E,C]=e.useState("collapsed"in t?t.collapsed:c),[S,$]=e.useState(!1);e.useEffect((()=>{"collapsed"in t&&C(t.collapsed)}),[t.collapsed]);const k=(e,n)=>{"collapsed"in t||C(e),null==b||b(e,n)},O=e.useRef();O.current=e=>{$(e.matches),null==y||y(e.matches),E!==e.matches&&k(e.matches,"responsive")},e.useEffect((()=>{function e(e){return O.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&h&&h in $p){t=n(`screen and (max-width: ${$p[h]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[h]),e.useEffect((()=>{const e=Op("ant-sider-");return x.addSider(e),()=>x.removeSider(e)}),[]);const N=()=>{k(!E,"clickTrigger")},{getPrefixCls:P}=e.useContext(_o),I=r.useMemo((()=>({siderCollapsed:E})),[E]);return r.createElement(kp.Provider,{value:I},(()=>{const e=P("layout-sider",o),t=Oe(w,["collapsed"]),c=E?v:m,h=(b=c,!isNaN(parseFloat(b))&&isFinite(b)?`${c}px`:String(c));var b;const y=0===parseFloat(String(v||0))?r.createElement("span",{onClick:N,className:p(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${f?"right":"left"}`),style:g},a||r.createElement(yp,null)):null,x={expanded:f?r.createElement(Hd,null):r.createElement(Ep,null),collapsed:f?r.createElement(Ep,null):r.createElement(Hd,null)}[E?"collapsed":"expanded"],C=null!==a?y||r.createElement("div",{className:`${e}-trigger`,onClick:N,style:{width:h}},a||x):null,$=Object.assign(Object.assign({},u),{flex:`0 0 ${h}`,maxWidth:h,minWidth:h,width:h}),k=p(e,`${e}-${s}`,{[`${e}-collapsed`]:!!E,[`${e}-has-trigger`]:d&&null!==a&&!y,[`${e}-below`]:!!S,[`${e}-zero-width`]:0===parseFloat(h)},i);return r.createElement("aside",Object.assign({className:k},t,{style:$,ref:n}),r.createElement("div",{className:`${e}-children`},l),d||S&&y?C:null)})())}));"production"!==process.env.NODE_ENV&&(Np.displayName="Sider");var Pp={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"},Ip=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Pp}))},Rp=r.forwardRef(Ip);"production"!==process.env.NODE_ENV&&(Rp.displayName="EllipsisOutlined");const Mp=e.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var jp=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 _p=e=>{const{prefixCls:t,className:n,dashed:o}=e,i=jp(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=r.useContext(_o),l=a("menu",t),c=p({[`${l}-item-divider-dashed`]:!!o},n);return r.createElement(ap,Object.assign({className:c},i))},Ap=e=>{var t;const{className:n,children:o,icon:i,title:a,danger:l}=e,{prefixCls:c,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=r.useContext(Mp),{siderCollapsed:m}=r.useContext(kp);let v=a;void 0===a?v=s?o:"":!1===a&&(v="");const g={title:v};m||f||(g.title=null,g.open=!1);const h=x(o).length;let b=r.createElement(Wf,Object.assign({},Oe(e,["title","icon","danger"]),{className:p({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?h+1:h)},n),title:"string"==typeof a?a:void 0}),nl(i,{className:p(r.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),(e=>{const t=r.createElement("span",{className:`${c}-title-content`},o);return(!i||r.isValidElement(o)&&"span"===o.type)&&o&&e&&s&&"string"==typeof o?r.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):t})(f));return d||(b=r.createElement(zd,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${c}-inline-collapsed-tooltip`}),b)),b},Tp=r.createContext(null),Fp=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${xt(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${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"}}}},Bp=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${xt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${xt(n)})`}}}}},zp=e=>Object.assign({},Ci(e)),Dp=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:v,motionDurationMid:g,itemHoverColor:h,lineType:b,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:E,dangerItemSelectedColor:C,dangerItemActiveBg:S,dangerItemSelectedBg:$,popupBg:k,itemHoverBg:O,itemActiveBg:N,menuSubMenuBg:P,horizontalItemSelectedColor:I,horizontalItemSelectedBg:R,horizontalItemBorderRadius:M,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},zp(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},zp(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:h}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${xt(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:s,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:s,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${xt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${xt(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${m}`,`opacity ${g} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(",")}}}}}},Lp=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:xt(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:xt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Hp=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:s,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:v,collapsedIconSize:g}=e,h={height:r,lineHeight:xt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Lp(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Lp(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${xt(e.calc(a).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 ${f}`,`background ${f}`,`padding ${l} ${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`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${xt(e.calc(d).div(2).equal())} - ${xt(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:xt(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({},wi),{paddingInline:p})}}]},Vp=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,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, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`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({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},Wp=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).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(${xt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${xt(a)})`}}}}},qp=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:v,lineType:g,groupTitleLineHeight:h,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xi(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{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:`${xt(l)} ${xt(c)}`,fontSize:b,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].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:s,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Vp(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${xt(e.calc(r).mul(2).equal())} ${xt(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},Vp(e)),Wp(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\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}}}),Wp(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${xt(v)})`},"&::after":{transform:`rotate(45deg) translateX(${xt(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${xt(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${xt(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${xt(v)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Xp=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:v,colorBgTextHover:g,controlHeightLG:h,lineHeight:b,colorBgElevated:y,marginXXS:w,padding:x,fontSize:E,controlHeightSM:C,fontSizeLG:S,colorTextLightSolid:$,colorErrorHover:k}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,N=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,P=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,I=new Hr($).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:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:N,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:b,collapsedWidth:2*h,popupBg:y,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:1.15*h+"px",iconSize:E,iconMarginInlineEnd:C-E,collapsedIconSize:S,groupTitleFontSize:E,darkItemDisabledColor:new Hr($).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:$,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${N}px)`:`calc(100% - ${2*P}px)`}};const Gp=e=>{var t;const{popupClassName:n,icon:o,title:i,theme:a}=e,l=r.useContext(Mp),{prefixCls:c,inlineCollapsed:s,theme:u}=l,d=sf();let f;if(o){const e=r.isValidElement(i)&&"span"===i.type;f=r.createElement(r.Fragment,null,nl(o,{className:p(r.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),e?i:r.createElement("span",{className:`${c}-title-content`},i))}else f=s&&!d.length&&i&&"string"==typeof i?r.createElement("div",{className:`${c}-inline-collapsed-noicon`},i.charAt(0)):r.createElement("span",{className:`${c}-title-content`},i);const m=r.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[v]=fl("Menu");return r.createElement(Mp.Provider,{value:m},r.createElement(ip,Object.assign({},Oe(e,["icon"]),{title:f,popupClassName:p(c,n,`${c}-${a||u}`),popupStyle:{zIndex:v}})))};var Kp=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Up(e){return null===e||!1===e}const Yp={item:Ap,submenu:Gp,divider:_p},Qp=e.forwardRef(((e,t)=>{var n;const o=r.useContext(Tp),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:s}=r.useContext(_o),u=a(),{prefixCls:d,className:f,style:m,theme:v="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:b,siderCollapsed:y,rootClassName:w,mode:x,selectable:E,onClick:C,overflowedIndicatorPopupClassName:S}=e,$=Oe(Kp(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=dr("Menu");"production"!==process.env.NODE_ENV&&t(!("inlineCollapsed"in e&&"inline"!==x),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&t(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),t.deprecated("items"in e&&!e.children,"children","items")}null===(n=i.validator)||void 0===n||n.call(i,{mode:x});const k=Ko((function(){var e;null==C||C.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),O=i.mode||x,N=null!=E?E:i.selectable,P=r.useMemo((()=>void 0!==y?y:b),[b,y]),I={horizontal:{motionName:`${u}-slide-up`},inline:Ml(u),other:{motionName:`${u}-zoom-big`}},R=a("menu",d||i.prefixCls),M=rl(R),[j,_,A]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=ki("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:h,popupBg:b,darkPopupBg:y}=e,w=e.calc(r).div(7).mul(5).equal(),x=ti(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),E=ti(x,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:v,dangerItemSelectedColor:g,dangerItemActiveBg:h,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[qp(x),Fp(x),Hp(x),Dp(x,"light"),Dp(E,"dark"),Bp(x),su(x),mu(x,"slide-up"),mu(x,"slide-down"),Eu(x,"zoom-big")]}),Xp,{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:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(R,M,!o),T=p(`${R}-${v}`,null==s?void 0:s.className,f),F=r.useMemo((()=>{var e,t;if("function"==typeof g||Up(g))return g||null;if("function"==typeof i.expandIcon||Up(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||Up(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const n=null!==(e=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==s?void 0:s.expandIcon;return nl(n,{className:p(`${R}-submenu-expand-icon`,r.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==s?void 0:s.expandIcon,R]),B=r.useMemo((()=>({prefixCls:R,inlineCollapsed:P||!1,direction:c,firstLevel:!0,theme:v,mode:O,disableMenuItemTitleTooltip:h})),[R,P,c,h,v]);return j(r.createElement(Tp.Provider,{value:null},r.createElement(Mp.Provider,{value:B},r.createElement(gp,Object.assign({getPopupContainer:l,overflowedIndicator:r.createElement(Rp,null),overflowedIndicatorPopupClassName:p(R,`${R}-${v}`,S),mode:O,selectable:N,onClick:k},$,{inlineCollapsed:P,style:Object.assign(Object.assign({},null==s?void 0:s.style),m),className:T,prefixCls:R,direction:c,defaultMotions:I,expandIcon:F,ref:t,rootClassName:p(w,_,i.rootClassName,A,M),_internalComponents:Yp})))))})),Zp=e.forwardRef(((t,n)=>{const o=e.useRef(null),i=r.useContext(kp);return e.useImperativeHandle(n,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),r.createElement(Qp,Object.assign({ref:o},t,i))}));function Jp(e){return ti(e,{inputAffixPadding:e.paddingXXS})}Zp.Item=Ap,Zp.SubMenu=Gp,Zp.Divider=_p,Zp.ItemGroup=sp,"production"!==process.env.NODE_ENV&&(Zp.displayName="Menu");const em=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:v,controlOutline:g,colorErrorOutline:h,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${g}`,errorActiveShadow:`0 0 0 ${v}px ${h}`,warningActiveShadow:`0 0 0 ${v}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},tm=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),nm=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},tm(ti(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),rm=(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}}),om=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},rm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),im=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},nm(e))}),om(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),om(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),am=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lm=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},am(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),am(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},nm(e))}})}),cm=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},sm=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),um=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),dm=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sm(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},nm(e))}),um(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),um(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),fm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),pm=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:`${xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},fm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),fm(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:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),mm=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${xt(t)} ${xt(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},vm=e=>({padding:`${xt(e.paddingBlockSM)} ${xt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),gm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${xt(e.paddingBlock)} ${xt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},mm(e)),"&-sm":Object.assign({},vm(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),hm=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({},mm(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},vm(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 ${xt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${xt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${xt(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:`${xt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${xt(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"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{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 & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${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}}}})}},bm=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xi(e)),gm(e)),im(e)),dm(e)),cm(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ym=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 ${xt(e.inputAffixPadding)}`}}}},wm=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},gm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{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}}}),ym(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},xm=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},xi(e)),hm(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}}},lm(e)),pm(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}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Em=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()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,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,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Cm=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"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{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.paddingInline,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"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Sm=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var $m=ki("Input",(e=>{const t=ti(e,Jp(e));return[bm(t),Cm(t),wm(t),xm(t),Em(t),Sm(t),jc(t)]}),em,{resetFont:!1}),km={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"},Om=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:km}))},Nm=r.forwardRef(Om);"production"!==process.env.NODE_ENV&&(Nm.displayName="PlusOutlined");var Pm=e.createContext(null),Im={width:0,height:0,left:0,top:0};function Rm(e,t){var n=r.useRef(e),o=De(r.useState({}),2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var Mm=Math.pow(.995,20);function jm(t){var n=De(e.useState(0),2),r=n[0],o=n[1],i=e.useRef(0),a=e.useRef();return a.current=t,Nt((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var _m={width:0,height:0,left:0,top:0,right:0};function Am(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Tm(e){return String(e).replace(/"/g,"TABS_DQ")}function Fm(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var Bm=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null})),zm=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==P(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));"production"!==process.env.NODE_ENV&&(zm.displayName="ExtraContent");var Dm=r.forwardRef((function(t,n){var o=t.prefixCls,i=t.id,a=t.tabs,l=t.locale,c=t.mobile,s=t.more,u=void 0===s?{}:s,d=t.style,f=t.className,v=t.editable,g=t.tabBarGutter,h=t.rtl,b=t.removeAriaLabel,y=t.onTabClick,w=t.getPopupContainer,x=t.popupClassName,E=De(e.useState(!1),2),C=E[0],S=E[1],$=De(e.useState(null),2),k=$[0],O=$[1],N=u.icon,P=void 0===N?"More":N,I="".concat(i,"-more-popup"),M="".concat(o,"-dropdown"),j=null!==k?"".concat(I,"-").concat(k):null,_=null==l?void 0:l.dropdownAriaLabel;var A=r.createElement(gp,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),S(!1)},prefixCls:"".concat(M,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[k],"aria-label":void 0!==_?_:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,l=e.label,c=Fm(t,o,v,n);return r.createElement(Wf,{key:a,id:"".concat(I,"-").concat(a),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),v.onEdit("remove",{key:t,event:e})}(e,a)}},o||v.removeIcon||"×"))})));function T(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,r=t.length,o=0;o<r;o+=1){var i=t[n=(n+e+r)%r];if(!i.disabled)return void O(i.key)}}e.useEffect((function(){var e=document.getElementById(j);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),e.useEffect((function(){C||O(null)}),[C]);var F=R({},h?"marginRight":"marginLeft",g);a.length||(F.visibility="hidden",F.order=1);var B=p(R({},"".concat(M,"-rtl"),h)),z=c?null:r.createElement(Qd,m({prefixCls:M,overlay:A,visible:!!a.length&&C,onVisibleChange:S,overlayClassName:p(B,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:w},u),r.createElement("button",{type:"button",className:"".concat(o,"-nav-more"),style:F,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":I,id:"".concat(i,"-more"),"aria-expanded":C,onKeyDown:function(e){var t=e.which;if(C)switch(t){case ol.UP:T(-1),e.preventDefault();break;case ol.DOWN:T(1),e.preventDefault();break;case ol.ESC:S(!1);break;case ol.SPACE:case ol.ENTER:null!==k&&y(k,e)}else[ol.DOWN,ol.SPACE,ol.ENTER].includes(t)&&(S(!0),e.preventDefault())}},P));return r.createElement("div",{className:p("".concat(o,"-nav-operations"),f),style:d,ref:n},z,r.createElement(Bm,{prefixCls:o,locale:l,editable:v}))})),Lm=r.memo(Dm,(function(e,t){return t.tabMoving})),Hm=function(e){var t=e.prefixCls,n=e.id,o=e.active,i=e.tab,a=i.key,l=i.label,c=i.disabled,s=i.closeIcon,u=i.icon,d=e.closable,f=e.renderWrapper,m=e.removeAriaLabel,v=e.editable,g=e.onClick,h=e.onFocus,b=e.style,y="".concat(t,"-tab"),w=Fm(d,s,v,c);function x(e){c||g(e)}var E=r.useMemo((function(){return u&&"string"==typeof l?r.createElement("span",null,l):l}),[l,u]),C=r.createElement("div",{key:a,"data-node-key":Tm(a),className:p(y,R(R(R({},"".concat(y,"-with-remove"),w),"".concat(y,"-active"),o),"".concat(y,"-disabled"),c)),style:b,onClick:x},r.createElement("div",{role:"tab","aria-selected":o,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(y,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[ol.SPACE,ol.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:h},u&&r.createElement("span",{className:"".concat(y,"-icon")},u),l&&E),w&&r.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),v.onEdit("remove",{key:a,event:t})}},s||v.removeIcon||"×"));return f?f(C):C},Vm=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},Wm=function(e,t){return e[t?0:1]},qm=r.forwardRef((function(t,n){var o,i,a,l,c,s=t.className,u=t.style,d=t.id,f=t.animated,v=t.activeKey,g=t.rtl,h=t.extra,b=t.editable,y=t.locale,w=t.tabPosition,x=t.tabBarGutter,E=t.children,C=t.onTabClick,S=t.onTabScroll,$=t.indicator,k=r.useContext(Pm),O=k.prefixCls,N=k.tabs,P=e.useRef(null),I=e.useRef(null),M=e.useRef(null),_=e.useRef(null),A=e.useRef(null),T=e.useRef(null),F=e.useRef(null),B="top"===w||"bottom"===w,D=Rm(0,(function(e,t){B&&S&&S({direction:e>t?"left":"right"})})),L=De(D,2),H=L[0],V=L[1],W=Rm(0,(function(e,t){!B&&S&&S({direction:e>t?"top":"bottom"})})),q=De(W,2),X=q[0],G=q[1],K=De(e.useState([0,0]),2),U=K[0],Y=K[1],Q=De(e.useState([0,0]),2),Z=Q[0],J=Q[1],ee=De(e.useState([0,0]),2),te=ee[0],ne=ee[1],re=De(e.useState([0,0]),2),oe=re[0],ie=re[1],ae=(o=new Map,i=e.useRef([]),a=De(e.useState({}),2)[1],l=e.useRef("function"==typeof o?o():o),c=jm((function(){var e=l.current;i.current.forEach((function(t){e=t(e)})),i.current=[],l.current=e,a({})})),[l.current,function(e){i.current.push(e),c()}]),le=De(ae,2),ce=le[0],se=le[1],ue=function(t,n,r){return e.useMemo((function(){for(var e,r=new Map,o=n.get(null===(e=t[0])||void 0===e?void 0:e.key)||Im,i=o.left+o.width,a=0;a<t.length;a+=1){var l,c=t[a].key,s=n.get(c);s||(s=n.get(null===(l=t[a-1])||void 0===l?void 0:l.key)||Im);var u=r.get(c)||j({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[t.map((function(e){return e.key})).join("_"),n,r])}(N,ce,Z[0]),de=Wm(U,B),fe=Wm(Z,B),pe=Wm(te,B),me=Wm(oe,B),ve=de<fe+pe,ge=ve?de-me:de-pe,he="".concat(O,"-nav-operations-hidden"),be=0,ye=0;function we(e){return e<be?be:e>ye?ye:e}B&&g?(be=0,ye=Math.max(0,fe-ge)):(be=Math.min(0,ge-fe),ye=0);var xe=e.useRef(null),Ee=De(e.useState(),2),Ce=Ee[0],Se=Ee[1];function $e(){Se(Date.now())}function Oe(){xe.current&&clearTimeout(xe.current)}!function(t,n){var o=De(e.useState(),2),i=o[0],a=o[1],l=De(e.useState(0),2),c=l[0],s=l[1],u=De(e.useState(0),2),d=u[0],f=u[1],p=De(e.useState(),2),m=p[0],v=p[1],g=e.useRef(),h=e.useRef(),b=e.useRef(null);b.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(g.current)},onTouchMove:function(e){if(i){e.preventDefault();var t=e.touches[0],r=t.screenX,o=t.screenY;a({x:r,y:o});var l=r-i.x,u=o-i.y;n(l,u);var d=Date.now();s(d),f(d-c),v({x:l,y:u})}},onTouchEnd:function(){if(i&&(a(null),v(null),m)){var e=m.x/d,t=m.y/d,r=Math.abs(e),o=Math.abs(t);if(Math.max(r,o)<.1)return;var l=e,c=t;g.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(g.current):n(20*(l*=Mm),20*(c*=Mm))}),20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,i=Math.abs(t),a=Math.abs(r);i===a?o="x"===h.current?t:r:i>a?(o=t,h.current="x"):(o=r,h.current="y"),n(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function e(e){b.current.onTouchMove(e)}function n(e){b.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){b.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){b.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(_,(function(e,t){function n(e,t){e((function(e){return we(e+t)}))}return!!ve&&(B?n(V,e):n(G,t),Oe(),$e(),!0)})),e.useEffect((function(){return Oe(),Ce&&(xe.current=setTimeout((function(){Se(0)}),100)),Oe}),[Ce]);var Ne=function(t,n,r,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(r)):(c="height",s="top",u=-r),e.useMemo((function(){if(!d.length)return[0,0];for(var e=d.length,r=e,o=0;o<e;o+=1){var i=t.get(d[o].key)||_m;if(i[s]+i[c]>u+n){r=o-1;break}}for(var a=0,l=e-1;l>=0;l-=1)if((t.get(d[l].key)||_m)[s]<u){a=l+1;break}return a>=r?[0,0]:[a,r]}),[t,n,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(ue,ge,B?H:X,fe,pe,me,j(j({},t),{},{tabs:N})),Pe=De(Ne,2),Ie=Pe[0],Me=Pe[1],je=Ko((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(B){var n=H;g?t.right<H?n=t.right:t.right+t.width>H+ge&&(n=t.right+t.width-ge):t.left<-H?n=-t.left:t.left+t.width>-H+ge&&(n=-(t.left+t.width-ge)),G(0),V(we(n))}else{var r=X;t.top<-X?r=-t.top:t.top+t.height>-X+ge&&(r=-(t.top+t.height-ge)),V(0),G(we(r))}})),_e={};"top"===w||"bottom"===w?_e[g?"marginRight":"marginLeft"]=x:_e.marginTop=x;var Ae=N.map((function(e,t){var n=e.key;return r.createElement(Hm,{id:d,prefixCls:O,key:n,tab:e,style:0===t?void 0:_e,closable:e.closable,editable:b,active:n===v,renderWrapper:E,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){C(n,e)},onFocus:function(){je(n),$e(),_.current&&(g||(_.current.scrollLeft=0),_.current.scrollTop=0)}})})),Te=function(){return se((function(){var e,t=new Map,n=null===(e=A.current)||void 0===e?void 0:e.getBoundingClientRect();return N.forEach((function(e){var r,o=e.key,i=null===(r=A.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(Tm(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=De(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};e.useEffect((function(){Te()}),[N.map((function(e){return e.key})).join("_")]);var Be=jm((function(){var e=Vm(P),t=Vm(I),n=Vm(M);Y([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Vm(F);ne(r);var o=Vm(T);ie(o);var i=Vm(A);J([i[0]-r[0],i[1]-r[1]]),Te()})),ze=N.slice(0,Ie),Le=N.slice(Me+1),He=[].concat(Re(ze),Re(Le)),Ve=ue.get(v),We=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=De(e.useState(),2),d=u[0],f=u[1],p=e.useRef(),m=e.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function v(){Fe.cancel(p.current)}return e.useEffect((function(){var e={};if(n)if(r){e.width=m(n.width);var t=o?"right":"left";"start"===s&&(e[t]=n[t]),"center"===s&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=m(n.height),"start"===s&&(e.top=n.top),"center"===s&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return v(),p.current=Fe((function(){f(e)})),v}),[n,r,o,s,m]),{style:d}}({activeTabOffset:Ve,horizontal:B,indicator:$,rtl:g}),qe=We.style;e.useEffect((function(){je()}),[v,be,ye,Am(Ve),Am(ue),B]),e.useEffect((function(){Be()}),[g]);var Xe,Ge,Ke,Ue,Ye=!!He.length,Qe="".concat(O,"-nav-wrap");return B?g?(Ge=H>0,Xe=H!==ye):(Xe=H<0,Ge=H!==be):(Ke=X<0,Ue=X!==be),r.createElement(ke,{onResize:Be},r.createElement("div",{ref:z(n,P),role:"tablist",className:p("".concat(O,"-nav"),s),style:u,onKeyDown:function(){$e()}},r.createElement(zm,{ref:I,position:"left",extra:h,prefixCls:O}),r.createElement(ke,{onResize:Be},r.createElement("div",{className:p(Qe,R(R(R(R({},"".concat(Qe,"-ping-left"),Xe),"".concat(Qe,"-ping-right"),Ge),"".concat(Qe,"-ping-top"),Ke),"".concat(Qe,"-ping-bottom"),Ue)),ref:_},r.createElement(ke,{onResize:Be},r.createElement("div",{ref:A,className:"".concat(O,"-nav-list"),style:{transform:"translate(".concat(H,"px, ").concat(X,"px)"),transition:Ce?"none":void 0}},Ae,r.createElement(Bm,{ref:F,prefixCls:O,locale:y,editable:b,style:j(j({},0===Ae.length?void 0:_e),{},{visibility:Ye?"hidden":null})}),r.createElement("div",{className:p("".concat(O,"-ink-bar"),R({},"".concat(O,"-ink-bar-animated"),f.inkBar)),style:qe}))))),r.createElement(Lm,m({},t,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:T,prefixCls:O,tabs:He,className:!Ye&&he,tabMoving:!!Ce})),r.createElement(zm,{ref:M,position:"right",extra:h,prefixCls:O})))})),Xm=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,s=e.children;return r.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:p(n,l&&"".concat(n,"-active"),o),ref:t},s)}));"production"!==process.env.NODE_ENV&&(Xm.displayName="TabPane");var Gm=["renderTabBar"],Km=["label","key"],Um=function(e){var t=e.renderTabBar,n=et(e,Gm),o=r.useContext(Pm).tabs;return t?t(j(j({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=et(e,Km);return r.createElement(Xm,m({tab:t,key:n,tabKey:n},o))}))}),qm):r.createElement(qm,n)};"production"!==process.env.NODE_ENV&&(Um.displayName="TabNavListWrapper");var Ym=["key","forceRender","style","className","destroyInactiveTabPane"],Qm=function(e){var t=e.id,n=e.activeKey,o=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,l=r.useContext(Pm),c=l.prefixCls,s=l.tabs,u=o.tabPane,d="".concat(c,"-tabpane");return r.createElement("div",{className:p("".concat(c,"-content-holder"))},r.createElement("div",{className:p("".concat(c,"-content"),"".concat(c,"-content-").concat(i),R({},"".concat(c,"-content-animated"),u))},s.map((function(e){var i=e.key,l=e.forceRender,c=e.style,s=e.className,f=e.destroyInactiveTabPane,v=et(e,Ym),g=i===n;return r.createElement(ma,m({key:i,visible:g,forceRender:l,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,a=e.className;return r.createElement(Xm,m({},v,{prefixCls:d,id:t,tabKey:i,animated:u,active:g,style:j(j({},c),o),className:p(s,a),ref:n}))}))}))))};var Zm=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Jm=0,ev=r.forwardRef((function(t,n){var o=t.id,i=t.prefixCls,a=void 0===i?"rc-tabs":i,l=t.className,c=t.items,s=t.direction,u=t.activeKey,d=t.defaultActiveKey,f=t.editable,v=t.animated,g=t.tabPosition,h=void 0===g?"top":g,b=t.tabBarGutter,y=t.tabBarStyle,w=t.tabBarExtraContent,x=t.locale,E=t.more,C=t.destroyInactiveTabPane,S=t.renderTabBar,$=t.onChange,k=t.onTabClick,O=t.onTabScroll,I=t.getPopupContainer,M=t.popupClassName,_=t.indicator,A=et(t,Zm),T=r.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===P(e)&&"key"in e}))}),[c]),F="rtl"===s,B=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:j({inkBar:!0},"object"===P(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&N(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(v),z=De(e.useState(!1),2),D=z[0],L=z[1];e.useEffect((function(){L(Cu())}),[]);var H=De(Qo((function(){var e;return null===(e=T[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),2),V=H[0],W=H[1],q=De(e.useState((function(){return T.findIndex((function(e){return e.key===V}))})),2),X=q[0],G=q[1];e.useEffect((function(){var e,t=T.findIndex((function(e){return e.key===V}));-1===t&&(t=Math.max(0,Math.min(X,T.length-1)),W(null===(e=T[t])||void 0===e?void 0:e.key));G(t)}),[T.map((function(e){return e.key})).join("_"),V,X]);var K=De(Qo(null,{value:o}),2),U=K[0],Y=K[1];e.useEffect((function(){o||(Y("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":Jm)),Jm+=1)}),[]);var Q={id:U,activeKey:V,animated:B,tabPosition:h,rtl:F,mobile:D},Z=j(j({},Q),{},{editable:f,locale:x,more:E,tabBarGutter:b,onTabClick:function(e,t){null==k||k(e,t);var n=e!==V;W(e),n&&(null==$||$(e))},onTabScroll:O,extra:w,style:y,panes:null,getPopupContainer:I,popupClassName:M,indicator:_});return r.createElement(Pm.Provider,{value:{tabs:T,prefixCls:a}},r.createElement("div",m({ref:n,id:o,className:p(a,"".concat(a,"-").concat(h),R(R(R({},"".concat(a,"-mobile"),D),"".concat(a,"-editable"),f),"".concat(a,"-rtl"),F),l)},A),r.createElement(Um,m({},Z,{renderTabBar:S})),r.createElement(Qm,m({destroyInactiveTabPane:C},Q,{animated:B}))))}));"production"!==process.env.NODE_ENV&&(ev.displayName="Tabs");const tv={motionAppear:!1,motionEnter:!0,motionLeave:!0};var nv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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=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}`}}}}},[mu(e,"slide-up"),mu(e,"slide-down")]]},ov=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${xt(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,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:xt(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:xt(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xt(e.borderRadiusLG)} 0 0 ${xt(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 ${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},iv=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},xi(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:`${xt(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({},wi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${xt(e.paddingXXS)} ${xt(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"}}})}})}},av=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=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:`${xt(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n 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,\n > 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:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${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:xt(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${xt(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:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},lv=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${xt(e.borderRadius)} ${xt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${xt(e.borderRadius)} ${xt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${xt(e.borderRadius)} ${xt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xt(e.borderRadius)} 0 0 ${xt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},cv=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Si(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-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},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},sv=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{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:xt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:xt(e.marginXS)},marginLeft:{_skip_check_:!0,value:xt(i(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"}}}}},uv=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xi(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 ${xt(e.paddingXS)}`,background:"transparent",border:`${xt(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Si(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),cv(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"}}}}}};var dv=ki("Tabs",(e=>{const t=ti(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${xt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${xt(e.horizontalItemGutter)}`});return[lv(t),sv(t),av(t),iv(t),ov(t),uv(t),rv(t)]}),(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:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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}}));const fv=()=>null;"production"!==process.env.NODE_ENV&&(fv.displayName="DeprecatedTabPane");var pv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 mv=e=>{var t,n,o,i,a,l,c,s,u,d,f;const{type:m,className:v,rootClassName:g,size:h,onEdit:b,hideAdd:y,centered:w,addIcon:E,removeIcon:C,moreIcon:S,more:$,popupClassName:k,children:O,items:N,animated:P,style:I,indicatorSize:R,indicator:M}=e,j=pv(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:_}=j,{direction:A,tabs:T,getPrefixCls:F,getPopupContainer:B}=r.useContext(_o),z=F("tabs",_),D=rl(z),[L,H,V]=dv(z,D);let W;"editable-card"===m&&(W={onEdit:(e,t)=>{let{key:n,event:r}=t;null==b||b("add"===e?r:n,e)},removeIcon:null!==(t=null!=C?C:null==T?void 0:T.removeIcon)&&void 0!==t?t:r.createElement(Qa,null),addIcon:(null!=E?E:null==T?void 0:T.addIcon)||r.createElement(Nm,null),showAdd:!0!==y});const q=F();if("production"!==process.env.NODE_ENV){const t=dr("Tabs");"production"!==process.env.NODE_ENV&&t(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&t(!(R||(null==T?void 0:T.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const X=Wl(h),G=function(e,t){"production"!==process.env.NODE_ENV&&dr("Tabs").deprecated(!t,"Tabs.TabPane","items");if(e)return e;const n=x(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=nv(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(n)}(N,O),K=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},tv),{motionName:jl(e,"switch")})),t}(z,P),U=Object.assign(Object.assign({},null==T?void 0:T.style),I),Y={align:null!==(n=null==M?void 0:M.align)&&void 0!==n?n:null===(o=null==T?void 0:T.indicator)||void 0===o?void 0:o.align,size:null!==(c=null!==(a=null!==(i=null==M?void 0:M.size)&&void 0!==i?i:R)&&void 0!==a?a:null===(l=null==T?void 0:T.indicator)||void 0===l?void 0:l.size)&&void 0!==c?c:null==T?void 0:T.indicatorSize};return L(r.createElement(ev,Object.assign({direction:A,getPopupContainer:B},j,{items:G,className:p({[`${z}-${X}`]:X,[`${z}-card`]:["card","editable-card"].includes(m),[`${z}-editable-card`]:"editable-card"===m,[`${z}-centered`]:w},null==T?void 0:T.className,v,g,H,V,D),popupClassName:p(k,H,V,D),style:U,editable:W,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(s=null==T?void 0:T.more)||void 0===s?void 0:s.icon)&&void 0!==u?u:null==T?void 0:T.moreIcon)&&void 0!==d?d:S)&&void 0!==f?f:r.createElement(Rp,null),transitionName:`${q}-slide-up`},$),prefixCls:z,animated:K,indicator:Y})))};function vv(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function gv(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=vv(t,e,r)):n(o=vv(t,e,""))}}mv.TabPane=fv,"production"!==process.env.NODE_ENV&&(mv.displayName="Tabs");var hv=e.forwardRef((function(t,n){var r,o,i=t.inputElement,a=t.children,l=t.prefixCls,c=t.prefix,s=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,v=t.style,g=t.disabled,h=t.readOnly,b=t.focused,y=t.triggerFocus,w=t.allowClear,x=t.value,E=t.handleReset,C=t.hidden,S=t.classes,$=t.classNames,k=t.dataAttrs,O=t.styles,N=t.components,I=t.onClear,M=null!=a?a:i,_=(null==N?void 0:N.affixWrapper)||"span",A=(null==N?void 0:N.groupWrapper)||"span",T=(null==N?void 0:N.wrapper)||"span",F=(null==N?void 0:N.groupAddon)||"span",B=e.useRef(null),z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(t),D=e.cloneElement(M,{value:x,className:p(M.props.className,!z&&(null==$?void 0:$.variant))||null}),L=e.useRef(null);if(e.useImperativeHandle(n,(function(){return{nativeElement:L.current||B.current}})),z){var H=null;if(w){var V=!g&&!h&&x,W="".concat(l,"-clear-icon"),q="object"===P(w)&&null!=w&&w.clearIcon?w.clearIcon:"✖";H=e.createElement("span",{onClick:function(e){null==E||E(e),null==I||I()},onMouseDown:function(e){return e.preventDefault()},className:p(W,R(R({},"".concat(W,"-hidden"),!V),"".concat(W,"-has-suffix"),!!s)),role:"button",tabIndex:-1},q)}var X="".concat(l,"-affix-wrapper"),G=p(X,R(R(R(R(R({},"".concat(l,"-disabled"),g),"".concat(X,"-disabled"),g),"".concat(X,"-focused"),b),"".concat(X,"-readonly"),h),"".concat(X,"-input-with-clear-btn"),s&&w&&x),null==S?void 0:S.affixWrapper,null==$?void 0:$.affixWrapper,null==$?void 0:$.variant),K=(s||w)&&e.createElement("span",{className:p("".concat(l,"-suffix"),null==$?void 0:$.suffix),style:null==O?void 0:O.suffix},H,s);D=e.createElement(_,m({className:G,style:null==O?void 0:O.affixWrapper,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==k?void 0:k.affixWrapper,{ref:B}),c&&e.createElement("span",{className:p("".concat(l,"-prefix"),null==$?void 0:$.prefix),style:null==O?void 0:O.prefix},c),D,K)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(t)){var U="".concat(l,"-group"),Y="".concat(U,"-addon"),Q="".concat(U,"-wrapper"),Z=p("".concat(l,"-wrapper"),U,null==S?void 0:S.wrapper,null==$?void 0:$.wrapper),J=p(Q,R({},"".concat(Q,"-disabled"),g),null==S?void 0:S.group,null==$?void 0:$.groupWrapper);D=e.createElement(A,{className:J,ref:L},e.createElement(T,{className:Z},u&&e.createElement(F,{className:Y},u),D,d&&e.createElement(F,{className:Y},d)))}return e.cloneElement(D,{className:p(null===(r=D.props)||void 0===r?void 0:r.className,f)||null,style:j(j({},null===(o=D.props)||void 0===o?void 0:o.style),v),hidden:C})})),bv=["show"];function yv(e,t){return r.useMemo((function(){var n={};t&&(n.show="object"===P(t)&&t.formatter?t.formatter:!!t);var r=n=j(j({},n),e),o=r.show,i=et(r,bv);return j(j({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var wv=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],xv=e.forwardRef((function(t,n){var r=t.autoComplete,o=t.onChange,i=t.onFocus,a=t.onBlur,l=t.onPressEnter,c=t.onKeyDown,s=t.onKeyUp,u=t.prefixCls,d=void 0===u?"rc-input":u,f=t.disabled,v=t.htmlSize,g=t.className,h=t.maxLength,b=t.suffix,y=t.showCount,w=t.count,x=t.type,E=void 0===x?"text":x,C=t.classes,S=t.classNames,$=t.styles,k=t.onCompositionStart,O=t.onCompositionEnd,N=et(t,wv),P=De(e.useState(!1),2),I=P[0],M=P[1],_=e.useRef(!1),A=e.useRef(!1),T=e.useRef(null),F=e.useRef(null),B=function(e){T.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var 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)}}}}(T.current,e)},z=De(Qo(t.defaultValue,{value:t.value}),2),D=z[0],L=z[1],H=null==D?"":String(D),V=De(e.useState(null),2),W=V[0],q=V[1],X=yv(w,y),G=X.max||h,K=X.strategy(H),U=!!G&&K>G;e.useImperativeHandle(n,(function(){var e;return{focus:B,blur:function(){var e;null===(e=T.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=T.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=T.current)||void 0===e||e.select()},input:T.current,nativeElement:(null===(e=F.current)||void 0===e?void 0:e.nativeElement)||T.current}})),e.useEffect((function(){M((function(e){return(!e||!f)&&e}))}),[f]);var Y=function(e,t,n){var r,i,a=t;if(!_.current&&X.exceedFormatter&&X.max&&X.strategy(t)>X.max)t!==(a=X.exceedFormatter(t,{max:X.max}))&&q([(null===(r=T.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=T.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;L(a),T.current&&gv(T.current,e,o,a)};e.useEffect((function(){var e;W&&(null===(e=T.current)||void 0===e||e.setSelectionRange.apply(e,Re(W)))}),[W]);var Q,Z=function(e){Y(e,e.target.value,{source:"change"})},J=function(e){_.current=!1,Y(e,e.currentTarget.value,{source:"compositionEnd"}),null==O||O(e)},ee=function(e){l&&"Enter"===e.key&&!A.current&&(A.current=!0,l(e)),null==c||c(e)},te=function(e){"Enter"===e.key&&(A.current=!1),null==s||s(e)},ne=function(e){M(!0),null==i||i(e)},re=function(e){M(!1),null==a||a(e)},oe=U&&"".concat(d,"-out-of-range");return e.createElement(hv,m({},N,{prefixCls:d,className:p(g,oe),handleReset:function(e){L(""),B(),T.current&&gv(T.current,e,o)},value:H,focused:I,triggerFocus:B,suffix:function(){var t=Number(G)>0;if(b||X.show){var n=X.showFormatter?X.showFormatter({value:H,count:K,maxLength:G}):"".concat(K).concat(t?" / ".concat(G):"");return e.createElement(e.Fragment,null,X.show&&e.createElement("span",{className:p("".concat(d,"-show-count-suffix"),R({},"".concat(d,"-show-count-has-suffix"),!!b),null==S?void 0:S.count),style:j({},null==$?void 0:$.count)},n),b)}return null}(),disabled:f,classes:C,classNames:S,styles:$}),(Q=Oe(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),e.createElement("input",m({autoComplete:r},Q,{onChange:Z,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:p(d,R({},"".concat(d,"-disabled"),f),null==S?void 0:S.input),style:null==$?void 0:$.input,ref:T,size:v,type:E,onCompositionStart:function(e){_.current=!0,null==k||k(e)},onCompositionEnd:J}))))}));const Ev=t=>{let n;return"object"==typeof t&&(null==t?void 0:t.clearIcon)?n=t:t&&(n={clearIcon:e.createElement(Ka,null)}),n};function Cv(t,n){const r=e.useRef([]),o=()=>{r.current.push(setTimeout((()=>{var e,n,r,o;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=t.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=t.current)||void 0===o||o.input.removeAttribute("value"))})))};return e.useEffect((()=>(n&&o(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var Sv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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=e.forwardRef(((t,n)=>{var r;const{prefixCls:o,bordered:i=!0,status:a,size:l,disabled:c,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:v,className:g,style:h,styles:b,rootClassName:y,onChange:w,classNames:x,variant:E}=t,C=Sv(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=dr("Input");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:S,direction:$,input:k}=e.useContext(_o),O=S("input",o),N=e.useRef(null),P=rl(O),[I,R,M]=$m(O,P),{compactSize:j,compactItemClassnames:_}=Xl(O,$),A=Wl((e=>{var t;return null!==(t=null!=l?l:j)&&void 0!==t?t:e})),T=e.useContext(Fo),F=null!=c?c:T,{status:z,hasFeedback:D,feedbackIcon:L}=e.useContext(iu),H=ud(z,a),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(t)||!!D,W=e.useRef(V);if("production"!==process.env.NODE_ENV){const t=dr("Input");e.useEffect((()=>{var e;V&&!W.current&&"production"!==process.env.NODE_ENV&&t(document.activeElement===(null===(e=N.current)||void 0===e?void 0:e.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),W.current=V}),[V])}const q=Cv(N,!0),X=(D||d)&&e.createElement(e.Fragment,null,d,D&&L),G=Ev(null!=f?f:null==k?void 0:k.allowClear),[K,U]=dd("input",E,i);return I(e.createElement(xv,Object.assign({ref:B(n,N),prefixCls:O,autoComplete:null==k?void 0:k.autoComplete},C,{disabled:F,onBlur:e=>{q(),null==s||s(e)},onFocus:e=>{q(),null==u||u(e)},style:Object.assign(Object.assign({},null==k?void 0:k.style),h),styles:Object.assign(Object.assign({},null==k?void 0:k.styles),b),suffix:X,allowClear:G,className:p(g,y,M,P,_,null==k?void 0:k.className),onChange:e=>{q(),null==w||w(e)},addonBefore:v&&e.createElement(cu,{form:!0,space:!0},v),addonAfter:m&&e.createElement(cu,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},x),null==k?void 0:k.classNames),{input:p({[`${O}-sm`]:"small"===A,[`${O}-lg`]:"large"===A,[`${O}-rtl`]:"rtl"===$},null==x?void 0:x.input,null===(r=null==k?void 0:k.classNames)||void 0===r?void 0:r.input,R),variant:p({[`${O}-${K}`]:U},sd(O,H)),affixWrapper:p({[`${O}-affix-wrapper-sm`]:"small"===A,[`${O}-affix-wrapper-lg`]:"large"===A,[`${O}-affix-wrapper-rtl`]:"rtl"===$},R),wrapper:p({[`${O}-group-rtl`]:"rtl"===$},R),groupWrapper:p({[`${O}-group-wrapper-sm`]:"small"===A,[`${O}-group-wrapper-lg`]:"large"===A,[`${O}-group-wrapper-rtl`]:"rtl"===$,[`${O}-group-wrapper-${K}`]:U},sd(`${O}-group-wrapper`,H,D),R)})})))}));"production"!==process.env.NODE_ENV&&($v.displayName="Input");const kv=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var Ov=ki(["Input","OTP"],(e=>{const t=ti(e,Jp(e));return[kv(t)]}),em),Nv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Pv=r.forwardRef(((e,t)=>{const{value:n,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=Nv(e,["value","onChange","onActiveChange","index","mask"]),s=n&&"string"==typeof l?l:n,u=r.useRef(null);r.useImperativeHandle(t,(()=>u.current));const d=()=>{Fe((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return r.createElement($v,Object.assign({},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===l?"password":"text"}))}));var Iv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Rv(e){return(e||"").split("")}const Mv=r.forwardRef(((e,t)=>{const{prefixCls:n,length:o=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,variant:u,disabled:d,status:f,autoFocus:m,mask:v}=e,g=Iv(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=dr("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof v&&v.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:h,direction:b}=r.useContext(_o),y=h("otp",n),w=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:j({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Ja(n,"aria-"))||t.data&&Ja(n,"data-")||t.attr&&Za.includes(n))&&(r[n]=e[n])})),r}(g,{aria:!0,data:!0,attr:!0}),x=rl(y),[E,C,S]=Ov(y,x),$=Wl((e=>null!=i?i:e)),k=r.useContext(iu),O=ud(k.status,f),N=r.useMemo((()=>Object.assign(Object.assign({},k),{status:O,hasFeedback:!1,feedbackIcon:null})),[k,O]),P=r.useRef(null),I=r.useRef({});r.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=I.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=I.current[t])||void 0===e||e.blur()},nativeElement:P.current})));const R=e=>s?s(e):e,[M,_]=r.useState(Rv(R(a||"")));r.useEffect((()=>{void 0!==l&&_(Rv(l))}),[l]);const A=Ko((e=>{_(e),c&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>M[t]!==e))&&c(e.join(""))})),T=Ko(((e,t)=>{let n=Re(M);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Rv(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=R(n.map((e=>e||" ")).join(""));return n=Rv(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),F=(e,t)=>{var n;const r=T(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=I.current[i])||void 0===n||n.focus()),A(r)},B=e=>{var t;null===(t=I.current[e])||void 0===t||t.focus()},z={variant:u,disabled:d,status:O,mask:v};return E(r.createElement("div",Object.assign({},w,{ref:P,className:p(y,{[`${y}-sm`]:"small"===$,[`${y}-lg`]:"large"===$,[`${y}-rtl`]:"rtl"===b},S,C)}),r.createElement(iu.Provider,{value:N},Array.from({length:o}).map(((e,t)=>{const n=`otp-${t}`,o=M[t]||"";return r.createElement(Pv,Object.assign({ref:e=>{I.current[t]=e},key:n,index:t,size:$,htmlSize:1,className:`${y}-input`,onChange:F,value:o,onActiveChange:B,autoFocus:0===t&&m},z))})))))}));var jv={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"},_v=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:jv}))},Av=r.forwardRef(_v);"production"!==process.env.NODE_ENV&&(Av.displayName="EyeInvisibleOutlined");var Tv={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"},Fv=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Tv}))},Bv=r.forwardRef(Fv);"production"!==process.env.NODE_ENV&&(Bv.displayName="EyeOutlined");var zv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Dv=e=>e?r.createElement(Bv,null):r.createElement(Av,null),Lv={click:"onClick",hover:"onMouseOver"},Hv=r.forwardRef(((t,n)=>{const{disabled:o,action:i="click",visibilityToggle:a=!0,iconRender:l=Dv}=t,c="object"==typeof a&&void 0!==a.visible,[s,u]=e.useState((()=>!!c&&a.visible)),d=e.useRef(null);r.useEffect((()=>{c&&u(a.visible)}),[c,a]);const f=Cv(d),m=()=>{o||(s&&f(),u((e=>{var t;const n=!e;return"object"==typeof a&&(null===(t=a.onVisibleChange)||void 0===t||t.call(a,n)),n})))},{className:v,prefixCls:g,inputPrefixCls:h,size:b}=t,y=zv(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=r.useContext(_o),x=w("input",h),E=w("input-password",g),C=a&&(e=>{const t=Lv[i]||"",n=l(s),o={[t]:m,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return r.cloneElement(r.isValidElement(n)?n:r.createElement("span",null,n),o)})(E),S=p(E,v,{[`${E}-${b}`]:!!b}),$=Object.assign(Object.assign({},Oe(y,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:S,prefixCls:x,suffix:C});return b&&($.size=b),r.createElement($v,Object.assign({ref:B(n,d)},$))}));"production"!==process.env.NODE_ENV&&(Hv.displayName="Input.Password");var Vv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Wv=r.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:g}=e,h=Vv(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:y}=r.useContext(_o),w=r.useRef(!1),x=b("input-search",n),E=b("input",o),{compactSize:C}=Xl(x,y),S=Wl((e=>{var t;return null!==(t=null!=a?a:C)&&void 0!==t?t:e})),$=r.useRef(null),k=e=>{var t;document.activeElement===(null===(t=$.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;f&&f(null===(n=null===(t=$.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},N="boolean"==typeof c?r.createElement(md,null):null,P=`${x}-button`;let I;const R=c||{},M=R.type&&!0===R.type.__ANT_BUTTON;I=M||"button"===R.type?nl(R,Object.assign({onMouseDown:k,onClick:e=>{var t,n;null===(n=null===(t=null==R?void 0:R.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},M?{className:P,size:S}:{})):r.createElement(Dc,{className:P,type:c?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:k,onClick:O,loading:u,icon:N},c),s&&(I=[I,nl(s,{key:"addonAfter"})]);const j=p(x,{[`${x}-rtl`]:"rtl"===y,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!c},i);return r.createElement($v,Object.assign({ref:B($,t),onPressEnter:e=>{w.current||u||O(e)}},h,{size:S,onCompositionStart:e=>{w.current=!0,null==v||v(e)},onCompositionEnd:e=>{w.current=!1,null==g||g(e)},prefixCls:E,addonAfter:I,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==m||m(e)},className:j,disabled:d}))}));"production"!==process.env.NODE_ENV&&(Wv.displayName="Search");var qv,Xv=["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"],Gv={};function Kv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;qv||((qv=document.createElement("textarea")).setAttribute("tab-index","-1"),qv.setAttribute("aria-hidden","true"),document.body.appendChild(qv)),e.getAttribute("wrap")?qv.setAttribute("wrap",e.getAttribute("wrap")):qv.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Gv[n])return Gv[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:Xv.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Gv[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;qv.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),qv.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=qv.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){qv.value=" ";var p=qv.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var Uv=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Yv=r.forwardRef((function(e,t){var n=e,o=n.prefixCls,i=n.defaultValue,a=n.value,l=n.autoSize,c=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange,v=n.onInternalAutoSize,g=et(n,Uv),h=De(Qo(i,{value:a,postState:function(e){return null!=e?e:""}}),2),b=h[0],y=h[1],w=r.useRef();r.useImperativeHandle(t,(function(){return{textArea:w.current}}));var x=De(r.useMemo((function(){return l&&"object"===P(l)?[l.minRows,l.maxRows]:[]}),[l]),2),E=x[0],C=x[1],S=!!l,$=De(r.useState(2),2),k=$[0],O=$[1],N=De(r.useState(),2),I=N[0],M=N[1],_=function(){O(0),"test"===process.env.NODE_ENV&&(null==v||v())};Ot((function(){S&&_()}),[a,E,C,S]),Ot((function(){if(0===k)O(1);else if(1===k){var e=Kv(w.current,!1,E,C);O(2),M(e)}else!function(){try{if(document.activeElement===w.current){var e=w.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;w.current.setSelectionRange(t,n),w.current.scrollTop=r}}catch(e){}}()}),[k]);var A=r.useRef(),T=function(){Fe.cancel(A.current)};r.useEffect((function(){return T}),[]);var F=S?I:null,B=j(j({},u),F);return 0!==k&&1!==k||(B.overflowY="hidden",B.overflowX="hidden"),r.createElement(ke,{onResize:function(e){2===k&&(null==c||c(e),l&&(T(),A.current=Fe((function(){_()}))))},disabled:!(l||c)},r.createElement("textarea",m({},g,{ref:w,style:B,className:p(o,s,R({},"".concat(o,"-disabled"),d)),disabled:d,value:b,onChange:function(e){y(e.target.value),null==f||f(e)}})))})),Qv=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Zv=e.forwardRef((function(t,n){var r,o=t.defaultValue,i=t.value,a=t.onFocus,l=t.onBlur,c=t.onChange,s=t.allowClear,u=t.maxLength,d=t.onCompositionStart,f=t.onCompositionEnd,v=t.suffix,g=t.prefixCls,h=void 0===g?"rc-textarea":g,b=t.showCount,y=t.count,w=t.className,x=t.style,E=t.disabled,C=t.hidden,S=t.classNames,$=t.styles,k=t.onResize,O=t.onClear,N=t.onPressEnter,P=t.readOnly,I=t.autoSize,M=t.onKeyDown,_=et(t,Qv),A=De(Qo(o,{value:i,defaultValue:o}),2),T=A[0],F=A[1],B=null==T?"":String(T),z=De(e.useState(!1),2),D=z[0],L=z[1],H=e.useRef(!1),V=De(e.useState(null),2),W=V[0],q=V[1],X=e.useRef(null),G=e.useRef(null),K=function(){var e;return null===(e=G.current)||void 0===e?void 0:e.textArea},U=function(){K().focus()};e.useImperativeHandle(n,(function(){var e;return{resizableTextArea:G.current,focus:U,blur:function(){K().blur()},nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||K()}})),e.useEffect((function(){L((function(e){return!E&&e}))}),[E]);var Y=De(e.useState(null),2),Q=Y[0],Z=Y[1];e.useEffect((function(){var e;Q&&(e=K()).setSelectionRange.apply(e,Re(Q))}),[Q]);var J,ee=yv(y,b),te=null!==(r=ee.max)&&void 0!==r?r:u,ne=Number(te)>0,re=ee.strategy(B),oe=!!te&&re>te,ie=function(e,t){var n=t;!H.current&&ee.exceedFormatter&&ee.max&&ee.strategy(t)>ee.max&&t!==(n=ee.exceedFormatter(t,{max:ee.max}))&&Z([K().selectionStart||0,K().selectionEnd||0]),F(n),gv(e.currentTarget,e,c,n)},ae=v;ee.show&&(J=ee.showFormatter?ee.showFormatter({value:B,count:re,maxLength:te}):"".concat(re).concat(ne?" / ".concat(te):""),ae=e.createElement(e.Fragment,null,ae,e.createElement("span",{className:p("".concat(h,"-data-count"),null==S?void 0:S.count),style:null==$?void 0:$.count},J)));var le=!I&&!b&&!s;return e.createElement(hv,{ref:X,value:B,allowClear:s,handleReset:function(e){F(""),U(),gv(K(),e,c)},suffix:ae,prefixCls:h,classNames:j(j({},S),{},{affixWrapper:p(null==S?void 0:S.affixWrapper,R(R({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),s))}),disabled:E,focused:D,className:p(w,oe&&"".concat(h,"-out-of-range")),style:j(j({},x),W&&!le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof J?J:void 0}},hidden:C,readOnly:P,onClear:O},e.createElement(Yv,m({},_,{autoSize:I,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&N&&N(e),null==M||M(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){L(!0),null==a||a(e)},onBlur:function(e){L(!1),null==l||l(e)},onCompositionStart:function(e){H.current=!0,null==d||d(e)},onCompositionEnd:function(e){H.current=!1,ie(e,e.currentTarget.value),null==f||f(e)},className:p(null==S?void 0:S.textarea),style:j(j({},null==$?void 0:$.textarea),{},{resize:null==x?void 0:x.resize}),disabled:E,prefixCls:h,onResize:function(e){var t;null==k||k(e),null!==(t=K())&&void 0!==t&&t.style.height&&q(!0)},ref:G,readOnly:P})))})),Jv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 eg=e.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:c,status:s,allowClear:u,classNames:d,rootClassName:f,className:m,style:v,styles:g,variant:h}=e,b=Jv(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=dr("TextArea");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:y,direction:w,textArea:x}=r.useContext(_o),E=Wl(l),C=r.useContext(Fo),S=null!=c?c:C,{status:$,hasFeedback:k,feedbackIcon:O}=r.useContext(iu),N=ud($,s),P=r.useRef(null);r.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=P.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=P.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=P.current)||void 0===e?void 0:e.blur()}}}));const I=y("input",i),R=rl(I),[M,j,_]=$m(I,R),[A,T]=dd("textArea",h,a),F=Ev(null!=u?u:null==x?void 0:x.allowClear);return M(r.createElement(Zv,Object.assign({autoComplete:null==x?void 0:x.autoComplete},b,{style:Object.assign(Object.assign({},null==x?void 0:x.style),v),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:S,allowClear:F,className:p(_,R,m,f,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==x?void 0:x.classNames),{textarea:p({[`${I}-sm`]:"small"===E,[`${I}-lg`]:"large"===E},j,null==d?void 0:d.textarea,null===(n=null==x?void 0:x.classNames)||void 0===n?void 0:n.textarea),variant:p({[`${I}-${A}`]:T},sd(I,N)),affixWrapper:p(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:"rtl"===w,[`${I}-affix-wrapper-sm`]:"small"===E,[`${I}-affix-wrapper-lg`]:"large"===E,[`${I}-textarea-show-count`]:e.showCount||(null===(o=e.count)||void 0===o?void 0:o.show)},j)}),prefixCls:I,suffix:k&&r.createElement("span",{className:`${I}-textarea-suffix`},O),ref:P})))})),tg=$v;tg.Group=t=>{const{getPrefixCls:n,direction:o}=e.useContext(_o),{prefixCls:i,className:a}=t,l=n("input-group",i),c=n("input"),[s,u]=$m(c),d=p(l,{[`${l}-lg`]:"large"===t.size,[`${l}-sm`]:"small"===t.size,[`${l}-compact`]:t.compact,[`${l}-rtl`]:"rtl"===o},u,a),f=e.useContext(iu),m=e.useMemo((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);if("production"!==process.env.NODE_ENV){dr("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return s(r.createElement("span",{className:d,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},r.createElement(iu.Provider,{value:m},t.children)))},tg.Search=Wv,tg.TextArea=eg,tg.Password=Hv,tg.OTP=Mv;const ng=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},rg=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:c,headerColor:s,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:p,motionDurationMid:m,motionDurationSlow:v,fontSize:g,borderRadius:h,bodyBg:b,headerBg:y,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{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:w,transition:`all ${m}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:xt(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${m}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,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(p).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}}}},ng(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:s,lineHeight:xt(l),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:g,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}};var og=ki("Layout",(e=>[rg(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ig=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 ag(e){let{suffixCls:t,tagName:n,displayName:o}=e;return e=>{const i=r.forwardRef(((o,i)=>r.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},o))));return"production"!==process.env.NODE_ENV&&(i.displayName=o),i}}const lg=r.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:o,className:i,tagName:a}=e,l=ig(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=r.useContext(_o),s=c("layout",n),[u,d,f]=og(s),m=o?`${s}-${o}`:s;return u(r.createElement(a,Object.assign({className:p(n||m,i,d,f),ref:t},l)))})),cg=r.forwardRef(((e,t)=>{const{direction:n}=r.useContext(_o),[o,i]=r.useState([]),{prefixCls:a,className:l,rootClassName:c,children:s,hasSider:u,tagName:d,style:f}=e,m=Oe(ig(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:v,layout:g}=r.useContext(_o),h=v("layout",a),b=function(e,t,n){return"boolean"==typeof n?n:!!e.length||x(t).some((e=>e.type===Np))}(o,s,u),[y,w,E]=og(h),C=p(h,{[`${h}-has-sider`]:b,[`${h}-rtl`]:"rtl"===n},null==g?void 0:g.className,l,c,w,E),S=r.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Re(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return y(r.createElement(Cp.Provider,{value:S},r.createElement(d,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},null==g?void 0:g.style),f)},m),s)))})),sg=ag({tagName:"div",displayName:"Layout"})(cg),ug=ag({suffixCls:"header",tagName:"header",displayName:"Header"})(lg),dg=ag({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(lg),fg=ag({suffixCls:"content",tagName:"main",displayName:"Content"})(lg),pg=sg;function mg(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}pg.Header=ug,pg.Footer=dg,pg.Content=fg,pg.Sider=Np,pg._InternalSiderContext=kp;mg(".appInput {\n font-size: var(--font-14);\n font-weight: 500;\n color: #1e1f21;\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: 14px;\n text-align: left;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n &:hover {\n .ant-input {\n border-color: #d9d9d9;\n }\n }\n\n &:has(.ant-input-affix-wrapper) {\n .ant-input {\n border: none !important;\n height: unset !important;\n }\n }\n .ant-input-affix-wrapper {\n height: 40px;\n display: flex;\n align-items: center;\n .ant-input-outlined:focus-within {\n box-shadow: unset !important;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n }\n .ant-input-outlined {\n height: 40px;\n &:hover {\n border-color: #d9d9d9;\n }\n &:focus {\n box-shadow: unset;\n }\n &:focus-within {\n box-shadow: unset;\n border-color: #d9d9d9;\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");mg(".appButton {\n width: max-content;\n\n .ant-btn {\n background-color: red;\n padding: 12px;\n &:hover {\n border-color: transparent !important;\n outline: unset !important;\n box-shadow: unset !important;\n }\n }\n}\n");mg('.sideBar {\n height: 100vh;\n .sider {\n height: 100%;\n .ant-layout-sider-children {\n height: 100%;\n display: flex;\n flex-direction: column;\n row-gap: 2.875rem;\n .ant-menu {\n border: none;\n }\n }\n }\n}\n\n.logo {\n height: 64px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px;\n}\n\n.menu {\n border-right: 0;\n}\n\n.footer {\n position: relative;\n &::before {\n content: "";\n height: 1px;\n width: 80%;\n position: absolute;\n top: 0;\n right: 50%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #acacac;\n }\n}\n\n.tag {\n margin-left: 8px;\n}\n');var vg=pg.Sider;mg(".appTextArea {\n .ant-input-outlined {\n border-color: #bfbebe;\n &:hover {\n border-color: #bfbebe;\n }\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");mg(".appTab {\n .tab {\n .ant-tabs-nav {\n &::before {\n border: unset !important;\n }\n .ant-tabs-nav-wrap {\n .ant-tabs-nav-list {\n display: flex;\n gap: 3.5rem;\n align-items: center;\n .ant-tabs-tab {\n margin: 0;\n }\n .ant-tabs-ink-bar {\n display: none;\n }\n }\n }\n }\n }\n}\n");exports.AppButton=function(e){var t=e.type,n=e.size,r=e.className,o=e.handleClick,i=e.icon,a=e.text,l=e.disabled,c=e.iconPosition,s=e.isLoading;return d.jsx("div",{className:"appButton ".concat(r),children:d.jsx(Dc,{disabled:l,type:t,className:["customBtn",i?"btn-icon":"","right"===c?"iconRight":""].join(" "),size:n,onClick:o,icon:i,loading:s,children:a})})},exports.AppInput=function(t){var n=t.className,r=t.label,o=t.name,i=t.value,a=t.dataTestId,l=t.type,c=t.id,s=t.disabled,u=t.handleChange,f=t.onClick,p=t.defaultValue,m=t.onPressEnter,v=t.isAutoFocus,g=t.triggerFocus,h=t.isOptional,b=t.errorMessage,y=t.suffixIcon,w=t.prefixIcon,x=e.useRef(null);e.useEffect((function(){v&&x.current&&x.current.focus()}),[g,v]);var E=h?"".concat(r," (optional)"):r;return d.jsxs("div",{className:"appInput ".concat(n),children:[d.jsx(tg,{type:l,"data-test-id":a,id:c,disabled:s,name:o,className:"input",value:i,onChange:u,onClick:f,defaultValue:p,onPressEnter:m,placeholder:E,ref:x,prefix:w&&w,suffix:y&&y}),b&&d.jsx("div",{className:"error",children:b})]})},exports.AppSidebar=function(e){var t=e.links,n=e.logo,r=e.footerLinks,o=e.className,i=function(e){window.location.href=e},a=t.map((function(e){return{key:e.path,icon:e.icon,label:d.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&d.jsx("span",{className:"tag",children:e.tag})]})}})),l=null==r?void 0:r.map((function(e){return{key:e.path,label:d.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return d.jsx("div",{className:"sideBar ".concat(o),children:d.jsxs(vg,{className:"sider",children:[d.jsx("div",{className:"logo",children:n}),d.jsx(Zp,{mode:"inline",className:"menu",items:a}),r&&d.jsx("div",{className:"footer",children:d.jsx(Zp,{mode:"inline",items:l})})]})})},exports.AppTab=function(e){var t=e.className,n=e.items,r=e.handleChange,o=e.defaultActiveKey;return d.jsx("div",{className:"appTab ".concat(t),children:d.jsx(mv,{defaultActiveKey:o,items:n,onChange:r,className:"tab"})})},exports.AppTextarea=function(e){var t=e.id,n=e.placeholder,r=e.name,o=e.value,i=e.dataTestId,a=e.defaultValue,l=e.onPressEnter,c=e.handleChange,s=e.rows,u=e.cols,f=e.className,p=e.error;return d.jsxs("div",{className:"appTextArea ".concat(f),children:[d.jsx(tg.TextArea,{"data-test-id":i,id:t,name:r,placeholder:n,value:o,className:"textArea",onChange:c,defaultValue:a,onPressEnter:l,rows:s,cols:u}),p&&d.jsx("div",{className:"error",children:p})]})};
25
+ */"production"===process.env.NODE_ENV?v.exports=function(){if(g)return h;g=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case s:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),h.ContextConsumer=l,h.ContextProvider=a,h.Element=t,h.ForwardRef=s,h.Fragment=r,h.Lazy=p,h.Memo=f,h.Portal=n,h.Profiler=i,h.StrictMode=o,h.Suspense=u,h.SuspenseList=d,h.isAsyncMode=function(){return!1},h.isConcurrentMode=function(){return!1},h.isContextConsumer=function(e){return v(e)===l},h.isContextProvider=function(e){return v(e)===a},h.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},h.isForwardRef=function(e){return v(e)===s},h.isFragment=function(e){return v(e)===r},h.isLazy=function(e){return v(e)===p},h.isMemo=function(e){return v(e)===f},h.isPortal=function(e){return v(e)===n},h.isProfiler=function(e){return v(e)===i},h.isStrictMode=function(e){return v(e)===o},h.isSuspense=function(e){return v(e)===u},h.isSuspenseList=function(e){return v(e)===d},h.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},h.typeOf=v,h}():v.exports=(b||(b=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var g=e.type;switch(g){case r:case i:case o:case u:case d:return g;default:var v=g&&g.$$typeof;switch(v){case c:case l:case s:case p:case f:case a:return v;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var v=l,h=a,b=t,x=s,w=r,C=p,E=f,S=n,$=i,O=o,k=u,N=d,j=!1,P=!1;y.ContextConsumer=v,y.ContextProvider=h,y.Element=b,y.ForwardRef=x,y.Fragment=w,y.Lazy=C,y.Memo=E,y.Portal=S,y.Profiler=$,y.StrictMode=O,y.Suspense=k,y.SuspenseList=N,y.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isContextConsumer=function(e){return g(e)===l},y.isContextProvider=function(e){return g(e)===a},y.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},y.isForwardRef=function(e){return g(e)===s},y.isFragment=function(e){return g(e)===r},y.isLazy=function(e){return g(e)===p},y.isMemo=function(e){return g(e)===f},y.isPortal=function(e){return g(e)===n},y.isProfiler=function(e){return g(e)===i},y.isStrictMode=function(e){return g(e)===o},y.isSuspense=function(e){return g(e)===u},y.isSuspenseList=function(e){return g(e)===d},y.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},y.typeOf=g}()),y);var x=v.exports;function w(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return e.Children.forEach(t,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(w(e)):x.isFragment(e)&&e.props?r=r.concat(w(e.props.children,n)):r.push(e))})),r}var C={},E=[];function S(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=E.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function $(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=E.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function O(){C={}}function k(e,t,n){t||C[n]||(e(!1,n),C[n]=!0)}function N(e,t){k(S,e,t)}function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function P(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}function I(e,t,n){return(t=P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e){return e instanceof HTMLElement||e instanceof SVGElement}function A(n){var r,o=function(e){return e&&"object"===j(e)&&T(e.nativeElement)?e.nativeElement:T(e)?e:null}(n);return o||(n instanceof e.Component?null===(r=t.findDOMNode)||void 0===r?void 0:r.call(t,n):null)}function _(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}N.preMessage=function(e){E.push(e)},N.resetWarned=O,N.noteOnce=function(e,t){k($,e,t)};var B=function(e,t){"function"==typeof e?e(t):"object"===j(e)&&e&&"current"in e&&(e.current=t)},L=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){B(t,e)}))}},F=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _((function(){return L.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},z=function(e){var t,n,r=x.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===x.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===x.ForwardRef)};Number(e.version.split(".")[0]);var D=r.createContext(null);var H=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}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(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),V="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,W="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),q="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(W):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var X=["top","right","bottom","left","width","height","size","weight"],K="undefined"!=typeof MutationObserver,G=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){q(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){V&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),K?(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(){V&&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(e){var t=e.propertyName,n=void 0===t?"":t;X.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),U=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},Y=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||W},Z=re(0,0,0,0);function Q(e){return parseFloat(e)||0}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Q(e["border-"+n+"-width"])}),0)}function ee(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Z;var r=Y(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Q(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Q(r.width),c=Q(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=J(r,"left","right")+i),Math.round(c+a)!==n&&(c-=J(r,"top","bottom")+a)),!function(e){return e===Y(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return re(o.left,o.top,l,c)}var te="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Y(e).SVGGraphicsElement}:function(e){return e instanceof Y(e).SVGElement&&"function"==typeof e.getBBox};function ne(e){return V?te(e)?function(e){var t=e.getBBox();return re(0,0,t.width,t.height)}(e):ee(e):Z}function re(e,t,n,r){return{x:e,y:t,width:n,height:r}}var oe=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=re(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ne(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ie=function(e,t){var n,r,o,i,a,l,c,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),U(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);U(this,{target:e,contentRect:s})},ae=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new H,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Y(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new oe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Y(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new ie(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),le="undefined"!=typeof WeakMap?new WeakMap:new H,ce=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=G.getInstance(),r=new ae(t,n,this);le.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ce.prototype[e]=function(){var t;return(t=le.get(this))[e].apply(t,arguments)}}));var se=void 0!==W.ResizeObserver?W.ResizeObserver:ce,ue=new Map;function de(e){e.forEach((function(e){var t,n=e.target;null===(t=ue.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var fe=new se(de);function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(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,P(r.key),r)}}function ge(e,t,n){return t&&me(e.prototype,t),n&&me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ve(e,t){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ve(e,t)}function he(e,t){if("function"!=typeof t&&null!==t)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&&ve(e,t)}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}function ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ye=function(){return!!e})()}function xe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function we(e){var t=ye();return function(){var n,r=be(e);if(t){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xe(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ce=function(){he(t,r.Component);var e=we(t);function t(){return pe(this,t),e.apply(this,arguments)}return ge(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Ee(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(D),c="function"==typeof n,s=c?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&r.isValidElement(s)&&z(s),f=d?s.ref:null,p=F(f,i),m=function(){var e;return A(i.current)||(i.current&&"object"===j(i.current)?A(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||A(a.current)};r.useImperativeHandle(t,(function(){return m()}));var g=r.useRef(e);g.current=e;var v=r.useCallback((function(e){var t=g.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var m=c===Math.round(i)?i:c,v=s===Math.round(a)?a:s,h=M(M({},p),{},{offsetWidth:m,offsetHeight:v});null==l||l(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return r.useEffect((function(){var e,t,n=m();return n&&!o&&(e=n,t=v,ue.has(e)||(ue.set(e,new Set),fe.observe(e)),ue.get(e).add(t)),function(){return function(e,t){ue.has(e)&&(ue.get(e).delete(t),ue.get(e).size||(fe.unobserve(e),ue.delete(e)))}(n,v)}}),[i.current,o]),r.createElement(Ce,{ref:a},d?r.cloneElement(s,{ref:p}):s)}var Se=r.forwardRef(Ee);"production"!==process.env.NODE_ENV&&(Se.displayName="SingleObserver");function $e(e,t){var n=e.children,o="function"==typeof n?[n]:w(n);return"production"!==process.env.NODE_ENV&&(o.length>1?S(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&S(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Se,m({},e,{key:i,ref:0===o?t:void 0}),n)}))}var Oe=r.forwardRef($e);function ke(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function je(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Pe(e,t){if(e){if("string"==typeof e)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}function Ie(e){return function(e){if(Array.isArray(e))return Ne(e)}(e)||je(e)||Pe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"!==process.env.NODE_ENV&&(Oe.displayName="ResizeObserver"),Oe.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(D),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(D.Provider,{value:l},t)};var Re=function(e){return+setTimeout(e,16)},Me=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Re=function(e){return window.requestAnimationFrame(e)},Me=function(e){return window.cancelAnimationFrame(e)});var Te=0,Ae=new Map;function _e(e){Ae.delete(e)}var Be=function(e){var t=Te+=1;return function n(r){if(0===r)_e(t),e();else{var o=Re((function(){n(r-1)}));Ae.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function Le(e){if(Array.isArray(e))return e}function Fe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ze(e,t){return Le(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||Pe(e,t)||Fe()}function De(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function He(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}Be.cancel=function(e){var t=Ae.get(e);return _e(e),Me(t)},"production"!==process.env.NODE_ENV&&(Be.ids=function(){return Ae});var Ve="data-rc-order",We="data-rc-priority",qe="rc-util-key",Xe=new Map;function Ke(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):qe}function Ge(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ue(e){return Array.from((Xe.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!He())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(Ve,a),l&&i&&c.setAttribute(We,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=Ge(t),u=s.firstChild;if(r){if(l){var d=(t.styles||Ue(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Ve)))return!1;var t=Number(e.getAttribute(We)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ge(t);return(t.styles||Ue(n)).find((function(n){return n.getAttribute(Ke(t))===e}))}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ze(e,t);n&&Ge(t).removeChild(n)}function Je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ge(n),o=Ue(r),i=M(M({},n),{},{styles:o});!function(e,t){var n=Xe.get(e);if(!n||!function(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}(document,n)){var r=Ye("",t),o=r.parentNode;Xe.set(e,o),e.removeChild(r)}}(r,i);var a=Ze(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Ye(e,i);return u.setAttribute(Ke(i),t),u}function et(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(N(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===j(t)&&"object"===j(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)}var nt="%";function rt(e){return e.join(nt)}var ot=function(){function e(t){pe(this,e),I(this,"instanceId",void 0),I(this,"cache",new Map),this.instanceId=t}return ge(e,[{key:"get",value:function(e){return this.opGet(rt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(rt(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),it="data-token-hash",at="data-css-hash",lt="data-cache-path",ct="__cssinjs_instance__";var st=r.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(at,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[ct]=t[ct]||e,t[ct]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(at,"]"))).forEach((function(t){var n,o=t.getAttribute(at);r[o]?t[ct]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new ot(e)}(),defaultCache:!0});var ut=function(){function e(){pe(this,e),I(this,"cache",void 0),I(this,"keys",void 0),I(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ge(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=ze(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=ze(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(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}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();I(ut,"MAX_CACHE_SIZE",20),I(ut,"MAX_CACHE_OFFSET",5);var dt=0,ft=function(){function e(t){pe(this,e),I(this,"derivatives",void 0),I(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=dt,0===t.length&&S(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),dt+=1}return ge(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),pt=new ut;function mt(e){var t=Array.isArray(e)?e:[e];return pt.has(t)||pt.set(t,new ft(t)),pt.get(t)}var gt=new WeakMap,vt={};var ht=new WeakMap;function bt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ht.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof ft?n+=o.id:o&&"object"===j(o)?n+=bt(o,t):n+=o})),t&&(n=De(n)),ht.set(e,n)),n}function yt(e,t){return De("".concat(t,"_").concat(bt(e,!0)))}var xt=He();function wt(e){return"number"==typeof e?"".concat(e,"px"):e}function Ct(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=M(M({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},I(I({},it,t),at,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Et=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},St=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=ze(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},$t=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=ze(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=Et(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,St(r,t,{scope:null==n?void 0:n.scope})]},Ot="test"!==process.env.NODE_ENV&&He()?r.useLayoutEffect:r.useEffect,kt=function(e,t){var n=r.useRef(!0);Ot((function(){return e(n.current)}),t),Ot((function(){return n.current=!1,function(){n.current=!0}}),[])},Nt=function(e,t){kt((function(t){if(!t)return e()}),t)},jt=M({},r).useInsertionEffect,Pt=jt?function(e,t,n){return jt((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),kt((function(){return t(!0)}),n)},It=void 0!==M({},r).useInsertionEffect?function(e){var t=[],n=!1;return r.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&S(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var Rt=!1;var Mt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Rt};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var Tt=window;if("function"==typeof Tt.webpackHotUpdate){var At=Tt.webpackHotUpdate;Tt.webpackHotUpdate=function(){return Rt=!0,setTimeout((function(){Rt=!1}),0),At.apply(void 0,arguments)}}}function _t(e,t,n,o,i){var a=r.useContext(st).cache,l=rt([e].concat(Ie(t))),c=It([l]),s=Mt(),u=function(e){a.opUpdate(l,(function(t){var r=ze(t||[void 0,void 0],2),i=r[0],a=void 0===i?0:i,l=r[1],c=l;"production"!==process.env.NODE_ENV&&l&&s&&(null==o||o(c,s),c=null);var u=[a,c||n()];return e?e(u):u}))};r.useMemo((function(){u()}),[l]);var d=a.opGet(l);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(l));var f=d[1];return Pt((function(){null==i||i(f)}),(function(e){return u((function(t){var n=ze(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(f)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=ze(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null==o||o(s,!1)})),null):[i-1,s]}))}}),[l]),f}var Bt={},Lt="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",Ft=new Map;var zt=0;function Dt(e,t){Ft.set(e,(Ft.get(e)||0)-1);var n=Array.from(Ft.keys()),r=n.filter((function(e){return(Ft.get(e)||0)<=0}));n.length-r.length>zt&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(it,'="').concat(e,'"]')).forEach((function(e){var n;e[ct]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Ft.delete(e)}))}var Ht=function(e,t,n,r){var o=M(M({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},Vt="token";function Wt(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.useContext(st),i=o.cache.instanceId,a=o.container,l=r.salt,c=void 0===l?"":l,s=r.override,u=void 0===s?Bt:s,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,m=function(e,t){for(var n=gt,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(vt)||n.set(vt,e()),n.get(vt)}((function(){return Object.assign.apply(Object,[{}].concat(Ie(n)))}),n),g=bt(m),v=bt(u),h=p?bt(p):"",b=_t(Vt,[c,t.id,g,v,h],(function(){var e,n=f?f(m,u,t):Ht(m,u,t,d),r=M({},n),o="";if(p){var i=ze($t(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=yt(n,c);n._tokenKey=a,r._tokenKey=yt(r,c);var l=null!==(e=null==p?void 0:p.key)&&void 0!==e?e:a;n._themeKey=l,function(e){Ft.set(e,(Ft.get(e)||0)+1)}(l);var s="".concat(Lt,"-").concat(De(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]}),(function(e){Dt(e[0]._themeKey,i)}),(function(e){var t=ze(e,4),n=t[0],r=t[3];if(p&&r){var o=Je(r,De("css-variables-".concat(n._themeKey)),{mark:at,prepend:"queue",attachTo:a,priority:-999});o[ct]=i,o.setAttribute(it,n._themeKey)}}));return b}var qt={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},Xt="comm",Kt="rule",Gt="decl",Ut="@import",Yt="@keyframes",Zt="@layer",Qt=Math.abs,Jt=String.fromCharCode;function en(e){return e.trim()}function tn(e,t,n){return e.replace(t,n)}function nn(e,t,n){return e.indexOf(t,n)}function rn(e,t){return 0|e.charCodeAt(t)}function on(e,t,n){return e.slice(t,n)}function an(e){return e.length}function ln(e,t){return t.push(e),e}var cn=1,sn=1,un=0,dn=0,fn=0,pn="";function mn(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cn,column:sn,length:a,return:"",siblings:l}}function gn(){return fn=dn>0?rn(pn,--dn):0,sn--,10===fn&&(sn=1,cn--),fn}function vn(){return fn=dn<un?rn(pn,dn++):0,sn++,10===fn&&(sn=1,cn++),fn}function hn(){return rn(pn,dn)}function bn(){return dn}function yn(e,t){return on(pn,e,t)}function xn(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 wn(e){return en(yn(dn-1,Sn(91===e?e+2:40===e?e+1:e)))}function Cn(e){for(;(fn=hn())&&fn<33;)vn();return xn(e)>2||xn(fn)>3?"":" "}function En(e,t){for(;--t&&vn()&&!(fn<48||fn>102||fn>57&&fn<65||fn>70&&fn<97););return yn(e,bn()+(t<6&&32==hn()&&32==vn()))}function Sn(e){for(;vn();)switch(fn){case e:return dn;case 34:case 39:34!==e&&39!==e&&Sn(fn);break;case 40:41===e&&Sn(e);break;case 92:vn()}return dn}function $n(e,t){for(;vn()&&e+fn!==57&&(e+fn!==84||47!==hn()););return"/*"+yn(t,dn-1)+"*"+Jt(47===e?e:vn())}function On(e){for(;!xn(hn());)vn();return yn(e,dn)}function kn(e){return function(e){return pn="",e}(Nn("",null,null,null,[""],e=function(e){return cn=sn=1,un=an(pn=e),dn=0,[]}(e),0,[0],e))}function Nn(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,g=1,v=1,h=1,b=0,y="",x=o,w=i,C=r,E=y;v;)switch(m=b,b=vn()){case 40:if(108!=m&&58==rn(E,d-1)){-1!=nn(E+=tn(wn(b),"&","&\f"),"&\f",Qt(s?l[s-1]:0))&&(h=-1);break}case 34:case 39:case 91:E+=wn(b);break;case 9:case 10:case 13:case 32:E+=Cn(m);break;case 92:E+=En(bn()-1,7);continue;case 47:switch(hn()){case 42:case 47:ln(Pn($n(vn(),bn()),t,n,c),c),5!=xn(m||1)&&5!=xn(hn()||1)||!an(E)||" "===on(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*g:l[s++]=an(E)*h;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==h&&(E=tn(E,/\f/g,"")),p>0&&(an(E)-d||0===g&&47===m)&&ln(p>32?In(E+";",r,n,d-1,c):In(tn(E," ","")+";",r,n,d-2,c),c);break;case 59:E+=";";default:if(ln(C=jn(E,t,n,s,u,o,l,y,x=[],w=[],d,i),i),123===b)if(0===u)Nn(E,t,C,C,x,i,d,l,w);else switch(99===f&&110===rn(E,3)?100:f){case 100:case 108:case 109:case 115:Nn(e,C,C,r&&ln(jn(e,C,C,0,0,o,l,y,o,x=[],d,w),w),o,w,d,l,r?x:w);break;default:Nn(E,C,C,C,[""],w,0,l,w)}}s=u=p=0,g=h=1,y=E="",d=a;break;case 58:d=1+an(E),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==gn())continue;switch(E+=Jt(b),b*g){case 38:h=u>0?1:(E+="\f",-1);break;case 44:l[s++]=(an(E)-1)*h,h=1;break;case 64:45===hn()&&(E+=wn(vn())),f=hn(),u=d=an(y=E+=On(bn())),b++;break;case 45:45===m&&2==an(E)&&(g=0)}}return i}function jn(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),g=0,v=0,h=0;g<r;++g)for(var b=0,y=on(e,f+1,f=Qt(v=a[g])),x=e;b<m;++b)(x=en(v>0?p[b]+" "+y:tn(y,/&\f/g,p[b])))&&(c[h++]=x);return mn(e,t,n,0===o?Kt:l,c,s,u,d)}function Pn(e,t,n,r){return mn(e,t,n,Xt,Jt(fn),on(e,2,-2),0,r)}function In(e,t,n,r,o){return mn(e,t,n,Gt,on(e,0,r),on(e,r+1,-1),r,o)}function Rn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Mn(e,t,n,r){switch(e.type){case Zt:if(e.children.length)break;case Ut:case Gt:return e.return=e.return||e.value;case Xt:return"";case Yt:return e.return=e.value+"{"+Rn(e.children,r)+"}";case Kt:if(!an(e.value=e.props.join(",")))return""}return an(n=Rn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Tn(e,t){var n=t.path,r=t.parentSelectors;N(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var An,_n=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&Tn("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},Bn=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&Tn("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Ln="data-ant-cssinjs-cache-path",Fn="_FILE_STYLE__",zn=!0;function Dn(e){return function(){if(!An&&(An={},He())){var e=document.createElement("div");e.className=Ln,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(/"$/,"")).split(";").forEach((function(e){var t=ze(e.split(":"),2),n=t[0],r=t[1];An[n]=r}));var n,r=document.querySelector("style[".concat(Ln,"]"));r&&(zn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!An[e]}var Hn="_skip_check_",Vn="_multi_value_";function Wn(e){return Rn(kn(e),Mn).replace(/\{%%%\:[^;];}/g,";")}function qn(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Ie(n.slice(1))).join(" ")})).join(",")}var Xn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,s=n.path,u=n.hashPriority,d=n.transformers,f=void 0===d?[]:d,p=n.linters,m=void 0===p?[]:p,g="",v={};function h(t){var r=t.getName(l);if(!v[r]){var o=ze(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];v[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)g+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==j(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===j(e)&&e&&(Hn in e||Vn in e)}(r)){var d;function E(e,t){"production"===process.env.NODE_ENV||"object"===j(r)&&null!=r&&r[Hn]||[_n,Bn].concat(Ie(m)).forEach((function(n){return n(e,t,{path:s,hashId:l,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;qt[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),o=t.getName(l)),g+="".concat(n,":").concat(o,";")}var f=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===j(r)&&null!=r&&r[Vn]&&Array.isArray(f)?f.forEach((function(e){E(t,e)})):E(t,f)}else{var p=!1,b=t.trim(),y=!1;(o||i)&&l?b.startsWith("@")?p=!0:b=qn("&"===b?"":t,l,u):!o||l||"&"!==b&&""!==b||(b="",y=!0);var x=ze(e(r,n,{root:y,injectHash:p,parentSelectors:[].concat(Ie(a),[b])}),2),w=x[0],C=x[1];v=M(M({},v),C),g+="".concat(b).concat(w)}}))}})),o?c&&(g="@layer ".concat(c.name," {").concat(g,"}"),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,v]};function Kn(e,t){return De("".concat(e.join("%")).concat(t))}function Gn(){return null}var Un="style";function Yn(e,t){var n=e.token,o=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=r.useContext(st),f=d.autoClear,p=d.mock,g=d.defaultCache,v=d.hashPriority,h=d.container,b=d.ssrInline,y=d.transformers,x=d.linters,w=d.cache,C=d.layer,E=n._tokenKey,S=[E];C&&S.push("layer"),S.push.apply(S,Ie(o));var $=xt;"production"!==process.env.NODE_ENV&&void 0!==p&&($="client"===p);var O=_t(Un,S,(function(){var e=S.join("|");if(Dn(e)){var n=function(e){var t=An[e],n=null;if(t&&He())if(zn)n=Fn;else{var r=document.querySelector("style[".concat(at,'="').concat(An[e],'"]'));r?n=r.innerHTML:delete An[e]}return[n,t]}(e),r=ze(n,2),l=r[0],s=r[1];if(l)return[l,E,s,{},c,u]}var d=t(),f=ze(Xn(d,{hashId:i,hashPriority:v,layer:C?a:void 0,path:o.join("-"),transformers:y,linters:x}),2),p=f[0],m=f[1],g=Wn(p),h=Kn(S,g);return[g,E,h,m,c,u]}),(function(e,t){var n=ze(e,3)[2];(t||f)&&xt&&Qe(n,{mark:at})}),(function(e){var t=ze(e,4),n=t[0];t[1];var r=t[2],o=t[3];if($&&n!==Fn){var i={mark:at,prepend:!C&&"queue",attachTo:h,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){Je(Wn(o[e]),"_layer-".concat(e),M(M({},i),{},{prepend:!0}))}));var d=Je(n,r,i);d[ct]=w.instanceId,d.setAttribute(it,E),"production"!==process.env.NODE_ENV&&d.setAttribute(lt,S.join("|")),s.forEach((function(e){Je(Wn(o[e]),"_effect-".concat(e),i)}))}})),k=ze(O,3),N=k[0],j=k[1],P=k[2];return function(e){var t;return t=b&&!$&&g?r.createElement("style",m({},I(I({},it,j),at,P),{dangerouslySetInnerHTML:{__html:N}})):r.createElement(Gn,null),r.createElement(r.Fragment,null,t,e)}}var Zn="cssVar";I(I(I({},Un,(function(e,t,n){var r=ze(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=Ct(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Ct(Wn(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),Vt,(function(e,t,n){var r=ze(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,Ct(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),Zn,(function(e,t,n){var r=ze(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Ct(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var Qn=function(){function e(t,n){pe(this,e),I(this,"name",void 0),I(this,"style",void 0),I(this,"_keyframe",!0),this.name=t,this.style=n}return ge(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function Jn(e){return e.notSplit=!0,e}Jn(["borderTop","borderBottom"]),Jn(["borderTop"]),Jn(["borderBottom"]),Jn(["borderLeft","borderRight"]),Jn(["borderLeft"]),Jn(["borderRight"]);var er=e.createContext({});function tr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function nr(e,t,n,r){if(!t.length)return n;var o,i,a=Le(o=t)||je(o)||Pe(o)||Fe(),l=a[0],c=a.slice(1);return i=e||"number"!=typeof l?Array.isArray(e)?Ie(e):M({},e):[],r&&void 0===n&&1===c.length?delete i[l][c[0]]:i[l]=nr(i[l],c,n,r),i}function rr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!tr(e,t.slice(0,-1))?e:nr(e,t,n,r)}function or(e){return Array.isArray(e)?[]:{}}var ir="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function ar(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=or(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=tr(e,n),c=Array.isArray(l);if(c||"object"===j(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=tr(r,n);c?r=rr(r,n,[]):s&&"object"===j(s)||(r=rr(r,n,or(l))),ir(l).forEach((function(e){t([].concat(Ie(n),[e]),a)}))}}else r=rr(r,n,l)}([])})),r}function lr(){}let cr=null;let sr=lr;"production"!==process.env.NODE_ENV&&(sr=(e,t,n)=>{N(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(cr=null,O())});const ur=r.createContext({}),dr="production"!==process.env.NODE_ENV?e=>{const{strict:t}=r.useContext(ur),n=(n,r,o)=>{if(!n)if(!1===t&&"deprecated"===r){const t=cr;cr||(cr={}),cr[e]=cr[e]||[],cr[e].includes(o||"")||cr[e].push(o||""),t||console.warn("[antd] There exists deprecated usage in your code:",cr)}else"production"!==process.env.NODE_ENV&&sr(n,e,o)};return n.deprecated=(e,t,r,o)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${r}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=lr,e};var fr=sr,pr=e.createContext(void 0),mr=M(M({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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 gr={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},vr={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"]},mr),timePickerLocale:Object.assign({},gr)},hr="${label} is not a valid ${type}",br={locale:"en",Pagination:{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"},DatePicker:vr,TimePicker:gr,Calendar:vr,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:hr,method:hr,array:hr,object:hr,number:hr,date:hr,boolean:hr,integer:hr,float:hr,regexp:hr,email:hr,url:hr,hex:hr},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},br.Modal);let yr=[];const xr=()=>yr.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),br.Modal);const wr=e.createContext(void 0),Cr="internalMark",Er=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;if("production"!==process.env.NODE_ENV){const e=dr("LocaleProvider");"production"!==process.env.NODE_ENV&&e(o===Cr,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}r.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return yr.push(t),xr(),()=>{yr=yr.filter((e=>e!==t)),xr()}}Object.assign({},br.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(wr.Provider,{value:i},n)};function Sr(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function $r(e){return Math.min(1,Math.max(0,e))}function Or(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function kr(e){return e<=1?"".concat(100*Number(e),"%"):e}function Nr(e){return 1===e.length?"0"+e:String(e)}function jr(e,t,n){e=Sr(e,255),t=Sr(t,255),n=Sr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function Pr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ir(e,t,n){e=Sr(e,255),t=Sr(t,255),n=Sr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function Rr(e,t,n,r){var o=[Nr(Math.round(e).toString(16)),Nr(Math.round(t).toString(16)),Nr(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 Mr(e){return Tr(e)/255}function Tr(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(Er.displayName="LocaleProvider");var Ar={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 _r(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,l=null,c=null,s=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Ar[e])e=Ar[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=zr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=zr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=zr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=zr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=zr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=zr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=zr.hex8.exec(e),n)return{r:Tr(n[1]),g:Tr(n[2]),b:Tr(n[3]),a:Mr(n[4]),format:t?"name":"hex8"};if(n=zr.hex6.exec(e),n)return{r:Tr(n[1]),g:Tr(n[2]),b:Tr(n[3]),format:t?"name":"hex"};if(n=zr.hex4.exec(e),n)return{r:Tr(n[1]+n[1]),g:Tr(n[2]+n[2]),b:Tr(n[3]+n[3]),a:Mr(n[4]+n[4]),format:t?"name":"hex8"};if(n=zr.hex3.exec(e),n)return{r:Tr(n[1]+n[1]),g:Tr(n[2]+n[2]),b:Tr(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Dr(e.r)&&Dr(e.g)&&Dr(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Sr(t,255),g:255*Sr(n,255),b:255*Sr(r,255)},s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Dr(e.h)&&Dr(e.s)&&Dr(e.v)?(a=kr(e.s),l=kr(e.v),o=function(e,t,n){e=6*Sr(e,360),t=Sr(t,100),n=Sr(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,a,l),s=!0,u="hsv"):Dr(e.h)&&Dr(e.s)&&Dr(e.l)&&(a=kr(e.s),c=kr(e.l),o=function(e,t,n){var r,o,i;if(e=Sr(e,360),t=Sr(t,100),n=Sr(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Pr(l,a,e+1/3),o=Pr(l,a,e),i=Pr(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=Or(i),{ok:s,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var Br="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Lr="[\\s|\\(]+(".concat(Br,")[,|\\s]+(").concat(Br,")[,|\\s]+(").concat(Br,")\\s*\\)?"),Fr="[\\s|\\(]+(".concat(Br,")[,|\\s]+(").concat(Br,")[,|\\s]+(").concat(Br,")[,|\\s]+(").concat(Br,")\\s*\\)?"),zr={CSS_UNIT:new RegExp(Br),rgb:new RegExp("rgb"+Lr),rgba:new RegExp("rgba"+Fr),hsl:new RegExp("hsl"+Lr),hsla:new RegExp("hsla"+Fr),hsv:new RegExp("hsv"+Lr),hsva:new RegExp("hsva"+Fr),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 Dr(e){return Boolean(zr.CSS_UNIT.exec(String(e)))}var Hr=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=_r(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=null!==(r=n.format)&&void 0!==r?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 e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Or(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Ir(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Ir(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=jr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=jr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Rr(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[Nr(Math.round(e).toString(16)),Nr(Math.round(t).toString(16)),Nr(Math.round(n).toString(16)),Nr((i=r,Math.round(255*parseFloat(i)).toString(16)))];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("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},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 e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Sr(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Sr(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Rr(this.r,this.g,this.b,!1),t=0,n=Object.entries(Ar);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=$r(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=$r(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=$r(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=$r(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){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},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],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Vr=2,Wr=.16,qr=.05,Xr=.05,Kr=.15,Gr=5,Ur=4,Yr=[{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 Zr(e){var t=Ir(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Qr(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Rr(t,n,r,!1))}function Jr(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Vr*t:Math.round(e.h)+Vr*t:n?Math.round(e.h)+Vr*t:Math.round(e.h)-Vr*t)<0?r+=360:r>=360&&(r-=360),r}function eo(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-Wr*t:t===Ur?e.s+Wr:e.s+qr*t)>1&&(r=1),n&&t===Gr&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function to(e,t,n){var r;return(r=n?e.v+Xr*t:e.v-Kr*t)>1&&(r=1),Number(r.toFixed(2))}function no(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=_r(e),o=Gr;o>0;o-=1){var i=Zr(r),a=Qr(_r({h:Jr(i,o,!0),s:eo(i,o,!0),v:to(i,o,!0)}));n.push(a)}n.push(Qr(r));for(var l=1;l<=Ur;l+=1){var c=Zr(r),s=Qr(_r({h:Jr(c,l),s:eo(c,l),v:to(c,l)}));n.push(s)}return"dark"===t.theme?Yr.map((function(e){var r,o,i,a=e.index,l=e.opacity;return Qr((r=_r(t.backgroundColor||"#141414"),o=_r(n[a]),i=100*l/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var ro={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"},oo=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];oo.primary=oo[5];var io=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];io.primary=io[5];var ao=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ao.primary=ao[5];var lo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];lo.primary=lo[5];var co=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];co.primary=co[5];var so=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];so.primary=so[5];var uo=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];uo.primary=uo[5];var fo=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];fo.primary=fo[5];var po=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];po.primary=po[5];var mo=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];mo.primary=mo[5];var go=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];go.primary=go[5];var vo=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];vo.primary=vo[5];var ho=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ho.primary=ho[5];var bo={red:oo,volcano:io,orange:ao,gold:lo,yellow:co,lime:so,green:uo,cyan:fo,blue:po,geekblue:mo,purple:go,magenta:vo,grey:ho};const yo={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"},xo=Object.assign(Object.assign({},yo),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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});const wo=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}};function Co(e){return(e+8)/e}const Eo=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Co(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const So=(e,t)=>new Hr(e).setAlpha(t).toRgbString(),$o=(e,t)=>new Hr(e).darken(t).toHexString(),Oo=e=>{const t=no(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]}},ko=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:So(r,.88),colorTextSecondary:So(r,.65),colorTextTertiary:So(r,.45),colorTextQuaternary:So(r,.25),colorFill:So(r,.15),colorFillSecondary:So(r,.06),colorFillTertiary:So(r,.04),colorFillQuaternary:So(r,.02),colorBgLayout:$o(n,4),colorBgContainer:$o(n,0),colorBgElevated:$o(n,0),colorBgSpotlight:So(r,.85),colorBgBlur:"transparent",colorBorder:$o(n,15),colorBorderSecondary:$o(n,6)}};const No=mt((function(e){ro.pink=ro.magenta,bo.pink=bo.magenta;const t=Object.keys(yo).map((t=>{const n=e[t]===ro[t]?bo[t]:no(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(o),p=n(i),m=n(a),g=n(l),v=r(s,u),h=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new Hr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Oo,generateNeutralColorPalettes:ko})),Eo(e.fontSize)),function(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)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},wo(r))}(e))})),jo={token:xo,override:{override:xo},hashed:!0},Po=e.createContext(jo),Io="ant",Ro="anticon",Mo=["outlined","borderless","filled"],To=r.createContext({getPrefixCls:(e,t)=>t||(e?`${Io}-${e}`:Io),iconPrefixCls:Ro}),Ao=`-ant-${Date.now()}-${Math.random()}`;function _o(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Hr(e),i=no(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Hr(t.primaryColor),i=no(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Hr(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.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"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);He()?Je(n,`${Ao}-dynamic-theme`):"production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Bo=r.createContext(!1),Lo=e=>{let{children:t,disabled:n}=e;const o=r.useContext(Bo);return r.createElement(Bo.Provider,{value:null!=n?n:o},t)},Fo=r.createContext(void 0),zo=e=>{let{children:t,size:n}=e;const o=r.useContext(Fo);return r.createElement(Fo.Provider,{value:n||o},t)};var Do=ge((function e(){pe(this,e)})),Ho="CALC_UNIT",Vo=new RegExp(Ho,"g");function Wo(e){return"number"==typeof e?"".concat(e).concat(Ho):e}var qo=function(){he(t,Do);var e=we(t);function t(n,r){var o;pe(this,t),I(xe(o=e.call(this)),"result",""),I(xe(o),"unitlessCssVar",void 0),I(xe(o),"lowPriority",void 0);var i=j(n);return o.unitlessCssVar=r,n instanceof t?o.result="(".concat(n.result,")"):"number"===i?o.result=Wo(n):"string"===i&&(o.result=n),o}return ge(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Wo(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Wo(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Vo,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),Xo=function(){he(t,Do);var e=we(t);function t(n){var r;return pe(this,t),I(xe(r=e.call(this)),"result",0),n instanceof t?r.result=n.result:"number"==typeof n&&(r.result=n),r}return ge(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),Ko=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Go(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Uo(e){var t=r.useRef(!1),n=ze(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}function Yo(e){return void 0!==e}function Zo(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=ze(Uo((function(){return Yo(o)?o:Yo(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=Go(i),p=ze(Uo([u]),2),m=p[0],g=p[1];return Nt((function(){var e=m[0];c!==e&&f(c,e)}),[m]),Nt((function(){Yo(o)||s(o)}),[o]),[d,Go((function(e,t){s(e,t),g([u],t)}))]}function Qo(e,t,n,r){var o=M({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=ze(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&N(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))}));var i=M(M({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var Jo="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,ei=!0;function ti(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Jo)return Object.assign.apply(Object,[{}].concat(t));ei=!1;var r={};return t.forEach((function(e){"object"===j(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),ei=!0,r}var ni={};function ri(){}function oi(e,t,n){var r;return"function"==typeof n?n(ti(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var ii=function(){function e(){pe(this,e),I(this,"map",new Map),I(this,"objectIDMap",new WeakMap),I(this,"nextID",0),I(this,"lastAccessBeat",new Map),I(this,"accessBeat",0)}return ge(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===j(e)?"obj_".concat(t.getObjectID(e)):"".concat(j(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),ai=new ii;var li=function(){return{}};const ci=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var si="5.20.5";function ui(e){return e>=0&&e<=255}function di(e,t){const{r:n,g:r,b:o,a:i}=new Hr(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Hr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(ui(t)&&ui(i)&&ui(s))return new Hr({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new Hr({r:n,g:r,b:o,a:1}).toRgbString()}var fi=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 pi(e){const{override:t}=e,n=fi(e,["override"]),r=Object.assign({},t);Object.keys(xo).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:di(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:di(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:di(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:di(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:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Hr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Hr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Hr("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",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 mi=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 gi={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},vi={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},hi={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},bi=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=mi(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=pi(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=mi(n,["theme"]);let i=o;r&&(i=bi(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function yi(){const{token:t,hashed:n,theme:r,override:o,cssVar:i}=e.useContext(Po),a=`${si}-${n||""}`,l=r||No,[c,s,u]=Wt(l,[xo,t],{salt:a,override:o,getComputedToken:bi,formatToken:pi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:gi,ignore:vi,preserve:hi}});return[l,u,n?s:"",c,i]}const xi=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),wi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ci=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[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}},Ei=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, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Si=e=>({outline:`${wt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),$i=e=>({"&:focus-visible":Object.assign({},Si(e))}),Oi=(e,t)=>{const[n,r]=yi();return Yn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},{genStyleHooks:ki,genComponentStyleHook:Ni,genSubStyleComponent:ji}=function(t){var n=t.useCSP,r=void 0===n?li:n,o=t.useToken,i=t.usePrefix,a=t.getResetStyles,l=t.getCommonStyle,c=t.getCompUnitless;function s(t,n,c){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=ze(u,1)[0],f=u.join("-");return function(t){var u,p,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,g=o(),v=g.theme,h=g.realToken,b=g.hashId,y=g.token,x=g.cssVar,w=i(),C=w.rootPrefixCls,E=w.iconPrefixCls,S=r(),$=x?"css":"js",O=(u=function(){var e=new Set;return x&&Object.keys(s.unitless||{}).forEach((function(t){e.add(Et(t,x.prefix)),e.add(Et(t,Ko(d,x.prefix)))})),function(e,t){var n="css"===e?qo:Xo;return function(e){return new n(e,t)}}($,e)},p=[$,d,null==x?void 0:x.prefix],e.useMemo((function(){var e=ai.get(p);if(e)return e;var t=u();return ai.set(p,t),t}),p)),k=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return wt(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return wt(e)})).join(","),")")}}}($),N=k.max,P=k.min,I={theme:v,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:{name:"antd"},order:s.order||-999};Yn(M(M({},I),{},{clientOnly:!1,path:["Shared",C]}),(function(){return"function"==typeof a?a(y):[]}));var R=Yn(M(M({},I),{},{path:[f,t,E]}),(function(){if(!1===s.injectStyle)return[];var e=function(e){var t,n=e,r=ri;return Jo&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return ei&&t.add(n),e[n]}}),r=function(e,n){var r;ni[e]={global:Array.from(t),component:M(M({},null===(r=ni[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(y),r=e.token,o=e.flush,i=oi(d,h,c),a=".".concat(t),u=Qo(d,h,i,{deprecatedTokens:s.deprecatedTokens});x&&"object"===j(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(Et(e,Ko(d,x.prefix)),")")}));var f=ti(r,{componentCls:a,prefixCls:t,iconCls:".".concat(E),antCls:".".concat(C),calc:O,max:N,min:P},x?i:u),p=n(f,{hashId:b,prefixCls:t,rootPrefixCls:C,iconPrefixCls:E});o(d,u);var g="function"==typeof l?l(f,t,m,s.resetFont):null;return[!1===s.resetStyle?null:g,p]}));return[R,b]}}return{genStyleHooks:function(t,n,r,i){var a=Array.isArray(t)?t[0]:t;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=M(M({},"function"==typeof c?c(t):{}),{},I({},l("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[l(e)]=u[e]}));var f=M(M({},i),{},{unitless:d,prefixToken:l}),p=s(t,n,r,f),m=function(t,n,r){var i=r.unitless,a=r.injectStyle,l=void 0===a||a,c=r.prefixToken,s=r.ignore,u=function(a){var l=a.rootCls,u=a.cssVar,d=void 0===u?{}:u,f=o().realToken;return function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,s=void 0===c?"":c,u=e.useContext(st),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(Ie(t.path),[r,s,p]),g=_t(Zn,m,(function(){var e=n(),t=ze($t(e,r,{prefix:o,unitless:i,ignore:a,scope:s}),2),l=t[0],c=t[1];return[l,c,Kn(m,c),r]}),(function(e){var t=ze(e,3)[2];xt&&Qe(t,{mark:at})}),(function(e){var t=ze(e,3),n=t[1],o=t[2];if(n){var i=Je(n,o,{mark:at,prepend:"queue",attachTo:f,priority:-999});i[ct]=d,i.setAttribute(it,r)}}))}({path:[t],prefix:d.prefix,key:d.key,unitless:i,ignore:s,token:f,scope:l},(function(){var e=oi(t,f,n),o=Qo(t,f,e,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(e).forEach((function(e){o[c(e)]=o[e],delete o[e]})),o})),null},d=function(n){var r=o().cssVar;return[function(o){return l&&r?e.createElement(e.Fragment,null,e.createElement(u,{rootCls:n,cssVar:r,component:t}),o):o},null==r?void 0:r.key]};return d}(a,r,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=ze(p(e,t),2)[1],r=ze(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,M({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=e.useContext(To);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=yi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t,iconPrefixCls:n}=e.useContext(To);return Oi(n,t),null!=t?t:{}},getResetStyles:e=>[{"&":Ei(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>gi});function Pi(e,t){return ci.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const Ii=Object.assign({},r),{useId:Ri}=Ii,Mi=void 0===Ri?()=>"":Ri;var Ti=["children"],Ai=r.createContext({});function _i(e){var t=e.children,n=et(e,Ti);return r.createElement(Ai.Provider,{value:n},t)}var Bi=function(){he(t,r.Component);var e=we(t);function t(){return pe(this,t),e.apply(this,arguments)}return ge(t,[{key:"render",value:function(){return this.props.children}}]),t}();var Li="none",Fi="appear",zi="enter",Di="leave",Hi="none",Vi="prepare",Wi="start",qi="active",Xi="end",Ki="prepared";function Gi(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}var Ui=function(e,t){var n={animationend:Gi("Animation","AnimationEnd"),transitionend:Gi("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(He(),"undefined"!=typeof window?window:{}),Yi={};if(He()){var Zi=document.createElement("div");Yi=Zi.style}var Qi={};function Ji(e){if(Qi[e])return Qi[e];var t=Ui[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Yi)return Qi[e]=t[i],Qi[e]}return""}var ea=Ji("animationend"),ta=Ji("transitionend"),na=!(!ea||!ta),ra=ea||"animationend",oa=ta||"transitionend";function ia(e,t){if(!e)return null;if("object"===j(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var aa=function(t){var n=e.useRef();function o(e){e&&(e.removeEventListener(oa,t),e.removeEventListener(ra,t))}return r.useEffect((function(){return function(){o(n.current)}}),[]),[function(e){n.current&&n.current!==e&&o(n.current),e&&e!==n.current&&(e.addEventListener(oa,t),e.addEventListener(ra,t),n.current=e)},o]},la=He()?e.useLayoutEffect:e.useEffect,ca=[Vi,Wi,qi,Xi],sa=[Vi,Ki],ua=!1,da=!0;function fa(e){return e===qi||e===Xi}var pa=function(e,t,n){var o=ze(Uo(Hi),2),i=o[0],a=o[1],l=function(){var e=r.useRef(null);function t(){Be.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Be((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=ze(l,2),s=c[0],u=c[1];var d=t?sa:ca;return la((function(){if(i!==Hi&&i!==Xi){var e=d.indexOf(i),t=d[e+1],r=n(i);r===ua?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(Vi,!0)},i]};function ma(t,n,o,i){var a,l,c,s=i.motionEnter,u=void 0===s||s,d=i.motionAppear,f=void 0===d||d,p=i.motionLeave,m=void 0===p||p,g=i.motionDeadline,v=i.motionLeaveImmediately,h=i.onAppearPrepare,b=i.onEnterPrepare,y=i.onLeavePrepare,x=i.onAppearStart,w=i.onEnterStart,C=i.onLeaveStart,E=i.onAppearActive,S=i.onEnterActive,$=i.onLeaveActive,O=i.onAppearEnd,k=i.onEnterEnd,N=i.onLeaveEnd,j=i.onVisibleChanged,P=ze(Uo(),2),R=P[0],T=P[1],A=(a=Li,l=ze(r.useReducer((function(e){return e+1}),0),2)[1],c=r.useRef(a),[Go((function(){return c.current})),Go((function(e){c.current="function"==typeof e?e(c.current):e,l()}))]),_=ze(A,2),B=_[0],L=_[1],F=ze(Uo(null),2),z=F[0],D=F[1],H=B(),V=e.useRef(!1),W=e.useRef(null);function q(){return o()}var X=e.useRef(!1);function K(){L(Li),D(null,!0)}var G=Go((function(e){var t=B();if(t!==Li){var n=q();if(!e||e.deadline||e.target===n){var r,o=X.current;t===Fi&&o?r=null==O?void 0:O(n,e):t===zi&&o?r=null==k?void 0:k(n,e):t===Di&&o&&(r=null==N?void 0:N(n,e)),o&&!1!==r&&K()}}})),U=ze(aa(G),1)[0],Y=function(e){switch(e){case Fi:return I(I(I({},Vi,h),Wi,x),qi,E);case zi:return I(I(I({},Vi,b),Wi,w),qi,S);case Di:return I(I(I({},Vi,y),Wi,C),qi,$);default:return{}}},Z=r.useMemo((function(){return Y(H)}),[H]),Q=ze(pa(H,!t,(function(e){if(e===Vi){var t=Z[Vi];return t?t(q()):ua}var n;ee in Z&&D((null===(n=Z[ee])||void 0===n?void 0:n.call(Z,q(),null))||null);return ee===qi&&H!==Li&&(U(q()),g>0&&(clearTimeout(W.current),W.current=setTimeout((function(){G({deadline:!0})}),g))),ee===Ki&&K(),da})),2),J=Q[0],ee=Q[1],te=fa(ee);X.current=te,la((function(){T(n);var e,r=V.current;V.current=!0,!r&&n&&f&&(e=Fi),r&&n&&u&&(e=zi),(r&&!n&&m||!r&&v&&!n&&m)&&(e=Di);var o=Y(e);e&&(t||o[Vi])?(L(e),J()):L(Li)}),[n]),e.useEffect((function(){(H===Fi&&!f||H===zi&&!u||H===Di&&!m)&&L(Li)}),[f,u,m]),e.useEffect((function(){return function(){V.current=!1,clearTimeout(W.current)}}),[]);var ne=r.useRef(!1);e.useEffect((function(){R&&(ne.current=!0),void 0!==R&&H===Li&&((ne.current||R)&&(null==j||j(R)),ne.current=!0)}),[R,H]);var re=z;return Z[Vi]&&ee===Wi&&(re=M({transition:"none"},re)),[H,ee,re,null!=R?R:n]}var ga=function(t){var n=t;"object"===j(t)&&(n=t.transitionSupport);var o=r.forwardRef((function(t,o){var i=t.visible,a=void 0===i||i,l=t.removeOnLeave,c=void 0===l||l,s=t.forceRender,u=t.children,d=t.motionName,f=t.leavedClassName,m=t.eventProps,g=function(e,t){return!(!e.motionName||!n||!1===t)}(t,r.useContext(Ai).motion),v=e.useRef(),h=e.useRef();var b=ze(ma(g,a,(function(){try{return v.current instanceof HTMLElement?v.current:A(h.current)}catch(e){return null}}),t),4),y=b[0],x=b[1],w=b[2],C=b[3],E=r.useRef(C);C&&(E.current=!0);var S,$=r.useCallback((function(e){v.current=e,B(o,e)}),[o]),O=M(M({},m),{},{visible:a});if(u)if(y===Li)S=C?u(M({},O),$):!c&&E.current&&f?u(M(M({},O),{},{className:f}),$):s||!c&&!f?u(M(M({},O),{},{style:{display:"none"}}),$):null;else{var k;x===Vi?k="prepare":fa(x)?k="active":x===Wi&&(k="start");var N=ia(d,"".concat(y,"-").concat(k));S=u(M(M({},O),{},{className:p(ia(d,y),I(I({},N,N&&k),d,"string"==typeof d)),style:w}),$)}else S=null;r.isValidElement(S)&&z(S)&&(S.ref||(S=r.cloneElement(S,{ref:$})));return r.createElement(Bi,{ref:h},S)}));return o.displayName="CSSMotion",o}(na),va="add",ha="keep",ba="remove",ya="removed";function xa(e){var t;return M(M({},t=e&&"object"===j(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function wa(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(xa)}var Ca=["component","children","onVisibleChanged","onAllRemoved"],Ea=["status"],Sa=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function $a(e){const{children:t}=e,[,n]=yi(),{motion:o}=n,i=r.useRef(!1);return i.current=i.current||!1===o,i.current?r.createElement(_i,{motion:o},t):t}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ga,t=function(){he(n,r.Component);var t=we(n);function n(){var e;pe(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return I(xe(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),I(xe(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:M(M({},e),{},{status:ya})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==ya})).length})),e}return ge(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=et(o,Ca),u=i||r.Fragment,d={};return Sa.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,r.createElement(u,s,n.map((function(n,o){var i=n.status,s=et(n,Ea),u=i===va||i===ha;return r.createElement(e,m({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(e){(null==l||l(e,{key:s.key}),e)||0===t.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(M(M({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=wa(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=wa(e),a=wa(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return M(M({},e),{},{status:va})}))),r=i),n.push(M(M({},l),{},{status:ha})),r+=1,t=!0;break}}t||n.push(M(M({},e),{},{status:ba}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return M(M({},e),{},{status:va})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ba}))).forEach((function(t){t.key===e&&(t.status=ha)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ya||e.status!==ba}))}}}]),n}();I(t,"defaultProps",{component:"div"})}(na);const Oa=r.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return dr("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(Oa.displayName="PropWarning");var ka="production"!==process.env.NODE_ENV?Oa:()=>null,Na=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 ja=!1;process.env.NODE_ENV;const Pa=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ia;const Ra=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:h,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:w,statistic:C,spin:E,calendar:S,carousel:$,cascader:O,collapse:k,typography:N,checkbox:j,descriptions:P,divider:I,drawer:R,skeleton:M,steps:T,image:A,layout:B,list:L,mentions:F,modal:z,progress:D,result:H,slider:V,breadcrumb:W,menu:q,pagination:X,input:K,textArea:G,empty:U,badge:Y,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ge,wave:ve,dropdown:he,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:Ce,treeSelect:Ee}=e,Se=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||h.getPrefixCls("");return t?`${o}-${t}`:o}),[h.getPrefixCls,e.prefixCls]),$e=b||h.iconPrefixCls||Ro,Oe=n||h.csp;Oi($e,Oe);const ke=function(e,t,n){var r,o;const i=dr("ConfigProvider"),a=e||{},l=!1!==a.inherit&&t?t:Object.assign(Object.assign({},jo),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:jo.hashed,cssVar:null==t?void 0:t.cssVar}),c=Mi();if("production"!==process.env.NODE_ENV){const e=a.cssVar||l.cssVar,t=!!("object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||c);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return _((()=>{var r,o;if(!e)return t;const i=Object.assign({},l.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const s=`css-var-${c.replace(/:/g,"")}`,u=(null!==(r=a.cssVar)&&void 0!==r?r:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof l.cssVar?l.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||s});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:i,cssVar:u})}),[a,l],((e,t)=>e.some(((e,n)=>!tt(e,t[n],!0)))))}(y,h.theme,{prefixCls:Se("")});"production"!==process.env.NODE_ENV&&(ja=ja||!!ke);const Ne={csp:Oe,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||v,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=m?m:p,popupOverflow:g,getPrefixCls:Se,iconPrefixCls:$e,theme:ke,segmented:w,statistic:C,spin:E,calendar:S,carousel:$,cascader:O,collapse:k,typography:N,checkbox:j,descriptions:P,divider:I,drawer:R,skeleton:M,steps:T,image:A,input:K,textArea:G,layout:B,list:L,mentions:F,modal:z,progress:D,result:H,slider:V,breadcrumb:W,menu:q,pagination:X,empty:U,badge:Y,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ge,wave:ve,dropdown:he,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:Ce,treeSelect:Ee};if("production"!==process.env.NODE_ENV){dr("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const je=Object.assign({},h);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&(je[e]=Ne[e])})),Pa.forEach((t=>{const n=e[t];n&&(je[t]=n)})),void 0!==o&&(je.button=Object.assign({autoInsertSpace:o},je.button));const Pe=_((()=>je),je,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ie=r.useMemo((()=>({prefixCls:$e,csp:Oe})),[$e,Oe]);let Re=r.createElement(r.Fragment,null,r.createElement(ka,{dropdownMatchSelectWidth:p}),t);const Me=r.useMemo((()=>{var e,t,n,r;return ar((null===(e=br.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Pe.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Pe.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Pe,null==l?void 0:l.validateMessages]);Object.keys(Me).length>0&&(Re=r.createElement(pr.Provider,{value:Me},Re)),c&&(Re=r.createElement(Er,{locale:c,_ANT_MARK__:Cr},Re)),($e||Oe)&&(Re=r.createElement(er.Provider,{value:Ie},Re)),s&&(Re=r.createElement(zo,{size:s},Re)),Re=r.createElement($a,null,Re);const Te=r.useMemo((()=>{const e=ke||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=Na(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?mt(t):No,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=mt(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},xo),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[ke]);return y&&(Re=r.createElement(Po.Provider,{value:Te},Re)),Pe.warning&&(Re=r.createElement(ur.Provider,{value:Pe.warning},Re)),void 0!==x&&(Re=r.createElement(Lo,{disabled:x},Re)),r.createElement(To.Provider,{value:Pe},Re)},Ma=e=>{const t=r.useContext(To),n=r.useContext(wr);return r.createElement(Ra,Object.assign({parentContext:t,legacyLocale:n},e))};function Ta(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Aa(e){return function(e){return Ta(e)instanceof ShadowRoot}(e)?Ta(e):null}function _a(e){return"object"===j(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===j(e.icon)||"function"==typeof e.icon)}function Ba(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function La(t,n,r){return r?e.createElement(t.tag,M(M({key:n},Ba(t.attrs)),r),(t.children||[]).map((function(e,r){return La(e,"".concat(n,"-").concat(t.tag,"-").concat(r))}))):e.createElement(t.tag,M({key:n},Ba(t.attrs)),(t.children||[]).map((function(e,r){return La(e,"".concat(n,"-").concat(t.tag,"-").concat(r))})))}function Fa(e){return no(e)[0]}function za(e){return e?Array.isArray(e)?e:[e]:[]}Ma.ConfigContext=To,Ma.SizeContext=Fo,Ma.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Ia=t),r&&function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)&&("production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),_o(Ia||Io,r))},Ma.useConfig=function(){return{componentDisabled:e.useContext(Bo),componentSize:e.useContext(Fo)}},Object.defineProperty(Ma,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Fo)}),"production"!==process.env.NODE_ENV&&(Ma.displayName="ConfigProvider");var Da=["icon","className","onClick","style","primaryColor","secondaryColor"],Ha={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Va=function(t){var n,o,i,a,l,c,s,u=t.icon,d=t.className,f=t.onClick,p=t.style,m=t.primaryColor,g=t.secondaryColor,v=et(t,Da),h=r.useRef(),b=Ha;if(m&&(b={primaryColor:m,secondaryColor:g||Fa(m)}),n=h,o=e.useContext(er),i=o.csp,a=o.prefixCls,l="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",a&&(l=l.replace(/anticon/g,a)),e.useEffect((function(){var e=Aa(n.current);Je(l,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),c=_a(u),s="icon should be icon definiton, but got ".concat(u),N(c,"[@ant-design/icons] ".concat(s)),!_a(u))return null;var y=u;return y&&"function"==typeof y.icon&&(y=M(M({},y),{},{icon:y.icon(b.primaryColor,b.secondaryColor)})),La(y.icon,"svg-".concat(y.name),M(M({className:d,onClick:f,style:p,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},v),{},{ref:h}))};function Wa(e){var t=ze(za(e),2),n=t[0],r=t[1];return Va.setTwoToneColors({primaryColor:n,secondaryColor:r})}Va.displayName="IconReact",Va.getTwoToneColors=function(){return M({},Ha)},Va.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Ha.primaryColor=t,Ha.secondaryColor=n||Fa(t),Ha.calculated=!!n};var qa=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Wa(po.primary);var Xa=r.forwardRef((function(e,t){var n=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=et(e,qa),d=r.useContext(er),f=d.prefixCls,g=void 0===f?"anticon":f,v=d.rootClassName,h=p(v,g,I(I({},"".concat(g,"-").concat(o.name),!!o.name),"".concat(g,"-spin"),!!i||"loading"===o.name),n),b=l;void 0===b&&c&&(b=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,x=ze(za(s),2),w=x[0],C=x[1];return r.createElement("span",m({role:"img","aria-label":o.name},u,{ref:t,tabIndex:b,onClick:c,className:h}),r.createElement(Va,{icon:o,primaryColor:w,secondaryColor:C,style:y}))}));Xa.displayName="AntdIcon",Xa.getTwoToneColor=function(){var e=Va.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Xa.setTwoToneColor=Wa;var Ka={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"},Ga=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:Ka}))},Ua=r.forwardRef(Ga);"production"!==process.env.NODE_ENV&&(Ua.displayName="CloseCircleFilled");var Ya={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"},Za=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:Ya}))},Qa=r.forwardRef(Za);"production"!==process.env.NODE_ENV&&(Qa.displayName="CloseOutlined");var Ja="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function el(e,t){return 0===e.indexOf(t)}function tl(t){return t&&e.isValidElement(t)&&t.type===e.Fragment}const nl=(t,n,r)=>e.isValidElement(t)?e.cloneElement(t,"function"==typeof r?r(t.props||{}):r):n;function rl(e,t){return nl(e,e,t)}const ol=e=>{const[,,,,t]=yi();return t?`${e}-css-var`:""};var il={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(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=il.F1&&t<=il.F12)return!1;switch(t){case il.ALT:case il.CAPS_LOCK:case il.CONTEXT_MENU:case il.CTRL:case il.DOWN:case il.END:case il.ESC:case il.HOME:case il.INSERT:case il.LEFT:case il.MAC_FF_META:case il.META:case il.NUMLOCK:case il.NUM_CENTER:case il.PAGE_DOWN:case il.PAGE_UP:case il.PAUSE:case il.PRINT_SCREEN:case il.RIGHT:case il.SHIFT:case il.UP:case il.WIN_KEY:case il.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=il.ZERO&&e<=il.NINE)return!0;if(e>=il.NUM_ZERO&&e<=il.NUM_MULTIPLY)return!0;if(e>=il.A&&e<=il.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case il.SPACE:case il.QUESTION_MARK:case il.NUM_PLUS:case il.NUM_MINUS:case il.NUM_PERIOD:case il.NUM_DIVISION:case il.SEMICOLON:case il.DASH:case il.EQUALS:case il.COMMA:case il.PERIOD:case il.SLASH:case il.APOSTROPHE:case il.SINGLE_QUOTE:case il.OPEN_SQUARE_BRACKET:case il.BACKSLASH:case il.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},al={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"},ll=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:al}))},cl=r.forwardRef(ll);"production"!==process.env.NODE_ENV&&(cl.displayName="LoadingOutlined");const sl=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(sl.displayName="zIndexContext");const ul=100,dl={Modal:ul,Drawer:ul,Popover:ul,Popconfirm:ul,Tooltip:ul,Tour:ul},fl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function pl(t,n){const[,r]=yi(),o=e.useContext(sl),i=function(e){return e in dl}(t);let a;if(void 0!==n)a=[n,n];else{let e=null!=o?o:0;e+=i?(o?0:r.zIndexPopupBase)+dl[t]:fl[t],a=[void 0===o?n:e,e]}if("production"!==process.env.NODE_ENV){const e=dr(t),o=r.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&e(void 0!==n||i<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function ml(){ml=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new I(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",v={};function h(){}function b(){}function y(){}var x={};s(x,a,(function(){return this}));var w=Object.getPrototypeOf,C=w&&w(w(R([])));C&&C!==n&&r.call(C,a)&&(x=C);var E=y.prototype=h.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function $(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==j(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=k(l,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?g:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=g,r.method="throw",r.arg=s.arg)}}}function k(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(j(t)+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},S($.prototype),s($.prototype,l,(function(){return this})),t.AsyncIterator=$,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new $(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(E),s(E,c,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=R,I.prototype={constructor:I,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(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function gl(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function vl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){gl(i,r,o,a,l,"next",e)}function l(e){gl(i,r,o,a,l,"throw",e)}a(void 0)}))}}var hl,bl=M({},o),yl=bl.version,xl=bl.render,wl=bl.unmountComponentAtNode;try{Number((yl||"").split(".")[0])>=18&&(hl=bl.createRoot)}catch(e){}function Cl(e){var t=bl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===j(t)&&(t.usingClientEntryPoint=e)}var El="__rc_react_root__";function Sl(e,t){hl?function(e,t){Cl(!0);var n=t[El]||hl(t);Cl(!1),n.render(e),t[El]=n}(e,t):function(e,t){xl(e,t)}(e,t)}function $l(e){return Ol.apply(this,arguments)}function Ol(){return(Ol=vl(ml().mark((function e(t){return ml().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[El])||void 0===e||e.unmount(),delete t[El]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kl(e){wl(e)}function Nl(){return(Nl=vl(ml().mark((function e(t){return ml().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===hl){e.next=2;break}return e.abrupt("return",$l(t));case 2:kl(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const jl=()=>({height:0,opacity:0}),Pl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Il=e=>({height:e?e.offsetHeight:0}),Rl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Ml=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Io}-motion-collapse`,onAppearStart:jl,onEnterStart:jl,onAppearActive:Pl,onEnterActive:Pl,onLeaveStart:Il,onLeaveActive:jl,onAppearEnd:Rl,onEnterEnd:Rl,onLeaveEnd:Rl,motionDeadline:500}},Tl=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var Al=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(),i=o.width,a=o.height;if(i||a)return!0}}return!1};const _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 ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var Bl=Ni("Wave",(e=>[_l(e)]));const Ll=`${Io}-wave-target`;function Fl(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(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])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function zl(e){return Number.isNaN(e)?0:e}const Dl=e=>{const{className:t,target:n,component:o}=e,i=r.useRef(null),[a,l]=r.useState(null),[c,s]=r.useState([]),[u,d]=r.useState(0),[f,m]=r.useState(0),[g,v]=r.useState(0),[h,b]=r.useState(0),[y,x]=r.useState(!1),w={left:u,top:f,width:g,height:h,borderRadius:c.map((e=>`${e}px`)).join(" ")};function C(){const e=getComputedStyle(n);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Fl(t)?t:Fl(n)?n:Fl(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:zl(-parseFloat(r))),m(t?n.offsetTop:zl(-parseFloat(o))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>zl(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),r.useEffect((()=>{if(n){const e=Be((()=>{C(),x(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(C),t.observe(n)),()=>{Be.cancel(e),null==t||t.disconnect()}}}),[]),!y)return null;const E=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(Ll));return r.createElement(ga,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(function(e){return Nl.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:o}=e;return r.createElement("div",{ref:L(i,n),className:p(t,o,{"wave-quick":E}),style:w})}))},Hl=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),Sl(r.createElement(Dl,Object.assign({},t,{target:e})),i)},Vl=(e,t,n)=>{const{wave:o}=r.useContext(To),[,i,a]=yi(),l=Go((r=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${Ll}`)||l,{showEffect:s}=o||{};(s||Hl)(c,{className:t,token:i,component:n,event:r,hashId:a})})),c=r.useRef();return e=>{Be.cancel(c.current),c.current=Be((()=>{l(e)}))}},Wl=t=>{const{children:n,disabled:r,component:o}=t,{getPrefixCls:i}=e.useContext(To),a=e.useRef(null),l=i("wave"),[,c]=Bl(l),s=Vl(a,p(l,c),o);if(e.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!Al(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!e.isValidElement(n))return null!=n?n:null;return rl(n,{ref:z(n)?L(n.ref,a):a})};"production"!==process.env.NODE_ENV&&(Wl.displayName="Wave");const ql=t=>{const n=e.useContext(Fo);return e.useMemo((()=>t?"string"==typeof t?null!=t?t:n:t instanceof Function?t(n):n:n),[t,n])},Xl=r.createContext(null),Kl=(e,t)=>{const n=r.useContext(Xl),o=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return p(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},Gl=e=>{let{children:t}=e;return r.createElement(Xl.Provider,{value:null},t)};var Ul=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Yl=r.createContext(void 0),Zl=/^[\u4e00-\u9fa5]{2}$/,Ql=Zl.test.bind(Zl);function Jl(e){return"string"==typeof e}function ec(e){return"text"===e||"link"===e}function tc(t,n){let r=!1;const o=[];return e.Children.forEach(t,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),e.Children.map(o,(t=>function(t,n){if(null==t)return;const r=n?" ":"";return"string"!=typeof t&&"number"!=typeof t&&Jl(t.type)&&Ql(t.props.children)?rl(t,{children:t.props.children.split("").join(r)}):Jl(t)?Ql(t)?e.createElement("span",null,t.split("").join(r)):e.createElement("span",null,t):tl(t)?e.createElement("span",null,t):t}(t,n)))}const nc=e.forwardRef(((t,n)=>{const{className:r,style:o,children:i,prefixCls:a}=t,l=p(`${a}-icon`,r);return e.createElement("span",{ref:n,className:l,style:o},i)})),rc=e.forwardRef(((t,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=t,l=p(`${r}-loading-icon`,o);return e.createElement(nc,{prefixCls:r,className:l,style:i,ref:n},e.createElement(cl,{className:a}))})),oc=()=>({width:0,opacity:0,transform:"scale(0)"}),ic=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ac=t=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=t,l=!!r;return o?e.createElement(rc,{prefixCls:n,className:i,style:a}):e.createElement(ga,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:oc,onAppearActive:ic,onEnterStart:oc,onEnterActive:ic,onLeaveStart:ic,onLeaveActive:oc},((t,r)=>{let{className:o,style:l}=t;return e.createElement(rc,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))},lc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),cc=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},lc(`${t}-primary`,o),lc(`${t}-danger`,i)]}},sc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return ti(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},uc=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Co(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Co(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Co(s);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,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},dc=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${wt(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:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},$i(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},fc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),pc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),mc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),gc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),vc=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},fc(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),hc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},gc(e))}),bc=e=>Object.assign({},hc(e)),yc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),xc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),fc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),vc(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},fc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),hc(e))}),wc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),fc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),vc(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},fc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),vc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hc(e))}),Cc=e=>Object.assign(Object.assign({},xc(e)),{borderStyle:"dashed"}),Ec=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},fc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),yc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},fc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),yc(e))}),Sc=e=>Object.assign(Object.assign(Object.assign({},fc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),yc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yc(e)),fc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),$c=e=>{const{componentCls:t}=e;return{[`${t}-default`]:xc(e),[`${t}-primary`]:wc(e),[`${t}-dashed`]:Cc(e),[`${t}-link`]:Ec(e),[`${t}-text`]:Sc(e),[`${t}-ghost`]:vc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Oc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${wt(s)} ${wt(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${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}`]:pc(e)},{[`${n}${n}-round${t}`]:mc(e)}]},kc=e=>{const t=ti(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Oc(t,e.componentCls)},Nc=e=>{const t=ti(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 Oc(t,`${e.componentCls}-sm`)},jc=e=>{const t=ti(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Oc(t,`${e.componentCls}-lg`)},Pc=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Ic=ki("Button",(e=>{const t=sc(e);return[dc(t),kc(t),Nc(t),jc(t),Pc(t),$c(t),cc(t)]}),uc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Rc(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Mc(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 Tc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Rc(e,r,t)),Mc(n,r,t))}}function Ac(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 _c(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Ac(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Bc=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% + ${wt(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% + ${wt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var Lc=ji(["Button","compact"],(e=>{const t=sc(e);return[Tc(t),_c(t),Bc(t)]}),uc),Fc=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 zc=e.forwardRef(((t,n)=>{var r,o,i;const{loading:a=!1,prefixCls:l,type:c,danger:s=!1,shape:u="default",size:d,styles:f,disabled:m,className:g,rootClassName:v,children:h,icon:b,iconPosition:y="start",ghost:x=!1,block:w=!1,htmlType:C="button",classNames:E,style:S={},autoInsertSpace:$}=t,O=Fc(t,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),k=c||"default",{getPrefixCls:N,direction:j,button:P}=e.useContext(To),I=null===(r=null!=$?$:null==P?void 0:P.autoInsertSpace)||void 0===r||r,R=N("btn",l),[M,T,A]=Ic(R),_=e.useContext(Bo),B=null!=m?m:_,F=e.useContext(Yl),z=e.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a)),[a]),[D,H]=e.useState(z.loading),[V,W]=e.useState(!1),q=L(n,e.createRef()),X=1===e.Children.count(h)&&!b&&!ec(k);e.useEffect((()=>{let e=null;return z.delay>0?e=setTimeout((()=>{e=null,H(!0)}),z.delay):H(z.loading),function(){e&&(clearTimeout(e),e=null)}}),[z]),e.useEffect((()=>{if(!q||!q.current||!I)return;const e=q.current.textContent;X&&Ql(e)?V||W(!0):V&&W(!1)}),[q]);const K=e=>{const{onClick:n}=t;D||B?e.preventDefault():null==n||n(e)};if("production"!==process.env.NODE_ENV){const e=dr("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof b&&b.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(x&&ec(k)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:G,compactItemClassnames:U}=Kl(R,j),Y={large:"lg",small:"sm",middle:void 0},Z=ql((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:G)&&void 0!==t?t:F)&&void 0!==n?n:e})),Q=Z&&Y[Z]||"",J=D?"loading":b,ee=ke(O,["navigate"]),te=p(R,T,A,{[`${R}-${u}`]:"default"!==u&&u,[`${R}-${k}`]:k,[`${R}-${Q}`]:Q,[`${R}-icon-only`]:!h&&0!==h&&!!J,[`${R}-background-ghost`]:x&&!ec(k),[`${R}-loading`]:D,[`${R}-two-chinese-chars`]:V&&I&&!D,[`${R}-block`]:w,[`${R}-dangerous`]:s,[`${R}-rtl`]:"rtl"===j,[`${R}-icon-end`]:"end"===y},U,g,v,null==P?void 0:P.className),ne=Object.assign(Object.assign({},null==P?void 0:P.style),S),re=p(null==E?void 0:E.icon,null===(o=null==P?void 0:P.classNames)||void 0===o?void 0:o.icon),oe=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),(null===(i=null==P?void 0:P.styles)||void 0===i?void 0:i.icon)||{}),ie=b&&!D?e.createElement(nc,{prefixCls:R,className:re,style:oe},b):e.createElement(ac,{existIcon:!!b,prefixCls:R,loading:D}),ae=h||0===h?tc(h,X&&I):null;if(void 0!==ee.href)return M(e.createElement("a",Object.assign({},ee,{className:p(te,{[`${R}-disabled`]:B}),href:B?void 0:ee.href,style:ne,onClick:K,ref:q,tabIndex:B?-1:0}),ie,ae));let le=e.createElement("button",Object.assign({},O,{type:C,className:te,style:ne,onClick:K,disabled:B,ref:q}),ie,ae,!!U&&e.createElement(Lc,{key:"compact",prefixCls:R}));return ec(k)||(le=e.createElement(Wl,{component:"Button",disabled:D},le)),M(le)})),Dc=zc;Dc.Group=e=>{const{getPrefixCls:t,direction:n}=r.useContext(To),{prefixCls:o,size:i,className:a}=e,l=Ul(e,["prefixCls","size","className"]),c=t("btn-group",o),[,,s]=yi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=dr("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=p(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===n},a,s);return r.createElement(Yl.Provider,{value:i},r.createElement("div",Object.assign({},l,{className:d})))},Dc.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(Dc.displayName="Button");var Hc=r.createContext(null),Vc=[];function Wc(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";Je("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Qe(t),{width:f,height:p}}(e):{width:0,height:0}}var qc="rc-util-locker-".concat(Date.now()),Xc=0;function Kc(e){var t=!!e,n=ze(r.useState((function(){return Xc+=1,"".concat(qc,"_").concat(Xc)})),1)[0];kt((function(){if(t){var e=Wc(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Je("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Qe(n);return function(){Qe(n)}}),[t,n])}var Gc=function(e){return!1!==e&&(He()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Uc=r.forwardRef((function(e,n){var o=e.open,i=e.autoLock,a=e.getContainer,l=e.debug,c=e.autoDestroy,s=void 0===c||c,u=e.children,d=ze(r.useState(o),2),f=d[0],p=d[1],m=f||o;"production"!==process.env.NODE_ENV&&N(He()||!o,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),r.useEffect((function(){(s||o)&&p(o)}),[o,s]);var g=ze(r.useState((function(){return Gc(a)})),2),v=g[0],h=g[1];r.useEffect((function(){var e=Gc(a);h(null!=e?e:null)}));var b=function(e,t){var n=ze(r.useState((function(){if(!He())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e})),1)[0],o=r.useRef(!1),i=r.useContext(Hc),a=ze(r.useState(Vc),2),l=a[0],c=a[1],s=i||(o.current?void 0:function(e){c((function(t){return[e].concat(Ie(t))}))});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return kt((function(){return e?i?i(u):u():d(),d}),[e]),kt((function(){l.length&&(l.forEach((function(e){return e()})),c(Vc))}),[l]),[n,s]}(m&&!v,l),y=ze(b,2),x=y[0],w=y[1],C=null!=v?v:x;Kc(i&&o&&He()&&(C===x||C===document.body));var E=null;u&&z(u)&&n&&(E=u.ref);var S=F(E,n);if(!m||!He()||void 0===v)return null;var $=!1===C||!1,O=u;return n&&(O=r.cloneElement(u,{ref:S})),r.createElement(Hc.Provider,{value:w},$?O:t.createPortal(O,C))}));"production"!==process.env.NODE_ENV&&(Uc.displayName="Portal");var Yc=0,Zc=M({},r).useId,Qc=Zc?function(e){var t=Zc();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=ze(r.useState("ssr-id"),2),n=t[0],o=t[1];return r.useEffect((function(){var e=Yc;Yc+=1,o("rc_unique_".concat(e))}),[]),e||("test"===process.env.NODE_ENV?"test-id":n)},Jc="RC_FORM_INTERNAL_HOOKS",es=function(){N(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ts=r.createContext({getFieldValue:es,getFieldsValue:es,getFieldError:es,getFieldWarning:es,getFieldsError:es,isFieldsTouched:es,isFieldTouched:es,isFieldValidating:es,isFieldsValidating:es,resetFields:es,setFields:es,setFieldValue:es,setFieldsValue:es,validateFields:es,submit:es,getInternalHooks:function(){return es(),{dispatch:es,initEntityValue:es,registerField:es,useSubscribe:es,setInitialValues:es,destroyForm:es,setCallbacks:es,registerWatch:es,getFields:es,setValidateMessages:es,setPreserve:es,getInitialValue:es}}}),ns=r.createContext(null);function rs(e){return null==e?[]:Array.isArray(e)?e:[e]}function os(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var is=os();function as(e){var t="function"==typeof Map?new Map:void 0;return as=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(ye())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ve(o,n.prototype),o}(e,arguments,be(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ve(n,e)},as(e)}var ls=/%[sdj%]/g,cs=function(){};function ss(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function us(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,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(ls,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function ds(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function fs(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(cs=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var ps=function(){he(t,as(Error));var e=we(t);function t(n,r){var o;return pe(this,t),I(xe(o=e.call(this,"Async Validation Error")),"errors",void 0),I(xe(o),"fields",void 0),o.errors=n,o.fields=r,o}return ge(t)}();function ms(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Ie(e[n]||[]))})),t}(e);fs(a,n,(function(e){return r(e),e.length?i(new ps(e,ss(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new ps(u,ss(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?fs(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Ie(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function gs(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function vs(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===j(r)&&"object"===j(e[n])?e[n]=M(M({},e[n]),r):e[n]=r}return e}var hs,bs="enum",ys=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!ds(t,i||e.type)||r.push(us(o.messages.required,e.fullField))},xs=/^(([^<>()\[\]\\.,;:\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,}))$/,ws=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Cs={integer:function(e){return Cs.number(e)&&parseInt(e,10)===e},float:function(e){return Cs.number(e)&&!Cs.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===j(e)&&!Cs.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(xs)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(hs)return hs;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(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=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return hs=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(ws)}},Es={required:ys,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(us(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)ys(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Cs[i](t)||r.push(us(o.messages.types[i],e.fullField,e.type)):i&&j(t)!==e.type&&r.push(us(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(us(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(us(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(us(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(us(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[bs]=Array.isArray(e[bs])?e[bs]:[],-1===e[bs].indexOf(t)&&r.push(us(o.messages[bs],e.fullField,e[bs].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(us(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(us(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Ss=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t,i)&&!e.required)return n();Es.required(e,t,r,a,o,i),ds(t,i)||Es.type(e,t,r,a,o)}n(a)},$s={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t,"string")&&!e.required)return n();Es.required(e,t,r,i,o,"string"),ds(t,"string")||(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o),Es.pattern(e,t,r,i,o),!0===e.whitespace&&Es.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),ds(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t)&&!e.required)return n();Es.required(e,t,r,i,o),ds(t)||Es.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Es.required(e,t,r,i,o,"array"),null!=t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t,"string")&&!e.required)return n();Es.required(e,t,r,i,o),ds(t,"string")||Es.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t,"date")&&!e.required)return n();var a;if(Es.required(e,t,r,i,o),!ds(t,"date"))a=t instanceof Date?t:new Date(t),Es.type(e,a,r,i,o),a&&Es.range(e,a.getTime(),r,i,o)}n(i)},url:Ss,hex:Ss,email:Ss,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":j(t);Es.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ds(t)&&!e.required)return n();Es.required(e,t,r,i,o)}n(i)}},Os=function(){function e(t){pe(this,e),I(this,"rules",null),I(this,"_messages",is),this.define(t)}return ge(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==j(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=vs(os(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===is&&(a=os()),vs(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=M({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":j(i)))),(a="function"==typeof a?{validator:a}:M({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return ms(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==j(a.fields)&&"object"!==j(a.defaultField));function s(e,t){return M(M({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Ie(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(gs(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(gs(a,r)):o.error&&(d=[o.error(a,us(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=M(M({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Ie(d)),e&&e.length&&t.push.apply(t,Ie(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,Ie(t)):o.push(t);o.length?(a=ss(o),i(o,a)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!$s.hasOwnProperty(e.type))throw new Error(us("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?$s.required:$s[this.getType(e)]||void 0}}]),e}();I(Os,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");$s[e]=t})),I(Os,"warning",cs),I(Os,"messages",is),I(Os,"validators",$s);var ks="'${name}' is not a valid ${type}",Ns={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:ks,method:ks,array:ks,object:ks,number:ks,date:ks,boolean:ks,integer:ks,float:ks,regexp:ks,email:ks,url:ks,hex:ks},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}"}},js=Os;function Ps(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var Is="CODE_LOGIC_ERROR";function Rs(e,t,n,r,o){return Ms.apply(this,arguments)}function Ms(){return Ms=vl(ml().mark((function e(t,n,o,i,a){var l,c,s,u,d,f,p,m,g;return ml().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=M({},o)).ruleIndex,js.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Is)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new js(I({},t,[l])),d=ar(Ns,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(I({},t,n),M({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,t){var n=e.message,o=n===Is?d.default:n;return r.isValidElement(o)?r.cloneElement(o,{key:"error_".concat(t)}):o})));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Rs("".concat(t,".").concat(n),e,s,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Ie(e),Ie(t))}),[]));case 23:return m=M(M({},o),{},{name:t,enum:(o.enum||[]).join(", ")},a),g=f.map((function(e){return"string"==typeof e?Ps(e,m):e})),e.abrupt("return",g);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Ms.apply(this,arguments)}function Ts(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=M(M({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){N(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));N(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=vl(ml().mark((function e(n,o){var a,s,u;return ml().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Rs(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map((function(e){return Rs(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return _s.apply(this,arguments)}(s):function(e){return As.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function As(){return(As=vl(ml().mark((function e(t){return ml().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Ie(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _s(){return(_s=vl(ml().mark((function e(t){var n;return ml().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bs(e){return rs(e)}function Ls(e,t){var n={};return t.forEach((function(t){var r=tr(e,t);n=rr(n,t,r)})),n}function Fs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return zs(t,e,n)}))}function zs(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function Ds(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===j(t.target)&&e in t.target?t.target[e]:t}function Hs(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ie(e.slice(0,n)),[o],Ie(e.slice(n,t)),Ie(e.slice(t+1,r))):i<0?[].concat(Ie(e.slice(0,t)),Ie(e.slice(t+1,n+1)),[o],Ie(e.slice(n+1,r))):e}var Vs=["name"],Ws=[];function qs(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Xs=function(){he(t,r.Component);var e=we(t);function t(n){var o;(pe(this,t),I(xe(o=e.call(this,n)),"state",{resetCount:0}),I(xe(o),"cancelRegisterFunc",null),I(xe(o),"mounted",!1),I(xe(o),"touched",!1),I(xe(o),"dirty",!1),I(xe(o),"validatePromise",void 0),I(xe(o),"prevValidating",void 0),I(xe(o),"errors",Ws),I(xe(o),"warnings",Ws),I(xe(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Bs(r)),o.cancelRegisterFunc=null})),I(xe(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Ie(void 0===n?[]:n),Ie(t)):[]})),I(xe(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),I(xe(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),I(xe(o),"metaCache",null),I(xe(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=M(M({},o.getMeta()),{},{destroy:e});tt(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),I(xe(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(s),p=t&&Fs(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||tt(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Ws,o.warnings=Ws,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Ws,o.warnings=Ws,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&qs(i,e,s,d,f,n))return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||Ws),"warnings"in m&&(o.warnings=m.warnings||Ws),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&Fs(t,u,!0))return void o.reRender();if(i&&!u.length&&qs(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Bs).some((function(e){return Fs(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&qs(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),I(xe(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(vl(ml().mark((function r(){var a,l,s,u,d,f,p;return ml().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||rs(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=Ts(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ws;if(o.validatePromise===c){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?Ws:o;t?r.push.apply(r,Ie(i)):n.push.apply(n,Ie(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=c,o.dirty=!0,o.errors=Ws,o.warnings=Ws,o.triggerMetaEvent(),o.reRender()),c})),I(xe(o),"isFieldValidating",(function(){return!!o.validatePromise})),I(xe(o),"isFieldTouched",(function(){return o.touched})),I(xe(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Jc).getInitialValue)(o.getNamePath())})),I(xe(o),"getErrors",(function(){return o.errors})),I(xe(o),"getWarnings",(function(){return o.warnings})),I(xe(o),"isListField",(function(){return o.props.isListField})),I(xe(o),"isList",(function(){return o.props.isList})),I(xe(o),"isPreserve",(function(){return o.props.preserve})),I(xe(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),I(xe(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return M(M({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=w(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),I(xe(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return tr(e||t(!0),n)})),I(xe(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,g=p(Jc).dispatch,v=o.getValue(),h=s||function(e){return I({},c,e)},b=e[r],y=void 0!==n?h(v):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){N("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var x=M(M({},e),y);return x[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):Ds.apply(void 0,[c].concat(n)),l&&(e=l(e,v,m(!0))),g({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},rs(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}})),x})),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(Jc).initEntityValue)(xe(o));return o}return ge(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Jc).registerField;this.cancelRegisterFunc=r(this)}!0===t&&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 e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),i=o.child;return o.isFunction?e=i:r.isValidElement(i)?e=r.cloneElement(i,this.getControlled(i.props)):(N(!i,"`children` of Field is not validate ReactElement."),e=i),r.createElement(r.Fragment,{key:t},e)}}]),t}();function Ks(e){var t=e.name,n=et(e,Vs),o=r.useContext(ts),i=r.useContext(ns),a=void 0!==t?Bs(t):void 0,l="keep";return n.isListField||(l="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===n.preserve&&n.isListField&&a.length<=1&&N(!1,"`preserve` should not apply on Form.List fields."),r.createElement(Xs,m({key:l,name:a,isListField:!!i},n,{fieldContext:o}))}I(Xs,"contextType",ts),I(Xs,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Gs="__@field_split__";function Us(e){return e.map((function(e){return"".concat(j(e),":").concat(e)})).join(Gs)}var Ys=function(){function e(){pe(this,e),I(this,"kvs",new Map)}return ge(e,[{key:"set",value:function(e,t){this.kvs.set(Us(e),t)}},{key:"get",value:function(e){return this.kvs.get(Us(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Us(e))}},{key:"map",value:function(e){return Ie(this.kvs.entries()).map((function(t){var n=ze(t,2),r=n[0],o=n[1],i=r.split(Gs);return e({key:i.map((function(e){var t=ze(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),Zs=["name"],Qs=ge((function e(t){var n=this;pe(this,e),I(this,"formHooked",!1),I(this,"forceRootUpdate",void 0),I(this,"subscribable",!0),I(this,"store",{}),I(this,"fieldEntities",[]),I(this,"initialValues",{}),I(this,"callbacks",{}),I(this,"validateMessages",null),I(this,"preserve",null),I(this,"lastValidatePromise",null),I(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}})),I(this,"getInternalHooks",(function(e){return e===Jc?(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}):(N(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),I(this,"useSubscribe",(function(e){n.subscribable=e})),I(this,"prevWithoutPreserves",null),I(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=ar(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=rr(o,n,tr(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),I(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new Ys;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),I(this,"getInitialValue",(function(e){var t=tr(n.initialValues,e);return e.length?ar(t):t})),I(this,"setCallbacks",(function(e){n.callbacks=e})),I(this,"setValidateMessages",(function(e){n.validateMessages=e})),I(this,"setPreserve",(function(e){n.preserve=e})),I(this,"watchList",[]),I(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),I(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),I(this,"timeoutId",null),I(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||N(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),I(this,"updateStore",(function(e){n.store=e})),I(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),I(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Ys;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),I(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Bs(e);return t.get(n)||{INVALIDATE_NAME_PATH:Bs(e)}}))})),I(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===j(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)})),Ls(n.store,l.map(Bs))})),I(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Bs(e);return tr(n.store,t)})),I(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Bs(e[n]),errors:[],warnings:[]}}))})),I(this,"getFieldError",(function(e){n.warningUnhooked();var t=Bs(e);return n.getFieldsError([t])[0].errors})),I(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Bs(e);return n.getFieldsError([t])[0].warnings})),I(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Bs),l=!1):(o=null,l=i):(o=i.map(Bs),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every((function(e){return s(e)||e.isList()})):c.some(s);var u=new Ys;o.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Ie(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),I(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),I(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Bs);return t.some((function(e){var t=e.getNamePath();return Fs(r,t)&&e.isFieldValidating()}))})),I(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),I(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Ys,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Ie(Ie(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))N(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)N(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(rr(n.store,o,Ie(i)[0].value))}}}}))})),I(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(ar(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Bs);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(rr(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),I(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=et(e,Zs),a=Bs(o);r.push(a),"value"in i&&n.updateStore(rr(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),I(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=M(M({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),I(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===tr(n.store,r)&&n.updateStore(rr(n.store,r,t))}})),I(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),I(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!zs(e.getNamePath(),t)}))){var l=n.store;n.updateStore(rr(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),I(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),I(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=M(M({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),I(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Ie(r))}),r})),I(this,"updateValue",(function(e,t){var r=Bs(e),o=n.store;n.updateStore(rr(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Ls(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Ie(i)))})),I(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=ar(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),I(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),I(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Ys;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Bs(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),I(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Ys;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return Fs(e,n)}));a.length&&r(a,o)}})),I(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Bs):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||Fs(a,t,d)){var r=e.validateRules(M({validateMessages:M(M({},Ns),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Ie(n)):r.push.apply(r,Ie(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var g=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(g),m})),I(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function Js(e){var t=r.useRef(),n=ze(r.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new Qs((function(){n({})}));t.current=o.getForm()}return[t.current]}var eu=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),tu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],nu=function(e,t){var n=e.name,o=e.initialValues,i=e.fields,a=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,g=e.onValuesChange,v=e.onFieldsChange,h=e.onFinish,b=e.onFinishFailed,y=e.clearOnDestroy,x=et(e,tu),w=r.useRef(null),C=r.useContext(eu),E=ze(Js(a),1)[0],S=E.getInternalHooks(Jc),$=S.useSubscribe,O=S.setInitialValues,k=S.setCallbacks,N=S.setValidateMessages,P=S.setPreserve,I=S.destroyForm;r.useImperativeHandle(t,(function(){return M(M({},E),{},{nativeElement:w.current})})),r.useEffect((function(){return C.registerForm(n,E),function(){C.unregisterForm(n)}}),[C,E,n]),N(M(M({},C.validateMessages),d)),k({onValuesChange:g,onFieldsChange:function(e){if(C.triggerFormChange(n,e),v){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];v.apply(void 0,[e].concat(r))}},onFinish:function(e){C.triggerFormFinish(n,e),h&&h(e)},onFinishFailed:b}),P(l);var R,T=r.useRef(null);O(o,!T.current),T.current||(T.current=!0),r.useEffect((function(){return function(){return I(y)}}),[]);var A="function"==typeof c;A?R=c(E.getFieldsValue(!0),E):R=c;$(!A);var _=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==j(e)||"object"!==j(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Ie(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(_.current||[],i||[])||E.setFields(i||[]),_.current=i}),[i,E]);var B=r.useMemo((function(){return M(M({},E),{},{validateTrigger:p})}),[E,p]),L=r.createElement(ns.Provider,{value:null},r.createElement(ts.Provider,{value:B},R));return!1===u?L:r.createElement(u,m({},x,{ref:w,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=x.onReset)||void 0===t||t.call(x,e)}}),L)};function ru(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ou="production"!==process.env.NODE_ENV?function(t){var n=t.join("__RC_FIELD_FORM_SPLIT__");N(e.useRef(n).current===n,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var iu=r.forwardRef(nu);iu.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,i=e.children,a=r.useContext(eu),l=r.useRef({});return r.createElement(eu.Provider,{value:M(M({},a),{},{validateMessages:M(M({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=M(M({},l.current),{},I({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=M({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},iu.Field=Ks,iu.List=function(e){var t=e.name,n=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=r.useContext(ts),s=r.useContext(ns),u=r.useRef({keys:[],id:0}).current,d=r.useMemo((function(){var e=Bs(c.prefixName)||[];return[].concat(Ie(e),Ie(Bs(t)))}),[c.prefixName,t]),f=r.useMemo((function(){return M(M({},c),{},{prefixName:d})}),[c,d]),p=r.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(N(!1,"Form.List only accepts function as children."),null):r.createElement(ns.Provider,{value:p},r.createElement(ts.Provider,{value:f},r.createElement(Ks,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=l?l:!!s},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(Ie(u.keys.slice(0,t)),[u.id],Ie(u.keys.slice(t))),i([].concat(Ie(n.slice(0,t)),[e],Ie(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&N(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Ie(u.keys),[u.id]),i([].concat(Ie(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Hs(u.keys,e,t),i(Hs(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[],"production"!==process.env.NODE_ENV&&N(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),o(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))},iu.useForm=Js,iu.useWatch=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=ze(e.useState(),2),u=s[0],d=s[1],f=e.useMemo((function(){return ru(u)}),[u]),p=e.useRef(f);p.current=f;var m=e.useContext(ts),g=c||m,v=g&&g._init;"production"!==process.env.NODE_ENV&&N(2===n.length&&!c||v,"useWatch requires a form instance since it can not auto detect from context.");var h=Bs(o),b=e.useRef(h);return b.current=h,ou(h),e.useEffect((function(){if(v){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(Jc).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):tr(n,b.current)},r=t((function(e,t){var r=n(e,t),o=ru(r);p.current!==o&&(p.current=o,d(r))})),i=n(e(),e(!0));return u!==i&&d(i),r}}),[v]),u};const au=r.createContext({});"production"!==process.env.NODE_ENV&&(au.displayName="FormItemInputContext");const lu=t=>{let{children:n,status:o,override:i}=t;const a=e.useContext(au),l=e.useMemo((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,o&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[o,i,a]);return r.createElement(au.Provider,{value:l},n)},cu=e.createContext(void 0),su=t=>{const{space:n,form:r,children:o}=t;if(null==o)return null;let i=o;return r&&(i=e.createElement(lu,{override:!0,status:!0},i)),n&&(i=e.createElement(Gl,null,i)),i};var uu=function(e){if(He()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function du(e,t){return Array.isArray(e)||void 0===t?uu(e):function(e,t){if(!uu(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}const fu=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),pu=e=>({animationDuration:e,animationFillMode:"both"}),mu=e=>({animationDuration:e,animationFillMode:"both"}),gu=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},pu(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},mu(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},vu={"slide-up":{inKeyframes:new Qn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Qn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new Qn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new Qn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new Qn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Qn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new Qn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new Qn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},hu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=vu[t];return[gu(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},bu=new Qn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),yu=new Qn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),xu=new Qn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wu=new Qn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Cu=new Qn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Eu=new Qn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Su={zoom:{inKeyframes:bu,outKeyframes:yu},"zoom-big":{inKeyframes:xu,outKeyframes:wu},"zoom-big-fast":{inKeyframes:xu,outKeyframes:wu},"zoom-left":{inKeyframes:new Qn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Qn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Qn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Qn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Cu,outKeyframes:Eu},"zoom-down":{inKeyframes:new Qn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Qn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},$u=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Su[t];return[gu(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Ou=function(){if("undefined"==typeof navigator||"undefined"==typeof window)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(null==e?void 0:e.substr(0,4))},ku=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Nu=void 0;function ju(e,t){var n=e.prefixCls,o=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,g=e.children,v=e.display,h=e.order,b=e.component,y=void 0===b?"div":b,x=et(e,ku),w=l&&!v;function C(e){s(u,e)}r.useEffect((function(){return function(){C(null)}}),[]);var E,S=a&&i!==Nu?a(i):g;o||(E={opacity:w?0:1,height:w?0:Nu,overflowY:w?"hidden":Nu,order:l?h:Nu,pointerEvents:w?"none":Nu,position:w?"absolute":Nu});var $={};w&&($["aria-hidden"]=!0);var O=r.createElement(y,m({className:p(!o&&n,d),style:M(M({},E),f)},$,x,{ref:t}),S);return l&&(O=r.createElement(Oe,{onResize:function(e){C(e.offsetWidth)},disabled:c},O)),O}var Pu=r.forwardRef(ju);function Iu(){var e=r.useRef(null);return function(n){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Be(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){t.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(n)}}function Ru(e,t){var n=ze(r.useState(t),2),o=n[0],i=n[1];return[o,Go((function(t){e((function(){i(t)}))}))]}Pu.displayName="Item";var Mu=e.createContext(null),Tu=["component"],Au=["className"],_u=["className"],Bu=function(e,t){var n=r.useContext(Mu);if(!n){var o=e.component,i=void 0===o?"div":o,a=et(e,Tu);return r.createElement(i,m({},a,{ref:t}))}var l=n.className,c=et(n,Au),s=e.className,u=et(e,_u);return r.createElement(Mu.Provider,{value:null},r.createElement(Pu,m({ref:t,className:p(l,s)},c,u)))},Lu=r.forwardRef(Bu);Lu.displayName="RawItem";var Fu=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],zu="responsive",Du="invalidate";function Hu(e){return"+ ".concat(e.length," ...")}function Vu(t,n){var o=t.prefixCls,i=void 0===o?"rc-overflow":o,a=t.data,l=void 0===a?[]:a,c=t.renderItem,s=t.renderRawItem,u=t.itemKey,d=t.itemWidth,f=void 0===d?10:d,g=t.ssr,v=t.style,h=t.className,b=t.maxCount,y=t.renderRest,x=t.renderRawRest,w=t.suffix,C=t.component,E=void 0===C?"div":C,S=t.itemComponent,$=t.onVisibleChange,O=et(t,Fu),k="full"===g,N=Iu(),j=ze(Ru(N,null),2),P=j[0],I=j[1],R=P||0,T=ze(Ru(N,new Map),2),A=T[0],_=T[1],B=ze(Ru(N,0),2),L=B[0],F=B[1],z=ze(Ru(N,0),2),D=z[0],H=z[1],V=ze(Ru(N,0),2),W=V[0],q=V[1],X=ze(e.useState(null),2),K=X[0],G=X[1],U=ze(e.useState(null),2),Y=U[0],Z=U[1],Q=r.useMemo((function(){return null===Y&&k?Number.MAX_SAFE_INTEGER:Y||0}),[Y,P]),J=ze(e.useState(!1),2),ee=J[0],te=J[1],ne="".concat(i,"-item"),re=Math.max(L,D),oe=b===zu,ie=l.length&&oe,ae=b===Du,le=ie||"number"==typeof b&&l.length>b,ce=e.useMemo((function(){var e=l;return ie?e=null===P&&k?l:l.slice(0,Math.min(l.length,R/f)):"number"==typeof b&&(e=l.slice(0,b)),e}),[l,f,P,b,ie]),se=e.useMemo((function(){return ie?l.slice(Q+1):l.slice(ce.length)}),[l,ce,ie,Q]),ue=e.useCallback((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),de=e.useCallback(c||function(e){return e},[c]);function fe(e,t,n){(Y!==e||void 0!==t&&t!==K)&&(Z(e),n||(te(e<l.length-1),null==$||$(e)),void 0!==t&&G(t))}function pe(e,t){_((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function me(e){return A.get(ue(ce[e],e))}kt((function(){if(R&&"number"==typeof re&&ce){var e=W,t=ce.length,n=t-1;if(!t)return void fe(0,null);for(var r=0;r<t;r+=1){var o=me(r);if(k&&(o=o||0),void 0===o){fe(r-1,void 0,!0);break}if(e+=o,0===n&&e<=R||r===n-1&&e+me(n)<=R){fe(n,null);break}if(e+re>R){fe(r-1,e-o-W+D);break}}w&&me(0)+W>R&&G(null)}}),[R,A,D,W,ue,ce]);var ge=ee&&!!se.length,ve={};null!==K&&ie&&(ve={position:"absolute",left:K,top:0});var he,be={prefixCls:ne,responsive:ie,component:S,invalidate:ae},ye=s?function(e,t){var n=ue(e,t);return r.createElement(Mu.Provider,{key:n,value:M(M({},be),{},{order:t,item:e,itemKey:n,registerSize:pe,display:t<=Q})},s(e,t))}:function(e,t){var n=ue(e,t);return r.createElement(Pu,m({},be,{order:t,key:n,item:e,renderItem:de,itemKey:n,registerSize:pe,display:t<=Q}))},xe={order:ge?Q:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:function(e,t){H(t),F(D)},display:ge};if(x)x&&(he=r.createElement(Mu.Provider,{value:M(M({},be),xe)},x(se)));else{var we=y||Hu;he=r.createElement(Pu,m({},be,xe),"function"==typeof we?we(se):we)}var Ce=r.createElement(E,m({className:p(!ae&&i,h),style:v,ref:n},O),ce.map(ye),le?he:null,w&&r.createElement(Pu,m({},be,{responsive:oe,responsiveDisabled:!ie,order:Q,className:"".concat(ne,"-suffix"),registerSize:function(e,t){q(t)},display:!0,style:ve}),w));return oe&&(Ce=r.createElement(Oe,{onResize:function(e,t){I(t.clientWidth)},disabled:!ie},Ce)),Ce}var Wu=r.forwardRef(Vu);function qu(e){var t=e.prefixCls,n=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,m=r.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(!1!==n.autoArrow){var v=n.points[0],h=n.points[1],b=v[0],y=v[1],x=h[0],w=h[1];b!==x&&["t","b"].includes(b)?"t"===b?g.top=0:g.bottom=0:g.top=f,y!==w&&["l","r"].includes(y)?"l"===y?g.left=0:g.right=0:g.left=u}return r.createElement("div",{ref:m,className:p("".concat(t,"-arrow"),l),style:g},c)}function Xu(e){var t=e.prefixCls,n=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?r.createElement(ga,m({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:p("".concat(t,"-mask"),n)})})):null}Wu.displayName="Overflow",Wu.Item=Lu,Wu.RESPONSIVE=zu,Wu.INVALIDATE=Du;var Ku=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(Ku.displayName="PopupContent");var Gu=r.forwardRef((function(e,t){var n=e.popup,o=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,g=e.mask,v=e.arrow,h=e.arrowPos,b=e.align,y=e.motion,x=e.maskMotion,w=e.forceRender,C=e.getPopupContainer,E=e.autoDestroy,S=e.portal,$=e.zIndex,O=e.onMouseEnter,k=e.onMouseLeave,N=e.onPointerEnter,j=e.ready,P=e.offsetX,I=e.offsetY,R=e.offsetR,T=e.offsetB,A=e.onAlign,_=e.onPrepare,B=e.stretch,F=e.targetWidth,z=e.targetHeight,D="function"==typeof n?n():n,H=s||u,V=(null==C?void 0:C.length)>0,W=ze(r.useState(!C||!V),2),q=W[0],X=W[1];if(kt((function(){!q&&V&&l&&X(!0)}),[q,V,l]),!q)return null;var K="auto",G={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(j||!s){var U,Y=b.points,Z=b.dynamicInset||(null===(U=b._experimental)||void 0===U?void 0:U.dynamicInset),Q=Z&&"r"===Y[0][1],J=Z&&"b"===Y[0][0];Q?(G.right=R,G.left=K):(G.left=P,G.right=K),J?(G.bottom=T,G.top=K):(G.top=I,G.bottom=K)}var ee={};return B&&(B.includes("height")&&z?ee.height=z:B.includes("minHeight")&&z&&(ee.minHeight=z),B.includes("width")&&F?ee.width=F:B.includes("minWidth")&&F&&(ee.minWidth=F)),s||(ee.pointerEvents="none"),r.createElement(S,{open:w||H,getContainer:C&&function(){return C(l)},autoDestroy:E},r.createElement(Xu,{prefixCls:i,open:s,zIndex:$,mask:g,motion:x}),r.createElement(Oe,{onResize:A,disabled:!s},(function(e){return r.createElement(ga,m({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:_,onEnterPrepare:_,visible:s,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),c(e)}}),(function(n,l){var c=n.className,u=n.style,m=p(i,c,o);return r.createElement("div",{ref:L(e,t,l),className:m,style:M(M(M(M({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},G),ee),u),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:O,onMouseLeave:k,onPointerEnter:N,onClick:f},v&&r.createElement(qu,{prefixCls:i,arrow:v,arrowPos:h,align:b}),r.createElement(Ku,{cache:!s&&!d},D))}))})))}));"production"!==process.env.NODE_ENV&&(Gu.displayName="Popup");var Uu=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=z(n),a=r.useCallback((function(e){B(t,o?o(e):e)}),[o]),l=F(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));"production"!==process.env.NODE_ENV&&(Uu.displayName="TriggerWrapper");var Yu=r.createContext(null);function Zu(e){return e?Array.isArray(e)?e:[e]:[]}function Qu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Ju(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ed(e){return e.ownerDocument.defaultView}function td(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=ed(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function nd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function rd(e){return nd(parseFloat(e),0)}function od(e,t){var n=M({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=ed(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=rd(i),g=rd(a),v=rd(l),h=rd(c),b=nd(Math.round(s.width/f*1e3)/1e3),y=nd(Math.round(s.height/u*1e3)/1e3),x=(f-p-v-h)*b,w=(u-d-m-g)*y,C=m*y,E=g*y,S=v*b,$=h*b,O=0,k=0;if("clip"===r){var N=rd(o);O=N*b,k=N*y}var j=s.x+S-O,P=s.y+C-k,I=j+s.width+2*O-S-$-x,R=P+s.height+2*k-C-E-w;n.left=Math.max(n.left,j),n.top=Math.max(n.top,P),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,R)}})),n}function id(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function ad(e,t){var n=ze(t||[],2),r=n[0],o=n[1];return[id(e.width,r),id(e.height,o)]}function ld(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function cd(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function sd(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var ud=["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"];var dd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uc,t=r.forwardRef((function(t,n){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=t.children,l=t.action,c=void 0===l?"hover":l,s=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,m=t.onPopupVisibleChange,g=t.afterPopupVisibleChange,v=t.mouseEnterDelay,h=t.mouseLeaveDelay,b=void 0===h?.1:h,y=t.focusDelay,x=t.blurDelay,w=t.mask,C=t.maskClosable,E=void 0===C||C,$=t.getPopupContainer,O=t.forceRender,k=t.autoDestroy,N=t.destroyPopupOnHide,j=t.popup,P=t.popupClassName,I=t.popupStyle,R=t.popupPlacement,A=t.builtinPlacements,_=void 0===A?{}:A,B=t.popupAlign,L=t.zIndex,F=t.stretch,z=t.getPopupClassNameFromAlign,D=t.fresh,H=t.alignPoint,V=t.onPopupClick,W=t.onPopupAlign,q=t.arrow,X=t.popupMotion,K=t.maskMotion,G=t.popupTransitionName,U=t.popupAnimation,Y=t.maskTransitionName,Z=t.maskAnimation,Q=t.className,J=t.getTriggerDOMNode,ee=et(t,ud),te=k||N||!1,ne=ze(r.useState(!1),2),re=ne[0],oe=ne[1];kt((function(){oe(Ou())}),[]);var ie=r.useRef({}),ae=r.useContext(Yu),le=r.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),ce=Qc(),se=ze(r.useState(null),2),ue=se[0],de=se[1],fe=r.useRef(null),pe=Go((function(e){fe.current=e,T(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(ce,e)})),me=ze(r.useState(null),2),ge=me[0],ve=me[1],he=r.useRef(null),be=Go((function(e){T(e)&&ge!==e&&(ve(e),he.current=e)})),ye=r.Children.only(a),xe=(null==ye?void 0:ye.props)||{},we={},Ce=function(e,t){var n,r;return e===t||t.contains(e)||(null===(n=Aa(t))||void 0===n?void 0:n.host)===e||t.contains(null===(r=Aa(e))||void 0===r?void 0:r.host)},Ee=Go((function(e){var t=ge,n=Ce.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Se=Ju(i,X,U,G),$e=Ju(i,K,Z,Y),ke=ze(r.useState(f||!1),2),Ne=ke[0],je=ke[1],Pe=null!=d?d:Ne,Re=Go((function(e){void 0===d&&je(e)}));kt((function(){je(d||!1)}),[d]);var Me=r.useRef(Pe);Me.current=Pe;var Te=r.useRef([]);Te.current=[];var Ae=Go((function(e){var t;Re(e),(null!==(t=Te.current[Te.current.length-1])&&void 0!==t?t:Pe)!==e&&(Te.current.push(e),null==m||m(e))})),_e=r.useRef(),Be=function(){clearTimeout(_e.current)},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Be(),0===t?Ae(e):_e.current=setTimeout((function(){Ae(e)}),1e3*t)};r.useEffect((function(){return Be}),[]);var Fe=ze(r.useState(!1),2),De=Fe[0],He=Fe[1];kt((function(e){e&&!Pe||He(!0)}),[Pe]);var Ve=ze(r.useState(null),2),We=Ve[0],qe=Ve[1],Xe=ze(r.useState(null),2),Ke=Xe[0],Ge=Xe[1],Ue=function(e){Ge([e.clientX,e.clientY])},Ye=function(e,t,n,o,i,a,l){var c=ze(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=r.useRef(0),f=r.useMemo((function(){return t?td(t):[]}),[t]),p=r.useRef({});e||(p.current={});var m=Go((function(){if(t&&n&&e){var r,c,s,d,m,g=t,v=g.ownerDocument,h=ed(g).getComputedStyle(g),b=h.width,y=h.height,x=h.position,w=g.style.left,C=g.style.top,E=g.style.right,S=g.style.bottom,$=g.style.overflow,O=M(M({},i[o]),a),k=v.createElement("div");if(null===(r=g.parentElement)||void 0===r||r.appendChild(k),k.style.left="".concat(g.offsetLeft,"px"),k.style.top="".concat(g.offsetTop,"px"),k.style.position=x,k.style.height="".concat(g.offsetHeight,"px"),k.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var N,j,P=n.getBoundingClientRect();P.x=null!==(N=P.x)&&void 0!==N?N:P.left,P.y=null!==(j=P.y)&&void 0!==j?j:P.top,m={x:P.x,y:P.y,width:P.width,height:P.height}}var I=g.getBoundingClientRect();I.x=null!==(c=I.x)&&void 0!==c?c:I.left,I.y=null!==(s=I.y)&&void 0!==s?s:I.top;var R=v.documentElement,A=R.clientWidth,_=R.clientHeight,B=R.scrollWidth,L=R.scrollHeight,F=R.scrollTop,z=R.scrollLeft,D=I.height,H=I.width,V=m.height,W=m.width,q={left:0,top:0,right:A,bottom:_},X={left:-z,top:-F,right:B-z,bottom:L-F},K=O.htmlRegion,G="visible",U="visibleFirst";"scroll"!==K&&K!==U&&(K=G);var Y=K===U,Z=od(X,f),Q=od(q,f),J=K===G?Q:Z,ee=Y?Q:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=w,g.style.top=C,g.style.right=E,g.style.bottom=S,g.style.overflow=$,null===(d=g.parentElement)||void 0===d||d.removeChild(k);var ne=nd(Math.round(H/parseFloat(b)*1e3)/1e3),re=nd(Math.round(D/parseFloat(y)*1e3)/1e3);if(0===ne||0===re||T(n)&&!Al(n))return;var oe=O.offset,ie=O.targetOffset,ae=ze(ad(I,oe),2),le=ae[0],ce=ae[1],se=ze(ad(m,ie),2),ue=se[0],de=se[1];m.x-=ue,m.y-=de;var fe=ze(O.points||[],2),pe=fe[0],me=ld(fe[1]),ge=ld(pe),ve=cd(m,me),he=cd(I,ge),be=M({},O),ye=ve.x-he.x+le,xe=ve.y-he.y+ce;function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=I.x+e,o=I.y+t,i=r+H,a=o+D,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var we,Ce,Ee,Se,$e=mt(ye,xe),Oe=mt(ye,xe,Q),ke=cd(m,["t","l"]),Ne=cd(I,["t","l"]),je=cd(m,["b","r"]),Pe=cd(I,["b","r"]),Ie=O.overflow||{},Re=Ie.adjustX,Me=Ie.adjustY,Te=Ie.shiftX,Ae=Ie.shiftY,_e=function(e){return"boolean"==typeof e?e:e>=0};function gt(){we=I.y+xe,Ce=we+D,Ee=I.x+ye,Se=Ee+H}gt();var Be=_e(Me),Le=ge[0]===me[0];if(Be&&"t"===ge[0]&&(Ce>ee.bottom||p.current.bt)){var Fe=xe;Le?Fe-=D-V:Fe=ke.y-Pe.y-ce;var De=mt(ye,Fe),He=mt(ye,Fe,Q);De>$e||De===$e&&(!Y||He>=Oe)?(p.current.bt=!0,xe=Fe,ce=-ce,be.points=[sd(ge,0),sd(me,0)]):p.current.bt=!1}if(Be&&"b"===ge[0]&&(we<ee.top||p.current.tb)){var Ve=xe;Le?Ve+=D-V:Ve=je.y-Ne.y-ce;var We=mt(ye,Ve),qe=mt(ye,Ve,Q);We>$e||We===$e&&(!Y||qe>=Oe)?(p.current.tb=!0,xe=Ve,ce=-ce,be.points=[sd(ge,0),sd(me,0)]):p.current.tb=!1}var Xe=_e(Re),Ke=ge[1]===me[1];if(Xe&&"l"===ge[1]&&(Se>ee.right||p.current.rl)){var Ge=ye;Ke?Ge-=H-W:Ge=ke.x-Pe.x-le;var Ue=mt(Ge,xe),Ye=mt(Ge,xe,Q);Ue>$e||Ue===$e&&(!Y||Ye>=Oe)?(p.current.rl=!0,ye=Ge,le=-le,be.points=[sd(ge,1),sd(me,1)]):p.current.rl=!1}if(Xe&&"r"===ge[1]&&(Ee<ee.left||p.current.lr)){var Ze=ye;Ke?Ze+=H-W:Ze=je.x-Ne.x-le;var Qe=mt(Ze,xe),Je=mt(Ze,xe,Q);Qe>$e||Qe===$e&&(!Y||Je>=Oe)?(p.current.lr=!0,ye=Ze,le=-le,be.points=[sd(ge,1),sd(me,1)]):p.current.lr=!1}gt();var et=!0===Te?0:Te;"number"==typeof et&&(Ee<Q.left&&(ye-=Ee-Q.left-le,m.x+W<Q.left+et&&(ye+=m.x-Q.left+W-et)),Se>Q.right&&(ye-=Se-Q.right-le,m.x>Q.right-et&&(ye+=m.x-Q.right+et)));var tt=!0===Ae?0:Ae;"number"==typeof tt&&(we<Q.top&&(xe-=we-Q.top-ce,m.y+V<Q.top+tt&&(xe+=m.y-Q.top+V-tt)),Ce>Q.bottom&&(xe-=Ce-Q.bottom-ce,m.y>Q.bottom-tt&&(xe+=m.y-Q.bottom+tt)));var nt=I.x+ye,rt=nt+H,ot=I.y+xe,it=ot+D,at=m.x,lt=at+W,ct=m.y,st=ct+V,ut=(Math.max(nt,at)+Math.min(rt,lt))/2-nt,dt=(Math.max(ot,ct)+Math.min(it,st))/2-ot;null==l||l(t,be);var ft=te.right-I.x-(ye+I.width),pt=te.bottom-I.y-(xe+I.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===re&&(xe=Math.round(xe),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:xe/re,offsetR:ft/ne,offsetB:pt/re,arrowX:ut/ne,arrowY:dt/re,scaleX:ne,scaleY:re,align:be})}})),g=function(){u((function(e){return M(M({},e),{},{ready:!1})}))};return kt(g,[o]),kt((function(){e||g()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(Pe,ue,H&&null!==Ke?Ke:ge,R,_,B,W),Ze=ze(Ye,11),Qe=Ze[0],Je=Ze[1],tt=Ze[2],nt=Ze[3],rt=Ze[4],ot=Ze[5],it=Ze[6],at=Ze[7],lt=Ze[8],ct=Ze[9],st=Ze[10],ut=function(e,t,n,o){return r.useMemo((function(){var r=Zu(null!=n?n:t),i=Zu(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(re,c,s,u),dt=ze(ut,2),ft=dt[0],pt=dt[1],mt=ft.has("click"),gt=pt.has("click")||pt.has("contextMenu"),vt=Go((function(){De||st()}));!function(e,t,n,r,o){kt((function(){if(e&&t&&n){var i=n,a=td(t),l=td(i),c=ed(i),s=new Set([c].concat(Ie(a),Ie(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(Pe,ge,ue,vt,(function(){Me.current&&H&&gt&&Le(!1)})),kt((function(){vt()}),[Ke,R]),kt((function(){!Pe||null!=_&&_[R]||vt()}),[JSON.stringify(B)]);var ht=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(Qu(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(_,i,ct,H);return p(e,null==z?void 0:z(ct))}),[ct,z,_,i,H]);r.useImperativeHandle(n,(function(){return{nativeElement:he.current,popupElement:fe.current,forceAlign:vt}}));var bt=ze(r.useState(0),2),yt=bt[0],xt=bt[1],wt=ze(r.useState(0),2),Ct=wt[0],Et=wt[1],St=function(){if(F&&ge){var e=ge.getBoundingClientRect();xt(e.width),Et(e.height)}};function $t(e,t,n,r){we[e]=function(o){var i;null==r||r(o),Le(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=xe[e])||void 0===i||i.call.apply(i,[xe,o].concat(l))}}kt((function(){We&&(st(),We(),qe(null))}),[We]),(mt||gt)&&(we.onClick=function(e){var t;Me.current&&gt?Le(!1):!Me.current&&mt&&(Ue(e),Le(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=xe.onClick)||void 0===t||t.call.apply(t,[xe,e].concat(r))}),function(e,t,n,o,i,a,l,c){var s=r.useRef(e);s.current=e,r.useEffect((function(){if(t&&o&&(!i||a)){var e=function(e){var t;s.current&&!l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},r=ed(o);r.addEventListener("mousedown",e,!0),r.addEventListener("contextmenu",e,!0);var u,d,f=Aa(n);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&S((null==n||null===(u=n.getRootNode)||void 0===u?void 0:u.call(n))===(null===(d=o.getRootNode)||void 0===d?void 0:d.call(o)),"trigger element and popup element should in same shadow root."),function(){r.removeEventListener("mousedown",e,!0),r.removeEventListener("contextmenu",e,!0),f&&(f.removeEventListener("mousedown",e,!0),f.removeEventListener("contextmenu",e,!0))}}}),[t,n,o,i,a])}(Pe,gt,ge,ue,w,E,Ee,Le);var Ot,Nt,jt=ft.has("hover"),Pt=pt.has("hover");jt&&($t("onMouseEnter",!0,v,(function(e){Ue(e)})),$t("onPointerEnter",!0,v,(function(e){Ue(e)})),Ot=function(e){(Pe||De)&&null!=ue&&ue.contains(e.target)&&Le(!0,v)},H&&(we.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),Pt&&($t("onMouseLeave",!1,b),$t("onPointerLeave",!1,b),Nt=function(){Le(!1,b)}),ft.has("focus")&&$t("onFocus",!0,y),pt.has("focus")&&$t("onBlur",!1,x),ft.has("contextMenu")&&(we.onContextMenu=function(e){var t;Me.current&&pt.has("contextMenu")?Le(!1):(Ue(e),Le(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=xe.onContextMenu)||void 0===t||t.call.apply(t,[xe,e].concat(r))}),Q&&(we.className=p(xe.className,Q));var It=M(M({},xe),we),Rt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(Rt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=It[e])||void 0===t||t.call.apply(t,[It].concat(r)),ee[e].apply(ee,r)})}));var Mt=r.cloneElement(ye,M(M({},It),Rt)),Tt={x:ot,y:it},At=q?M({},!0!==q?q:{}):null;return r.createElement(r.Fragment,null,r.createElement(Oe,{disabled:!Pe,ref:be,onResize:function(){St(),vt()}},r.createElement(Uu,{getTriggerDOMNode:J},Mt)),r.createElement(Yu.Provider,{value:le},r.createElement(Gu,{portal:e,ref:pe,prefixCls:i,popup:j,className:p(P,ht),style:I,target:ge,onMouseEnter:Ot,onMouseLeave:Nt,onPointerEnter:Ot,zIndex:L,open:Pe,keepDom:De,fresh:D,onClick:V,mask:w,motion:Se,maskMotion:$e,onVisibleChanged:function(e){He(!1),st(),null==g||g(e)},onPrepare:function(){return new Promise((function(e){St(),qe((function(){return e}))}))},forceRender:O,autoDestroy:te,getPopupContainer:$,align:ct,arrow:At,arrowPos:Tt,ready:Qe,offsetX:Je,offsetY:tt,offsetR:nt,offsetB:rt,onAlign:vt,stretch:F,targetWidth:yt/at,targetHeight:Ct/lt})))}));return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(Uc);function fd(e,t,n){return p({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const pd=(e,t)=>t||e,md=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[t]:l}=e.useContext(To),c=e.useContext(cu),s=null==l?void 0:l.variant;let u;u=void 0!==n?n:!1===r?"borderless":null!==(i=null!==(o=null!=c?c:s)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,Mo.includes(u)]};var gd={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"},vd=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:gd}))},hd=r.forwardRef(vd);"production"!==process.env.NODE_ENV&&(hd.displayName="CheckOutlined");var bd={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"},yd=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:bd}))},xd=r.forwardRef(yd);function wd(e){var t=e.children,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return r.createElement("div",{className:p("".concat(n,"-content"),a),style:l},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof t?t():t))}"production"!==process.env.NODE_ENV&&(xd.displayName="SearchOutlined");var Cd={shiftX:64,adjustY:1},Ed={adjustX:1,shiftY:!0},Sd=[0,0],$d={left:{points:["cr","cl"],overflow:Ed,offset:[-4,0],targetOffset:Sd},right:{points:["cl","cr"],overflow:Ed,offset:[4,0],targetOffset:Sd},top:{points:["bc","tc"],overflow:Cd,offset:[0,-4],targetOffset:Sd},bottom:{points:["tc","bc"],overflow:Cd,offset:[0,4],targetOffset:Sd},topLeft:{points:["bl","tl"],overflow:Cd,offset:[0,-4],targetOffset:Sd},leftTop:{points:["tr","tl"],overflow:Ed,offset:[-4,0],targetOffset:Sd},topRight:{points:["br","tr"],overflow:Cd,offset:[0,-4],targetOffset:Sd},rightTop:{points:["tl","tr"],overflow:Ed,offset:[4,0],targetOffset:Sd},bottomRight:{points:["tr","br"],overflow:Cd,offset:[0,4],targetOffset:Sd},rightBottom:{points:["bl","br"],overflow:Ed,offset:[4,0],targetOffset:Sd},bottomLeft:{points:["tl","bl"],overflow:Cd,offset:[0,4],targetOffset:Sd},leftBottom:{points:["br","bl"],overflow:Ed,offset:[-4,0],targetOffset:Sd}},Od=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],kd=function(t,n){var o=t.overlayClassName,i=t.trigger,a=void 0===i?["hover"]:i,l=t.mouseEnterDelay,c=void 0===l?0:l,s=t.mouseLeaveDelay,u=void 0===s?.1:s,d=t.overlayStyle,f=t.prefixCls,p=void 0===f?"rc-tooltip":f,g=t.children,v=t.onVisibleChange,h=t.afterVisibleChange,b=t.transitionName,y=t.animation,x=t.motion,w=t.placement,C=void 0===w?"right":w,E=t.align,S=void 0===E?{}:E,$=t.destroyTooltipOnHide,O=void 0!==$&&$,k=t.defaultVisible,N=t.getTooltipContainer,j=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,I=t.id,R=t.showArrow,T=void 0===R||R,A=et(t,Od),_=e.useRef(null);e.useImperativeHandle(n,(function(){return _.current}));var B=M({},A);"visible"in t&&(B.popupVisible=t.visible);return r.createElement(dd,m({popupClassName:o,prefixCls:p,popup:function(){return r.createElement(wd,{key:"content",prefixCls:p,id:I,overlayInnerStyle:j},P)},action:a,builtinPlacements:$d,popupPlacement:C,ref:_,popupAlign:S,getPopupContainer:N,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:b,popupAnimation:y,popupMotion:x,defaultPopupVisible:k,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:c,arrow:T},B),g)},Nd=e.forwardRef(kd);const jd=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,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,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${wt(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Pd=8;function Id(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Pd:r}}function Rd(e,t){return e?t:{}}function Md(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},jd(e,t,o)),{"&:before":{background:t}})]},Rd(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${wt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Rd(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${wt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Rd(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Rd(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Td={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"]}},Ad={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"]}},_d=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Bd(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Td).forEach((e=>{const s=r&&Ad[e]||Td[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,_d.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=Id({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const Ld=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${wt(e.calc(s).div(2).equal())} ${wt(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Pd)}},[`${t}-content`]:{position:"relative"}}),Pi(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Md(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Fd=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Id({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,m=2*o-0,g=i,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1);return{arrowShadowWidth:v,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*o-h}px 100%, ${h}px 100%)`}}(ti(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var zd=function(e){const t=ki("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=ti(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Ld(o),$u(e,"zoom-big-fast")]}),Fd,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Dd=ci.map((e=>`${e}-inverse`));function Hd(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Ie(Dd),Ie(ci)).includes(e):ci.includes(e)}function Vd(e,t){const n=Hd(t),r=p({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Wd=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 qd=r.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:v=!0,title:h,overlay:b,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:w=!0}=e,C=!!v,[,E]=yi(),{getPopupContainer:S,getPrefixCls:$,direction:O}=r.useContext(To),k=dr("Tooltip"),N=r.useRef(null),j=()=>{var e;null===(e=N.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>{var e;return{forceAlign:j,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),j()},nativeElement:null===(e=N.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((t=>{let[n,r]=t;k.deprecated(!(n in e),n,r)})),"production"!==process.env.NODE_ENV&&k(!g||"boolean"==typeof g,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&k(!v||"boolean"==typeof v||!("arrowPointAtCenter"in v),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[P,I]=Zo(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),R=!h&&!b&&0!==h,M=r.useMemo((()=>{var e,t;let n=x;return"object"==typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:x),y||Bd({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:C?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})}),[x,v,y,E]),T=r.useMemo((()=>0===h?h:b||h||""),[b,h]),A=r.createElement(su,{space:!0},"function"==typeof T?T():T),{getPopupContainer:_,placement:B="top",mouseEnterDelay:L=.1,mouseLeaveDelay:F=.1,overlayStyle:z,rootClassName:D}=e,H=Wd(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=$("tooltip",i),W=$(),q=e["data-popover-inject"];let X=P;"open"in e||"visible"in e||!R||(X=!1);const K=r.isValidElement(d)&&!tl(d)?d:r.createElement("span",null,d),G=K.props,U=G.className&&"string"!=typeof G.className?G.className:p(G.className,a||`${V}-open`),[Y,Z,Q]=zd(V,!q),J=Vd(V,s),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=p(c,{[`${V}-rtl`]:"rtl"===O},J.className,D,Z,Q),[re,oe]=pl("Tooltip",H.zIndex),ie=r.createElement(Nd,Object.assign({},H,{zIndex:re,showArrow:C,placement:B,mouseEnterDelay:L,mouseLeaveDelay:F,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),z),getTooltipContainer:_||l||S,ref:N,builtinPlacements:M,overlay:A,visible:X,onVisibleChange:t=>{var n,r;I(!R&&t),R||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:m,overlayInnerStyle:te,arrowContent:r.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:Tl(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),X?rl(K,{className:U}):K);return Y(r.createElement(sl.Provider,{value:oe},ie))})),Xd=qd;"production"!==process.env.NODE_ENV&&(Xd.displayName="Tooltip"),Xd._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:o="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=r.useContext(To),s=c("tooltip",t),[u,d,f]=zd(s),m=Vd(s,a),g=m.arrowStyle,v=Object.assign(Object.assign({},l),m.overlayStyle),h=p(d,f,s,`${s}-pure`,`${s}-placement-${o}`,n,m.className);return u(r.createElement("div",{className:h,style:g},r.createElement("div",{className:`${s}-arrow`}),r.createElement(wd,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:v}),i)))};const Kd=new Qn("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Gd=new Qn("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Ud=new Qn("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Yd=new Qn("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Zd=new Qn("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Qd=new Qn("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Jd=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e;return ti(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorBgContainer,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},ef=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}};var tf=ki("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:i,textFontSize:a,textFontSizeSM:l,statusSize:c,dotSize:s,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:p,calc:m}=e,g=`${r}-scroll-number`,v=Pi(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t} ${t}-color-${e}`]:{background:r,[`&:not(${t}-count)`]:{color:r},"a:hover &":{background:r}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:wt(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:m(d).div(2).equal(),boxShadow:`0 0 0 ${wt(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:l,lineHeight:wt(f),borderRadius:m(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${wt(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${wt(o)} ${e.badgeShadowColor}`},[`${t}-dot${g}`]:{transition:`background ${i}`},[`${t}-count, ${t}-dot, ${g}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Qd,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:c,height:c,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Kd,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Gd,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Ud,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Yd,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Zd,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${g}-custom-component, ${t}-count`]:{transform:"none"},[`${g}-custom-component, ${g}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[g]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${g}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${g}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${g}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${g}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(Jd(e))),ef);var nf=ki(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=Pi(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),{position:"absolute",top:r,padding:`0 ${wt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:wt(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${wt(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(Jd(e))),ef);const rf=e=>{const{className:t,prefixCls:n,style:o,color:i,children:a,text:l,placement:c="end",rootClassName:s}=e,{getPrefixCls:u,direction:d}=r.useContext(To),f=u("ribbon",n),m=`${f}-wrapper`,[g,v,h]=nf(f,m),b=Hd(i,!1),y=p(f,`${f}-placement-${c}`,{[`${f}-rtl`]:"rtl"===d,[`${f}-color-${i}`]:b},t),x={},w={};return i&&!b&&(x.background=i,w.color=i),g(r.createElement("div",{className:p(m,s,v,h)},a,r.createElement("div",{className:p(y,v),style:Object.assign(Object.assign({},x),o)},r.createElement("span",{className:`${f}-text`},l),r.createElement("div",{className:`${f}-corner`,style:w}))))};"production"!==process.env.NODE_ENV&&(rf.displayName="Ribbon");const of=e=>{const{prefixCls:t,value:n,current:o,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),r.createElement("span",{style:a,className:p(`${t}-only-unit`,{current:o})},n)};function af(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const lf=e=>{const{prefixCls:t,count:n,value:o}=e,i=Number(o),a=Math.abs(n),[l,c]=r.useState(i),[s,u]=r.useState(a),d=()=>{c(i),u(a)};let f,p;if(r.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),l===i||Number.isNaN(i)||Number.isNaN(l))f=[r.createElement(of,Object.assign({},e,{key:i,current:!0}))],p={transition:"none"};else{f=[];const t=i+10,n=[];for(let e=i;e<=t;e+=1)n.push(e);const o=n.findIndex((e=>e%10===l));f=n.map(((t,n)=>{const i=t%10;return r.createElement(of,Object.assign({},e,{key:t,value:i,offset:n-o,current:n===o}))}));p={transform:`translateY(${-af(l,i,s<a?1:-1)}00%)`}}return r.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:d},f)};var cf=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 sf=r.forwardRef(((e,t)=>{const{prefixCls:n,count:o,className:i,motionClassName:a,style:l,title:c,show:s,component:u="sup",children:d}=e,f=cf(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=r.useContext(To),g=m("scroll-number",n),v=Object.assign(Object.assign({},f),{"data-show":s,style:l,className:p(g,i,a),title:c});let h=o;if(o&&Number(o)%1==0){const e=String(o).split("");h=r.createElement("bdi",null,e.map(((t,n)=>r.createElement(lf,{prefixCls:g,count:Number(o),value:t,key:e.length-n}))))}return(null==l?void 0:l.borderColor)&&(v.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),d?rl(d,(e=>({className:p(`${g}-custom-component`,null==e?void 0:e.className,a)}))):r.createElement(u,Object.assign({},v,{ref:t}),h)}));var uf=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 df=r.forwardRef(((t,n)=>{var o,i,a,l,c;const{prefixCls:s,scrollNumberPrefixCls:u,children:d,status:f,text:m,color:g,count:v=null,overflowCount:h=99,dot:b=!1,size:y="default",title:x,offset:w,style:C,className:E,rootClassName:S,classNames:$,styles:O,showZero:k=!1}=t,N=uf(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:j,direction:P,badge:I}=r.useContext(To),R=j("badge",s),[M,T,A]=tf(R),_=v>h?`${h}+`:v,B="0"===_||0===_,L=(null!=f||null!=g)&&(null===v||B&&!k),F=b&&!B,z=F?"":_,D=e.useMemo((()=>(null==z||""===z||B&&!k)&&!F),[z,B,k,F]),H=e.useRef(v);D||(H.current=v);const V=H.current,W=e.useRef(z);D||(W.current=z);const q=W.current,X=e.useRef(F);D||(X.current=F);const K=e.useMemo((()=>{if(!w)return Object.assign(Object.assign({},null==I?void 0:I.style),C);const e={marginTop:w[1]};return"rtl"===P?e.left=parseInt(w[0],10):e.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},e),null==I?void 0:I.style),C)}),[P,w,C,null==I?void 0:I.style]),G=null!=x?x:"string"==typeof V||"number"==typeof V?V:void 0,U=D||!m?null:r.createElement("span",{className:`${R}-status-text`},m),Y=V&&"object"==typeof V?rl(V,(e=>({style:Object.assign(Object.assign({},K),e.style)}))):void 0,Z=Hd(g,!1),Q=p(null==$?void 0:$.indicator,null===(o=null==I?void 0:I.classNames)||void 0===o?void 0:o.indicator,{[`${R}-status-dot`]:L,[`${R}-status-${f}`]:!!f,[`${R}-color-${g}`]:Z}),J={};g&&!Z&&(J.color=g,J.background=g);const ee=p(R,{[`${R}-status`]:L,[`${R}-not-a-wrapper`]:!d,[`${R}-rtl`]:"rtl"===P},E,S,null==I?void 0:I.className,null===(i=null==I?void 0:I.classNames)||void 0===i?void 0:i.root,null==$?void 0:$.root,T,A);if(!d&&L){const e=K.color;return M(r.createElement("span",Object.assign({},N,{className:ee,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(a=null==I?void 0:I.styles)||void 0===a?void 0:a.root),K)}),r.createElement("span",{className:Q,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(l=null==I?void 0:I.styles)||void 0===l?void 0:l.indicator),J)}),m&&r.createElement("span",{style:{color:e},className:`${R}-status-text`},m)))}return M(r.createElement("span",Object.assign({ref:n},N,{className:ee,style:Object.assign(Object.assign({},null===(c=null==I?void 0:I.styles)||void 0===c?void 0:c.root),null==O?void 0:O.root)}),d,r.createElement(ga,{visible:!D,motionName:`${R}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t}=e;var n,o;const i=j("scroll-number",u),a=X.current,l=p(null==$?void 0:$.indicator,null===(n=null==I?void 0:I.classNames)||void 0===n?void 0:n.indicator,{[`${R}-dot`]:a,[`${R}-count`]:!a,[`${R}-count-sm`]:"small"===y,[`${R}-multiple-words`]:!a&&q&&q.toString().length>1,[`${R}-status-${f}`]:!!f,[`${R}-color-${g}`]:Z});let c=Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(o=null==I?void 0:I.styles)||void 0===o?void 0:o.indicator),K);return g&&!Z&&(c=c||{},c.background=g),r.createElement(sf,{prefixCls:i,show:!D,motionClassName:t,className:l,count:q,title:G,style:c,key:"scrollNumber"},Y)})),U))})),ff=df;ff.Ribbon=rf,"production"!==process.env.NODE_ENV&&(ff.displayName="Badge");var pf={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"},mf=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:pf}))},gf=r.forwardRef(mf);"production"!==process.env.NODE_ENV&&(gf.displayName="RightOutlined");var vf=il.ESC,hf=il.TAB;var bf=e.forwardRef((function(t,n){var r=t.overlay,o=t.arrow,i=t.prefixCls,a=e.useMemo((function(){return"function"==typeof r?r():r}),[r]),l=L(n,null==a?void 0:a.ref);return e.createElement(e.Fragment,null,o&&e.createElement("div",{className:"".concat(i,"-arrow")}),e.cloneElement(a,{ref:z(a)?l:void 0}))})),yf={adjustX:1,adjustY:1},xf=[0,0],wf={topLeft:{points:["bl","tl"],overflow:yf,offset:[0,-4],targetOffset:xf},top:{points:["bc","tc"],overflow:yf,offset:[0,-4],targetOffset:xf},topRight:{points:["br","tr"],overflow:yf,offset:[0,-4],targetOffset:xf},bottomLeft:{points:["tl","bl"],overflow:yf,offset:[0,4],targetOffset:xf},bottom:{points:["tc","bc"],overflow:yf,offset:[0,4],targetOffset:xf},bottomRight:{points:["tr","br"],overflow:yf,offset:[0,4],targetOffset:xf}},Cf=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ef(t,n){var o,i=t.arrow,a=void 0!==i&&i,l=t.prefixCls,c=void 0===l?"rc-dropdown":l,s=t.transitionName,u=t.animation,d=t.align,f=t.placement,g=void 0===f?"bottomLeft":f,v=t.placements,h=void 0===v?wf:v,b=t.getPopupContainer,y=t.showAction,x=t.hideAction,w=t.overlayClassName,C=t.overlayStyle,E=t.visible,S=t.trigger,$=void 0===S?["hover"]:S,O=t.autoFocus,k=t.overlay,N=t.children,j=t.onVisibleChange,P=et(t,Cf),R=ze(e.useState(),2),M=R[0],T=R[1],A="visible"in t?E:M,_=e.useRef(null),B=e.useRef(null),F=e.useRef(null);e.useImperativeHandle(n,(function(){return _.current}));var D=function(e){T(e),null==j||j(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=r.useRef(!1),c=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case vf:c();break;case hf:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};r.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&Be(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:A,triggerRef:F,onVisibleChange:D,autoFocus:O,overlayRef:B});var H,V,W,q=function(){return e.createElement(bf,{ref:B,overlay:k,prefixCls:c,arrow:a})},X=e.cloneElement(N,{className:p(null===(o=N.props)||void 0===o?void 0:o.className,A&&(H=t.openClassName,void 0!==H?H:"".concat(c,"-open"))),ref:z(N)?L(F,N.ref):void 0}),K=x;return K||-1===$.indexOf("contextMenu")||(K=["click"]),e.createElement(dd,m({builtinPlacements:h},P,{prefixCls:c,ref:_,popupClassName:p(w,I({},"".concat(c,"-show-arrow"),a)),popupStyle:C,action:$,showAction:y,hideAction:K,popupPlacement:g,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:A,stretch:(V=t.minOverlayWidthMatchTrigger,W=t.alignPoint,("minOverlayWidthMatchTrigger"in t?V:!W)?"minWidth":""),popup:"function"==typeof k?q:q(),onPopupVisibleChange:D,onPopupClick:function(e){var n=t.onOverlayClick;T(!1),n&&n(e)},getPopupContainer:b}),X)}var Sf=e.forwardRef(Ef),$f=r.createContext(null);function Of(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function kf(e){return Of(r.useContext($f),e)}var Nf=["children","locked"],jf=r.createContext(null);function Pf(e){var t=e.children,n=e.locked,o=et(e,Nf),i=r.useContext(jf),a=_((function(){return e=o,t=M({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(n||e[0]===t[0]&&tt(e[1],t[1],!0))}));return r.createElement(jf.Provider,{value:a},t)}var If=[],Rf=r.createContext(null);function Mf(){return r.useContext(Rf)}var Tf=r.createContext(If);function Af(e){var t=r.useContext(Tf);return r.useMemo((function(){return void 0!==e?[].concat(Ie(t),[e]):t}),[t,e])}var _f=r.createContext(null),Bf=r.createContext({});function Lf(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Al(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Ff=il.LEFT,zf=il.RIGHT,Df=il.UP,Hf=il.DOWN,Vf=il.ENTER,Wf=il.ESC,qf=il.HOME,Xf=il.END,Kf=[Df,Hf,Ff,zf];function Gf(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ie(e.querySelectorAll("*")).filter((function(e){return Lf(e,t)}));return Lf(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function Uf(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Gf(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var Yf=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Of(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function Zf(e,t,n,o,i,a,l,c,s,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){Be.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var m=r.which;if([].concat(Kf,[Vf,Wf,qf,Xf]).includes(m)){var g=a(),v=Yf(g,o),h=v,b=h.elements,y=h.key2element,x=h.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),C=x.get(w),E=function(e,t,n,r){var o,i,a,l,c="prev",s="next",u="children",d="parent";if("inline"===e&&r===Vf)return{inlineTrigger:!0};var f=(I(o={},Df,c),I(o,Hf,s),o),p=(I(i={},Ff,n?s:c),I(i,zf,n?c:s),I(i,Hf,u),I(i,Vf,u),i),m=(I(a={},Df,c),I(a,Hf,s),I(a,Vf,u),I(a,Wf,d),I(a,Ff,n?u:d),I(a,zf,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(C,!0).length,n,m);if(!E&&m!==qf&&m!==Xf)return;(Kf.includes(m)||[qf,Xf].includes(m))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=x.get(e);c(r),p(),d.current=Be((function(){f.current===r&&t.focus()}))}};if([qf,Xf].includes(m)||E.sibling||!w){var $,O,k=Gf($=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):i.current,b);O=m===qf?k[0]:m===Xf?k[k.length-1]:Uf($,b,w,E.offset),S(O)}else if(E.inlineTrigger)s(C);else if(E.offset>0)s(C,!0),p(),d.current=Be((function(){v=Yf(g,o);var e=w.getAttribute("aria-controls"),t=Uf(document.getElementById(e),v.elements);S(t)}),5);else if(E.offset<0){var N=l(C,!0),j=N[N.length-2],P=y.get(j);s(j,!1),S(P)}}null==u||u(r)}}var Qf="__RC_UTIL_PATH_SPLIT__",Jf=function(e){return e.join(Qf)},ep="rc-menu-more";function tp(){var t=ze(r.useState({}),2)[1],n=e.useRef(new Map),o=e.useRef(new Map),i=ze(r.useState([]),2),a=i[0],l=i[1],c=e.useRef(0),s=e.useRef(!1),u=e.useCallback((function(e,r){"production"!==process.env.NODE_ENV&&N(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(r.join(" > "),"]"));var i=Jf(r);o.current.set(i,e),n.current.set(e,i),c.current+=1;var a,l=c.current;a=function(){l===c.current&&(s.current||t({}))},Promise.resolve().then(a)}),[]),d=e.useCallback((function(e,t){var r=Jf(t);o.current.delete(r),n.current.delete(e)}),[]),f=e.useCallback((function(e){l(e)}),[]),p=e.useCallback((function(e,t){var r=n.current.get(e)||"",o=r.split(Qf);return t&&a.includes(o[0])&&o.unshift(ep),o}),[a]),m=e.useCallback((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return p(e,!0).includes(t)}))}),[p]),g=e.useCallback((function(e){var t="".concat(n.current.get(e)).concat(Qf),r=new Set;return Ie(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return r.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:m,getKeyPath:p,getKeys:function(){var e=Ie(n.current.keys());return a.length&&e.push(ep),e},getSubPathKeys:g}}function np(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var rp=Math.random().toFixed(5).toString().slice(2),op=0;function ip(e,t,n,o){var i=r.useContext(jf),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),c(e)}),s}function ap(e){var t=r.useContext(jf),n=t.mode,o=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return o?{paddingRight:e*i}:{paddingLeft:e*i}}function lp(e){var t,n=e.icon,o=e.props,i=e.children;return null===n||!1===n?null:("function"==typeof n?t=r.createElement(n,M({},o)):"boolean"!=typeof n&&(t=n),t||i||null)}var cp=["item"];function sp(e){var t=e.item,n=et(e,cp);return Object.defineProperty(n,"item",{get:function(){return N(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var up=["title","attribute","elementRef"],dp=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],fp=["active"],pp=function(){he(t,r.Component);var e=we(t);function t(){return pe(this,t),e.apply(this,arguments)}return ge(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=ke(et(e,up),["eventKey","popupClassName","popupOffset","onTitleClick"]);return N(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(Wu.Item,m({},n,{title:"string"==typeof t?t:void 0},i,{ref:o}))}}]),t}(),mp=r.forwardRef((function(e,t){var n,o=e.style,i=e.className,a=e.eventKey,l=e.warnKey,c=e.disabled,s=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,g=e.onMouseLeave,v=e.onClick,h=e.onKeyDown,b=e.onFocus,y=et(e,dp),x=kf(a),w=r.useContext(jf),C=w.prefixCls,E=w.onItemClick,S=w.disabled,$=w.overflowDisabled,O=w.itemIcon,k=w.selectedKeys,j=w.onActive,P=r.useContext(Bf)._internalRenderMenuItem,R="".concat(C,"-item"),T=r.useRef(),A=r.useRef(),_=S||c,B=F(t,A),L=Af(a);"production"!==process.env.NODE_ENV&&l&&N(!1,"MenuItem should not leave undefined `key`.");var z=function(e){return{key:a,keyPath:Ie(L).reverse(),item:T.current,domEvent:e}},D=s||O,H=ip(a,_,f,g),V=H.active,W=et(H,fp),q=k.includes(a),X=ap(L.length),K={};"option"===e.role&&(K["aria-selected"]=q);var G=r.createElement(pp,m({ref:T,elementRef:B,role:null===d?"none":d||"menuitem",tabIndex:c?null:-1,"data-menu-id":$&&x?null:x},y,W,K,{component:"li","aria-disabled":c,style:M(M({},X),o),className:p(R,(n={},I(n,"".concat(R,"-active"),V),I(n,"".concat(R,"-selected"),q),I(n,"".concat(R,"-disabled"),_),n),i),onClick:function(e){if(!_){var t=z(e);null==v||v(sp(t)),E(t)}},onKeyDown:function(e){if(null==h||h(e),e.which===il.ENTER){var t=z(e);null==v||v(sp(t)),E(t)}},onFocus:function(e){j(a),null==b||b(e)}}),u,r.createElement(lp,{props:M(M({},e),{},{isSelected:q}),icon:D}));return P&&(G=P(G,e,{selected:q})),G}));function gp(e,t){var n=e.eventKey,o=Mf(),i=Af(n);return r.useEffect((function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}}),[i]),o?null:r.createElement(mp,m({},e,{ref:t}))}var vp=r.forwardRef(gp),hp=["className","children"],bp=function(e,t){var n=e.className,o=e.children,i=et(e,hp),a=r.useContext(jf),l=a.prefixCls,c=a.mode,s=a.rtl;return r.createElement("ul",m({className:p(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)},yp=r.forwardRef(bp);function xp(e,t){return w(e).map((function(e,n){if(r.isValidElement(e)){var o,i,a=e.key,l=null!==(o=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a,c=null==l;c&&(l="tmp_key-".concat([].concat(Ie(t),[n]).join("-")));var s={key:l,eventKey:l};return"production"!==process.env.NODE_ENV&&c&&(s.warnKey=!0),r.cloneElement(e,s)}return e}))}yp.displayName="SubMenuList";var wp={adjustX:1,adjustY:1},Cp={topLeft:{points:["bl","tl"],overflow:wp},topRight:{points:["br","tr"],overflow:wp},bottomLeft:{points:["tl","bl"],overflow:wp},bottomRight:{points:["tr","br"],overflow:wp},leftTop:{points:["tr","tl"],overflow:wp},leftBottom:{points:["br","bl"],overflow:wp},rightTop:{points:["tl","tr"],overflow:wp},rightBottom:{points:["bl","br"],overflow:wp}},Ep={topLeft:{points:["bl","tl"],overflow:wp},topRight:{points:["br","tr"],overflow:wp},bottomLeft:{points:["tl","bl"],overflow:wp},bottomRight:{points:["tr","br"],overflow:wp},rightTop:{points:["tr","tl"],overflow:wp},rightBottom:{points:["br","bl"],overflow:wp},leftTop:{points:["tl","tr"],overflow:wp},leftBottom:{points:["bl","br"],overflow:wp}};function Sp(e,t,n){return t||(n?n[e]||n.other:void 0)}var $p={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Op(e){var t=e.prefixCls,n=e.visible,o=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=r.useContext(jf),m=f.getPopupContainer,g=f.rtl,v=f.subMenuOpenDelay,h=f.subMenuCloseDelay,b=f.builtinPlacements,y=f.triggerSubMenuAction,x=f.forceSubMenuRender,w=f.rootClassName,C=f.motion,E=f.defaultMotions,S=ze(r.useState(!1),2),$=S[0],O=S[1],k=M(M({},g?Ep:Cp),b),N=$p[u],j=Sp(u,C,E),P=r.useRef(j);"inline"!==u&&(P.current=j);var R=M(M({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),T=r.useRef();return r.useEffect((function(){return T.current=Be((function(){O(n)})),function(){Be.cancel(T.current)}}),[n]),r.createElement(dd,{prefixCls:t,popupClassName:p("".concat(t,"-popup"),I({},"".concat(t,"-rtl"),g),l,w),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:m,builtinPlacements:k,popupPlacement:N,popupVisible:$,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[y],mouseEnterDelay:v,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:x,popupMotion:R,fresh:!0},o)}function kp(e){var t=e.id,n=e.open,o=e.keyPath,i=e.children,a="inline",l=r.useContext(jf),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=r.useRef(!1);p.current=f===a;var g=ze(r.useState(!p.current),2),v=g[0],h=g[1],b=!!p.current&&n;r.useEffect((function(){p.current&&h(!1)}),[f]);var y=M({},Sp(a,u,d));o.length>1&&(y.motionAppear=!1);var x=y.onVisibleChanged;return y.onVisibleChanged=function(e){return p.current||e||h(!0),null==x?void 0:x(e)},v?null:r.createElement(Pf,{mode:a,locked:!p.current},r.createElement(ga,m({visible:b},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(yp,{id:t,className:n,style:o},i)})))}var Np=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],jp=["active"],Pp=r.forwardRef((function(e,t){var n,o=e.style,i=e.className,a=e.title,l=e.eventKey,c=e.warnKey,s=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,g=e.expandIcon,v=e.popupClassName,h=e.popupOffset,b=e.popupStyle,y=e.onClick,x=e.onMouseEnter,w=e.onMouseLeave,C=e.onTitleClick,E=e.onTitleMouseEnter,S=e.onTitleMouseLeave,$=et(e,Np),O=kf(l),k=r.useContext(jf),j=k.prefixCls,P=k.mode,R=k.openKeys,T=k.disabled,A=k.overflowDisabled,_=k.activeKey,B=k.selectedKeys,L=k.itemIcon,F=k.expandIcon,z=k.onItemClick,D=k.onOpenChange,H=k.onActive,V=r.useContext(Bf)._internalRenderSubMenuItem,W=r.useContext(_f).isSubPathKey,q=Af(),X="".concat(j,"-submenu"),K=T||s,G=r.useRef(),U=r.useRef();"production"!==process.env.NODE_ENV&&c&&N(!1,"SubMenu should not leave undefined `key`.");var Y=null!=f?f:L,Z=null!=g?g:F,Q=R.includes(l),J=!A&&Q,ee=W(B,l),te=ip(l,K,E,S),ne=te.active,re=et(te,jp),oe=ze(r.useState(!1),2),ie=oe[0],ae=oe[1],le=function(e){K||ae(e)},ce=r.useMemo((function(){return ne||"inline"!==P&&(ie||W([_],l))}),[P,ne,_,ie,l,W]),se=ap(q.length),ue=np((function(e){null==y||y(sp(e)),z(e)})),de=O&&"".concat(O,"-popup"),fe=r.createElement("div",m({role:"menuitem",style:se,className:"".concat(X,"-title"),tabIndex:K?null:-1,ref:G,title:"string"==typeof a?a:null,"data-menu-id":A&&O?null:O,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":K,onClick:function(e){K||(null==C||C({key:l,domEvent:e}),"inline"===P&&D(l,!Q))},onFocus:function(){H(l)}},re),a,r.createElement(lp,{icon:"horizontal"!==P?Z:void 0,props:M(M({},e),{},{isOpen:J,isSubMenu:!0})},r.createElement("i",{className:"".concat(X,"-arrow")}))),pe=r.useRef(P);if("inline"!==P&&q.length>1?pe.current="vertical":pe.current=P,!A){var me=pe.current;fe=r.createElement(Op,{mode:me,prefixCls:X,visible:!u&&J&&"inline"!==P,popupClassName:v,popupOffset:h,popupStyle:b,popup:r.createElement(Pf,{mode:"horizontal"===me?"vertical":me},r.createElement(yp,{id:de,ref:U},d)),disabled:K,onVisibleChange:function(e){"inline"!==P&&D(l,e)}},fe)}var ge=r.createElement(Wu.Item,m({ref:t,role:"none"},$,{component:"li",style:o,className:p(X,"".concat(X,"-").concat(P),i,(n={},I(n,"".concat(X,"-open"),J),I(n,"".concat(X,"-active"),ce),I(n,"".concat(X,"-selected"),ee),I(n,"".concat(X,"-disabled"),K),n)),onMouseEnter:function(e){le(!0),null==x||x({key:l,domEvent:e})},onMouseLeave:function(e){le(!1),null==w||w({key:l,domEvent:e})}}),fe,!A&&r.createElement(kp,{id:de,open:J,keyPath:q},d));return V&&(ge=V(ge,e,{selected:ee,active:ce,open:J,disabled:K})),r.createElement(Pf,{onItemClick:ue,mode:"horizontal"===P?"vertical":P,itemIcon:Y,expandIcon:Z},ge)})),Ip=r.forwardRef((function(e,t){var n,o=e.eventKey,i=e.children,a=Af(o),l=xp(i,a),c=Mf();return r.useEffect((function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}}),[a]),n=c?l:r.createElement(Pp,m({ref:t},e),l),r.createElement(Tf.Provider,{value:a},n)}));function Rp(e){var t=e.className,n=e.style,o=r.useContext(jf).prefixCls;return Mf()?null:r.createElement("li",{role:"separator",className:p("".concat(o,"-item-divider"),t),style:n})}"production"!==process.env.NODE_ENV&&(Ip.displayName="SubMenu");var Mp=["className","title","eventKey","children"],Tp=r.forwardRef((function(e,t){var n=e.className,o=e.title;e.eventKey;var i=e.children,a=et(e,Mp),l=r.useContext(jf).prefixCls,c="".concat(l,"-item-group");return r.createElement("li",m({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:p(c,n)}),r.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),r.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))})),Ap=r.forwardRef((function(e,t){var n=e.eventKey,o=xp(e.children,Af(n));return Mf()?o:r.createElement(Tp,m({ref:t},ke(e,["warnKey"])),o)}));"production"!==process.env.NODE_ENV&&(Ap.displayName="MenuItemGroup");var _p=["label","children","key","type"];function Bp(e,t){var n=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,l){if(e&&"object"===j(e)){var c=e,s=c.label,u=c.children,d=c.key,f=c.type,p=et(c,_p),g=null!=d?d:"tmp-".concat(l);return u||"group"===f?"group"===f?r.createElement(o,m({key:g},p,{title:s}),Bp(u,t)):r.createElement(i,m({key:g},p,{title:s}),Bp(u,t)):"divider"===f?r.createElement(a,m({key:g},p)):r.createElement(n,m({key:g},p),s)}return null})).filter((function(e){return e}))}function Lp(e,t,n,r){var o=e,i=M({divider:Rp,item:vp,group:Ap,submenu:Ip},r);return t&&(o=Bp(t,i)),xp(o,n)}var Fp=["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","_internalComponents"],zp=[],Dp=r.forwardRef((function(n,o){var i,a,l=n,c=l.prefixCls,s=void 0===c?"rc-menu":c,u=l.rootClassName,d=l.style,f=l.className,g=l.tabIndex,v=void 0===g?0:g,h=l.items,b=l.children,y=l.direction,x=l.id,w=l.mode,C=void 0===w?"vertical":w,E=l.inlineCollapsed,S=l.disabled,$=l.disabledOverflow,O=l.subMenuOpenDelay,k=void 0===O?.1:O,j=l.subMenuCloseDelay,P=void 0===j?.1:j,R=l.forceSubMenuRender,T=l.defaultOpenKeys,A=l.openKeys,_=l.activeKey,B=l.defaultActiveFirst,L=l.selectable,F=void 0===L||L,z=l.multiple,D=void 0!==z&&z,H=l.defaultSelectedKeys,V=l.selectedKeys,W=l.onSelect,q=l.onDeselect,X=l.inlineIndent,K=void 0===X?24:X,G=l.motion,U=l.defaultMotions,Y=l.triggerSubMenuAction,Z=void 0===Y?"hover":Y,Q=l.builtinPlacements,J=l.itemIcon,ee=l.expandIcon,te=l.overflowedIndicator,ne=void 0===te?"...":te,re=l.overflowedIndicatorPopupClassName,oe=l.getPopupContainer,ie=l.onClick,ae=l.onOpenChange,le=l.onKeyDown,ce=l.openAnimation,se=l.openTransitionName,ue=l._internalRenderMenuItem,de=l._internalRenderSubMenuItem,fe=l._internalComponents,pe=et(l,Fp),me=ze(r.useMemo((function(){return[Lp(b,h,zp,fe),Lp(b,h,zp,{})]}),[b,h,fe]),2),ge=me[0],ve=me[1],he=ze(r.useState(!1),2),be=he[0],ye=he[1],xe=r.useRef(),we=function(e){var t=ze(Zo(e,{value:e}),2),n=t[0],o=t[1];return r.useEffect((function(){op+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(rp,"-").concat(op);o("rc-menu-uuid-".concat(e))}),[]),n}(x),Ce="rtl"===y;"production"!==process.env.NODE_ENV&&N(!ce&&!se,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ee=Zo(T,{value:A,postState:function(e){return e||zp}}),Se=ze(Ee,2),$e=Se[0],Oe=Se[1],ke=function(e){function n(){Oe(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t.flushSync(n):n()},Ne=ze(r.useState($e),2),je=Ne[0],Pe=Ne[1],Re=r.useRef(!1),Me=ze(r.useMemo((function(){return"inline"!==C&&"vertical"!==C||!E?[C,!1]:["vertical",E]}),[C,E]),2),Te=Me[0],Ae=Me[1],_e="inline"===Te,Be=ze(r.useState(Te),2),Le=Be[0],Fe=Be[1],De=ze(r.useState(Ae),2),He=De[0],Ve=De[1];r.useEffect((function(){Fe(Te),Ve(Ae),Re.current&&(_e?Oe(je):ke(zp))}),[Te,Ae]);var We=ze(r.useState(0),2),qe=We[0],Xe=We[1],Ke=qe>=ge.length-1||"horizontal"!==Le||$;r.useEffect((function(){_e&&Pe($e)}),[$e]),r.useEffect((function(){return Re.current=!0,function(){Re.current=!1}}),[]);var Ge=tp(),Ue=Ge.registerPath,Ye=Ge.unregisterPath,Ze=Ge.refreshOverflowKeys,Qe=Ge.isSubPathKey,Je=Ge.getKeyPath,nt=Ge.getKeys,rt=Ge.getSubPathKeys,ot=r.useMemo((function(){return{registerPath:Ue,unregisterPath:Ye}}),[Ue,Ye]),it=r.useMemo((function(){return{isSubPathKey:Qe}}),[Qe]);r.useEffect((function(){Ze(Ke?zp:ge.slice(qe+1).map((function(e){return e.key})))}),[qe,Ke]);var at=ze(Zo(_||B&&(null===(i=ge[0])||void 0===i?void 0:i.key),{value:_}),2),lt=at[0],ct=at[1],st=np((function(e){ct(e)})),ut=np((function(){ct(void 0)}));e.useImperativeHandle(o,(function(){return{list:xe.current,focus:function(e){var t,n,r=nt(),o=Yf(r,we),i=o.elements,a=o.key2element,l=o.element2key,c=Gf(xe.current,i),s=null!=lt?lt:c[0]?l.get(c[0]):null===(t=ge.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var dt=Zo(H||[],{value:V,postState:function(e){return Array.isArray(e)?e:null==e?zp:[e]}}),ft=ze(dt,2),pt=ft[0],mt=ft[1],gt=np((function(e){null==ie||ie(sp(e)),function(e){if(F){var t,n=e.key,r=pt.includes(n);t=D?r?pt.filter((function(e){return e!==n})):[].concat(Ie(pt),[n]):[n],mt(t);var o=M(M({},e),{},{selectedKeys:t});r?null==q||q(o):null==W||W(o)}!D&&$e.length&&"inline"!==Le&&ke(zp)}(e)})),vt=np((function(e,t){var n=$e.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Le){var r=rt(e);n=n.filter((function(e){return!r.has(e)}))}tt($e,n,!0)||ke(n,!0)})),ht=Zf(Le,lt,Ce,we,xe,nt,Je,ct,(function(e,t){var n=null!=t?t:!$e.includes(e);vt(e,n)}),le);r.useEffect((function(){ye(!0)}),[]);var bt=r.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),yt="horizontal"!==Le||$?ge:ge.map((function(e,t){return r.createElement(Pf,{key:e.key,overflowDisabled:t>qe},e)})),xt=r.createElement(Wu,m({id:x,ref:xe,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:vp,className:p(s,"".concat(s,"-root"),"".concat(s,"-").concat(Le),f,(a={},I(a,"".concat(s,"-inline-collapsed"),He),I(a,"".concat(s,"-rtl"),Ce),a),u),dir:y,style:d,role:"menu",tabIndex:v,data:yt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ge.slice(-t):null;return r.createElement(Ip,{eventKey:ep,title:ne,disabled:Ke,internalPopupClose:0===t,popupClassName:re},n)},maxCount:"horizontal"!==Le||$?Wu.INVALIDATE:Wu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Xe(e)},onKeyDown:ht},pe));return r.createElement(Bf.Provider,{value:bt},r.createElement($f.Provider,{value:we},r.createElement(Pf,{prefixCls:s,rootClassName:u,mode:Le,openKeys:$e,rtl:Ce,disabled:S,motion:be?G:null,defaultMotions:be?U:null,activeKey:lt,onActive:st,onInactive:ut,selectedKeys:pt,inlineIndent:K,subMenuOpenDelay:k,subMenuCloseDelay:P,forceSubMenuRender:R,builtinPlacements:Q,triggerSubMenuAction:Z,getPopupContainer:oe,itemIcon:J,expandIcon:ee,onItemClick:gt,onOpenChange:vt},r.createElement(_f.Provider,{value:it},xt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(Rf.Provider,{value:ot},ve)))))})),Hp=Dp;Hp.Item=vp,Hp.SubMenu=Ip,Hp.ItemGroup=Ap,Hp.Divider=Rp;var Vp={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"},Wp=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:Vp}))},qp=r.forwardRef(Wp);"production"!==process.env.NODE_ENV&&(qp.displayName="BarsOutlined");var Xp={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"},Kp=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:Xp}))},Gp=r.forwardRef(Kp);"production"!==process.env.NODE_ENV&&(Gp.displayName="LeftOutlined");const Up=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Yp=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Zp={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Qp=r.createContext({}),Jp=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),em=r.forwardRef(((t,n)=>{const{prefixCls:o,className:i,trigger:a,children:l,defaultCollapsed:c=!1,theme:s="dark",style:u={},collapsible:d=!1,reverseArrow:f=!1,width:m=200,collapsedWidth:g=80,zeroWidthTriggerStyle:v,breakpoint:h,onCollapse:b,onBreakpoint:y}=t,x=Yp(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=e.useContext(Up),[C,E]=e.useState("collapsed"in t?t.collapsed:c),[S,$]=e.useState(!1);e.useEffect((()=>{"collapsed"in t&&E(t.collapsed)}),[t.collapsed]);const O=(e,n)=>{"collapsed"in t||E(e),null==b||b(e,n)},k=e.useRef();k.current=e=>{$(e.matches),null==y||y(e.matches),C!==e.matches&&O(e.matches,"responsive")},e.useEffect((()=>{function e(e){return k.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&h&&h in Zp){t=n(`screen and (max-width: ${Zp[h]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[h]),e.useEffect((()=>{const e=Jp("ant-sider-");return w.addSider(e),()=>w.removeSider(e)}),[]);const N=()=>{O(!C,"clickTrigger")},{getPrefixCls:j}=e.useContext(To),P=r.useMemo((()=>({siderCollapsed:C})),[C]);return r.createElement(Qp.Provider,{value:P},(()=>{const e=j("layout-sider",o),t=ke(x,["collapsed"]),c=C?g:m,h=(b=c,!isNaN(parseFloat(b))&&isFinite(b)?`${c}px`:String(c));var b;const y=0===parseFloat(String(g||0))?r.createElement("span",{onClick:N,className:p(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${f?"right":"left"}`),style:v},a||r.createElement(qp,null)):null,w={expanded:f?r.createElement(gf,null):r.createElement(Gp,null),collapsed:f?r.createElement(Gp,null):r.createElement(gf,null)}[C?"collapsed":"expanded"],E=null!==a?y||r.createElement("div",{className:`${e}-trigger`,onClick:N,style:{width:h}},a||w):null,$=Object.assign(Object.assign({},u),{flex:`0 0 ${h}`,maxWidth:h,minWidth:h,width:h}),O=p(e,`${e}-${s}`,{[`${e}-collapsed`]:!!C,[`${e}-has-trigger`]:d&&null!==a&&!y,[`${e}-below`]:!!S,[`${e}-zero-width`]:0===parseFloat(h)},i);return r.createElement("aside",Object.assign({className:O},t,{style:$,ref:n}),r.createElement("div",{className:`${e}-children`},l),d||S&&y?E:null)})())}));"production"!==process.env.NODE_ENV&&(em.displayName="Sider");var tm={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"},nm=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:tm}))},rm=r.forwardRef(nm);"production"!==process.env.NODE_ENV&&(rm.displayName="EllipsisOutlined");const om=e.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var im=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 am=e=>{const{prefixCls:t,className:n,dashed:o}=e,i=im(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=r.useContext(To),l=a("menu",t),c=p({[`${l}-item-divider-dashed`]:!!o},n);return r.createElement(Rp,Object.assign({className:c},i))},lm=e=>{var t;const{className:n,children:o,icon:i,title:a,danger:l}=e,{prefixCls:c,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=r.useContext(om),{siderCollapsed:m}=r.useContext(Qp);let g=a;void 0===a?g=s?o:"":!1===a&&(g="");const v={title:g};m||f||(v.title=null,v.open=!1);const h=w(o).length;let b=r.createElement(vp,Object.assign({},ke(e,["title","icon","danger"]),{className:p({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?h+1:h)},n),title:"string"==typeof a?a:void 0}),rl(i,{className:p(r.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),(e=>{const t=r.createElement("span",{className:`${c}-title-content`},o);return(!i||r.isValidElement(o)&&"span"===o.type)&&o&&e&&s&&"string"==typeof o?r.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):t})(f));return d||(b=r.createElement(Xd,Object.assign({},v,{placement:"rtl"===u?"left":"right",overlayClassName:`${c}-inline-collapsed-tooltip`}),b)),b},cm=r.createContext(null),sm=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${wt(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${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"}}}},um=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${wt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${wt(n)})`}}}}},dm=e=>Object.assign({},Si(e)),fm=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:h,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:$,popupBg:O,itemHoverBg:k,itemActiveBg:N,menuSubMenuBg:j,horizontalItemSelectedColor:P,horizontalItemSelectedBg:I,horizontalItemBorderRadius:R,horizontalItemHoverBg:M}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},dm(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},dm(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:h}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:S}},[`${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:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${wt(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:M,"&::after":{borderBottomWidth:s,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:s,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${wt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${wt(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${m}`,`opacity ${v} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${p}`,`opacity ${v} ${p}`].join(",")}}}}}},pm=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:wt(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:wt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},mm=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:s,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,h={height:r,lineHeight:wt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},pm(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},pm(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${wt(e.calc(a).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 ${f}`,`background ${f}`,`padding ${l} ${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`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${wt(e.calc(d).div(2).equal())} - ${wt(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:wt(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({},wi),{paddingInline:p})}}]},gm=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,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, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`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({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},vm=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).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(${wt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${wt(a)})`}}}}},hm=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:h,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{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:`${wt(l)} ${wt(c)}`,fontSize:b,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].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:s,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),gm(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${wt(e.calc(r).mul(2).equal())} ${wt(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},gm(e)),vm(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\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}}}),vm(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${wt(g)})`},"&::after":{transform:`rotate(45deg) translateX(${wt(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${wt(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${wt(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${wt(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},bm=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:h,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:w,fontSize:C,controlHeightSM:E,fontSizeLG:S,colorTextLightSolid:$,colorErrorHover:O}=e,k=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,N=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,j=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,P=new Hr($).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:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:k,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:N,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:j,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:b,collapsedWidth:2*h,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*h+"px",iconSize:C,iconMarginInlineEnd:E-C,collapsedIconSize:S,groupTitleFontSize:C,darkItemDisabledColor:new Hr($).setAlpha(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:$,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:k?`calc(100% + ${N}px)`:`calc(100% - ${2*j}px)`}};const ym=e=>{var t;const{popupClassName:n,icon:o,title:i,theme:a}=e,l=r.useContext(om),{prefixCls:c,inlineCollapsed:s,theme:u}=l,d=Af();let f;if(o){const e=r.isValidElement(i)&&"span"===i.type;f=r.createElement(r.Fragment,null,rl(o,{className:p(r.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),e?i:r.createElement("span",{className:`${c}-title-content`},i))}else f=s&&!d.length&&i&&"string"==typeof i?r.createElement("div",{className:`${c}-inline-collapsed-noicon`},i.charAt(0)):r.createElement("span",{className:`${c}-title-content`},i);const m=r.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[g]=pl("Menu");return r.createElement(om.Provider,{value:m},r.createElement(Ip,Object.assign({},ke(e,["icon"]),{title:f,popupClassName:p(c,n,`${c}-${a||u}`),popupStyle:{zIndex:g}})))};var xm=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 wm(e){return null===e||!1===e}const Cm={item:lm,submenu:ym,divider:am},Em=e.forwardRef(((e,t)=>{var n;const o=r.useContext(cm),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:s}=r.useContext(To),u=a(),{prefixCls:d,className:f,style:m,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:b,siderCollapsed:y,rootClassName:x,mode:w,selectable:C,onClick:E,overflowedIndicatorPopupClassName:S}=e,$=ke(xm(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=dr("Menu");"production"!==process.env.NODE_ENV&&t(!("inlineCollapsed"in e&&"inline"!==w),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&t(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),t.deprecated("items"in e&&!e.children,"children","items")}null===(n=i.validator)||void 0===n||n.call(i,{mode:w});const O=Go((function(){var e;null==E||E.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),k=i.mode||w,N=null!=C?C:i.selectable,j=r.useMemo((()=>void 0!==y?y:b),[b,y]),P={horizontal:{motionName:`${u}-slide-up`},inline:Ml(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||i.prefixCls),R=ol(I),[M,T,A]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=ki("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:h,popupBg:b,darkPopupBg:y}=e,x=e.calc(r).div(7).mul(5).equal(),w=ti(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),C=ti(w,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:v,dangerItemActiveBg:h,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[hm(w),sm(w),mm(w),fm(w,"light"),fm(C,"dark"),um(w),fu(w),hu(w,"slide-up"),hu(w,"slide-down"),$u(w,"zoom-big")]}),bm,{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:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(I,R,!o),_=p(`${I}-${g}`,null==s?void 0:s.className,f),B=r.useMemo((()=>{var e,t;if("function"==typeof v||wm(v))return v||null;if("function"==typeof i.expandIcon||wm(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||wm(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const n=null!==(e=null!=v?v:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==s?void 0:s.expandIcon;return rl(n,{className:p(`${I}-submenu-expand-icon`,r.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[v,null==i?void 0:i.expandIcon,null==s?void 0:s.expandIcon,I]),L=r.useMemo((()=>({prefixCls:I,inlineCollapsed:j||!1,direction:c,firstLevel:!0,theme:g,mode:k,disableMenuItemTitleTooltip:h})),[I,j,c,h,g]);return M(r.createElement(cm.Provider,{value:null},r.createElement(om.Provider,{value:L},r.createElement(Hp,Object.assign({getPopupContainer:l,overflowedIndicator:r.createElement(rm,null),overflowedIndicatorPopupClassName:p(I,`${I}-${g}`,S),mode:k,selectable:N,onClick:O},$,{inlineCollapsed:j,style:Object.assign(Object.assign({},null==s?void 0:s.style),m),className:_,prefixCls:I,direction:c,defaultMotions:P,expandIcon:B,ref:t,rootClassName:p(x,T,i.rootClassName,A,R),_internalComponents:Cm})))))})),Sm=e.forwardRef(((t,n)=>{const o=e.useRef(null),i=r.useContext(Qp);return e.useImperativeHandle(n,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),r.createElement(Em,Object.assign({ref:o},t,i))}));function $m(e){return ti(e,{inputAffixPadding:e.paddingXXS})}Sm.Item=lm,Sm.SubMenu=ym,Sm.Divider=am,Sm.ItemGroup=Ap,"production"!==process.env.NODE_ENV&&(Sm.displayName="Menu");const Om=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:h,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${h}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},km=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Nm=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},km(ti(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),jm=(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}}),Pm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},jm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Im=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Nm(e))}),Pm(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Pm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Rm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Mm=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${wt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Rm(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Rm(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Nm(e))}})}),Tm=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Am=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),_m=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Am(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Bm=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Am(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Nm(e))}),_m(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),_m(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Lm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Fm=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:`${wt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${wt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Lm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Lm(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:`${wt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${wt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${wt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${wt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${wt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${wt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),zm=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${wt(t)} ${wt(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Dm=e=>({padding:`${wt(e.paddingBlockSM)} ${wt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Hm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${wt(e.paddingBlock)} ${wt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},zm(e)),"&-sm":Object.assign({},Dm(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Vm=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({},zm(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Dm(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 ${wt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${wt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${wt(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:`${wt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${wt(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"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{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 & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${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}}}})}},Wm=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),Hm(e)),Im(e)),Bm(e)),Tm(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},qm=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 ${wt(e.inputAffixPadding)}`}}}},Xm=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Hm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{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}}}),qm(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},Km=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ci(e)),Vm(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}}},Mm(e)),Fm(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}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Gm=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()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,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,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Um=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"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{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.paddingInline,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"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Ym=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var Zm=ki("Input",(e=>{const t=ti(e,$m(e));return[Wm(t),Um(t),Xm(t),Km(t),Gm(t),Ym(t),Tc(t)]}),Om,{resetFont:!1}),Qm={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"},Jm=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:Qm}))},eg=r.forwardRef(Jm);"production"!==process.env.NODE_ENV&&(eg.displayName="PlusOutlined");var tg=e.createContext(null),ng={width:0,height:0,left:0,top:0};function rg(e,t){var n=r.useRef(e),o=ze(r.useState({}),2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var og=Math.pow(.995,20);function ig(t){var n=ze(e.useState(0),2),r=n[0],o=n[1],i=e.useRef(0),a=e.useRef();return a.current=t,Nt((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var ag={width:0,height:0,left:0,top:0,right:0};function lg(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function cg(e){return String(e).replace(/"/g,"TABS_DQ")}function sg(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var ug=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null})),dg=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==j(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));"production"!==process.env.NODE_ENV&&(dg.displayName="ExtraContent");var fg=r.forwardRef((function(t,n){var o=t.prefixCls,i=t.id,a=t.tabs,l=t.locale,c=t.mobile,s=t.more,u=void 0===s?{}:s,d=t.style,f=t.className,g=t.editable,v=t.tabBarGutter,h=t.rtl,b=t.removeAriaLabel,y=t.onTabClick,x=t.getPopupContainer,w=t.popupClassName,C=ze(e.useState(!1),2),E=C[0],S=C[1],$=ze(e.useState(null),2),O=$[0],k=$[1],N=u.icon,j=void 0===N?"More":N,P="".concat(i,"-more-popup"),R="".concat(o,"-dropdown"),M=null!==O?"".concat(P,"-").concat(O):null,T=null==l?void 0:l.dropdownAriaLabel;var A=r.createElement(Hp,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),S(!1)},prefixCls:"".concat(R,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[O],"aria-label":void 0!==T?T:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,l=e.label,c=sg(t,o,g,n);return r.createElement(vp,{key:a,id:"".concat(P,"-").concat(a),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(R,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),g.onEdit("remove",{key:t,event:e})}(e,a)}},o||g.removeIcon||"×"))})));function _(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===O}))||0,r=t.length,o=0;o<r;o+=1){var i=t[n=(n+e+r)%r];if(!i.disabled)return void k(i.key)}}e.useEffect((function(){var e=document.getElementById(M);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[O]),e.useEffect((function(){E||k(null)}),[E]);var B=I({},h?"marginRight":"marginLeft",v);a.length||(B.visibility="hidden",B.order=1);var L=p(I({},"".concat(R,"-rtl"),h)),F=c?null:r.createElement(Sf,m({prefixCls:R,overlay:A,visible:!!a.length&&E,onVisibleChange:S,overlayClassName:p(L,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},u),r.createElement("button",{type:"button",className:"".concat(o,"-nav-more"),style:B,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":P,id:"".concat(i,"-more"),"aria-expanded":E,onKeyDown:function(e){var t=e.which;if(E)switch(t){case il.UP:_(-1),e.preventDefault();break;case il.DOWN:_(1),e.preventDefault();break;case il.ESC:S(!1);break;case il.SPACE:case il.ENTER:null!==O&&y(O,e)}else[il.DOWN,il.SPACE,il.ENTER].includes(t)&&(S(!0),e.preventDefault())}},j));return r.createElement("div",{className:p("".concat(o,"-nav-operations"),f),style:d,ref:n},F,r.createElement(ug,{prefixCls:o,locale:l,editable:g}))})),pg=r.memo(fg,(function(e,t){return t.tabMoving})),mg=function(e){var t=e.prefixCls,n=e.id,o=e.active,i=e.tab,a=i.key,l=i.label,c=i.disabled,s=i.closeIcon,u=i.icon,d=e.closable,f=e.renderWrapper,m=e.removeAriaLabel,g=e.editable,v=e.onClick,h=e.onFocus,b=e.style,y="".concat(t,"-tab"),x=sg(d,s,g,c);function w(e){c||v(e)}var C=r.useMemo((function(){return u&&"string"==typeof l?r.createElement("span",null,l):l}),[l,u]),E=r.createElement("div",{key:a,"data-node-key":cg(a),className:p(y,I(I(I({},"".concat(y,"-with-remove"),x),"".concat(y,"-active"),o),"".concat(y,"-disabled"),c)),style:b,onClick:w},r.createElement("div",{role:"tab","aria-selected":o,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(y,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),w(e)},onKeyDown:function(e){[il.SPACE,il.ENTER].includes(e.which)&&(e.preventDefault(),w(e))},onFocus:h},u&&r.createElement("span",{className:"".concat(y,"-icon")},u),l&&C),x&&r.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),g.onEdit("remove",{key:a,event:t})}},s||g.removeIcon||"×"));return f?f(E):E},gg=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},vg=function(e,t){return e[t?0:1]},hg=r.forwardRef((function(t,n){var o,i,a,l,c,s=t.className,u=t.style,d=t.id,f=t.animated,g=t.activeKey,v=t.rtl,h=t.extra,b=t.editable,y=t.locale,x=t.tabPosition,w=t.tabBarGutter,C=t.children,E=t.onTabClick,S=t.onTabScroll,$=t.indicator,O=r.useContext(tg),k=O.prefixCls,N=O.tabs,j=e.useRef(null),P=e.useRef(null),R=e.useRef(null),T=e.useRef(null),A=e.useRef(null),_=e.useRef(null),B=e.useRef(null),L="top"===x||"bottom"===x,z=rg(0,(function(e,t){L&&S&&S({direction:e>t?"left":"right"})})),D=ze(z,2),H=D[0],V=D[1],W=rg(0,(function(e,t){!L&&S&&S({direction:e>t?"top":"bottom"})})),q=ze(W,2),X=q[0],K=q[1],G=ze(e.useState([0,0]),2),U=G[0],Y=G[1],Z=ze(e.useState([0,0]),2),Q=Z[0],J=Z[1],ee=ze(e.useState([0,0]),2),te=ee[0],ne=ee[1],re=ze(e.useState([0,0]),2),oe=re[0],ie=re[1],ae=(o=new Map,i=e.useRef([]),a=ze(e.useState({}),2)[1],l=e.useRef("function"==typeof o?o():o),c=ig((function(){var e=l.current;i.current.forEach((function(t){e=t(e)})),i.current=[],l.current=e,a({})})),[l.current,function(e){i.current.push(e),c()}]),le=ze(ae,2),ce=le[0],se=le[1],ue=function(t,n,r){return e.useMemo((function(){for(var e,r=new Map,o=n.get(null===(e=t[0])||void 0===e?void 0:e.key)||ng,i=o.left+o.width,a=0;a<t.length;a+=1){var l,c=t[a].key,s=n.get(c);s||(s=n.get(null===(l=t[a-1])||void 0===l?void 0:l.key)||ng);var u=r.get(c)||M({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[t.map((function(e){return e.key})).join("_"),n,r])}(N,ce,Q[0]),de=vg(U,L),fe=vg(Q,L),pe=vg(te,L),me=vg(oe,L),ge=de<fe+pe,ve=ge?de-me:de-pe,he="".concat(k,"-nav-operations-hidden"),be=0,ye=0;function xe(e){return e<be?be:e>ye?ye:e}L&&v?(be=0,ye=Math.max(0,fe-ve)):(be=Math.min(0,ve-fe),ye=0);var we=e.useRef(null),Ce=ze(e.useState(),2),Ee=Ce[0],Se=Ce[1];function $e(){Se(Date.now())}function ke(){we.current&&clearTimeout(we.current)}!function(t,n){var o=ze(e.useState(),2),i=o[0],a=o[1],l=ze(e.useState(0),2),c=l[0],s=l[1],u=ze(e.useState(0),2),d=u[0],f=u[1],p=ze(e.useState(),2),m=p[0],g=p[1],v=e.useRef(),h=e.useRef(),b=e.useRef(null);b.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(v.current)},onTouchMove:function(e){if(i){e.preventDefault();var t=e.touches[0],r=t.screenX,o=t.screenY;a({x:r,y:o});var l=r-i.x,u=o-i.y;n(l,u);var d=Date.now();s(d),f(d-c),g({x:l,y:u})}},onTouchEnd:function(){if(i&&(a(null),g(null),m)){var e=m.x/d,t=m.y/d,r=Math.abs(e),o=Math.abs(t);if(Math.max(r,o)<.1)return;var l=e,c=t;v.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(v.current):n(20*(l*=og),20*(c*=og))}),20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,i=Math.abs(t),a=Math.abs(r);i===a?o="x"===h.current?t:r:i>a?(o=t,h.current="x"):(o=r,h.current="y"),n(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function e(e){b.current.onTouchMove(e)}function n(e){b.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){b.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){b.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(T,(function(e,t){function n(e,t){e((function(e){return xe(e+t)}))}return!!ge&&(L?n(V,e):n(K,t),ke(),$e(),!0)})),e.useEffect((function(){return ke(),Ee&&(we.current=setTimeout((function(){Se(0)}),100)),ke}),[Ee]);var Ne=function(t,n,r,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(r)):(c="height",s="top",u=-r),e.useMemo((function(){if(!d.length)return[0,0];for(var e=d.length,r=e,o=0;o<e;o+=1){var i=t.get(d[o].key)||ag;if(i[s]+i[c]>u+n){r=o-1;break}}for(var a=0,l=e-1;l>=0;l-=1)if((t.get(d[l].key)||ag)[s]<u){a=l+1;break}return a>=r?[0,0]:[a,r]}),[t,n,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(ue,ve,L?H:X,fe,pe,me,M(M({},t),{},{tabs:N})),je=ze(Ne,2),Pe=je[0],Re=je[1],Me=Go((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(L){var n=H;v?t.right<H?n=t.right:t.right+t.width>H+ve&&(n=t.right+t.width-ve):t.left<-H?n=-t.left:t.left+t.width>-H+ve&&(n=-(t.left+t.width-ve)),K(0),V(xe(n))}else{var r=X;t.top<-X?r=-t.top:t.top+t.height>-X+ve&&(r=-(t.top+t.height-ve)),V(0),K(xe(r))}})),Te={};"top"===x||"bottom"===x?Te[v?"marginRight":"marginLeft"]=w:Te.marginTop=w;var Ae=N.map((function(e,t){var n=e.key;return r.createElement(mg,{id:d,prefixCls:k,key:n,tab:e,style:0===t?void 0:Te,closable:e.closable,editable:b,active:n===g,renderWrapper:C,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){E(n,e)},onFocus:function(){Me(n),$e(),T.current&&(v||(T.current.scrollLeft=0),T.current.scrollTop=0)}})})),_e=function(){return se((function(){var e,t=new Map,n=null===(e=A.current)||void 0===e?void 0:e.getBoundingClientRect();return N.forEach((function(e){var r,o=e.key,i=null===(r=A.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(cg(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=ze(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};e.useEffect((function(){_e()}),[N.map((function(e){return e.key})).join("_")]);var Le=ig((function(){var e=gg(j),t=gg(P),n=gg(R);Y([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=gg(B);ne(r);var o=gg(_);ie(o);var i=gg(A);J([i[0]-r[0],i[1]-r[1]]),_e()})),Fe=N.slice(0,Pe),De=N.slice(Re+1),He=[].concat(Ie(Fe),Ie(De)),Ve=ue.get(g),We=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=ze(e.useState(),2),d=u[0],f=u[1],p=e.useRef(),m=e.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function g(){Be.cancel(p.current)}return e.useEffect((function(){var e={};if(n)if(r){e.width=m(n.width);var t=o?"right":"left";"start"===s&&(e[t]=n[t]),"center"===s&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=m(n.height),"start"===s&&(e.top=n.top),"center"===s&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return g(),p.current=Be((function(){f(e)})),g}),[n,r,o,s,m]),{style:d}}({activeTabOffset:Ve,horizontal:L,indicator:$,rtl:v}),qe=We.style;e.useEffect((function(){Me()}),[g,be,ye,lg(Ve),lg(ue),L]),e.useEffect((function(){Le()}),[v]);var Xe,Ke,Ge,Ue,Ye=!!He.length,Ze="".concat(k,"-nav-wrap");return L?v?(Ke=H>0,Xe=H!==ye):(Xe=H<0,Ke=H!==be):(Ge=X<0,Ue=X!==be),r.createElement(Oe,{onResize:Le},r.createElement("div",{ref:F(n,j),role:"tablist",className:p("".concat(k,"-nav"),s),style:u,onKeyDown:function(){$e()}},r.createElement(dg,{ref:P,position:"left",extra:h,prefixCls:k}),r.createElement(Oe,{onResize:Le},r.createElement("div",{className:p(Ze,I(I(I(I({},"".concat(Ze,"-ping-left"),Xe),"".concat(Ze,"-ping-right"),Ke),"".concat(Ze,"-ping-top"),Ge),"".concat(Ze,"-ping-bottom"),Ue)),ref:T},r.createElement(Oe,{onResize:Le},r.createElement("div",{ref:A,className:"".concat(k,"-nav-list"),style:{transform:"translate(".concat(H,"px, ").concat(X,"px)"),transition:Ee?"none":void 0}},Ae,r.createElement(ug,{ref:B,prefixCls:k,locale:y,editable:b,style:M(M({},0===Ae.length?void 0:Te),{},{visibility:Ye?"hidden":null})}),r.createElement("div",{className:p("".concat(k,"-ink-bar"),I({},"".concat(k,"-ink-bar-animated"),f.inkBar)),style:qe}))))),r.createElement(pg,m({},t,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:_,prefixCls:k,tabs:He,className:!Ye&&he,tabMoving:!!Ee})),r.createElement(dg,{ref:R,position:"right",extra:h,prefixCls:k})))})),bg=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,s=e.children;return r.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:p(n,l&&"".concat(n,"-active"),o),ref:t},s)}));"production"!==process.env.NODE_ENV&&(bg.displayName="TabPane");var yg=["renderTabBar"],xg=["label","key"],wg=function(e){var t=e.renderTabBar,n=et(e,yg),o=r.useContext(tg).tabs;return t?t(M(M({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=et(e,xg);return r.createElement(bg,m({tab:t,key:n,tabKey:n},o))}))}),hg):r.createElement(hg,n)};"production"!==process.env.NODE_ENV&&(wg.displayName="TabNavListWrapper");var Cg=["key","forceRender","style","className","destroyInactiveTabPane"],Eg=function(e){var t=e.id,n=e.activeKey,o=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,l=r.useContext(tg),c=l.prefixCls,s=l.tabs,u=o.tabPane,d="".concat(c,"-tabpane");return r.createElement("div",{className:p("".concat(c,"-content-holder"))},r.createElement("div",{className:p("".concat(c,"-content"),"".concat(c,"-content-").concat(i),I({},"".concat(c,"-content-animated"),u))},s.map((function(e){var i=e.key,l=e.forceRender,c=e.style,s=e.className,f=e.destroyInactiveTabPane,g=et(e,Cg),v=i===n;return r.createElement(ga,m({key:i,visible:v,forceRender:l,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,a=e.className;return r.createElement(bg,m({},g,{prefixCls:d,id:t,tabKey:i,animated:u,active:v,style:M(M({},c),o),className:p(s,a),ref:n}))}))}))))};var Sg=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],$g=0,Og=r.forwardRef((function(t,n){var o=t.id,i=t.prefixCls,a=void 0===i?"rc-tabs":i,l=t.className,c=t.items,s=t.direction,u=t.activeKey,d=t.defaultActiveKey,f=t.editable,g=t.animated,v=t.tabPosition,h=void 0===v?"top":v,b=t.tabBarGutter,y=t.tabBarStyle,x=t.tabBarExtraContent,w=t.locale,C=t.more,E=t.destroyInactiveTabPane,S=t.renderTabBar,$=t.onChange,O=t.onTabClick,k=t.onTabScroll,P=t.getPopupContainer,R=t.popupClassName,T=t.indicator,A=et(t,Sg),_=r.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===j(e)&&"key"in e}))}),[c]),B="rtl"===s,L=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:M({inkBar:!0},"object"===j(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&N(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(g),F=ze(e.useState(!1),2),z=F[0],D=F[1];e.useEffect((function(){D(Ou())}),[]);var H=ze(Zo((function(){var e;return null===(e=_[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),2),V=H[0],W=H[1],q=ze(e.useState((function(){return _.findIndex((function(e){return e.key===V}))})),2),X=q[0],K=q[1];e.useEffect((function(){var e,t=_.findIndex((function(e){return e.key===V}));-1===t&&(t=Math.max(0,Math.min(X,_.length-1)),W(null===(e=_[t])||void 0===e?void 0:e.key));K(t)}),[_.map((function(e){return e.key})).join("_"),V,X]);var G=ze(Zo(null,{value:o}),2),U=G[0],Y=G[1];e.useEffect((function(){o||(Y("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":$g)),$g+=1)}),[]);var Z={id:U,activeKey:V,animated:L,tabPosition:h,rtl:B,mobile:z},Q=M(M({},Z),{},{editable:f,locale:w,more:C,tabBarGutter:b,onTabClick:function(e,t){null==O||O(e,t);var n=e!==V;W(e),n&&(null==$||$(e))},onTabScroll:k,extra:x,style:y,panes:null,getPopupContainer:P,popupClassName:R,indicator:T});return r.createElement(tg.Provider,{value:{tabs:_,prefixCls:a}},r.createElement("div",m({ref:n,id:o,className:p(a,"".concat(a,"-").concat(h),I(I(I({},"".concat(a,"-mobile"),z),"".concat(a,"-editable"),f),"".concat(a,"-rtl"),B),l)},A),r.createElement(wg,m({},Q,{renderTabBar:S})),r.createElement(Eg,m({destroyInactiveTabPane:E},Z,{animated:L}))))}));"production"!==process.env.NODE_ENV&&(Og.displayName="Tabs");const kg={motionAppear:!1,motionEnter:!0,motionLeave:!0};var Ng=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 jg=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}`}}}}},[hu(e,"slide-up"),hu(e,"slide-down")]]},Pg=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${wt(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,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:wt(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${wt(e.borderRadiusLG)} ${wt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${wt(e.borderRadiusLG)} ${wt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:wt(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${wt(e.borderRadiusLG)} 0 0 ${wt(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 ${wt(e.borderRadiusLG)} ${wt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ig=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ci(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:`${wt(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({},wi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${wt(e.paddingXXS)} ${wt(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"}}})}})}},Rg=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=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:`${wt(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n 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,\n > 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:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${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:wt(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${wt(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:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${wt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Mg=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${wt(e.borderRadius)} ${wt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${wt(e.borderRadius)} ${wt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${wt(e.borderRadius)} ${wt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${wt(e.borderRadius)} 0 0 ${wt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Tg=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},$i(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-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},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},Ag=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{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:wt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:wt(e.marginXS)},marginLeft:{_skip_check_:!0,value:wt(i(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"}}}}},_g=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ci(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 ${wt(e.paddingXS)}`,background:"transparent",border:`${wt(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${wt(e.borderRadiusLG)} ${wt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},$i(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Tg(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"}}}}}};var Bg=ki("Tabs",(e=>{const t=ti(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${wt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${wt(e.horizontalItemGutter)}`});return[Mg(t),Ag(t),Rg(t),Ig(t),Pg(t),_g(t),jg(t)]}),(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:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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}}));const Lg=()=>null;"production"!==process.env.NODE_ENV&&(Lg.displayName="DeprecatedTabPane");var Fg=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 zg=e=>{var t,n,o,i,a,l,c,s,u,d,f;const{type:m,className:g,rootClassName:v,size:h,onEdit:b,hideAdd:y,centered:x,addIcon:C,removeIcon:E,moreIcon:S,more:$,popupClassName:O,children:k,items:N,animated:j,style:P,indicatorSize:I,indicator:R}=e,M=Fg(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:T}=M,{direction:A,tabs:_,getPrefixCls:B,getPopupContainer:L}=r.useContext(To),F=B("tabs",T),z=ol(F),[D,H,V]=Bg(F,z);let W;"editable-card"===m&&(W={onEdit:(e,t)=>{let{key:n,event:r}=t;null==b||b("add"===e?r:n,e)},removeIcon:null!==(t=null!=E?E:null==_?void 0:_.removeIcon)&&void 0!==t?t:r.createElement(Qa,null),addIcon:(null!=C?C:null==_?void 0:_.addIcon)||r.createElement(eg,null),showAdd:!0!==y});const q=B();if("production"!==process.env.NODE_ENV){const t=dr("Tabs");"production"!==process.env.NODE_ENV&&t(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&t(!(I||(null==_?void 0:_.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const X=ql(h),K=function(e,t){"production"!==process.env.NODE_ENV&&dr("Tabs").deprecated(!t,"Tabs.TabPane","items");if(e)return e;const n=w(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=Ng(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(n)}(N,k),G=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},kg),{motionName:Tl(e,"switch")})),t}(F,j),U=Object.assign(Object.assign({},null==_?void 0:_.style),P),Y={align:null!==(n=null==R?void 0:R.align)&&void 0!==n?n:null===(o=null==_?void 0:_.indicator)||void 0===o?void 0:o.align,size:null!==(c=null!==(a=null!==(i=null==R?void 0:R.size)&&void 0!==i?i:I)&&void 0!==a?a:null===(l=null==_?void 0:_.indicator)||void 0===l?void 0:l.size)&&void 0!==c?c:null==_?void 0:_.indicatorSize};return D(r.createElement(Og,Object.assign({direction:A,getPopupContainer:L},M,{items:K,className:p({[`${F}-${X}`]:X,[`${F}-card`]:["card","editable-card"].includes(m),[`${F}-editable-card`]:"editable-card"===m,[`${F}-centered`]:x},null==_?void 0:_.className,g,v,H,V,z),popupClassName:p(O,H,V,z),style:U,editable:W,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(s=null==_?void 0:_.more)||void 0===s?void 0:s.icon)&&void 0!==u?u:null==_?void 0:_.moreIcon)&&void 0!==d?d:S)&&void 0!==f?f:r.createElement(rm,null),transitionName:`${q}-slide-up`},$),prefixCls:F,animated:G,indicator:Y})))};function Dg(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Hg(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=Dg(t,e,r)):n(o=Dg(t,e,""))}}zg.TabPane=Lg,"production"!==process.env.NODE_ENV&&(zg.displayName="Tabs");var Vg=e.forwardRef((function(t,n){var r,o,i=t.inputElement,a=t.children,l=t.prefixCls,c=t.prefix,s=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,g=t.style,v=t.disabled,h=t.readOnly,b=t.focused,y=t.triggerFocus,x=t.allowClear,w=t.value,C=t.handleReset,E=t.hidden,S=t.classes,$=t.classNames,O=t.dataAttrs,k=t.styles,N=t.components,P=t.onClear,R=null!=a?a:i,T=(null==N?void 0:N.affixWrapper)||"span",A=(null==N?void 0:N.groupWrapper)||"span",_=(null==N?void 0:N.wrapper)||"span",B=(null==N?void 0:N.groupAddon)||"span",L=e.useRef(null),F=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(t),z=e.cloneElement(R,{value:w,className:p(R.props.className,!F&&(null==$?void 0:$.variant))||null}),D=e.useRef(null);if(e.useImperativeHandle(n,(function(){return{nativeElement:D.current||L.current}})),F){var H=null;if(x){var V=!v&&!h&&w,W="".concat(l,"-clear-icon"),q="object"===j(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";H=e.createElement("span",{onClick:function(e){null==C||C(e),null==P||P()},onMouseDown:function(e){return e.preventDefault()},className:p(W,I(I({},"".concat(W,"-hidden"),!V),"".concat(W,"-has-suffix"),!!s)),role:"button",tabIndex:-1},q)}var X="".concat(l,"-affix-wrapper"),K=p(X,I(I(I(I(I({},"".concat(l,"-disabled"),v),"".concat(X,"-disabled"),v),"".concat(X,"-focused"),b),"".concat(X,"-readonly"),h),"".concat(X,"-input-with-clear-btn"),s&&x&&w),null==S?void 0:S.affixWrapper,null==$?void 0:$.affixWrapper,null==$?void 0:$.variant),G=(s||x)&&e.createElement("span",{className:p("".concat(l,"-suffix"),null==$?void 0:$.suffix),style:null==k?void 0:k.suffix},H,s);z=e.createElement(T,m({className:K,style:null==k?void 0:k.affixWrapper,onClick:function(e){var t;null!==(t=L.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:L}),c&&e.createElement("span",{className:p("".concat(l,"-prefix"),null==$?void 0:$.prefix),style:null==k?void 0:k.prefix},c),z,G)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(t)){var U="".concat(l,"-group"),Y="".concat(U,"-addon"),Z="".concat(U,"-wrapper"),Q=p("".concat(l,"-wrapper"),U,null==S?void 0:S.wrapper,null==$?void 0:$.wrapper),J=p(Z,I({},"".concat(Z,"-disabled"),v),null==S?void 0:S.group,null==$?void 0:$.groupWrapper);z=e.createElement(A,{className:J,ref:D},e.createElement(_,{className:Q},u&&e.createElement(B,{className:Y},u),z,d&&e.createElement(B,{className:Y},d)))}return e.cloneElement(z,{className:p(null===(r=z.props)||void 0===r?void 0:r.className,f)||null,style:M(M({},null===(o=z.props)||void 0===o?void 0:o.style),g),hidden:E})})),Wg=["show"];function qg(e,t){return r.useMemo((function(){var n={};t&&(n.show="object"===j(t)&&t.formatter?t.formatter:!!t);var r=n=M(M({},n),e),o=r.show,i=et(r,Wg);return M(M({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var Xg=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Kg=e.forwardRef((function(t,n){var r=t.autoComplete,o=t.onChange,i=t.onFocus,a=t.onBlur,l=t.onPressEnter,c=t.onKeyDown,s=t.onKeyUp,u=t.prefixCls,d=void 0===u?"rc-input":u,f=t.disabled,g=t.htmlSize,v=t.className,h=t.maxLength,b=t.suffix,y=t.showCount,x=t.count,w=t.type,C=void 0===w?"text":w,E=t.classes,S=t.classNames,$=t.styles,O=t.onCompositionStart,k=t.onCompositionEnd,N=et(t,Xg),j=ze(e.useState(!1),2),P=j[0],R=j[1],T=e.useRef(!1),A=e.useRef(!1),_=e.useRef(null),B=e.useRef(null),L=function(e){_.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var 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)}}}}(_.current,e)},F=ze(Zo(t.defaultValue,{value:t.value}),2),z=F[0],D=F[1],H=null==z?"":String(z),V=ze(e.useState(null),2),W=V[0],q=V[1],X=qg(x,y),K=X.max||h,G=X.strategy(H),U=!!K&&G>K;e.useImperativeHandle(n,(function(){var e;return{focus:L,blur:function(){var e;null===(e=_.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=_.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=_.current)||void 0===e||e.select()},input:_.current,nativeElement:(null===(e=B.current)||void 0===e?void 0:e.nativeElement)||_.current}})),e.useEffect((function(){R((function(e){return(!e||!f)&&e}))}),[f]);var Y=function(e,t,n){var r,i,a=t;if(!T.current&&X.exceedFormatter&&X.max&&X.strategy(t)>X.max)t!==(a=X.exceedFormatter(t,{max:X.max}))&&q([(null===(r=_.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=_.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;D(a),_.current&&Hg(_.current,e,o,a)};e.useEffect((function(){var e;W&&(null===(e=_.current)||void 0===e||e.setSelectionRange.apply(e,Ie(W)))}),[W]);var Z,Q=function(e){Y(e,e.target.value,{source:"change"})},J=function(e){T.current=!1,Y(e,e.currentTarget.value,{source:"compositionEnd"}),null==k||k(e)},ee=function(e){l&&"Enter"===e.key&&!A.current&&(A.current=!0,l(e)),null==c||c(e)},te=function(e){"Enter"===e.key&&(A.current=!1),null==s||s(e)},ne=function(e){R(!0),null==i||i(e)},re=function(e){R(!1),null==a||a(e)},oe=U&&"".concat(d,"-out-of-range");return e.createElement(Vg,m({},N,{prefixCls:d,className:p(v,oe),handleReset:function(e){D(""),L(),_.current&&Hg(_.current,e,o)},value:H,focused:P,triggerFocus:L,suffix:function(){var t=Number(K)>0;if(b||X.show){var n=X.showFormatter?X.showFormatter({value:H,count:G,maxLength:K}):"".concat(G).concat(t?" / ".concat(K):"");return e.createElement(e.Fragment,null,X.show&&e.createElement("span",{className:p("".concat(d,"-show-count-suffix"),I({},"".concat(d,"-show-count-has-suffix"),!!b),null==S?void 0:S.count),style:M({},null==$?void 0:$.count)},n),b)}return null}(),disabled:f,classes:E,classNames:S,styles:$}),(Z=ke(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),e.createElement("input",m({autoComplete:r},Z,{onChange:Q,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:p(d,I({},"".concat(d,"-disabled"),f),null==S?void 0:S.input),style:null==$?void 0:$.input,ref:_,size:g,type:C,onCompositionStart:function(e){T.current=!0,null==O||O(e)},onCompositionEnd:J}))))}));const Gg=t=>{let n;return"object"==typeof t&&(null==t?void 0:t.clearIcon)?n=t:t&&(n={clearIcon:e.createElement(Ua,null)}),n};function Ug(t,n){const r=e.useRef([]),o=()=>{r.current.push(setTimeout((()=>{var e,n,r,o;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=t.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=t.current)||void 0===o||o.input.removeAttribute("value"))})))};return e.useEffect((()=>(n&&o(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var Yg=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Zg=e.forwardRef(((t,n)=>{var r;const{prefixCls:o,bordered:i=!0,status:a,size:l,disabled:c,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:g,className:v,style:h,styles:b,rootClassName:y,onChange:x,classNames:w,variant:C}=t,E=Yg(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=dr("Input");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:S,direction:$,input:O}=e.useContext(To),k=S("input",o),N=e.useRef(null),j=ol(k),[P,I,R]=Zm(k,j),{compactSize:M,compactItemClassnames:T}=Kl(k,$),A=ql((e=>{var t;return null!==(t=null!=l?l:M)&&void 0!==t?t:e})),_=e.useContext(Bo),B=null!=c?c:_,{status:F,hasFeedback:z,feedbackIcon:D}=e.useContext(au),H=pd(F,a),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(t)||!!z,W=e.useRef(V);if("production"!==process.env.NODE_ENV){const t=dr("Input");e.useEffect((()=>{var e;V&&!W.current&&"production"!==process.env.NODE_ENV&&t(document.activeElement===(null===(e=N.current)||void 0===e?void 0:e.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),W.current=V}),[V])}const q=Ug(N,!0),X=(z||d)&&e.createElement(e.Fragment,null,d,z&&D),K=Gg(null!=f?f:null==O?void 0:O.allowClear),[G,U]=md("input",C,i);return P(e.createElement(Kg,Object.assign({ref:L(n,N),prefixCls:k,autoComplete:null==O?void 0:O.autoComplete},E,{disabled:B,onBlur:e=>{q(),null==s||s(e)},onFocus:e=>{q(),null==u||u(e)},style:Object.assign(Object.assign({},null==O?void 0:O.style),h),styles:Object.assign(Object.assign({},null==O?void 0:O.styles),b),suffix:X,allowClear:K,className:p(v,y,R,j,T,null==O?void 0:O.className),onChange:e=>{q(),null==x||x(e)},addonBefore:g&&e.createElement(su,{form:!0,space:!0},g),addonAfter:m&&e.createElement(su,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},w),null==O?void 0:O.classNames),{input:p({[`${k}-sm`]:"small"===A,[`${k}-lg`]:"large"===A,[`${k}-rtl`]:"rtl"===$},null==w?void 0:w.input,null===(r=null==O?void 0:O.classNames)||void 0===r?void 0:r.input,I),variant:p({[`${k}-${G}`]:U},fd(k,H)),affixWrapper:p({[`${k}-affix-wrapper-sm`]:"small"===A,[`${k}-affix-wrapper-lg`]:"large"===A,[`${k}-affix-wrapper-rtl`]:"rtl"===$},I),wrapper:p({[`${k}-group-rtl`]:"rtl"===$},I),groupWrapper:p({[`${k}-group-wrapper-sm`]:"small"===A,[`${k}-group-wrapper-lg`]:"large"===A,[`${k}-group-wrapper-rtl`]:"rtl"===$,[`${k}-group-wrapper-${G}`]:U},fd(`${k}-group-wrapper`,H,z),I)})})))}));"production"!==process.env.NODE_ENV&&(Zg.displayName="Input");const Qg=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var Jg=ki(["Input","OTP"],(e=>{const t=ti(e,$m(e));return[Qg(t)]}),Om),ev=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 tv=r.forwardRef(((e,t)=>{const{value:n,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=ev(e,["value","onChange","onActiveChange","index","mask"]),s=n&&"string"==typeof l?l:n,u=r.useRef(null);r.useImperativeHandle(t,(()=>u.current));const d=()=>{Be((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return r.createElement(Zg,Object.assign({},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===l?"password":"text"}))}));var nv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 rv(e){return(e||"").split("")}const ov=r.forwardRef(((e,t)=>{const{prefixCls:n,length:o=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,variant:u,disabled:d,status:f,autoFocus:m,mask:g}=e,v=nv(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=dr("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof g&&g.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:h,direction:b}=r.useContext(To),y=h("otp",n),x=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:M({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||el(n,"aria-"))||t.data&&el(n,"data-")||t.attr&&Ja.includes(n))&&(r[n]=e[n])})),r}(v,{aria:!0,data:!0,attr:!0}),w=ol(y),[C,E,S]=Jg(y,w),$=ql((e=>null!=i?i:e)),O=r.useContext(au),k=pd(O.status,f),N=r.useMemo((()=>Object.assign(Object.assign({},O),{status:k,hasFeedback:!1,feedbackIcon:null})),[O,k]),j=r.useRef(null),P=r.useRef({});r.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=P.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=P.current[t])||void 0===e||e.blur()},nativeElement:j.current})));const I=e=>s?s(e):e,[R,T]=r.useState(rv(I(a||"")));r.useEffect((()=>{void 0!==l&&T(rv(l))}),[l]);const A=Go((e=>{T(e),c&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>R[t]!==e))&&c(e.join(""))})),_=Go(((e,t)=>{let n=Ie(R);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(rv(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=I(n.map((e=>e||" ")).join(""));return n=rv(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),B=(e,t)=>{var n;const r=_(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=P.current[i])||void 0===n||n.focus()),A(r)},L=e=>{var t;null===(t=P.current[e])||void 0===t||t.focus()},F={variant:u,disabled:d,status:k,mask:g};return C(r.createElement("div",Object.assign({},x,{ref:j,className:p(y,{[`${y}-sm`]:"small"===$,[`${y}-lg`]:"large"===$,[`${y}-rtl`]:"rtl"===b},S,E)}),r.createElement(au.Provider,{value:N},Array.from({length:o}).map(((e,t)=>{const n=`otp-${t}`,o=R[t]||"";return r.createElement(tv,Object.assign({ref:e=>{P.current[t]=e},key:n,index:t,size:$,htmlSize:1,className:`${y}-input`,onChange:B,value:o,onActiveChange:L,autoFocus:0===t&&m},F))})))))}));var iv={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"},av=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:iv}))},lv=r.forwardRef(av);"production"!==process.env.NODE_ENV&&(lv.displayName="EyeInvisibleOutlined");var cv={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"},sv=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:cv}))},uv=r.forwardRef(sv);"production"!==process.env.NODE_ENV&&(uv.displayName="EyeOutlined");var dv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 fv=e=>e?r.createElement(uv,null):r.createElement(lv,null),pv={click:"onClick",hover:"onMouseOver"},mv=r.forwardRef(((t,n)=>{const{disabled:o,action:i="click",visibilityToggle:a=!0,iconRender:l=fv}=t,c="object"==typeof a&&void 0!==a.visible,[s,u]=e.useState((()=>!!c&&a.visible)),d=e.useRef(null);r.useEffect((()=>{c&&u(a.visible)}),[c,a]);const f=Ug(d),m=()=>{o||(s&&f(),u((e=>{var t;const n=!e;return"object"==typeof a&&(null===(t=a.onVisibleChange)||void 0===t||t.call(a,n)),n})))},{className:g,prefixCls:v,inputPrefixCls:h,size:b}=t,y=dv(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=r.useContext(To),w=x("input",h),C=x("input-password",v),E=a&&(e=>{const t=pv[i]||"",n=l(s),o={[t]:m,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return r.cloneElement(r.isValidElement(n)?n:r.createElement("span",null,n),o)})(C),S=p(C,g,{[`${C}-${b}`]:!!b}),$=Object.assign(Object.assign({},ke(y,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:S,prefixCls:w,suffix:E});return b&&($.size=b),r.createElement(Zg,Object.assign({ref:L(n,d)},$))}));"production"!==process.env.NODE_ENV&&(mv.displayName="Input.Password");var gv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 vv=r.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:g,onCompositionEnd:v}=e,h=gv(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:y}=r.useContext(To),x=r.useRef(!1),w=b("input-search",n),C=b("input",o),{compactSize:E}=Kl(w,y),S=ql((e=>{var t;return null!==(t=null!=a?a:E)&&void 0!==t?t:e})),$=r.useRef(null),O=e=>{var t;document.activeElement===(null===(t=$.current)||void 0===t?void 0:t.input)&&e.preventDefault()},k=e=>{var t,n;f&&f(null===(n=null===(t=$.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},N="boolean"==typeof c?r.createElement(xd,null):null,j=`${w}-button`;let P;const I=c||{},R=I.type&&!0===I.type.__ANT_BUTTON;P=R||"button"===I.type?rl(I,Object.assign({onMouseDown:O,onClick:e=>{var t,n;null===(n=null===(t=null==I?void 0:I.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),k(e)},key:"enterButton"},R?{className:j,size:S}:{})):r.createElement(Dc,{className:j,type:c?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:O,onClick:k,loading:u,icon:N},c),s&&(P=[P,rl(s,{key:"addonAfter"})]);const M=p(w,{[`${w}-rtl`]:"rtl"===y,[`${w}-${S}`]:!!S,[`${w}-with-button`]:!!c},i);return r.createElement(Zg,Object.assign({ref:L($,t),onPressEnter:e=>{x.current||u||k(e)}},h,{size:S,onCompositionStart:e=>{x.current=!0,null==g||g(e)},onCompositionEnd:e=>{x.current=!1,null==v||v(e)},prefixCls:C,addonAfter:P,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==m||m(e)},className:M,disabled:d}))}));"production"!==process.env.NODE_ENV&&(vv.displayName="Search");var hv,bv=["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"],yv={};function xv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;hv||((hv=document.createElement("textarea")).setAttribute("tab-index","-1"),hv.setAttribute("aria-hidden","true"),document.body.appendChild(hv)),e.getAttribute("wrap")?hv.setAttribute("wrap",e.getAttribute("wrap")):hv.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&yv[n])return yv[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:bv.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(yv[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;hv.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),hv.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=hv.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){hv.value=" ";var p=hv.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var wv=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Cv=r.forwardRef((function(e,t){var n=e,o=n.prefixCls,i=n.defaultValue,a=n.value,l=n.autoSize,c=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange,g=n.onInternalAutoSize,v=et(n,wv),h=ze(Zo(i,{value:a,postState:function(e){return null!=e?e:""}}),2),b=h[0],y=h[1],x=r.useRef();r.useImperativeHandle(t,(function(){return{textArea:x.current}}));var w=ze(r.useMemo((function(){return l&&"object"===j(l)?[l.minRows,l.maxRows]:[]}),[l]),2),C=w[0],E=w[1],S=!!l,$=ze(r.useState(2),2),O=$[0],k=$[1],N=ze(r.useState(),2),P=N[0],R=N[1],T=function(){k(0),"test"===process.env.NODE_ENV&&(null==g||g())};kt((function(){S&&T()}),[a,C,E,S]),kt((function(){if(0===O)k(1);else if(1===O){var e=xv(x.current,!1,C,E);k(2),R(e)}else!function(){try{if(document.activeElement===x.current){var e=x.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;x.current.setSelectionRange(t,n),x.current.scrollTop=r}}catch(e){}}()}),[O]);var A=r.useRef(),_=function(){Be.cancel(A.current)};r.useEffect((function(){return _}),[]);var B=S?P:null,L=M(M({},u),B);return 0!==O&&1!==O||(L.overflowY="hidden",L.overflowX="hidden"),r.createElement(Oe,{onResize:function(e){2===O&&(null==c||c(e),l&&(_(),A.current=Be((function(){T()}))))},disabled:!(l||c)},r.createElement("textarea",m({},v,{ref:x,style:L,className:p(o,s,I({},"".concat(o,"-disabled"),d)),disabled:d,value:b,onChange:function(e){y(e.target.value),null==f||f(e)}})))})),Ev=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Sv=e.forwardRef((function(t,n){var r,o=t.defaultValue,i=t.value,a=t.onFocus,l=t.onBlur,c=t.onChange,s=t.allowClear,u=t.maxLength,d=t.onCompositionStart,f=t.onCompositionEnd,g=t.suffix,v=t.prefixCls,h=void 0===v?"rc-textarea":v,b=t.showCount,y=t.count,x=t.className,w=t.style,C=t.disabled,E=t.hidden,S=t.classNames,$=t.styles,O=t.onResize,k=t.onClear,N=t.onPressEnter,j=t.readOnly,P=t.autoSize,R=t.onKeyDown,T=et(t,Ev),A=ze(Zo(o,{value:i,defaultValue:o}),2),_=A[0],B=A[1],L=null==_?"":String(_),F=ze(e.useState(!1),2),z=F[0],D=F[1],H=e.useRef(!1),V=ze(e.useState(null),2),W=V[0],q=V[1],X=e.useRef(null),K=e.useRef(null),G=function(){var e;return null===(e=K.current)||void 0===e?void 0:e.textArea},U=function(){G().focus()};e.useImperativeHandle(n,(function(){var e;return{resizableTextArea:K.current,focus:U,blur:function(){G().blur()},nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||G()}})),e.useEffect((function(){D((function(e){return!C&&e}))}),[C]);var Y=ze(e.useState(null),2),Z=Y[0],Q=Y[1];e.useEffect((function(){var e;Z&&(e=G()).setSelectionRange.apply(e,Ie(Z))}),[Z]);var J,ee=qg(y,b),te=null!==(r=ee.max)&&void 0!==r?r:u,ne=Number(te)>0,re=ee.strategy(L),oe=!!te&&re>te,ie=function(e,t){var n=t;!H.current&&ee.exceedFormatter&&ee.max&&ee.strategy(t)>ee.max&&t!==(n=ee.exceedFormatter(t,{max:ee.max}))&&Q([G().selectionStart||0,G().selectionEnd||0]),B(n),Hg(e.currentTarget,e,c,n)},ae=g;ee.show&&(J=ee.showFormatter?ee.showFormatter({value:L,count:re,maxLength:te}):"".concat(re).concat(ne?" / ".concat(te):""),ae=e.createElement(e.Fragment,null,ae,e.createElement("span",{className:p("".concat(h,"-data-count"),null==S?void 0:S.count),style:null==$?void 0:$.count},J)));var le=!P&&!b&&!s;return e.createElement(Vg,{ref:X,value:L,allowClear:s,handleReset:function(e){B(""),U(),Hg(G(),e,c)},suffix:ae,prefixCls:h,classNames:M(M({},S),{},{affixWrapper:p(null==S?void 0:S.affixWrapper,I(I({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),s))}),disabled:C,focused:z,className:p(x,oe&&"".concat(h,"-out-of-range")),style:M(M({},w),W&&!le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof J?J:void 0}},hidden:E,readOnly:j,onClear:k},e.createElement(Cv,m({},T,{autoSize:P,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&N&&N(e),null==R||R(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){D(!0),null==a||a(e)},onBlur:function(e){D(!1),null==l||l(e)},onCompositionStart:function(e){H.current=!0,null==d||d(e)},onCompositionEnd:function(e){H.current=!1,ie(e,e.currentTarget.value),null==f||f(e)},className:p(null==S?void 0:S.textarea),style:M(M({},null==$?void 0:$.textarea),{},{resize:null==w?void 0:w.resize}),disabled:C,prefixCls:h,onResize:function(e){var t;null==O||O(e),null!==(t=G())&&void 0!==t&&t.style.height&&q(!0)},ref:K,readOnly:j})))})),$v=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Ov=e.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:c,status:s,allowClear:u,classNames:d,rootClassName:f,className:m,style:g,styles:v,variant:h}=e,b=$v(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=dr("TextArea");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:y,direction:x,textArea:w}=r.useContext(To),C=ql(l),E=r.useContext(Bo),S=null!=c?c:E,{status:$,hasFeedback:O,feedbackIcon:k}=r.useContext(au),N=pd($,s),j=r.useRef(null);r.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=j.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=j.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=j.current)||void 0===e?void 0:e.blur()}}}));const P=y("input",i),I=ol(P),[R,M,T]=Zm(P,I),[A,_]=md("textArea",h,a),B=Gg(null!=u?u:null==w?void 0:w.allowClear);return R(r.createElement(Sv,Object.assign({autoComplete:null==w?void 0:w.autoComplete},b,{style:Object.assign(Object.assign({},null==w?void 0:w.style),g),styles:Object.assign(Object.assign({},null==w?void 0:w.styles),v),disabled:S,allowClear:B,className:p(T,I,m,f,null==w?void 0:w.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==w?void 0:w.classNames),{textarea:p({[`${P}-sm`]:"small"===C,[`${P}-lg`]:"large"===C},M,null==d?void 0:d.textarea,null===(n=null==w?void 0:w.classNames)||void 0===n?void 0:n.textarea),variant:p({[`${P}-${A}`]:_},fd(P,N)),affixWrapper:p(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:"rtl"===x,[`${P}-affix-wrapper-sm`]:"small"===C,[`${P}-affix-wrapper-lg`]:"large"===C,[`${P}-textarea-show-count`]:e.showCount||(null===(o=e.count)||void 0===o?void 0:o.show)},M)}),prefixCls:P,suffix:O&&r.createElement("span",{className:`${P}-textarea-suffix`},k),ref:j})))})),kv=Zg;kv.Group=t=>{const{getPrefixCls:n,direction:o}=e.useContext(To),{prefixCls:i,className:a}=t,l=n("input-group",i),c=n("input"),[s,u]=Zm(c),d=p(l,{[`${l}-lg`]:"large"===t.size,[`${l}-sm`]:"small"===t.size,[`${l}-compact`]:t.compact,[`${l}-rtl`]:"rtl"===o},u,a),f=e.useContext(au),m=e.useMemo((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);if("production"!==process.env.NODE_ENV){dr("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return s(r.createElement("span",{className:d,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},r.createElement(au.Provider,{value:m},t.children)))},kv.Search=vv,kv.TextArea=Ov,kv.Password=mv,kv.OTP=ov;const Nv=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},jv=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:c,headerColor:s,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:p,motionDurationMid:m,motionDurationSlow:g,fontSize:v,borderRadius:h,bodyBg:b,headerBg:y,siderBg:x}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{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:x,transition:`all ${m}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:wt(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${m}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:x,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${g} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${g}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}}}},Nv(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:s,lineHeight:wt(l),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:v,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}};var Pv=ki("Layout",(e=>[jv(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Iv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Rv(e){let{suffixCls:t,tagName:n,displayName:o}=e;return e=>{const i=r.forwardRef(((o,i)=>r.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},o))));return"production"!==process.env.NODE_ENV&&(i.displayName=o),i}}const Mv=r.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:o,className:i,tagName:a}=e,l=Iv(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=r.useContext(To),s=c("layout",n),[u,d,f]=Pv(s),m=o?`${s}-${o}`:s;return u(r.createElement(a,Object.assign({className:p(n||m,i,d,f),ref:t},l)))})),Tv=r.forwardRef(((e,t)=>{const{direction:n}=r.useContext(To),[o,i]=r.useState([]),{prefixCls:a,className:l,rootClassName:c,children:s,hasSider:u,tagName:d,style:f}=e,m=ke(Iv(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:g,layout:v}=r.useContext(To),h=g("layout",a),b=function(e,t,n){return"boolean"==typeof n?n:!!e.length||w(t).some((e=>e.type===em))}(o,s,u),[y,x,C]=Pv(h),E=p(h,{[`${h}-has-sider`]:b,[`${h}-rtl`]:"rtl"===n},null==v?void 0:v.className,l,c,x,C),S=r.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Ie(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return y(r.createElement(Up.Provider,{value:S},r.createElement(d,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},null==v?void 0:v.style),f)},m),s)))})),Av=Rv({tagName:"div",displayName:"Layout"})(Tv),_v=Rv({suffixCls:"header",tagName:"header",displayName:"Header"})(Mv),Bv=Rv({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Mv),Lv=Rv({suffixCls:"content",tagName:"main",displayName:"Content"})(Mv),Fv=Av;Fv.Header=_v,Fv.Footer=Bv,Fv.Content=Lv,Fv.Sider=em,Fv._InternalSiderContext=Qp;var zv={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"},Dv=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:zv}))},Hv=r.forwardRef(Dv);"production"!==process.env.NODE_ENV&&(Hv.displayName="CopyOutlined");var Vv={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"},Wv=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:Vv}))},qv=r.forwardRef(Wv);"production"!==process.env.NODE_ENV&&(qv.displayName="EditOutlined");var Xv={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"},Kv=function(e,t){return r.createElement(Xa,m({},e,{ref:t,icon:Xv}))},Gv=r.forwardRef(Kv);"production"!==process.env.NODE_ENV&&(Gv.displayName="EnterOutlined");var Uv=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Yv={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Zv=r.forwardRef(((e,t)=>{const{style:n,noStyle:o,disabled:i,tabIndex:a=0}=e,l=Uv(e,["style","noStyle","disabled","tabIndex"]);let c={};return o||(c=Object.assign({},Yv)),i&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),n),r.createElement("div",Object.assign({role:"button",tabIndex:a,ref:t},l,{onKeyDown:e=>{const{keyCode:t}=e;t===il.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:r}=e;n===il.ENTER&&r&&r()},style:c}))})),Qv=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},Jv=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},xi(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"}}})}},eh=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:lo[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}}),th=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 - ${wt(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"}}}},nh=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),rh=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"}},Qv(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{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}}}),eh(e)),Jv(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},xi(e)),{marginInlineStart:e.marginXXS})}),th(e)),nh(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",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"}}),{"&-rtl":{direction:"rtl"}})}};var oh=ki("Typography",(e=>[rh(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));const ih=e=>{const{prefixCls:t,"aria-label":n,className:o,style:i,direction:a,maxLength:l,autoSize:c=!0,value:s,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:g=r.createElement(Gv,null)}=e,v=r.useRef(null),h=r.useRef(!1),b=r.useRef(),[y,x]=r.useState(s);r.useEffect((()=>{x(s)}),[s]),r.useEffect((()=>{var e;if(null===(e=v.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=v.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{u(y.trim())},[C,E,S]=oh(t),$=p(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===a,[`${t}-${m}`]:!!m},o,E,S);return C(r.createElement("div",{className:$,style:i},r.createElement(Ov,{ref:v,maxLength:l,value:y,onChange:e=>{let{target:t}=e;x(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;h.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;b.current!==t||h.current||n||r||o||i||(t===il.ENTER?(w(),null==f||f()):t===il.ESC&&d())},onCompositionStart:()=>{h.current=!0},onCompositionEnd:()=>{h.current=!1},onBlur:()=>{w()},"aria-label":n,rows:1,autoSize:c}),null!==g?rl(g,{className:`${t}-edit-content-confirm`}):null))};var ah=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}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}},lh={"text/plain":"Text","text/html":"Url",default:"Text"};var ch=function(e,t){var n,r,o,i,a,l,c=!1;t||(t={}),n=t.debug||!1;try{if(o=ah(),i=document.createRange(),a=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=lh[t.format]||lh.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),i.selectNodeContents(l),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),l&&document.body.removeChild(l),o()}return c},sh=i(ch),uh=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))};function dh(e,t){return r.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}var fh=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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=r.forwardRef(((e,t)=>{const{prefixCls:n,component:o="article",className:i,rootClassName:a,setContentRef:l,children:c,direction:s,style:u}=e,d=fh(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,typography:g}=r.useContext(To),v=null!=s?s:m,h=l?L(t,l):t,b=f("typography",n);if("production"!==process.env.NODE_ENV){dr("Typography").deprecated(!l,"setContentRef","ref")}const[y,x,w]=oh(b),C=p(b,null==g?void 0:g.className,{[`${b}-rtl`]:"rtl"===v},i,a,x,w),E=Object.assign(Object.assign({},null==g?void 0:g.style),u);return y(r.createElement(o,Object.assign({className:C,style:E,ref:h},d),c))}));function mh(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function gh(e,t,n){return!0===e||void 0===e?t:e||n&&t}"production"!==process.env.NODE_ENV&&(ph.displayName="Typography");const vh=e=>["string","number"].includes(typeof e),hh=e=>{let{prefixCls:t,copied:n,locale:o,iconOnly:i,tooltips:a,icon:l,tabIndex:c,onCopy:s,loading:u}=e;const d=mh(a),f=mh(l),{copied:m,copy:g}=null!=o?o:{},v=n?m:g,h=gh(d[n?1:0],v),b="string"==typeof h?h:v;return r.createElement(Xd,{title:h},r.createElement(Zv,{className:p(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:s,"aria-label":b,tabIndex:c},n?gh(f[1],r.createElement(hd,null),!0):gh(f[0],u?r.createElement(cl,null):r.createElement(Hv,null),!0)))},bh=r.forwardRef(((e,t)=>{let{style:n,children:o}=e;const i=r.useRef(null);return r.useImperativeHandle(t,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),r.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},o)}));function yh(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],a=n+(vh(i)?String(i).length:1);if(a>t){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const xh=0,wh=4,Ch={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Eh(e){const{enableMeasure:t,width:n,text:o,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:s}=e,u=r.useMemo((()=>w(o)),[o]),d=r.useMemo((()=>(e=>e.reduce(((e,t)=>e+(vh(t)?String(t).length:1)),0))(u)),[o]),f=r.useMemo((()=>i(u,!1)),[o]),[p,m]=r.useState(null),g=r.useRef(null),v=r.useRef(null),h=r.useRef(null),b=r.useRef(null),y=r.useRef(null),[x,C]=r.useState(!1),[E,S]=r.useState(xh),[$,O]=r.useState(0),[k,N]=r.useState(null);kt((()=>{S(t&&n&&d?1:xh)}),[n,o,a,t,u]),kt((()=>{var e,t,n,r;if(1===E){S(2);const e=v.current&&getComputedStyle(v.current).whiteSpace;N(e)}else if(2===E){const o=!!(null===(e=h.current)||void 0===e?void 0:e.isExceed());S(o?3:wh),m(o?[0,d]:null),C(o);const i=(null===(t=h.current)||void 0===t?void 0:t.getHeight())||0,l=1===a?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0,c=(null===(r=y.current)||void 0===r?void 0:r.getHeight())||0,u=Math.max(i,l+c);O(u+1),s(o)}}),[E]);const j=p?Math.ceil((p[0]+p[1])/2):0;kt((()=>{var e;const[t,n]=p||[0,0];if(t!==n){const r=((null===(e=g.current)||void 0===e?void 0:e.getHeight())||0)>$;let o=j;n-t==1&&(o=r?t:n),m(r?[t,o]:[o,n])}}),[p,j]);const P=r.useMemo((()=>{if(!t)return i(u,!1);if(3!==E||!p||p[0]!==p[1]){const e=i(u,!1);return[wh,xh].includes(E)?e:r.createElement("span",{style:Object.assign(Object.assign({},Ch),{WebkitLineClamp:a})},e)}return i(l?u:yh(u,p[0]),x)}),[l,E,p,u].concat(Ie(c))),I={width:n,margin:0,padding:0,whiteSpace:"nowrap"===k?"normal":"inherit"};return r.createElement(r.Fragment,null,P,2===E&&r.createElement(r.Fragment,null,r.createElement(bh,{style:Object.assign(Object.assign(Object.assign({},I),Ch),{WebkitLineClamp:a}),ref:h},f),r.createElement(bh,{style:Object.assign(Object.assign(Object.assign({},I),Ch),{WebkitLineClamp:a-1}),ref:b},f),r.createElement(bh,{style:Object.assign(Object.assign(Object.assign({},I),Ch),{WebkitLineClamp:1}),ref:y},i([],!0))),3===E&&p&&p[0]!==p[1]&&r.createElement(bh,{style:Object.assign(Object.assign({},I),{top:400}),ref:g},i(yh(u,j),!0)),1===E&&r.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const Sh=e=>{let{enableEllipsis:t,isEllipsis:n,children:o,tooltipProps:i}=e;return(null==i?void 0:i.title)&&t?r.createElement(Xd,Object.assign({open:!!n&&void 0},i),o):o};"production"!==process.env.NODE_ENV&&(Sh.displayName="EllipsisTooltip");var $h=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Oh=r.forwardRef(((t,n)=>{var o;const{prefixCls:i,className:a,style:l,type:c,disabled:s,children:u,ellipsis:d,editable:f,copyable:m,component:g,title:v}=t,h=$h(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=r.useContext(To),[x]=((e,t)=>{const n=r.useContext(wr),o=r.useMemo((()=>{var t;const r=br[e],o=null!==(t=null==n?void 0:n[e])&&void 0!==t?t:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),o||{})}),[e,t,n]);return[o,r.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?br.locale:e}),[n])]})("Text"),C=r.useRef(null),E=r.useRef(null),S=b("typography",i),$=ke(h,["mark","code","delete","underline","strong","keyboard","italic"]),[O,k]=dh(f),[N,j]=Zo(!1,{value:k.editing}),{triggerType:P=["icon"]}=k,I=e=>{var t;e&&(null===(t=k.onStart)||void 0===t||t.call(k)),j(e)},R=(t=>{const n=e.useRef();return e.useEffect((()=>{n.current=t})),n.current})(N);kt((()=>{var e;!N&&R&&(null===(e=E.current)||void 0===e||e.focus())}),[N]);const M=e=>{null==e||e.preventDefault(),I(!0)},T=e=>{var t;null===(t=k.onChange)||void 0===t||t.call(k,e),I(!1)},A=()=>{var e;null===(e=k.onCancel)||void 0===e||e.call(k),I(!1)},[_,B]=dh(m),{copied:F,copyLoading:z,onClick:D}=(e=>{let{copyConfig:t,children:n}=e;const[o,i]=r.useState(!1),[a,l]=r.useState(!1),c=r.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},u={};return t.format&&(u.format=t.format),r.useEffect((()=>s),[]),{copied:o,copyLoading:a,onClick:Go((e=>uh(void 0,void 0,void 0,(function*(){var r;null==e||e.preventDefault(),null==e||e.stopPropagation(),l(!0);try{const o="function"==typeof t.text?yield t.text():t.text;sh(o||String(n)||"",u),l(!1),i(!0),s(),c.current=setTimeout((()=>{i(!1)}),3e3),null===(r=t.onCopy)||void 0===r||r.call(t,e)}catch(e){throw l(!1),e}}))))}})({copyConfig:B,children:u}),[H,V]=r.useState(!1),[W,q]=r.useState(!1),[X,K]=r.useState(!1),[G,U]=r.useState(!1),[Y,Z]=r.useState(!0),[Q,J]=dh(d,{expandable:!1,symbol:e=>e?null==x?void 0:x.collapse:null==x?void 0:x.expand}),[ee,te]=Zo(J.defaultExpanded||!1,{value:J.expanded}),ne=Q&&(!ee||"collapsible"===J.expandable),{rows:re=1}=J,oe=r.useMemo((()=>ne&&(void 0!==J.suffix||J.onEllipsis||J.expandable||O||_)),[ne,J,O,_]);kt((()=>{Q&&!oe&&(V(du("webkitLineClamp")),q(du("textOverflow")))}),[oe,Q]);const[ie,ae]=r.useState(ne),le=r.useMemo((()=>!oe&&(1===re?W:H)),[oe,W,H]);kt((()=>{ae(le&&ne)}),[le,ne]);const ce=ne&&(ie?G:X),se=ne&&1===re&&ie,ue=ne&&re>1&&ie,[de,fe]=r.useState(0),pe=e=>{var t;K(e),X!==e&&(null===(t=J.onEllipsis)||void 0===t||t.call(J,e))};r.useEffect((()=>{const e=C.current;if(Q&&ie&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t),"production"!==process.env.NODE_ENV&&(t.className="ant-typography-css-ellipsis-content-measure");const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}(e);G!==t&&U(t)}}),[Q,ie,u,ue,Y,de]),r.useEffect((()=>{const e=C.current;if("undefined"==typeof IntersectionObserver||!e||!ie||!ne)return;const t=new IntersectionObserver((()=>{Z(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[ie,ne]);const me=((t,n,r)=>e.useMemo((()=>!0===t?{title:null!=n?n:r}:e.isValidElement(t)?{title:t}:"object"==typeof t?Object.assign({title:null!=n?n:r},t):{title:t}),[t,n,r]))(J.tooltip,k.text,u),ge=r.useMemo((()=>{if(Q&&!ie)return[k.text,u,v,me.title].find(vh)}),[Q,ie,v,me.title,ce]);if(N)return r.createElement(ih,{value:null!==(o=k.text)&&void 0!==o?o:"string"==typeof u?u:"",onSave:T,onCancel:A,onEnd:k.onEnd,prefixCls:S,className:a,style:l,direction:y,component:g,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon});const ve=()=>{const{expandable:e,symbol:t}=J;return e?r.createElement(Zv,{key:"expand",className:`${S}-${ee?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;te(t.expanded),null===(n=J.onExpand)||void 0===n||n.call(J,e,t)})(e,{expanded:!ee}),"aria-label":ee?x.collapse:null==x?void 0:x.expand},"function"==typeof t?t(ee):t):null},he=()=>{if(!O)return;const{icon:e,tooltip:t,tabIndex:n}=k,o=w(t)[0]||(null==x?void 0:x.edit),i="string"==typeof o?o:"";return P.includes("icon")?r.createElement(Xd,{key:"edit",title:!1===t?"":o},r.createElement(Zv,{ref:E,className:`${S}-edit`,onClick:M,"aria-label":i,tabIndex:n},e||r.createElement(qv,{role:"button"}))):null},be=e=>[e&&ve(),he(),_?r.createElement(hh,Object.assign({key:"copy"},B,{prefixCls:S,copied:F,locale:x,onCopy:D,loading:z,iconOnly:null==u})):null];return r.createElement(Oe,{onResize:e=>{let{offsetWidth:t}=e;fe(t)},disabled:!ne},(e=>r.createElement(Sh,{tooltipProps:me,enableEllipsis:ne,isEllipsis:ce},r.createElement(ph,Object.assign({className:p({[`${S}-${c}`]:c,[`${S}-disabled`]:s,[`${S}-ellipsis`]:Q,[`${S}-ellipsis-single-line`]:se,[`${S}-ellipsis-multiple-line`]:ue},a),prefixCls:i,style:Object.assign(Object.assign({},l),{WebkitLineClamp:ue?re:void 0}),component:g,ref:L(e,C,n),direction:y,onClick:P.includes("text")?M:void 0,"aria-label":null==ge?void 0:ge.toString(),title:v},$),r.createElement(Eh,{enableMeasure:ne&&!ie,text:u,rows:re,width:de,onEllipsis:pe,expanded:ee,miscDeps:[F,ee,z,O,_]},((e,n)=>function(e,t){let{mark:n,code:o,underline:i,delete:a,strong:l,keyboard:c,italic:s}=e,u=t;function d(e,t){t&&(u=r.createElement(e,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",o),d("mark",n),d("kbd",c),d("i",s),u}(t,r.createElement(r.Fragment,null,e.length>0&&n&&!ee&&ge?r.createElement("span",{key:"show-content","aria-hidden":!0},e):e,(e=>[e&&!ee&&r.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),J.suffix,be(e)])(n)))))))))}));var kh=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Nh=r.forwardRef(((e,t)=>{var{ellipsis:n,rel:o}=e,i=kh(e,["ellipsis","rel"]);if("production"!==process.env.NODE_ENV){const e=dr("Typography.Link");"production"!==process.env.NODE_ENV&&e("object"!=typeof n,"usage","`ellipsis` only supports boolean value.")}const a=Object.assign(Object.assign({},i),{rel:void 0===o&&"_blank"===i.target?"noopener noreferrer":o});return delete a.navigate,r.createElement(Oh,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))})),jh=r.forwardRef(((e,t)=>r.createElement(Oh,Object.assign({ref:t},e,{component:"div"}))));var Ph=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Ih=(e,t)=>{var{ellipsis:n}=e,o=Ph(e,["ellipsis"]);const i=r.useMemo((()=>n&&"object"==typeof n?ke(n,["expandable","rows"]):n),[n]);if("production"!==process.env.NODE_ENV){const e=dr("Typography.Text");"production"!==process.env.NODE_ENV&&e("object"!=typeof n||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return r.createElement(Oh,Object.assign({ref:t},o,{ellipsis:i,component:"span"}))};var Rh=r.forwardRef(Ih),Mh=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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=[1,2,3,4,5],Ah=r.forwardRef(((e,t)=>{const{level:n=1}=e,o=Mh(e,["level"]);if("production"!==process.env.NODE_ENV){const e=dr("Typography.Title");"production"!==process.env.NODE_ENV&&e(Th.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const i=Th.includes(n)?`h${n}`:"h1";return r.createElement(Oh,Object.assign({ref:t},o,{component:i}))})),_h=ph;function Bh(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}_h.Text=Rh,_h.Link=Nh,_h.Title=Ah,_h.Paragraph=jh;Bh(".appInput {\n font-size: var(--font-14);\n font-weight: 500;\n color: #1e1f21;\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: 14px;\n text-align: left;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n &:hover {\n .ant-input {\n border-color: #d9d9d9;\n }\n }\n\n &:has(.ant-input-affix-wrapper) {\n .ant-input {\n border: none !important;\n height: unset !important;\n }\n }\n .ant-input-affix-wrapper {\n height: 40px;\n display: flex;\n align-items: center;\n .ant-input-outlined:focus-within {\n box-shadow: unset !important;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n }\n .ant-input-outlined {\n height: 40px;\n &:hover {\n border-color: #d9d9d9;\n }\n &:focus {\n box-shadow: unset;\n }\n &:focus-within {\n box-shadow: unset;\n border-color: #d9d9d9;\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");Bh(".appButton {\n width: max-content;\n\n .ant-btn {\n background-color: red;\n padding: 12px;\n &:hover {\n border-color: transparent !important;\n outline: unset !important;\n box-shadow: unset !important;\n }\n }\n}\n");Bh('.sideBar {\n height: 100vh;\n .sider {\n height: 100%;\n .ant-layout-sider-children {\n height: 100%;\n display: flex;\n flex-direction: column;\n row-gap: 2.875rem;\n .ant-menu {\n border: none;\n }\n }\n }\n}\n\n.logo {\n height: 64px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px;\n}\n\n.menu {\n border-right: 0;\n}\n\n.footer {\n position: relative;\n &::before {\n content: "";\n height: 1px;\n width: 80%;\n position: absolute;\n top: 0;\n right: 50%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #acacac;\n }\n}\n\n.tag {\n margin-left: 8px;\n}\n');var Lh=Fv.Sider;Bh(".appTextArea {\n .ant-input-outlined {\n border-color: #bfbebe;\n &:hover {\n border-color: #bfbebe;\n }\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");Bh(".appTab {\n .tab {\n .ant-tabs-nav {\n &::before {\n border: unset !important;\n }\n .ant-tabs-nav-wrap {\n .ant-tabs-nav-list {\n display: flex;\n gap: 3.5rem;\n align-items: center;\n .ant-tabs-tab {\n margin: 0;\n }\n .ant-tabs-ink-bar {\n display: none;\n }\n }\n }\n }\n }\n}\n");var Fh={searchIcon:d.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("circle",{cx:"11.7666",cy:"12.2666",r:"8.98856",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M18.0183 18.9851L21.5423 22.5",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),eyePassword:d.jsx("svg",{width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M23.0136 7.77219C22.9817 7.69906 22.2017 5.96938 20.4599 4.2275C18.8436 2.61313 16.0667 0.6875 11.9999 0.6875C7.93299 0.6875 5.15611 2.61313 3.53986 4.2275C1.79799 5.96938 1.01799 7.69625 0.986113 7.77219C0.954062 7.84419 0.9375 7.92212 0.9375 8.00094C0.9375 8.07975 0.954062 8.15768 0.986113 8.22969C1.01799 8.30187 1.79799 10.0316 3.53986 11.7734C5.15611 13.3878 7.93299 15.3125 11.9999 15.3125C16.0667 15.3125 18.8436 13.3878 20.4599 11.7734C22.2017 10.0316 22.9817 8.30469 23.0136 8.22969C23.0457 8.15768 23.0622 8.07975 23.0622 8.00094C23.0622 7.92212 23.0457 7.84419 23.0136 7.77219ZM11.9999 14.1875C9.05799 14.1875 6.48924 13.1169 4.36393 11.0066C3.473 10.1211 2.71908 9.10781 2.12705 8C2.71891 6.89237 3.47285 5.87932 4.36393 4.99438C6.48924 2.88313 9.05799 1.8125 11.9999 1.8125C14.9417 1.8125 17.5105 2.88313 19.6358 4.99438C20.5269 5.87932 21.2808 6.89237 21.8727 8C21.2755 9.14469 18.2811 14.1875 11.9999 14.1875ZM11.9999 3.6875C11.1469 3.6875 10.3132 3.94042 9.60397 4.41429C8.89478 4.88815 8.34204 5.56167 8.01563 6.34968C7.68923 7.13768 7.60383 8.00478 7.77023 8.84133C7.93663 9.67787 8.34735 10.4463 8.95047 11.0494C9.55358 11.6525 10.322 12.0632 11.1585 12.2296C11.9951 12.396 12.8622 12.3106 13.6502 11.9842C14.4382 11.6578 15.1117 11.1051 15.5856 10.3959C16.0594 9.68671 16.3124 8.85293 16.3124 8C16.3109 6.85671 15.856 5.76067 15.0476 4.95225C14.2392 4.14382 13.1432 3.68899 11.9999 3.6875ZM11.9999 11.1875C11.3694 11.1875 10.7532 11.0006 10.229 10.6503C9.7048 10.3001 9.29625 9.80224 9.055 9.2198C8.81374 8.63736 8.75062 7.99646 8.87361 7.37815C8.9966 6.75984 9.30018 6.19188 9.74596 5.7461C10.1917 5.30032 10.7597 4.99674 11.378 4.87375C11.9963 4.75076 12.6372 4.81388 13.2197 5.05513C13.8021 5.29639 14.2999 5.70494 14.6502 6.22912C15.0004 6.7533 15.1874 7.36957 15.1874 8C15.1874 8.84538 14.8515 9.65613 14.2538 10.2539C13.656 10.8517 12.8452 11.1875 11.9999 11.1875Z",fill:"black"})}),uploadIcon:d.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.33325 3.99998C2.33325 2.80336 3.3033 1.83331 4.49992 1.83331H9.83325C10.1094 1.83331 10.3333 1.60945 10.3333 1.33331C10.3333 1.05717 10.1094 0.833313 9.83325 0.833313H4.49992C2.75102 0.833313 1.33325 2.25108 1.33325 3.99998V12C1.33325 13.7489 2.75102 15.1666 4.49992 15.1666H12.4999C14.2488 15.1666 15.6666 13.7489 15.6666 12V6.66665C15.6666 6.3905 15.4427 6.16665 15.1666 6.16665C14.8904 6.16665 14.6666 6.3905 14.6666 6.66665V9.00604C14.6365 8.98198 14.6052 8.95911 14.5728 8.93751L12.9856 7.87931C11.9279 7.17418 10.5196 7.31364 9.62072 8.21251L7.37912 10.4541C6.48025 11.353 5.07193 11.4924 4.01427 10.7873L2.33325 9.66664V3.99998ZM13.1666 5.83331C13.4427 5.83331 13.6666 5.60945 13.6666 5.33331V2.54042L14.1464 3.0202C14.3416 3.21546 14.6582 3.21546 14.8534 3.0202C15.0487 2.82494 15.0487 2.50835 14.8534 2.31309L13.9915 1.45117C13.5359 0.995553 12.7972 0.995553 12.3416 1.45117L11.4797 2.31309C11.2844 2.50835 11.2844 2.82494 11.4797 3.0202C11.675 3.21546 11.9915 3.21546 12.1868 3.0202L12.6666 2.54042V5.33331C12.6666 5.60945 12.8904 5.83331 13.1666 5.83331ZM6.16658 7.33331C7.08706 7.33331 7.83325 6.58712 7.83325 5.66665C7.83325 4.74617 7.08706 3.99998 6.16658 3.99998C5.24611 3.99998 4.49992 4.74617 4.49992 5.66665C4.49992 6.58712 5.24611 7.33331 6.16658 7.33331Z",fill:"#FAFAFA"})}),backArrow:d.jsxs("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M1.25 7.27429L16.25 7.27429",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M7.2998 13.2987L1.2498 7.27469L7.2998 1.24969",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),badge:d.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66025 0L17.3205 5V15L8.66025 20L0 15V5L8.66025 0Z",fill:"#FBBA07"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.40147 12.3416L5.51352 12.5685C5.61142 12.7668 5.84666 12.9243 6.06777 12.9389L6.60913 12.9746C6.68987 12.9799 6.8315 13.0385 6.89252 13.092L7.30057 13.4495C7.4669 13.5953 7.74449 13.6507 7.95435 13.5796L8.30207 13.4617L7.07889 16.209L6.04906 14.7045L4.24194 14.9459L5.40147 12.3416ZM8.94099 13.4617L9.28871 13.5796C9.49816 13.6506 9.77583 13.5955 9.94249 13.4495L10.3505 13.092C10.4114 13.0386 10.553 12.9799 10.6339 12.9746L11.1753 12.9389C11.396 12.9243 11.6314 12.7672 11.7295 12.5685L11.8416 12.3416L13.0011 14.9459L11.194 14.7045L10.1642 16.209L8.94099 13.4617Z",fill:"white"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36671 13.3491L8.85289 13.1749C8.72505 13.1315 8.51688 13.1318 8.38992 13.1749L7.87611 13.3491C7.74827 13.3924 7.56161 13.3548 7.46079 13.2664L7.05275 12.9089C6.95122 12.8199 6.75878 12.7405 6.62502 12.7317L6.08366 12.696C5.94897 12.6871 5.79091 12.581 5.73158 12.4608L5.49142 11.9743C5.43166 11.8532 5.28425 11.7062 5.16405 11.6469L4.67757 11.4067C4.55652 11.347 4.45113 11.1884 4.44231 11.0547L4.4066 10.5133C4.39772 10.3786 4.31777 10.1864 4.22943 10.0856L3.87188 9.67753C3.78292 9.576 3.74624 9.38916 3.78927 9.26221L3.96345 8.7484C4.00679 8.62055 4.00648 8.41238 3.96345 8.28543L3.78927 7.77162C3.74593 7.64377 3.78354 7.45712 3.87188 7.3563L4.22943 6.94825C4.31839 6.84673 4.39778 6.65429 4.4066 6.52053L4.44231 5.97917C4.45119 5.84447 4.55737 5.68642 4.67757 5.62708L5.16405 5.38693C5.2851 5.32717 5.43208 5.17976 5.49142 5.05956L5.73158 4.57307C5.79133 4.45203 5.94991 4.34664 6.08366 4.33782L6.62502 4.30211C6.75972 4.29322 6.95193 4.21328 7.05275 4.12494L7.46079 3.76739C7.56232 3.67843 7.74916 3.64174 7.87611 3.68478L8.38992 3.85896C8.51777 3.9023 8.72594 3.90199 8.85289 3.85896L9.36671 3.68478C9.49455 3.64144 9.6812 3.67905 9.78202 3.76739L10.1901 4.12494C10.2916 4.2139 10.484 4.29329 10.6178 4.30211L11.1592 4.33782C11.2938 4.3467 11.4519 4.45288 11.5112 4.57307L11.7514 5.05956C11.8112 5.1806 11.9586 5.32759 12.0788 5.38693L12.5652 5.62708C12.6863 5.68684 12.7917 5.84542 12.8005 5.97917L12.8362 6.52053C12.8451 6.65523 12.925 6.84744 13.0134 6.94825L13.3709 7.3563C13.4599 7.45783 13.4966 7.64467 13.4535 7.77162L13.2794 8.28543C13.236 8.41328 13.2363 8.62145 13.2794 8.7484L13.4535 9.26221C13.4969 9.39006 13.4593 9.57671 13.3709 9.67753L13.0134 10.0856C12.9244 10.1871 12.845 10.3795 12.8362 10.5133L12.8005 11.0547C12.7916 11.1894 12.6854 11.3474 12.5652 11.4067L12.0788 11.6469C11.9577 11.7067 11.8107 11.8541 11.7514 11.9743L11.5112 12.4608C11.4515 12.5818 11.2929 12.6872 11.1592 12.696L10.6178 12.7317C10.4831 12.7406 10.2909 12.8206 10.1901 12.9089L9.78202 13.2664C9.68049 13.3554 9.49366 13.3921 9.36671 13.3491ZM8.62141 12.1666C10.6371 12.1666 12.2711 10.5326 12.2711 8.51692C12.2711 6.50127 10.6371 4.86726 8.62141 4.86726C6.60576 4.86726 4.97175 6.50127 4.97175 8.51692C4.97175 10.5326 6.60576 12.1666 8.62141 12.1666Z",fill:"white"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.62144 9.96838L7.25525 10.6877C7.14583 10.7454 7.07412 10.6934 7.09512 10.5714L7.35711 9.04978L6.25077 7.97275C6.16216 7.88649 6.18942 7.80223 6.31193 7.78451L7.84004 7.56346L8.52248 6.17845C8.57714 6.06753 8.66569 6.06741 8.72041 6.17845L9.40285 7.56346L10.931 7.78451C11.0533 7.80221 11.0808 7.8864 10.9921 7.97275L9.88578 9.04978L10.1478 10.5714C10.1687 10.6933 10.0972 10.7454 9.98764 10.6877L8.62144 9.96838Z",fill:"white"})]}),message_icon:d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M11.2 -0.00219727H4.8C2.15333 -0.00219727 0 2.15114 0 4.7978V8.53114C0 11.0885 2.01013 13.185 4.53333 13.3239V15.549C4.53333 15.7989 4.73707 16.0021 4.98747 16.0021C5.1072 16.0021 5.22053 15.9546 5.30613 15.869L5.8064 15.3687C7.12 14.0549 8.86693 13.3311 10.7251 13.3311H11.2C13.8467 13.3311 16 11.1778 16 8.53114V4.7978C16 2.15114 13.8467 -0.00219727 11.2 -0.00219727ZM4.53333 7.73114C3.94507 7.73114 3.46667 7.25274 3.46667 6.66447C3.46667 6.0762 3.94507 5.5978 4.53333 5.5978C5.1216 5.5978 5.6 6.0762 5.6 6.66447C5.6 7.25274 5.12133 7.73114 4.53333 7.73114ZM8 7.73114C7.41173 7.73114 6.93333 7.25274 6.93333 6.66447C6.93333 6.0762 7.41173 5.5978 8 5.5978C8.58827 5.5978 9.06667 6.0762 9.06667 6.66447C9.06667 7.25274 8.588 7.73114 8 7.73114ZM11.4667 7.73114C10.8784 7.73114 10.4 7.25274 10.4 6.66447C10.4 6.0762 10.8784 5.5978 11.4667 5.5978C12.0549 5.5978 12.5333 6.0762 12.5333 6.66447C12.5333 7.25274 12.0547 7.73114 11.4667 7.73114Z",fill:"white"})})};Bh(".backArrow {\n display: flex;\n align-items: center;\n cursor: pointer;\n font-size: 1rem;\n & > span {\n display: flex;\n }\n\n .icon {\n margin-right: 0.5rem;\n }\n\n .text {\n font-weight: 500;\n }\n}\n");var zh=function(){return zh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zh.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;Bh(".appBadge {\n .ribbonWrapper {\n .ant-ribbon-wrapper {\n position: relative;\n .ant-ribbon {\n position: absolute;\n top: 0;\n }\n }\n }\n}\n");Bh(".overViewCard {\n border-radius: 12px;\n padding: 0.5rem 1rem;\n background-color: #f9f9f9;\n width: max-content;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0.5rem;\n .text {\n font-size: 14px;\n font-weight: 700;\n line-height: 18.2px;\n text-align: left;\n }\n}\n");var Dh=_h.Text;exports.AppBackArrow=function(e){var t=e.text,n=void 0===t?"Back":t,r=e.href,o=e.className,i=e.backIcon;return d.jsxs("div",{className:"backArrow ".concat(o),onClick:function(){window.location.href=r},children:[d.jsx("span",{className:"icon",children:i||Fh.backArrow}),n&&d.jsx("span",{className:"text",children:n})]})},exports.AppBadge=function(e){var t=e.content,n=e.children,r=e.className,o=e.ribbon,i=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}(e,["content","children","className","ribbon"]);return d.jsx("div",{className:"appBadge ".concat(r),children:d.jsx(ff,zh({count:t},i,{children:o?d.jsx("div",{className:"ribbonWrapper",children:d.jsx(ff.Ribbon,{text:o.text,color:o.color,placement:o.placement,children:n})}):n}))})},exports.AppButton=function(e){var t=e.type,n=e.size,r=e.className,o=e.handleClick,i=e.icon,a=e.text,l=e.disabled,c=e.iconPosition,s=e.isLoading;return d.jsx("div",{className:"appButton ".concat(r),children:d.jsx(Dc,{disabled:l,type:t,className:["customBtn",i?"btn-icon":"","right"===c?"iconRight":""].join(" "),size:n,onClick:o,icon:i,loading:s,children:a})})},exports.AppInput=function(t){var n=t.className,r=t.label,o=t.name,i=t.value,a=t.dataTestId,l=t.type,c=t.id,s=t.disabled,u=t.handleChange,f=t.onClick,p=t.defaultValue,m=t.onPressEnter,g=t.isAutoFocus,v=t.triggerFocus,h=t.isOptional,b=t.errorMessage,y=t.suffixIcon,x=t.prefixIcon,w=e.useRef(null);e.useEffect((function(){g&&w.current&&w.current.focus()}),[v,g]);var C=h?"".concat(r," (optional)"):r;return d.jsxs("div",{className:"appInput ".concat(n),children:[d.jsx(kv,{type:l,"data-test-id":a,id:c,disabled:s,name:o,className:"input",value:i,onChange:u,onClick:f,defaultValue:p,onPressEnter:m,placeholder:C,ref:w,prefix:x&&x,suffix:y&&y}),b&&d.jsx("div",{className:"error",children:b})]})},exports.AppSidebar=function(e){var t=e.links,n=e.logo,r=e.footerLinks,o=e.className,i=function(e){window.location.href=e},a=t.map((function(e){return{key:e.path,icon:e.icon,label:d.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&d.jsx("span",{className:"tag",children:e.tag})]})}})),l=null==r?void 0:r.map((function(e){return{key:e.path,label:d.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return d.jsx("div",{className:"sideBar ".concat(o),children:d.jsxs(Lh,{className:"sider",children:[d.jsx("div",{className:"logo",children:n}),d.jsx(Sm,{mode:"inline",className:"menu",items:a}),r&&d.jsx("div",{className:"footer",children:d.jsx(Sm,{mode:"inline",items:l})})]})})},exports.AppTab=function(e){var t=e.className,n=e.items,r=e.handleChange,o=e.defaultActiveKey;return d.jsx("div",{className:"appTab ".concat(t),children:d.jsx(zg,{defaultActiveKey:o,items:n,onChange:r,className:"tab"})})},exports.AppTextarea=function(e){var t=e.id,n=e.placeholder,r=e.name,o=e.value,i=e.dataTestId,a=e.defaultValue,l=e.onPressEnter,c=e.handleChange,s=e.rows,u=e.cols,f=e.className,p=e.error;return d.jsxs("div",{className:"appTextArea ".concat(f),children:[d.jsx(kv.TextArea,{"data-test-id":i,id:t,name:r,placeholder:n,value:o,className:"textArea",onChange:c,defaultValue:a,onPressEnter:l,rows:s,cols:u}),p&&d.jsx("div",{className:"error",children:p})]})},exports.OverViewCard=function(e){var t=e.className,n=e.text,r=e.number;return d.jsxs("div",{className:"overViewCard ".concat(t),children:[d.jsx(Dh,{children:n}),d.jsx("span",{children:r})]})};
26
26
  //# sourceMappingURL=index.js.map