react-frontend-common-components 0.0.2 → 0.0.4
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.d.ts +127 -2
- package/dist/index.js +52 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -2
- package/src/index.ts +15 -0
package/dist/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import*as e from"react";import t,{version as n,isValidElement as
|
1
|
+
import*as e from"react";import t,{version as n,isValidElement as o,useContext as r,createContext as i,useRef as a,useLayoutEffect as s,useEffect as l,forwardRef as c,useMemo as u,useState as d,Children as p,createRef as h,useCallback as f,useImperativeHandle as g,cloneElement as m,memo as v,PureComponent as b}from"react";import*as y from"react-dom";import x,{createPortal as w,unstable_batchedUpdates as C,flushSync as E}from"react-dom";function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k,O={exports:{}},$={};var M,_={};
|
2
2
|
/**
|
3
3
|
* @license React
|
4
4
|
* react-jsx-runtime.development.js
|
@@ -7,13 +7,13 @@ import*as e from"react";import t,{version as n,isValidElement as r,useContext as
|
|
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?S.exports=function(){if(E)return $;E=1;var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var l,c={},s=null,u=null;for(l in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,l)&&!a.hasOwnProperty(l)&&(c[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===c[l]&&(c[l]=t[l]);return{$$typeof:n,type:e,key:s,ref:u,props:c,_owner:i.current}}return $.Fragment=r,$.jsx=l,$.jsxs=l,$}():S.exports=(O||(O=1,"production"!==process.env.NODE_ENV&&function(){var e=t,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"),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"),g=Symbol.iterator,v="@@iterator",h=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(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=h.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 y,x=!1,w=!1,C=!1,E=!1,S=!1;function $(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&b("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 u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return $(e)+".Consumer";case l:return $(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 f:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case p:var n=e,m=n._payload,g=n._init;try{return O(g(m))}catch(e){return null}}return null}y=Symbol.for("react.module.reference");var N,j,P,I,M,R,T,_=Object.assign,A=0;function B(){}B.__reactDisabledLog=!0;var L,F=h.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===A){N=console.log,j=console.info,P=console.warn,I=console.error,M=console.group,R=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})}A++}();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==--A){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},e,{value:N}),info:_({},e,{value:j}),warn:_({},e,{value:P}),error:_({},e,{value:I}),group:_({},e,{value:M}),groupCollapsed:_({},e,{value:R}),groupEnd:_({},e,{value:T})})}A<0&&b("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 u:return z("Suspense");case d:return z("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return W(e.render,!1);case f:return q(e.type,t,n);case p: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=h.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 b("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=h.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]||(b('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,b("%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,b("%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=h.ReactCurrentOwner,se=h.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),b('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=g&&e[g]||e[v];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!==f)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),b("%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),b("Failed %s type: %s",n,l.message),U(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||le||(le=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var he={};function be(e,t,r,g,v,h){var $=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||S||e===i||e===u||e===d||E||e===m||x||w||C)||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===s||e.$$typeof===y||void 0!==e.getModuleId)}(e);if(!$){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":Z(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,b("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 j=ae(e,t,r,v,h);if(null==j)return j;if($){var P=t.children;if(void 0!==P)if(g)if(Z(P)){for(var I=0;I<P.length;I++)ge(P[I],e);Object.freeze&&Object.freeze(P)}else b("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 M=O(e),R=Object.keys(t).filter((function(e){return"key"!==e})),T=R.length>0?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}";he[M+T]||(b('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,M,R.length>0?"{"+R.join(": ..., ")+": ...}":"{}",M),he[M+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),b("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),b("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)};k.Fragment=o,k.jsx=ye,k.jsxs=xe}()),k);var N=S.exports,j={exports:{}};
|
10
|
+
*/"production"===process.env.NODE_ENV?O.exports=function(){if(k)return $;k=1;var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,o){var s,l={},c=null,u=null;for(s in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return $.Fragment=o,$.jsx=s,$.jsxs=s,$}():O.exports=(M||(M=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator",v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];!function(e,t,n){var o=v.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",n=n.concat([o]));var r=n.map((function(e){return String(e)}));r.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,r)}("error",e,n)}var y,x=!1,w=!1,C=!1,E=!1,S=!1;function k(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&b("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 r:return"Fragment";case o:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return k(e)+".Consumer";case s:return k(e._context)+".Provider";case c:return function(e,t,n){var o=e.displayName;if(o)return o;var r=t.displayName||t.name||"";return""!==r?n+"("+r+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case h:var n=e,f=n._payload,g=n._init;try{return O(g(f))}catch(e){return null}}return null}y=Symbol.for("react.module.reference");var $,M,P,N,L,I,j,R=Object.assign,T=0;function D(){}D.__reactDisabledLog=!0;var z,A=v.ReactCurrentDispatcher;function B(e,t,n){if(void 0===z)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);z=o&&o[1]||""}return"\n"+z+e}var H,F=!1,V="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||F)return"";var n,o=H.get(e);if(void 0!==o)return o;F=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=A.current,A.current=null,function(){if(0===T){$=console.log,M=console.info,P=console.warn,N=console.error,L=console.group,I=console.groupCollapsed,j=console.groupEnd;var e={configurable:!0,enumerable:!0,value:D,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 s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&H.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{F=!1,A.current=r,function(){if(0==--T){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:$}),info:R({},e,{value:M}),warn:R({},e,{value:P}),error:R({},e,{value:N}),group:R({},e,{value:L}),groupCollapsed:R({},e,{value:I}),groupEnd:R({},e,{value:j})})}T<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",h=p?B(p):"";return"function"==typeof e&&H.set(e,h),h}function U(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,!(!(o=e.prototype)||!o.isReactComponent));var o;if("string"==typeof e)return B(e);switch(e){case u:return B("Suspense");case d:return B("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return W(e.render,!1);case p:return U(e.type,t,n);case h:var r=e,i=r._payload,a=r._init;try{return U(a(i),t,n)}catch(e){}}return""}H=new V;var X=Object.prototype.hasOwnProperty,q={},G=v.ReactDebugCurrentFrame;function K(e){if(e){var t=e._owner,n=U(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 b("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,oe=v.ReactCurrentOwner,re={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,o,r,i,a,s){var l={$$typeof:n,type:e,key:t,ref:o,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ae(e,t,n,o,r){var i,a={},s=null,l=null;for(i in void 0!==n&&(J(n),s=""+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),s=""+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)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&oe.current&&t&&oe.current.stateNode!==t){var n=O(oe.current.type);ne[n]||(b('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(oe.current.type),e.ref),ne[n]=!0)}}(t,r)),t)X.call(t,i)&&!re.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var c=e.defaultProps;for(i in c)void 0===a[i]&&(a[i]=c[i])}if(s||l){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){ee||(ee=!0,b("%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),l&&function(e,t){var n=function(){te||(te=!0,b("%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,s,l,r,o,oe.current,a)}var se,le=v.ReactCurrentOwner,ce=v.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);ce.setExtraStackFrame(n)}else ce.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function pe(){if(le.current){var e=O(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}se=!1;var he={};function fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=pe();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(!he[n]){he[n]=!0;var o="";e&&e._owner&&e._owner!==le.current&&(o=" It was passed a child from "+O(e._owner.type)+"."),ue(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),ue(null)}}}function ge(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var o=e[n];de(o)&&fe(o,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var r=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof r&&r!==e.entries)for(var i,a=r.call(e);!(i=a.next()).done;)de(i.value)&&fe(i.value,t)}}function me(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!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var o=O(n);!function(e,t,n,o,r){var i=Function.call.bind(X);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((o||"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 l.name="Invariant Violation",l}s=e[a](t,a,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(K(r),b("%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).",o||"React class",n,a,typeof s),K(null)),s instanceof Error&&!(s.message in q)&&(q[s.message]=!0,K(r),b("Failed %s type: %s",n,s.message),K(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||se||(se=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ve={};function be(e,t,o,g,m,v){var k=function(e){return"string"==typeof e||"function"==typeof e||!!(e===r||e===a||S||e===i||e===u||e===d||E||e===f||x||w||C)||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===y||void 0!==e.getModuleId)}(e);if(!k){var $,M="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),M+=pe(),null===e?$="null":Z(e)?$="array":void 0!==e&&e.$$typeof===n?($="<"+(O(e.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):$=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,M)}var _=ae(e,t,o,m,v);if(null==_)return _;if(k){var P=t.children;if(void 0!==P)if(g)if(Z(P)){for(var N=0;N<P.length;N++)ge(P[N],e);Object.freeze&&Object.freeze(P)}else b("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 L=O(e),I=Object.keys(t).filter((function(e){return"key"!==e})),j=I.length>0?"{key: someKey, "+I.join(": ..., ")+": ...}":"{key: someKey}";ve[L+j]||(b('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} />',j,L,I.length>0?"{"+I.join(": ..., ")+": ...}":"{}",L),ve[L+j]=!0)}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if("children"!==o&&"key"!==o){ue(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),ue(null);break}}null!==e.ref&&(ue(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(_):me(_),_}var ye=function(e,t,n){return be(e,t,n,!1)},xe=function(e,t,n){return be(e,t,n,!0)};_.Fragment=r,_.jsx=ye,_.jsxs=xe}()),_);var P=O.exports,N={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=
|
16
|
+
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,o(n)))}return e}function o(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 o="";for(var i in e)t.call(e,i)&&e[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(N);var L=S(N.exports);function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},I.apply(null,arguments)}var j,R={exports:{}},T={};var D,z={};
|
17
17
|
/**
|
18
18
|
* @license React
|
19
19
|
* react-is.development.js
|
@@ -22,5 +22,53 @@ import*as e from"react";import t,{version as n,isValidElement as r,useContext as
|
|
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?R.exports=function(){if(M)return T;M=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"),T.ContextConsumer=l,T.ContextProvider=a,T.Element=t,T.ForwardRef=s,T.Fragment=r,T.Lazy=p,T.Memo=f,T.Portal=n,T.Profiler=i,T.StrictMode=o,T.Suspense=u,T.SuspenseList=d,T.isAsyncMode=function(){return!1},T.isConcurrentMode=function(){return!1},T.isContextConsumer=function(e){return g(e)===l},T.isContextProvider=function(e){return g(e)===a},T.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},T.isForwardRef=function(e){return g(e)===s},T.isFragment=function(e){return g(e)===r},T.isLazy=function(e){return g(e)===p},T.isMemo=function(e){return g(e)===f},T.isPortal=function(e){return g(e)===n},T.isProfiler=function(e){return g(e)===i},T.isStrictMode=function(e){return g(e)===o},T.isSuspense=function(e){return g(e)===u},T.isSuspenseList=function(e){return g(e)===d},T.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)},T.typeOf=g,T}():R.exports=(_||(_=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,y=s,x=r,w=p,C=f,E=n,S=i,$=o,O=u,k=d,N=!1,j=!1;A.ContextConsumer=v,A.ContextProvider=h,A.Element=b,A.ForwardRef=y,A.Fragment=x,A.Lazy=w,A.Memo=C,A.Portal=E,A.Profiler=S,A.StrictMode=$,A.Suspense=O,A.SuspenseList=k,A.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},A.isConcurrentMode=function(e){return j||(j=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},A.isContextConsumer=function(e){return g(e)===l},A.isContextProvider=function(e){return g(e)===a},A.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},A.isForwardRef=function(e){return g(e)===s},A.isFragment=function(e){return g(e)===r},A.isLazy=function(e){return g(e)===p},A.isMemo=function(e){return g(e)===f},A.isPortal=function(e){return g(e)===n},A.isProfiler=function(e){return g(e)===i},A.isStrictMode=function(e){return g(e)===o},A.isSuspense=function(e){return g(e)===u},A.isSuspenseList=function(e){return g(e)===d},A.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)},A.typeOf=g}()),A);var B=R.exports;function L(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(L(e)):B.isFragment(e)&&e.props?r=r.concat(L(e.props.children,n)):r.push(e))})),r}var F={},z=[];function D(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=z.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function H(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=z.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function V(){F={}}function W(e,t,n){t||F[n]||(e(!1,n),F[n]=!0)}function q(e,t){W(D,e,t)}function X(e){return X="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},X(e)}function K(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=X(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:t+""}function G(e,t,n){return(t=K(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(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 Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e){return e instanceof HTMLElement||e instanceof SVGElement}function Q(e){var n,r=function(e){return e&&"object"===X(e)&&Z(e.nativeElement)?e.nativeElement:Z(e)?e:null}(e);return r||(e instanceof t.Component?null===(n=b.findDOMNode)||void 0===n?void 0:n.call(b,e):null)}function J(t,n,r){var o=e.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=t(),o.current.condition=n),o.current.value}q.preMessage=function(e){z.push(e)},q.resetWarned=V,q.noteOnce=function(e,t){W(H,e,t)};var ee=function(e,t){"function"==typeof e?e(t):"object"===X(e)&&e&&"current"in e&&(e.current=t)},te=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){ee(t,e)}))}},ne=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return J((function(){return te.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},re=function(e){var t,n,r=B.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===B.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===B.ForwardRef)};Number(n.split(".")[0]);var oe=e.createContext(null);var ie=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}()}(),ae="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,le="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),ce="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(le):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var se=["top","right","bottom","left","width","height","size","weight"],ue="undefined"!=typeof MutationObserver,de=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(){ce(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(){ae&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ue?(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(){ae&&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;se.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}(),fe=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},pe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||le},me=xe(0,0,0,0);function ge(e){return parseFloat(e)||0}function ve(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ge(e["border-"+n+"-width"])}),0)}function he(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return me;var r=pe(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]=ge(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=ge(r.width),c=ge(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=ve(r,"left","right")+i),Math.round(c+a)!==n&&(c-=ve(r,"top","bottom")+a)),!function(e){return e===pe(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 xe(o.left,o.top,l,c)}var be="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof pe(e).SVGGraphicsElement}:function(e){return e instanceof pe(e).SVGElement&&"function"==typeof e.getBBox};function ye(e){return ae?be(e)?function(e){var t=e.getBBox();return xe(0,0,t.width,t.height)}(e):he(e):me}function xe(e,t,n,r){return{x:e,y:t,width:n,height:r}}var we=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xe(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ye(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}(),Ce=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),fe(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);fe(this,{target:e,contentRect:s})},Ee=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ie,"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 pe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new we(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 pe(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 Ce(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}(),Se="undefined"!=typeof WeakMap?new WeakMap:new ie,$e=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=de.getInstance(),r=new Ee(t,n,this);Se.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){$e.prototype[e]=function(){var t;return(t=Se.get(this))[e].apply(t,arguments)}}));var Oe=void 0!==le.ResizeObserver?le.ResizeObserver:$e,ke=new Map;function Ne(e){e.forEach((function(e){var t,n=e.target;null===(t=ke.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var je=new Oe(Ne);function Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(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,K(r.key),r)}}function Me(e,t,n){return t&&Ie(e.prototype,t),n&&Ie(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Re(e,t){return Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Re(e,t)}function Te(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&&Re(e,t)}function _e(e){return _e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_e(e)}function Ae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ae=function(){return!!e})()}function Be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Le(e){var t=Ae();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Be(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Fe=function(){Te(n,e.Component);var t=Le(n);function n(){return Pe(this,n),t.apply(this,arguments)}return Me(n,[{key:"render",value:function(){return this.props.children}}]),n}();function ze(t,n){var r=t.children,o=t.disabled,i=e.useRef(null),a=e.useRef(null),l=e.useContext(oe),c="function"==typeof r,s=c?r(i):r,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&e.isValidElement(s)&&re(s),f=d?s.ref:null,p=ne(f,i),m=function(){var e;return Q(i.current)||(i.current&&"object"===X(i.current)?Q(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Q(a.current)};e.useImperativeHandle(n,(function(){return m()}));var g=e.useRef(t);g.current=t;var v=e.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=Y(Y({},p),{},{offsetWidth:m,offsetHeight:v});null==l||l(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return e.useEffect((function(){var e,t,n=m();return n&&!o&&(e=n,t=v,ke.has(e)||(ke.set(e,new Set),je.observe(e)),ke.get(e).add(t)),function(){return function(e,t){ke.has(e)&&(ke.get(e).delete(t),ke.get(e).size||(je.unobserve(e),ke.delete(e)))}(n,v)}}),[i.current,o]),e.createElement(Fe,{ref:a},d?e.cloneElement(s,{ref:p}):s)}var De=e.forwardRef(ze);"production"!==process.env.NODE_ENV&&(De.displayName="SingleObserver");function He(t,n){var r=t.children,o="function"==typeof r?[r]:L(r);return"production"!==process.env.NODE_ENV&&(o.length>1?D(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&D(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((function(r,o){var i=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return e.createElement(De,I({},t,{key:i,ref:0===o?n:void 0}),r)}))}var Ve=e.forwardRef(He);function We(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function qe(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 Xe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ke(e,t){if(e){if("string"==typeof e)return qe(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)?qe(e,t):void 0}}function Ge(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||Xe(e)||Ke(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&&(Ve.displayName="ResizeObserver"),Ve.Collection=function(t){var n=t.children,r=t.onBatchResize,o=e.useRef(0),i=e.useRef([]),a=e.useContext(oe),l=e.useCallback((function(e,t,n){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){l===o.current&&(null==r||r(i.current),i.current=[])})),null==a||a(e,t,n)}),[r,a]);return e.createElement(oe.Provider,{value:l},n)};var Ue=function(e){return+setTimeout(e,16)},Ye=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ue=function(e){return window.requestAnimationFrame(e)},Ye=function(e){return window.cancelAnimationFrame(e)});var Ze=0,Qe=new Map;function Je(e){Qe.delete(e)}var et=function(e){var t=Ze+=1;return function n(r){if(0===r)Je(t),e();else{var o=Ue((function(){n(r-1)}));Qe.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function tt(e){if(Array.isArray(e))return e}function nt(){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 rt(e,t){return tt(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)||Ke(e,t)||nt()}function ot(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 it(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}et.cancel=function(e){var t=Qe.get(e);return Je(e),Ye(t)},"production"!==process.env.NODE_ENV&&(et.ids=function(){return Qe});var at="data-rc-order",lt="data-rc-priority",ct="rc-util-key",st=new Map;function ut(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):ct}function dt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ft(e){return Array.from((st.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!it())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(at,a),l&&i&&c.setAttribute(lt,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=dt(t),u=s.firstChild;if(r){if(l){var d=(t.styles||ft(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(at)))return!1;var t=Number(e.getAttribute(lt)||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 mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=dt(t);return(t.styles||ft(n)).find((function(n){return n.getAttribute(ut(t))===e}))}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=mt(e,t);n&&dt(t).removeChild(n)}function vt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=dt(n),o=ft(r),i=Y(Y({},n),{},{styles:o});!function(e,t){var n=st.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=pt("",t),o=r.parentNode;st.set(e,o),e.removeChild(r)}}(r,i);var a=mt(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=pt(e,i);return u.setAttribute(ut(i),t),u}function ht(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 bt(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(q(!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"===X(t)&&"object"===X(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 yt="%";function xt(e){return e.join(yt)}var wt=function(){function e(t){Pe(this,e),G(this,"instanceId",void 0),G(this,"cache",new Map),this.instanceId=t}return Me(e,[{key:"get",value:function(e){return this.opGet(xt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(xt(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}(),Ct="data-token-hash",Et="data-css-hash",St="data-cache-path",$t="__cssinjs_instance__";var Ot=e.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(Et,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[$t]=t[$t]||e,t[$t]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Et,"]"))).forEach((function(t){var n,o=t.getAttribute(Et);r[o]?t[$t]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new wt(e)}(),defaultCache:!0});var kt=function(){function e(){Pe(this,e),G(this,"cache",void 0),G(this,"keys",void 0),G(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Me(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=rt(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=rt(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}();G(kt,"MAX_CACHE_SIZE",20),G(kt,"MAX_CACHE_OFFSET",5);var Nt=0,jt=function(){function e(t){Pe(this,e),G(this,"derivatives",void 0),G(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Nt,0===t.length&&D(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Nt+=1}return Me(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Pt=new kt;function It(e){var t=Array.isArray(e)?e:[e];return Pt.has(t)||Pt.set(t,new jt(t)),Pt.get(t)}var Mt=new WeakMap,Rt={};var Tt=new WeakMap;function _t(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Tt.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof jt?n+=o.id:o&&"object"===X(o)?n+=_t(o,t):n+=o})),t&&(n=ot(n)),Tt.set(e,n)),n}function At(e,t){return ot("".concat(t,"_").concat(_t(e,!0)))}var Bt=it();function Lt(e){return"number"==typeof e?"".concat(e,"px"):e}function Ft(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=Y(Y({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},G(G({},Ct,t),Et,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 zt=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()},Dt=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=rt(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Ht=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=rt(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=zt(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,Dt(r,t,{scope:null==n?void 0:n.scope})]},Vt="test"!==process.env.NODE_ENV&&it()?e.useLayoutEffect:e.useEffect,Wt=function(t,n){var r=e.useRef(!0);Vt((function(){return t(r.current)}),n),Vt((function(){return r.current=!1,function(){r.current=!0}}),[])},qt=function(e,t){Wt((function(t){if(!t)return e()}),t)},Xt=Y({},e).useInsertionEffect,Kt=Xt?function(e,t,n){return Xt((function(){return e(),t()}),n)}:function(t,n,r){e.useMemo(t,r),Wt((function(){return n(!0)}),r)},Gt=void 0!==Y({},e).useInsertionEffect?function(t){var n=[],r=!1;return e.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){r?"production"!==process.env.NODE_ENV&&D(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):n.push(e)}}:function(){return function(e){e()}};var Ut=!1;var Yt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Ut};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var Zt=window;if("function"==typeof Zt.webpackHotUpdate){var Qt=Zt.webpackHotUpdate;Zt.webpackHotUpdate=function(){return Ut=!0,setTimeout((function(){Ut=!1}),0),Qt.apply(void 0,arguments)}}}function Jt(t,n,r,o,i){var a=e.useContext(Ot).cache,l=xt([t].concat(Ge(n))),c=Gt([l]),s=Yt(),u=function(e){a.opUpdate(l,(function(t){var n=rt(t||[void 0,void 0],2),i=n[0],a=void 0===i?0:i,l=n[1],c=l;"production"!==process.env.NODE_ENV&&l&&s&&(null==o||o(c,s),c=null);var u=[a,c||r()];return e?e(u):u}))};e.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 Kt((function(){null==i||i(f)}),(function(e){return u((function(t){var n=rt(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=rt(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 en={},tn="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",nn=new Map;var rn=0;function on(e,t){nn.set(e,(nn.get(e)||0)-1);var n=Array.from(nn.keys()),r=n.filter((function(e){return(nn.get(e)||0)<=0}));n.length-r.length>rn&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Ct,'="').concat(e,'"]')).forEach((function(e){var n;e[$t]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),nn.delete(e)}))}var an=function(e,t,n,r){var o=Y(Y({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},ln="token";function cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o(Ot),i=r.cache.instanceId,a=r.container,l=n.salt,c=void 0===l?"":l,s=n.override,u=void 0===s?en:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,m=function(e,t){for(var n=Mt,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(Rt)||n.set(Rt,e()),n.get(Rt)}((function(){return Object.assign.apply(Object,[{}].concat(Ge(t)))}),t),g=_t(m),v=_t(u),h=p?_t(p):"",b=Jt(ln,[c,e.id,g,v,h],(function(){var t,n=f?f(m,u,e):an(m,u,e,d),r=Y({},n),o="";if(p){var i=rt(Ht(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=At(n,c);n._tokenKey=a,r._tokenKey=At(r,c);var l=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=l,function(e){nn.set(e,(nn.get(e)||0)+1)}(l);var s="".concat(tn,"-").concat(ot(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]}),(function(e){on(e[0]._themeKey,i)}),(function(e){var t=rt(e,4),n=t[0],r=t[3];if(p&&r){var o=vt(r,ot("css-variables-".concat(n._themeKey)),{mark:Et,prepend:"queue",attachTo:a,priority:-999});o[$t]=i,o.setAttribute(Ct,n._themeKey)}}));return b}var sn={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},un="comm",dn="rule",fn="decl",pn="@import",mn="@keyframes",gn="@layer",vn=Math.abs,hn=String.fromCharCode;function bn(e){return e.trim()}function yn(e,t,n){return e.replace(t,n)}function xn(e,t,n){return e.indexOf(t,n)}function wn(e,t){return 0|e.charCodeAt(t)}function Cn(e,t,n){return e.slice(t,n)}function En(e){return e.length}function Sn(e,t){return t.push(e),e}var $n=1,On=1,kn=0,Nn=0,jn=0,Pn="";function In(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:$n,column:On,length:a,return:"",siblings:l}}function Mn(){return jn=Nn>0?wn(Pn,--Nn):0,On--,10===jn&&(On=1,$n--),jn}function Rn(){return jn=Nn<kn?wn(Pn,Nn++):0,On++,10===jn&&(On=1,$n++),jn}function Tn(){return wn(Pn,Nn)}function _n(){return Nn}function An(e,t){return Cn(Pn,e,t)}function Bn(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 Ln(e){return bn(An(Nn-1,Dn(91===e?e+2:40===e?e+1:e)))}function Fn(e){for(;(jn=Tn())&&jn<33;)Rn();return Bn(e)>2||Bn(jn)>3?"":" "}function zn(e,t){for(;--t&&Rn()&&!(jn<48||jn>102||jn>57&&jn<65||jn>70&&jn<97););return An(e,_n()+(t<6&&32==Tn()&&32==Rn()))}function Dn(e){for(;Rn();)switch(jn){case e:return Nn;case 34:case 39:34!==e&&39!==e&&Dn(jn);break;case 40:41===e&&Dn(e);break;case 92:Rn()}return Nn}function Hn(e,t){for(;Rn()&&e+jn!==57&&(e+jn!==84||47!==Tn()););return"/*"+An(t,Nn-1)+"*"+hn(47===e?e:Rn())}function Vn(e){for(;!Bn(Tn());)Rn();return An(e,Nn)}function Wn(e){return function(e){return Pn="",e}(qn("",null,null,null,[""],e=function(e){return $n=On=1,kn=En(Pn=e),Nn=0,[]}(e),0,[0],e))}function qn(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=Rn()){case 40:if(108!=m&&58==wn(E,d-1)){-1!=xn(E+=yn(Ln(b),"&","&\f"),"&\f",vn(s?l[s-1]:0))&&(h=-1);break}case 34:case 39:case 91:E+=Ln(b);break;case 9:case 10:case 13:case 32:E+=Fn(m);break;case 92:E+=zn(_n()-1,7);continue;case 47:switch(Tn()){case 42:case 47:Sn(Kn(Hn(Rn(),_n()),t,n,c),c),5!=Bn(m||1)&&5!=Bn(Tn()||1)||!En(E)||" "===Cn(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*g:l[s++]=En(E)*h;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==h&&(E=yn(E,/\f/g,"")),p>0&&(En(E)-d||0===g&&47===m)&&Sn(p>32?Gn(E+";",r,n,d-1,c):Gn(yn(E," ","")+";",r,n,d-2,c),c);break;case 59:E+=";";default:if(Sn(C=Xn(E,t,n,s,u,o,l,y,x=[],w=[],d,i),i),123===b)if(0===u)qn(E,t,C,C,x,i,d,l,w);else switch(99===f&&110===wn(E,3)?100:f){case 100:case 108:case 109:case 115:qn(e,C,C,r&&Sn(Xn(e,C,C,0,0,o,l,y,o,x=[],d,w),w),o,w,d,l,r?x:w);break;default:qn(E,C,C,C,[""],w,0,l,w)}}s=u=p=0,g=h=1,y=E="",d=a;break;case 58:d=1+En(E),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Mn())continue;switch(E+=hn(b),b*g){case 38:h=u>0?1:(E+="\f",-1);break;case 44:l[s++]=(En(E)-1)*h,h=1;break;case 64:45===Tn()&&(E+=Ln(Rn())),f=Tn(),u=d=En(y=E+=Vn(_n())),b++;break;case 45:45===m&&2==En(E)&&(g=0)}}return i}function Xn(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=Cn(e,f+1,f=vn(v=a[g])),x=e;b<m;++b)(x=bn(v>0?p[b]+" "+y:yn(y,/&\f/g,p[b])))&&(c[h++]=x);return In(e,t,n,0===o?dn:l,c,s,u,d)}function Kn(e,t,n,r){return In(e,t,n,un,hn(jn),Cn(e,2,-2),0,r)}function Gn(e,t,n,r,o){return In(e,t,n,fn,Cn(e,0,r),Cn(e,r+1,-1),r,o)}function Un(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Yn(e,t,n,r){switch(e.type){case gn:if(e.children.length)break;case pn:case fn:return e.return=e.return||e.value;case un:return"";case mn:return e.return=e.value+"{"+Un(e.children,r)+"}";case dn:if(!En(e.value=e.props.join(",")))return""}return En(n=Un(e.children,r))?e.return=e.value+"{"+n+"}":""}function Zn(e,t){var n=t.path,r=t.parentSelectors;q(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var Qn,Jn=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)))&&Zn("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},er=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&Zn("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},tr="data-ant-cssinjs-cache-path",nr="_FILE_STYLE__",rr=!0;function or(e){return function(){if(!Qn&&(Qn={},it())){var e=document.createElement("div");e.className=tr,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=rt(e.split(":"),2),n=t[0],r=t[1];Qn[n]=r}));var n,r=document.querySelector("style[".concat(tr,"]"));r&&(rr=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Qn[e]}var ir="_skip_check_",ar="_multi_value_";function lr(e){return Un(Wn(e),Yn).replace(/\{%%%\:[^;];}/g,";")}function cr(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(Ge(n.slice(1))).join(" ")})).join(",")}var sr=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=rt(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"!==X(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===X(e)&&e&&(ir in e||ar in e)}(r)){var d;function E(e,t){"production"===process.env.NODE_ENV||"object"===X(r)&&null!=r&&r[ir]||[Jn,er].concat(Ge(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;sn[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"===X(r)&&null!=r&&r[ar]&&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=cr("&"===b?"":t,l,u):!o||l||"&"!==b&&""!==b||(b="",y=!0);var x=rt(e(r,n,{root:y,injectHash:p,parentSelectors:[].concat(Ge(a),[b])}),2),w=x[0],C=x[1];v=Y(Y({},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 ur(e,t){return ot("".concat(e.join("%")).concat(t))}function dr(){return null}var fr="style";function pr(t,n){var r=t.token,o=t.path,i=t.hashId,a=t.layer,l=t.nonce,c=t.clientOnly,s=t.order,u=void 0===s?0:s,d=e.useContext(Ot),f=d.autoClear,p=d.mock,m=d.defaultCache,g=d.hashPriority,v=d.container,h=d.ssrInline,b=d.transformers,y=d.linters,x=d.cache,w=d.layer,C=r._tokenKey,E=[C];w&&E.push("layer"),E.push.apply(E,Ge(o));var S=Bt;"production"!==process.env.NODE_ENV&&void 0!==p&&(S="client"===p);var $=Jt(fr,E,(function(){var e=E.join("|");if(or(e)){var t=function(e){var t=Qn[e],n=null;if(t&&it())if(rr)n=nr;else{var r=document.querySelector("style[".concat(Et,'="').concat(Qn[e],'"]'));r?n=r.innerHTML:delete Qn[e]}return[n,t]}(e),r=rt(t,2),l=r[0],s=r[1];if(l)return[l,C,s,{},c,u]}var d=n(),f=rt(sr(d,{hashId:i,hashPriority:g,layer:w?a:void 0,path:o.join("-"),transformers:b,linters:y}),2),p=f[0],m=f[1],v=lr(p),h=ur(E,v);return[v,C,h,m,c,u]}),(function(e,t){var n=rt(e,3)[2];(t||f)&&Bt&>(n,{mark:Et})}),(function(e){var t=rt(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(S&&n!==nr){var i={mark:Et,prepend:!w&&"queue",attachTo:v,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){vt(lr(o[e]),"_layer-".concat(e),Y(Y({},i),{},{prepend:!0}))}));var d=vt(n,r,i);d[$t]=x.instanceId,d.setAttribute(Ct,C),"production"!==process.env.NODE_ENV&&d.setAttribute(St,E.join("|")),s.forEach((function(e){vt(lr(o[e]),"_effect-".concat(e),i)}))}})),O=rt($,3),k=O[0],N=O[1],j=O[2];return function(t){var n;return n=h&&!S&&m?e.createElement("style",I({},G(G({},Ct,N),Et,j),{dangerouslySetInnerHTML:{__html:k}})):e.createElement(dr,null),e.createElement(e.Fragment,null,n,t)}}var mr="cssVar";G(G(G({},fr,(function(e,t,n){var r=rt(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=Ft(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Ft(lr(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),ln,(function(e,t,n){var r=rt(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,Ft(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),mr,(function(e,t,n){var r=rt(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Ft(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var gr=function(){function e(t,n){Pe(this,e),G(this,"name",void 0),G(this,"style",void 0),G(this,"_keyframe",!0),this.name=t,this.style=n}return Me(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 vr(e){return e.notSplit=!0,e}vr(["borderTop","borderBottom"]),vr(["borderTop"]),vr(["borderBottom"]),vr(["borderLeft","borderRight"]),vr(["borderLeft"]),vr(["borderRight"]);var hr=i({});function br(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function yr(e,t,n,r){if(!t.length)return n;var o,i,a=tt(o=t)||Xe(o)||Ke(o)||nt(),l=a[0],c=a.slice(1);return i=e||"number"!=typeof l?Array.isArray(e)?Ge(e):Y({},e):[],r&&void 0===n&&1===c.length?delete i[l][c[0]]:i[l]=yr(i[l],c,n,r),i}function xr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!br(e,t.slice(0,-1))?e:yr(e,t,n,r)}function wr(e){return Array.isArray(e)?[]:{}}var Cr="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Er(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=wr(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=br(e,n),c=Array.isArray(l);if(c||"object"===X(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=br(r,n);c?r=xr(r,n,[]):s&&"object"===X(s)||(r=xr(r,n,wr(l))),Cr(l).forEach((function(e){t([].concat(Ge(n),[e]),a)}))}}else r=xr(r,n,l)}([])})),r}function Sr(){}let $r=null;let Or=Sr;"production"!==process.env.NODE_ENV&&(Or=(e,t,n)=>{q(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&($r=null,V())});const kr=e.createContext({}),Nr="production"!==process.env.NODE_ENV?t=>{const{strict:n}=e.useContext(kr),r=(e,r,o)=>{if(!e)if(!1===n&&"deprecated"===r){const e=$r;$r||($r={}),$r[t]=$r[t]||[],$r[t].includes(o||"")||$r[t].push(o||""),e||console.warn("[antd] There exists deprecated usage in your code:",$r)}else"production"!==process.env.NODE_ENV&&Or(e,t,o)};return r.deprecated=(e,t,n,o)=>{r(e,"deprecated",`\`${t}\` is deprecated. Please use \`${n}\` instead.${o?` ${o}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=Sr,e};var jr=Or,Pr=i(void 0),Ir=Y(Y({},{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 Mr={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Rr={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"]},Ir),timePickerLocale:Object.assign({},Mr)},Tr="${label} is not a valid ${type}",_r={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:Rr,TimePicker:Mr,Calendar:Rr,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:Tr,method:Tr,array:Tr,object:Tr,number:Tr,date:Tr,boolean:Tr,integer:Tr,float:Tr,regexp:Tr,email:Tr,url:Tr,hex:Tr},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({},_r.Modal);let Ar=[];const Br=()=>Ar.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),_r.Modal);const Lr=i(void 0),Fr="internalMark",zr=t=>{const{locale:n={},children:r,_ANT_MARK__:o}=t;if("production"!==process.env.NODE_ENV){const e=Nr("LocaleProvider");"production"!==process.env.NODE_ENV&&e(o===Fr,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}e.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Ar.push(t),Br(),()=>{Ar=Ar.filter((e=>e!==t)),Br()}}Object.assign({},_r.Modal)}(null==n?void 0:n.Modal);return e}),[n]);const i=e.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return e.createElement(Lr.Provider,{value:i},r)};function Dr(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 Hr(e){return Math.min(1,Math.max(0,e))}function Vr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wr(e){return e<=1?"".concat(100*Number(e),"%"):e}function qr(e){return 1===e.length?"0"+e:String(e)}function Xr(e,t,n){e=Dr(e,255),t=Dr(t,255),n=Dr(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 Kr(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 Gr(e,t,n){e=Dr(e,255),t=Dr(t,255),n=Dr(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 Ur(e,t,n,r){var o=[qr(Math.round(e).toString(16)),qr(Math.round(t).toString(16)),qr(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 Yr(e){return Zr(e)/255}function Zr(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(zr.displayName="LocaleProvider");var Qr={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 Jr(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(Qr[e])e=Qr[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ro.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ro.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ro.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=ro.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ro.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=ro.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ro.hex8.exec(e),n)return{r:Zr(n[1]),g:Zr(n[2]),b:Zr(n[3]),a:Yr(n[4]),format:t?"name":"hex8"};if(n=ro.hex6.exec(e),n)return{r:Zr(n[1]),g:Zr(n[2]),b:Zr(n[3]),format:t?"name":"hex"};if(n=ro.hex4.exec(e),n)return{r:Zr(n[1]+n[1]),g:Zr(n[2]+n[2]),b:Zr(n[3]+n[3]),a:Yr(n[4]+n[4]),format:t?"name":"hex8"};if(n=ro.hex3.exec(e),n)return{r:Zr(n[1]+n[1]),g:Zr(n[2]+n[2]),b:Zr(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(oo(e.r)&&oo(e.g)&&oo(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Dr(t,255),g:255*Dr(n,255),b:255*Dr(r,255)},s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):oo(e.h)&&oo(e.s)&&oo(e.v)?(a=Wr(e.s),l=Wr(e.v),o=function(e,t,n){e=6*Dr(e,360),t=Dr(t,100),n=Dr(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"):oo(e.h)&&oo(e.s)&&oo(e.l)&&(a=Wr(e.s),c=Wr(e.l),o=function(e,t,n){var r,o,i;if(e=Dr(e,360),t=Dr(t,100),n=Dr(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=Kr(l,a,e+1/3),o=Kr(l,a,e),i=Kr(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=Vr(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 eo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),to="[\\s|\\(]+(".concat(eo,")[,|\\s]+(").concat(eo,")[,|\\s]+(").concat(eo,")\\s*\\)?"),no="[\\s|\\(]+(".concat(eo,")[,|\\s]+(").concat(eo,")[,|\\s]+(").concat(eo,")[,|\\s]+(").concat(eo,")\\s*\\)?"),ro={CSS_UNIT:new RegExp(eo),rgb:new RegExp("rgb"+to),rgba:new RegExp("rgba"+no),hsl:new RegExp("hsl"+to),hsla:new RegExp("hsla"+no),hsv:new RegExp("hsv"+to),hsva:new RegExp("hsva"+no),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 oo(e){return Boolean(ro.CSS_UNIT.exec(String(e)))}var io=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=Jr(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=Vr(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=Gr(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=Gr(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=Xr(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=Xr(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),Ur(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=[qr(Math.round(e).toString(16)),qr(Math.round(t).toString(16)),qr(Math.round(n).toString(16)),qr((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*Dr(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*Dr(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="#"+Ur(this.r,this.g,this.b,!1),t=0,n=Object.entries(Qr);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=Hr(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=Hr(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=Hr(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=Hr(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}(),ao=2,lo=.16,co=.05,so=.05,uo=.15,fo=5,po=4,mo=[{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 go(e){var t=Gr(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function vo(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Ur(t,n,r,!1))}function ho(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ao*t:Math.round(e.h)+ao*t:n?Math.round(e.h)+ao*t:Math.round(e.h)-ao*t)<0?r+=360:r>=360&&(r-=360),r}function bo(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-lo*t:t===po?e.s+lo:e.s+co*t)>1&&(r=1),n&&t===fo&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function yo(e,t,n){var r;return(r=n?e.v+so*t:e.v-uo*t)>1&&(r=1),Number(r.toFixed(2))}function xo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Jr(e),o=fo;o>0;o-=1){var i=go(r),a=vo(Jr({h:ho(i,o,!0),s:bo(i,o,!0),v:yo(i,o,!0)}));n.push(a)}n.push(vo(r));for(var l=1;l<=po;l+=1){var c=go(r),s=vo(Jr({h:ho(c,l),s:bo(c,l),v:yo(c,l)}));n.push(s)}return"dark"===t.theme?mo.map((function(e){var r,o,i,a=e.index,l=e.opacity;return vo((r=Jr(t.backgroundColor||"#141414"),o=Jr(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 wo={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"},Co=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Co.primary=Co[5];var Eo=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Eo.primary=Eo[5];var So=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];So.primary=So[5];var $o=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];$o.primary=$o[5];var Oo=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Oo.primary=Oo[5];var ko=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ko.primary=ko[5];var No=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];No.primary=No[5];var jo=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];jo.primary=jo[5];var Po=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Po.primary=Po[5];var Io=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Io.primary=Io[5];var Mo=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Mo.primary=Mo[5];var Ro=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ro.primary=Ro[5];var To=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];To.primary=To[5];var _o={red:Co,volcano:Eo,orange:So,gold:$o,yellow:Oo,lime:ko,green:No,cyan:jo,blue:Po,geekblue:Io,purple:Mo,magenta:Ro,grey:To};const Ao={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"},Bo=Object.assign(Object.assign({},Ao),{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 Lo=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 Fo(e){return(e+8)/e}const zo=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:Fo(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 Do=(e,t)=>new io(e).setAlpha(t).toRgbString(),Ho=(e,t)=>new io(e).darken(t).toHexString(),Vo=e=>{const t=xo(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]}},Wo=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Do(r,.88),colorTextSecondary:Do(r,.65),colorTextTertiary:Do(r,.45),colorTextQuaternary:Do(r,.25),colorFill:Do(r,.15),colorFillSecondary:Do(r,.06),colorFillTertiary:Do(r,.04),colorFillQuaternary:Do(r,.02),colorBgLayout:Ho(n,4),colorBgContainer:Ho(n,0),colorBgElevated:Ho(n,0),colorBgSpotlight:Do(r,.85),colorBgBlur:"transparent",colorBorder:Ho(n,15),colorBorderSecondary:Ho(n,6)}};const qo=It((function(e){wo.pink=wo.magenta,_o.pink=_o.magenta;const t=Object.keys(Ao).map((t=>{const n=e[t]===wo[t]?_o[t]:xo(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 io("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Vo,generateNeutralColorPalettes:Wo})),zo(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},Lo(r))}(e))})),Xo={token:Bo,override:{override:Bo},hashed:!0},Ko=t.createContext(Xo),Go="ant",Uo="anticon",Yo=["outlined","borderless","filled"],Zo=e.createContext({getPrefixCls:(e,t)=>t||(e?`${Go}-${e}`:Go),iconPrefixCls:Uo}),Qo=`-ant-${Date.now()}-${Math.random()}`;function Jo(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 io(e),i=xo(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 io(t.primaryColor),i=xo(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 io(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);it()?vt(n,`${Qo}-dynamic-theme`):"production"!==process.env.NODE_ENV&&jr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ei=e.createContext(!1),ti=t=>{let{children:n,disabled:r}=t;const o=e.useContext(ei);return e.createElement(ei.Provider,{value:null!=r?r:o},n)},ni=e.createContext(void 0),ri=t=>{let{children:n,size:r}=t;const o=e.useContext(ni);return e.createElement(ni.Provider,{value:r||o},n)};var oi=Me((function e(){Pe(this,e)})),ii="CALC_UNIT",ai=new RegExp(ii,"g");function li(e){return"number"==typeof e?"".concat(e).concat(ii):e}var ci=function(){Te(t,oi);var e=Le(t);function t(n,r){var o;Pe(this,t),G(Be(o=e.call(this)),"result",""),G(Be(o),"unitlessCssVar",void 0),G(Be(o),"lowPriority",void 0);var i=X(n);return o.unitlessCssVar=r,n instanceof t?o.result="(".concat(n.result,")"):"number"===i?o.result=li(n):"string"===i&&(o.result=n),o}return Me(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(li(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(li(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(ai,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),si=function(){Te(t,oi);var e=Le(t);function t(n){var r;return Pe(this,t),G(Be(r=e.call(this)),"result",0),n instanceof t?r.result=n.result:"number"==typeof n&&(r.result=n),r}return Me(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}(),ui=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 di(t){var n=e.useRef();n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}function fi(t){var n=e.useRef(!1),r=rt(e.useState(t),2),o=r[0],i=r[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||i(e)}]}function pi(e){return void 0!==e}function mi(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=rt(fi((function(){return pi(o)?o:pi(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=di(i),p=rt(fi([u]),2),m=p[0],g=p[1];return qt((function(){var e=m[0];c!==e&&f(c,e)}),[m]),qt((function(){pi(o)||s(o)}),[o]),[d,di((function(e,t){s(e,t),g([u],t)}))]}function gi(e,t,n,r){var o=Y({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=rt(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&q(!(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=Y(Y({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var vi="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,hi=!0;function bi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!vi)return Object.assign.apply(Object,[{}].concat(t));hi=!1;var r={};return t.forEach((function(e){"object"===X(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),hi=!0,r}var yi={};function xi(){}function wi(e,t,n){var r;return"function"==typeof n?n(bi(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var Ci=function(){function e(){Pe(this,e),G(this,"map",new Map),G(this,"objectIDMap",new WeakMap),G(this,"nextID",0),G(this,"lastAccessBeat",new Map),G(this,"accessBeat",0)}return Me(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"===X(e)?"obj_".concat(t.getObjectID(e)):"".concat(X(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}(),Ei=new Ci;var Si=function(){return{}};const $i=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Oi="5.20.5";function ki(e){return e>=0&&e<=255}function Ni(e,t){const{r:n,g:r,b:o,a:i}=new io(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new io(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(ki(t)&&ki(i)&&ki(s))return new io({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new io({r:n,g:r,b:o,a:1}).toRgbString()}var ji=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=ji(e,["override"]),r=Object.assign({},t);Object.keys(Bo).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:Ni(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:Ni(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ni(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:Ni(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 io("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new io("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new io("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 Ii=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 Mi={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},Ri={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},Ti={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},_i=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Ii(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=Ii(n,["theme"]);let i=o;r&&(i=_i(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Ai(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t.useContext(Ko),a=`${Oi}-${n||""}`,l=r||qo,[c,s,u]=cn(l,[Bo,e],{salt:a,override:o,getComputedToken:_i,formatToken:Pi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Mi,ignore:Ri,preserve:Ti}});return[l,u,n?s:"",c,i]}const Bi=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Li={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Fi=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}},zi=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"}}}),Di=e=>({outline:`${Lt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Hi=e=>({"&:focus-visible":Object.assign({},Di(e))}),Vi=(e,t)=>{const[n,r]=Ai();return pr({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:Wi,genComponentStyleHook:qi,genSubStyleComponent:Xi}=function(e){var n=e.useCSP,r=void 0===n?Si:n,i=e.useToken,a=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,s=e.getCompUnitless;function u(e,n,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(e)?e:[e,e],d=rt(u,1)[0],f=u.join("-");return function(e){var u,p,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=i(),v=g.theme,h=g.realToken,b=g.hashId,y=g.token,x=g.cssVar,w=a(),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(zt(t,x.prefix)),e.add(zt(t,ui(d,x.prefix)))})),function(e,t){var n="css"===e?ci:si;return function(e){return new n(e,t)}}($,e)},p=[$,d,null==x?void 0:x.prefix],t.useMemo((function(){var e=Ei.get(p);if(e)return e;var t=u();return Ei.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 Lt(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 Lt(e)})).join(","),")")}}}($),N=k.max,j=k.min,P={theme:v,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:{name:"antd"},order:s.order||-999};pr(Y(Y({},P),{},{clientOnly:!1,path:["Shared",C]}),(function(){return"function"==typeof l?l(y):[]}));var I=pr(Y(Y({},P),{},{path:[f,e,E]}),(function(){if(!1===s.injectStyle)return[];var t=function(e){var t,n=e,r=xi;return vi&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return hi&&t.add(n),e[n]}}),r=function(e,n){var r;yi[e]={global:Array.from(t),component:Y(Y({},null===(r=yi[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(y),r=t.token,i=t.flush,a=wi(d,h,o),l=".".concat(e),u=gi(d,h,a,{deprecatedTokens:s.deprecatedTokens});x&&"object"===X(a)&&Object.keys(a).forEach((function(e){a[e]="var(".concat(zt(e,ui(d,x.prefix)),")")}));var f=bi(r,{componentCls:l,prefixCls:e,iconCls:".".concat(E),antCls:".".concat(C),calc:O,max:N,min:j},x?a:u),p=n(f,{hashId:b,prefixCls:e,rootPrefixCls:C,iconPrefixCls:E});i(d,u);var g="function"==typeof c?c(f,e,m,s.resetFont):null;return[!1===s.resetStyle?null:g,p]}));return[I,b]}}return{genStyleHooks:function(e,n,r,a){var l=Array.isArray(e)?e[0]:e;function c(e){return"".concat(String(l)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==a?void 0:a.unitless)||{},f=Y(Y({},"function"==typeof s?s(e):{}),{},G({},c("zIndexPopup"),!0));Object.keys(d).forEach((function(e){f[c(e)]=d[e]}));var p=Y(Y({},a),{},{unitless:f,prefixToken:c}),m=u(e,n,r,p),g=function(e,n,r){var a=r.unitless,l=r.injectStyle,c=void 0===l||l,s=r.prefixToken,u=r.ignore,d=function(t){var l=t.rootCls,c=t.cssVar,d=void 0===c?{}:c,f=i().realToken;return function(e,t){var n=e.key,r=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=o(Ot),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(Ge(e.path),[n,s,p]),g=Jt(mr,m,(function(){var e=t(),o=rt(Ht(e,n,{prefix:r,unitless:i,ignore:a,scope:s}),2),l=o[0],c=o[1];return[l,c,ur(m,c),n]}),(function(e){var t=rt(e,3)[2];Bt&>(t,{mark:Et})}),(function(e){var t=rt(e,3),r=t[1],o=t[2];if(r){var i=vt(r,o,{mark:Et,prepend:"queue",attachTo:f,priority:-999});i[$t]=d,i.setAttribute(Ct,n)}}))}({path:[e],prefix:d.prefix,key:d.key,unitless:a,ignore:u,token:f,scope:l},(function(){var t=wi(e,f,n),o=gi(e,f,t,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(t).forEach((function(e){o[s(e)]=o[e],delete o[e]})),o})),null},f=function(n){var r=i().cssVar;return[function(o){return c&&r?t.createElement(t.Fragment,null,t.createElement(d,{rootCls:n,cssVar:r,component:e}),o):o},null==r?void 0:r.key]};return f}(l,r,p);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=rt(m(e,t),2)[1],r=rt(g(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=u(e,t,n,Y({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:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=o(Zo);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Ai();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=o(Zo);return Vi(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":zi(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:()=>Mi});function Ki(e,t){return $i.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 Gi=Object.assign({},e),{useId:Ui}=Gi,Yi=void 0===Ui?()=>"":Ui;var Zi=["children"],Qi=e.createContext({});function Ji(t){var n=t.children,r=ht(t,Zi);return e.createElement(Qi.Provider,{value:r},n)}var ea=function(){Te(n,e.Component);var t=Le(n);function n(){return Pe(this,n),t.apply(this,arguments)}return Me(n,[{key:"render",value:function(){return this.props.children}}]),n}();var ta="none",na="appear",ra="enter",oa="leave",ia="none",aa="prepare",la="start",ca="active",sa="end",ua="prepared";function da(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 fa=function(e,t){var n={animationend:da("Animation","AnimationEnd"),transitionend:da("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(it(),"undefined"!=typeof window?window:{}),pa={};if(it()){var ma=document.createElement("div");pa=ma.style}var ga={};function va(e){if(ga[e])return ga[e];var t=fa[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 pa)return ga[e]=t[i],ga[e]}return""}var ha=va("animationend"),ba=va("transitionend"),ya=!(!ha||!ba),xa=ha||"animationend",wa=ba||"transitionend";function Ca(e,t){if(!e)return null;if("object"===X(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Ea=function(t){var n=a();function r(e){e&&(e.removeEventListener(wa,t),e.removeEventListener(xa,t))}return e.useEffect((function(){return function(){r(n.current)}}),[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(wa,t),e.addEventListener(xa,t),n.current=e)},r]},Sa=it()?l:c,$a=[aa,la,ca,sa],Oa=[aa,ua],ka=!1,Na=!0;function ja(e){return e===ca||e===sa}var Pa=function(t,n,r){var o=rt(fi(ia),2),i=o[0],a=o[1],l=function(){var t=e.useRef(null);function n(){et.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=et((function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)}));t.current=i},n]}(),c=rt(l,2),s=c[0],u=c[1];var d=n?Oa:$a;return Sa((function(){if(i!==ia&&i!==sa){var e=d.indexOf(i),t=d[e+1],n=r(i);n===ka?a(t,!0):t&&s((function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[t,i]),e.useEffect((function(){return function(){u()}}),[]),[function(){a(aa,!0)},i]};function Ia(t,n,r,o){var i,l,s,u=o.motionEnter,d=void 0===u||u,f=o.motionAppear,p=void 0===f||f,m=o.motionLeave,g=void 0===m||m,v=o.motionDeadline,h=o.motionLeaveImmediately,b=o.onAppearPrepare,y=o.onEnterPrepare,x=o.onLeavePrepare,w=o.onAppearStart,C=o.onEnterStart,E=o.onLeaveStart,S=o.onAppearActive,$=o.onEnterActive,O=o.onLeaveActive,k=o.onAppearEnd,N=o.onEnterEnd,j=o.onLeaveEnd,P=o.onVisibleChanged,I=rt(fi(),2),M=I[0],R=I[1],T=(i=ta,l=rt(e.useReducer((function(e){return e+1}),0),2)[1],s=e.useRef(i),[di((function(){return s.current})),di((function(e){s.current="function"==typeof e?e(s.current):e,l()}))]),_=rt(T,2),A=_[0],B=_[1],L=rt(fi(null),2),F=L[0],z=L[1],D=A(),H=a(!1),V=a(null);function W(){return r()}var q=a(!1);function X(){B(ta),z(null,!0)}var K=di((function(e){var t=A();if(t!==ta){var n=W();if(!e||e.deadline||e.target===n){var r,o=q.current;t===na&&o?r=null==k?void 0:k(n,e):t===ra&&o?r=null==N?void 0:N(n,e):t===oa&&o&&(r=null==j?void 0:j(n,e)),o&&!1!==r&&X()}}})),U=rt(Ea(K),1)[0],Z=function(e){switch(e){case na:return G(G(G({},aa,b),la,w),ca,S);case ra:return G(G(G({},aa,y),la,C),ca,$);case oa:return G(G(G({},aa,x),la,E),ca,O);default:return{}}},Q=e.useMemo((function(){return Z(D)}),[D]),J=rt(Pa(D,!t,(function(e){if(e===aa){var t=Q[aa];return t?t(W()):ka}var n;te in Q&&z((null===(n=Q[te])||void 0===n?void 0:n.call(Q,W(),null))||null);return te===ca&&D!==ta&&(U(W()),v>0&&(clearTimeout(V.current),V.current=setTimeout((function(){K({deadline:!0})}),v))),te===ua&&X(),Na})),2),ee=J[0],te=J[1],ne=ja(te);q.current=ne,Sa((function(){R(n);var e,r=H.current;H.current=!0,!r&&n&&p&&(e=na),r&&n&&d&&(e=ra),(r&&!n&&g||!r&&h&&!n&&g)&&(e=oa);var o=Z(e);e&&(t||o[aa])?(B(e),ee()):B(ta)}),[n]),c((function(){(D===na&&!p||D===ra&&!d||D===oa&&!g)&&B(ta)}),[p,d,g]),c((function(){return function(){H.current=!1,clearTimeout(V.current)}}),[]);var re=e.useRef(!1);c((function(){M&&(re.current=!0),void 0!==M&&D===ta&&((re.current||M)&&(null==P||P(M)),re.current=!0)}),[M,D]);var oe=F;return Q[aa]&&te===la&&(oe=Y({transition:"none"},oe)),[D,te,oe,null!=M?M:n]}var Ma=function(t){var n=t;"object"===X(t)&&(n=t.transitionSupport);var r=e.forwardRef((function(t,r){var o=t.visible,i=void 0===o||o,l=t.removeOnLeave,c=void 0===l||l,s=t.forceRender,u=t.children,d=t.motionName,f=t.leavedClassName,p=t.eventProps,m=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(Qi).motion),g=a(),v=a();var h=rt(Ia(m,i,(function(){try{return g.current instanceof HTMLElement?g.current:Q(v.current)}catch(e){return null}}),t),4),b=h[0],y=h[1],x=h[2],w=h[3],C=e.useRef(w);w&&(C.current=!0);var E,S=e.useCallback((function(e){g.current=e,ee(r,e)}),[r]),$=Y(Y({},p),{},{visible:i});if(u)if(b===ta)E=w?u(Y({},$),S):!c&&C.current&&f?u(Y(Y({},$),{},{className:f}),S):s||!c&&!f?u(Y(Y({},$),{},{style:{display:"none"}}),S):null;else{var O;y===aa?O="prepare":ja(y)?O="active":y===la&&(O="start");var k=Ca(d,"".concat(b,"-").concat(O));E=u(Y(Y({},$),{},{className:P(Ca(d,b),G(G({},k,k&&O),d,"string"==typeof d)),style:x}),S)}else E=null;e.isValidElement(E)&&re(E)&&(E.ref||(E=e.cloneElement(E,{ref:S})));return e.createElement(ea,{ref:v},E)}));return r.displayName="CSSMotion",r}(ya),Ra="add",Ta="keep",_a="remove",Aa="removed";function Ba(e){var t;return Y(Y({},t=e&&"object"===X(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function La(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Ba)}var Fa=["component","children","onVisibleChanged","onAllRemoved"],za=["status"],Da=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ha(t){const{children:n}=t,[,r]=Ai(),{motion:o}=r,i=e.useRef(!1);return i.current=i.current||!1===o,i.current?e.createElement(Ji,{motion:o},n):n}!function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ma,r=function(){Te(r,e.Component);var t=Le(r);function r(){var e;Pe(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return G(Be(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),G(Be(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Y(Y({},e),{},{status:Aa})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Aa})).length})),e}return Me(r,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=ht(o,Fa),u=i||e.Fragment,d={};return Da.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,e.createElement(u,s,r.map((function(r,o){var i=r.status,s=ht(r,za),u=i===Ra||i===Ta;return e.createElement(n,I({},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(Y(Y({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=La(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=La(e),a=La(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 Y(Y({},e),{},{status:Ra})}))),r=i),n.push(Y(Y({},l),{},{status:Ta})),r+=1,t=!0;break}}t||n.push(Y(Y({},e),{},{status:_a}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Y(Y({},e),{},{status:Ra})}))));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!==_a}))).forEach((function(t){t.key===e&&(t.status=Ta)}))})),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!==Aa||e.status!==_a}))}}}]),r}();G(r,"defaultProps",{component:"div"})}(ya);const Va=e.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return Nr("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(Va.displayName="PropWarning");var Wa="production"!==process.env.NODE_ENV?Va:()=>null,qa=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 Xa=!1;process.env.NODE_ENV;const Ka=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ga;const Ua=t=>{const{children:n,csp:r,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:M,skeleton:R,steps:T,image:_,layout:A,list:B,mentions:L,modal:F,progress:z,result:D,slider:H,breadcrumb:V,menu:W,pagination:q,input:X,textArea:K,empty:G,badge:U,radio:Y,rate:Z,switch:Q,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}=t,Se=e.useCallback(((e,n)=>{const{prefixCls:r}=t;if(n)return n;const o=r||h.getPrefixCls("");return e?`${o}-${e}`:o}),[h.getPrefixCls,t.prefixCls]),$e=b||h.iconPrefixCls||Uo,Oe=r||h.csp;Vi($e,Oe);const ke=function(e,t,n){var r,o;const i=Nr("ConfigProvider"),a=e||{},l=!1!==a.inherit&&t?t:Object.assign(Object.assign({},Xo),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:Xo.hashed,cssVar:null==t?void 0:t.cssVar}),c=Yi();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 J((()=>{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)=>!bt(e,t[n],!0)))))}(y,h.theme,{prefixCls:Se("")});"production"!==process.env.NODE_ENV&&(Xa=Xa||!!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:M,skeleton:R,steps:T,image:_,input:X,textArea:K,layout:A,list:B,mentions:L,modal:F,progress:z,result:D,slider:H,breadcrumb:V,menu:W,pagination:q,empty:G,badge:U,radio:Y,rate:Z,switch:Q,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){Nr("ConfigProvider")(!("autoInsertSpaceInButton"in t),"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])})),Ka.forEach((e=>{const n=t[e];n&&(je[e]=n)})),void 0!==o&&(je.button=Object.assign({autoInsertSpace:o},je.button));const Pe=J((()=>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=e.useMemo((()=>({prefixCls:$e,csp:Oe})),[$e,Oe]);let Me=e.createElement(e.Fragment,null,e.createElement(Wa,{dropdownMatchSelectWidth:p}),n);const Re=e.useMemo((()=>{var e,t,n,r;return Er((null===(e=_r.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(Re).length>0&&(Me=e.createElement(Pr.Provider,{value:Re},Me)),c&&(Me=e.createElement(zr,{locale:c,_ANT_MARK__:Fr},Me)),($e||Oe)&&(Me=e.createElement(hr.Provider,{value:Ie},Me)),s&&(Me=e.createElement(ri,{size:s},Me)),Me=e.createElement(Ha,null,Me);const Te=e.useMemo((()=>{const e=ke||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=qa(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?It(t):qo,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=It(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},Bo),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[ke]);return y&&(Me=e.createElement(Ko.Provider,{value:Te},Me)),Pe.warning&&(Me=e.createElement(kr.Provider,{value:Pe.warning},Me)),void 0!==x&&(Me=e.createElement(ti,{disabled:x},Me)),e.createElement(Zo.Provider,{value:Pe},Me)},Ya=t=>{const n=e.useContext(Zo),r=e.useContext(Lr);return e.createElement(Ua,Object.assign({parentContext:n,legacyLocale:r},t))};function Za(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Qa(e){return function(e){return Za(e)instanceof ShadowRoot}(e)?Za(e):null}function Ja(e){return"object"===X(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===X(e.icon)||"function"==typeof e.icon)}function el(){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 tl(e,n,r){return r?t.createElement(e.tag,Y(Y({key:n},el(e.attrs)),r),(e.children||[]).map((function(t,r){return tl(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,Y({key:n},el(e.attrs)),(e.children||[]).map((function(t,r){return tl(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function nl(e){return xo(e)[0]}function rl(e){return e?Array.isArray(e)?e:[e]:[]}Ya.ConfigContext=Zo,Ya.SizeContext=ni,Ya.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Ga=t),r&&function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)&&("production"!==process.env.NODE_ENV&&jr(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Jo(Ga||Go,r))},Ya.useConfig=function(){return{componentDisabled:o(ei),componentSize:o(ni)}},Object.defineProperty(Ya,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&jr(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ni)}),"production"!==process.env.NODE_ENV&&(Ya.displayName="ConfigProvider");var ol=["icon","className","onClick","style","primaryColor","secondaryColor"],il={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var al=function(t){var n,r,i,a,l,s,u,d=t.icon,f=t.className,p=t.onClick,m=t.style,g=t.primaryColor,v=t.secondaryColor,h=ht(t,ol),b=e.useRef(),y=il;if(g&&(y={primaryColor:g,secondaryColor:v||nl(g)}),n=b,r=o(hr),i=r.csp,a=r.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)),c((function(){var e=Qa(n.current);vt(l,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),s=Ja(d),u="icon should be icon definiton, but got ".concat(d),q(s,"[@ant-design/icons] ".concat(u)),!Ja(d))return null;var x=d;return x&&"function"==typeof x.icon&&(x=Y(Y({},x),{},{icon:x.icon(y.primaryColor,y.secondaryColor)})),tl(x.icon,"svg-".concat(x.name),Y(Y({className:f,onClick:p,style:m,"data-icon":x.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:b}))};function ll(e){var t=rt(rl(e),2),n=t[0],r=t[1];return al.setTwoToneColors({primaryColor:n,secondaryColor:r})}al.displayName="IconReact",al.getTwoToneColors=function(){return Y({},il)},al.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;il.primaryColor=t,il.secondaryColor=n||nl(t),il.calculated=!!n};var cl=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ll(Po.primary);var sl=e.forwardRef((function(t,n){var r=t.className,o=t.icon,i=t.spin,a=t.rotate,l=t.tabIndex,c=t.onClick,s=t.twoToneColor,u=ht(t,cl),d=e.useContext(hr),f=d.prefixCls,p=void 0===f?"anticon":f,m=d.rootClassName,g=P(m,p,G(G({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),v=l;void 0===v&&c&&(v=-1);var h=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=rt(rl(s),2),y=b[0],x=b[1];return e.createElement("span",I({role:"img","aria-label":o.name},u,{ref:n,tabIndex:v,onClick:c,className:g}),e.createElement(al,{icon:o,primaryColor:y,secondaryColor:x,style:h}))}));sl.displayName="AntdIcon",sl.getTwoToneColor=function(){var e=al.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},sl.setTwoToneColor=ll;var ul={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"},dl=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:ul}))},fl=e.forwardRef(dl);"production"!==process.env.NODE_ENV&&(fl.displayName="CloseCircleFilled");var pl={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"},ml=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:pl}))},gl=e.forwardRef(ml);"production"!==process.env.NODE_ENV&&(gl.displayName="CloseOutlined");var vl="".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 hl(e,t){return 0===e.indexOf(t)}function bl(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const yl=(e,n,r)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof r?r(e.props||{}):r):n;function xl(e,t){return yl(e,e,t)}const wl=e=>{const[,,,,t]=Ai();return t?`${e}-css-var`:""};var Cl={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>=Cl.F1&&t<=Cl.F12)return!1;switch(t){case Cl.ALT:case Cl.CAPS_LOCK:case Cl.CONTEXT_MENU:case Cl.CTRL:case Cl.DOWN:case Cl.END:case Cl.ESC:case Cl.HOME:case Cl.INSERT:case Cl.LEFT:case Cl.MAC_FF_META:case Cl.META:case Cl.NUMLOCK:case Cl.NUM_CENTER:case Cl.PAGE_DOWN:case Cl.PAGE_UP:case Cl.PAUSE:case Cl.PRINT_SCREEN:case Cl.RIGHT:case Cl.SHIFT:case Cl.UP:case Cl.WIN_KEY:case Cl.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Cl.ZERO&&e<=Cl.NINE)return!0;if(e>=Cl.NUM_ZERO&&e<=Cl.NUM_MULTIPLY)return!0;if(e>=Cl.A&&e<=Cl.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Cl.SPACE:case Cl.QUESTION_MARK:case Cl.NUM_PLUS:case Cl.NUM_MINUS:case Cl.NUM_PERIOD:case Cl.NUM_DIVISION:case Cl.SEMICOLON:case Cl.DASH:case Cl.EQUALS:case Cl.COMMA:case Cl.PERIOD:case Cl.SLASH:case Cl.APOSTROPHE:case Cl.SINGLE_QUOTE:case Cl.OPEN_SQUARE_BRACKET:case Cl.BACKSLASH:case Cl.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},El={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"},Sl=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:El}))},$l=e.forwardRef(Sl);"production"!==process.env.NODE_ENV&&($l.displayName="LoadingOutlined");const Ol=t.createContext(void 0);"production"!==process.env.NODE_ENV&&(Ol.displayName="zIndexContext");const kl=100,Nl={Modal:kl,Drawer:kl,Popover:kl,Popconfirm:kl,Tooltip:kl,Tour:kl},jl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Pl(e,n){const[,r]=Ai(),o=t.useContext(Ol),i=function(e){return e in Nl}(e);let a;if(void 0!==n)a=[n,n];else{let t=null!=o?o:0;t+=i?(o?0:r.zIndexPopupBase)+Nl[e]:jl[e],a=[void 0===o?n:t,t]}if("production"!==process.env.NODE_ENV){const t=Nr(e),o=r.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&t(void 0!==n||i<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function Il(){Il=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 P(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(I([])));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"==X(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 j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function I(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(X(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=I,P.prototype={constructor:P,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(j),!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),j(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;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},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 Rl(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 Tl,_l=Y({},h),Al=_l.version,Bl=_l.render,Ll=_l.unmountComponentAtNode;try{Number((Al||"").split(".")[0])>=18&&(Tl=_l.createRoot)}catch(e){}function Fl(e){var t=_l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===X(t)&&(t.usingClientEntryPoint=e)}var zl="__rc_react_root__";function Dl(e,t){Tl?function(e,t){Fl(!0);var n=t[zl]||Tl(t);Fl(!1),n.render(e),t[zl]=n}(e,t):function(e,t){Bl(e,t)}(e,t)}function Hl(e){return Vl.apply(this,arguments)}function Vl(){return(Vl=Rl(Il().mark((function e(t){return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[zl])||void 0===e||e.unmount(),delete t[zl]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wl(e){Ll(e)}function ql(){return(ql=Rl(Il().mark((function e(t){return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Tl){e.next=2;break}return e.abrupt("return",Hl(t));case 2:Wl(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Xl=()=>({height:0,opacity:0}),Kl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Gl=e=>({height:e?e.offsetHeight:0}),Ul=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Yl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Go}-motion-collapse`,onAppearStart:Xl,onEnterStart:Xl,onAppearActive:Kl,onEnterActive:Kl,onLeaveStart:Gl,onLeaveActive:Xl,onAppearEnd:Ul,onEnterEnd:Ul,onLeaveEnd:Ul,motionDeadline:500}},Zl=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var Ql=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 Jl=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 ec=qi("Wave",(e=>[Jl(e)]));const tc=`${Go}-wave-target`;function nc(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 rc(e){return Number.isNaN(e)?0:e}const oc=t=>{const{className:n,target:r,component:o}=t,i=e.useRef(null),[a,l]=e.useState(null),[c,s]=e.useState([]),[u,d]=e.useState(0),[f,p]=e.useState(0),[m,g]=e.useState(0),[v,h]=e.useState(0),[b,y]=e.useState(!1),x={left:u,top:f,width:m,height:v,borderRadius:c.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(r);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return nc(t)?t:nc(n)?n:nc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:rc(-parseFloat(n))),p(t?r.offsetTop:rc(-parseFloat(o))),g(r.offsetWidth),h(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>rc(parseFloat(e)))))}if(a&&(x["--wave-color"]=a),e.useEffect((()=>{if(r){const e=et((()=>{w(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(r)),()=>{et.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const C=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(tc));return e.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 ql.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},((t,r)=>{let{className:o}=t;return e.createElement("div",{ref:te(i,r),className:P(n,o,{"wave-quick":C}),style:x})}))},ic=(t,n)=>{var r;const{component:o}=n;if("Checkbox"===o&&!(null===(r=t.querySelector("input"))||void 0===r?void 0:r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==t||t.insertBefore(i,null==t?void 0:t.firstChild),Dl(e.createElement(oc,Object.assign({},n,{target:t})),i)},ac=(t,n,r)=>{const{wave:o}=e.useContext(Zo),[,i,a]=Ai(),l=di((e=>{const l=t.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${tc}`)||l,{showEffect:s}=o||{};(s||ic)(c,{className:n,token:i,component:r,event:e,hashId:a})})),c=e.useRef();return e=>{et.cancel(c.current),c.current=et((()=>{l(e)}))}},lc=e=>{const{children:n,disabled:r,component:i}=e,{getPrefixCls:l}=o(Zo),c=a(null),s=l("wave"),[,u]=ec(s),d=ac(c,P(s,u),i);if(t.useEffect((()=>{const e=c.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!Ql(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!t.isValidElement(n))return null!=n?n:null;return xl(n,{ref:re(n)?te(n.ref,c):c})};"production"!==process.env.NODE_ENV&&(lc.displayName="Wave");const cc=e=>{const n=t.useContext(ni);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])},sc=e.createContext(null),uc=(t,n)=>{const r=e.useContext(sc),o=e.useMemo((()=>{if(!r)return"";const{compactDirection:e,isFirstItem:o,isLastItem:i}=r,a="vertical"===e?"-vertical-":"-";return P(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:o,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===n})}),[t,n,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:o}},dc=t=>{let{children:n}=t;return e.createElement(sc.Provider,{value:null},n)};var 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 pc=e.createContext(void 0),mc=/^[\u4e00-\u9fa5]{2}$/,gc=mc.test.bind(mc);function vc(e){return"string"==typeof e}function hc(e){return"text"===e||"link"===e}function bc(e,n){let r=!1;const o=[];return t.Children.forEach(e,(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})),t.Children.map(o,(e=>function(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&vc(e.type)&&gc(e.props.children)?xl(e,{children:e.props.children.split("").join(r)}):vc(e)?gc(e)?t.createElement("span",null,e.split("").join(r)):t.createElement("span",null,e):bl(e)?t.createElement("span",null,e):e}(e,n)))}const yc=s(((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,l=P(`${a}-icon`,r);return t.createElement("span",{ref:n,className:l,style:o},i)})),xc=s(((e,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=e,l=P(`${r}-loading-icon`,o);return t.createElement(yc,{prefixCls:r,className:l,style:i,ref:n},t.createElement($l,{className:a}))})),wc=()=>({width:0,opacity:0,transform:"scale(0)"}),Cc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ec=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=e,l=!!r;return o?t.createElement(xc,{prefixCls:n,className:i,style:a}):t.createElement(Ma,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:wc,onAppearActive:Cc,onEnterStart:wc,onEnterActive:Cc,onLeaveStart:Cc,onLeaveActive:wc},((e,r)=>{let{className:o,style:l}=e;return t.createElement(xc,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))},Sc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),$c=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}},Sc(`${t}-primary`,o),Sc(`${t}-danger`,i)]}},Oc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return bi(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},kc=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:Fo(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Fo(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Fo(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)}},Nc=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:`${Lt(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({},Hi(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"}}}},jc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Pc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Ic=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"}),Rc=(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"},jc(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Tc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Mc(e))}),_c=e=>Object.assign({},Tc(e)),Ac=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Bc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_c(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),jc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Rc(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},jc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Tc(e))}),Lc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_c(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),jc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Rc(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},jc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Rc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Tc(e))}),Fc=e=>Object.assign(Object.assign({},Bc(e)),{borderStyle:"dashed"}),zc=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},jc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ac(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},jc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ac(e))}),Dc=e=>Object.assign(Object.assign(Object.assign({},jc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Ac(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ac(e)),jc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Hc=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Bc(e),[`${t}-primary`]:Lc(e),[`${t}-dashed`]:Fc(e),[`${t}-link`]:zc(e),[`${t}-text`]:Dc(e),[`${t}-ghost`]:Rc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Vc=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:`${Lt(s)} ${Lt(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}`]:Ic(e)}]},Wc=e=>{const t=bi(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Vc(t,e.componentCls)},qc=e=>{const t=bi(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 Vc(t,`${e.componentCls}-sm`)},Xc=e=>{const t=bi(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Vc(t,`${e.componentCls}-lg`)},Kc=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Gc=Wi("Button",(e=>{const t=Oc(e);return[Nc(t),Wc(t),qc(t),Xc(t),Kc(t),Hc(t),$c(t)]}),kc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Uc(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 Yc(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 Zc(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({},Uc(e,r,t)),Yc(n,r,t))}}function Qc(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 Jc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Qc(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 es=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% + ${Lt(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% + ${Lt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var ts=Xi(["Button","compact"],(e=>{const t=Oc(e);return[Zc(t),Jc(t),es(t)]}),kc),ns=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 rs=t.forwardRef(((e,n)=>{var r,i,a;const{loading:l=!1,prefixCls:s,type:m,danger:g=!1,shape:v="default",size:h,styles:b,disabled:y,className:x,rootClassName:w,children:C,icon:E,iconPosition:S="start",ghost:$=!1,block:O=!1,htmlType:k="button",classNames:N,style:j={},autoInsertSpace:I}=e,M=ns(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),R=m||"default",{getPrefixCls:T,direction:_,button:A}=o(Zo),B=null===(r=null!=I?I:null==A?void 0:A.autoInsertSpace)||void 0===r||r,L=T("btn",s),[F,z,D]=Gc(L),H=o(ei),V=null!=y?y:H,W=o(pc),q=u((()=>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}}(l)),[l]),[X,K]=d(q.loading),[G,U]=d(!1),Y=te(n,p()),Z=1===f.count(C)&&!E&&!hc(R);c((()=>{let e=null;return q.delay>0?e=setTimeout((()=>{e=null,K(!0)}),q.delay):K(q.loading),function(){e&&(clearTimeout(e),e=null)}}),[q]),c((()=>{if(!Y||!Y.current||!B)return;const e=Y.current.textContent;Z&&gc(e)?G||U(!0):G&&U(!1)}),[Y]);const Q=t=>{const{onClick:n}=e;X||V?t.preventDefault():null==n||n(t)};if("production"!==process.env.NODE_ENV){const e=Nr("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof E&&E.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${E}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!($&&hc(R)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:J,compactItemClassnames:ee}=uc(L,_),ne={large:"lg",small:"sm",middle:void 0},re=cc((e=>{var t,n;return null!==(n=null!==(t=null!=h?h:J)&&void 0!==t?t:W)&&void 0!==n?n:e})),oe=re&&ne[re]||"",ie=X?"loading":E,ae=We(M,["navigate"]),le=P(L,z,D,{[`${L}-${v}`]:"default"!==v&&v,[`${L}-${R}`]:R,[`${L}-${oe}`]:oe,[`${L}-icon-only`]:!C&&0!==C&&!!ie,[`${L}-background-ghost`]:$&&!hc(R),[`${L}-loading`]:X,[`${L}-two-chinese-chars`]:G&&B&&!X,[`${L}-block`]:O,[`${L}-dangerous`]:g,[`${L}-rtl`]:"rtl"===_,[`${L}-icon-end`]:"end"===S},ee,x,w,null==A?void 0:A.className),ce=Object.assign(Object.assign({},null==A?void 0:A.style),j),se=P(null==N?void 0:N.icon,null===(i=null==A?void 0:A.classNames)||void 0===i?void 0:i.icon),ue=Object.assign(Object.assign({},(null==b?void 0:b.icon)||{}),(null===(a=null==A?void 0:A.styles)||void 0===a?void 0:a.icon)||{}),de=E&&!X?t.createElement(yc,{prefixCls:L,className:se,style:ue},E):t.createElement(Ec,{existIcon:!!E,prefixCls:L,loading:X}),fe=C||0===C?bc(C,Z&&B):null;if(void 0!==ae.href)return F(t.createElement("a",Object.assign({},ae,{className:P(le,{[`${L}-disabled`]:V}),href:V?void 0:ae.href,style:ce,onClick:Q,ref:Y,tabIndex:V?-1:0}),de,fe));let pe=t.createElement("button",Object.assign({},M,{type:k,className:le,style:ce,onClick:Q,disabled:V,ref:Y}),de,fe,!!ee&&t.createElement(ts,{key:"compact",prefixCls:L}));return hc(R)||(pe=t.createElement(lc,{component:"Button",disabled:X},pe)),F(pe)})),os=rs;os.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(Zo),{prefixCls:o,size:i,className:a}=t,l=fc(t,["prefixCls","size","className"]),c=n("btn-group",o),[,,s]=Ai();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=Nr("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"===r},a,s);return e.createElement(pc.Provider,{value:i},e.createElement("div",Object.assign({},l,{className:d})))},os.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(os.displayName="Button");var is=e.createContext(null),as=[];function ls(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,";"):"";vt("\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),gt(t),{width:f,height:p}}(e):{width:0,height:0}}var cs="rc-util-locker-".concat(Date.now()),ss=0;function us(t){var n=!!t,r=rt(e.useState((function(){return ss+=1,"".concat(cs,"_").concat(ss)})),1)[0];Wt((function(){if(n){var e=ls(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;vt("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else gt(r);return function(){gt(r)}}),[n,r])}var ds=function(e){return!1!==e&&(it()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},fs=e.forwardRef((function(t,n){var r=t.open,o=t.autoLock,i=t.getContainer,a=t.debug,l=t.autoDestroy,c=void 0===l||l,s=t.children,u=rt(e.useState(r),2),d=u[0],f=u[1],p=d||r;"production"!==process.env.NODE_ENV&&q(it()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),e.useEffect((function(){(c||r)&&f(r)}),[r,c]);var m=rt(e.useState((function(){return ds(i)})),2),g=m[0],v=m[1];e.useEffect((function(){var e=ds(i);v(null!=e?e:null)}));var h=function(t,n){var r=rt(e.useState((function(){if(!it())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&n&&e.setAttribute("data-debug",n),e})),1)[0],o=e.useRef(!1),i=e.useContext(is),a=rt(e.useState(as),2),l=a[0],c=a[1],s=i||(o.current?void 0:function(e){c((function(t){return[e].concat(Ge(t))}))});function u(){r.parentElement||document.body.appendChild(r),o.current=!0}function d(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}return Wt((function(){return t?i?i(u):u():d(),d}),[t]),Wt((function(){l.length&&(l.forEach((function(e){return e()})),c(as))}),[l]),[r,s]}(p&&!g,a),b=rt(h,2),x=b[0],w=b[1],C=null!=g?g:x;us(o&&r&&it()&&(C===x||C===document.body));var E=null;s&&re(s)&&n&&(E=s.ref);var S=ne(E,n);if(!p||!it()||void 0===g)return null;var $=!1===C||!1,O=s;return n&&(O=e.cloneElement(s,{ref:S})),e.createElement(is.Provider,{value:w},$?O:y(O,C))}));"production"!==process.env.NODE_ENV&&(fs.displayName="Portal");var ps=0,ms=Y({},e).useId,gs=ms?function(e){var t=ms();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(t){var n=rt(e.useState("ssr-id"),2),r=n[0],o=n[1];return e.useEffect((function(){var e=ps;ps+=1,o("rc_unique_".concat(e))}),[]),t||("test"===process.env.NODE_ENV?"test-id":r)},vs="RC_FORM_INTERNAL_HOOKS",hs=function(){q(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},bs=e.createContext({getFieldValue:hs,getFieldsValue:hs,getFieldError:hs,getFieldWarning:hs,getFieldsError:hs,isFieldsTouched:hs,isFieldTouched:hs,isFieldValidating:hs,isFieldsValidating:hs,resetFields:hs,setFields:hs,setFieldValue:hs,setFieldsValue:hs,validateFields:hs,submit:hs,getInternalHooks:function(){return hs(),{dispatch:hs,initEntityValue:hs,registerField:hs,useSubscribe:hs,setInitialValues:hs,destroyForm:hs,setCallbacks:hs,registerWatch:hs,getFields:hs,setValidateMessages:hs,setPreserve:hs,getInitialValue:hs}}}),ys=e.createContext(null);function xs(e){return null==e?[]:Array.isArray(e)?e:[e]}function ws(){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 Cs=ws();function Es(e){var t="function"==typeof Map?new Map:void 0;return Es=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(Ae())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Re(o,n.prototype),o}(e,arguments,_e(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Re(n,e)},Es(e)}var Ss=/%[sdj%]/g,$s=function(){};function Os(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 ks(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(Ss,(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 Ns(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 js(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&&($s=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(){Te(t,Es(Error));var e=Le(t);function t(n,r){var o;return Pe(this,t),G(Be(o=e.call(this,"Async Validation Error")),"errors",void 0),G(Be(o),"fields",void 0),o.errors=n,o.fields=r,o}return Me(t)}();function Is(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,Ge(e[n]||[]))})),t}(e);js(a,n,(function(e){return r(e),e.length?i(new Ps(e,Os(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,Os(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?js(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Ge(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 Rs(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===X(r)&&"object"===X(e[n])?e[n]=Y(Y({},e[n]),r):e[n]=r}return e}var Ts,_s="enum",As=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Ns(t,i||e.type)||r.push(ks(o.messages.required,e.fullField))},Bs=/^(([^<>()\[\]\\.,;:\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,}))$/,Ls=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Fs={integer:function(e){return Fs.number(e)&&parseInt(e,10)===e},float:function(e){return Fs.number(e)&&!Fs.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"===X(e)&&!Fs.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Bs)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Ts)return Ts;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 Ts=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Ls)}},zs={required:As,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(ks(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)As(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Fs[i](t)||r.push(ks(o.messages.types[i],e.fullField,e.type)):i&&X(t)!==e.type&&r.push(ks(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(ks(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(ks(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(ks(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(ks(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[_s]=Array.isArray(e[_s])?e[_s]:[],-1===e[_s].indexOf(t)&&r.push(ks(o.messages[_s],e.fullField,e[_s].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(ks(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(ks(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Ds=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ns(t,i)&&!e.required)return n();zs.required(e,t,r,a,o,i),Ns(t,i)||zs.type(e,t,r,a,o)}n(a)},Hs={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ns(t,"string")&&!e.required)return n();zs.required(e,t,r,i,o,"string"),Ns(t,"string")||(zs.type(e,t,r,i,o),zs.range(e,t,r,i,o),zs.pattern(e,t,r,i,o),!0===e.whitespace&&zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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),Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&(zs.type(e,t,r,i,o),zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),Ns(t)||zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&(zs.type(e,t,r,i,o),zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&(zs.type(e,t,r,i,o),zs.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();zs.required(e,t,r,i,o,"array"),null!=t&&(zs.type(e,t,r,i,o),zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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(Ns(t,"string")&&!e.required)return n();zs.required(e,t,r,i,o),Ns(t,"string")||zs.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(Ns(t,"date")&&!e.required)return n();var a;if(zs.required(e,t,r,i,o),!Ns(t,"date"))a=t instanceof Date?t:new Date(t),zs.type(e,a,r,i,o),a&&zs.range(e,a.getTime(),r,i,o)}n(i)},url:Ds,hex:Ds,email:Ds,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":X(t);zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o)}n(i)}},Vs=function(){function e(t){Pe(this,e),G(this,"rules",null),G(this,"_messages",Cs),this.define(t)}return Me(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==X(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=Rs(ws(),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===Cs&&(a=ws()),Rs(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=Y({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":X(i)))),(a="function"==typeof a?{validator:a}:Y({},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 Is(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==X(a.fields)&&"object"!==X(a.defaultField));function s(e,t){return Y(Y({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Ge(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,ks(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=Y(Y({},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,Ge(d)),e&&e.length&&t.push.apply(t,Ge(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,Ge(t)):o.push(t);o.length?(a=Os(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&&!Hs.hasOwnProperty(e.type))throw new Error(ks("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]?Hs.required:Hs[this.getType(e)]||void 0}}]),e}();G(Vs,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Hs[e]=t})),G(Vs,"warning",$s),G(Vs,"messages",Cs),G(Vs,"validators",Hs);var Ws="'${name}' is not a valid ${type}",qs={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:Ws,method:Ws,array:Ws,object:Ws,number:Ws,date:Ws,boolean:Ws,integer:Ws,float:Ws,regexp:Ws,email:Ws,url:Ws,hex:Ws},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}"}},Xs=Vs;function Ks(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 Gs="CODE_LOGIC_ERROR";function Us(e,t,n,r,o){return Ys.apply(this,arguments)}function Ys(){return Ys=Rl(Il().mark((function t(n,r,o,i,a){var l,c,s,u,d,f,p,m,g;return Il().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(l=Y({},o)).ruleIndex,Xs.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(Gs)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new Xs(G({},n,[l])),d=Er(qs,i.validateMessages),u.messages(d),f=[],t.prev=10,t.next=13,Promise.resolve(u.validate(G({},n,r),Y({},i)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(f=t.t0.errors.map((function(t,n){var r=t.message,o=r===Gs?d.default:r;return e.isValidElement(o)?e.cloneElement(o,{key:"error_".concat(n)}):o})));case 18:if(f.length||!s){t.next=23;break}return t.next=21,Promise.all(r.map((function(e,t){return Us("".concat(n,".").concat(t),e,s,i,a)})));case 21:return p=t.sent,t.abrupt("return",p.reduce((function(e,t){return[].concat(Ge(e),Ge(t))}),[]));case 23:return m=Y(Y({},o),{},{name:n,enum:(o.enum||[]).join(", ")},a),g=f.map((function(e){return"string"==typeof e?Ks(e,m):e})),t.abrupt("return",g);case 26:case"end":return t.stop()}}),t,null,[[10,15]])}))),Ys.apply(this,arguments)}function Zs(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=Y(Y({},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(){q(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));q(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=Rl(Il().mark((function e(n,o){var a,s,u;return Il().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,Us(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 Us(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return Js.apply(this,arguments)}(s):function(e){return Qs.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Qs(){return(Qs=Rl(Il().mark((function e(t){return Il().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,Ge(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Js(){return(Js=Rl(Il().mark((function e(t){var n;return Il().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 eu(e){return xs(e)}function tu(e,t){var n={};return t.forEach((function(t){var r=br(e,t);n=xr(n,t,r)})),n}function nu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return ru(t,e,n)}))}function ru(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 ou(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===X(t.target)&&e in t.target?t.target[e]:t}function iu(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(Ge(e.slice(0,n)),[o],Ge(e.slice(n,t)),Ge(e.slice(t+1,r))):i<0?[].concat(Ge(e.slice(0,t)),Ge(e.slice(t+1,n+1)),[o],Ge(e.slice(n+1,r))):e}var au=["name"],lu=[];function cu(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var su=function(){Te(n,e.Component);var t=Le(n);function n(r){var o;(Pe(this,n),G(Be(o=t.call(this,r)),"state",{resetCount:0}),G(Be(o),"cancelRegisterFunc",null),G(Be(o),"mounted",!1),G(Be(o),"touched",!1),G(Be(o),"dirty",!1),G(Be(o),"validatePromise",void 0),G(Be(o),"prevValidating",void 0),G(Be(o),"errors",lu),G(Be(o),"warnings",lu),G(Be(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,eu(r)),o.cancelRegisterFunc=null})),G(Be(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Ge(void 0===n?[]:n),Ge(t)):[]})),G(Be(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}))})),G(Be(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),G(Be(o),"metaCache",null),G(Be(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=Y(Y({},o.getMeta()),{},{destroy:e});bt(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),G(Be(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&&nu(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||bt(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=lu,o.warnings=lu,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=lu,o.warnings=lu,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&cu(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||lu),"warnings"in m&&(o.warnings=m.warnings||lu),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&nu(t,u,!0))return void o.reRender();if(i&&!u.length&&cu(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(eu).some((function(e){return nu(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&cu(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),G(Be(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(Rl(Il().mark((function r(){var a,l,s,u,d,f,p;return Il().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||xs(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=Zs(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lu;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?lu:o;t?r.push.apply(r,Ge(i)):n.push.apply(n,Ge(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=lu,o.warnings=lu,o.triggerMetaEvent(),o.reRender()),c})),G(Be(o),"isFieldValidating",(function(){return!!o.validatePromise})),G(Be(o),"isFieldTouched",(function(){return o.touched})),G(Be(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(vs).getInitialValue)(o.getNamePath())})),G(Be(o),"getErrors",(function(){return o.errors})),G(Be(o),"getWarnings",(function(){return o.warnings})),G(Be(o),"isListField",(function(){return o.props.isListField})),G(Be(o),"isList",(function(){return o.props.isList})),G(Be(o),"isPreserve",(function(){return o.props.preserve})),G(Be(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}})),G(Be(o),"getOnlyChild",(function(t){if("function"==typeof t){var n=o.getMeta();return Y(Y({},o.getOnlyChild(t(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=L(t);return 1===r.length&&e.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),G(Be(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return br(e||t(!0),n)})),G(Be(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(vs).dispatch,v=o.getValue(),h=s||function(e){return G({},c,e)},b=e[r],y=void 0!==n?h(v):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){q("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=Y(Y({},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):ou.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)},xs(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})),r.fieldContext)&&(0,(0,r.fieldContext.getInternalHooks)(vs).initEntityValue)(Be(o));return o}return Me(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(vs).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 t,n=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),i=o.child;return o.isFunction?t=i:e.isValidElement(i)?t=e.cloneElement(i,this.getControlled(i.props)):(q(!i,"`children` of Field is not validate ReactElement."),t=i),e.createElement(e.Fragment,{key:n},t)}}]),n}();function uu(t){var n=t.name,r=ht(t,au),o=e.useContext(bs),i=e.useContext(ys),a=void 0!==n?eu(n):void 0,l="keep";return r.isListField||(l="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===r.preserve&&r.isListField&&a.length<=1&&q(!1,"`preserve` should not apply on Form.List fields."),e.createElement(su,I({key:l,name:a,isListField:!!i},r,{fieldContext:o}))}G(su,"contextType",bs),G(su,"defaultProps",{trigger:"onChange",valuePropName:"value"});var du="__@field_split__";function fu(e){return e.map((function(e){return"".concat(X(e),":").concat(e)})).join(du)}var pu=function(){function e(){Pe(this,e),G(this,"kvs",new Map)}return Me(e,[{key:"set",value:function(e,t){this.kvs.set(fu(e),t)}},{key:"get",value:function(e){return this.kvs.get(fu(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(fu(e))}},{key:"map",value:function(e){return Ge(this.kvs.entries()).map((function(t){var n=rt(t,2),r=n[0],o=n[1],i=r.split(du);return e({key:i.map((function(e){var t=rt(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}(),mu=["name"],gu=Me((function e(t){var n=this;Pe(this,e),G(this,"formHooked",!1),G(this,"forceRootUpdate",void 0),G(this,"subscribable",!0),G(this,"store",{}),G(this,"fieldEntities",[]),G(this,"initialValues",{}),G(this,"callbacks",{}),G(this,"validateMessages",null),G(this,"preserve",null),G(this,"lastValidatePromise",null),G(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}})),G(this,"getInternalHooks",(function(e){return e===vs?(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}):(q(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),G(this,"useSubscribe",(function(e){n.subscribable=e})),G(this,"prevWithoutPreserves",null),G(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Er(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=xr(o,n,br(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),G(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new pu;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),G(this,"getInitialValue",(function(e){var t=br(n.initialValues,e);return e.length?Er(t):t})),G(this,"setCallbacks",(function(e){n.callbacks=e})),G(this,"setValidateMessages",(function(e){n.validateMessages=e})),G(this,"setPreserve",(function(e){n.preserve=e})),G(this,"watchList",[]),G(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),G(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)}))}})),G(this,"timeoutId",null),G(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||q(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),G(this,"updateStore",(function(e){n.store=e})),G(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),G(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new pu;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),G(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=eu(e);return t.get(n)||{INVALIDATE_NAME_PATH:eu(e)}}))})),G(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===X(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)})),tu(n.store,l.map(eu))})),G(this,"getFieldValue",(function(e){n.warningUnhooked();var t=eu(e);return br(n.store,t)})),G(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:eu(e[n]),errors:[],warnings:[]}}))})),G(this,"getFieldError",(function(e){n.warningUnhooked();var t=eu(e);return n.getFieldsError([t])[0].errors})),G(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=eu(e);return n.getFieldsError([t])[0].warnings})),G(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(eu),l=!1):(o=null,l=i):(o=i.map(eu),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 pu;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(Ge(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)})),G(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),G(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(eu);return t.some((function(e){var t=e.getNamePath();return nu(r,t)&&e.isFieldValidating()}))})),G(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),G(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new pu,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,Ge(Ge(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))q(!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)q(!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(xr(n.store,o,Ge(i)[0].value))}}}}))})),G(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Er(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(eu);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(xr(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),G(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=ht(e,mu),a=eu(o);r.push(a),"value"in i&&n.updateStore(xr(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),G(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Y(Y({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),G(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===br(n.store,r)&&n.updateStore(xr(n.store,r,t))}})),G(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),G(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!ru(e.getNamePath(),t)}))){var l=n.store;n.updateStore(xr(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),G(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})}})),G(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Y(Y({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),G(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(Ge(r))}),r})),G(this,"updateValue",(function(e,t){var r=eu(e),o=n.store;n.updateStore(xr(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(tu(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Ge(i)))})),G(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Er(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),G(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),G(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new pu;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=eu(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})),G(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new pu;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 nu(e,n)}));a.length&&r(a,o)}})),G(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(eu):[],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||nu(a,t,d)){var r=e.validateRules(Y({validateMessages:Y(Y({},qs),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,Ge(n)):r.push.apply(r,Ge(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})),G(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 vu(t){var n=e.useRef(),r=rt(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var o=new gu((function(){r({})}));n.current=o.getForm()}return[n.current]}var hu=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),bu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],yu=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,c=t.children,s=t.component,u=void 0===s?"form":s,d=t.validateMessages,f=t.validateTrigger,p=void 0===f?"onChange":f,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,h=t.onFinishFailed,b=t.clearOnDestroy,y=ht(t,bu),x=e.useRef(null),w=e.useContext(hu),C=rt(vu(a),1)[0],E=C.getInternalHooks(vs),S=E.useSubscribe,$=E.setInitialValues,O=E.setCallbacks,k=E.setValidateMessages,N=E.setPreserve,j=E.destroyForm;e.useImperativeHandle(n,(function(){return Y(Y({},C),{},{nativeElement:x.current})})),e.useEffect((function(){return w.registerForm(r,C),function(){w.unregisterForm(r)}}),[w,C,r]),k(Y(Y({},w.validateMessages),d)),O({onValuesChange:m,onFieldsChange:function(e){if(w.triggerFormChange(r,e),g){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];g.apply(void 0,[e].concat(n))}},onFinish:function(e){w.triggerFormFinish(r,e),v&&v(e)},onFinishFailed:h}),N(l);var P,M=e.useRef(null);$(o,!M.current),M.current||(M.current=!0),e.useEffect((function(){return function(){return j(b)}}),[]);var R="function"==typeof c;R?P=c(C.getFieldsValue(!0),C):P=c;S(!R);var T=e.useRef();e.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==X(e)||"object"!==X(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Ge(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 _=e.useMemo((function(){return Y(Y({},C),{},{validateTrigger:p})}),[C,p]),A=e.createElement(ys.Provider,{value:null},e.createElement(bs.Provider,{value:_},P));return!1===u?A:e.createElement(u,I({},y,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),C.submit()},onReset:function(e){var t;e.preventDefault(),C.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),A)};function xu(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var wu="production"!==process.env.NODE_ENV?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__");q(a(t).current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var Cu=e.forwardRef(yu);Cu.FormProvider=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=e.useContext(hu),l=e.useRef({});return e.createElement(hu.Provider,{value:Y(Y({},a),{},{validateMessages:Y(Y({},a.validateMessages),n),triggerFormChange:function(e,t){r&&r(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=Y(Y({},l.current),{},G({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Y({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},Cu.Field=uu,Cu.List=function(t){var n=t.name,r=t.initialValue,o=t.children,i=t.rules,a=t.validateTrigger,l=t.isListField,c=e.useContext(bs),s=e.useContext(ys),u=e.useRef({keys:[],id:0}).current,d=e.useMemo((function(){var e=eu(c.prefixName)||[];return[].concat(Ge(e),Ge(eu(n)))}),[c.prefixName,n]),f=e.useMemo((function(){return Y(Y({},c),{},{prefixName:d})}),[c,d]),p=e.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?(q(!1,"Form.List only accepts function as children."),null):e.createElement(ys.Provider,{value:p},e.createElement(bs.Provider,{value:f},e.createElement(uu,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:r,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(Ge(u.keys.slice(0,t)),[u.id],Ge(u.keys.slice(t))),i([].concat(Ge(n.slice(0,t)),[e],Ge(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&q(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Ge(u.keys),[u.id]),i([].concat(Ge(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=iu(u.keys,e,t),i(iu(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[],"production"!==process.env.NODE_ENV&&q(!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)}))))},Cu.useForm=vu,Cu.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],l=void 0===i?{}:i,s=function(e){return e&&!!e._init}(l)?{form:l}:l,f=s.form,p=rt(d(),2),m=p[0],g=p[1],v=u((function(){return xu(m)}),[m]),h=a(v);h.current=v;var b=o(bs),y=f||b,x=y&&y._init;"production"!==process.env.NODE_ENV&&q(2===t.length&&!f||x,"useWatch requires a form instance since it can not auto detect from context.");var w=eu(r),C=a(w);return C.current=w,wu(w),c((function(){if(x){var e=y.getFieldsValue,t=(0,y.getInternalHooks)(vs).registerWatch,n=function(e,t){var n=s.preserve?t:e;return"function"==typeof r?r(n):br(n,C.current)},o=t((function(e,t){var r=n(e,t),o=xu(r);h.current!==o&&(h.current=o,g(r))})),i=n(e(),e(!0));return m!==i&&g(i),o}}),[x]),m};const Eu=e.createContext({});"production"!==process.env.NODE_ENV&&(Eu.displayName="FormItemInputContext");const Su=t=>{let{children:n,status:r,override:i}=t;const a=o(Eu),l=u((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,i,a]);return e.createElement(Eu.Provider,{value:l},n)},$u=i(void 0),Ou=e=>{const{space:n,form:r,children:o}=e;if(null==o)return null;let i=o;return r&&(i=t.createElement(Su,{override:!0,status:!0},i)),n&&(i=t.createElement(dc,null,i)),i};var ku=function(e){if(it()&&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 Nu(e,t){return Array.isArray(e)||void 0===t?ku(e):function(e,t){if(!ku(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}const ju=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"}),Iu=e=>({animationDuration:e,animationFillMode:"both"}),Mu=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({},Iu(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"}}},Ru={"slide-up":{inKeyframes:new gr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new gr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new gr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new gr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new gr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new gr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new gr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new gr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},Tu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Ru[t];return[Mu(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}}]},_u=new gr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Au=new gr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Bu=new gr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Lu=new gr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Fu=new gr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zu=new gr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Du={zoom:{inKeyframes:_u,outKeyframes:Au},"zoom-big":{inKeyframes:Bu,outKeyframes:Lu},"zoom-big-fast":{inKeyframes:Bu,outKeyframes:Lu},"zoom-left":{inKeyframes:new gr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new gr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new gr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new gr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Fu,outKeyframes:zu},"zoom-down":{inKeyframes:new gr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new gr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Hu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Du[t];return[Mu(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 Vu=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))},Wu=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],qu=void 0;function Xu(t,n){var r=t.prefixCls,o=t.invalidate,i=t.item,a=t.renderItem,l=t.responsive,c=t.responsiveDisabled,s=t.registerSize,u=t.itemKey,d=t.className,f=t.style,p=t.children,m=t.display,g=t.order,v=t.component,h=void 0===v?"div":v,b=ht(t,Wu),y=l&&!m;function x(e){s(u,e)}e.useEffect((function(){return function(){x(null)}}),[]);var w,C=a&&i!==qu?a(i):p;o||(w={opacity:y?0:1,height:y?0:qu,overflowY:y?"hidden":qu,order:l?g:qu,pointerEvents:y?"none":qu,position:y?"absolute":qu});var E={};y&&(E["aria-hidden"]=!0);var S=e.createElement(h,I({className:P(!o&&r,d),style:Y(Y({},w),f)},E,b,{ref:n}),C);return l&&(S=e.createElement(Ve,{onResize:function(e){x(e.offsetWidth)},disabled:c},S)),S}var Ku=e.forwardRef(Xu);function Gu(){var t=e.useRef(null);return function(e){t.current||(t.current=[],function(e){if("undefined"==typeof MessageChannel)et(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){x((function(){t.current.forEach((function(e){e()})),t.current=null}))}))),t.current.push(e)}}function Uu(t,n){var r=rt(e.useState(n),2),o=r[0],i=r[1];return[o,di((function(e){t((function(){i(e)}))}))]}Ku.displayName="Item";var Yu=t.createContext(null),Zu=["component"],Qu=["className"],Ju=["className"],ed=function(t,n){var r=e.useContext(Yu);if(!r){var o=t.component,i=void 0===o?"div":o,a=ht(t,Zu);return e.createElement(i,I({},a,{ref:n}))}var l=r.className,c=ht(r,Qu),s=t.className,u=ht(t,Ju);return e.createElement(Yu.Provider,{value:null},e.createElement(Ku,I({ref:n,className:P(l,s)},c,u)))},td=e.forwardRef(ed);td.displayName="RawItem";var nd=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],rd="responsive",od="invalidate";function id(e){return"+ ".concat(e.length," ...")}function ad(t,n){var r=t.prefixCls,o=void 0===r?"rc-overflow":r,i=t.data,a=void 0===i?[]:i,l=t.renderItem,c=t.renderRawItem,s=t.itemKey,f=t.itemWidth,p=void 0===f?10:f,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=ht(t,nd),k="full"===g,N=Gu(),j=rt(Uu(N,null),2),M=j[0],R=j[1],T=M||0,_=rt(Uu(N,new Map),2),A=_[0],B=_[1],L=rt(Uu(N,0),2),F=L[0],z=L[1],D=rt(Uu(N,0),2),H=D[0],V=D[1],W=rt(Uu(N,0),2),q=W[0],X=W[1],K=rt(d(null),2),G=K[0],U=K[1],Z=rt(d(null),2),Q=Z[0],J=Z[1],ee=e.useMemo((function(){return null===Q&&k?Number.MAX_SAFE_INTEGER:Q||0}),[Q,M]),te=rt(d(!1),2),ne=te[0],re=te[1],oe="".concat(o,"-item"),ie=Math.max(F,H),ae=b===rd,le=a.length&&ae,ce=b===od,se=le||"number"==typeof b&&a.length>b,ue=u((function(){var e=a;return le?e=null===M&&k?a:a.slice(0,Math.min(a.length,T/p)):"number"==typeof b&&(e=a.slice(0,b)),e}),[a,p,M,b,le]),de=u((function(){return le?a.slice(ee+1):a.slice(ue.length)}),[a,ue,le,ee]),fe=m((function(e,t){var n;return"function"==typeof s?s(e):null!==(n=s&&(null==e?void 0:e[s]))&&void 0!==n?n:t}),[s]),pe=m(l||function(e){return e},[l]);function me(e,t,n){(Q!==e||void 0!==t&&t!==G)&&(J(e),n||(re(e<a.length-1),null==$||$(e)),void 0!==t&&U(t))}function ge(e,t){B((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function ve(e){return A.get(fe(ue[e],e))}Wt((function(){if(T&&"number"==typeof ie&&ue){var e=q,t=ue.length,n=t-1;if(!t)return void me(0,null);for(var r=0;r<t;r+=1){var o=ve(r);if(k&&(o=o||0),void 0===o){me(r-1,void 0,!0);break}if(e+=o,0===n&&e<=T||r===n-1&&e+ve(n)<=T){me(n,null);break}if(e+ie>T){me(r-1,e-o-q+H);break}}w&&ve(0)+q>T&&U(null)}}),[T,A,H,q,fe,ue]);var he=ne&&!!de.length,be={};null!==G&&le&&(be={position:"absolute",left:G,top:0});var ye,xe={prefixCls:oe,responsive:le,component:S,invalidate:ce},we=c?function(t,n){var r=fe(t,n);return e.createElement(Yu.Provider,{key:r,value:Y(Y({},xe),{},{order:n,item:t,itemKey:r,registerSize:ge,display:n<=ee})},c(t,n))}:function(t,n){var r=fe(t,n);return e.createElement(Ku,I({},xe,{order:n,key:r,item:t,renderItem:pe,itemKey:r,registerSize:ge,display:n<=ee}))},Ce={order:he?ee:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:function(e,t){V(t),z(H)},display:he};if(x)x&&(ye=e.createElement(Yu.Provider,{value:Y(Y({},xe),Ce)},x(de)));else{var Ee=y||id;ye=e.createElement(Ku,I({},xe,Ce),"function"==typeof Ee?Ee(de):Ee)}var Se=e.createElement(E,I({className:P(!ce&&o,h),style:v,ref:n},O),ue.map(we),se?ye:null,w&&e.createElement(Ku,I({},xe,{responsive:ae,responsiveDisabled:!le,order:ee,className:"".concat(oe,"-suffix"),registerSize:function(e,t){X(t)},display:!0,style:be}),w));return ae&&(Se=e.createElement(Ve,{onResize:function(e,t){R(t.clientWidth)},disabled:!le},Se)),Se}var ld=e.forwardRef(ad);function cd(t){var n=t.prefixCls,r=t.align,o=t.arrow,i=t.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,p=e.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(!1!==r.autoArrow){var g=r.points[0],v=r.points[1],h=g[0],b=g[1],y=v[0],x=v[1];h!==y&&["t","b"].includes(h)?"t"===h?m.top=0:m.bottom=0:m.top=f,b!==x&&["l","r"].includes(b)?"l"===b?m.left=0:m.right=0:m.left=u}return e.createElement("div",{ref:p,className:P("".concat(n,"-arrow"),l),style:m},c)}function sd(t){var n=t.prefixCls,r=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Ma,I({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:P("".concat(n,"-mask"),r)})})):null}ld.displayName="Overflow",ld.Item=td,ld.RESPONSIVE=rd,ld.INVALIDATE=od;var ud=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(ud.displayName="PopupContent");var dd=e.forwardRef((function(t,n){var r=t.popup,o=t.className,i=t.prefixCls,a=t.style,l=t.target,c=t.onVisibleChanged,s=t.open,u=t.keepDom,d=t.fresh,f=t.onClick,p=t.mask,m=t.arrow,g=t.arrowPos,v=t.align,h=t.motion,b=t.maskMotion,y=t.forceRender,x=t.getPopupContainer,w=t.autoDestroy,C=t.portal,E=t.zIndex,S=t.onMouseEnter,$=t.onMouseLeave,O=t.onPointerEnter,k=t.ready,N=t.offsetX,j=t.offsetY,M=t.offsetR,R=t.offsetB,T=t.onAlign,_=t.onPrepare,A=t.stretch,B=t.targetWidth,L=t.targetHeight,F="function"==typeof r?r():r,z=s||u,D=(null==x?void 0:x.length)>0,H=rt(e.useState(!x||!D),2),V=H[0],W=H[1];if(Wt((function(){!V&&D&&l&&W(!0)}),[V,D,l]),!V)return null;var q="auto",X={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(k||!s){var K,G=v.points,U=v.dynamicInset||(null===(K=v._experimental)||void 0===K?void 0:K.dynamicInset),Z=U&&"r"===G[0][1],Q=U&&"b"===G[0][0];Z?(X.right=M,X.left=q):(X.left=N,X.right=q),Q?(X.bottom=R,X.top=q):(X.top=j,X.bottom=q)}var J={};return A&&(A.includes("height")&&L?J.height=L:A.includes("minHeight")&&L&&(J.minHeight=L),A.includes("width")&&B?J.width=B:A.includes("minWidth")&&B&&(J.minWidth=B)),s||(J.pointerEvents="none"),e.createElement(C,{open:y||z,getContainer:x&&function(){return x(l)},autoDestroy:w},e.createElement(sd,{prefixCls:i,open:s,zIndex:E,mask:p,motion:b}),e.createElement(Ve,{onResize:T,disabled:!s},(function(t){return e.createElement(Ma,I({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},h,{onAppearPrepare:_,onEnterPrepare:_,visible:s,onVisibleChanged:function(e){var t;null==h||null===(t=h.onVisibleChanged)||void 0===t||t.call(h,e),c(e)}}),(function(r,l){var c=r.className,u=r.style,p=P(i,c,o);return e.createElement("div",{ref:te(t,n,l),className:p,style:Y(Y(Y(Y({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},X),J),u),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:S,onMouseLeave:$,onPointerEnter:O,onClick:f},m&&e.createElement(cd,{prefixCls:i,arrow:m,arrowPos:g,align:v}),e.createElement(ud,{cache:!s&&!d},F))}))})))}));"production"!==process.env.NODE_ENV&&(dd.displayName="Popup");var fd=e.forwardRef((function(t,n){var r=t.children,o=t.getTriggerDOMNode,i=re(r),a=e.useCallback((function(e){ee(n,o?o(e):e)}),[o]),l=ne(a,r.ref);return i?e.cloneElement(r,{ref:l}):r}));"production"!==process.env.NODE_ENV&&(fd.displayName="TriggerWrapper");var pd=e.createContext(null);function md(e){return e?Array.isArray(e)?e:[e]:[]}function gd(){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 vd(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function hd(e){return e.ownerDocument.defaultView}function bd(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=hd(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 yd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function xd(e){return yd(parseFloat(e),0)}function wd(e,t){var n=Y({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=hd(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=xd(i),g=xd(a),v=xd(l),h=xd(c),b=yd(Math.round(s.width/f*1e3)/1e3),y=yd(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=xd(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,M=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,M)}})),n}function Cd(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 Ed(e,t){var n=rt(t||[],2),r=n[0],o=n[1];return[Cd(e.width,r),Cd(e.height,o)]}function Sd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function $d(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 Od(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 kd=["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 Nd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fs,n=e.forwardRef((function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,l=n.action,c=void 0===l?"hover":l,s=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,h=void 0===v?.1:v,b=n.focusDelay,y=n.blurDelay,x=n.mask,w=n.maskClosable,C=void 0===w||w,E=n.getPopupContainer,S=n.forceRender,$=n.autoDestroy,O=n.destroyPopupOnHide,k=n.popup,N=n.popupClassName,j=n.popupStyle,I=n.popupPlacement,M=n.builtinPlacements,R=void 0===M?{}:M,T=n.popupAlign,_=n.zIndex,A=n.stretch,B=n.getPopupClassNameFromAlign,L=n.fresh,F=n.alignPoint,z=n.onPopupClick,H=n.onPopupAlign,V=n.arrow,W=n.popupMotion,q=n.maskMotion,X=n.popupTransitionName,K=n.popupAnimation,G=n.maskTransitionName,U=n.maskAnimation,Q=n.className,J=n.getTriggerDOMNode,ee=ht(n,kd),te=$||O||!1,ne=rt(e.useState(!1),2),re=ne[0],oe=ne[1];Wt((function(){oe(Vu())}),[]);var ie=e.useRef({}),ae=e.useContext(pd),le=e.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),ce=gs(),se=rt(e.useState(null),2),ue=se[0],de=se[1],fe=e.useRef(null),pe=di((function(e){fe.current=e,Z(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(ce,e)})),me=rt(e.useState(null),2),ge=me[0],ve=me[1],he=e.useRef(null),be=di((function(e){Z(e)&&ge!==e&&(ve(e),he.current=e)})),ye=e.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=Qa(t))||void 0===n?void 0:n.host)===e||t.contains(null===(r=Qa(e))||void 0===r?void 0:r.host)},Ee=di((function(e){var t=ge,n=Ce.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Se=vd(i,W,K,X),$e=vd(i,q,U,G),Oe=rt(e.useState(f||!1),2),ke=Oe[0],Ne=Oe[1],je=null!=d?d:ke,Pe=di((function(e){void 0===d&&Ne(e)}));Wt((function(){Ne(d||!1)}),[d]);var Ie=e.useRef(je);Ie.current=je;var Me=e.useRef([]);Me.current=[];var Re=di((function(e){var t;Pe(e),(null!==(t=Me.current[Me.current.length-1])&&void 0!==t?t:je)!==e&&(Me.current.push(e),null==p||p(e))})),Te=e.useRef(),_e=function(){clearTimeout(Te.current)},Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_e(),0===t?Re(e):Te.current=setTimeout((function(){Re(e)}),1e3*t)};e.useEffect((function(){return _e}),[]);var Be=rt(e.useState(!1),2),Le=Be[0],Fe=Be[1];Wt((function(e){e&&!je||Fe(!0)}),[je]);var ze=rt(e.useState(null),2),De=ze[0],He=ze[1],We=rt(e.useState(null),2),qe=We[0],Xe=We[1],Ke=function(e){Xe([e.clientX,e.clientY])},Ue=function(t,n,r,o,i,a,l){var c=rt(e.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=e.useRef(0),f=e.useMemo((function(){return n?bd(n):[]}),[n]),p=e.useRef({});t||(p.current={});var m=di((function(){if(n&&r&&t){var e,c,s,d,m,g=n,v=g.ownerDocument,h=hd(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=Y(Y({},i[o]),a),k=v.createElement("div");if(null===(e=g.parentElement)||void 0===e||e.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(r))m={x:r[0],y:r[1],width:0,height:0};else{var N,j,P=r.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 M=v.documentElement,R=M.clientWidth,T=M.clientHeight,_=M.scrollWidth,A=M.scrollHeight,B=M.scrollTop,L=M.scrollLeft,F=I.height,z=I.width,D=m.height,H=m.width,V={left:0,top:0,right:R,bottom:T},W={left:-L,top:-B,right:_-L,bottom:A-B},q=O.htmlRegion,X="visible",K="visibleFirst";"scroll"!==q&&q!==K&&(q=X);var G=q===K,U=wd(W,f),Q=wd(V,f),J=q===X?Q:U,ee=G?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=yd(Math.round(z/parseFloat(b)*1e3)/1e3),re=yd(Math.round(F/parseFloat(y)*1e3)/1e3);if(0===ne||0===re||Z(r)&&!Ql(r))return;var oe=O.offset,ie=O.targetOffset,ae=rt(Ed(I,oe),2),le=ae[0],ce=ae[1],se=rt(Ed(m,ie),2),ue=se[0],de=se[1];m.x-=ue,m.y-=de;var fe=rt(O.points||[],2),pe=fe[0],me=Sd(fe[1]),ge=Sd(pe),ve=$d(m,me),he=$d(I,ge),be=Y({},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+z,a=o+F,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=$d(m,["t","l"]),Ne=$d(I,["t","l"]),je=$d(m,["b","r"]),Pe=$d(I,["b","r"]),Ie=O.overflow||{},Me=Ie.adjustX,Re=Ie.adjustY,Te=Ie.shiftX,_e=Ie.shiftY,Ae=function(e){return"boolean"==typeof e?e:e>=0};function gt(){we=I.y+xe,Ce=we+F,Ee=I.x+ye,Se=Ee+z}gt();var Be=Ae(Re),Le=ge[0]===me[0];if(Be&&"t"===ge[0]&&(Ce>ee.bottom||p.current.bt)){var Fe=xe;Le?Fe-=F-D:Fe=ke.y-Pe.y-ce;var ze=mt(ye,Fe),De=mt(ye,Fe,Q);ze>$e||ze===$e&&(!G||De>=Oe)?(p.current.bt=!0,xe=Fe,ce=-ce,be.points=[Od(ge,0),Od(me,0)]):p.current.bt=!1}if(Be&&"b"===ge[0]&&(we<ee.top||p.current.tb)){var He=xe;Le?He+=F-D:He=je.y-Ne.y-ce;var Ve=mt(ye,He),We=mt(ye,He,Q);Ve>$e||Ve===$e&&(!G||We>=Oe)?(p.current.tb=!0,xe=He,ce=-ce,be.points=[Od(ge,0),Od(me,0)]):p.current.tb=!1}var qe=Ae(Me),Xe=ge[1]===me[1];if(qe&&"l"===ge[1]&&(Se>ee.right||p.current.rl)){var Ke=ye;Xe?Ke-=z-H:Ke=ke.x-Pe.x-le;var Ge=mt(Ke,xe),Ue=mt(Ke,xe,Q);Ge>$e||Ge===$e&&(!G||Ue>=Oe)?(p.current.rl=!0,ye=Ke,le=-le,be.points=[Od(ge,1),Od(me,1)]):p.current.rl=!1}if(qe&&"r"===ge[1]&&(Ee<ee.left||p.current.lr)){var Ye=ye;Xe?Ye+=z-H:Ye=je.x-Ne.x-le;var Ze=mt(Ye,xe),Qe=mt(Ye,xe,Q);Ze>$e||Ze===$e&&(!G||Qe>=Oe)?(p.current.lr=!0,ye=Ye,le=-le,be.points=[Od(ge,1),Od(me,1)]):p.current.lr=!1}gt();var Je=!0===Te?0:Te;"number"==typeof Je&&(Ee<Q.left&&(ye-=Ee-Q.left-le,m.x+H<Q.left+Je&&(ye+=m.x-Q.left+H-Je)),Se>Q.right&&(ye-=Se-Q.right-le,m.x>Q.right-Je&&(ye+=m.x-Q.right+Je)));var et=!0===_e?0:_e;"number"==typeof et&&(we<Q.top&&(xe-=we-Q.top-ce,m.y+D<Q.top+et&&(xe+=m.y-Q.top+D-et)),Ce>Q.bottom&&(xe-=Ce-Q.bottom-ce,m.y>Q.bottom-et&&(xe+=m.y-Q.bottom+et)));var tt=I.x+ye,nt=tt+z,ot=I.y+xe,it=ot+F,at=m.x,lt=at+H,ct=m.y,st=ct+D,ut=(Math.max(tt,at)+Math.min(nt,lt))/2-tt,dt=(Math.max(ot,ct)+Math.min(it,st))/2-ot;null==l||l(n,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 Y(Y({},e),{},{ready:!1})}))};return Wt(g,[o]),Wt((function(){t||g()}),[t]),[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()}))}]}(je,ue,F&&null!==qe?qe:ge,I,R,T,H),Ye=rt(Ue,11),Ze=Ye[0],Qe=Ye[1],Je=Ye[2],et=Ye[3],tt=Ye[4],nt=Ye[5],ot=Ye[6],it=Ye[7],at=Ye[8],lt=Ye[9],ct=Ye[10],st=function(t,n,r,o){return e.useMemo((function(){var e=md(null!=r?r:n),i=md(null!=o?o:n),a=new Set(e),l=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[t,n,r,o])}(re,c,s,u),ut=rt(st,2),dt=ut[0],ft=ut[1],pt=dt.has("click"),mt=ft.has("click")||ft.has("contextMenu"),gt=di((function(){Le||ct()}));!function(e,t,n,r,o){Wt((function(){if(e&&t&&n){var i=n,a=bd(t),l=bd(i),c=hd(i),s=new Set([c].concat(Ge(a),Ge(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])}(je,ge,ue,gt,(function(){Ie.current&&F&&mt&&Ae(!1)})),Wt((function(){gt()}),[qe,I]),Wt((function(){!je||null!=R&&R[I]||gt()}),[JSON.stringify(T)]);var vt=e.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(gd(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(R,i,lt,F);return P(e,null==B?void 0:B(lt))}),[lt,B,R,i,F]);e.useImperativeHandle(r,(function(){return{nativeElement:he.current,popupElement:fe.current,forceAlign:gt}}));var bt=rt(e.useState(0),2),yt=bt[0],xt=bt[1],wt=rt(e.useState(0),2),Ct=wt[0],Et=wt[1],St=function(){if(A&&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),Ae(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))}}Wt((function(){De&&(ct(),De(),He(null))}),[De]),(pt||mt)&&(we.onClick=function(e){var t;Ie.current&&mt?Ae(!1):!Ie.current&&pt&&(Ke(e),Ae(!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(t,n,r,o,i,a,l,c){var s=e.useRef(t);s.current=t,e.useEffect((function(){if(n&&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)},t=hd(o);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var u,d,f=Qa(r);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&D((null==r||null===(u=r.getRootNode)||void 0===u?void 0:u.call(r))===(null===(d=o.getRootNode)||void 0===d?void 0:d.call(o)),"trigger element and popup element should in same shadow root."),function(){t.removeEventListener("mousedown",e,!0),t.removeEventListener("contextmenu",e,!0),f&&(f.removeEventListener("mousedown",e,!0),f.removeEventListener("contextmenu",e,!0))}}}),[n,r,o,i,a])}(je,mt,ge,ue,x,C,Ee,Ae);var Ot,kt,Nt=dt.has("hover"),jt=ft.has("hover");Nt&&($t("onMouseEnter",!0,g,(function(e){Ke(e)})),$t("onPointerEnter",!0,g,(function(e){Ke(e)})),Ot=function(e){(je||Le)&&null!=ue&&ue.contains(e.target)&&Ae(!0,g)},F&&(we.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),jt&&($t("onMouseLeave",!1,h),$t("onPointerLeave",!1,h),kt=function(){Ae(!1,h)}),dt.has("focus")&&$t("onFocus",!0,b),ft.has("focus")&&$t("onBlur",!1,y),dt.has("contextMenu")&&(we.onContextMenu=function(e){var t;Ie.current&&ft.has("contextMenu")?Ae(!1):(Ke(e),Ae(!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 Pt=Y(Y({},xe),we),It={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(It[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Pt[e])||void 0===t||t.call.apply(t,[Pt].concat(r)),ee[e].apply(ee,r)})}));var Mt=e.cloneElement(ye,Y(Y({},Pt),It)),Rt={x:nt,y:ot},Tt=V?Y({},!0!==V?V:{}):null;return e.createElement(e.Fragment,null,e.createElement(Ve,{disabled:!je,ref:be,onResize:function(){St(),gt()}},e.createElement(fd,{getTriggerDOMNode:J},Mt)),e.createElement(pd.Provider,{value:le},e.createElement(dd,{portal:t,ref:pe,prefixCls:i,popup:k,className:P(N,vt),style:j,target:ge,onMouseEnter:Ot,onMouseLeave:kt,onPointerEnter:Ot,zIndex:_,open:je,keepDom:Le,fresh:L,onClick:z,mask:x,motion:Se,maskMotion:$e,onVisibleChanged:function(e){Fe(!1),ct(),null==m||m(e)},onPrepare:function(){return new Promise((function(e){St(),He((function(){return e}))}))},forceRender:S,autoDestroy:te,getPopupContainer:E,align:lt,arrow:Tt,arrowPos:Rt,ready:Ze,offsetX:Qe,offsetY:Je,offsetR:et,offsetB:tt,onAlign:gt,stretch:A,targetWidth:yt/it,targetHeight:Ct/at})))}));return"production"!==process.env.NODE_ENV&&(n.displayName="Trigger"),n}(fs);function jd(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,Id=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,i;const{variant:a,[e]:l}=o(Zo),c=o($u),s=null==l?void 0:l.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(r=null!=c?c:s)&&void 0!==r?r:a)&&void 0!==i?i:"outlined";return[u,Yo.includes(u)]};var Md={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"},Rd=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:Md}))},Td=e.forwardRef(Rd);"production"!==process.env.NODE_ENV&&(Td.displayName="CheckOutlined");var _d={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"},Ad=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:_d}))},Bd=e.forwardRef(Ad);function Ld(t){var n=t.children,r=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.className,l=t.style;return e.createElement("div",{className:P("".concat(r,"-content"),a),style:l},e.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof n?n():n))}"production"!==process.env.NODE_ENV&&(Bd.displayName="SearchOutlined");var Fd={shiftX:64,adjustY:1},zd={adjustX:1,shiftY:!0},Dd=[0,0],Hd={left:{points:["cr","cl"],overflow:zd,offset:[-4,0],targetOffset:Dd},right:{points:["cl","cr"],overflow:zd,offset:[4,0],targetOffset:Dd},top:{points:["bc","tc"],overflow:Fd,offset:[0,-4],targetOffset:Dd},bottom:{points:["tc","bc"],overflow:Fd,offset:[0,4],targetOffset:Dd},topLeft:{points:["bl","tl"],overflow:Fd,offset:[0,-4],targetOffset:Dd},leftTop:{points:["tr","tl"],overflow:zd,offset:[-4,0],targetOffset:Dd},topRight:{points:["br","tr"],overflow:Fd,offset:[0,-4],targetOffset:Dd},rightTop:{points:["tl","tr"],overflow:zd,offset:[4,0],targetOffset:Dd},bottomRight:{points:["tr","br"],overflow:Fd,offset:[0,4],targetOffset:Dd},rightBottom:{points:["bl","br"],overflow:zd,offset:[4,0],targetOffset:Dd},bottomLeft:{points:["tl","bl"],overflow:Fd,offset:[0,4],targetOffset:Dd},leftBottom:{points:["br","bl"],overflow:zd,offset:[-4,0],targetOffset:Dd}},Vd=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Wd=function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,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,m=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,M=t.id,R=t.showArrow,T=void 0===R||R,_=ht(t,Vd),A=a(null);g(n,(function(){return A.current}));var B=Y({},_);"visible"in t&&(B.popupVisible=t.visible);return e.createElement(Nd,I({popupClassName:r,prefixCls:p,popup:function(){return e.createElement(Ld,{key:"content",prefixCls:p,id:M,overlayInnerStyle:j},P)},action:i,builtinPlacements:Hd,popupPlacement:C,ref:A,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),m)},qd=s(Wd);const Xd=(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 ${Lt(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Kd=8;function Gd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Kd:r}}function Ud(e,t){return e?t:{}}function Yd(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"},Xd(e,t,o)),{"&:before":{background:t}})]},Ud(!!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% - ${Lt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ud(!!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% - ${Lt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ud(!!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}})),Ud(!!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 Zd={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"]}},Qd={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"]}},Jd=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ef(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Zd).forEach((e=>{const s=r&&Qd[e]||Zd[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Jd.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=Gd({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 tf=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({},Fi(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:`${Lt(e.calc(s).div(2).equal())} ${Lt(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,Kd)}},[`${t}-content`]:{position:"relative"}}),Ki(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Yd(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},nf=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Gd({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%)`}}(bi(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var rf=function(e){const t=Wi("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=bi(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[tf(o),Hu(e,"zoom-big-fast")]}),nf,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const of=$i.map((e=>`${e}-inverse`));function af(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Ge(of),Ge($i)).includes(e):$i.includes(e)}function lf(e,t){const n=af(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 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=e.forwardRef(((t,n)=>{var r,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:g=!0,title:v,overlay:h,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=t,w=!!g,[,C]=Ai(),{getPopupContainer:E,getPrefixCls:S,direction:$}=e.useContext(Zo),O=Nr("Tooltip"),k=e.useRef(null),N=()=>{var e;null===(e=k.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,(()=>{var e;return{forceAlign:N,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:null===(e=k.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((e=>{let[n,r]=e;O.deprecated(!(n in t),n,r)})),"production"!==process.env.NODE_ENV&&O(!m||"boolean"==typeof m,"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[j,I]=mi(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),M=!v&&!h&&0!==v,R=e.useMemo((()=>{var e,t;let n=y;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:y),b||ef({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:w?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[y,g,b,C]),T=e.useMemo((()=>0===v?v:h||v||""),[h,v]),_=e.createElement(Ou,{space:!0},"function"==typeof T?T():T),{getPopupContainer:A,placement:B="top",mouseEnterDelay:L=.1,mouseLeaveDelay:F=.1,overlayStyle:z,rootClassName:D}=t,H=cf(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=S("tooltip",i),W=S(),q=t["data-popover-inject"];let X=j;"open"in t||"visible"in t||!M||(X=!1);const K=e.isValidElement(d)&&!bl(d)?d:e.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]=rf(V,!q),J=lf(V,s),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=P(c,{[`${V}-rtl`]:"rtl"===$},J.className,D,Z,Q),[re,oe]=Pl("Tooltip",H.zIndex),ie=e.createElement(qd,Object.assign({},H,{zIndex:re,showArrow:w,placement:B,mouseEnterDelay:L,mouseLeaveDelay:F,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),z),getTooltipContainer:A||l||E,ref:k,builtinPlacements:R,overlay:_,visible:X,onVisibleChange:e=>{var n,r;I(!M&&e),M||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(r=t.onVisibleChange)||void 0===r||r.call(t,e))},afterVisibleChange:null!=f?f:p,overlayInnerStyle:te,arrowContent:e.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:Zl(W,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),X?xl(K,{className:U}):K);return Y(e.createElement(Ol.Provider,{value:oe},ie))})),uf=sf;"production"!==process.env.NODE_ENV&&(uf.displayName="Tooltip"),uf._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=t,{getPrefixCls:c}=e.useContext(Zo),s=c("tooltip",n),[u,d,f]=rf(s),p=lf(s,a),m=p.arrowStyle,g=Object.assign(Object.assign({},l),p.overlayStyle),v=P(d,f,s,`${s}-pure`,`${s}-placement-${o}`,r,p.className);return u(e.createElement("div",{className:v,style:m},e.createElement("div",{className:`${s}-arrow`}),e.createElement(Ld,Object.assign({},t,{className:d,prefixCls:s,overlayInnerStyle:g}),i)))};const df=new gr("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),ff=new gr("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),pf=new gr("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),mf=new gr("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),gf=new gr("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),vf=new gr("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),hf=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e;return bi(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%)"})},bf=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 yf=Wi("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=Ki(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({},Fi(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:Lt(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:m(d).div(2).equal(),boxShadow:`0 0 0 ${Lt(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:Lt(f),borderRadius:m(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Lt(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 ${Lt(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:vf,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:df,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:ff,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:pf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:mf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:gf,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%)"}}})}})(hf(e))),bf);var xf=Wi(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=Ki(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({},Fi(e)),{position:"absolute",top:r,padding:`0 ${Lt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Lt(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:`${Lt(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"}})}})(hf(e))),bf);const wf=t=>{const{className:n,prefixCls:r,style:o,color:i,children:a,text:l,placement:c="end",rootClassName:s}=t,{getPrefixCls:u,direction:d}=e.useContext(Zo),f=u("ribbon",r),p=`${f}-wrapper`,[m,g,v]=xf(f,p),h=af(i,!1),b=P(f,`${f}-placement-${c}`,{[`${f}-rtl`]:"rtl"===d,[`${f}-color-${i}`]:h},n),y={},x={};return i&&!h&&(y.background=i,x.color=i),m(e.createElement("div",{className:P(p,s,g,v)},a,e.createElement("div",{className:P(b,g),style:Object.assign(Object.assign({},y),o)},e.createElement("span",{className:`${f}-text`},l),e.createElement("div",{className:`${f}-corner`,style:x}))))};"production"!==process.env.NODE_ENV&&(wf.displayName="Ribbon");const Cf=t=>{const{prefixCls:n,value:r,current:o,offset:i=0}=t;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),e.createElement("span",{style:a,className:P(`${n}-only-unit`,{current:o})},r)};function Ef(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const Sf=t=>{const{prefixCls:n,count:r,value:o}=t,i=Number(o),a=Math.abs(r),[l,c]=e.useState(i),[s,u]=e.useState(a),d=()=>{c(i),u(a)};let f,p;if(e.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),l===i||Number.isNaN(i)||Number.isNaN(l))f=[e.createElement(Cf,Object.assign({},t,{key:i,current:!0}))],p={transition:"none"};else{f=[];const n=i+10,r=[];for(let e=i;e<=n;e+=1)r.push(e);const o=r.findIndex((e=>e%10===l));f=r.map(((n,r)=>{const i=n%10;return e.createElement(Cf,Object.assign({},t,{key:n,value:i,offset:r-o,current:r===o}))}));p={transform:`translateY(${-Ef(l,i,s<a?1:-1)}00%)`}}return e.createElement("span",{className:`${n}-only`,style:p,onTransitionEnd:d},f)};var $f=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 Of=e.forwardRef(((t,n)=>{const{prefixCls:r,count:o,className:i,motionClassName:a,style:l,title:c,show:s,component:u="sup",children:d}=t,f=$f(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=e.useContext(Zo),m=p("scroll-number",r),g=Object.assign(Object.assign({},f),{"data-show":s,style:l,className:P(m,i,a),title:c});let v=o;if(o&&Number(o)%1==0){const t=String(o).split("");v=e.createElement("bdi",null,t.map(((n,r)=>e.createElement(Sf,{prefixCls:m,count:Number(o),value:n,key:t.length-r}))))}return(null==l?void 0:l.borderColor)&&(g.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),d?xl(d,(e=>({className:P(`${m}-custom-component`,null==e?void 0:e.className,a)}))):e.createElement(u,Object.assign({},g,{ref:n}),v)}));var kf=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 Nf=e.forwardRef(((t,n)=>{var r,o,i,l,c;const{prefixCls:s,scrollNumberPrefixCls:d,children:f,status:p,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=kf(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:j,direction:I,badge:M}=e.useContext(Zo),R=j("badge",s),[T,_,A]=yf(R),B=v>h?`${h}+`:v,L="0"===B||0===B,F=(null!=p||null!=g)&&(null===v||L&&!k),z=b&&!L,D=z?"":B,H=u((()=>(null==D||""===D||L&&!k)&&!z),[D,L,k,z]),V=a(v);H||(V.current=v);const W=V.current,q=a(D);H||(q.current=D);const X=q.current,K=a(z);H||(K.current=z);const G=u((()=>{if(!w)return Object.assign(Object.assign({},null==M?void 0:M.style),C);const e={marginTop:w[1]};return"rtl"===I?e.left=parseInt(w[0],10):e.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},e),null==M?void 0:M.style),C)}),[I,w,C,null==M?void 0:M.style]),U=null!=x?x:"string"==typeof W||"number"==typeof W?W:void 0,Y=H||!m?null:e.createElement("span",{className:`${R}-status-text`},m),Z=W&&"object"==typeof W?xl(W,(e=>({style:Object.assign(Object.assign({},G),e.style)}))):void 0,Q=af(g,!1),J=P(null==$?void 0:$.indicator,null===(r=null==M?void 0:M.classNames)||void 0===r?void 0:r.indicator,{[`${R}-status-dot`]:F,[`${R}-status-${p}`]:!!p,[`${R}-color-${g}`]:Q}),ee={};g&&!Q&&(ee.color=g,ee.background=g);const te=P(R,{[`${R}-status`]:F,[`${R}-not-a-wrapper`]:!f,[`${R}-rtl`]:"rtl"===I},E,S,null==M?void 0:M.className,null===(o=null==M?void 0:M.classNames)||void 0===o?void 0:o.root,null==$?void 0:$.root,_,A);if(!f&&F){const t=G.color;return T(e.createElement("span",Object.assign({},N,{className:te,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(i=null==M?void 0:M.styles)||void 0===i?void 0:i.root),G)}),e.createElement("span",{className:J,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(l=null==M?void 0:M.styles)||void 0===l?void 0:l.indicator),ee)}),m&&e.createElement("span",{style:{color:t},className:`${R}-status-text`},m)))}return T(e.createElement("span",Object.assign({ref:n},N,{className:te,style:Object.assign(Object.assign({},null===(c=null==M?void 0:M.styles)||void 0===c?void 0:c.root),null==O?void 0:O.root)}),f,e.createElement(Ma,{visible:!H,motionName:`${R}-zoom`,motionAppear:!1,motionDeadline:1e3},(t=>{let{className:n}=t;var r,o;const i=j("scroll-number",d),a=K.current,l=P(null==$?void 0:$.indicator,null===(r=null==M?void 0:M.classNames)||void 0===r?void 0:r.indicator,{[`${R}-dot`]:a,[`${R}-count`]:!a,[`${R}-count-sm`]:"small"===y,[`${R}-multiple-words`]:!a&&X&&X.toString().length>1,[`${R}-status-${p}`]:!!p,[`${R}-color-${g}`]:Q});let c=Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(o=null==M?void 0:M.styles)||void 0===o?void 0:o.indicator),G);return g&&!Q&&(c=c||{},c.background=g),e.createElement(Of,{prefixCls:i,show:!H,motionClassName:n,className:l,count:X,title:U,style:c,key:"scrollNumber"},Z)})),Y))})),jf=Nf;jf.Ribbon=wf,"production"!==process.env.NODE_ENV&&(jf.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"},If=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:Pf}))},Mf=e.forwardRef(If);"production"!==process.env.NODE_ENV&&(Mf.displayName="RightOutlined");var Rf=Cl.ESC,Tf=Cl.TAB;var _f=s((function(e,n){var r=e.overlay,o=e.arrow,i=e.prefixCls,a=u((function(){return"function"==typeof r?r():r}),[r]),l=te(n,null==a?void 0:a.ref);return t.createElement(t.Fragment,null,o&&t.createElement("div",{className:"".concat(i,"-arrow")}),t.cloneElement(a,{ref:re(a)?l:void 0}))})),Af={adjustX:1,adjustY:1},Bf=[0,0],Lf={topLeft:{points:["bl","tl"],overflow:Af,offset:[0,-4],targetOffset:Bf},top:{points:["bc","tc"],overflow:Af,offset:[0,-4],targetOffset:Bf},topRight:{points:["br","tr"],overflow:Af,offset:[0,-4],targetOffset:Bf},bottomLeft:{points:["tl","bl"],overflow:Af,offset:[0,4],targetOffset:Bf},bottom:{points:["tc","bc"],overflow:Af,offset:[0,4],targetOffset:Bf},bottomRight:{points:["tr","br"],overflow:Af,offset:[0,4],targetOffset:Bf}},Ff=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function zf(n,r){var o,i=n.arrow,a=void 0!==i&&i,l=n.prefixCls,c=void 0===l?"rc-dropdown":l,s=n.transitionName,u=n.animation,d=n.align,f=n.placement,p=void 0===f?"bottomLeft":f,m=n.placements,g=void 0===m?Lf:m,v=n.getPopupContainer,h=n.showAction,b=n.hideAction,y=n.overlayClassName,x=n.overlayStyle,w=n.visible,C=n.trigger,E=void 0===C?["hover"]:C,S=n.autoFocus,$=n.overlay,O=n.children,k=n.onVisibleChange,N=ht(n,Ff),j=rt(t.useState(),2),M=j[0],R=j[1],T="visible"in n?w:M,_=t.useRef(null),A=t.useRef(null),B=t.useRef(null);t.useImperativeHandle(r,(function(){return _.current}));var L=function(e){R(e),null==k||k(e)};!function(t){var n=t.visible,r=t.triggerRef,o=t.onVisibleChange,i=t.autoFocus,a=t.overlayRef,l=e.useRef(!1),c=function(){var e,t;n&&(null===(e=r.current)||void 0===e||null===(t=e.focus)||void 0===t||t.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 Rf:c();break;case Tf:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};e.useEffect((function(){return n?(window.addEventListener("keydown",u),i&&et(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[n])}({visible:T,triggerRef:B,onVisibleChange:L,autoFocus:S,overlayRef:A});var F,z,D,H=function(){return t.createElement(_f,{ref:A,overlay:$,prefixCls:c,arrow:a})},V=t.cloneElement(O,{className:P(null===(o=O.props)||void 0===o?void 0:o.className,T&&(F=n.openClassName,void 0!==F?F:"".concat(c,"-open"))),ref:re(O)?te(B,O.ref):void 0}),W=b;return W||-1===E.indexOf("contextMenu")||(W=["click"]),t.createElement(Nd,I({builtinPlacements:g},N,{prefixCls:c,ref:_,popupClassName:P(y,G({},"".concat(c,"-show-arrow"),a)),popupStyle:x,action:E,showAction:h,hideAction:W,popupPlacement:p,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:T,stretch:(z=n.minOverlayWidthMatchTrigger,D=n.alignPoint,("minOverlayWidthMatchTrigger"in n?z:!D)?"minWidth":""),popup:"function"==typeof $?H:H(),onPopupVisibleChange:L,onPopupClick:function(e){var t=n.onOverlayClick;R(!1),t&&t(e)},getPopupContainer:v}),V)}var Df=t.forwardRef(zf),Hf=e.createContext(null);function Vf(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Wf(t){return Vf(e.useContext(Hf),t)}var qf=["children","locked"],Xf=e.createContext(null);function Kf(t){var n=t.children,r=t.locked,o=ht(t,qf),i=e.useContext(Xf),a=J((function(){return e=o,t=Y({},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!(r||e[0]===t[0]&&bt(e[1],t[1],!0))}));return e.createElement(Xf.Provider,{value:a},n)}var Gf=[],Uf=e.createContext(null);function Yf(){return e.useContext(Uf)}var Zf=e.createContext(Gf);function Qf(t){var n=e.useContext(Zf);return e.useMemo((function(){return void 0!==t?[].concat(Ge(n),[t]):n}),[n,t])}var Jf=e.createContext(null),ep=e.createContext({});function tp(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ql(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 np=Cl.LEFT,rp=Cl.RIGHT,op=Cl.UP,ip=Cl.DOWN,ap=Cl.ENTER,lp=Cl.ESC,cp=Cl.HOME,sp=Cl.END,up=[op,ip,np,rp];function dp(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ge(e.querySelectorAll("*")).filter((function(e){return tp(e,t)}));return tp(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function fp(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=dp(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 pp=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(Vf(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function mp(t,n,r,o,i,a,l,c,s,u){var d=e.useRef(),f=e.useRef();f.current=n;var p=function(){et.cancel(d.current)};return e.useEffect((function(){return function(){p()}}),[]),function(e){var m=e.which;if([].concat(up,[ap,lp,cp,sp]).includes(m)){var g=a(),v=pp(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(n),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===ap)return{inlineTrigger:!0};var f=(G(o={},op,c),G(o,ip,s),o),p=(G(i={},np,n?s:c),G(i,rp,n?c:s),G(i,ip,u),G(i,ap,u),i),m=(G(a={},op,c),G(a,ip,s),G(a,ap,u),G(a,lp,d),G(a,np,n?u:d),G(a,rp,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}}(t,1===l(C,!0).length,r,m);if(!E&&m!==cp&&m!==sp)return;(up.includes(m)||[cp,sp].includes(m))&&e.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=et((function(){f.current===r&&t.focus()}))}};if([cp,sp].includes(m)||E.sibling||!w){var $,O,k=dp($=w&&"inline"!==t?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===cp?k[0]:m===sp?k[k.length-1]:fp($,b,w,E.offset),S(O)}else if(E.inlineTrigger)s(C);else if(E.offset>0)s(C,!0),p(),d.current=et((function(){v=pp(g,o);var e=w.getAttribute("aria-controls"),t=fp(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(e)}}var gp="__RC_UTIL_PATH_SPLIT__",vp=function(e){return e.join(gp)},hp="rc-menu-more";function bp(){var t=rt(e.useState({}),2)[1],n=a(new Map),r=a(new Map),o=rt(e.useState([]),2),i=o[0],l=o[1],c=a(0),s=a(!1),u=m((function(e,o){"production"!==process.env.NODE_ENV&&q(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(o.join(" > "),"]"));var i=vp(o);r.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=m((function(e,t){var o=vp(t);r.current.delete(o),n.current.delete(e)}),[]),f=m((function(e){l(e)}),[]),p=m((function(e,t){var r=n.current.get(e)||"",o=r.split(gp);return t&&i.includes(o[0])&&o.unshift(hp),o}),[i]),g=m((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return p(e,!0).includes(t)}))}),[p]),v=m((function(e){var t="".concat(n.current.get(e)).concat(gp),o=new Set;return Ge(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return e.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:g,getKeyPath:p,getKeys:function(){var e=Ge(n.current.keys());return i.length&&e.push(hp),e},getSubPathKeys:v}}function yp(t){var n=e.useRef(t);n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return t?r:void 0}var xp=Math.random().toFixed(5).toString().slice(2),wp=0;function Cp(t,n,r,o){var i=e.useContext(Xf),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===t};return n||(s.onMouseEnter=function(e){null==r||r({key:t,domEvent:e}),l(t)},s.onMouseLeave=function(e){null==o||o({key:t,domEvent:e}),c(t)}),s}function Ep(t){var n=e.useContext(Xf),r=n.mode,o=n.rtl,i=n.inlineIndent;if("inline"!==r)return null;return o?{paddingRight:t*i}:{paddingLeft:t*i}}function Sp(t){var n,r=t.icon,o=t.props,i=t.children;return null===r||!1===r?null:("function"==typeof r?n=e.createElement(r,Y({},o)):"boolean"!=typeof r&&(n=r),n||i||null)}var $p=["item"];function Op(e){var t=e.item,n=ht(e,$p);return Object.defineProperty(n,"item",{get:function(){return q(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var kp=["title","attribute","elementRef"],Np=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],jp=["active"],Pp=function(){Te(n,e.Component);var t=Le(n);function n(){return Pe(this,n),t.apply(this,arguments)}return Me(n,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.attribute,o=t.elementRef,i=We(ht(t,kp),["eventKey","popupClassName","popupOffset","onTitleClick"]);return q(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(ld.Item,I({},r,{title:"string"==typeof n?n:void 0},i,{ref:o}))}}]),n}(),Ip=e.forwardRef((function(t,n){var r,o=t.style,i=t.className,a=t.eventKey,l=t.warnKey,c=t.disabled,s=t.itemIcon,u=t.children,d=t.role,f=t.onMouseEnter,p=t.onMouseLeave,m=t.onClick,g=t.onKeyDown,v=t.onFocus,h=ht(t,Np),b=Wf(a),y=e.useContext(Xf),x=y.prefixCls,w=y.onItemClick,C=y.disabled,E=y.overflowDisabled,S=y.itemIcon,$=y.selectedKeys,O=y.onActive,k=e.useContext(ep)._internalRenderMenuItem,N="".concat(x,"-item"),j=e.useRef(),M=e.useRef(),R=C||c,T=ne(n,M),_=Qf(a);"production"!==process.env.NODE_ENV&&l&&q(!1,"MenuItem should not leave undefined `key`.");var A=function(e){return{key:a,keyPath:Ge(_).reverse(),item:j.current,domEvent:e}},B=s||S,L=Cp(a,R,f,p),F=L.active,z=ht(L,jp),D=$.includes(a),H=Ep(_.length),V={};"option"===t.role&&(V["aria-selected"]=D);var W=e.createElement(Pp,I({ref:j,elementRef:T,role:null===d?"none":d||"menuitem",tabIndex:c?null:-1,"data-menu-id":E&&b?null:b},h,z,V,{component:"li","aria-disabled":c,style:Y(Y({},H),o),className:P(N,(r={},G(r,"".concat(N,"-active"),F),G(r,"".concat(N,"-selected"),D),G(r,"".concat(N,"-disabled"),R),r),i),onClick:function(e){if(!R){var t=A(e);null==m||m(Op(t)),w(t)}},onKeyDown:function(e){if(null==g||g(e),e.which===Cl.ENTER){var t=A(e);null==m||m(Op(t)),w(t)}},onFocus:function(e){O(a),null==v||v(e)}}),u,e.createElement(Sp,{props:Y(Y({},t),{},{isSelected:D}),icon:B}));return k&&(W=k(W,t,{selected:D})),W}));function Mp(t,n){var r=t.eventKey,o=Yf(),i=Qf(r);return e.useEffect((function(){if(o)return o.registerPath(r,i),function(){o.unregisterPath(r,i)}}),[i]),o?null:e.createElement(Ip,I({},t,{ref:n}))}var Rp=e.forwardRef(Mp),Tp=["className","children"],_p=function(t,n){var r=t.className,o=t.children,i=ht(t,Tp),a=e.useContext(Xf),l=a.prefixCls,c=a.mode,s=a.rtl;return e.createElement("ul",I({className:P(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},Ap=e.forwardRef(_p);function Bp(t,n){return L(t).map((function(t,r){if(e.isValidElement(t)){var o,i,a=t.key,l=null!==(o=null===(i=t.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a,c=null==l;c&&(l="tmp_key-".concat([].concat(Ge(n),[r]).join("-")));var s={key:l,eventKey:l};return"production"!==process.env.NODE_ENV&&c&&(s.warnKey=!0),e.cloneElement(t,s)}return t}))}Ap.displayName="SubMenuList";var Lp={adjustX:1,adjustY:1},Fp={topLeft:{points:["bl","tl"],overflow:Lp},topRight:{points:["br","tr"],overflow:Lp},bottomLeft:{points:["tl","bl"],overflow:Lp},bottomRight:{points:["tr","br"],overflow:Lp},leftTop:{points:["tr","tl"],overflow:Lp},leftBottom:{points:["br","bl"],overflow:Lp},rightTop:{points:["tl","tr"],overflow:Lp},rightBottom:{points:["bl","br"],overflow:Lp}},zp={topLeft:{points:["bl","tl"],overflow:Lp},topRight:{points:["br","tr"],overflow:Lp},bottomLeft:{points:["tl","bl"],overflow:Lp},bottomRight:{points:["tr","br"],overflow:Lp},rightTop:{points:["tr","tl"],overflow:Lp},rightBottom:{points:["br","bl"],overflow:Lp},leftTop:{points:["tl","tr"],overflow:Lp},leftBottom:{points:["bl","br"],overflow:Lp}};function Dp(e,t,n){return t||(n?n[e]||n.other:void 0)}var Hp={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Vp(t){var n=t.prefixCls,r=t.visible,o=t.children,i=t.popup,a=t.popupStyle,l=t.popupClassName,c=t.popupOffset,s=t.disabled,u=t.mode,d=t.onVisibleChange,f=e.useContext(Xf),p=f.getPopupContainer,m=f.rtl,g=f.subMenuOpenDelay,v=f.subMenuCloseDelay,h=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,x=f.rootClassName,w=f.motion,C=f.defaultMotions,E=rt(e.useState(!1),2),S=E[0],$=E[1],O=Y(Y({},m?zp:Fp),h),k=Hp[u],N=Dp(u,w,C),j=e.useRef(N);"inline"!==u&&(j.current=N);var I=Y(Y({},j.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),M=e.useRef();return e.useEffect((function(){return M.current=et((function(){$(r)})),function(){et.cancel(M.current)}}),[r]),e.createElement(Nd,{prefixCls:n,popupClassName:P("".concat(n,"-popup"),G({},"".concat(n,"-rtl"),m),l,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:O,popupPlacement:k,popupVisible:S,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:v,onPopupVisibleChange:d,forceRender:y,popupMotion:I,fresh:!0},o)}function Wp(t){var n=t.id,r=t.open,o=t.keyPath,i=t.children,a="inline",l=e.useContext(Xf),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=e.useRef(!1);p.current=f===a;var m=rt(e.useState(!p.current),2),g=m[0],v=m[1],h=!!p.current&&r;e.useEffect((function(){p.current&&v(!1)}),[f]);var b=Y({},Dp(a,u,d));o.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||v(!0),null==y?void 0:y(e)},g?null:e.createElement(Kf,{mode:a,locked:!p.current},e.createElement(Ma,I({visible:h},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(t){var r=t.className,o=t.style;return e.createElement(Ap,{id:n,className:r,style:o},i)})))}var qp=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Xp=["active"],Kp=e.forwardRef((function(t,n){var r,o=t.style,i=t.className,a=t.title,l=t.eventKey,c=t.warnKey,s=t.disabled,u=t.internalPopupClose,d=t.children,f=t.itemIcon,p=t.expandIcon,m=t.popupClassName,g=t.popupOffset,v=t.popupStyle,h=t.onClick,b=t.onMouseEnter,y=t.onMouseLeave,x=t.onTitleClick,w=t.onTitleMouseEnter,C=t.onTitleMouseLeave,E=ht(t,qp),S=Wf(l),$=e.useContext(Xf),O=$.prefixCls,k=$.mode,N=$.openKeys,j=$.disabled,M=$.overflowDisabled,R=$.activeKey,T=$.selectedKeys,_=$.itemIcon,A=$.expandIcon,B=$.onItemClick,L=$.onOpenChange,F=$.onActive,z=e.useContext(ep)._internalRenderSubMenuItem,D=e.useContext(Jf).isSubPathKey,H=Qf(),V="".concat(O,"-submenu"),W=j||s,X=e.useRef(),K=e.useRef();"production"!==process.env.NODE_ENV&&c&&q(!1,"SubMenu should not leave undefined `key`.");var U=null!=f?f:_,Z=null!=p?p:A,Q=N.includes(l),J=!M&&Q,ee=D(T,l),te=Cp(l,W,w,C),ne=te.active,re=ht(te,Xp),oe=rt(e.useState(!1),2),ie=oe[0],ae=oe[1],le=function(e){W||ae(e)},ce=e.useMemo((function(){return ne||"inline"!==k&&(ie||D([R],l))}),[k,ne,R,ie,l,D]),se=Ep(H.length),ue=yp((function(e){null==h||h(Op(e)),B(e)})),de=S&&"".concat(S,"-popup"),fe=e.createElement("div",I({role:"menuitem",style:se,className:"".concat(V,"-title"),tabIndex:W?null:-1,ref:X,title:"string"==typeof a?a:null,"data-menu-id":M&&S?null:S,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":W,onClick:function(e){W||(null==x||x({key:l,domEvent:e}),"inline"===k&&L(l,!Q))},onFocus:function(){F(l)}},re),a,e.createElement(Sp,{icon:"horizontal"!==k?Z:void 0,props:Y(Y({},t),{},{isOpen:J,isSubMenu:!0})},e.createElement("i",{className:"".concat(V,"-arrow")}))),pe=e.useRef(k);if("inline"!==k&&H.length>1?pe.current="vertical":pe.current=k,!M){var me=pe.current;fe=e.createElement(Vp,{mode:me,prefixCls:V,visible:!u&&J&&"inline"!==k,popupClassName:m,popupOffset:g,popupStyle:v,popup:e.createElement(Kf,{mode:"horizontal"===me?"vertical":me},e.createElement(Ap,{id:de,ref:K},d)),disabled:W,onVisibleChange:function(e){"inline"!==k&&L(l,e)}},fe)}var ge=e.createElement(ld.Item,I({ref:n,role:"none"},E,{component:"li",style:o,className:P(V,"".concat(V,"-").concat(k),i,(r={},G(r,"".concat(V,"-open"),J),G(r,"".concat(V,"-active"),ce),G(r,"".concat(V,"-selected"),ee),G(r,"".concat(V,"-disabled"),W),r)),onMouseEnter:function(e){le(!0),null==b||b({key:l,domEvent:e})},onMouseLeave:function(e){le(!1),null==y||y({key:l,domEvent:e})}}),fe,!M&&e.createElement(Wp,{id:de,open:J,keyPath:H},d));return z&&(ge=z(ge,t,{selected:ee,active:ce,open:J,disabled:W})),e.createElement(Kf,{onItemClick:ue,mode:"horizontal"===k?"vertical":k,itemIcon:U,expandIcon:Z},ge)})),Gp=e.forwardRef((function(t,n){var r,o=t.eventKey,i=t.children,a=Qf(o),l=Bp(i,a),c=Yf();return e.useEffect((function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}}),[a]),r=c?l:e.createElement(Kp,I({ref:n},t),l),e.createElement(Zf.Provider,{value:a},r)}));function Up(t){var n=t.className,r=t.style,o=e.useContext(Xf).prefixCls;return Yf()?null:e.createElement("li",{role:"separator",className:P("".concat(o,"-item-divider"),n),style:r})}"production"!==process.env.NODE_ENV&&(Gp.displayName="SubMenu");var Yp=["className","title","eventKey","children"],Zp=e.forwardRef((function(t,n){var r=t.className,o=t.title;t.eventKey;var i=t.children,a=ht(t,Yp),l=e.useContext(Xf).prefixCls,c="".concat(l,"-item-group");return e.createElement("li",I({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:P(c,r)}),e.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),e.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))})),Qp=e.forwardRef((function(t,n){var r=t.eventKey,o=Bp(t.children,Qf(r));return Yf()?o:e.createElement(Zp,I({ref:n},We(t,["warnKey"])),o)}));"production"!==process.env.NODE_ENV&&(Qp.displayName="MenuItemGroup");var Jp=["label","children","key","type"];function em(t,n){var r=n.item,o=n.group,i=n.submenu,a=n.divider;return(t||[]).map((function(t,l){if(t&&"object"===X(t)){var c=t,s=c.label,u=c.children,d=c.key,f=c.type,p=ht(c,Jp),m=null!=d?d:"tmp-".concat(l);return u||"group"===f?"group"===f?e.createElement(o,I({key:m},p,{title:s}),em(u,n)):e.createElement(i,I({key:m},p,{title:s}),em(u,n)):"divider"===f?e.createElement(a,I({key:m},p)):e.createElement(r,I({key:m},p),s)}return null})).filter((function(e){return e}))}function tm(e,t,n,r){var o=e,i=Y({divider:Up,item:Rp,group:Qp,submenu:Gp},r);return t&&(o=em(t,i)),Bp(o,n)}var nm=["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"],rm=[],om=e.forwardRef((function(t,n){var r,o,i=t,a=i.prefixCls,l=void 0===a?"rc-menu":a,c=i.rootClassName,s=i.style,u=i.className,d=i.tabIndex,f=void 0===d?0:d,p=i.items,m=i.children,v=i.direction,h=i.id,b=i.mode,y=void 0===b?"vertical":b,x=i.inlineCollapsed,C=i.disabled,E=i.disabledOverflow,S=i.subMenuOpenDelay,$=void 0===S?.1:S,O=i.subMenuCloseDelay,k=void 0===O?.1:O,N=i.forceSubMenuRender,j=i.defaultOpenKeys,M=i.openKeys,R=i.activeKey,T=i.defaultActiveFirst,_=i.selectable,A=void 0===_||_,B=i.multiple,L=void 0!==B&&B,F=i.defaultSelectedKeys,z=i.selectedKeys,D=i.onSelect,H=i.onDeselect,V=i.inlineIndent,W=void 0===V?24:V,X=i.motion,K=i.defaultMotions,U=i.triggerSubMenuAction,Z=void 0===U?"hover":U,Q=i.builtinPlacements,J=i.itemIcon,ee=i.expandIcon,te=i.overflowedIndicator,ne=void 0===te?"...":te,re=i.overflowedIndicatorPopupClassName,oe=i.getPopupContainer,ie=i.onClick,ae=i.onOpenChange,le=i.onKeyDown,ce=i.openAnimation,se=i.openTransitionName,ue=i._internalRenderMenuItem,de=i._internalRenderSubMenuItem,fe=i._internalComponents,pe=ht(i,nm),me=rt(e.useMemo((function(){return[tm(m,p,rm,fe),tm(m,p,rm,{})]}),[m,p,fe]),2),ge=me[0],ve=me[1],he=rt(e.useState(!1),2),be=he[0],ye=he[1],xe=e.useRef(),we=function(t){var n=rt(mi(t,{value:t}),2),r=n[0],o=n[1];return e.useEffect((function(){wp+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(xp,"-").concat(wp);o("rc-menu-uuid-".concat(e))}),[]),r}(h),Ce="rtl"===v;"production"!==process.env.NODE_ENV&&q(!ce&&!se,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ee=mi(j,{value:M,postState:function(e){return e||rm}}),Se=rt(Ee,2),$e=Se[0],Oe=Se[1],ke=function(e){function t(){Oe(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?w(t):t()},Ne=rt(e.useState($e),2),je=Ne[0],Pe=Ne[1],Ie=e.useRef(!1),Me=rt(e.useMemo((function(){return"inline"!==y&&"vertical"!==y||!x?[y,!1]:["vertical",x]}),[y,x]),2),Re=Me[0],Te=Me[1],_e="inline"===Re,Ae=rt(e.useState(Re),2),Be=Ae[0],Le=Ae[1],Fe=rt(e.useState(Te),2),ze=Fe[0],De=Fe[1];e.useEffect((function(){Le(Re),De(Te),Ie.current&&(_e?Oe(je):ke(rm))}),[Re,Te]);var He=rt(e.useState(0),2),Ve=He[0],We=He[1],qe=Ve>=ge.length-1||"horizontal"!==Be||E;e.useEffect((function(){_e&&Pe($e)}),[$e]),e.useEffect((function(){return Ie.current=!0,function(){Ie.current=!1}}),[]);var Xe=bp(),Ke=Xe.registerPath,Ue=Xe.unregisterPath,Ye=Xe.refreshOverflowKeys,Ze=Xe.isSubPathKey,Qe=Xe.getKeyPath,Je=Xe.getKeys,et=Xe.getSubPathKeys,tt=e.useMemo((function(){return{registerPath:Ke,unregisterPath:Ue}}),[Ke,Ue]),nt=e.useMemo((function(){return{isSubPathKey:Ze}}),[Ze]);e.useEffect((function(){Ye(qe?rm:ge.slice(Ve+1).map((function(e){return e.key})))}),[Ve,qe]);var ot=rt(mi(R||T&&(null===(r=ge[0])||void 0===r?void 0:r.key),{value:R}),2),it=ot[0],at=ot[1],lt=yp((function(e){at(e)})),ct=yp((function(){at(void 0)}));g(n,(function(){return{list:xe.current,focus:function(e){var t,n,r=Je(),o=pp(r,we),i=o.elements,a=o.key2element,l=o.element2key,c=dp(xe.current,i),s=null!=it?it: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 st=mi(F||[],{value:z,postState:function(e){return Array.isArray(e)?e:null==e?rm:[e]}}),ut=rt(st,2),dt=ut[0],ft=ut[1],pt=yp((function(e){null==ie||ie(Op(e)),function(e){if(A){var t,n=e.key,r=dt.includes(n);t=L?r?dt.filter((function(e){return e!==n})):[].concat(Ge(dt),[n]):[n],ft(t);var o=Y(Y({},e),{},{selectedKeys:t});r?null==H||H(o):null==D||D(o)}!L&&$e.length&&"inline"!==Be&&ke(rm)}(e)})),mt=yp((function(e,t){var n=$e.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Be){var r=et(e);n=n.filter((function(e){return!r.has(e)}))}bt($e,n,!0)||ke(n,!0)})),gt=mp(Be,it,Ce,we,xe,Je,Qe,at,(function(e,t){var n=null!=t?t:!$e.includes(e);mt(e,n)}),le);e.useEffect((function(){ye(!0)}),[]);var vt=e.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),yt="horizontal"!==Be||E?ge:ge.map((function(t,n){return e.createElement(Kf,{key:t.key,overflowDisabled:n>Ve},t)})),xt=e.createElement(ld,I({id:h,ref:xe,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Rp,className:P(l,"".concat(l,"-root"),"".concat(l,"-").concat(Be),u,(o={},G(o,"".concat(l,"-inline-collapsed"),ze),G(o,"".concat(l,"-rtl"),Ce),o),c),dir:v,style:s,role:"menu",tabIndex:f,data:yt,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,r=n?ge.slice(-n):null;return e.createElement(Gp,{eventKey:hp,title:ne,disabled:qe,internalPopupClose:0===n,popupClassName:re},r)},maxCount:"horizontal"!==Be||E?ld.INVALIDATE:ld.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){We(e)},onKeyDown:gt},pe));return e.createElement(ep.Provider,{value:vt},e.createElement(Hf.Provider,{value:we},e.createElement(Kf,{prefixCls:l,rootClassName:c,mode:Be,openKeys:$e,rtl:Ce,disabled:C,motion:be?X:null,defaultMotions:be?K:null,activeKey:it,onActive:lt,onInactive:ct,selectedKeys:dt,inlineIndent:W,subMenuOpenDelay:$,subMenuCloseDelay:k,forceSubMenuRender:N,builtinPlacements:Q,triggerSubMenuAction:Z,getPopupContainer:oe,itemIcon:J,expandIcon:ee,onItemClick:pt,onOpenChange:mt},e.createElement(Jf.Provider,{value:nt},xt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(Uf.Provider,{value:tt},ve)))))})),im=om;im.Item=Rp,im.SubMenu=Gp,im.ItemGroup=Qp,im.Divider=Up;var am={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"},lm=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:am}))},cm=e.forwardRef(lm);"production"!==process.env.NODE_ENV&&(cm.displayName="BarsOutlined");var sm={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"},um=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:sm}))},dm=e.forwardRef(um);"production"!==process.env.NODE_ENV&&(dm.displayName="LeftOutlined");const fm=e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var pm=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 mm={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},gm=e.createContext({}),vm=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),hm=e.forwardRef(((t,n)=>{const{prefixCls:r,className:i,trigger:l,children:s,defaultCollapsed:u=!1,theme:f="dark",style:p={},collapsible:m=!1,reverseArrow:g=!1,width:v=200,collapsedWidth:h=80,zeroWidthTriggerStyle:b,breakpoint:y,onCollapse:x,onBreakpoint:w}=t,C=pm(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:E}=o(fm),[S,$]=d("collapsed"in t?t.collapsed:u),[O,k]=d(!1);c((()=>{"collapsed"in t&&$(t.collapsed)}),[t.collapsed]);const N=(e,n)=>{"collapsed"in t||$(e),null==x||x(e,n)},j=a();j.current=e=>{k(e.matches),null==w||w(e.matches),S!==e.matches&&N(e.matches,"responsive")},c((()=>{function e(e){return j.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&y&&y in mm){t=n(`screen and (max-width: ${mm[y]})`);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)}}}),[y]),c((()=>{const e=vm("ant-sider-");return E.addSider(e),()=>E.removeSider(e)}),[]);const I=()=>{N(!S,"clickTrigger")},{getPrefixCls:M}=o(Zo),R=e.useMemo((()=>({siderCollapsed:S})),[S]);return e.createElement(gm.Provider,{value:R},(()=>{const t=M("layout-sider",r),o=We(C,["collapsed"]),a=S?h:v,c=(u=a,!isNaN(parseFloat(u))&&isFinite(u)?`${a}px`:String(a));var u;const d=0===parseFloat(String(h||0))?e.createElement("span",{onClick:I,className:P(`${t}-zero-width-trigger`,`${t}-zero-width-trigger-${g?"right":"left"}`),style:b},l||e.createElement(cm,null)):null,y={expanded:g?e.createElement(Mf,null):e.createElement(dm,null),collapsed:g?e.createElement(dm,null):e.createElement(Mf,null)}[S?"collapsed":"expanded"],x=null!==l?d||e.createElement("div",{className:`${t}-trigger`,onClick:I,style:{width:c}},l||y):null,w=Object.assign(Object.assign({},p),{flex:`0 0 ${c}`,maxWidth:c,minWidth:c,width:c}),E=P(t,`${t}-${f}`,{[`${t}-collapsed`]:!!S,[`${t}-has-trigger`]:m&&null!==l&&!d,[`${t}-below`]:!!O,[`${t}-zero-width`]:0===parseFloat(c)},i);return e.createElement("aside",Object.assign({className:E},o,{style:w,ref:n}),e.createElement("div",{className:`${t}-children`},s),m||O&&d?x:null)})())}));"production"!==process.env.NODE_ENV&&(hm.displayName="Sider");var bm={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"},ym=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:bm}))},xm=e.forwardRef(ym);"production"!==process.env.NODE_ENV&&(xm.displayName="EllipsisOutlined");const wm=i({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Cm=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 Em=t=>{const{prefixCls:n,className:r,dashed:o}=t,i=Cm(t,["prefixCls","className","dashed"]),{getPrefixCls:a}=e.useContext(Zo),l=a("menu",n),c=P({[`${l}-item-divider-dashed`]:!!o},r);return e.createElement(Up,Object.assign({className:c},i))},Sm=t=>{var n;const{className:r,children:o,icon:i,title:a,danger:l}=t,{prefixCls:c,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=e.useContext(wm),{siderCollapsed:p}=e.useContext(gm);let m=a;void 0===a?m=s?o:"":!1===a&&(m="");const g={title:m};p||f||(g.title=null,g.open=!1);const v=L(o).length;let h=e.createElement(Rp,Object.assign({},We(t,["title","icon","danger"]),{className:P({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?v+1:v)},r),title:"string"==typeof a?a:void 0}),xl(i,{className:P(e.isValidElement(i)?null===(n=i.props)||void 0===n?void 0:n.className:"",`${c}-item-icon`)}),(t=>{const n=e.createElement("span",{className:`${c}-title-content`},o);return(!i||e.isValidElement(o)&&"span"===o.type)&&o&&t&&s&&"string"==typeof o?e.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):n})(f));return d||(h=e.createElement(uf,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${c}-inline-collapsed-tooltip`}),h)),h},$m=e.createContext(null),Om=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:`${Lt(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"}}}},km=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(${Lt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Lt(n)})`}}}}},Nm=e=>Object.assign({},Di(e)),jm=(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:M,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Nm(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({},Nm(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:M,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Lt(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::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:`${Lt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Lt(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:Lt(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Lt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Im=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:Lt(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 - ${Lt(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% - ${Lt(e.calc(d).div(2).equal())} - ${Lt(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Lt(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({},Li),{paddingInline:p})}}]},Mm=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"}}}},Rm=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(${Lt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Lt(a)})`}}}}},Tm=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({},Fi(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:`${Lt(l)} ${Lt(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"}}}),Mm(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Lt(e.calc(r).mul(2).equal())} ${Lt(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},Mm(e)),Rm(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}}}),Rm(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Lt(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Lt(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Lt(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Lt(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Lt(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},_m=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 io($).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 io($).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 Am=t=>{var n;const{popupClassName:r,icon:o,title:i,theme:a}=t,l=e.useContext(wm),{prefixCls:c,inlineCollapsed:s,theme:u}=l,d=Qf();let f;if(o){const t=e.isValidElement(i)&&"span"===i.type;f=e.createElement(e.Fragment,null,xl(o,{className:P(e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:"",`${c}-item-icon`)}),t?i:e.createElement("span",{className:`${c}-title-content`},i))}else f=s&&!d.length&&i&&"string"==typeof i?e.createElement("div",{className:`${c}-inline-collapsed-noicon`},i.charAt(0)):e.createElement("span",{className:`${c}-title-content`},i);const p=e.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[m]=Pl("Menu");return e.createElement(wm.Provider,{value:p},e.createElement(Gp,Object.assign({},We(t,["icon"]),{title:f,popupClassName:P(c,r,`${c}-${a||u}`),popupStyle:{zIndex:m}})))};var Bm=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 Lm(e){return null===e||!1===e}const Fm={item:Sm,submenu:Am,divider:Em},zm=s(((t,n)=>{var r;const o=e.useContext($m),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:s}=e.useContext(Zo),u=a(),{prefixCls:d,className:f,style:p,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:h,siderCollapsed:b,rootClassName:y,mode:x,selectable:w,onClick:C,overflowedIndicatorPopupClassName:E}=t,S=We(Bm(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const e=Nr("Menu");"production"!==process.env.NODE_ENV&&e(!("inlineCollapsed"in t&&"inline"!==x),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&e(!(void 0!==t.siderCollapsed&&"inlineCollapsed"in t),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),e.deprecated("items"in t&&!t.children,"children","items")}null===(r=i.validator)||void 0===r||r.call(i,{mode:x});const $=di((function(){var e;null==C||C.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),O=i.mode||x,k=null!=w?w:i.selectable,N=e.useMemo((()=>void 0!==b?b:h),[h,b]),j={horizontal:{motionName:`${u}-slide-up`},inline:Yl(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||i.prefixCls),M=wl(I),[R,T,_]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Wi("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=bi(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=bi(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[Tm(w),Om(w),Im(w),jm(w,"light"),jm(C,"dark"),km(w),ju(w),Tu(w,"slide-up"),Tu(w,"slide-down"),Hu(w,"zoom-big")]}),_m,{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,M,!o),A=P(`${I}-${m}`,null==s?void 0:s.className,f),B=e.useMemo((()=>{var t,n;if("function"==typeof g||Lm(g))return g||null;if("function"==typeof i.expandIcon||Lm(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||Lm(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const r=null!==(t=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==t?t:null==s?void 0:s.expandIcon;return xl(r,{className:P(`${I}-submenu-expand-icon`,e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==s?void 0:s.expandIcon,I]),L=e.useMemo((()=>({prefixCls:I,inlineCollapsed:N||!1,direction:c,firstLevel:!0,theme:m,mode:O,disableMenuItemTitleTooltip:v})),[I,N,c,v,m]);return R(e.createElement($m.Provider,{value:null},e.createElement(wm.Provider,{value:L},e.createElement(im,Object.assign({getPopupContainer:l,overflowedIndicator:e.createElement(xm,null),overflowedIndicatorPopupClassName:P(I,`${I}-${m}`,E),mode:O,selectable:k,onClick:$},S,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==s?void 0:s.style),p),className:A,prefixCls:I,direction:c,defaultMotions:j,expandIcon:B,ref:n,rootClassName:P(y,T,i.rootClassName,_,M),_internalComponents:Fm})))))})),Dm=s(((t,n)=>{const r=a(null),o=e.useContext(gm);return g(n,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),e.createElement(zm,Object.assign({ref:r},t,o))}));function Hm(e){return bi(e,{inputAffixPadding:e.paddingXXS})}Dm.Item=Sm,Dm.SubMenu=Am,Dm.Divider=Em,Dm.ItemGroup=Qp,"production"!==process.env.NODE_ENV&&(Dm.displayName="Menu");const Vm=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}},Wm=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),qm=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({},Wm(bi(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Xm=(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}}),Km=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Xm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Gm=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},qm(e))}),Km(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Km(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Um=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ym=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Um(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Um(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},qm(e))}})}),Zm=(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)}},Qm=(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}}),Jm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Qm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),eg=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qm(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},qm(e))}),Jm(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Jm(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),tg=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),ng=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:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},tg(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),tg(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:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),rg=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Lt(t)} ${Lt(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},og=e=>({padding:`${Lt(e.paddingBlockSM)} ${Lt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ig=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Lt(e.paddingBlock)} ${Lt(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({},rg(e)),"&-sm":Object.assign({},og(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),ag=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({},rg(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},og(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 ${Lt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Lt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Lt(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:`${Lt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Lt(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}}}})}},lg=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({},Fi(e)),ig(e)),Gm(e)),eg(e)),Zm(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"}})}},cg=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 ${Lt(e.inputAffixPadding)}`}}}},sg=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({},ig(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}}}),cg(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},ug=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Fi(e)),ag(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}}},Ym(e)),ng(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}}})})}},dg=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}}}}},fg=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}}}}}},pg=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var mg=Wi("Input",(e=>{const t=bi(e,Hm(e));return[lg(t),fg(t),sg(t),ug(t),dg(t),pg(t),Zc(t)]}),Vm,{resetFont:!1}),gg={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"},vg=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:gg}))},hg=e.forwardRef(vg);"production"!==process.env.NODE_ENV&&(hg.displayName="PlusOutlined");var bg=i(null),yg={width:0,height:0,left:0,top:0};function xg(t,n){var r=e.useRef(t),o=rt(e.useState({}),2)[1];return[r.current,function(e){var t="function"==typeof e?e(r.current):e;t!==r.current&&n(t,r.current),r.current=t,o({})}]}var wg=Math.pow(.995,20);function Cg(e){var t=rt(d(0),2),n=t[0],r=t[1],o=a(0),i=a();return i.current=e,qt((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var Eg={width:0,height:0,left:0,top:0,right:0};function Sg(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function $g(e){return String(e).replace(/"/g,"TABS_DQ")}function Og(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var kg=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.editable,i=t.locale,a=t.style;return o&&!1!==o.showAdd?e.createElement("button",{ref:n,type:"button",className:"".concat(r,"-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})),Ng=e.forwardRef((function(t,n){var r,o=t.position,i=t.prefixCls,a=t.extra;if(!a)return null;var l={};return"object"!==X(a)||e.isValidElement(a)?l.right=a:l=a,"right"===o&&(r=l.right),"left"===o&&(r=l.left),r?e.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},r):null}));"production"!==process.env.NODE_ENV&&(Ng.displayName="ExtraContent");var jg=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.id,i=t.tabs,a=t.locale,l=t.mobile,s=t.more,u=void 0===s?{}:s,f=t.style,p=t.className,m=t.editable,g=t.tabBarGutter,v=t.rtl,h=t.removeAriaLabel,b=t.onTabClick,y=t.getPopupContainer,x=t.popupClassName,w=rt(d(!1),2),C=w[0],E=w[1],S=rt(d(null),2),$=S[0],O=S[1],k=u.icon,N=void 0===k?"More":k,j="".concat(o,"-more-popup"),M="".concat(r,"-dropdown"),R=null!==$?"".concat(j,"-").concat($):null,T=null==a?void 0:a.dropdownAriaLabel;var _=e.createElement(im,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),E(!1)},prefixCls:"".concat(M,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[$],"aria-label":void 0!==T?T:"expanded dropdown"},i.map((function(t){var n=t.closable,r=t.disabled,i=t.closeIcon,a=t.key,l=t.label,c=Og(n,i,m,r);return e.createElement(Rp,{key:a,id:"".concat(j,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:r},e.createElement("span",null,l),c&&e.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,a)}},i||m.removeIcon||"×"))})));function A(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===$}))||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void O(a.key)}}c((function(){var e=document.getElementById(R);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[$]),c((function(){C||O(null)}),[C]);var B=G({},v?"marginRight":"marginLeft",g);i.length||(B.visibility="hidden",B.order=1);var L=P(G({},"".concat(M,"-rtl"),v)),F=l?null:e.createElement(Df,I({prefixCls:M,overlay:_,visible:!!i.length&&C,onVisibleChange:E,overlayClassName:P(L,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},u),e.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:B,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(o,"-more"),"aria-expanded":C,onKeyDown:function(e){var t=e.which;if(C)switch(t){case Cl.UP:A(-1),e.preventDefault();break;case Cl.DOWN:A(1),e.preventDefault();break;case Cl.ESC:E(!1);break;case Cl.SPACE:case Cl.ENTER:null!==$&&b($,e)}else[Cl.DOWN,Cl.SPACE,Cl.ENTER].includes(t)&&(E(!0),e.preventDefault())}},N));return e.createElement("div",{className:P("".concat(r,"-nav-operations"),p),style:f,ref:n},F,e.createElement(kg,{prefixCls:r,locale:a,editable:m}))})),Pg=e.memo(jg,(function(e,t){return t.tabMoving})),Ig=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.tab,a=i.key,l=i.label,c=i.disabled,s=i.closeIcon,u=i.icon,d=t.closable,f=t.renderWrapper,p=t.removeAriaLabel,m=t.editable,g=t.onClick,v=t.onFocus,h=t.style,b="".concat(n,"-tab"),y=Og(d,s,m,c);function x(e){c||g(e)}var w=e.useMemo((function(){return u&&"string"==typeof l?e.createElement("span",null,l):l}),[l,u]),C=e.createElement("div",{key:a,"data-node-key":$g(a),className:P(b,G(G(G({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),o),"".concat(b,"-disabled"),c)),style:h,onClick:x},e.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[Cl.SPACE,Cl.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:v},u&&e.createElement("span",{className:"".concat(b,"-icon")},u),l&&w),y&&e.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:a,event:t})}},s||m.removeIcon||"×"));return f?f(C):C},Mg=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]},Rg=function(e,t){return e[t?0:1]},Tg=e.forwardRef((function(n,r){var o,i,l,s,f,p=n.className,m=n.style,g=n.id,v=n.animated,h=n.activeKey,b=n.rtl,y=n.extra,x=n.editable,w=n.locale,C=n.tabPosition,E=n.tabBarGutter,S=n.children,$=n.onTabClick,O=n.onTabScroll,k=n.indicator,N=e.useContext(bg),j=N.prefixCls,M=N.tabs,R=a(null),T=a(null),_=a(null),A=a(null),B=a(null),L=a(null),F=a(null),z="top"===C||"bottom"===C,D=xg(0,(function(e,t){z&&O&&O({direction:e>t?"left":"right"})})),H=rt(D,2),V=H[0],W=H[1],q=xg(0,(function(e,t){!z&&O&&O({direction:e>t?"top":"bottom"})})),X=rt(q,2),K=X[0],U=X[1],Z=rt(d([0,0]),2),Q=Z[0],J=Z[1],ee=rt(d([0,0]),2),te=ee[0],re=ee[1],oe=rt(d([0,0]),2),ie=oe[0],ae=oe[1],le=rt(d([0,0]),2),ce=le[0],se=le[1],ue=(o=new Map,i=a([]),l=rt(d({}),2)[1],s=a("function"==typeof o?o():o),f=Cg((function(){var e=s.current;i.current.forEach((function(t){e=t(e)})),i.current=[],s.current=e,l({})})),[s.current,function(e){i.current.push(e),f()}]),de=rt(ue,2),fe=de[0],pe=de[1],me=function(e,t,n){return u((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||yg,i=o.left+o.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=t.get(c);s||(s=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||yg);var u=r.get(c)||Y({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(M,fe,te[0]),ge=Rg(Q,z),ve=Rg(te,z),he=Rg(ie,z),be=Rg(ce,z),ye=ge<ve+he,xe=ye?ge-be:ge-he,we="".concat(j,"-nav-operations-hidden"),Ce=0,Ee=0;function Se(e){return e<Ce?Ce:e>Ee?Ee:e}z&&b?(Ce=0,Ee=Math.max(0,ve-xe)):(Ce=Math.min(0,xe-ve),Ee=0);var $e=a(null),Oe=rt(d(),2),ke=Oe[0],Ne=Oe[1];function je(){Ne(Date.now())}function Pe(){$e.current&&clearTimeout($e.current)}!function(t,n){var r=rt(d(),2),o=r[0],i=r[1],l=rt(d(0),2),c=l[0],s=l[1],u=rt(d(0),2),f=u[0],p=u[1],m=rt(d(),2),g=m[0],v=m[1],h=a(),b=a(),y=a(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(o){e.preventDefault();var t=e.touches[0],r=t.screenX,a=t.screenY;i({x:r,y:a});var l=r-o.x,u=a-o.y;n(l,u);var d=Date.now();s(d),p(d-c),v({x:l,y:u})}},onTouchEnd:function(){if(o&&(i(null),v(null),g)){var e=g.x/f,t=g.y/f,r=Math.abs(e),a=Math.abs(t);if(Math.max(r,a)<.1)return;var l=e,c=t;h.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(h.current):n(20*(l*=wg),20*(c*=wg))}),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"===b.current?t:r:i>a?(o=t,b.current="x"):(o=r,b.current="y"),n(-o,-o)&&e.preventDefault()}},e.useEffect((function(){function e(e){y.current.onTouchMove(e)}function n(e){y.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){y.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){y.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(A,(function(e,t){function n(e,t){e((function(e){return Se(e+t)}))}return!!ye&&(z?n(W,e):n(U,t),Pe(),je(),!0)})),c((function(){return Pe(),ke&&($e.current=setTimeout((function(){Ne(0)}),100)),Pe}),[ke]);var Ie=function(e,t,n,r,o,i,a){var l,c,s,d=a.tabs,f=a.tabPosition,p=a.rtl;return["top","bottom"].includes(f)?(l="width",c=p?"right":"left",s=Math.abs(n)):(l="height",c="top",s=-n),u((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;o<n;o+=1){var i=e.get(d[o].key)||Eg;if(i[c]+i[l]>s+t){r=o-1;break}}for(var a=0,u=n-1;u>=0;u-=1)if((e.get(d[u].key)||Eg)[c]<s){a=u+1;break}return a>=r?[0,0]:[a,r]}),[e,t,r,o,i,s,f,d.map((function(e){return e.key})).join("_"),p])}(me,xe,z?V:K,ve,he,be,Y(Y({},n),{},{tabs:M})),Me=rt(Ie,2),Re=Me[0],Te=Me[1],_e=di((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=me.get(e)||{width:0,height:0,left:0,right:0,top:0};if(z){var n=V;b?t.right<V?n=t.right:t.right+t.width>V+xe&&(n=t.right+t.width-xe):t.left<-V?n=-t.left:t.left+t.width>-V+xe&&(n=-(t.left+t.width-xe)),U(0),W(Se(n))}else{var r=K;t.top<-K?r=-t.top:t.top+t.height>-K+xe&&(r=-(t.top+t.height-xe)),W(0),U(Se(r))}})),Ae={};"top"===C||"bottom"===C?Ae[b?"marginRight":"marginLeft"]=E:Ae.marginTop=E;var Be=M.map((function(t,n){var r=t.key;return e.createElement(Ig,{id:g,prefixCls:j,key:r,tab:t,style:0===n?void 0:Ae,closable:t.closable,editable:x,active:r===h,renderWrapper:S,removeAriaLabel:null==w?void 0:w.removeAriaLabel,onClick:function(e){$(r,e)},onFocus:function(){_e(r),je(),A.current&&(b||(A.current.scrollLeft=0),A.current.scrollTop=0)}})})),Le=function(){return pe((function(){var e,t=new Map,n=null===(e=B.current)||void 0===e?void 0:e.getBoundingClientRect();return M.forEach((function(e){var r,o=e.key,i=null===(r=B.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat($g(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=rt(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}))};c((function(){Le()}),[M.map((function(e){return e.key})).join("_")]);var Fe=Cg((function(){var e=Mg(R),t=Mg(T),n=Mg(_);J([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Mg(F);ae(r);var o=Mg(L);se(o);var i=Mg(B);re([i[0]-r[0],i[1]-r[1]]),Le()})),ze=M.slice(0,Re),De=M.slice(Te+1),He=[].concat(Ge(ze),Ge(De)),We=me.get(h),qe=function(e){var n=e.activeTabOffset,r=e.horizontal,o=e.rtl,i=e.indicator,l=void 0===i?{}:i,s=l.size,u=l.align,f=void 0===u?"center":u,p=rt(d(),2),m=p[0],g=p[1],v=a(),h=t.useCallback((function(e){return"function"==typeof s?s(e):"number"==typeof s?s:e}),[s]);function b(){et.cancel(v.current)}return c((function(){var e={};if(n)if(r){e.width=h(n.width);var t=o?"right":"left";"start"===f&&(e[t]=n[t]),"center"===f&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===f&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=h(n.height),"start"===f&&(e.top=n.top),"center"===f&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===f&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return b(),v.current=et((function(){g(e)})),b}),[n,r,o,f,h]),{style:m}}({activeTabOffset:We,horizontal:z,indicator:k,rtl:b}),Xe=qe.style;c((function(){_e()}),[h,Ce,Ee,Sg(We),Sg(me),z]),c((function(){Fe()}),[b]);var Ke,Ue,Ye,Ze,Qe=!!He.length,Je="".concat(j,"-nav-wrap");return z?b?(Ue=V>0,Ke=V!==Ee):(Ke=V<0,Ue=V!==Ce):(Ye=K<0,Ze=K!==Ce),e.createElement(Ve,{onResize:Fe},e.createElement("div",{ref:ne(r,R),role:"tablist",className:P("".concat(j,"-nav"),p),style:m,onKeyDown:function(){je()}},e.createElement(Ng,{ref:T,position:"left",extra:y,prefixCls:j}),e.createElement(Ve,{onResize:Fe},e.createElement("div",{className:P(Je,G(G(G(G({},"".concat(Je,"-ping-left"),Ke),"".concat(Je,"-ping-right"),Ue),"".concat(Je,"-ping-top"),Ye),"".concat(Je,"-ping-bottom"),Ze)),ref:A},e.createElement(Ve,{onResize:Fe},e.createElement("div",{ref:B,className:"".concat(j,"-nav-list"),style:{transform:"translate(".concat(V,"px, ").concat(K,"px)"),transition:ke?"none":void 0}},Be,e.createElement(kg,{ref:F,prefixCls:j,locale:w,editable:x,style:Y(Y({},0===Be.length?void 0:Ae),{},{visibility:Qe?"hidden":null})}),e.createElement("div",{className:P("".concat(j,"-ink-bar"),G({},"".concat(j,"-ink-bar-animated"),v.inkBar)),style:Xe}))))),e.createElement(Pg,I({},n,{removeAriaLabel:null==w?void 0:w.removeAriaLabel,ref:L,prefixCls:j,tabs:He,className:!Qe&&we,tabMoving:!!ke})),e.createElement(Ng,{ref:_,position:"right",extra:y,prefixCls:j})))})),_g=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.className,i=t.style,a=t.id,l=t.active,c=t.tabKey,s=t.children;return e.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(r,l&&"".concat(r,"-active"),o),ref:n},s)}));"production"!==process.env.NODE_ENV&&(_g.displayName="TabPane");var Ag=["renderTabBar"],Bg=["label","key"],Lg=function(t){var n=t.renderTabBar,r=ht(t,Ag),o=e.useContext(bg).tabs;return n?n(Y(Y({},r),{},{panes:o.map((function(t){var n=t.label,r=t.key,o=ht(t,Bg);return e.createElement(_g,I({tab:n,key:r,tabKey:r},o))}))}),Tg):e.createElement(Tg,r)};"production"!==process.env.NODE_ENV&&(Lg.displayName="TabNavListWrapper");var Fg=["key","forceRender","style","className","destroyInactiveTabPane"],zg=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=e.useContext(bg),c=l.prefixCls,s=l.tabs,u=o.tabPane,d="".concat(c,"-tabpane");return e.createElement("div",{className:P("".concat(c,"-content-holder"))},e.createElement("div",{className:P("".concat(c,"-content"),"".concat(c,"-content-").concat(i),G({},"".concat(c,"-content-animated"),u))},s.map((function(t){var i=t.key,l=t.forceRender,c=t.style,s=t.className,f=t.destroyInactiveTabPane,p=ht(t,Fg),m=i===r;return e.createElement(Ma,I({key:i,visible:m,forceRender:l,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),(function(t,r){var o=t.style,a=t.className;return e.createElement(_g,I({},p,{prefixCls:d,id:n,tabKey:i,animated:u,active:m,style:Y(Y({},c),o),className:P(s,a),ref:r}))}))}))))};var Dg=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Hg=0,Vg=e.forwardRef((function(t,n){var r=t.id,o=t.prefixCls,i=void 0===o?"rc-tabs":o,a=t.className,l=t.items,s=t.direction,u=t.activeKey,f=t.defaultActiveKey,p=t.editable,m=t.animated,g=t.tabPosition,v=void 0===g?"top":g,h=t.tabBarGutter,b=t.tabBarStyle,y=t.tabBarExtraContent,x=t.locale,w=t.more,C=t.destroyInactiveTabPane,E=t.renderTabBar,S=t.onChange,$=t.onTabClick,O=t.onTabScroll,k=t.getPopupContainer,N=t.popupClassName,j=t.indicator,M=ht(t,Dg),R=e.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===X(e)&&"key"in e}))}),[l]),T="rtl"===s,_=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}:Y({inkBar:!0},"object"===X(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&q(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(m),A=rt(d(!1),2),B=A[0],L=A[1];c((function(){L(Vu())}),[]);var F=rt(mi((function(){var e;return null===(e=R[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:f}),2),z=F[0],D=F[1],H=rt(d((function(){return R.findIndex((function(e){return e.key===z}))})),2),V=H[0],W=H[1];c((function(){var e,t=R.findIndex((function(e){return e.key===z}));-1===t&&(t=Math.max(0,Math.min(V,R.length-1)),D(null===(e=R[t])||void 0===e?void 0:e.key));W(t)}),[R.map((function(e){return e.key})).join("_"),z,V]);var K=rt(mi(null,{value:r}),2),U=K[0],Z=K[1];c((function(){r||(Z("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":Hg)),Hg+=1)}),[]);var Q={id:U,activeKey:z,animated:_,tabPosition:v,rtl:T,mobile:B},J=Y(Y({},Q),{},{editable:p,locale:x,more:w,tabBarGutter:h,onTabClick:function(e,t){null==$||$(e,t);var n=e!==z;D(e),n&&(null==S||S(e))},onTabScroll:O,extra:y,style:b,panes:null,getPopupContainer:k,popupClassName:N,indicator:j});return e.createElement(bg.Provider,{value:{tabs:R,prefixCls:i}},e.createElement("div",I({ref:n,id:r,className:P(i,"".concat(i,"-").concat(v),G(G(G({},"".concat(i,"-mobile"),B),"".concat(i,"-editable"),p),"".concat(i,"-rtl"),T),a)},M),e.createElement(Lg,I({},J,{renderTabBar:E})),e.createElement(zg,I({destroyInactiveTabPane:C},Q,{animated:_}))))}));"production"!==process.env.NODE_ENV&&(Vg.displayName="Tabs");const Wg={motionAppear:!1,motionEnter:!0,motionLeave:!0};var qg=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 Xg=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}`}}}}},[Tu(e,"slide-up"),Tu(e,"slide-down")]]},Kg=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:`${Lt(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:Lt(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Lt(e.borderRadiusLG)} ${Lt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Lt(e.borderRadiusLG)} ${Lt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Lt(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Lt(e.borderRadiusLG)} 0 0 ${Lt(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 ${Lt(e.borderRadiusLG)} ${Lt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Gg=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Fi(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:`${Lt(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({},Li),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Lt(e.paddingXXS)} ${Lt(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"}}})}})}},Ug=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:`${Lt(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:Lt(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Lt(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:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Yg=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 ${Lt(e.borderRadius)} ${Lt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Lt(e.borderRadius)} ${Lt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Lt(e.borderRadius)} ${Lt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Lt(e.borderRadius)} 0 0 ${Lt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Zg=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}},Hi(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}}}},Qg=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:Lt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Lt(e.marginXS)},marginLeft:{_skip_check_:!0,value:Lt(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"}}}}},Jg=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({},Fi(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 ${Lt(e.paddingXS)}`,background:"transparent",border:`${Lt(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Lt(e.borderRadiusLG)} ${Lt(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}},Hi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Zg(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 ev=Wi("Tabs",(e=>{const t=bi(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Lt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Lt(e.horizontalItemGutter)}`});return[Yg(t),Qg(t),Ug(t),Gg(t),Kg(t),Jg(t),Xg(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 tv=()=>null;"production"!==process.env.NODE_ENV&&(tv.displayName="DeprecatedTabPane");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=t=>{var n,r,o,i,a,l,c,s,u,d,f;const{type:p,className:m,rootClassName:g,size:v,onEdit:h,hideAdd:b,centered:y,addIcon:x,removeIcon:w,moreIcon:C,more:E,popupClassName:S,children:$,items:O,animated:k,style:N,indicatorSize:j,indicator:I}=t,M=nv(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=M,{direction:T,tabs:_,getPrefixCls:A,getPopupContainer:B}=e.useContext(Zo),F=A("tabs",R),z=wl(F),[D,H,V]=ev(F,z);let W;"editable-card"===p&&(W={onEdit:(e,t)=>{let{key:n,event:r}=t;null==h||h("add"===e?r:n,e)},removeIcon:null!==(n=null!=w?w:null==_?void 0:_.removeIcon)&&void 0!==n?n:e.createElement(gl,null),addIcon:(null!=x?x:null==_?void 0:_.addIcon)||e.createElement(hg,null),showAdd:!0!==b});const q=A();if("production"!==process.env.NODE_ENV){const e=Nr("Tabs");"production"!==process.env.NODE_ENV&&e(!("onPrevClick"in t)&&!("onNextClick"in t),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&e(!(j||(null==_?void 0:_.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const X=cc(v),K=function(t,n){"production"!==process.env.NODE_ENV&&Nr("Tabs").deprecated(!n,"Tabs.TabPane","items");if(t)return t;const r=L(n).map((t=>{if(e.isValidElement(t)){const{key:e,props:n}=t,r=n||{},{tab:o}=r,i=qg(r,["tab"]);return Object.assign(Object.assign({key:String(e)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(r)}(O,$),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({},Wg),{motionName:Zl(e,"switch")})),t}(F,k),U=Object.assign(Object.assign({},null==_?void 0:_.style),N),Y={align:null!==(r=null==I?void 0:I.align)&&void 0!==r?r:null===(o=null==_?void 0:_.indicator)||void 0===o?void 0:o.align,size:null!==(c=null!==(a=null!==(i=null==I?void 0:I.size)&&void 0!==i?i:j)&&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(e.createElement(Vg,Object.assign({direction:T,getPopupContainer:B},M,{items:K,className:P({[`${F}-${X}`]:X,[`${F}-card`]:["card","editable-card"].includes(p),[`${F}-editable-card`]:"editable-card"===p,[`${F}-centered`]:y},null==_?void 0:_.className,m,g,H,V,z),popupClassName:P(S,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:C)&&void 0!==f?f:e.createElement(xm,null),transitionName:`${q}-slide-up`},E),prefixCls:F,animated:G,indicator:Y})))};function ov(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 iv(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=ov(t,e,r)):n(o=ov(t,e,""))}}rv.TabPane=tv,"production"!==process.env.NODE_ENV&&(rv.displayName="Tabs");var av=t.forwardRef((function(e,n){var r,o,i=e.inputElement,l=e.children,c=e.prefixCls,s=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,m=e.style,g=e.disabled,h=e.readOnly,b=e.focused,y=e.triggerFocus,x=e.allowClear,w=e.value,C=e.handleReset,E=e.hidden,S=e.classes,$=e.classNames,O=e.dataAttrs,k=e.styles,N=e.components,j=e.onClear,M=null!=l?l:i,R=(null==N?void 0:N.affixWrapper)||"span",T=(null==N?void 0:N.groupWrapper)||"span",_=(null==N?void 0:N.wrapper)||"span",A=(null==N?void 0:N.groupAddon)||"span",B=a(null),L=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),F=v(M,{value:w,className:P(M.props.className,!L&&(null==$?void 0:$.variant))||null}),z=a(null);if(t.useImperativeHandle(n,(function(){return{nativeElement:z.current||B.current}})),L){var D=null;if(x){var H=!g&&!h&&w,V="".concat(c,"-clear-icon"),W="object"===X(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";D=t.createElement("span",{onClick:function(e){null==C||C(e),null==j||j()},onMouseDown:function(e){return e.preventDefault()},className:P(V,G(G({},"".concat(V,"-hidden"),!H),"".concat(V,"-has-suffix"),!!u)),role:"button",tabIndex:-1},W)}var q="".concat(c,"-affix-wrapper"),K=P(q,G(G(G(G(G({},"".concat(c,"-disabled"),g),"".concat(q,"-disabled"),g),"".concat(q,"-focused"),b),"".concat(q,"-readonly"),h),"".concat(q,"-input-with-clear-btn"),u&&x&&w),null==S?void 0:S.affixWrapper,null==$?void 0:$.affixWrapper,null==$?void 0:$.variant),U=(u||x)&&t.createElement("span",{className:P("".concat(c,"-suffix"),null==$?void 0:$.suffix),style:null==k?void 0:k.suffix},D,u);F=t.createElement(R,I({className:K,style:null==k?void 0:k.affixWrapper,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:B}),s&&t.createElement("span",{className:P("".concat(c,"-prefix"),null==$?void 0:$.prefix),style:null==k?void 0:k.prefix},s),F,U)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var Z="".concat(c,"-group"),Q="".concat(Z,"-addon"),J="".concat(Z,"-wrapper"),ee=P("".concat(c,"-wrapper"),Z,null==S?void 0:S.wrapper,null==$?void 0:$.wrapper),te=P(J,G({},"".concat(J,"-disabled"),g),null==S?void 0:S.group,null==$?void 0:$.groupWrapper);F=t.createElement(T,{className:te,ref:z},t.createElement(_,{className:ee},d&&t.createElement(A,{className:Q},d),F,f&&t.createElement(A,{className:Q},f)))}return t.cloneElement(F,{className:P(null===(r=F.props)||void 0===r?void 0:r.className,p)||null,style:Y(Y({},null===(o=F.props)||void 0===o?void 0:o.style),m),hidden:E})})),lv=["show"];function cv(t,n){return e.useMemo((function(){var e={};n&&(e.show="object"===X(n)&&n.formatter?n.formatter:!!n);var r=e=Y(Y({},e),t),o=r.show,i=ht(r,lv);return Y(Y({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[t,n])}var sv=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],uv=s((function(e,n){var r=e.autoComplete,o=e.onChange,i=e.onFocus,l=e.onBlur,s=e.onPressEnter,u=e.onKeyDown,f=e.onKeyUp,p=e.prefixCls,m=void 0===p?"rc-input":p,v=e.disabled,h=e.htmlSize,b=e.className,y=e.maxLength,x=e.suffix,w=e.showCount,C=e.count,E=e.type,S=void 0===E?"text":E,$=e.classes,O=e.classNames,k=e.styles,N=e.onCompositionStart,j=e.onCompositionEnd,M=ht(e,sv),R=rt(d(!1),2),T=R[0],_=R[1],A=a(!1),B=a(!1),L=a(null),F=a(null),z=function(e){L.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)}}}}(L.current,e)},D=rt(mi(e.defaultValue,{value:e.value}),2),H=D[0],V=D[1],W=null==H?"":String(H),q=rt(d(null),2),X=q[0],K=q[1],U=cv(C,w),Z=U.max||y,Q=U.strategy(W),J=!!Z&&Q>Z;g(n,(function(){var e;return{focus:z,blur:function(){var e;null===(e=L.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=L.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=L.current)||void 0===e||e.select()},input:L.current,nativeElement:(null===(e=F.current)||void 0===e?void 0:e.nativeElement)||L.current}})),c((function(){_((function(e){return(!e||!v)&&e}))}),[v]);var ee=function(e,t,n){var r,i,a=t;if(!A.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max)t!==(a=U.exceedFormatter(t,{max:U.max}))&&K([(null===(r=L.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=L.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;V(a),L.current&&iv(L.current,e,o,a)};c((function(){var e;X&&(null===(e=L.current)||void 0===e||e.setSelectionRange.apply(e,Ge(X)))}),[X]);var te,ne=function(e){ee(e,e.target.value,{source:"change"})},re=function(e){A.current=!1,ee(e,e.currentTarget.value,{source:"compositionEnd"}),null==j||j(e)},oe=function(e){s&&"Enter"===e.key&&!B.current&&(B.current=!0,s(e)),null==u||u(e)},ie=function(e){"Enter"===e.key&&(B.current=!1),null==f||f(e)},ae=function(e){_(!0),null==i||i(e)},le=function(e){_(!1),null==l||l(e)},ce=J&&"".concat(m,"-out-of-range");return t.createElement(av,I({},M,{prefixCls:m,className:P(b,ce),handleReset:function(e){V(""),z(),L.current&&iv(L.current,e,o)},value:W,focused:T,triggerFocus:z,suffix:function(){var e=Number(Z)>0;if(x||U.show){var n=U.showFormatter?U.showFormatter({value:W,count:Q,maxLength:Z}):"".concat(Q).concat(e?" / ".concat(Z):"");return t.createElement(t.Fragment,null,U.show&&t.createElement("span",{className:P("".concat(m,"-show-count-suffix"),G({},"".concat(m,"-show-count-has-suffix"),!!x),null==O?void 0:O.count),style:Y({},null==k?void 0:k.count)},n),x)}return null}(),disabled:v,classes:$,classNames:O,styles:k}),(te=We(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t.createElement("input",I({autoComplete:r},te,{onChange:ne,onFocus:ae,onBlur:le,onKeyDown:oe,onKeyUp:ie,className:P(m,G({},"".concat(m,"-disabled"),v),null==O?void 0:O.input),style:null==k?void 0:k.input,ref:L,size:h,type:S,onCompositionStart:function(e){A.current=!0,null==N||N(e)},onCompositionEnd:re}))))}));const dv=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t.createElement(fl,null)}),n};function fv(e,t){const n=a([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return c((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}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=s(((e,n)=>{var r;const{prefixCls:i,bordered:l=!0,status:s,size:u,disabled:d,onBlur:f,onFocus:p,suffix:m,allowClear:g,addonAfter:v,addonBefore:h,className:b,style:y,styles:x,rootClassName:w,onChange:C,classNames:E,variant:S}=e,$=pv(e,["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:t}=Nr("Input");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:O,direction:k,input:N}=t.useContext(Zo),j=O("input",i),I=a(null),M=wl(j),[R,T,_]=mg(j,M),{compactSize:A,compactItemClassnames:B}=uc(j,k),L=cc((e=>{var t;return null!==(t=null!=u?u:A)&&void 0!==t?t:e})),F=t.useContext(ei),z=null!=d?d:F,{status:D,hasFeedback:H,feedbackIcon:V}=o(Eu),W=Pd(D,s),q=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!H,X=a(q);if("production"!==process.env.NODE_ENV){const e=Nr("Input");c((()=>{var t;q&&!X.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===(null===(t=I.current)||void 0===t?void 0:t.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"),X.current=q}),[q])}const K=fv(I,!0),G=(H||m)&&t.createElement(t.Fragment,null,m,H&&V),U=dv(null!=g?g:null==N?void 0:N.allowClear),[Y,Z]=Id("input",S,l);return R(t.createElement(uv,Object.assign({ref:te(n,I),prefixCls:j,autoComplete:null==N?void 0:N.autoComplete},$,{disabled:z,onBlur:e=>{K(),null==f||f(e)},onFocus:e=>{K(),null==p||p(e)},style:Object.assign(Object.assign({},null==N?void 0:N.style),y),styles:Object.assign(Object.assign({},null==N?void 0:N.styles),x),suffix:G,allowClear:U,className:P(b,w,_,M,B,null==N?void 0:N.className),onChange:e=>{K(),null==C||C(e)},addonBefore:h&&t.createElement(Ou,{form:!0,space:!0},h),addonAfter:v&&t.createElement(Ou,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},E),null==N?void 0:N.classNames),{input:P({[`${j}-sm`]:"small"===L,[`${j}-lg`]:"large"===L,[`${j}-rtl`]:"rtl"===k},null==E?void 0:E.input,null===(r=null==N?void 0:N.classNames)||void 0===r?void 0:r.input,T),variant:P({[`${j}-${Y}`]:Z},jd(j,W)),affixWrapper:P({[`${j}-affix-wrapper-sm`]:"small"===L,[`${j}-affix-wrapper-lg`]:"large"===L,[`${j}-affix-wrapper-rtl`]:"rtl"===k},T),wrapper:P({[`${j}-group-rtl`]:"rtl"===k},T),groupWrapper:P({[`${j}-group-wrapper-sm`]:"small"===L,[`${j}-group-wrapper-lg`]:"large"===L,[`${j}-group-wrapper-rtl`]:"rtl"===k,[`${j}-group-wrapper-${Y}`]:Z},jd(`${j}-group-wrapper`,W,H),T)})})))}));"production"!==process.env.NODE_ENV&&(mv.displayName="Input");const gv=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 vv=Wi(["Input","OTP"],(e=>{const t=bi(e,Hm(e));return[gv(t)]}),Vm),hv=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 bv=e.forwardRef(((t,n)=>{const{value:r,onChange:o,onActiveChange:i,index:a,mask:l}=t,c=hv(t,["value","onChange","onActiveChange","index","mask"]),s=r&&"string"==typeof l?l:r,u=e.useRef(null);e.useImperativeHandle(n,(()=>u.current));const d=()=>{et((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return e.createElement(mv,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||r||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===l?"password":"text"}))}));var yv=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 xv(e){return(e||"").split("")}const wv=e.forwardRef(((t,n)=>{const{prefixCls:r,length:o=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,variant:u,disabled:d,status:f,autoFocus:p,mask:m}=t,g=yv(t,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=Nr("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof m&&m.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:v,direction:h}=e.useContext(Zo),b=v("otp",r),y=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}:Y({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||hl(n,"aria-"))||t.data&&hl(n,"data-")||t.attr&&vl.includes(n))&&(r[n]=e[n])})),r}(g,{aria:!0,data:!0,attr:!0}),x=wl(b),[w,C,E]=vv(b,x),S=cc((e=>null!=i?i:e)),$=e.useContext(Eu),O=Pd($.status,f),k=e.useMemo((()=>Object.assign(Object.assign({},$),{status:O,hasFeedback:!1,feedbackIcon:null})),[$,O]),N=e.useRef(null),j=e.useRef({});e.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=j.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=j.current[t])||void 0===e||e.blur()},nativeElement:N.current})));const I=e=>s?s(e):e,[M,R]=e.useState(xv(I(a||"")));e.useEffect((()=>{void 0!==l&&R(xv(l))}),[l]);const T=di((e=>{R(e),c&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>M[t]!==e))&&c(e.join(""))})),_=di(((e,t)=>{let n=Ge(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(xv(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=xv(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),A=(e,t)=>{var n;const r=_(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=j.current[i])||void 0===n||n.focus()),T(r)},B=e=>{var t;null===(t=j.current[e])||void 0===t||t.focus()},L={variant:u,disabled:d,status:O,mask:m};return w(e.createElement("div",Object.assign({},y,{ref:N,className:P(b,{[`${b}-sm`]:"small"===S,[`${b}-lg`]:"large"===S,[`${b}-rtl`]:"rtl"===h},E,C)}),e.createElement(Eu.Provider,{value:k},Array.from({length:o}).map(((t,n)=>{const r=`otp-${n}`,o=M[n]||"";return e.createElement(bv,Object.assign({ref:e=>{j.current[n]=e},key:r,index:n,size:S,htmlSize:1,className:`${b}-input`,onChange:A,value:o,onActiveChange:B,autoFocus:0===n&&p},L))})))))}));var Cv={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"},Ev=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:Cv}))},Sv=e.forwardRef(Ev);"production"!==process.env.NODE_ENV&&(Sv.displayName="EyeInvisibleOutlined");var $v={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"},Ov=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:$v}))},kv=e.forwardRef(Ov);"production"!==process.env.NODE_ENV&&(kv.displayName="EyeOutlined");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 jv=t=>t?e.createElement(kv,null):e.createElement(Sv,null),Pv={click:"onClick",hover:"onMouseOver"},Iv=e.forwardRef(((t,n)=>{const{disabled:r,action:o="click",visibilityToggle:i=!0,iconRender:l=jv}=t,c="object"==typeof i&&void 0!==i.visible,[s,u]=d((()=>!!c&&i.visible)),f=a(null);e.useEffect((()=>{c&&u(i.visible)}),[c,i]);const p=fv(f),m=()=>{r||(s&&p(),u((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:g,prefixCls:v,inputPrefixCls:h,size:b}=t,y=Nv(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=e.useContext(Zo),w=x("input",h),C=x("input-password",v),E=i&&(t=>{const n=Pv[o]||"",r=l(s),i={[n]:m,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(r)?r:e.createElement("span",null,r),i)})(C),S=P(C,g,{[`${C}-${b}`]:!!b}),$=Object.assign(Object.assign({},We(y,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:S,prefixCls:w,suffix:E});return b&&($.size=b),e.createElement(mv,Object.assign({ref:te(n,f)},$))}));"production"!==process.env.NODE_ENV&&(Iv.displayName="Input.Password");var Mv=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.forwardRef(((t,n)=>{const{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:g}=t,v=Mv(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:b}=e.useContext(Zo),y=e.useRef(!1),x=h("input-search",r),w=h("input",o),{compactSize:C}=uc(x,b),E=cc((e=>{var t;return null!==(t=null!=a?a:C)&&void 0!==t?t:e})),S=e.useRef(null),$=e=>{var t;document.activeElement===(null===(t=S.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;f&&f(null===(n=null===(t=S.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},k="boolean"==typeof c?e.createElement(Bd,null):null,N=`${x}-button`;let j;const I=c||{},M=I.type&&!0===I.type.__ANT_BUTTON;j=M||"button"===I.type?xl(I,Object.assign({onMouseDown:$,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),O(e)},key:"enterButton"},M?{className:N,size:E}:{})):e.createElement(os,{className:N,type:c?"primary":void 0,size:E,disabled:d,key:"enterButton",onMouseDown:$,onClick:O,loading:u,icon:k},c),s&&(j=[j,xl(s,{key:"addonAfter"})]);const R=P(x,{[`${x}-rtl`]:"rtl"===b,[`${x}-${E}`]:!!E,[`${x}-with-button`]:!!c},i);return e.createElement(mv,Object.assign({ref:te(S,n),onPressEnter:e=>{y.current||u||O(e)}},v,{size:E,onCompositionStart:e=>{y.current=!0,null==m||m(e)},onCompositionEnd:e=>{y.current=!1,null==g||g(e)},prefixCls:w,addonAfter:j,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},className:R,disabled:d}))}));"production"!==process.env.NODE_ENV&&(Rv.displayName="Search");var Tv,_v=["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"],Av={};function Bv(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;Tv||((Tv=document.createElement("textarea")).setAttribute("tab-index","-1"),Tv.setAttribute("aria-hidden","true"),document.body.appendChild(Tv)),e.getAttribute("wrap")?Tv.setAttribute("wrap",e.getAttribute("wrap")):Tv.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&&Av[n])return Av[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:_v.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Av[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;Tv.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")),Tv.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=Tv.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){Tv.value=" ";var p=Tv.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 Lv=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Fv=e.forwardRef((function(t,n){var r=t,o=r.prefixCls,i=r.defaultValue,a=r.value,l=r.autoSize,c=r.onResize,s=r.className,u=r.style,d=r.disabled,f=r.onChange,p=r.onInternalAutoSize,m=ht(r,Lv),g=rt(mi(i,{value:a,postState:function(e){return null!=e?e:""}}),2),v=g[0],h=g[1],b=e.useRef();e.useImperativeHandle(n,(function(){return{textArea:b.current}}));var y=rt(e.useMemo((function(){return l&&"object"===X(l)?[l.minRows,l.maxRows]:[]}),[l]),2),x=y[0],w=y[1],C=!!l,E=rt(e.useState(2),2),S=E[0],$=E[1],O=rt(e.useState(),2),k=O[0],N=O[1],j=function(){$(0),"test"===process.env.NODE_ENV&&(null==p||p())};Wt((function(){C&&j()}),[a,x,w,C]),Wt((function(){if(0===S)$(1);else if(1===S){var e=Bv(b.current,!1,x,w);$(2),N(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=r}}catch(e){}}()}),[S]);var M=e.useRef(),R=function(){et.cancel(M.current)};e.useEffect((function(){return R}),[]);var T=C?k:null,_=Y(Y({},u),T);return 0!==S&&1!==S||(_.overflowY="hidden",_.overflowX="hidden"),e.createElement(Ve,{onResize:function(e){2===S&&(null==c||c(e),l&&(R(),M.current=et((function(){j()}))))},disabled:!(l||c)},e.createElement("textarea",I({},m,{ref:b,style:_,className:P(o,s,G({},"".concat(o,"-disabled"),d)),disabled:d,value:v,onChange:function(e){h(e.target.value),null==f||f(e)}})))})),zv=["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"],Dv=t.forwardRef((function(e,n){var r,o=e.defaultValue,i=e.value,l=e.onFocus,s=e.onBlur,u=e.onChange,d=e.allowClear,f=e.maxLength,p=e.onCompositionStart,m=e.onCompositionEnd,v=e.suffix,h=e.prefixCls,b=void 0===h?"rc-textarea":h,y=e.showCount,x=e.count,w=e.className,C=e.style,E=e.disabled,S=e.hidden,$=e.classNames,O=e.styles,k=e.onResize,N=e.onClear,j=e.onPressEnter,M=e.readOnly,R=e.autoSize,T=e.onKeyDown,_=ht(e,zv),A=rt(mi(o,{value:i,defaultValue:o}),2),B=A[0],L=A[1],F=null==B?"":String(B),z=rt(t.useState(!1),2),D=z[0],H=z[1],V=t.useRef(!1),W=rt(t.useState(null),2),q=W[0],X=W[1],K=a(null),U=a(null),Z=function(){var e;return null===(e=U.current)||void 0===e?void 0:e.textArea},Q=function(){Z().focus()};g(n,(function(){var e;return{resizableTextArea:U.current,focus:Q,blur:function(){Z().blur()},nativeElement:(null===(e=K.current)||void 0===e?void 0:e.nativeElement)||Z()}})),c((function(){H((function(e){return!E&&e}))}),[E]);var J=rt(t.useState(null),2),ee=J[0],te=J[1];t.useEffect((function(){var e;ee&&(e=Z()).setSelectionRange.apply(e,Ge(ee))}),[ee]);var ne,re=cv(x,y),oe=null!==(r=re.max)&&void 0!==r?r:f,ie=Number(oe)>0,ae=re.strategy(F),le=!!oe&&ae>oe,ce=function(e,t){var n=t;!V.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max&&t!==(n=re.exceedFormatter(t,{max:re.max}))&&te([Z().selectionStart||0,Z().selectionEnd||0]),L(n),iv(e.currentTarget,e,u,n)},se=v;re.show&&(ne=re.showFormatter?re.showFormatter({value:F,count:ae,maxLength:oe}):"".concat(ae).concat(ie?" / ".concat(oe):""),se=t.createElement(t.Fragment,null,se,t.createElement("span",{className:P("".concat(b,"-data-count"),null==$?void 0:$.count),style:null==O?void 0:O.count},ne)));var ue=!R&&!y&&!d;return t.createElement(av,{ref:K,value:F,allowClear:d,handleReset:function(e){L(""),Q(),iv(Z(),e,u)},suffix:se,prefixCls:b,classNames:Y(Y({},$),{},{affixWrapper:P(null==$?void 0:$.affixWrapper,G(G({},"".concat(b,"-show-count"),y),"".concat(b,"-textarea-allow-clear"),d))}),disabled:E,focused:D,className:P(w,le&&"".concat(b,"-out-of-range")),style:Y(Y({},C),q&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ne?ne:void 0}},hidden:S,readOnly:M,onClear:N},t.createElement(Fv,I({},_,{autoSize:R,maxLength:f,onKeyDown:function(e){"Enter"===e.key&&j&&j(e),null==T||T(e)},onChange:function(e){ce(e,e.target.value)},onFocus:function(e){H(!0),null==l||l(e)},onBlur:function(e){H(!1),null==s||s(e)},onCompositionStart:function(e){V.current=!0,null==p||p(e)},onCompositionEnd:function(e){V.current=!1,ce(e,e.currentTarget.value),null==m||m(e)},className:P(null==$?void 0:$.textarea),style:Y(Y({},null==O?void 0:O.textarea),{},{resize:null==C?void 0:C.resize}),disabled:E,prefixCls:b,onResize:function(e){var t;null==k||k(e),null!==(t=Z())&&void 0!==t&&t.style.height&&X(!0)},ref:U,readOnly:M})))})),Hv=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=s(((t,n)=>{var r,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:c,status:s,allowClear:u,classNames:d,rootClassName:f,className:p,style:m,styles:g,variant:v}=t,h=Hv(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=Nr("TextArea");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:b,direction:y,textArea:x}=e.useContext(Zo),w=cc(l),C=e.useContext(ei),E=null!=c?c:C,{status:S,hasFeedback:$,feedbackIcon:O}=e.useContext(Eu),k=Pd(S,s),N=e.useRef(null);e.useImperativeHandle(n,(()=>{var e;return{resizableTextArea:null===(e=N.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=N.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}}}));const j=b("input",i),I=wl(j),[M,R,T]=mg(j,I),[_,A]=Id("textArea",v,a),B=dv(null!=u?u:null==x?void 0:x.allowClear);return M(e.createElement(Dv,Object.assign({autoComplete:null==x?void 0:x.autoComplete},h,{style:Object.assign(Object.assign({},null==x?void 0:x.style),m),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:E,allowClear:B,className:P(T,I,p,f,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==x?void 0:x.classNames),{textarea:P({[`${j}-sm`]:"small"===w,[`${j}-lg`]:"large"===w},R,null==d?void 0:d.textarea,null===(r=null==x?void 0:x.classNames)||void 0===r?void 0:r.textarea),variant:P({[`${j}-${_}`]:A},jd(j,k)),affixWrapper:P(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:"rtl"===y,[`${j}-affix-wrapper-sm`]:"small"===w,[`${j}-affix-wrapper-lg`]:"large"===w,[`${j}-textarea-show-count`]:t.showCount||(null===(o=t.count)||void 0===o?void 0:o.show)},R)}),prefixCls:j,suffix:$&&e.createElement("span",{className:`${j}-textarea-suffix`},O),ref:N})))})),Wv=mv;Wv.Group=t=>{const{getPrefixCls:n,direction:r}=o(Zo),{prefixCls:i,className:a}=t,l=n("input-group",i),c=n("input"),[s,d]=mg(c),f=P(l,{[`${l}-lg`]:"large"===t.size,[`${l}-sm`]:"small"===t.size,[`${l}-compact`]:t.compact,[`${l}-rtl`]:"rtl"===r},d,a),p=o(Eu),m=u((()=>Object.assign(Object.assign({},p),{isFormItemInput:!1})),[p]);if("production"!==process.env.NODE_ENV){Nr("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return s(e.createElement("span",{className:f,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(Eu.Provider,{value:m},t.children)))},Wv.Search=Rv,Wv.TextArea=Vv,Wv.Password=Iv,Wv.OTP=wv;const qv=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}}}},Xv=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:Lt(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}}}}},qv(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:s,lineHeight:Lt(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 Kv=Wi("Layout",(e=>[Xv(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"]]}),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};function Uv(t){let{suffixCls:n,tagName:r,displayName:o}=t;return t=>{const i=e.forwardRef(((o,i)=>e.createElement(t,Object.assign({ref:i,suffixCls:n,tagName:r},o))));return"production"!==process.env.NODE_ENV&&(i.displayName=o),i}}const Yv=e.forwardRef(((t,n)=>{const{prefixCls:r,suffixCls:o,className:i,tagName:a}=t,l=Gv(t,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=e.useContext(Zo),s=c("layout",r),[u,d,f]=Kv(s),p=o?`${s}-${o}`:s;return u(e.createElement(a,Object.assign({className:P(r||p,i,d,f),ref:n},l)))})),Zv=e.forwardRef(((t,n)=>{const{direction:r}=e.useContext(Zo),[o,i]=e.useState([]),{prefixCls:a,className:l,rootClassName:c,children:s,hasSider:u,tagName:d,style:f}=t,p=We(Gv(t,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:m,layout:g}=e.useContext(Zo),v=m("layout",a),h=function(e,t,n){return"boolean"==typeof n?n:!!e.length||L(t).some((e=>e.type===hm))}(o,s,u),[b,y,x]=Kv(v),w=P(v,{[`${v}-has-sider`]:h,[`${v}-rtl`]:"rtl"===r},null==g?void 0:g.className,l,c,y,x),C=e.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Ge(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return b(e.createElement(fm.Provider,{value:C},e.createElement(d,Object.assign({ref:n,className:w,style:Object.assign(Object.assign({},null==g?void 0:g.style),f)},p),s)))})),Qv=Uv({tagName:"div",displayName:"Layout"})(Zv),Jv=Uv({suffixCls:"header",tagName:"header",displayName:"Header"})(Yv),eh=Uv({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Yv),th=Uv({suffixCls:"content",tagName:"main",displayName:"Content"})(Yv),nh=Qv;nh.Header=Jv,nh.Footer=eh,nh.Content=th,nh.Sider=hm,nh._InternalSiderContext=gm;var rh={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"},oh=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:rh}))},ih=e.forwardRef(oh);"production"!==process.env.NODE_ENV&&(ih.displayName="CopyOutlined");var ah={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"},lh=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:ah}))},ch=e.forwardRef(lh);"production"!==process.env.NODE_ENV&&(ch.displayName="EditOutlined");var sh={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"},uh=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:sh}))},dh=e.forwardRef(uh);"production"!==process.env.NODE_ENV&&(dh.displayName="EnterOutlined");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={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},mh=e.forwardRef(((t,n)=>{const{style:r,noStyle:o,disabled:i,tabIndex:a=0}=t,l=fh(t,["style","noStyle","disabled","tabIndex"]);let c={};return o||(c=Object.assign({},ph)),i&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),r),e.createElement("div",Object.assign({role:"button",tabIndex:a,ref:n},l,{onKeyDown:e=>{const{keyCode:t}=e;t===Cl.ENTER&&e.preventDefault()},onKeyUp:e=>{const{keyCode:n}=e,{onClick:r}=t;n===Cl.ENTER&&r&&r()},style:c}))})),gh=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},vh=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Bi(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"}}})}},hh=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:$o[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}}),bh=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 - ${Lt(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"}}}},yh=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),xh=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"}},gh(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}}}),hh(e)),vh(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},Bi(e)),{marginInlineStart:e.marginXXS})}),bh(e)),yh(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 wh=Wi("Typography",(e=>[xh(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));const Ch=t=>{const{prefixCls:n,"aria-label":r,className:o,style:i,direction:a,maxLength:l,autoSize:c=!0,value:s,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:m=e.createElement(dh,null)}=t,g=e.useRef(null),v=e.useRef(!1),h=e.useRef(),[b,y]=e.useState(s);e.useEffect((()=>{y(s)}),[s]),e.useEffect((()=>{var e;if(null===(e=g.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=g.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const x=()=>{u(b.trim())},[w,C,E]=wh(n),S=P(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===a,[`${n}-${p}`]:!!p},o,C,E);return w(e.createElement("div",{className:S,style:i},e.createElement(Vv,{ref:g,maxLength:l,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(h.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;h.current!==t||v.current||n||r||o||i||(t===Cl.ENTER?(x(),null==f||f()):t===Cl.ESC&&d())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{x()},"aria-label":r,rows:1,autoSize:c}),null!==m?xl(m,{className:`${n}-edit-content-confirm`}):null))};var Eh=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()}},Sh={"text/plain":"Text","text/html":"Url",default:"Text"};var $h=function(e,t){var n,r,o,i,a,l,c=!1;t||(t={}),n=t.debug||!1;try{if(o=Eh(),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=Sh[t.format]||Sh.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},Oh=C($h),kh=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 Nh(t,n){return e.useMemo((()=>{const e=!!t;return[e,Object.assign(Object.assign({},n),e&&"object"==typeof t?t:null)]}),[t])}var jh=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=e.forwardRef(((t,n)=>{const{prefixCls:r,component:o="article",className:i,rootClassName:a,setContentRef:l,children:c,direction:s,style:u}=t,d=jh(t,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:m}=e.useContext(Zo),g=null!=s?s:p,v=l?te(n,l):n,h=f("typography",r);if("production"!==process.env.NODE_ENV){Nr("Typography").deprecated(!l,"setContentRef","ref")}const[b,y,x]=wh(h),w=P(h,null==m?void 0:m.className,{[`${h}-rtl`]:"rtl"===g},i,a,y,x),C=Object.assign(Object.assign({},null==m?void 0:m.style),u);return b(e.createElement(o,Object.assign({className:w,style:C,ref:v},d),c))}));function Ih(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function Mh(e,t,n){return!0===e||void 0===e?t:e||n&&t}"production"!==process.env.NODE_ENV&&(Ph.displayName="Typography");const Rh=e=>["string","number"].includes(typeof e),Th=t=>{let{prefixCls:n,copied:r,locale:o,iconOnly:i,tooltips:a,icon:l,tabIndex:c,onCopy:s,loading:u}=t;const d=Ih(a),f=Ih(l),{copied:p,copy:m}=null!=o?o:{},g=r?p:m,v=Mh(d[r?1:0],g),h="string"==typeof v?v:g;return e.createElement(uf,{title:v},e.createElement(mh,{className:P(`${n}-copy`,{[`${n}-copy-success`]:r,[`${n}-copy-icon-only`]:i}),onClick:s,"aria-label":h,tabIndex:c},r?Mh(f[1],e.createElement(Td,null),!0):Mh(f[0],u?e.createElement($l,null):e.createElement(ih,null),!0)))},_h=e.forwardRef(((t,n)=>{let{style:r,children:o}=t;const i=e.useRef(null);return e.useImperativeHandle(n,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),e.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)"},r)},o)}));function Ah(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+(Rh(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 Bh=0,Lh=4,Fh={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function zh(t){const{enableMeasure:n,width:r,text:o,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:s}=t,u=e.useMemo((()=>L(o)),[o]),d=e.useMemo((()=>(e=>e.reduce(((e,t)=>e+(Rh(t)?String(t).length:1)),0))(u)),[o]),f=e.useMemo((()=>i(u,!1)),[o]),[p,m]=e.useState(null),g=e.useRef(null),v=e.useRef(null),h=e.useRef(null),b=e.useRef(null),y=e.useRef(null),[x,w]=e.useState(!1),[C,E]=e.useState(Bh),[S,$]=e.useState(0),[O,k]=e.useState(null);Wt((()=>{E(n&&r&&d?1:Bh)}),[r,o,a,n,u]),Wt((()=>{var e,t,n,r;if(1===C){E(2);const e=v.current&&getComputedStyle(v.current).whiteSpace;k(e)}else if(2===C){const o=!!(null===(e=h.current)||void 0===e?void 0:e.isExceed());E(o?3:Lh),m(o?[0,d]:null),w(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);$(u+1),s(o)}}),[C]);const N=p?Math.ceil((p[0]+p[1])/2):0;Wt((()=>{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)>S;let o=N;n-t==1&&(o=r?t:n),m(r?[t,o]:[o,n])}}),[p,N]);const j=e.useMemo((()=>{if(!n)return i(u,!1);if(3!==C||!p||p[0]!==p[1]){const t=i(u,!1);return[Lh,Bh].includes(C)?t:e.createElement("span",{style:Object.assign(Object.assign({},Fh),{WebkitLineClamp:a})},t)}return i(l?u:Ah(u,p[0]),x)}),[l,C,p,u].concat(Ge(c))),P={width:r,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return e.createElement(e.Fragment,null,j,2===C&&e.createElement(e.Fragment,null,e.createElement(_h,{style:Object.assign(Object.assign(Object.assign({},P),Fh),{WebkitLineClamp:a}),ref:h},f),e.createElement(_h,{style:Object.assign(Object.assign(Object.assign({},P),Fh),{WebkitLineClamp:a-1}),ref:b},f),e.createElement(_h,{style:Object.assign(Object.assign(Object.assign({},P),Fh),{WebkitLineClamp:1}),ref:y},i([],!0))),3===C&&p&&p[0]!==p[1]&&e.createElement(_h,{style:Object.assign(Object.assign({},P),{top:400}),ref:g},i(Ah(u,N),!0)),1===C&&e.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const Dh=t=>{let{enableEllipsis:n,isEllipsis:r,children:o,tooltipProps:i}=t;return(null==i?void 0:i.title)&&n?e.createElement(uf,Object.assign({open:!!r&&void 0},i),o):o};"production"!==process.env.NODE_ENV&&(Dh.displayName="EllipsisTooltip");var Hh=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 Vh=e.forwardRef(((t,n)=>{var o;const{prefixCls:i,className:l,style:s,type:d,disabled:f,children:p,ellipsis:m,editable:g,copyable:v,component:h,title:b}=t,y=Hh(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:w}=e.useContext(Zo),[C]=((t,n)=>{const r=e.useContext(Lr),o=e.useMemo((()=>{var e;const n=_r[t],o=null!==(e=null==r?void 0:r[t])&&void 0!==e?e:{};return Object.assign(Object.assign({},"function"==typeof n?n():n),o||{})}),[t,n,r]);return[o,e.useMemo((()=>{const e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?_r.locale:e}),[r])]})("Text"),E=e.useRef(null),S=e.useRef(null),$=x("typography",i),O=We(y,["mark","code","delete","underline","strong","keyboard","italic"]),[k,N]=Nh(g),[j,I]=mi(!1,{value:N.editing}),{triggerType:M=["icon"]}=N,R=e=>{var t;e&&(null===(t=N.onStart)||void 0===t||t.call(N)),I(e)},T=(e=>{const t=a();return c((()=>{t.current=e})),t.current})(j);Wt((()=>{var e;!j&&T&&(null===(e=S.current)||void 0===e||e.focus())}),[j]);const _=e=>{null==e||e.preventDefault(),R(!0)},A=e=>{var t;null===(t=N.onChange)||void 0===t||t.call(N,e),R(!1)},B=()=>{var e;null===(e=N.onCancel)||void 0===e||e.call(N),R(!1)},[F,z]=Nh(v),{copied:D,copyLoading:H,onClick:V}=(t=>{let{copyConfig:n,children:r}=t;const[o,i]=e.useState(!1),[a,l]=e.useState(!1),c=e.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},u={};return n.format&&(u.format=n.format),e.useEffect((()=>s),[]),{copied:o,copyLoading:a,onClick:di((e=>kh(void 0,void 0,void 0,(function*(){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),l(!0);try{const o="function"==typeof n.text?yield n.text():n.text;Oh(o||String(r)||"",u),l(!1),i(!0),s(),c.current=setTimeout((()=>{i(!1)}),3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(e){throw l(!1),e}}))))}})({copyConfig:z,children:p}),[W,q]=e.useState(!1),[X,K]=e.useState(!1),[G,U]=e.useState(!1),[Y,Z]=e.useState(!1),[Q,J]=e.useState(!0),[ee,ne]=Nh(m,{expandable:!1,symbol:e=>e?null==C?void 0:C.collapse:null==C?void 0:C.expand}),[re,oe]=mi(ne.defaultExpanded||!1,{value:ne.expanded}),ie=ee&&(!re||"collapsible"===ne.expandable),{rows:ae=1}=ne,le=e.useMemo((()=>ie&&(void 0!==ne.suffix||ne.onEllipsis||ne.expandable||k||F)),[ie,ne,k,F]);Wt((()=>{ee&&!le&&(q(Nu("webkitLineClamp")),K(Nu("textOverflow")))}),[le,ee]);const[ce,se]=e.useState(ie),ue=e.useMemo((()=>!le&&(1===ae?X:W)),[le,X,W]);Wt((()=>{se(ue&&ie)}),[ue,ie]);const de=ie&&(ce?Y:G),fe=ie&&1===ae&&ce,pe=ie&&ae>1&&ce,[me,ge]=e.useState(0),ve=e=>{var t;U(e),G!==e&&(null===(t=ne.onEllipsis)||void 0===t||t.call(ne,e))};e.useEffect((()=>{const e=E.current;if(ee&&ce&&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);Y!==t&&Z(t)}}),[ee,ce,p,pe,Q,me]),e.useEffect((()=>{const e=E.current;if("undefined"==typeof IntersectionObserver||!e||!ce||!ie)return;const t=new IntersectionObserver((()=>{J(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[ce,ie]);const he=((e,t,n)=>u((()=>!0===e?{title:null!=t?t:n}:r(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e}),[e,t,n]))(ne.tooltip,N.text,p),be=e.useMemo((()=>{if(ee&&!ce)return[N.text,p,b,he.title].find(Rh)}),[ee,ce,b,he.title,de]);if(j)return e.createElement(Ch,{value:null!==(o=N.text)&&void 0!==o?o:"string"==typeof p?p:"",onSave:A,onCancel:B,onEnd:N.onEnd,prefixCls:$,className:l,style:s,direction:w,component:h,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const ye=()=>{const{expandable:t,symbol:n}=ne;return t?e.createElement(mh,{key:"expand",className:`${$}-${re?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;oe(t.expanded),null===(n=ne.onExpand)||void 0===n||n.call(ne,e,t)})(e,{expanded:!re}),"aria-label":re?C.collapse:null==C?void 0:C.expand},"function"==typeof n?n(re):n):null},xe=()=>{if(!k)return;const{icon:t,tooltip:n,tabIndex:r}=N,o=L(n)[0]||(null==C?void 0:C.edit),i="string"==typeof o?o:"";return M.includes("icon")?e.createElement(uf,{key:"edit",title:!1===n?"":o},e.createElement(mh,{ref:S,className:`${$}-edit`,onClick:_,"aria-label":i,tabIndex:r},t||e.createElement(ch,{role:"button"}))):null},we=t=>[t&&ye(),xe(),F?e.createElement(Th,Object.assign({key:"copy"},z,{prefixCls:$,copied:D,locale:C,onCopy:V,loading:H,iconOnly:null==p})):null];return e.createElement(Ve,{onResize:e=>{let{offsetWidth:t}=e;ge(t)},disabled:!ie},(r=>e.createElement(Dh,{tooltipProps:he,enableEllipsis:ie,isEllipsis:de},e.createElement(Ph,Object.assign({className:P({[`${$}-${d}`]:d,[`${$}-disabled`]:f,[`${$}-ellipsis`]:ee,[`${$}-ellipsis-single-line`]:fe,[`${$}-ellipsis-multiple-line`]:pe},l),prefixCls:i,style:Object.assign(Object.assign({},s),{WebkitLineClamp:pe?ae:void 0}),component:h,ref:te(r,E,n),direction:w,onClick:M.includes("text")?_:void 0,"aria-label":null==be?void 0:be.toString(),title:b},O),e.createElement(zh,{enableMeasure:ie&&!ce,text:p,rows:ae,width:me,onEllipsis:ve,expanded:re,miscDeps:[D,re,H,k,F]},((n,r)=>function(t,n){let{mark:r,code:o,underline:i,delete:a,strong:l,keyboard:c,italic:s}=t,u=n;function d(t,n){n&&(u=e.createElement(t,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",o),d("mark",r),d("kbd",c),d("i",s),u}(t,e.createElement(e.Fragment,null,n.length>0&&r&&!re&&be?e.createElement("span",{key:"show-content","aria-hidden":!0},n):n,(t=>[t&&!re&&e.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ne.suffix,we(t)])(r)))))))))}));var Wh=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 qh=e.forwardRef(((t,n)=>{var{ellipsis:r,rel:o}=t,i=Wh(t,["ellipsis","rel"]);if("production"!==process.env.NODE_ENV){const e=Nr("Typography.Link");"production"!==process.env.NODE_ENV&&e("object"!=typeof r,"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,e.createElement(Vh,Object.assign({},a,{ref:n,ellipsis:!!r,component:"a"}))})),Xh=e.forwardRef(((t,n)=>e.createElement(Vh,Object.assign({ref:n},t,{component:"div"}))));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 Gh=(t,n)=>{var{ellipsis:r}=t,o=Kh(t,["ellipsis"]);const i=e.useMemo((()=>r&&"object"==typeof r?We(r,["expandable","rows"]):r),[r]);if("production"!==process.env.NODE_ENV){const e=Nr("Typography.Text");"production"!==process.env.NODE_ENV&&e("object"!=typeof r||!r||!("expandable"in r)&&!("rows"in r),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return e.createElement(Vh,Object.assign({ref:n},o,{ellipsis:i,component:"span"}))};var Uh=e.forwardRef(Gh),Yh=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 Zh=[1,2,3,4,5],Qh=e.forwardRef(((t,n)=>{const{level:r=1}=t,o=Yh(t,["level"]);if("production"!==process.env.NODE_ENV){const e=Nr("Typography.Title");"production"!==process.env.NODE_ENV&&e(Zh.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const i=Zh.includes(r)?`h${r}`:"h1";return e.createElement(Vh,Object.assign({ref:n},o,{component:i}))})),Jh=Ph;function eb(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))}}Jh.Text=Uh,Jh.Link=qh,Jh.Title=Qh,Jh.Paragraph=Xh;eb(".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");var tb=function(e){var t=e.className,n=e.label,r=e.name,o=e.value,i=e.dataTestId,l=e.type,s=e.id,u=e.disabled,d=e.handleChange,f=e.onClick,p=e.defaultValue,m=e.onPressEnter,g=e.isAutoFocus,v=e.triggerFocus,h=e.isOptional,b=e.errorMessage,y=e.suffixIcon,x=e.prefixIcon,w=a(null);c((function(){g&&w.current&&w.current.focus()}),[v,g]);var C=h?"".concat(n," (optional)"):n;return N.jsxs("div",{className:"appInput ".concat(t),children:[N.jsx(Wv,{type:l,"data-test-id":i,id:s,disabled:u,name:r,className:"input",value:o,onChange:d,onClick:f,defaultValue:p,onPressEnter:m,placeholder:C,ref:w,prefix:x&&x,suffix:y&&y}),b&&N.jsx("div",{className:"error",children:b})]})};eb(".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");var nb=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 N.jsx("div",{className:"appButton ".concat(r),children:N.jsx(os,{disabled:l,type:t,className:["customBtn",i?"btn-icon":"","right"===c?"iconRight":""].join(" "),size:n,onClick:o,icon:i,loading:s,children:a})})};eb('.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 rb=nh.Sider,ob=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:N.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&N.jsx("span",{className:"tag",children:e.tag})]})}})),l=null==r?void 0:r.map((function(e){return{key:e.path,label:N.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return N.jsx("div",{className:"sideBar ".concat(o),children:N.jsxs(rb,{className:"sider",children:[N.jsx("div",{className:"logo",children:n}),N.jsx(Dm,{mode:"inline",className:"menu",items:a}),r&&N.jsx("div",{className:"footer",children:N.jsx(Dm,{mode:"inline",items:l})})]})})};eb(".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");var ib=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,d=e.className,f=e.error;return N.jsxs("div",{className:"appTextArea ".concat(d),children:[N.jsx(Wv.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}),f&&N.jsx("div",{className:"error",children:f})]})};eb(".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 ab=function(e){var t=e.className,n=e.items,r=e.handleChange,o=e.defaultActiveKey;return N.jsx("div",{className:"appTab ".concat(t),children:N.jsx(rv,{defaultActiveKey:o,items:n,onChange:r,className:"tab"})})},lb={searchIcon:N.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("circle",{cx:"11.7666",cy:"12.2666",r:"8.98856",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),N.jsx("path",{d:"M18.0183 18.9851L21.5423 22.5",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),eyePassword:N.jsx("svg",{width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:N.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:N.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:N.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:N.jsxs("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("path",{d:"M1.25 7.27429L16.25 7.27429",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),N.jsx("path",{d:"M7.2998 13.2987L1.2498 7.27469L7.2998 1.24969",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),badge:N.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66025 0L17.3205 5V15L8.66025 20L0 15V5L8.66025 0Z",fill:"#FBBA07"}),N.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"}),N.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"}),N.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:N.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:N.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"})})};eb(".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 cb=function(e){var t=e.text,n=void 0===t?"Back":t,r=e.href,o=e.className,i=e.backIcon;return N.jsxs("div",{className:"backArrow ".concat(o),onClick:function(){window.location.href=r},children:[N.jsx("span",{className:"icon",children:i||lb.backArrow}),n&&N.jsx("span",{className:"text",children:n})]})},sb=function(){return sb=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},sb.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;eb(".appBadge {\n .ribbonWrapper {\n .ant-ribbon-wrapper {\n position: relative;\n .ant-ribbon {\n position: absolute;\n top: 0;\n }\n }\n }\n}\n");var ub=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 N.jsx("div",{className:"appBadge ".concat(r),children:N.jsx(jf,sb({count:t},i,{children:o?N.jsx("div",{className:"ribbonWrapper",children:N.jsx(jf.Ribbon,{text:o.text,color:o.color,placement:o.placement,children:n})}):n}))})};eb(".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 db=Jh.Text,fb=function(e){var t=e.className,n=e.text,r=e.number;return N.jsxs("div",{className:"overViewCard ".concat(t),children:[N.jsx(db,{children:n}),N.jsx("span",{children:r})]})};export{cb as AppBackArrow,ub as AppBadge,nb as AppButton,tb as AppInput,ob as AppSidebar,ab as AppTab,ib as AppTextarea,fb as OverViewCard};
|
25
|
+
*/"production"===process.env.NODE_ENV?R.exports=function(){if(j)return T;j=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case o:case i:case r:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),T.ContextConsumer=s,T.ContextProvider=a,T.Element=t,T.ForwardRef=c,T.Fragment=o,T.Lazy=h,T.Memo=p,T.Portal=n,T.Profiler=i,T.StrictMode=r,T.Suspense=u,T.SuspenseList=d,T.isAsyncMode=function(){return!1},T.isConcurrentMode=function(){return!1},T.isContextConsumer=function(e){return g(e)===s},T.isContextProvider=function(e){return g(e)===a},T.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},T.isForwardRef=function(e){return g(e)===c},T.isFragment=function(e){return g(e)===o},T.isLazy=function(e){return g(e)===h},T.isMemo=function(e){return g(e)===p},T.isPortal=function(e){return g(e)===n},T.isProfiler=function(e){return g(e)===i},T.isStrictMode=function(e){return g(e)===r},T.isSuspense=function(e){return g(e)===u},T.isSuspenseList=function(e){return g(e)===d},T.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},T.typeOf=g,T}():R.exports=(D||(D=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var g=e.type;switch(g){case o:case i:case r:case u:case d:return g;default:var m=g&&g.$$typeof;switch(m){case l:case s:case c:case h:case p:case a:return m;default:return f}}case n:return f}}}e=Symbol.for("react.module.reference");var m=s,v=a,b=t,y=c,x=o,w=h,C=p,E=n,S=i,k=r,O=u,$=d,M=!1,_=!1;z.ContextConsumer=m,z.ContextProvider=v,z.Element=b,z.ForwardRef=y,z.Fragment=x,z.Lazy=w,z.Memo=C,z.Portal=E,z.Profiler=S,z.StrictMode=k,z.Suspense=O,z.SuspenseList=$,z.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},z.isConcurrentMode=function(e){return _||(_=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},z.isContextConsumer=function(e){return g(e)===s},z.isContextProvider=function(e){return g(e)===a},z.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},z.isForwardRef=function(e){return g(e)===c},z.isFragment=function(e){return g(e)===o},z.isLazy=function(e){return g(e)===h},z.isMemo=function(e){return g(e)===p},z.isPortal=function(e){return g(e)===n},z.isProfiler=function(e){return g(e)===i},z.isStrictMode=function(e){return g(e)===r},z.isSuspense=function(e){return g(e)===u},z.isSuspenseList=function(e){return g(e)===d},z.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},z.typeOf=g}()),z);var A=R.exports;function B(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?o=o.concat(B(e)):A.isFragment(e)&&e.props?o=o.concat(B(e.props.children,n)):o.push(e))})),o}var H={},F=[];function V(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=F.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function W(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=F.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function U(){H={}}function X(e,t,n){t||H[n]||(e(!1,n),H[n]=!0)}function q(e,t){X(V,e,t)}function G(e,t){X(W,e,t)}function K(e){return K="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},K(e)}function Y(e){var t=function(e,t){if("object"!=K(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=K(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==K(t)?t:t+""}function Z(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e){return e instanceof HTMLElement||e instanceof SVGElement}function te(e){var n,o=function(e){return e&&"object"===K(e)&&ee(e.nativeElement)?e.nativeElement:ee(e)?e:null}(e);return o||(e instanceof t.Component?null===(n=x.findDOMNode)||void 0===n?void 0:n.call(x,e):null)}function ne(t,n,o){var r=e.useRef({});return"value"in r.current&&!o(r.current.condition,n)||(r.current.value=t(),r.current.condition=n),r.current.value}q.preMessage=function(e){F.push(e)},q.resetWarned=U,q.noteOnce=G;var oe=function(e,t){"function"==typeof e?e(t):"object"===K(e)&&e&&"current"in e&&(e.current=t)},re=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach((function(t){oe(t,e)}))}},ie=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ne((function(){return re.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},ae=function(e){var t,n,o=A.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===A.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===A.ForwardRef)};Number(n.split(".")[0]);var se=e.createContext(null);var le=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!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),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,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,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),ce="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ue="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),de="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ue):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var pe=["top","right","bottom","left","width","height","size","weight"],he="undefined"!=typeof MutationObserver,fe=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,o=!1,r=0;function i(){n&&(n=!1,e()),o&&s()}function a(){de(i)}function s(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return s}(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(){ce&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),he?(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(){ce&&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;pe.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}(),ge=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},me=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ue},ve=Ee(0,0,0,0);function be(e){return parseFloat(e)||0}function ye(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+be(e["border-"+n+"-width"])}),0)}function xe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ve;var o=me(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=be(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=be(o.width),l=be(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=ye(o,"left","right")+i),Math.round(l+a)!==n&&(l-=ye(o,"top","bottom")+a)),!function(e){return e===me(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return Ee(r.left,r.top,s,l)}var we="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof me(e).SVGGraphicsElement}:function(e){return e instanceof me(e).SVGElement&&"function"==typeof e.getBBox};function Ce(e){return ce?we(e)?function(e){var t=e.getBBox();return Ee(0,0,t.width,t.height)}(e):xe(e):ve}function Ee(e,t,n,o){return{x:e,y:t,width:n,height:o}}var Se=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ee(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Ce(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}(),ke=function(e,t){var n,o,r,i,a,s,l,c=(o=(n=t).x,r=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),ge(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);ge(this,{target:e,contentRect:c})},Oe=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new le,"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 me(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Se(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 me(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 ke(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}(),$e="undefined"!=typeof WeakMap?new WeakMap:new le,Me=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=fe.getInstance(),o=new Oe(t,n,this);$e.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){Me.prototype[e]=function(){var t;return(t=$e.get(this))[e].apply(t,arguments)}}));var _e=void 0!==ue.ResizeObserver?ue.ResizeObserver:Me,Pe=new Map;function Ne(e){e.forEach((function(e){var t,n=e.target;null===(t=Pe.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var Le=new _e(Ne);function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Y(o.key),o)}}function Re(e,t,n){return t&&je(e.prototype,t),n&&je(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Te(e,t){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Te(e,t)}function De(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&&Te(e,t)}function ze(e){return ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ze(e)}function Ae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ae=function(){return!!e})()}function Be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function He(e){var t=Ae();return function(){var n,o=ze(e);if(t){var r=ze(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Be(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Fe=function(){De(n,e.Component);var t=He(n);function n(){return Ie(this,n),t.apply(this,arguments)}return Re(n,[{key:"render",value:function(){return this.props.children}}]),n}();function Ve(t,n){var o=t.children,r=t.disabled,i=e.useRef(null),a=e.useRef(null),s=e.useContext(se),l="function"==typeof o,c=l?o(i):o,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&e.isValidElement(c)&&ae(c),p=d?c.ref:null,h=ie(p,i),f=function(){var e;return te(i.current)||(i.current&&"object"===K(i.current)?te(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||te(a.current)};e.useImperativeHandle(n,(function(){return f()}));var g=e.useRef(t);g.current=t;var m=e.useCallback((function(e){var t=g.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,a=r.height,l=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),p=Math.floor(a);if(u.current.width!==d||u.current.height!==p||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var h={width:d,height:p,offsetWidth:l,offsetHeight:c};u.current=h;var f=l===Math.round(i)?i:l,m=c===Math.round(a)?a:c,v=J(J({},h),{},{offsetWidth:f,offsetHeight:m});null==s||s(v,e,o),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return e.useEffect((function(){var e=f();return e&&!r&&function(e,t){Pe.has(e)||(Pe.set(e,new Set),Le.observe(e)),Pe.get(e).add(t)}(e,m),function(){return function(e,t){Pe.has(e)&&(Pe.get(e).delete(t),Pe.get(e).size||(Le.unobserve(e),Pe.delete(e)))}(e,m)}}),[i.current,r]),e.createElement(Fe,{ref:a},d?e.cloneElement(c,{ref:h}):c)}var We=e.forwardRef(Ve);"production"!==process.env.NODE_ENV&&(We.displayName="SingleObserver");function Ue(t,n){var o=t.children,r="function"==typeof o?[o]:B(o);return"production"!==process.env.NODE_ENV&&(r.length>1?V(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&V(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((function(o,r){var i=(null==o?void 0:o.key)||"".concat("rc-observer-key","-").concat(r);return e.createElement(We,I({},t,{key:i,ref:0===r?n:void 0}),o)}))}var Xe=e.forwardRef(Ue);function qe(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Ke(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ye(e,t){if(e){if("string"==typeof e)return Ge(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)?Ge(e,t):void 0}}function Ze(e){return function(e){if(Array.isArray(e))return Ge(e)}(e)||Ke(e)||Ye(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&&(Xe.displayName="ResizeObserver"),Xe.Collection=function(t){var n=t.children,o=t.onBatchResize,r=e.useRef(0),i=e.useRef([]),a=e.useContext(se),s=e.useCallback((function(e,t,n){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){s===r.current&&(null==o||o(i.current),i.current=[])})),null==a||a(e,t,n)}),[o,a]);return e.createElement(se.Provider,{value:s},n)};var Qe=function(e){return+setTimeout(e,16)},Je=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Qe=function(e){return window.requestAnimationFrame(e)},Je=function(e){return window.cancelAnimationFrame(e)});var et=0,tt=new Map;function nt(e){tt.delete(e)}var ot=function(e){var t=et+=1;return function n(o){if(0===o)nt(t),e();else{var r=Qe((function(){n(o-1)}));tt.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function rt(e){if(Array.isArray(e))return e}function it(){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 at(e,t){return rt(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||Ye(e,t)||it()}function st(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function lt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function ct(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}ot.cancel=function(e){var t=tt.get(e);return nt(e),Je(t)},"production"!==process.env.NODE_ENV&&(ot.ids=function(){return tt});var ut="data-rc-order",dt="data-rc-priority",pt="rc-util-key",ht=new Map;function ft(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):pt}function gt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function mt(e){return Array.from((ht.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function vt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!lt())return null;var n=t.csp,o=t.prepend,r=t.priority,i=void 0===r?0:r,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(ut,a),s&&i&&l.setAttribute(dt,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=gt(t),u=c.firstChild;if(o){if(s){var d=(t.styles||mt(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ut)))return!1;var t=Number(e.getAttribute(dt)||0);return i>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=gt(t);return(t.styles||mt(n)).find((function(n){return n.getAttribute(ft(t))===e}))}function yt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=bt(e,t);n&>(t).removeChild(n)}function xt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=gt(n),r=mt(o),i=J(J({},n),{},{styles:r});!function(e,t){var n=ht.get(e);if(!n||!ct(document,n)){var o=vt("",t),r=o.parentNode;ht.set(e,r),e.removeChild(o)}}(o,i);var a=bt(t,i);if(a){var s,l,c;if(null!==(s=i.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=vt(e,i);return u.setAttribute(ft(i),t),u}function wt(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=o.has(t);if(q(!a,"Warning: There may be circular references"),a)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);var s=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],r[l],s))return!1;return!0}if(t&&r&&"object"===K(t)&&"object"===K(r)){var c=Object.keys(t);return c.length===Object.keys(r).length&&c.every((function(n){return e(t[n],r[n],s)}))}return!1}(e,t)}var Et="%";function St(e){return e.join(Et)}var kt=function(){function e(t){Ie(this,e),Z(this,"instanceId",void 0),Z(this,"cache",new Map),this.instanceId=t}return Re(e,[{key:"get",value:function(e){return this.opGet(St(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(St(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}(),Ot="data-token-hash",$t="data-css-hash",Mt="data-cache-path",_t="__cssinjs_instance__";var Pt=e.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($t,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[_t]=t[_t]||e,t[_t]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat($t,"]"))).forEach((function(t){var n,r=t.getAttribute($t);o[r]?t[_t]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new kt(e)}(),defaultCache:!0});var Nt=function(){function e(){Ie(this,e),Z(this,"cache",void 0),Z(this,"keys",void 0),Z(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Re(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach((function(e){var t;r?r=null===(t=r)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):r=void 0})),null!==(t=r)&&void 0!==t&&t.value&&o&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||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 o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce((function(e,t){var n=at(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=at(r,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,r){if(r===t.length-1)a.set(e,{value:[n,o.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,o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}},{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}();Z(Nt,"MAX_CACHE_SIZE",20),Z(Nt,"MAX_CACHE_OFFSET",5);var Lt=0,It=function(){function e(t){Ie(this,e),Z(this,"derivatives",void 0),Z(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Lt,0===t.length&&V(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Lt+=1}return Re(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),jt=new Nt;function Rt(e){var t=Array.isArray(e)?e:[e];return jt.has(t)||jt.set(t,new It(t)),jt.get(t)}var Tt=new WeakMap,Dt={};var zt=new WeakMap;function At(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=zt.get(e)||"";return n||(Object.keys(e).forEach((function(o){var r=e[o];n+=o,r instanceof It?n+=r.id:r&&"object"===K(r)?n+=At(r,t):n+=r})),t&&(n=st(n)),zt.set(e,n)),n}function Bt(e,t){return st("".concat(t,"_").concat(At(e,!0)))}var Ht=lt();function Ft(e){return"number"==typeof e?"".concat(e,"px"):e}function Vt(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=J(J({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},Z(Z({},Ot,t),$t,n)),r=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(r,">").concat(e,"</style>")}var Wt=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()},Ut=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=at(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},Xt=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=at(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])r[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var c,u=Wt(s,null==n?void 0:n.prefix);o[u]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),r[s]="var(".concat(u,")")}})),[r,Ut(o,t,{scope:null==n?void 0:n.scope})]},qt="test"!==process.env.NODE_ENV&<()?e.useLayoutEffect:e.useEffect,Gt=function(t,n){var o=e.useRef(!0);qt((function(){return t(o.current)}),n),qt((function(){return o.current=!1,function(){o.current=!0}}),[])},Kt=function(e,t){Gt((function(t){if(!t)return e()}),t)},Yt=J({},e).useInsertionEffect,Zt=Yt?function(e,t,n){return Yt((function(){return e(),t()}),n)}:function(t,n,o){e.useMemo(t,o),Gt((function(){return n(!0)}),o)},Qt=void 0!==J({},e).useInsertionEffect?function(t){var n=[],o=!1;return e.useEffect((function(){return o=!1,function(){o=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){o?"production"!==process.env.NODE_ENV&&V(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):n.push(e)}}:function(){return function(e){e()}};var Jt=!1;var en="production"===process.env.NODE_ENV?function(){return!1}:function(){return Jt};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var tn=window;if("function"==typeof tn.webpackHotUpdate){var nn=tn.webpackHotUpdate;tn.webpackHotUpdate=function(){return Jt=!0,setTimeout((function(){Jt=!1}),0),nn.apply(void 0,arguments)}}}function on(t,n,o,r,i){var a=e.useContext(Pt).cache,s=St([t].concat(Ze(n))),l=Qt([s]),c=en(),u=function(e){a.opUpdate(s,(function(t){var n=at(t||[void 0,void 0],2),i=n[0],a=void 0===i?0:i,s=n[1],l=s;"production"!==process.env.NODE_ENV&&s&&c&&(null==r||r(l,c),l=null);var u=[a,l||o()];return e?e(u):u}))};e.useMemo((function(){u()}),[s]);var d=a.opGet(s);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(s));var p=d[1];return Zt((function(){null==i||i(p)}),(function(e){return u((function(t){var n=at(t,2),o=n[0],r=n[1];return e&&0===o&&(null==i||i(p)),[o+1,r]})),function(){a.opUpdate(s,(function(t){var n=at(t||[],2),o=n[0],i=void 0===o?0:o,c=n[1];return 0===i-1?(l((function(){!e&&a.opGet(s)||null==r||r(c,!1)})),null):[i-1,c]}))}}),[s]),p}var rn={},an="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",sn=new Map;var ln=0;function cn(e,t){sn.set(e,(sn.get(e)||0)-1);var n=Array.from(sn.keys()),o=n.filter((function(e){return(sn.get(e)||0)<=0}));n.length-o.length>ln&&o.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Ot,'="').concat(e,'"]')).forEach((function(e){var n;e[_t]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),sn.delete(e)}))}var un=function(e,t,n,o){var r=J(J({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r},dn="token";function pn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r(Pt),i=o.cache.instanceId,a=o.container,s=n.salt,l=void 0===s?"":s,c=n.override,u=void 0===c?rn:c,d=n.formatToken,p=n.getComputedToken,h=n.cssVar,f=function(e,t){for(var n=Tt,o=0;o<t.length;o+=1){var r=t[o];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(Dt)||n.set(Dt,e()),n.get(Dt)}((function(){return Object.assign.apply(Object,[{}].concat(Ze(t)))}),t),g=At(f),m=At(u),v=h?At(h):"",b=on(dn,[l,e.id,g,m,v],(function(){var t,n=p?p(f,u,e):un(f,u,e,d),o=J({},n),r="";if(h){var i=at(Xt(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);n=i[0],r=i[1]}var a=Bt(n,l);n._tokenKey=a,o._tokenKey=Bt(o,l);var s=null!==(t=null==h?void 0:h.key)&&void 0!==t?t:a;n._themeKey=s,function(e){sn.set(e,(sn.get(e)||0)+1)}(s);var c="".concat(an,"-").concat(st(a));return n._hashId=c,[n,c,o,r,(null==h?void 0:h.key)||""]}),(function(e){cn(e[0]._themeKey,i)}),(function(e){var t=at(e,4),n=t[0],o=t[3];if(h&&o){var r=xt(o,st("css-variables-".concat(n._themeKey)),{mark:$t,prepend:"queue",attachTo:a,priority:-999});r[_t]=i,r.setAttribute(Ot,n._themeKey)}}));return b}var hn={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},fn="comm",gn="rule",mn="decl",vn="@import",bn="@keyframes",yn="@layer",xn=Math.abs,wn=String.fromCharCode;function Cn(e){return e.trim()}function En(e,t,n){return e.replace(t,n)}function Sn(e,t,n){return e.indexOf(t,n)}function kn(e,t){return 0|e.charCodeAt(t)}function On(e,t,n){return e.slice(t,n)}function $n(e){return e.length}function Mn(e,t){return t.push(e),e}var _n=1,Pn=1,Nn=0,Ln=0,In=0,jn="";function Rn(e,t,n,o,r,i,a,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:_n,column:Pn,length:a,return:"",siblings:s}}function Tn(){return In=Ln>0?kn(jn,--Ln):0,Pn--,10===In&&(Pn=1,_n--),In}function Dn(){return In=Ln<Nn?kn(jn,Ln++):0,Pn++,10===In&&(Pn=1,_n++),In}function zn(){return kn(jn,Ln)}function An(){return Ln}function Bn(e,t){return On(jn,e,t)}function Hn(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 Fn(e){return Cn(Bn(Ln-1,Un(91===e?e+2:40===e?e+1:e)))}function Vn(e){for(;(In=zn())&&In<33;)Dn();return Hn(e)>2||Hn(In)>3?"":" "}function Wn(e,t){for(;--t&&Dn()&&!(In<48||In>102||In>57&&In<65||In>70&&In<97););return Bn(e,An()+(t<6&&32==zn()&&32==Dn()))}function Un(e){for(;Dn();)switch(In){case e:return Ln;case 34:case 39:34!==e&&39!==e&&Un(In);break;case 40:41===e&&Un(e);break;case 92:Dn()}return Ln}function Xn(e,t){for(;Dn()&&e+In!==57&&(e+In!==84||47!==zn()););return"/*"+Bn(t,Ln-1)+"*"+wn(47===e?e:Dn())}function qn(e){for(;!Hn(zn());)Dn();return Bn(e,Ln)}function Gn(e){return function(e){return jn="",e}(Kn("",null,null,null,[""],e=function(e){return _n=Pn=1,Nn=$n(jn=e),Ln=0,[]}(e),0,[0],e))}function Kn(e,t,n,o,r,i,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,g=1,m=1,v=1,b=0,y="",x=r,w=i,C=o,E=y;m;)switch(f=b,b=Dn()){case 40:if(108!=f&&58==kn(E,d-1)){-1!=Sn(E+=En(Fn(b),"&","&\f"),"&\f",xn(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:E+=Fn(b);break;case 9:case 10:case 13:case 32:E+=Vn(f);break;case 92:E+=Wn(An()-1,7);continue;case 47:switch(zn()){case 42:case 47:Mn(Zn(Xn(Dn(),An()),t,n,l),l),5!=Hn(f||1)&&5!=Hn(zn()||1)||!$n(E)||" "===On(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*g:s[c++]=$n(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(E=En(E,/\f/g,"")),h>0&&($n(E)-d||0===g&&47===f)&&Mn(h>32?Qn(E+";",o,n,d-1,l):Qn(En(E," ","")+";",o,n,d-2,l),l);break;case 59:E+=";";default:if(Mn(C=Yn(E,t,n,c,u,r,s,y,x=[],w=[],d,i),i),123===b)if(0===u)Kn(E,t,C,C,x,i,d,s,w);else switch(99===p&&110===kn(E,3)?100:p){case 100:case 108:case 109:case 115:Kn(e,C,C,o&&Mn(Yn(e,C,C,0,0,r,s,y,r,x=[],d,w),w),r,w,d,s,o?x:w);break;default:Kn(E,C,C,C,[""],w,0,s,w)}}c=u=h=0,g=v=1,y=E="",d=a;break;case 58:d=1+$n(E),h=f;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Tn())continue;switch(E+=wn(b),b*g){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[c++]=($n(E)-1)*v,v=1;break;case 64:45===zn()&&(E+=Fn(Dn())),p=zn(),u=d=$n(y=E+=qn(An())),b++;break;case 45:45===f&&2==$n(E)&&(g=0)}}return i}function Yn(e,t,n,o,r,i,a,s,l,c,u,d){for(var p=r-1,h=0===r?i:[""],f=function(e){return e.length}(h),g=0,m=0,v=0;g<o;++g)for(var b=0,y=On(e,p+1,p=xn(m=a[g])),x=e;b<f;++b)(x=Cn(m>0?h[b]+" "+y:En(y,/&\f/g,h[b])))&&(l[v++]=x);return Rn(e,t,n,0===r?gn:s,l,c,u,d)}function Zn(e,t,n,o){return Rn(e,t,n,fn,wn(In),On(e,2,-2),0,o)}function Qn(e,t,n,o,r){return Rn(e,t,n,mn,On(e,0,o),On(e,o+1,-1),o,r)}function Jn(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function eo(e,t,n,o){switch(e.type){case yn:if(e.children.length)break;case vn:case mn:return e.return=e.return||e.value;case fn:return"";case bn:return e.return=e.value+"{"+Jn(e.children,o)+"}";case gn:if(!$n(e.value=e.props.join(",")))return""}return $n(n=Jn(e.children,o))?e.return=e.value+"{"+n+"}":""}function to(e,t){var n=t.path,o=t.parentSelectors;q(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var no,oo=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)))&&to("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},ro=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&to("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},io="data-ant-cssinjs-cache-path",ao="_FILE_STYLE__",so=!0;function lo(e){return function(){if(!no&&(no={},lt())){var e=document.createElement("div");e.className=io,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=at(e.split(":"),2),n=t[0],o=t[1];no[n]=o}));var n,o=document.querySelector("style[".concat(io,"]"));o&&(so=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!no[e]}var co="_skip_check_",uo="_multi_value_";function po(e){return Jn(Gn(e),eo).replace(/\{%%%\:[^;];}/g,";")}function ho(e,t,n){if(!t)return e;var o=".".concat(t),r="low"===n?":where(".concat(o,")"):o;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(r).concat(o.slice(i.length))].concat(Ze(n.slice(1))).join(" ")})).join(",")}var fo=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},r=o.root,i=o.injectHash,a=o.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,p=void 0===d?[]:d,h=n.linters,f=void 0===h?[]:h,g="",m={};function v(t){var o=t.getName(s);if(!m[o]){var r=at(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];m[o]="@keyframes ".concat(t.getName(s)).concat(r)}}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 o="string"!=typeof t||r?t:{};if("string"==typeof o)g+="".concat(o,"\n");else if(o._keyframe)v(o);else{var l=p.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(l).forEach((function(t){var o=l[t];if("object"!==K(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===K(e)&&e&&(co in e||uo in e)}(o)){var d;function E(e,t){"production"===process.env.NODE_ENV||"object"===K(o)&&null!=o&&o[co]||[oo,ro].concat(Ze(f)).forEach((function(n){return n(e,t,{path:c,hashId:s,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;hn[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(s)),g+="".concat(n,":").concat(r,";")}var p=null!==(d=null==o?void 0:o.value)&&void 0!==d?d:o;"object"===K(o)&&null!=o&&o[uo]&&Array.isArray(p)?p.forEach((function(e){E(t,e)})):E(t,p)}else{var h=!1,b=t.trim(),y=!1;(r||i)&&s?b.startsWith("@")?h=!0:b=ho("&"===b?"":t,s,u):!r||s||"&"!==b&&""!==b||(b="",y=!0);var x=at(e(o,n,{root:y,injectHash:h,parentSelectors:[].concat(Ze(a),[b])}),2),w=x[0],C=x[1];m=J(J({},m),C),g+="".concat(b).concat(w)}}))}})),r?l&&(g="@layer ".concat(l.name," {").concat(g,"}"),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,m]};function go(e,t){return st("".concat(e.join("%")).concat(t))}function mo(){return null}var vo="style";function bo(t,n){var o=t.token,r=t.path,i=t.hashId,a=t.layer,s=t.nonce,l=t.clientOnly,c=t.order,u=void 0===c?0:c,d=e.useContext(Pt),p=d.autoClear,h=d.mock,f=d.defaultCache,g=d.hashPriority,m=d.container,v=d.ssrInline,b=d.transformers,y=d.linters,x=d.cache,w=d.layer,C=o._tokenKey,E=[C];w&&E.push("layer"),E.push.apply(E,Ze(r));var S=Ht;"production"!==process.env.NODE_ENV&&void 0!==h&&(S="client"===h);var k=on(vo,E,(function(){var e=E.join("|");if(lo(e)){var t=function(e){var t=no[e],n=null;if(t&<())if(so)n=ao;else{var o=document.querySelector("style[".concat($t,'="').concat(no[e],'"]'));o?n=o.innerHTML:delete no[e]}return[n,t]}(e),o=at(t,2),s=o[0],c=o[1];if(s)return[s,C,c,{},l,u]}var d=n(),p=at(fo(d,{hashId:i,hashPriority:g,layer:w?a:void 0,path:r.join("-"),transformers:b,linters:y}),2),h=p[0],f=p[1],m=po(h),v=go(E,m);return[m,C,v,f,l,u]}),(function(e,t){var n=at(e,3)[2];(t||p)&&Ht&&yt(n,{mark:$t})}),(function(e){var t=at(e,4),n=t[0];t[1];var o=t[2],r=t[3];if(S&&n!==ao){var i={mark:$t,prepend:!w&&"queue",attachTo:m,priority:u},a="function"==typeof s?s():s;a&&(i.csp={nonce:a});var l=[],c=[];Object.keys(r).forEach((function(e){e.startsWith("@layer")?l.push(e):c.push(e)})),l.forEach((function(e){xt(po(r[e]),"_layer-".concat(e),J(J({},i),{},{prepend:!0}))}));var d=xt(n,o,i);d[_t]=x.instanceId,d.setAttribute(Ot,C),"production"!==process.env.NODE_ENV&&d.setAttribute(Mt,E.join("|")),c.forEach((function(e){xt(po(r[e]),"_effect-".concat(e),i)}))}})),O=at(k,3),$=O[0],M=O[1],_=O[2];return function(t){var n;return n=v&&!S&&f?e.createElement("style",I({},Z(Z({},Ot,M),$t,_),{dangerouslySetInnerHTML:{__html:$}})):e.createElement(mo,null),e.createElement(e.Fragment,null,n,t)}}var yo="cssVar";Z(Z(Z({},vo,(function(e,t,n){var o=at(e,6),r=o[0],i=o[1],a=o[2],s=o[3],l=o[4],c=o[5],u=(n||{}).plain;if(l)return null;var d=r,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Vt(r,i,a,p,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Vt(po(s[e]),i,"_effect-".concat(e),p,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),dn,(function(e,t,n){var o=at(e,5),r=o[2],i=o[3],a=o[4],s=(n||{}).plain;if(!i)return null;var l=r._tokenKey;return[-999,l,Vt(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),yo,(function(e,t,n){var o=at(e,4),r=o[1],i=o[2],a=o[3],s=(n||{}).plain;if(!r)return null;return[-999,i,Vt(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var xo=function(){function e(t,n){Ie(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=n}return Re(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 wo(e){return e.notSplit=!0,e}wo(["borderTop","borderBottom"]),wo(["borderTop"]),wo(["borderBottom"]),wo(["borderLeft","borderRight"]),wo(["borderLeft"]),wo(["borderRight"]);var Co=i({});function Eo(e){return rt(e)||Ke(e)||Ye(e)||it()}function So(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}function ko(e,t,n,o){if(!t.length)return n;var r,i=Eo(t),a=i[0],s=i.slice(1);return r=e||"number"!=typeof a?Array.isArray(e)?Ze(e):J({},e):[],o&&void 0===n&&1===s.length?delete r[a][s[0]]:r[a]=ko(r[a],s,n,o),r}function Oo(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!So(e,t.slice(0,-1))?e:ko(e,t,n,o)}function $o(e){return Array.isArray(e)?[]:{}}var Mo="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function _o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=$o(t[0]);return t.forEach((function(e){!function t(n,r){var i,a=new Set(r),s=So(e,n),l=Array.isArray(s);if(l||"object"===K(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=So(o,n);l?o=Oo(o,n,[]):c&&"object"===K(c)||(o=Oo(o,n,$o(s))),Mo(s).forEach((function(e){t([].concat(Ze(n),[e]),a)}))}}else o=Oo(o,n,s)}([])})),o}function Po(){}let No=null;let Lo=Po;"production"!==process.env.NODE_ENV&&(Lo=(e,t,n)=>{q(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(No=null,U())});const Io=e.createContext({}),jo="production"!==process.env.NODE_ENV?t=>{const{strict:n}=e.useContext(Io),o=(e,o,r)=>{if(!e)if(!1===n&&"deprecated"===o){const e=No;No||(No={}),No[t]=No[t]||[],No[t].includes(r||"")||No[t].push(r||""),e||console.warn("[antd] There exists deprecated usage in your code:",No)}else"production"!==process.env.NODE_ENV&&Lo(e,t,r)};return o.deprecated=(e,t,n,r)=>{o(e,"deprecated",`\`${t}\` is deprecated. Please use \`${n}\` instead.${r?` ${r}`:""}`)},o}:()=>{const e=()=>{};return e.deprecated=Po,e};var Ro=Lo,To=i(void 0),Do={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"},zo=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 Ao={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Bo={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"]},zo),timePickerLocale:Object.assign({},Ao)},Ho="${label} is not a valid ${type}",Fo={locale:"en",Pagination:Do,DatePicker:Bo,TimePicker:Ao,Calendar:Bo,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:Ho,method:Ho,array:Ho,object:Ho,number:Ho,date:Ho,boolean:Ho,integer:Ho,float:Ho,regexp:Ho,email:Ho,url:Ho,hex:Ho},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"}};let Vo=Object.assign({},Fo.Modal),Wo=[];const Uo=()=>Wo.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Fo.Modal);function Xo(){return Vo}const qo=i(void 0),Go=(t,n)=>{const o=e.useContext(qo),r=e.useMemo((()=>{var e;const r=n||Fo[t],i=null!==(e=null==o?void 0:o[t])&&void 0!==e?e:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),i||{})}),[t,n,o]);return[r,e.useMemo((()=>{const e=null==o?void 0:o.locale;return(null==o?void 0:o.exist)&&!e?Fo.locale:e}),[o])]},Ko="internalMark",Yo=t=>{const{locale:n={},children:o,_ANT_MARK__:r}=t;if("production"!==process.env.NODE_ENV){const e=jo("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===Ko,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}e.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Wo.push(t),Vo=Uo(),()=>{Wo=Wo.filter((e=>e!==t)),Vo=Uo()}}Vo=Object.assign({},Fo.Modal)}(null==n?void 0:n.Modal);return e}),[n]);const i=e.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return e.createElement(qo.Provider,{value:i},o)};function Zo(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 Qo(e){return Math.min(1,Math.max(0,e))}function Jo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function er(e){return e<=1?"".concat(100*Number(e),"%"):e}function tr(e){return 1===e.length?"0"+e:String(e)}function nr(e,t,n){e=Zo(e,255),t=Zo(t,255),n=Zo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,s=(o+r)/2;if(o===r)a=0,i=0;else{var l=o-r;switch(a=s>.5?l/(2-o-r):l/(o+r),o){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:a,l:s}}function or(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=Zo(e,255),t=Zo(t,255),n=Zo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=o,s=o-r,l=0===o?0:s/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,v:a}}function ir(e,t,n,o){var r=[tr(Math.round(e).toString(16)),tr(Math.round(t).toString(16)),tr(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function ar(e){return sr(e)/255}function sr(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(Yo.displayName="LocaleProvider");var lr={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 cr(e){var t,n,o,r={r:0,g:0,b:0},i=1,a=null,s=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(lr[e])e=lr[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=hr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=hr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=hr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=hr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=hr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=hr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=hr.hex8.exec(e),n)return{r:sr(n[1]),g:sr(n[2]),b:sr(n[3]),a:ar(n[4]),format:t?"name":"hex8"};if(n=hr.hex6.exec(e),n)return{r:sr(n[1]),g:sr(n[2]),b:sr(n[3]),format:t?"name":"hex"};if(n=hr.hex4.exec(e),n)return{r:sr(n[1]+n[1]),g:sr(n[2]+n[2]),b:sr(n[3]+n[3]),a:ar(n[4]+n[4]),format:t?"name":"hex8"};if(n=hr.hex3.exec(e),n)return{r:sr(n[1]+n[1]),g:sr(n[2]+n[2]),b:sr(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(fr(e.r)&&fr(e.g)&&fr(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*Zo(t,255),g:255*Zo(n,255),b:255*Zo(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):fr(e.h)&&fr(e.s)&&fr(e.v)?(a=er(e.s),s=er(e.v),r=function(e,t,n){e=6*Zo(e,360),t=Zo(t,100),n=Zo(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=o%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,a,s),c=!0,u="hsv"):fr(e.h)&&fr(e.s)&&fr(e.l)&&(a=er(e.s),l=er(e.l),r=function(e,t,n){var o,r,i;if(e=Zo(e,360),t=Zo(t,100),n=Zo(n,100),0===t)r=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;o=or(s,a,e+1/3),r=or(s,a,e),i=or(s,a,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,a,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=Jo(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var ur="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),dr="[\\s|\\(]+(".concat(ur,")[,|\\s]+(").concat(ur,")[,|\\s]+(").concat(ur,")\\s*\\)?"),pr="[\\s|\\(]+(".concat(ur,")[,|\\s]+(").concat(ur,")[,|\\s]+(").concat(ur,")[,|\\s]+(").concat(ur,")\\s*\\)?"),hr={CSS_UNIT:new RegExp(ur),rgb:new RegExp("rgb"+dr),rgba:new RegExp("rgba"+pr),hsl:new RegExp("hsl"+dr),hsla:new RegExp("hsla"+pr),hsv:new RegExp("hsv"+dr),hsva:new RegExp("hsva"+pr),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 fr(e){return Boolean(hr.CSS_UNIT.exec(String(e)))}var gr=function(){function e(t,n){var o;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 r=cr(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.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=r.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,o=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*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Jo(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),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=nr(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=nr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),ir(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,o,r){var i,a=[tr(Math.round(e).toString(16)),tr(Math.round(t).toString(16)),tr(Math.round(n).toString(16)),tr((i=o,Math.round(255*parseFloat(i)).toString(16)))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[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*Zo(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*Zo(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="#"+ir(this.r,this.g,this.b,!1),t=0,n=Object.entries(lr);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,o=this.a<1&&this.a>=0;return t||!o||!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=Qo(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=Qo(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=Qo(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=Qo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100;return new e({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));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(),o=n.h,r=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:o,s:r,v:i})),i=(i+s)%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(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},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(),o=n.h,r=[this],i=360/t,a=1;a<t;a++)r.push(new e({h:(o+a*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),mr=2,vr=.16,br=.05,yr=.05,xr=.15,wr=5,Cr=4,Er=[{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 Sr(e){var t=rr(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function kr(e){var t=e.r,n=e.g,o=e.b;return"#".concat(ir(t,n,o,!1))}function Or(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-mr*t:Math.round(e.h)+mr*t:n?Math.round(e.h)+mr*t:Math.round(e.h)-mr*t)<0?o+=360:o>=360&&(o-=360),o}function $r(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-vr*t:t===Cr?e.s+vr:e.s+br*t)>1&&(o=1),n&&t===wr&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function Mr(e,t,n){var o;return(o=n?e.v+yr*t:e.v-xr*t)>1&&(o=1),Number(o.toFixed(2))}function _r(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=cr(e),r=wr;r>0;r-=1){var i=Sr(o),a=kr(cr({h:Or(i,r,!0),s:$r(i,r,!0),v:Mr(i,r,!0)}));n.push(a)}n.push(kr(o));for(var s=1;s<=Cr;s+=1){var l=Sr(o),c=kr(cr({h:Or(l,s),s:$r(l,s),v:Mr(l,s)}));n.push(c)}return"dark"===t.theme?Er.map((function(e){var o,r,i,a=e.index,s=e.opacity;return kr((o=cr(t.backgroundColor||"#141414"),r=cr(n[a]),i=100*s/100,{r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b}))})):n}var Pr={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"},Nr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Nr.primary=Nr[5];var Lr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Lr.primary=Lr[5];var Ir=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ir.primary=Ir[5];var jr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];jr.primary=jr[5];var Rr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Rr.primary=Rr[5];var Tr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Tr.primary=Tr[5];var Dr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Dr.primary=Dr[5];var zr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];zr.primary=zr[5];var Ar=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ar.primary=Ar[5];var Br=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Br.primary=Br[5];var Hr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Hr.primary=Hr[5];var Fr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Fr.primary=Fr[5];var Vr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Vr.primary=Vr[5];var Wr={red:Nr,volcano:Lr,orange:Ir,gold:jr,yellow:Rr,lime:Tr,green:Dr,cyan:zr,blue:Ar,geekblue:Br,purple:Hr,magenta:Fr,grey:Vr};const Ur={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"},Xr=Object.assign(Object.assign({},Ur),{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 qr=e=>{let t=e,n=e,o=e,r=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?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};function Gr(e){return(e+8)/e}const Kr=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Gr(e)})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight)),r=n[1],i=n[0],a=n[2],s=o[1],l=o[0],c=o[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*r),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};const Yr=(e,t)=>new gr(e).setAlpha(t).toRgbString(),Zr=(e,t)=>new gr(e).darken(t).toHexString(),Qr=e=>{const t=_r(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]}},Jr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Yr(o,.88),colorTextSecondary:Yr(o,.65),colorTextTertiary:Yr(o,.45),colorTextQuaternary:Yr(o,.25),colorFill:Yr(o,.15),colorFillSecondary:Yr(o,.06),colorFillTertiary:Yr(o,.04),colorFillQuaternary:Yr(o,.02),colorBgLayout:Zr(n,4),colorBgContainer:Zr(n,0),colorBgElevated:Zr(n,0),colorBgSpotlight:Yr(o,.85),colorBgBlur:"transparent",colorBorder:Zr(n,15),colorBorderSecondary:Zr(n,6)}};const ei=Rt((function(e){Pr.pink=Pr.magenta,Wr.pink=Wr.magenta;const t=Object.keys(Ur).map((t=>{const n=e[t]===Pr[t]?Wr[t]:_r(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],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:o}=t;const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),p=n(r),h=n(i),f=n(a),g=n(s),m=o(c,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},m),{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:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[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:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new gr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Qr,generateNeutralColorPalettes:Jr})),Kr(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:o,lineWidth:r}=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:r+1},qr(o))}(e))})),ti={token:Xr,override:{override:Xr},hashed:!0},ni=t.createContext(ti),oi="ant",ri="anticon",ii=["outlined","borderless","filled"],ai=e.createContext({getPrefixCls:(e,t)=>t||(e?`${oi}-${e}`:oi),iconPrefixCls:ri}),si=`-ant-${Date.now()}-${Math.random()}`;function li(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new gr(e),i=_r(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new gr(t.primaryColor),i=_r(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new gr(i[0]);n["primary-color-active-deprecated-f-30"]=o(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(a,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);lt()?xt(n,`${si}-dynamic-theme`):"production"!==process.env.NODE_ENV&&Ro(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ci=e.createContext(!1),ui=t=>{let{children:n,disabled:o}=t;const r=e.useContext(ci);return e.createElement(ci.Provider,{value:null!=o?o:r},n)},di=e.createContext(void 0),pi=t=>{let{children:n,size:o}=t;const r=e.useContext(di);return e.createElement(di.Provider,{value:o||r},n)};var hi=Re((function e(){Ie(this,e)})),fi="CALC_UNIT",gi=new RegExp(fi,"g");function mi(e){return"number"==typeof e?"".concat(e).concat(fi):e}var vi=function(){De(t,hi);var e=He(t);function t(n,o){var r;Ie(this,t),Z(Be(r=e.call(this)),"result",""),Z(Be(r),"unitlessCssVar",void 0),Z(Be(r),"lowPriority",void 0);var i=K(n);return r.unitlessCssVar=o,n instanceof t?r.result="(".concat(n.result,")"):"number"===i?r.result=mi(n):"string"===i&&(r.result=n),r}return Re(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(mi(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(mi(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,o=!0;return"boolean"==typeof n?o=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(o=!1),this.result=this.result.replace(gi,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),bi=function(){De(t,hi);var e=He(t);function t(n){var o;return Ie(this,t),Z(Be(o=e.call(this)),"result",0),n instanceof t?o.result=n.result:"number"==typeof n&&(o.result=n),o}return Re(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}(),yi=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 xi(t){var n=e.useRef();n.current=t;var o=e.useCallback((function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(o))}),[]);return o}function wi(t){var n=e.useRef(!1),o=at(e.useState(t),2),r=o[0],i=o[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[r,function(e,t){t&&n.current||i(e)}]}function Ci(e){return void 0!==e}function Ei(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,s=at(wi((function(){return Ci(r)?r:Ci(o)?"function"==typeof o?o():o:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==r?r:l,d=a?a(u):u,p=xi(i),h=at(wi([u]),2),f=h[0],g=h[1];return Kt((function(){var e=f[0];l!==e&&p(l,e)}),[f]),Kt((function(){Ci(r)||c(r)}),[r]),[d,xi((function(e,t){c(e,t),g([u],t)}))]}function Si(e,t,n,o){var r=J({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach((function(t){var n,o=at(t,2),i=o[0],a=o[1];("production"!==process.env.NODE_ENV&&q(!(null!=r&&r[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=r&&r[i]||null!=r&&r[a])&&(null!==(n=r[a])&&void 0!==n||(r[a]=null==r?void 0:r[i]))}));var i=J(J({},n),r);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var ki="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Oi=!0;function $i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ki)return Object.assign.apply(Object,[{}].concat(t));Oi=!1;var o={};return t.forEach((function(e){"object"===K(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Oi=!0,o}var Mi={};function _i(){}function Pi(e,t,n){var o;return"function"==typeof n?n($i(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}}var Ni=function(){function e(){Ie(this,e),Z(this,"map",new Map),Z(this,"objectIDMap",new WeakMap),Z(this,"nextID",0),Z(this,"lastAccessBeat",new Map),Z(this,"accessBeat",0)}return Re(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"===K(e)?"obj_".concat(t.getObjectID(e)):"".concat(K(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,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))})),this.accessBeat=0}}}]),e}(),Li=new Ni;var Ii=function(){return{}};const ji=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Ri="5.20.5";function Ti(e){return e>=0&&e<=255}function Di(e,t){const{r:n,g:o,b:r,a:i}=new gr(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new gr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((o-s*(1-e))/e),c=Math.round((r-l*(1-e))/e);if(Ti(t)&&Ti(i)&&Ti(c))return new gr({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new gr({r:n,g:o,b:r,a:1}).toRgbString()}var zi=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Ai(e){const{override:t}=e,n=zi(e,["override"]),o=Object.assign({},t);Object.keys(Xr).forEach((e=>{delete o[e]}));const r=Object.assign(Object.assign({},n),o),i=1200,a=1600;if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:Di(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:Di(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Di(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:4*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:Di(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.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 gr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new gr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new gr("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)"}),o)}var Bi=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Hi={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},Fi={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},Vi={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},Wi=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=Bi(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=Ai(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:o}=n,r=Bi(n,["theme"]);let i=r;o&&(i=Wi(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function Ui(){const{token:e,hashed:n,theme:o,override:r,cssVar:i}=t.useContext(ni),a=`${Ri}-${n||""}`,s=o||ei,[l,c,u]=pn(s,[Xr,e],{salt:a,override:r,getComputedToken:Wi,formatToken:Ai,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Hi,ignore:Fi,preserve:Vi}});return[s,u,n?c:"",l,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}}),qi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Gi=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}},Ki=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"}}}),Yi=e=>({outline:`${Ft(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Zi=e=>({"&:focus-visible":Object.assign({},Yi(e))}),Qi=(e,t)=>{const[n,o]=Ui();return bo({theme:n,token:o,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:Ji,genComponentStyleHook:ea,genSubStyleComponent:ta}=function(e){var n=e.useCSP,o=void 0===n?Ii:n,i=e.useToken,a=e.usePrefix,s=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function u(e,n,r){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(e)?e:[e,e],d=at(u,1)[0],p=u.join("-");return function(e){var u,h,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=i(),m=g.theme,v=g.realToken,b=g.hashId,y=g.token,x=g.cssVar,w=a(),C=w.rootPrefixCls,E=w.iconPrefixCls,S=o(),k=x?"css":"js",O=(u=function(){var e=new Set;return x&&Object.keys(c.unitless||{}).forEach((function(t){e.add(Wt(t,x.prefix)),e.add(Wt(t,yi(d,x.prefix)))})),function(e,t){var n="css"===e?vi:bi;return function(e){return new n(e,t)}}(k,e)},h=[k,d,null==x?void 0:x.prefix],t.useMemo((function(){var e=Li.get(h);if(e)return e;var t=u();return Li.set(h,t),t}),h)),$=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 Ft(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 Ft(e)})).join(","),")")}}}(k),M=$.max,_=$.min,P={theme:m,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:c.clientOnly,layer:{name:"antd"},order:c.order||-999};bo(J(J({},P),{},{clientOnly:!1,path:["Shared",C]}),(function(){return"function"==typeof s?s(y):[]}));var N=bo(J(J({},P),{},{path:[p,e,E]}),(function(){if(!1===c.injectStyle)return[];var t=function(e){var t,n=e,o=_i;return ki&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return Oi&&t.add(n),e[n]}}),o=function(e,n){var o;Mi[e]={global:Array.from(t),component:J(J({},null===(o=Mi[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(y),o=t.token,i=t.flush,a=Pi(d,v,r),s=".".concat(e),u=Si(d,v,a,{deprecatedTokens:c.deprecatedTokens});x&&"object"===K(a)&&Object.keys(a).forEach((function(e){a[e]="var(".concat(Wt(e,yi(d,x.prefix)),")")}));var p=$i(o,{componentCls:s,prefixCls:e,iconCls:".".concat(E),antCls:".".concat(C),calc:O,max:M,min:_},x?a:u),h=n(p,{hashId:b,prefixCls:e,rootPrefixCls:C,iconPrefixCls:E});i(d,u);var g="function"==typeof l?l(p,e,f,c.resetFont):null;return[!1===c.resetStyle?null:g,h]}));return[N,b]}}return{genStyleHooks:function(e,n,o,a){var s=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==a?void 0:a.unitless)||{},p=J(J({},"function"==typeof c?c(e):{}),{},Z({},l("zIndexPopup"),!0));Object.keys(d).forEach((function(e){p[l(e)]=d[e]}));var h=J(J({},a),{},{unitless:p,prefixToken:l}),f=u(e,n,o,h),g=function(e,n,o){var a=o.unitless,s=o.injectStyle,l=void 0===s||s,c=o.prefixToken,u=o.ignore,d=function(t){var s=t.rootCls,l=t.cssVar,d=void 0===l?{}:l,p=i().realToken;return function(e,t){var n=e.key,o=e.prefix,i=e.unitless,a=e.ignore,s=e.token,l=e.scope,c=void 0===l?"":l,u=r(Pt),d=u.cache.instanceId,p=u.container,h=s._tokenKey,f=[].concat(Ze(e.path),[n,c,h]),g=on(yo,f,(function(){var e=t(),r=at(Xt(e,n,{prefix:o,unitless:i,ignore:a,scope:c}),2),s=r[0],l=r[1];return[s,l,go(f,l),n]}),(function(e){var t=at(e,3)[2];Ht&&yt(t,{mark:$t})}),(function(e){var t=at(e,3),o=t[1],r=t[2];if(o){var i=xt(o,r,{mark:$t,prepend:"queue",attachTo:p,priority:-999});i[_t]=d,i.setAttribute(Ot,n)}}))}({path:[e],prefix:d.prefix,key:d.key,unitless:a,ignore:u,token:p,scope:s},(function(){var t=Pi(e,p,n),r=Si(e,p,t,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(t).forEach((function(e){r[c(e)]=r[e],delete r[e]})),r})),null},p=function(n){var o=i().cssVar;return[function(r){return l&&o?t.createElement(t.Fragment,null,t.createElement(d,{rootCls:n,cssVar:o,component:e}),r):r},null==o?void 0:o.key]};return p}(s,o,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=at(f(e,t),2)[1],o=at(g(t),2);return[o[0],n,o[1]]}},genSubStyleComponent:function(e,t,n){var o=u(e,t,n,J({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),r=function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(r.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),r},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=r(ai);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,r]=Ui();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=r(ai);return Qi(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":Ki(e)}],getCommonStyle:(e,t,n,o)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:r,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==o&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[r]:a})}},getCompUnitless:()=>Hi});function na(e,t){return ji.reduce(((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],s=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const oa=Object.assign({},e),{useId:ra}=oa,ia=void 0===ra?()=>"":ra;var aa=["children"],sa=e.createContext({});function la(t){var n=t.children,o=wt(t,aa);return e.createElement(sa.Provider,{value:o},n)}var ca=function(){De(n,e.Component);var t=He(n);function n(){return Ie(this,n),t.apply(this,arguments)}return Re(n,[{key:"render",value:function(){return this.props.children}}]),n}();var ua="none",da="appear",pa="enter",ha="leave",fa="none",ga="prepare",ma="start",va="active",ba="end",ya="prepared";function xa(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 wa=function(e,t){var n={animationend:xa("Animation","AnimationEnd"),transitionend:xa("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(lt(),"undefined"!=typeof window?window:{}),Ca={};if(lt()){var Ea=document.createElement("div");Ca=Ea.style}var Sa={};function ka(e){if(Sa[e])return Sa[e];var t=wa[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Ca)return Sa[e]=t[i],Sa[e]}return""}var Oa=ka("animationend"),$a=ka("transitionend"),Ma=!(!Oa||!$a),_a=Oa||"animationend",Pa=$a||"transitionend";function Na(e,t){if(!e)return null;if("object"===K(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var La=function(t){var n=a();function o(e){e&&(e.removeEventListener(Pa,t),e.removeEventListener(_a,t))}return e.useEffect((function(){return function(){o(n.current)}}),[]),[function(e){n.current&&n.current!==e&&o(n.current),e&&e!==n.current&&(e.addEventListener(Pa,t),e.addEventListener(_a,t),n.current=e)},o]},Ia=lt()?s:l,ja=[ga,ma,va,ba],Ra=[ga,ya],Ta=!1,Da=!0;function za(e){return e===va||e===ba}var Aa=function(t,n,o){var r=at(wi(fa),2),i=r[0],a=r[1],s=function(){var t=e.useRef(null);function n(){ot.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=ot((function(){r<=1?o({isCanceled:function(){return i!==t.current}}):e(o,r-1)}));t.current=i},n]}(),l=at(s,2),c=l[0],u=l[1];var d=n?Ra:ja;return Ia((function(){if(i!==fa&&i!==ba){var e=d.indexOf(i),t=d[e+1],n=o(i);n===Ta?a(t,!0):t&&c((function(e){function o(){e.isCanceled()||a(t,!0)}!0===n?o():Promise.resolve(n).then(o)}))}}),[t,i]),e.useEffect((function(){return function(){u()}}),[]),[function(){a(ga,!0)},i]};function Ba(t,n,o,r){var i,s,c,u=r.motionEnter,d=void 0===u||u,p=r.motionAppear,h=void 0===p||p,f=r.motionLeave,g=void 0===f||f,m=r.motionDeadline,v=r.motionLeaveImmediately,b=r.onAppearPrepare,y=r.onEnterPrepare,x=r.onLeavePrepare,w=r.onAppearStart,C=r.onEnterStart,E=r.onLeaveStart,S=r.onAppearActive,k=r.onEnterActive,O=r.onLeaveActive,$=r.onAppearEnd,M=r.onEnterEnd,_=r.onLeaveEnd,P=r.onVisibleChanged,N=at(wi(),2),L=N[0],I=N[1],j=(i=ua,s=at(e.useReducer((function(e){return e+1}),0),2)[1],c=e.useRef(i),[xi((function(){return c.current})),xi((function(e){c.current="function"==typeof e?e(c.current):e,s()}))]),R=at(j,2),T=R[0],D=R[1],z=at(wi(null),2),A=z[0],B=z[1],H=T(),F=a(!1),V=a(null);function W(){return o()}var U=a(!1);function X(){D(ua),B(null,!0)}var q=xi((function(e){var t=T();if(t!==ua){var n=W();if(!e||e.deadline||e.target===n){var o,r=U.current;t===da&&r?o=null==$?void 0:$(n,e):t===pa&&r?o=null==M?void 0:M(n,e):t===ha&&r&&(o=null==_?void 0:_(n,e)),r&&!1!==o&&X()}}})),G=at(La(q),1)[0],K=function(e){switch(e){case da:return Z(Z(Z({},ga,b),ma,w),va,S);case pa:return Z(Z(Z({},ga,y),ma,C),va,k);case ha:return Z(Z(Z({},ga,x),ma,E),va,O);default:return{}}},Y=e.useMemo((function(){return K(H)}),[H]),Q=at(Aa(H,!t,(function(e){if(e===ga){var t=Y[ga];return t?t(W()):Ta}var n;te in Y&&B((null===(n=Y[te])||void 0===n?void 0:n.call(Y,W(),null))||null);return te===va&&H!==ua&&(G(W()),m>0&&(clearTimeout(V.current),V.current=setTimeout((function(){q({deadline:!0})}),m))),te===ya&&X(),Da})),2),ee=Q[0],te=Q[1],ne=za(te);U.current=ne,Ia((function(){I(n);var e,o=F.current;F.current=!0,!o&&n&&h&&(e=da),o&&n&&d&&(e=pa),(o&&!n&&g||!o&&v&&!n&&g)&&(e=ha);var r=K(e);e&&(t||r[ga])?(D(e),ee()):D(ua)}),[n]),l((function(){(H===da&&!h||H===pa&&!d||H===ha&&!g)&&D(ua)}),[h,d,g]),l((function(){return function(){F.current=!1,clearTimeout(V.current)}}),[]);var oe=e.useRef(!1);l((function(){L&&(oe.current=!0),void 0!==L&&H===ua&&((oe.current||L)&&(null==P||P(L)),oe.current=!0)}),[L,H]);var re=A;return Y[ga]&&te===ma&&(re=J({transition:"none"},re)),[H,te,re,null!=L?L:n]}var Ha=function(t){var n=t;"object"===K(t)&&(n=t.transitionSupport);var o=e.forwardRef((function(t,o){var r=t.visible,i=void 0===r||r,s=t.removeOnLeave,l=void 0===s||s,c=t.forceRender,u=t.children,d=t.motionName,p=t.leavedClassName,h=t.eventProps,f=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(sa).motion),g=a(),m=a();var v=at(Ba(f,i,(function(){try{return g.current instanceof HTMLElement?g.current:te(m.current)}catch(e){return null}}),t),4),b=v[0],y=v[1],x=v[2],w=v[3],C=e.useRef(w);w&&(C.current=!0);var E,S=e.useCallback((function(e){g.current=e,oe(o,e)}),[o]),k=J(J({},h),{},{visible:i});if(u)if(b===ua)E=w?u(J({},k),S):!l&&C.current&&p?u(J(J({},k),{},{className:p}),S):c||!l&&!p?u(J(J({},k),{},{style:{display:"none"}}),S):null;else{var O;y===ga?O="prepare":za(y)?O="active":y===ma&&(O="start");var $=Na(d,"".concat(b,"-").concat(O));E=u(J(J({},k),{},{className:L(Na(d,b),Z(Z({},$,$&&O),d,"string"==typeof d)),style:x}),S)}else E=null;e.isValidElement(E)&&ae(E)&&(E.ref||(E=e.cloneElement(E,{ref:S})));return e.createElement(ca,{ref:m},E)}));return o.displayName="CSSMotion",o}(Ma),Fa="add",Va="keep",Wa="remove",Ua="removed";function Xa(e){var t;return J(J({},t=e&&"object"===K(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function qa(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Xa)}var Ga=["component","children","onVisibleChanged","onAllRemoved"],Ka=["status"],Ya=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Za(t){const{children:n}=t,[,o]=Ui(),{motion:r}=o,i=e.useRef(!1);return i.current=i.current||!1===r,i.current?e.createElement(la,{motion:r},n):n}!function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ha,o=function(){De(o,e.Component);var t=He(o);function o(){var e;Ie(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Z(Be(e=t.call.apply(t,[this].concat(r))),"state",{keyEntities:[]}),Z(Be(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:J(J({},e),{},{status:Ua})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Ua})).length})),e}return Re(o,[{key:"render",value:function(){var t=this,o=this.state.keyEntities,r=this.props,i=r.component,a=r.children,s=r.onVisibleChanged,l=r.onAllRemoved,c=wt(r,Ga),u=i||e.Fragment,d={};return Ya.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,e.createElement(u,c,o.map((function(o,r){var i=o.status,c=wt(o,Ka),u=i===Fa||i===Va;return e.createElement(n,I({},d,{key:c.key,visible:u,eventProps:c,onVisibleChanged:function(e){(null==s||s(e,{key:c.key}),e)||0===t.removeKey(c.key)&&l&&l()}}),(function(e,t){return a(J(J({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=qa(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=[],o=0,r=t.length,i=qa(e),a=qa(t);i.forEach((function(e){for(var t=!1,i=o;i<r;i+=1){var s=a[i];if(s.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map((function(e){return J(J({},e),{},{status:Fa})}))),o=i),n.push(J(J({},s),{},{status:Va})),o+=1,t=!0;break}}t||n.push(J(J({},e),{},{status:Wa}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return J(J({},e),{},{status:Fa})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==Wa}))).forEach((function(t){t.key===e&&(t.status=Va)}))})),n}(o,r);return{keyEntities:i.filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Ua||e.status!==Wa}))}}}]),o}();Z(o,"defaultProps",{component:"div"})}(Ma);const Qa=e.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return jo("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(Qa.displayName="PropWarning");var Ja="production"!==process.env.NODE_ENV?Qa:()=>null,es=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let ts=!1;const ns="production"!==process.env.NODE_ENV?e=>{"production"!==process.env.NODE_ENV&&Ro(!ts,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,os=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let rs,is,as,ss;function ls(){return rs||oi}function cs(){return is||ri}const us=()=>({getPrefixCls:(e,t)=>t||(e?`${ls()}-${e}`:ls()),getIconPrefixCls:cs,getRootPrefixCls:()=>rs||ls(),getTheme:()=>as,holderRender:ss}),ds=t=>{const{children:n,csp:o,autoInsertSpaceInButton:r,alert:i,anchor:a,form:s,locale:l,componentSize:c,direction:u,space:d,virtual:p,dropdownMatchSelectWidth:h,popupMatchSelectWidth:f,popupOverflow:g,legacyLocale:m,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:w,statistic:C,spin:E,calendar:S,carousel:k,cascader:O,collapse:$,typography:M,checkbox:_,descriptions:P,divider:N,drawer:L,skeleton:I,steps:j,image:R,layout:T,list:D,mentions:z,modal:A,progress:B,result:H,slider:F,breadcrumb:V,menu:W,pagination:U,input:X,textArea:q,empty:G,badge:K,radio:Y,rate:Z,switch:Q,transfer:J,avatar:ee,message:te,tag:oe,table:re,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:pe,datePicker:he,rangePicker:fe,flex:ge,wave:me,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:Ce,treeSelect:Ee}=t,Se=e.useCallback(((e,n)=>{const{prefixCls:o}=t;if(n)return n;const r=o||v.getPrefixCls("");return e?`${r}-${e}`:r}),[v.getPrefixCls,t.prefixCls]),ke=b||v.iconPrefixCls||ri,Oe=o||v.csp;Qi(ke,Oe);const $e=function(e,t,n){var o,r;const i=jo("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},ti),{hashed:null!==(o=null==t?void 0:t.hashed)&&void 0!==o?o:ti.hashed,cssVar:null==t?void 0:t.cssVar}),l=ia();if("production"!==process.env.NODE_ENV){const e=a.cssVar||s.cssVar,t=!!("object"==typeof a.cssVar&&(null===(r=a.cssVar)||void 0===r?void 0:r.key)||l);"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 ne((()=>{var o,r;if(!e)return t;const i=Object.assign({},s.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const c=`css-var-${l.replace(/:/g,"")}`,u=(null!==(o=a.cssVar)&&void 0!==o?o:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof s.cssVar?s.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(r=a.cssVar)||void 0===r?void 0:r.key)||c});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:i,cssVar:u})}),[a,s],((e,t)=>e.some(((e,n)=>!Ct(e,t[n],!0)))))}(y,v.theme,{prefixCls:Se("")});"production"!==process.env.NODE_ENV&&(ts=ts||!!$e);const Me={csp:Oe,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:l||m,direction:u,space:d,virtual:p,popupMatchSelectWidth:null!=f?f:h,popupOverflow:g,getPrefixCls:Se,iconPrefixCls:ke,theme:$e,segmented:w,statistic:C,spin:E,calendar:S,carousel:k,cascader:O,collapse:$,typography:M,checkbox:_,descriptions:P,divider:N,drawer:L,skeleton:I,steps:j,image:R,input:X,textArea:q,layout:T,list:D,mentions:z,modal:A,progress:B,result:H,slider:F,breadcrumb:V,menu:W,pagination:U,empty:G,badge:K,radio:Y,rate:Z,switch:Q,transfer:J,avatar:ee,message:te,tag:oe,table:re,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:pe,datePicker:he,rangePicker:fe,flex:ge,wave:me,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:Ce,treeSelect:Ee};if("production"!==process.env.NODE_ENV){jo("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const _e=Object.assign({},v);Object.keys(Me).forEach((e=>{void 0!==Me[e]&&(_e[e]=Me[e])})),os.forEach((e=>{const n=t[e];n&&(_e[e]=n)})),void 0!==r&&(_e.button=Object.assign({autoInsertSpace:r},_e.button));const Pe=ne((()=>_e),_e,((e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some((n=>e[n]!==t[n]))})),Ne=e.useMemo((()=>({prefixCls:ke,csp:Oe})),[ke,Oe]);let Le=e.createElement(e.Fragment,null,e.createElement(Ja,{dropdownMatchSelectWidth:h}),n);const Ie=e.useMemo((()=>{var e,t,n,o;return _o((null===(e=Fo.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===(o=Pe.form)||void 0===o?void 0:o.validateMessages)||{},(null==s?void 0:s.validateMessages)||{})}),[Pe,null==s?void 0:s.validateMessages]);Object.keys(Ie).length>0&&(Le=e.createElement(To.Provider,{value:Ie},Le)),l&&(Le=e.createElement(Yo,{locale:l,_ANT_MARK__:Ko},Le)),(ke||Oe)&&(Le=e.createElement(Co.Provider,{value:Ne},Le)),c&&(Le=e.createElement(pi,{size:c},Le)),Le=e.createElement(Za,null,Le);const je=e.useMemo((()=>{const e=$e||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=es(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Rt(t):ei,s={};Object.entries(o||{}).forEach((e=>{let[t,n]=e;const o=Object.assign({},n);"algorithm"in o&&(!0===o.algorithm?o.theme=a:(Array.isArray(o.algorithm)||"function"==typeof o.algorithm)&&(o.theme=Rt(o.algorithm)),delete o.algorithm),s[t]=o}));const l=Object.assign(Object.assign({},Xr),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:r})}),[$e]);return y&&(Le=e.createElement(ni.Provider,{value:je},Le)),Pe.warning&&(Le=e.createElement(Io.Provider,{value:Pe.warning},Le)),void 0!==x&&(Le=e.createElement(ui,{disabled:x},Le)),e.createElement(ai.Provider,{value:Pe},Le)},ps=t=>{const n=e.useContext(ai),o=e.useContext(qo);return e.createElement(ds,Object.assign({parentContext:n,legacyLocale:o},t))};ps.ConfigContext=ai,ps.SizeContext=di,ps.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(rs=t),void 0!==n&&(is=n),"holderRender"in e&&(ss=r),o&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)?as=o:("production"!==process.env.NODE_ENV&&Ro(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),li(ls(),o)))},ps.useConfig=function(){return{componentDisabled:r(ci),componentSize:r(di)}},Object.defineProperty(ps,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&Ro(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),di)}),"production"!==process.env.NODE_ENV&&(ps.displayName="ConfigProvider");var hs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function fs(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function gs(e){return function(e){return fs(e)instanceof ShadowRoot}(e)?fs(e):null}function ms(e){return"object"===K(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===K(e.icon)||"function"==typeof e.icon)}function vs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var o,r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[(o=n,o.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=r;return t}),{})}function bs(e,n,o){return o?t.createElement(e.tag,J(J({key:n},vs(e.attrs)),o),(e.children||[]).map((function(t,o){return bs(t,"".concat(n,"-").concat(e.tag,"-").concat(o))}))):t.createElement(e.tag,J({key:n},vs(e.attrs)),(e.children||[]).map((function(t,o){return bs(t,"".concat(n,"-").concat(e.tag,"-").concat(o))})))}function ys(e){return _r(e)[0]}function xs(e){return e?Array.isArray(e)?e:[e]:[]}var ws=["icon","className","onClick","style","primaryColor","secondaryColor"],Cs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Es=function(t){var n,o,i,a,s,c,u,d=t.icon,p=t.className,h=t.onClick,f=t.style,g=t.primaryColor,m=t.secondaryColor,v=wt(t,ws),b=e.useRef(),y=Cs;if(g&&(y={primaryColor:g,secondaryColor:m||ys(g)}),n=b,o=r(Co),i=o.csp,a=o.prefixCls,s="\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&&(s=s.replace(/anticon/g,a)),l((function(){var e=gs(n.current);xt(s,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),c=ms(d),u="icon should be icon definiton, but got ".concat(d),q(c,"[@ant-design/icons] ".concat(u)),!ms(d))return null;var x=d;return x&&"function"==typeof x.icon&&(x=J(J({},x),{},{icon:x.icon(y.primaryColor,y.secondaryColor)})),bs(x.icon,"svg-".concat(x.name),J(J({className:p,onClick:h,style:f,"data-icon":x.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},v),{},{ref:b}))};function Ss(e){var t=at(xs(e),2),n=t[0],o=t[1];return Es.setTwoToneColors({primaryColor:n,secondaryColor:o})}Es.displayName="IconReact",Es.getTwoToneColors=function(){return J({},Cs)},Es.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Cs.primaryColor=t,Cs.secondaryColor=n||ys(t),Cs.calculated=!!n};var ks=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ss(Ar.primary);var Os=e.forwardRef((function(t,n){var o=t.className,r=t.icon,i=t.spin,a=t.rotate,s=t.tabIndex,l=t.onClick,c=t.twoToneColor,u=wt(t,ks),d=e.useContext(Co),p=d.prefixCls,h=void 0===p?"anticon":p,f=d.rootClassName,g=L(f,h,Z(Z({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||"loading"===r.name),o),m=s;void 0===m&&l&&(m=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=at(xs(c),2),y=b[0],x=b[1];return e.createElement("span",I({role:"img","aria-label":r.name},u,{ref:n,tabIndex:m,onClick:l,className:g}),e.createElement(Es,{icon:r,primaryColor:y,secondaryColor:x,style:v}))}));Os.displayName="AntdIcon",Os.getTwoToneColor=function(){var e=Es.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Os.setTwoToneColor=Ss;var $s=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:hs}))},Ms=e.forwardRef($s);
|
26
|
+
/** */"production"!==process.env.NODE_ENV&&(Ms.displayName="CheckCircleFilled");var _s={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"},Ps=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:_s}))},Ns=e.forwardRef(Ps);"production"!==process.env.NODE_ENV&&(Ns.displayName="CloseCircleFilled");var Ls={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"},Is=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:Ls}))},js=e.forwardRef(Is);"production"!==process.env.NODE_ENV&&(js.displayName="CloseOutlined");var Rs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Ts=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:Rs}))},Ds=e.forwardRef(Ts);"production"!==process.env.NODE_ENV&&(Ds.displayName="ExclamationCircleFilled");var zs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},As=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:zs}))},Bs=e.forwardRef(As);"production"!==process.env.NODE_ENV&&(Bs.displayName="InfoCircleFilled");var Hs="".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]+/),Fs="aria-",Vs="data-";function Ws(e,t){return 0===e.indexOf(t)}function Us(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 o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Ws(n,Fs))||t.data&&Ws(n,Vs)||t.attr&&Hs.includes(n))&&(o[n]=e[n])})),o}function Xs(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const qs=(e,n,o)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof o?o(e.props||{}):o):n;function Gs(e,t){return qs(e,e,t)}const Ks=e=>{const[,,,,t]=Ui();return t?`${e}-css-var`:""};var Ys={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>=Ys.F1&&t<=Ys.F12)return!1;switch(t){case Ys.ALT:case Ys.CAPS_LOCK:case Ys.CONTEXT_MENU:case Ys.CTRL:case Ys.DOWN:case Ys.END:case Ys.ESC:case Ys.HOME:case Ys.INSERT:case Ys.LEFT:case Ys.MAC_FF_META:case Ys.META:case Ys.NUMLOCK:case Ys.NUM_CENTER:case Ys.PAGE_DOWN:case Ys.PAGE_UP:case Ys.PAUSE:case Ys.PRINT_SCREEN:case Ys.RIGHT:case Ys.SHIFT:case Ys.UP:case Ys.WIN_KEY:case Ys.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ys.ZERO&&e<=Ys.NINE)return!0;if(e>=Ys.NUM_ZERO&&e<=Ys.NUM_MULTIPLY)return!0;if(e>=Ys.A&&e<=Ys.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Ys.SPACE:case Ys.QUESTION_MARK:case Ys.NUM_PLUS:case Ys.NUM_MINUS:case Ys.NUM_PERIOD:case Ys.NUM_DIVISION:case Ys.SEMICOLON:case Ys.DASH:case Ys.EQUALS:case Ys.COMMA:case Ys.PERIOD:case Ys.SLASH:case Ys.APOSTROPHE:case Ys.SINGLE_QUOTE:case Ys.OPEN_SQUARE_BRACKET:case Ys.BACKSLASH:case Ys.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Zs={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"},Qs=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:Zs}))},Js=e.forwardRef(Qs);"production"!==process.env.NODE_ENV&&(Js.displayName="LoadingOutlined");const el=t.createContext(void 0);"production"!==process.env.NODE_ENV&&(el.displayName="zIndexContext");const tl=100,nl={Modal:tl,Drawer:tl,Popover:tl,Popconfirm:tl,Tooltip:tl,Tour:tl},ol={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function rl(e,n){const[,o]=Ui(),r=t.useContext(el),i=function(e){return e in nl}(e);let a;if(void 0!==n)a=[n,n];else{let t=null!=r?r:0;t+=i?(r?0:o.zIndexPopupBase)+nl[e]:ol[e],a=[void 0===r?n:t,t]}if("production"!==process.env.NODE_ENV){const t=jo(e),r=o.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&t(void 0!==n||i<=r,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function il(){il=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new P(o||[]);return r(a,"_invoke",{value:O(e,n,s)}),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 p="suspendedStart",h="suspendedYield",f="executing",g="completed",m={};function v(){}function b(){}function y(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,C=w&&w(w(N([])));C&&C!==n&&o.call(C,a)&&(x=C);var E=y.prototype=v.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,i,a,s){var l=d(e[r],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==K(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function O(t,n,o){var r=p;return function(i,a){if(r===f)throw Error("Generator is already running");if(r===g){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=$(s,o);if(l){if(l===m)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===p)throw r=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=f;var c=d(t,n,o);if("normal"===c.type){if(r=o.done?g:h,c.arg===m)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=g,o.method="throw",o.arg=c.arg)}}}function $(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,$(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),m;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;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,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function M(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function N(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 r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(K(t)+" is not iterable")}return b.prototype=y,r(E,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"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,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},S(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new k(u(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,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(_),!t)for(var n in this)"t"===n.charAt(0)&&o.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 r(o,r){return s.type="throw",s.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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,m):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),m},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),_(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;_(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:N(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function al(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function sl(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){al(i,o,r,a,s,"next",e)}function s(e){al(i,o,r,a,s,"throw",e)}a(void 0)}))}}var ll,cl=J({},y),ul=cl.version,dl=cl.render,pl=cl.unmountComponentAtNode;try{Number((ul||"").split(".")[0])>=18&&(ll=cl.createRoot)}catch(e){}function hl(e){var t=cl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===K(t)&&(t.usingClientEntryPoint=e)}var fl="__rc_react_root__";function gl(e,t){ll?function(e,t){hl(!0);var n=t[fl]||ll(t);hl(!1),n.render(e),t[fl]=n}(e,t):function(e,t){dl(e,t)}(e,t)}function ml(e){return vl.apply(this,arguments)}function vl(){return(vl=sl(il().mark((function e(t){return il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[fl])||void 0===e||e.unmount(),delete t[fl]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bl(e){pl(e)}function yl(e){return xl.apply(this,arguments)}function xl(){return(xl=sl(il().mark((function e(t){return il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===ll){e.next=2;break}return e.abrupt("return",ml(t));case 2:bl(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const wl=()=>({height:0,opacity:0}),Cl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},El=e=>({height:e?e.offsetHeight:0}),Sl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,kl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:oi}-motion-collapse`,onAppearStart:wl,onEnterStart:wl,onAppearActive:Cl,onEnterActive:Cl,onLeaveStart:El,onLeaveActive:wl,onAppearEnd:Sl,onEnterEnd:Sl,onLeaveEnd:Sl,motionDeadline:500}},Ol=(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,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1};const Ml=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 _l=ea("Wave",(e=>[Ml(e)]));const Pl=`${oi}-wave-target`;function Nl(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 Ll(e){return Number.isNaN(e)?0:e}const Il=t=>{const{className:n,target:o,component:r}=t,i=e.useRef(null),[a,s]=e.useState(null),[l,c]=e.useState([]),[u,d]=e.useState(0),[p,h]=e.useState(0),[f,g]=e.useState(0),[m,v]=e.useState(0),[b,y]=e.useState(!1),x={left:u,top:p,width:f,height:m,borderRadius:l.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(o);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return Nl(t)?t:Nl(n)?n:Nl(o)?o:null}(o));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:r}=e;d(t?o.offsetLeft:Ll(-parseFloat(n))),h(t?o.offsetTop:Ll(-parseFloat(r))),g(o.offsetWidth),v(o.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>Ll(parseFloat(e)))))}if(a&&(x["--wave-color"]=a),e.useEffect((()=>{if(o){const e=ot((()=>{w(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(o)),()=>{ot.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const C=("Checkbox"===r||"Radio"===r)&&(null==o?void 0:o.classList.contains(Pl));return e.createElement(Ha,{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;yl(e).then((()=>{null==e||e.remove()}))}return!1}},((t,o)=>{let{className:r}=t;return e.createElement("div",{ref:re(i,o),className:L(n,r,{"wave-quick":C}),style:x})}))},jl=(t,n)=>{var o;const{component:r}=n;if("Checkbox"===r&&!(null===(o=t.querySelector("input"))||void 0===o?void 0:o.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==t||t.insertBefore(i,null==t?void 0:t.firstChild),gl(e.createElement(Il,Object.assign({},n,{target:t})),i)},Rl=(t,n,o)=>{const{wave:r}=e.useContext(ai),[,i,a]=Ui(),s=xi((e=>{const s=t.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${Pl}`)||s,{showEffect:c}=r||{};(c||jl)(l,{className:n,token:i,component:o,event:e,hashId:a})})),l=e.useRef();return e=>{ot.cancel(l.current),l.current=ot((()=>{s(e)}))}},Tl=e=>{const{children:n,disabled:o,component:i}=e,{getPrefixCls:s}=r(ai),l=a(null),c=s("wave"),[,u]=_l(c),d=Rl(l,L(c,u),i);if(t.useEffect((()=>{const e=l.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!$l(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[o]),!t.isValidElement(n))return null!=n?n:null;return Gs(n,{ref:ae(n)?re(n.ref,l):l})};"production"!==process.env.NODE_ENV&&(Tl.displayName="Wave");const Dl=e=>{const n=t.useContext(di);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])},zl=e.createContext(null),Al=(t,n)=>{const o=e.useContext(zl),r=e.useMemo((()=>{if(!o)return"";const{compactDirection:e,isFirstItem:r,isLastItem:i}=o,a="vertical"===e?"-vertical-":"-";return L(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:r,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===n})}),[t,n,o]);return{compactSize:null==o?void 0:o.compactSize,compactDirection:null==o?void 0:o.compactDirection,compactItemClassnames:r}},Bl=t=>{let{children:n}=t;return e.createElement(zl.Provider,{value:null},n)};var Hl=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Fl=e.createContext(void 0),Vl=/^[\u4e00-\u9fa5]{2}$/,Wl=Vl.test.bind(Vl);function Ul(e){return"danger"===e?{danger:!0}:{type:e}}function Xl(e){return"string"==typeof e}function ql(e){return"text"===e||"link"===e}function Gl(e,n){let o=!1;const r=[];return t.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(o&&n){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);o=n})),t.Children.map(r,(e=>function(e,n){if(null==e)return;const o=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Xl(e.type)&&Wl(e.props.children)?Gs(e,{children:e.props.children.split("").join(o)}):Xl(e)?Wl(e)?t.createElement("span",null,e.split("").join(o)):t.createElement("span",null,e):Xs(e)?t.createElement("span",null,e):e}(e,n)))}const Kl=c(((e,n)=>{const{className:o,style:r,children:i,prefixCls:a}=e,s=L(`${a}-icon`,o);return t.createElement("span",{ref:n,className:s,style:r},i)})),Yl=c(((e,n)=>{const{prefixCls:o,className:r,style:i,iconClassName:a}=e,s=L(`${o}-loading-icon`,r);return t.createElement(Kl,{prefixCls:o,className:s,style:i,ref:n},t.createElement(Js,{className:a}))})),Zl=()=>({width:0,opacity:0,transform:"scale(0)"}),Ql=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Jl=e=>{const{prefixCls:n,loading:o,existIcon:r,className:i,style:a}=e,s=!!o;return r?t.createElement(Yl,{prefixCls:n,className:i,style:a}):t.createElement(Ha,{visible:s,motionName:`${n}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:Zl,onAppearActive:Ql,onEnterStart:Zl,onEnterActive:Ql,onLeaveStart:Ql,onLeaveActive:Zl},((e,o)=>{let{className:r,style:s}=e;return t.createElement(Yl,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),s),ref:o,iconClassName:r})}))},ec=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),tc=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,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(o).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}},ec(`${t}-primary`,r),ec(`${t}-danger`,i)]}},nc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return $i(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},oc=e=>{var t,n,o,r,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,u=null!==(r=e.contentLineHeight)&&void 0!==r?r:Gr(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Gr(l),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Gr(c);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:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},rc=e=>{const{componentCls:t,iconCls:n,fontWeight:o}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ft(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({},Zi(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"}}}},ic=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),ac=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),sc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),lc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),cc=(e,t,n,o,r,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},ic(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),uc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},lc(e))}),dc=e=>Object.assign({},uc(e)),pc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),hc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),ic(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),cc(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},ic(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),cc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),uc(e))}),fc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),ic(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),cc(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},ic(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),cc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),uc(e))}),gc=e=>Object.assign(Object.assign({},hc(e)),{borderStyle:"dashed"}),mc=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},ic(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),pc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ic(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),pc(e))}),vc=e=>Object.assign(Object.assign(Object.assign({},ic(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),pc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},pc(e)),ic(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),bc=e=>{const{componentCls:t}=e;return{[`${t}-default`]:hc(e),[`${t}-primary`]:fc(e),[`${t}-dashed`]:gc(e),[`${t}-link`]:mc(e),[`${t}-text`]:vc(e),[`${t}-ghost`]:cc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},yc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:o,fontSize:r,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:r,lineHeight:i,height:o,padding:`${Ft(c)} ${Ft(s)}`,borderRadius:a,[`&${u}`]:{width:o,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{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}`]:ac(e)},{[`${n}${n}-round${t}`]:sc(e)}]},xc=e=>{const t=$i(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return yc(t,e.componentCls)},wc=e=>{const t=$i(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 yc(t,`${e.componentCls}-sm`)},Cc=e=>{const t=$i(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return yc(t,`${e.componentCls}-lg`)},Ec=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Sc=Ji("Button",(e=>{const t=nc(e);return[rc(t),xc(t),wc(t),Cc(t),Ec(t),bc(t),tc(t)]}),oc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function kc(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,a=i?"> *":"",s=["hover",r?"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({[s]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Oc(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function $c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},kc(e,o,t)),Oc(n,o,t))}}function Mc(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({},Mc(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const Pc=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% + ${Ft(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% + ${Ft(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var Nc=ta(["Button","compact"],(e=>{const t=nc(e);return[$c(t),_c(t),Pc(t)]}),oc),Lc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Ic=t.forwardRef(((e,n)=>{var o,i,a;const{loading:s=!1,prefixCls:c,type:f,danger:g=!1,shape:m="default",size:v,styles:b,disabled:y,className:x,rootClassName:w,children:C,icon:E,iconPosition:S="start",ghost:k=!1,block:O=!1,htmlType:$="button",classNames:M,style:_={},autoInsertSpace:P}=e,N=Lc(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),I=f||"default",{getPrefixCls:j,direction:R,button:T}=r(ai),D=null===(o=null!=P?P:null==T?void 0:T.autoInsertSpace)||void 0===o||o,z=j("btn",c),[A,B,H]=Sc(z),F=r(ci),V=null!=y?y:F,W=r(Fl),U=u((()=>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}}(s)),[s]),[X,q]=d(U.loading),[G,K]=d(!1),Y=re(n,h()),Z=1===p.count(C)&&!E&&!ql(I);l((()=>{let e=null;return U.delay>0?e=setTimeout((()=>{e=null,q(!0)}),U.delay):q(U.loading),function(){e&&(clearTimeout(e),e=null)}}),[U]),l((()=>{if(!Y||!Y.current||!D)return;const e=Y.current.textContent;Z&&Wl(e)?G||K(!0):G&&K(!1)}),[Y]);const Q=t=>{const{onClick:n}=e;X||V?t.preventDefault():null==n||n(t)};if("production"!==process.env.NODE_ENV){const e=jo("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof E&&E.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${E}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(k&&ql(I)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:J,compactItemClassnames:ee}=Al(z,R),te={large:"lg",small:"sm",middle:void 0},ne=Dl((e=>{var t,n;return null!==(n=null!==(t=null!=v?v:J)&&void 0!==t?t:W)&&void 0!==n?n:e})),oe=ne&&te[ne]||"",ie=X?"loading":E,ae=qe(N,["navigate"]),se=L(z,B,H,{[`${z}-${m}`]:"default"!==m&&m,[`${z}-${I}`]:I,[`${z}-${oe}`]:oe,[`${z}-icon-only`]:!C&&0!==C&&!!ie,[`${z}-background-ghost`]:k&&!ql(I),[`${z}-loading`]:X,[`${z}-two-chinese-chars`]:G&&D&&!X,[`${z}-block`]:O,[`${z}-dangerous`]:g,[`${z}-rtl`]:"rtl"===R,[`${z}-icon-end`]:"end"===S},ee,x,w,null==T?void 0:T.className),le=Object.assign(Object.assign({},null==T?void 0:T.style),_),ce=L(null==M?void 0:M.icon,null===(i=null==T?void 0:T.classNames)||void 0===i?void 0:i.icon),ue=Object.assign(Object.assign({},(null==b?void 0:b.icon)||{}),(null===(a=null==T?void 0:T.styles)||void 0===a?void 0:a.icon)||{}),de=E&&!X?t.createElement(Kl,{prefixCls:z,className:ce,style:ue},E):t.createElement(Jl,{existIcon:!!E,prefixCls:z,loading:X}),pe=C||0===C?Gl(C,Z&&D):null;if(void 0!==ae.href)return A(t.createElement("a",Object.assign({},ae,{className:L(se,{[`${z}-disabled`]:V}),href:V?void 0:ae.href,style:le,onClick:Q,ref:Y,tabIndex:V?-1:0}),de,pe));let he=t.createElement("button",Object.assign({},N,{type:$,className:se,style:le,onClick:Q,disabled:V,ref:Y}),de,pe,!!ee&&t.createElement(Nc,{key:"compact",prefixCls:z}));return ql(I)||(he=t.createElement(Tl,{component:"Button",disabled:X},he)),A(he)})),jc=Ic;function Rc(e){return!!(null==e?void 0:e.then)}jc.Group=t=>{const{getPrefixCls:n,direction:o}=e.useContext(ai),{prefixCls:r,size:i,className:a}=t,s=Hl(t,["prefixCls","size","className"]),l=n("btn-group",r),[,,c]=Ui();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=jo("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=L(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===o},a,c);return e.createElement(Fl.Provider,{value:i},e.createElement("div",Object.assign({},s,{className:d})))},jc.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(jc.displayName="Button");const Tc=t=>{const{type:n,children:o,prefixCls:r,buttonProps:i,close:a,autoFocus:s,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=t,p=e.useRef(!1),h=e.useRef(null),[f,g]=wi(!1),m=function(){null==a||a.apply(void 0,arguments)};e.useEffect((()=>{let e=null;return s&&(e=setTimeout((()=>{var e;null===(e=h.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return e.createElement(jc,Object.assign({},Ul(n),{onClick:e=>{if(p.current)return;if(p.current=!0,!d)return void m();let t;if(l){if(t=d(e),u&&!Rc(t))return p.current=!1,void m(e)}else if(d.length)t=d(a),p.current=!1;else if(t=d(),!Rc(t))return void m();(e=>{Rc(e)&&(g(!0),e.then((function(){g(!1,!0),m.apply(void 0,arguments),p.current=!1}),(e=>{if(g(!1,!0),p.current=!1,!(null==c?void 0:c()))return Promise.reject(e)})))})(t)},loading:f,prefixCls:r},i,{ref:h}),o)},Dc=t.createContext({}),{Provider:zc}=Dc,Ac=()=>{const{autoFocusButton:e,cancelButtonProps:n,cancelTextLocale:o,isSilent:i,mergedOkCancel:a,rootPrefixCls:s,close:l,onCancel:c,onConfirm:u}=r(Dc);return a?t.createElement(Tc,{isSilent:i,actionFn:c,close:function(){null==l||l.apply(void 0,arguments),null==u||u(!1)},autoFocus:"cancel"===e,buttonProps:n,prefixCls:`${s}-btn`},o):null},Bc=()=>{const{autoFocusButton:e,close:n,isSilent:o,okButtonProps:i,rootPrefixCls:a,okTextLocale:s,okType:l,onConfirm:c,onOk:u}=r(Dc);return t.createElement(Tc,{isSilent:o,type:l||"primary",actionFn:u,close:function(){null==n||n.apply(void 0,arguments),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:i,prefixCls:`${a}-btn`},s)};var Hc=e.createContext(null),Fc=[];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 o,r,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 s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";xt("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),o=l,r=c}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,h=e&&r&&!isNaN(r)?r:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),yt(t),{width:p,height:h}}(e):{width:0,height:0}}var Wc="rc-util-locker-".concat(Date.now()),Uc=0;function Xc(t){var n=!!t,o=at(e.useState((function(){return Uc+=1,"".concat(Wc,"_").concat(Uc)})),1)[0];Gt((function(){if(n){var e=Vc(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;xt("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else yt(o);return function(){yt(o)}}),[n,o])}var qc=function(e){return!1!==e&&(lt()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Gc=e.forwardRef((function(t,n){var o=t.open,r=t.autoLock,i=t.getContainer,a=t.debug,s=t.autoDestroy,l=void 0===s||s,c=t.children,u=at(e.useState(o),2),d=u[0],p=u[1],h=d||o;"production"!==process.env.NODE_ENV&&q(lt()||!o,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),e.useEffect((function(){(l||o)&&p(o)}),[o,l]);var f=at(e.useState((function(){return qc(i)})),2),g=f[0],m=f[1];e.useEffect((function(){var e=qc(i);m(null!=e?e:null)}));var v=function(t,n){var o=at(e.useState((function(){if(!lt())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&n&&e.setAttribute("data-debug",n),e})),1)[0],r=e.useRef(!1),i=e.useContext(Hc),a=at(e.useState(Fc),2),s=a[0],l=a[1],c=i||(r.current?void 0:function(e){l((function(t){return[e].concat(Ze(t))}))});function u(){o.parentElement||document.body.appendChild(o),r.current=!0}function d(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),r.current=!1}return Gt((function(){return t?i?i(u):u():d(),d}),[t]),Gt((function(){s.length&&(s.forEach((function(e){return e()})),l(Fc))}),[s]),[o,c]}(h&&!g,a),b=at(v,2),y=b[0],x=b[1],C=null!=g?g:y;Xc(r&&o&<()&&(C===y||C===document.body));var E=null;c&&ae(c)&&n&&(E=c.ref);var S=ie(E,n);if(!h||!lt()||void 0===g)return null;var k=!1===C||!1,O=c;return n&&(O=e.cloneElement(c,{ref:S})),e.createElement(Hc.Provider,{value:x},k?O:w(O,C))}));"production"!==process.env.NODE_ENV&&(Gc.displayName="Portal");var Kc=e.createContext({});var Yc=0,Zc=J({},e).useId,Qc=Zc?function(e){var t=Zc();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(t){var n=at(e.useState("ssr-id"),2),o=n[0],r=n[1];return e.useEffect((function(){var e=Yc;Yc+=1,r("rc_unique_".concat(e))}),[]),t||("test"===process.env.NODE_ENV?"test-id":o)};function Jc(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function eu(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}var tu=e.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),nu={width:0,height:0,overflow:"hidden",outline:"none"},ou={outline:"none"},ru=t.forwardRef((function(e,n){var o=e.prefixCls,r=e.className,i=e.style,s=e.title,l=e.ariaId,c=e.footer,d=e.closable,p=e.closeIcon,h=e.onClose,f=e.children,g=e.bodyStyle,m=e.bodyProps,v=e.modalRender,b=e.onMouseDown,y=e.onMouseUp,x=e.holderRef,w=e.visible,C=e.forceRender,E=e.width,S=e.height,k=e.classNames,O=e.styles,$=t.useContext(Kc).panel,M=ie(x,$),_=a(),P=a(),N=a();t.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=N.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===P.current?_.current.focus({preventScroll:!0}):e||t!==_.current||P.current.focus({preventScroll:!0})}}}));var j={};void 0!==E&&(j.width=E),void 0!==S&&(j.height=S);var R=c?t.createElement("div",{className:L("".concat(o,"-footer"),null==k?void 0:k.footer),style:J({},null==O?void 0:O.footer)},c):null,T=s?t.createElement("div",{className:L("".concat(o,"-header"),null==k?void 0:k.header),style:J({},null==O?void 0:O.header)},t.createElement("div",{className:"".concat(o,"-title"),id:l},s)):null,D=u((function(){return"object"===K(d)&&null!==d?d:d?{closeIcon:null!=p?p:t.createElement("span",{className:"".concat(o,"-close-x")})}:{}}),[d,p,o]),z=Us(D,!0),A="object"===K(d)&&d.disabled,B=d?t.createElement("button",I({type:"button",onClick:h,"aria-label":"Close"},z,{className:"".concat(o,"-close"),disabled:A}),D.closeIcon):null,H=t.createElement("div",{className:L("".concat(o,"-content"),null==k?void 0:k.content),style:null==O?void 0:O.content},B,T,t.createElement("div",I({className:L("".concat(o,"-body"),null==k?void 0:k.body),style:J(J({},g),null==O?void 0:O.body)},m),f),R);return t.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?l:null,"aria-modal":"true",ref:M,style:J(J({},i),j),className:L(o,r),onMouseDown:b,onMouseUp:y},t.createElement("div",{tabIndex:0,ref:_,style:nu,"aria-hidden":"true"}),t.createElement("div",{ref:N,tabIndex:-1,style:ou},t.createElement(tu,{shouldUpdate:w||C},v?v(H):H)),t.createElement("div",{tabIndex:0,ref:P,style:nu,"aria-hidden":"true"}))}));"production"!==process.env.NODE_ENV&&(ru.displayName="Panel");var iu=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.title,i=t.style,s=t.className,l=t.visible,c=t.forceRender,u=t.destroyOnClose,d=t.motionName,p=t.ariaId,h=t.onVisibleChanged,f=t.mousePosition,g=a(),m=at(e.useState(),2),v=m[0],b=m[1],y={};function x(){var e,t,n,o,r,i=(e=g.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow,n.left+=eu(r),n.top+=eu(r,!0),n);b(f&&(f.x||f.y)?"".concat(f.x-i.left,"px ").concat(f.y-i.top,"px"):"")}return v&&(y.transformOrigin=v),e.createElement(Ha,{visible:l,onVisibleChanged:h,onAppearPrepare:x,onEnterPrepare:x,forceRender:c,motionName:d,removeOnLeave:u,ref:g},(function(a,l){var c=a.className,u=a.style;return e.createElement(ru,I({},t,{ref:n,title:r,ariaId:p,prefixCls:o,holderRef:l,style:J(J(J({},u),i),y),className:L(s,c)}))}))}));iu.displayName="Content";var au=function(t){var n=t.prefixCls,o=t.style,r=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return e.createElement(Ha,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},(function(t,r){var a=t.className,l=t.style;return e.createElement("div",I({ref:r,style:J(J({},l),o),className:L("".concat(n,"-mask"),a,s)},i))}))},su=function(t){var n=t.prefixCls,o=void 0===n?"rc-dialog":n,r=t.zIndex,i=t.visible,s=void 0!==i&&i,c=t.keyboard,u=void 0===c||c,d=t.focusTriggerAfterClose,p=void 0===d||d,h=t.wrapStyle,f=t.wrapClassName,g=t.wrapProps,m=t.onClose,v=t.afterOpenChange,b=t.afterClose,y=t.transitionName,x=t.animation,w=t.closable,C=void 0===w||w,E=t.mask,S=void 0===E||E,k=t.maskTransitionName,O=t.maskAnimation,$=t.maskClosable,M=void 0===$||$,_=t.maskStyle,P=t.maskProps,N=t.rootClassName,j=t.classNames,R=t.styles;"production"!==process.env.NODE_ENV&&(["wrapStyle","bodyStyle","maskStyle"].forEach((function(e){V(!(e in t),"".concat(e," is deprecated, please use styles instead."))})),"wrapClassName"in t&&V(!1,"wrapClassName is deprecated, please use classNames instead."));var T=a(),D=a(),z=a(),A=at(e.useState(s),2),B=A[0],H=A[1],F=Qc();function W(e){null==m||m(e)}var U=a(!1),X=a(),q=null;M&&(q=function(e){U.current?U.current=!1:D.current===e.target&&W(e)}),l((function(){s&&(H(!0),ct(D.current,document.activeElement)||(T.current=document.activeElement))}),[s]),l((function(){return function(){clearTimeout(X.current)}}),[]);var G=J(J(J({zIndex:r},h),null==R?void 0:R.wrapper),{},{display:B?null:"none"});return e.createElement("div",I({className:L("".concat(o,"-root"),N)},Us(t,{data:!0})),e.createElement(au,{prefixCls:o,visible:S&&s,motionName:Jc(o,k,O),style:J(J({zIndex:r},_),null==R?void 0:R.mask),maskProps:P,className:null==j?void 0:j.mask}),e.createElement("div",I({tabIndex:-1,onKeyDown:function(e){if(u&&e.keyCode===Ys.ESC)return e.stopPropagation(),void W(e);s&&e.keyCode===Ys.TAB&&z.current.changeActive(!e.shiftKey)},className:L("".concat(o,"-wrap"),f,null==j?void 0:j.wrapper),ref:D,onClick:q,style:G},g),e.createElement(iu,I({},t,{onMouseDown:function(){clearTimeout(X.current),U.current=!0},onMouseUp:function(){X.current=setTimeout((function(){U.current=!1}))},ref:z,closable:C,ariaId:F,prefixCls:o,visible:s&&B,onClose:W,onVisibleChanged:function(e){if(e)ct(D.current,document.activeElement)||null===(t=z.current)||void 0===t||t.focus();else{if(H(!1),S&&T.current&&p){try{T.current.focus({preventScroll:!0})}catch(e){}T.current=null}B&&(null==b||b())}var t;null==v||v(e)},motionName:Jc(o,y,x)}))))},lu=function(t){var n=t.visible,o=t.getContainer,r=t.forceRender,i=t.destroyOnClose,a=void 0!==i&&i,s=t.afterClose,l=t.panelRef,c=at(e.useState(n),2),u=c[0],d=c[1],p=e.useMemo((function(){return{panel:l}}),[l]);return e.useEffect((function(){n&&d(!0)}),[n]),r||!a||u?e.createElement(Kc.Provider,{value:p},e.createElement(Gc,{open:n||r||u,autoDestroy:!1,getContainer:o,autoLock:n||u},e.createElement(su,I({},t,{destroyOnClose:a,afterClose:function(){null==s||s(),d(!1)}})))):null};lu.displayName="Dialog";var cu="RC_FORM_INTERNAL_HOOKS",uu=function(){q(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},du=e.createContext({getFieldValue:uu,getFieldsValue:uu,getFieldError:uu,getFieldWarning:uu,getFieldsError:uu,isFieldsTouched:uu,isFieldTouched:uu,isFieldValidating:uu,isFieldsValidating:uu,resetFields:uu,setFields:uu,setFieldValue:uu,setFieldsValue:uu,validateFields:uu,submit:uu,getInternalHooks:function(){return uu(),{dispatch:uu,initEntityValue:uu,registerField:uu,useSubscribe:uu,setInitialValues:uu,destroyForm:uu,setCallbacks:uu,registerWatch:uu,getFields:uu,setValidateMessages:uu,setPreserve:uu,getInitialValue:uu}}}),pu=e.createContext(null);function hu(e){return null==e?[]:Array.isArray(e)?e:[e]}function fu(){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 gu=fu();function mu(e){var t="function"==typeof Map?new Map:void 0;return mu=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(Ae())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&Te(r,n.prototype),r}(e,arguments,ze(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Te(n,e)},mu(e)}var vu=/%[sdj%]/g,bu=function(){};function yu(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 xu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(vu,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}break;default:return e}})):e}function wu(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 Cu(e,t,n){var o=0,r=e.length;!function i(a){if(a&&a.length)n(a);else{var s=o;o+=1,s<r?t(e[s],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(bu=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 Eu=function(){De(t,mu(Error));var e=He(t);function t(n,o){var r;return Ie(this,t),Z(Be(r=e.call(this,"Async Validation Error")),"errors",void 0),Z(Be(r),"fields",void 0),r.errors=n,r.fields=o,r}return Re(t)}();function Su(e,t,n,o,r){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,Ze(e[n]||[]))})),t}(e);Cu(a,n,(function(e){return o(e),e.length?i(new Eu(e,yu(e))):t(r)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return o(u),u.length?i(new Eu(u,yu(u))):t(r)};s.length||(o(u),t(r)),s.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?Cu(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,Ze(e||[])),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function ku(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function Ou(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===K(o)&&"object"===K(e[n])?e[n]=J(J({},e[n]),o):e[n]=o}return e}var $u,Mu="enum",_u=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!wu(t,i||e.type)||o.push(xu(r.messages.required,e.fullField))},Pu=/^(([^<>()\[\]\\.,;:\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,}))$/,Nu=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Lu={integer:function(e){return Lu.number(e)&&parseInt(e,10)===e},float:function(e){return Lu.number(e)&&!Lu.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"===K(e)&&!Lu.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Pu)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if($u)return $u;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}",o="[a-fA-F\\d]{1,4}",r=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(n,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(n,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(n,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(n,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(n,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:))")],i="(?:".concat(r.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(i,"$")),c=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")};c.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,p="(?:".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 $u=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Nu)}},Iu={required:_u,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(xu(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)_u(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Lu[i](t)||o.push(xu(r.messages.types[i],e.fullField,e.type)):i&&K(t)!==e.type&&o.push(xu(r.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,o,r){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&o.push(xu(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?o.push(xu(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?o.push(xu(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&o.push(xu(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[Mu]=Array.isArray(e[Mu])?e[Mu]:[],-1===e[Mu].indexOf(t)&&o.push(xu(r.messages[Mu],e.fullField,e[Mu].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(xu(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(xu(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},ju=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t,i)&&!e.required)return n();Iu.required(e,t,o,a,r,i),wu(t,i)||Iu.type(e,t,o,a,r)}n(a)},Ru={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t,"string")&&!e.required)return n();Iu.required(e,t,o,i,r,"string"),wu(t,"string")||(Iu.type(e,t,o,i,r),Iu.range(e,t,o,i,r),Iu.pattern(e,t,o,i,r),!0===e.whitespace&&Iu.whitespace(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t)&&!e.required)return n();Iu.required(e,t,o,i,r),void 0!==t&&Iu.type(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),wu(t)&&!e.required)return n();Iu.required(e,t,o,i,r),void 0!==t&&(Iu.type(e,t,o,i,r),Iu.range(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t)&&!e.required)return n();Iu.required(e,t,o,i,r),void 0!==t&&Iu.type(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t)&&!e.required)return n();Iu.required(e,t,o,i,r),wu(t)||Iu.type(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t)&&!e.required)return n();Iu.required(e,t,o,i,r),void 0!==t&&(Iu.type(e,t,o,i,r),Iu.range(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t)&&!e.required)return n();Iu.required(e,t,o,i,r),void 0!==t&&(Iu.type(e,t,o,i,r),Iu.range(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Iu.required(e,t,o,i,r,"array"),null!=t&&(Iu.type(e,t,o,i,r),Iu.range(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t)&&!e.required)return n();Iu.required(e,t,o,i,r),void 0!==t&&Iu.type(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t)&&!e.required)return n();Iu.required(e,t,o,i,r),void 0!==t&&Iu.enum(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t,"string")&&!e.required)return n();Iu.required(e,t,o,i,r),wu(t,"string")||Iu.pattern(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t,"date")&&!e.required)return n();var a;if(Iu.required(e,t,o,i,r),!wu(t,"date"))a=t instanceof Date?t:new Date(t),Iu.type(e,a,o,i,r),a&&Iu.range(e,a.getTime(),o,i,r)}n(i)},url:ju,hex:ju,email:ju,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":K(t);Iu.required(e,t,o,i,r,a),n(i)},any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(wu(t)&&!e.required)return n();Iu.required(e,t,o,i,r)}n(i)}},Tu=function(){function e(t){Ie(this,e),Z(this,"rules",null),Z(this,"_messages",gu),this.define(t)}return Re(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==K(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))}},{key:"messages",value:function(e){return e&&(this._messages=Ou(fu(),e)),this._messages}},{key:"validate",value:function(t){var n=this,o=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof r&&(i=r,r={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,o),Promise.resolve(o);if(r.messages){var a=this.messages();a===gu&&(a=fu()),Ou(a,r.messages),r.messages=a}else r.messages=this.messages();var s={};(r.keys||Object.keys(this.rules)).forEach((function(e){var r=n.rules[e],i=o[e];r.forEach((function(r){var a=r;"function"==typeof a.transform&&(o===t&&(o=J({},o)),null!=(i=o[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":K(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),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:o,field:e}))}))}));var l={};return Su(s,r,(function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==K(a.fields)&&"object"!==K(a.defaultField));function c(e,t){return J(J({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Ze(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!r.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(ku(a,o));if(r.first&&d.length)return l[a.field]=1,n(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(ku(a,o)):r.error&&(d=[r.error(a,xu(r.messages.required,a.field))]),n(d);var p={};a.defaultField&&Object.keys(t.value).map((function(e){p[e]=a.defaultField})),p=J(J({},p),t.rule.fields);var h={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];h[e]=n.map(c.bind(null,e))}));var f=new e(h);f.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),f.validate(t.value,t.rule.options||r,(function(e){var t=[];d&&d.length&&t.push.apply(t,Ze(d)),e&&e.length&&t.push.apply(t,Ze(e)),n(t.length?t:null)}))}else n(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,r);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,r)}catch(e){var d,p;null===(d=(p=console).error)||void 0===d||d.call(p,e),r.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,r=[],a={},s=0;s<e.length;s++)t=e[s],n=void 0,Array.isArray(t)?r=(n=r).concat.apply(n,Ze(t)):r.push(t);r.length?(a=yu(r),i(r,a)):i(null,o)}(e)}),o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Ru.hasOwnProperty(e.type))throw new Error(xu("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]?Ru.required:Ru[this.getType(e)]||void 0}}]),e}();Z(Tu,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ru[e]=t})),Z(Tu,"warning",bu),Z(Tu,"messages",gu),Z(Tu,"validators",Ru);var Du="'${name}' is not a valid ${type}",zu={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:Du,method:Du,array:Du,object:Du,number:Du,date:Du,boolean:Du,integer:Du,float:Du,regexp:Du,email:Du,url:Du,hex:Du},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}"}},Au=Tu;function Bu(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 Hu="CODE_LOGIC_ERROR";function Fu(e,t,n,o,r){return Vu.apply(this,arguments)}function Vu(){return Vu=sl(il().mark((function t(n,o,r,i,a){var s,l,c,u,d,p,h,f,g;return il().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(s=J({},r)).ruleIndex,Au.warning=function(){},s.validator&&(l=s.validator,s.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Hu)}}),c=null,s&&"array"===s.type&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new Au(Z({},n,[s])),d=_o(zu,i.validateMessages),u.messages(d),p=[],t.prev=10,t.next=13,Promise.resolve(u.validate(Z({},n,o),J({},i)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(p=t.t0.errors.map((function(t,n){var o=t.message,r=o===Hu?d.default:o;return e.isValidElement(r)?e.cloneElement(r,{key:"error_".concat(n)}):r})));case 18:if(p.length||!c){t.next=23;break}return t.next=21,Promise.all(o.map((function(e,t){return Fu("".concat(n,".").concat(t),e,c,i,a)})));case 21:return h=t.sent,t.abrupt("return",h.reduce((function(e,t){return[].concat(Ze(e),Ze(t))}),[]));case 23:return f=J(J({},r),{},{name:n,enum:(r.enum||[]).join(", ")},a),g=p.map((function(e){return"string"==typeof e?Bu(e,f):e})),t.abrupt("return",g);case 26:case"end":return t.stop()}}),t,null,[[10,15]])}))),Vu.apply(this,arguments)}function Wu(e,t,n,o,r,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,o=J(J({},e),{},{ruleIndex:t});return n&&(o.validator=function(e,t,o){var r=!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(){q(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));q(r=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),r&&i.then((function(){o()})).catch((function(e){o(e||" ")}))}),o})).sort((function(e,t){var n=e.warningOnly,o=e.ruleIndex,r=t.warningOnly,i=t.ruleIndex;return!!n==!!r?o-i:n?1:-1}));if(!0===r)a=new Promise(function(){var e=sl(il().mark((function e(n,r){var a,c,u;return il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,Fu(s,t,c,o,i);case 5:if(!(u=e.sent).length){e.next=9;break}return r([{errors:u,rule:c}]),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 c=l.map((function(e){return Fu(s,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return Xu.apply(this,arguments)}(c):function(e){return Uu.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Uu(){return(Uu=sl(il().mark((function e(t){return il().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,Ze(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xu(){return Xu=sl(il().mark((function e(t){var n;return il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(o){o.then((function(o){o.errors.length&&e([o]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),Xu.apply(this,arguments)}function qu(e){return hu(e)}function Gu(e,t){var n={};return t.forEach((function(t){var o=So(e,t);n=Oo(n,t,o)})),n}function Ku(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Yu(t,e,n)}))}function Yu(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 Zu(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===K(t.target)&&e in t.target?t.target[e]:t}function Qu(e,t,n){var o=e.length;if(t<0||t>=o||n<0||n>=o)return e;var r=e[t],i=t-n;return i>0?[].concat(Ze(e.slice(0,n)),[r],Ze(e.slice(n,t)),Ze(e.slice(t+1,o))):i<0?[].concat(Ze(e.slice(0,t)),Ze(e.slice(t+1,n+1)),[r],Ze(e.slice(n+1,o))):e}var Ju=["name"],ed=[];function td(e,t,n,o,r,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var nd=function(){De(n,e.Component);var t=He(n);function n(o){var r;(Ie(this,n),Z(Be(r=t.call(this,o)),"state",{resetCount:0}),Z(Be(r),"cancelRegisterFunc",null),Z(Be(r),"mounted",!1),Z(Be(r),"touched",!1),Z(Be(r),"dirty",!1),Z(Be(r),"validatePromise",void 0),Z(Be(r),"prevValidating",void 0),Z(Be(r),"errors",ed),Z(Be(r),"warnings",ed),Z(Be(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,qu(o)),r.cancelRegisterFunc=null})),Z(Be(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Ze(void 0===n?[]:n),Ze(t)):[]})),Z(Be(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),Z(Be(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Z(Be(r),"metaCache",null),Z(Be(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=J(J({},r.getMeta()),{},{destroy:e});Ct(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Z(Be(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,s=void 0===a?[]:a,l=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),p=r.getValue(c),h=t&&Ku(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Ct(d,p)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=ed,r.warnings=ed,r.triggerMetaEvent()),n.type){case"reset":if(!t||h)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=ed,r.warnings=ed,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&td(i,e,c,d,p,n))return void r.reRender();break;case"setField":var f=n.data;if(h)return"touched"in f&&(r.touched=f.touched),"validating"in f&&!("originRCField"in f)&&(r.validatePromise=f.validating?Promise.resolve([]):null),"errors"in f&&(r.errors=f.errors||ed),"warnings"in f&&(r.warnings=f.warnings||ed),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in f&&Ku(t,u,!0))return void r.reRender();if(i&&!u.length&&td(i,e,c,d,p,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(qu).some((function(e){return Ku(n.relatedFields,e)})))return void r.reRender();break;default:if(h||(!s.length||u.length||i)&&td(i,e,c,d,p,n))return void r.reRender()}!0===i&&r.reRender()})),Z(Be(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(sl(il().mark((function o(){var a,s,c,u,d,p,h;return il().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,p=r.getRules(),i&&(p=p.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||hu(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(h=Wu(t,n,p,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ed;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?ed:r;t?o.push.apply(o,Ze(i)):n.push.apply(n,Ze(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",h);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=ed,r.warnings=ed,r.triggerMetaEvent(),r.reRender()),l})),Z(Be(r),"isFieldValidating",(function(){return!!r.validatePromise})),Z(Be(r),"isFieldTouched",(function(){return r.touched})),Z(Be(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(cu).getInitialValue)(r.getNamePath())})),Z(Be(r),"getErrors",(function(){return r.errors})),Z(Be(r),"getWarnings",(function(){return r.warnings})),Z(Be(r),"isListField",(function(){return r.props.isListField})),Z(Be(r),"isList",(function(){return r.props.isList})),Z(Be(r),"isPreserve",(function(){return r.props.preserve})),Z(Be(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),Z(Be(r),"getOnlyChild",(function(t){if("function"==typeof t){var n=r.getMeta();return J(J({},r.getOnlyChild(t(r.getControlled(),n,r.props.fieldContext))),{},{isFunction:!0})}var o=B(t);return 1===o.length&&e.isValidElement(o[0])?{child:o[0],isFunction:!1}:{child:o,isFunction:!1}})),Z(Be(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return So(e||t(!0),n)})),Z(Be(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,p=r.getNamePath(),h=u.getInternalHooks,f=u.getFieldsValue,g=h(cu).dispatch,m=r.getValue(),v=c||function(e){return Z({},l,e)},b=e[o],y=void 0!==n?v(m):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){q("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=J(J({},e),y);return x[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):Zu.apply(void 0,[l].concat(n)),s&&(e=s(e,m,f(!0))),g({type:"updateValue",namePath:p,value:e}),b&&b.apply(void 0,n)},hu(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:p,triggerName:e})}})),x})),o.fieldContext)&&(0,(0,o.fieldContext.getInternalHooks)(cu).initEntityValue)(Be(r));return r}return Re(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(cu).registerField;this.cancelRegisterFunc=o(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 t,n=this.state.resetCount,o=this.props.children,r=this.getOnlyChild(o),i=r.child;return r.isFunction?t=i:e.isValidElement(i)?t=e.cloneElement(i,this.getControlled(i.props)):(q(!i,"`children` of Field is not validate ReactElement."),t=i),e.createElement(e.Fragment,{key:n},t)}}]),n}();function od(t){var n=t.name,o=wt(t,Ju),r=e.useContext(du),i=e.useContext(pu),a=void 0!==n?qu(n):void 0,s="keep";return o.isListField||(s="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===o.preserve&&o.isListField&&a.length<=1&&q(!1,"`preserve` should not apply on Form.List fields."),e.createElement(nd,I({key:s,name:a,isListField:!!i},o,{fieldContext:r}))}Z(nd,"contextType",du),Z(nd,"defaultProps",{trigger:"onChange",valuePropName:"value"});var rd="__@field_split__";function id(e){return e.map((function(e){return"".concat(K(e),":").concat(e)})).join(rd)}var ad=function(){function e(){Ie(this,e),Z(this,"kvs",new Map)}return Re(e,[{key:"set",value:function(e,t){this.kvs.set(id(e),t)}},{key:"get",value:function(e){return this.kvs.get(id(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(id(e))}},{key:"map",value:function(e){return Ze(this.kvs.entries()).map((function(t){var n=at(t,2),o=n[0],r=n[1],i=o.split(rd);return e({key:i.map((function(e){var t=at(e.match(/^([^:]*):(.*)$/),3),n=t[1],o=t[2];return"number"===n?Number(o):o})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,o=t.value;return e[n.join(".")]=o,null})),e}}]),e}(),sd=["name"],ld=Re((function e(t){var n=this;Ie(this,e),Z(this,"formHooked",!1),Z(this,"forceRootUpdate",void 0),Z(this,"subscribable",!0),Z(this,"store",{}),Z(this,"fieldEntities",[]),Z(this,"initialValues",{}),Z(this,"callbacks",{}),Z(this,"validateMessages",null),Z(this,"preserve",null),Z(this,"lastValidatePromise",null),Z(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}})),Z(this,"getInternalHooks",(function(e){return e===cu?(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}):(q(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Z(this,"useSubscribe",(function(e){n.subscribable=e})),Z(this,"prevWithoutPreserves",null),Z(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=_o(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=Oo(r,n,So(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),Z(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new ad;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),Z(this,"getInitialValue",(function(e){var t=So(n.initialValues,e);return e.length?_o(t):t})),Z(this,"setCallbacks",(function(e){n.callbacks=e})),Z(this,"setValidateMessages",(function(e){n.validateMessages=e})),Z(this,"setPreserve",(function(e){n.preserve=e})),Z(this,"watchList",[]),Z(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Z(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,o,e)}))}})),Z(this,"timeoutId",null),Z(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||q(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),Z(this,"updateStore",(function(e){n.store=e})),Z(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Z(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new ad;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Z(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=qu(e);return t.get(n)||{INVALIDATE_NAME_PATH:qu(e)}}))})),Z(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===K(e)&&(i=e.strict,r=e.filter),!0===o&&!r)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),s=[];return a.forEach((function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(r){var u="getMeta"in e?e.getMeta():null;r(u)&&s.push(c)}else s.push(c)})),Gu(n.store,s.map(qu))})),Z(this,"getFieldValue",(function(e){n.warningUnhooked();var t=qu(e);return So(n.store,t)})),Z(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:qu(e[n]),errors:[],warnings:[]}}))})),Z(this,"getFieldError",(function(e){n.warningUnhooked();var t=qu(e);return n.getFieldsError([t])[0].errors})),Z(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=qu(e);return n.getFieldsError([t])[0].warnings})),Z(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,i=t[0],a=t[1],s=!1;0===t.length?r=null:1===t.length?Array.isArray(i)?(r=i.map(qu),s=!1):(r=null,s=i):(r=i.map(qu),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!r)return s?l.every((function(e){return c(e)||e.isList()})):l.some(c);var u=new ad;r.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();r.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Ze(t),[e])}))}))}));var d=function(e){return e.some(c)},p=u.map((function(e){return e.value}));return s?p.every(d):p.some(d)})),Z(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Z(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(qu);return t.some((function(e){var t=e.getNamePath();return Ku(o,t)&&e.isFieldValidating()}))})),Z(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Z(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new ad,o=n.getFieldEntities(!0);o.forEach((function(e){var n=e.props.initialValue,o=e.getNamePath();if(void 0!==n){var r=t.get(o)||new Set;r.add({entity:e,value:n}),t.set(o,r)}}));var r;e.entities?r=e.entities:e.namePathList?(r=[],e.namePathList.forEach((function(e){var n,o=t.get(e);o&&(n=r).push.apply(n,Ze(Ze(o).map((function(e){return e.entity}))))}))):r=o,r.forEach((function(o){if(void 0!==o.props.initialValue){var r=o.getNamePath();if(void 0!==n.getInitialValue(r))q(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var i=t.get(r);if(i&&i.size>1)q(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(r);o.isListField()||e.skipExist&&void 0!==a||n.updateStore(Oo(n.store,r,Ze(i)[0].value))}}}}))})),Z(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(_o(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(qu);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Oo(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),Z(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=wt(e,sd),a=qu(r);o.push(a),"value"in i&&n.updateStore(Oo(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),Z(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=J(J({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),Z(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===So(n.store,o)&&n.updateStore(Oo(n.store,o,t))}})),Z(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Z(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var o=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(o,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(r)&&(!o||i.length>1)){var a=o?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Yu(e.getNamePath(),t)}))){var s=n.store;n.updateStore(Oo(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Z(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,o=e.value;n.updateValue(t,o);break;case"validateField":var r=e.namePath,i=e.triggerName;n.validateFields([r],{triggerName:i})}})),Z(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=J(J({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),Z(this,"triggerDependenciesUpdate",(function(e,t){var o=n.getDependencyChildrenFields(t);return o.length&&n.validateFields(o),n.notifyObservers(e,o,{type:"dependenciesUpdate",relatedFields:[t].concat(Ze(o))}),o})),Z(this,"updateValue",(function(e,t){var o=qu(e),r=n.store;n.updateStore(Oo(n.store,o,t)),n.notifyObservers(r,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var i=n.triggerDependenciesUpdate(r,o),a=n.callbacks.onValuesChange;a&&a(Gu(n.store,[o]),n.getFieldsValue());n.triggerOnFieldsChange([o].concat(Ze(i)))})),Z(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=_o(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Z(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Z(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new ad;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=qu(t);r.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){(r.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var r=n.getNamePath();n.isFieldDirty()&&r.length&&(o.push(r),e(r))}}))}(e),o})),Z(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new ad;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),r.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=r.filter((function(t){var n=t.name;return Ku(e,n)}));a.length&&o(a,r)}})),Z(this,"validateFields",(function(e,t){var o,r;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,r=t):r=e;var i=!!o,a=i?o.map(qu):[],s=[],l=String(Date.now()),c=new Set,u=r||{},d=u.recursive,p=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||Ku(a,t,d)){var o=e.validateRules(J({validateMessages:J(J({},zu),n.validateMessages)},r));s.push(o.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,o=[],r=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?r.push.apply(r,Ze(n)):o.push.apply(o,Ze(n))})),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}})))}}}));var h=function(e){var t=!1,n=e.length,o=[];return e.length?new Promise((function(r,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,o[a]=e,n>0||(t&&i(o),r(o))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=h,h.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 f=h.then((function(){return n.lastValidatePromise===h?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!==h})}));f.catch((function(e){return e}));var g=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(g),f})),Z(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 cd(t){var n=e.useRef(),o=at(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var r=new ld((function(){o({})}));n.current=r.getForm()}return[n.current]}var ud=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),dd=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],pd=function(t,n){var o=t.name,r=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=void 0===c?"form":c,d=t.validateMessages,p=t.validateTrigger,h=void 0===p?"onChange":p,f=t.onValuesChange,g=t.onFieldsChange,m=t.onFinish,v=t.onFinishFailed,b=t.clearOnDestroy,y=wt(t,dd),x=e.useRef(null),w=e.useContext(ud),C=at(cd(a),1)[0],E=C.getInternalHooks(cu),S=E.useSubscribe,k=E.setInitialValues,O=E.setCallbacks,$=E.setValidateMessages,M=E.setPreserve,_=E.destroyForm;e.useImperativeHandle(n,(function(){return J(J({},C),{},{nativeElement:x.current})})),e.useEffect((function(){return w.registerForm(o,C),function(){w.unregisterForm(o)}}),[w,C,o]),$(J(J({},w.validateMessages),d)),O({onValuesChange:f,onFieldsChange:function(e){if(w.triggerFormChange(o,e),g){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];g.apply(void 0,[e].concat(n))}},onFinish:function(e){w.triggerFormFinish(o,e),m&&m(e)},onFinishFailed:v}),M(s);var P,N=e.useRef(null);k(r,!N.current),N.current||(N.current=!0),e.useEffect((function(){return function(){return _(b)}}),[]);var L="function"==typeof l;L?P=l(C.getFieldsValue(!0),C):P=l;S(!L);var j=e.useRef();e.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==K(e)||"object"!==K(t))return!1;var n=Object.keys(e),o=Object.keys(t);return Ze(new Set([].concat(n,o))).every((function(n){var o=e[n],r=t[n];return"function"==typeof o&&"function"==typeof r||o===r}))})(j.current||[],i||[])||C.setFields(i||[]),j.current=i}),[i,C]);var R=e.useMemo((function(){return J(J({},C),{},{validateTrigger:h})}),[C,h]),T=e.createElement(pu.Provider,{value:null},e.createElement(du.Provider,{value:R},P));return!1===u?T:e.createElement(u,I({},y,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),C.submit()},onReset:function(e){var t;e.preventDefault(),C.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),T)};function hd(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var fd="production"!==process.env.NODE_ENV?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__");q(a(t).current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var gd=e.forwardRef(pd);gd.FormProvider=function(t){var n=t.validateMessages,o=t.onFormChange,r=t.onFormFinish,i=t.children,a=e.useContext(ud),s=e.useRef({});return e.createElement(ud.Provider,{value:J(J({},a),{},{validateMessages:J(J({},a.validateMessages),n),triggerFormChange:function(e,t){o&&o(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=J(J({},s.current),{},Z({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=J({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},gd.Field=od,gd.List=function(t){var n=t.name,o=t.initialValue,r=t.children,i=t.rules,a=t.validateTrigger,s=t.isListField,l=e.useContext(du),c=e.useContext(pu),u=e.useRef({keys:[],id:0}).current,d=e.useMemo((function(){var e=qu(l.prefixName)||[];return[].concat(Ze(e),Ze(qu(n)))}),[l.prefixName,n]),p=e.useMemo((function(){return J(J({},l),{},{prefixName:d})}),[l,d]),h=e.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 r?(q(!1,"Form.List only accepts function as children."),null):e.createElement(pu.Provider,{value:h},e.createElement(du.Provider,{value:p},e.createElement(od,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:o,isList:!0,isListField:null!=s?s:!!c},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(d||[])||[]},c={add:function(e,t){var n=s();t>=0&&t<=n.length?(u.keys=[].concat(Ze(u.keys.slice(0,t)),[u.id],Ze(u.keys.slice(t))),i([].concat(Ze(n.slice(0,t)),[e],Ze(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&q(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Ze(u.keys),[u.id]),i([].concat(Ze(n),[e]))),u.id+=1},remove:function(e){var t=s(),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=s();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Qu(u.keys,e,t),i(Qu(n,e,t)))}}},p=o||[];return Array.isArray(p)||(p=[],"production"!==process.env.NODE_ENV&&q(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),r(p.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}})),c,t)}))))},gd.useForm=cd,gd.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t[1],s=void 0===i?{}:i,c=function(e){return e&&!!e._init}(s)?{form:s}:s,p=c.form,h=at(d(),2),f=h[0],g=h[1],m=u((function(){return hd(f)}),[f]),v=a(m);v.current=m;var b=r(du),y=p||b,x=y&&y._init;"production"!==process.env.NODE_ENV&&q(2===t.length&&!p||x,"useWatch requires a form instance since it can not auto detect from context.");var w=qu(o),C=a(w);return C.current=w,fd(w),l((function(){if(x){var e=y.getFieldsValue,t=(0,y.getInternalHooks)(cu).registerWatch,n=function(e,t){var n=c.preserve?t:e;return"function"==typeof o?o(n):So(n,C.current)},r=t((function(e,t){var o=n(e,t),r=hd(o);v.current!==r&&(v.current=r,g(o))})),i=n(e(),e(!0));return f!==i&&g(i),r}}),[x]),f};const md=e.createContext({});"production"!==process.env.NODE_ENV&&(md.displayName="FormItemInputContext");const vd=t=>{let{children:n,status:o,override:i}=t;const a=r(md),s=u((()=>{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 e.createElement(md.Provider,{value:s},n)},bd=i(void 0),yd=e=>{const{space:n,form:o,children:r}=e;if(null==r)return null;let i=r;return o&&(i=t.createElement(vd,{override:!0,status:!0},i)),n&&(i=t.createElement(Bl,null,i)),i};function xd(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function wd(e){const{closable:n,closeIcon:o}=e||{};return t.useMemo((()=>{if(!n&&(!1===n||!1===o||null===o))return!1;if(void 0===n&&void 0===o)return null;let e={closeIcon:"boolean"!=typeof o&&null!==o?o:void 0};return n&&"object"==typeof n&&(e=Object.assign(Object.assign({},e),n)),e}),[n,o])}function Cd(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const Ed={};var Sd=function(e){if(lt()&&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 kd(e,t){return Array.isArray(e)||void 0===t?Sd(e):function(e,t){if(!Sd(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}const Od=t=>{const{prefixCls:n,className:o,style:r,size:i,shape:a}=t,s=L({[`${n}-lg`]:"large"===i,[`${n}-sm`]:"small"===i}),l=L({[`${n}-circle`]:"circle"===a,[`${n}-square`]:"square"===a,[`${n}-round`]:"round"===a}),c=e.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return e.createElement("span",{className:L(n,s,l,o),style:Object.assign(Object.assign({},c),r)})},$d=new xo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Md=e=>({height:e,lineHeight:Ft(e)}),_d=e=>Object.assign({width:e},Md(e)),Pd=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:$d,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Nd=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Md(e)),Ld=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},_d(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},_d(r)),[`${t}${t}-sm`]:Object.assign({},_d(i))}},Id=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[o]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Nd(t,s)),[`${o}-lg`]:Object.assign({},Nd(r,s)),[`${o}-sm`]:Object.assign({},Nd(i,s))}},jd=e=>Object.assign({width:e},Md(e)),Rd=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:o,borderRadiusSM:r,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},jd(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},jd(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Td=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},Dd=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Md(e)),zd=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(o).mul(2).equal(),minWidth:s(o).mul(2).equal()},Dd(o,s))},Td(e,o,n)),{[`${n}-lg`]:Object.assign({},Dd(r,s))}),Td(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Dd(i,s))}),Td(e,i,`${n}-sm`))},Ad=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:h,borderRadius:f,titleHeight:g,blockRadius:m,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},_d(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},_d(c)),[`${n}-sm`]:Object.assign({},_d(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[o]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${r}`]:{marginBlockStart:u}},[r]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:f}}},[`${t}-with-avatar ${t}-content`]:{[o]:{marginBlockStart:h,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},zd(e)),Ld(e)),Id(e)),Rd(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${o},\n ${r} > li,\n ${n},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},Pd(e))}}};var Bd=Ji("Skeleton",(e=>{const{componentCls:t,calc:n}=e,o=$i(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ad(o)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var Hd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Fd=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:Hd}))},Vd=e.forwardRef(Fd);"production"!==process.env.NODE_ENV&&(Vd.displayName="DotChartOutlined");const Wd=(e,t)=>{const{width:n,rows:o=2}=t;return Array.isArray(n)?n[e]:o-1===e?n:void 0},Ud=t=>{const{prefixCls:n,className:o,style:r,rows:i}=t,a=Ze(Array(i)).map(((n,o)=>e.createElement("li",{key:o,style:{width:Wd(o,t)}})));return e.createElement("ul",{className:L(n,o),style:r},a)},Xd=t=>{let{prefixCls:n,className:o,width:r,style:i}=t;return e.createElement("h3",{className:L(n,o),style:Object.assign({width:r},i)})};function qd(e){return e&&"object"==typeof e?e:{}}const Gd=t=>{const{prefixCls:n,loading:o,className:r,rootClassName:i,style:a,children:s,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:p}=t,{getPrefixCls:h,direction:f,skeleton:g}=e.useContext(ai),m=h("skeleton",n),[v,b,y]=Bd(m);if(o||!("loading"in t)){const t=!!l,n=!!c,o=!!u;let s,h;if(t){const t=Object.assign(Object.assign({prefixCls:`${m}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(n,o)),qd(l));s=e.createElement("div",{className:`${m}-header`},e.createElement(Od,Object.assign({},t)))}if(n||o){let r,i;if(n){const n=Object.assign(Object.assign({prefixCls:`${m}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(t,o)),qd(c));r=e.createElement(Xd,Object.assign({},n))}if(o){const o=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(t,n)),qd(u));i=e.createElement(Ud,Object.assign({},o))}h=e.createElement("div",{className:`${m}-content`},r,i)}const x=L(m,{[`${m}-with-avatar`]:t,[`${m}-active`]:d,[`${m}-rtl`]:"rtl"===f,[`${m}-round`]:p},null==g?void 0:g.className,r,i,b,y);return v(e.createElement("div",{className:x,style:Object.assign(Object.assign({},null==g?void 0:g.style),a)},s,h))}return null!=s?s:null};function Kd(){}Gd.Button=t=>{const{prefixCls:n,className:o,rootClassName:r,active:i,block:a=!1,size:s="default"}=t,{getPrefixCls:l}=e.useContext(ai),c=l("skeleton",n),[u,d,p]=Bd(c),h=qe(t,["prefixCls"]),f=L(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},o,r,d,p);return u(e.createElement("div",{className:f},e.createElement(Od,Object.assign({prefixCls:`${c}-button`,size:s},h))))},Gd.Avatar=t=>{const{prefixCls:n,className:o,rootClassName:r,active:i,shape:a="circle",size:s="default"}=t,{getPrefixCls:l}=e.useContext(ai),c=l("skeleton",n),[u,d,p]=Bd(c),h=qe(t,["prefixCls","className"]),f=L(c,`${c}-element`,{[`${c}-active`]:i},o,r,d,p);return u(e.createElement("div",{className:f},e.createElement(Od,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:s},h))))},Gd.Input=t=>{const{prefixCls:n,className:o,rootClassName:r,active:i,block:a,size:s="default"}=t,{getPrefixCls:l}=e.useContext(ai),c=l("skeleton",n),[u,d,p]=Bd(c),h=qe(t,["prefixCls"]),f=L(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},o,r,d,p);return u(e.createElement("div",{className:f},e.createElement(Od,Object.assign({prefixCls:`${c}-input`,size:s},h))))},Gd.Image=t=>{const{prefixCls:n,className:o,rootClassName:r,style:i,active:a}=t,{getPrefixCls:s}=e.useContext(ai),l=s("skeleton",n),[c,u,d]=Bd(l),p=L(l,`${l}-element`,{[`${l}-active`]:a},o,r,u,d);return c(e.createElement("div",{className:p},e.createElement("div",{className:L(`${l}-image`,o),style:i},e.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},e.createElement("title",null,"Image placeholder"),e.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))},Gd.Node=t=>{const{prefixCls:n,className:o,rootClassName:r,style:i,active:a,children:s}=t,{getPrefixCls:l}=e.useContext(ai),c=l("skeleton",n),[u,d,p]=Bd(c),h=L(c,`${c}-element`,{[`${c}-active`]:a},d,o,r,p),f=null!=s?s:e.createElement(Vd,null);return u(e.createElement("div",{className:h},e.createElement("div",{className:L(`${c}-image`,o),style:i},f)))},"production"!==process.env.NODE_ENV&&(Gd.displayName="Skeleton");const Yd=e.createContext({add:Kd,remove:Kd});const Zd=()=>{const{cancelButtonProps:e,cancelTextLocale:n,onCancel:o}=r(Dc);return t.createElement(jc,Object.assign({onClick:o},e),n)},Qd=()=>{const{confirmLoading:e,okButtonProps:n,okType:o,okTextLocale:i,onOk:a}=r(Dc);return t.createElement(jc,Object.assign({},Ul(o),{loading:e,onClick:a},n),i)};function Jd(e,n){return t.createElement("span",{className:`${e}-close-x`},n||t.createElement(js,{className:`${e}-close-icon`}))}const ep=e=>{const{okText:n,okType:o="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:s,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=Go("Modal",Xo()),p={confirmLoading:i,okButtonProps:l,cancelButtonProps:c,okTextLocale:n||(null==d?void 0:d.okText),cancelTextLocale:r||(null==d?void 0:d.cancelText),okType:o,onOk:a,onCancel:s},h=t.useMemo((()=>p),Ze(Object.values(p)));let f;return"function"==typeof u||void 0===u?(f=t.createElement(t.Fragment,null,t.createElement(Zd,null),t.createElement(Qd,null)),"function"==typeof u&&(f=u(f,{OkBtn:Qd,CancelBtn:Zd})),f=t.createElement(zc,{value:h},f)):f=u,t.createElement(ui,{disabled:!1},f)},tp=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`}}}),np=e=>({animationDuration:e,animationFillMode:"both"}),op=e=>({animationDuration:e,animationFillMode:"both"}),rp=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:Object.assign(Object.assign({},np(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},op(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},ip=new xo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ap=new xo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),sp=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[rp(o,ip,ap,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},lp=new xo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cp=new xo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),up=new xo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dp=new xo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pp=new xo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hp=new xo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),fp={"move-up":{inKeyframes:new xo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new xo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:lp,outKeyframes:cp},"move-left":{inKeyframes:up,outKeyframes:dp},"move-right":{inKeyframes:pp,outKeyframes:hp}},gp=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=fp[t];return[rp(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},mp=new xo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),vp=new xo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),bp=new xo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),yp=new xo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),xp=new xo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),wp=new xo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Cp=new xo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ep=new xo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Sp={"slide-up":{inKeyframes:mp,outKeyframes:vp},"slide-down":{inKeyframes:bp,outKeyframes:yp},"slide-left":{inKeyframes:xp,outKeyframes:wp},"slide-right":{inKeyframes:Cp,outKeyframes:Ep}},kp=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Sp[t];return[rp(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Op=new xo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$p=new xo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Mp=new xo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_p=new xo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Pp=new xo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Np=new xo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Lp={zoom:{inKeyframes:Op,outKeyframes:$p},"zoom-big":{inKeyframes:Mp,outKeyframes:_p},"zoom-big-fast":{inKeyframes:Mp,outKeyframes:_p},"zoom-left":{inKeyframes:new xo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new xo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new xo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new xo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Pp,outKeyframes:Np},"zoom-down":{inKeyframes:new xo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new xo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Ip=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Lp[t];return[rp(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function jp(e){return{position:e,inset:0}}const Rp=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},jp("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},jp("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:sp(e)}]},Tp=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Ft(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Gi(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ft(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Ft(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Zi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ft(e.borderRadiusLG)} ${Ft(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Ft(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Dp=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},zp=e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return $i(e,{modalHeaderHeight:e.calc(e.calc(o).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Ap=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ft(e.paddingMD)} ${Ft(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ft(e.padding)} ${Ft(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ft(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ft(e.paddingXS)} ${Ft(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ft(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ft(e.borderRadiusLG)} ${Ft(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ft(2*e.padding)} ${Ft(2*e.padding)} ${Ft(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var Bp=Ji("Modal",(e=>{const t=zp(e);return[Tp(t),Dp(t),Rp(t),Ip(t,"zoom")]}),Ap,{unitless:{titleLineHeight:!0}}),Hp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let Fp;const Vp=e=>{Fp={x:e.pageX,y:e.pageY},setTimeout((()=>{Fp=null}),100)};lt()&&window.document.documentElement&&document.documentElement.addEventListener("click",Vp,!0);const Wp=n=>{var o;const{getPopupContainer:r,getPrefixCls:i,direction:a,modal:s}=e.useContext(ai),l=e=>{const{onCancel:t}=n;null==t||t(e)};if("production"!==process.env.NODE_ENV){const e=jo("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((t=>{let[o,r]=t;e.deprecated(!(o in n),o,r)}))}const{prefixCls:c,className:u,rootClassName:d,open:p,wrapClassName:h,centered:f,getContainer:g,focusTriggerAfterClose:m=!0,style:v,visible:b,width:y=520,footer:x,classNames:w,styles:C,children:E,loading:S}=n,k=Hp(n,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),O=i("modal",c),$=i(),M=Ks(O),[_,P,N]=Bp(O,M),I=L(h,{[`${O}-centered`]:!!f,[`${O}-wrap-rtl`]:"rtl"===a}),j=null===x||S?null:e.createElement(ep,Object.assign({},n,{onOk:e=>{const{onOk:t}=n;null==t||t(e)},onCancel:l})),[R,T]=function(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ed;const r=wd(e),i=wd(n),a=t.useMemo((()=>Object.assign({closeIcon:t.createElement(js,null)},o)),[o]),s=t.useMemo((()=>!1!==r&&(r?Cd(a,i,r):!1!==i&&(i?Cd(a,i):!!a.closable&&a))),[r,i,a]);return t.useMemo((()=>{if(!1===s)return[!1,null];const{closeIconRender:e}=a,{closeIcon:n}=s;let o=n;if(null!=o){e&&(o=e(n));const r=Us(s,!0);Object.keys(r).length&&(o=t.isValidElement(o)?t.cloneElement(o,r):t.createElement("span",Object.assign({},r),o))}return[!0,o]}),[s,a])}(xd(n),xd(s),{closable:!0,closeIcon:e.createElement(js,{className:`${O}-close-icon`}),closeIconRender:e=>Jd(O,e)}),D=function(t){const n=e.useContext(Yd),o=e.useRef();return xi((e=>{if(e){const r=t?e.querySelector(t):e;n.add(r),o.current=r}else n.remove(o.current)}))}(`.${O}-content`),[z,A]=rl("Modal",k.zIndex);return _(e.createElement(yd,{form:!0,space:!0},e.createElement(el.Provider,{value:A},e.createElement(lu,Object.assign({width:y},k,{zIndex:z,getContainer:void 0===g?r:g,prefixCls:O,rootClassName:L(P,d,N,M),footer:j,visible:null!=p?p:b,mousePosition:null!==(o=k.mousePosition)&&void 0!==o?o:Fp,onClose:l,closable:R,closeIcon:T,focusTriggerAfterClose:m,transitionName:Ol($,"zoom",n.transitionName),maskTransitionName:Ol($,"fade",n.maskTransitionName),className:L(P,u,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),v),classNames:Object.assign(Object.assign(Object.assign({},null==s?void 0:s.classNames),w),{wrapper:L(I,null==w?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},null==s?void 0:s.styles),C),panelRef:D}),S?e.createElement(Gd,{active:!0,title:!1,paragraph:{rows:4},className:`${O}-body-skeleton`}):E))))},Up=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:o,modalConfirmIconSize:r,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(r).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Ft(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:o},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};var Xp=ta(["Modal","confirm"],(e=>{const t=zp(e);return[Up(t)]}),Ap,{order:-1e3}),qp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Gp(t){const{prefixCls:n,icon:o,okText:r,cancelText:i,confirmPrefixCls:a,type:s,okCancel:l,footer:c,locale:u}=t,d=qp(t,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if("production"!==process.env.NODE_ENV){const e=jo("Modal");"production"!==process.env.NODE_ENV&&e(!("string"==typeof o&&o.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${o}\` at https://ant.design/components/icon`)}let p=o;if(!o&&null!==o)switch(s){case"info":p=e.createElement(Bs,null);break;case"success":p=e.createElement(Ms,null);break;case"error":p=e.createElement(Ns,null);break;default:p=e.createElement(Ds,null)}const h=null!=l?l:"confirm"===s,f=null!==t.autoFocusButton&&(t.autoFocusButton||"ok"),[g]=Go("Modal"),m=u||g,v=r||(h?null==m?void 0:m.okText:null==m?void 0:m.justOkText),b=i||(null==m?void 0:m.cancelText),y=Object.assign({autoFocusButton:f,cancelTextLocale:b,okTextLocale:v,mergedOkCancel:h},d),x=e.useMemo((()=>y),Ze(Object.values(y))),w=e.createElement(e.Fragment,null,e.createElement(Ac,null),e.createElement(Bc,null)),C=void 0!==t.title&&null!==t.title,E=`${a}-body`;return e.createElement("div",{className:`${a}-body-wrapper`},e.createElement("div",{className:L(E,{[`${E}-has-title`]:C})},p,e.createElement("div",{className:`${a}-paragraph`},C&&e.createElement("span",{className:`${a}-title`},t.title),e.createElement("div",{className:`${a}-content`},t.content))),void 0===c||"function"==typeof c?e.createElement(zc,{value:x},e.createElement("div",{className:`${a}-btns`},"function"==typeof c?c(w,{OkBtn:Bc,CancelBtn:Ac}):w)):c,e.createElement(Xp,{prefixCls:n}))}const Kp=t=>{const{close:n,zIndex:o,afterClose:r,open:i,keyboard:a,centered:s,getContainer:l,maskStyle:c,direction:u,prefixCls:d,wrapClassName:p,rootPrefixCls:h,bodyStyle:f,closable:g=!1,closeIcon:m,modalRender:v,focusTriggerAfterClose:b,onConfirm:y,styles:x}=t;if("production"!==process.env.NODE_ENV){const e=jo("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((n=>{let[o,r]=n;e.deprecated(!(o in t),o,r)}))}const w=`${d}-confirm`,C=t.width||416,E=t.style||{},S=void 0===t.mask||t.mask,k=void 0!==t.maskClosable&&t.maskClosable,O=L(w,`${w}-${t.type}`,{[`${w}-rtl`]:"rtl"===u},t.className),[,$]=Ui(),M=e.useMemo((()=>void 0!==o?o:$.zIndexPopupBase+1e3),[o,$]);return e.createElement(Wp,{prefixCls:d,className:O,wrapClassName:L({[`${w}-centered`]:!!t.centered},p),onCancel:()=>{null==n||n({triggerCancel:!0}),null==y||y(!1)},open:i,title:"",footer:null,transitionName:Ol(h||"","zoom",t.transitionName),maskTransitionName:Ol(h||"","fade",t.maskTransitionName),mask:S,maskClosable:k,style:E,styles:Object.assign({body:f,mask:c},x),width:C,zIndex:M,afterClose:r,keyboard:a,centered:s,getContainer:l,closable:g,closeIcon:m,modalRender:v,focusTriggerAfterClose:b},e.createElement(Gp,Object.assign({},t,{confirmPrefixCls:w})))},Yp=t=>{const{rootPrefixCls:n,iconPrefixCls:o,direction:r,theme:i}=t;return e.createElement(ps,{prefixCls:n,iconPrefixCls:o,direction:r,theme:i},e.createElement(Kp,Object.assign({},t)))};"production"!==process.env.NODE_ENV&&(Kp.displayName="ConfirmDialog",Yp.displayName="ConfirmDialogWrapper");const Zp=[];let Qp="";function Jp(){return Qp}const eh=e=>{var n,o;const{prefixCls:i,getContainer:a,direction:s}=e,l=Xo(),c=r(ai),u=Jp()||c.getPrefixCls(),d=i||`${u}-modal`;let p=a;return!1===p&&(p=void 0,"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&Ro(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),t.createElement(Yp,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=s?s:c.direction,locale:null!==(o=null===(n=c.locale)||void 0===n?void 0:n.Modal)&&void 0!==o?o:l,getContainer:p}))};function th(e){const n=us();"production"===process.env.NODE_ENV||n.holderRender||ns("Modal");const o=document.createDocumentFragment();let r,i=Object.assign(Object.assign({},e),{close:l,open:!0});function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a;r.some((e=>null==e?void 0:e.triggerCancel))&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(Ze(r.slice(1)))));for(let e=0;e<Zp.length;e++){if(Zp[e]===l){Zp.splice(e,1);break}}yl(o)}function s(e){clearTimeout(r),r=setTimeout((()=>{const r=n.getPrefixCls(void 0,Jp()),i=n.getIconPrefixCls(),a=n.getTheme(),s=t.createElement(eh,Object.assign({},e));gl(t.createElement(ps,{prefixCls:r,iconPrefixCls:i,theme:a},n.holderRender?n.holderRender(s):s),o)}))}function l(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,s(i)}return s(i),Zp.push(l),{destroy:l,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),s(i)}}}function nh(e){return Object.assign(Object.assign({},e),{type:"warning"})}function oh(e){return Object.assign(Object.assign({},e),{type:"info"})}function rh(e){return Object.assign(Object.assign({},e),{type:"success"})}function ih(e){return Object.assign(Object.assign({},e),{type:"error"})}function ah(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var sh=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const lh=(t,n)=>{var o,{afterClose:r,config:i}=t,a=sh(t,["afterClose","config"]);const[s,l]=e.useState(!0),[c,u]=e.useState(i),{direction:d,getPrefixCls:p}=e.useContext(ai),h=p("modal"),f=p(),g=function(){var e;l(!1);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r;n.some((e=>null==e?void 0:e.triggerCancel))&&(null===(e=c.onCancel)||void 0===e||(r=e).call.apply(r,[c,()=>{}].concat(Ze(n.slice(1)))))};e.useImperativeHandle(n,(()=>({destroy:g,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(o=c.okCancel)&&void 0!==o?o:"confirm"===c.type,[v]=Go("Modal",Fo.Modal);return e.createElement(Yp,Object.assign({prefixCls:h,rootPrefixCls:f},c,{close:g,open:s,afterClose:()=>{var e;r(),null===(e=c.afterClose)||void 0===e||e.call(c)},okText:c.okText||(m?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:c.direction||d,cancelText:c.cancelText||(null==v?void 0:v.cancelText)},a))};var ch=e.forwardRef(lh);let uh=0;const dh=e.memo(e.forwardRef(((t,n)=>{const[o,r]=function(){const[t,n]=e.useState([]);return[t,e.useCallback((e=>(n((t=>[].concat(Ze(t),[e]))),()=>{n((t=>t.filter((t=>t!==e))))})),[])]}();return e.useImperativeHandle(n,(()=>({patchElement:r})),[]),e.createElement(e.Fragment,null,o)})));function ph(t){return n=>e.createElement(ps,{theme:{token:{motion:!1,zIndexPopupBase:0}}},e.createElement(t,Object.assign({},n)))}var hh=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))},fh=function(t){var n=t.className,o=t.customizeIcon,r=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l="function"==typeof o?o(r):o;return e.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==l?l:e.createElement("span",{className:L(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},gh=e.createContext(null);function mh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=e.useRef(null),o=e.useRef(null);return e.useEffect((function(){return function(){window.clearTimeout(o.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(o.current),o.current=window.setTimeout((function(){n.current=null}),t)}]}var vh=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],bh=void 0;function yh(t,n){var o=t.prefixCls,r=t.invalidate,i=t.item,a=t.renderItem,s=t.responsive,l=t.responsiveDisabled,c=t.registerSize,u=t.itemKey,d=t.className,p=t.style,h=t.children,f=t.display,g=t.order,m=t.component,v=void 0===m?"div":m,b=wt(t,vh),y=s&&!f;function x(e){c(u,e)}e.useEffect((function(){return function(){x(null)}}),[]);var w,C=a&&i!==bh?a(i):h;r||(w={opacity:y?0:1,height:y?0:bh,overflowY:y?"hidden":bh,order:s?g:bh,pointerEvents:y?"none":bh,position:y?"absolute":bh});var E={};y&&(E["aria-hidden"]=!0);var S=e.createElement(v,I({className:L(!r&&o,d),style:J(J({},w),p)},E,b,{ref:n}),C);return s&&(S=e.createElement(Xe,{onResize:function(e){x(e.offsetWidth)},disabled:l},S)),S}var xh=e.forwardRef(yh);function wh(){var t=e.useRef(null);return function(e){t.current||(t.current=[],function(e){if("undefined"==typeof MessageChannel)ot(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){C((function(){t.current.forEach((function(e){e()})),t.current=null}))}))),t.current.push(e)}}function Ch(t,n){var o=at(e.useState(n),2),r=o[0],i=o[1];return[r,xi((function(e){t((function(){i(e)}))}))]}xh.displayName="Item";var Eh=t.createContext(null),Sh=["component"],kh=["className"],Oh=["className"],$h=function(t,n){var o=e.useContext(Eh);if(!o){var r=t.component,i=void 0===r?"div":r,a=wt(t,Sh);return e.createElement(i,I({},a,{ref:n}))}var s=o.className,l=wt(o,kh),c=t.className,u=wt(t,Oh);return e.createElement(Eh.Provider,{value:null},e.createElement(xh,I({ref:n,className:L(s,c)},l,u)))},Mh=e.forwardRef($h);Mh.displayName="RawItem";var _h=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ph="responsive",Nh="invalidate";function Lh(e){return"+ ".concat(e.length," ...")}function Ih(t,n){var o=t.prefixCls,r=void 0===o?"rc-overflow":o,i=t.data,a=void 0===i?[]:i,s=t.renderItem,l=t.renderRawItem,c=t.itemKey,p=t.itemWidth,h=void 0===p?10:p,g=t.ssr,m=t.style,v=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,k=t.onVisibleChange,O=wt(t,_h),$="full"===g,M=wh(),_=at(Ch(M,null),2),P=_[0],N=_[1],j=P||0,R=at(Ch(M,new Map),2),T=R[0],D=R[1],z=at(Ch(M,0),2),A=z[0],B=z[1],H=at(Ch(M,0),2),F=H[0],V=H[1],W=at(Ch(M,0),2),U=W[0],X=W[1],q=at(d(null),2),G=q[0],K=q[1],Y=at(d(null),2),Z=Y[0],Q=Y[1],ee=e.useMemo((function(){return null===Z&&$?Number.MAX_SAFE_INTEGER:Z||0}),[Z,P]),te=at(d(!1),2),ne=te[0],oe=te[1],re="".concat(r,"-item"),ie=Math.max(A,F),ae=b===Ph,se=a.length&&ae,le=b===Nh,ce=se||"number"==typeof b&&a.length>b,ue=u((function(){var e=a;return se?e=null===P&&$?a:a.slice(0,Math.min(a.length,j/h)):"number"==typeof b&&(e=a.slice(0,b)),e}),[a,h,P,b,se]),de=u((function(){return se?a.slice(ee+1):a.slice(ue.length)}),[a,ue,se,ee]),pe=f((function(e,t){var n;return"function"==typeof c?c(e):null!==(n=c&&(null==e?void 0:e[c]))&&void 0!==n?n:t}),[c]),he=f(s||function(e){return e},[s]);function fe(e,t,n){(Z!==e||void 0!==t&&t!==G)&&(Q(e),n||(oe(e<a.length-1),null==k||k(e)),void 0!==t&&K(t))}function ge(e,t){D((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function me(e){return T.get(pe(ue[e],e))}Gt((function(){if(j&&"number"==typeof ie&&ue){var e=U,t=ue.length,n=t-1;if(!t)return void fe(0,null);for(var o=0;o<t;o+=1){var r=me(o);if($&&(r=r||0),void 0===r){fe(o-1,void 0,!0);break}if(e+=r,0===n&&e<=j||o===n-1&&e+me(n)<=j){fe(n,null);break}if(e+ie>j){fe(o-1,e-r-U+F);break}}w&&me(0)+U>j&&K(null)}}),[j,T,F,U,pe,ue]);var ve=ne&&!!de.length,be={};null!==G&&se&&(be={position:"absolute",left:G,top:0});var ye,xe={prefixCls:re,responsive:se,component:S,invalidate:le},we=l?function(t,n){var o=pe(t,n);return e.createElement(Eh.Provider,{key:o,value:J(J({},xe),{},{order:n,item:t,itemKey:o,registerSize:ge,display:n<=ee})},l(t,n))}:function(t,n){var o=pe(t,n);return e.createElement(xh,I({},xe,{order:n,key:o,item:t,renderItem:he,itemKey:o,registerSize:ge,display:n<=ee}))},Ce={order:ve?ee:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){V(t),B(F)},display:ve};if(x)x&&(ye=e.createElement(Eh.Provider,{value:J(J({},xe),Ce)},x(de)));else{var Ee=y||Lh;ye=e.createElement(xh,I({},xe,Ce),"function"==typeof Ee?Ee(de):Ee)}var Se=e.createElement(E,I({className:L(!le&&r,v),style:m,ref:n},O),ue.map(we),ce?ye:null,w&&e.createElement(xh,I({},xe,{responsive:ae,responsiveDisabled:!se,order:ee,className:"".concat(re,"-suffix"),registerSize:function(e,t){X(t)},display:!0,style:be}),w));return ae&&(Se=e.createElement(Xe,{onResize:function(e,t){N(t.clientWidth)},disabled:!se},Se)),Se}var jh=e.forwardRef(Ih);jh.displayName="Overflow",jh.Item=Mh,jh.RESPONSIVE=Ph,jh.INVALIDATE=Nh;var Rh=function(t,n){var o,r=t.prefixCls,i=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,p=t.activeDescendantId,h=t.value,f=t.maxLength,g=t.onKeyDown,m=t.onMouseDown,v=t.onChange,b=t.onPaste,y=t.onCompositionStart,x=t.onCompositionEnd,w=t.open,C=t.attrs,E=a||e.createElement("input",null),S=E,k=S.ref,O=S.props,$=O.onKeyDown,M=O.onChange,_=O.onMouseDown,P=O.onCompositionStart,N=O.onCompositionEnd,I=O.style;return V(!("maxLength"in E.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),E=e.cloneElement(E,J(J(J({type:"search"},O),{},{id:i,ref:re(n,k),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:L("".concat(r,"-selection-search-input"),null===(o=E)||void 0===o||null===(o=o.props)||void 0===o?void 0:o.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?p:void 0},C),{},{value:d?h:"",maxLength:f,readOnly:!d,unselectable:d?null:"on",style:J(J({},I),{},{opacity:d?null:0}),onKeyDown:function(e){g(e),$&&$(e)},onMouseDown:function(e){m(e),_&&_(e)},onChange:function(e){v(e),M&&M(e)},onCompositionStart:function(e){y(e),P&&P(e)},onCompositionEnd:function(e){x(e),N&&N(e)},onPaste:b}))},Th=e.forwardRef(Rh);function Dh(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"production"!==process.env.NODE_ENV&&(Th.displayName="Input");var zh="undefined"!=typeof window&&window.document&&window.document.documentElement,Ah="test"!==process.env.NODE_ENV&&zh;function Bh(e){return["string","number"].includes(K(e))}function Hh(e){var t=void 0;return e&&(Bh(e.title)?t=e.title.toString():Bh(e.label)&&(t=e.label.toString())),t}function Fh(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Vh=function(e){e.preventDefault(),e.stopPropagation()},Wh=function(t){var n,o,r=t.id,i=t.prefixCls,a=t.values,s=t.open,l=t.searchValue,c=t.autoClearSearchValue,u=t.inputRef,p=t.placeholder,h=t.disabled,f=t.mode,g=t.showSearch,m=t.autoFocus,v=t.autoComplete,b=t.activeDescendantId,y=t.tabIndex,x=t.removeIcon,w=t.maxTagCount,C=t.maxTagTextLength,E=t.maxTagPlaceholder,S=void 0===E?function(e){return"+ ".concat(e.length," ...")}:E,k=t.tagRender,O=t.onToggleOpen,$=t.onRemove,M=t.onInputChange,_=t.onInputPaste,P=t.onInputKeyDown,N=t.onInputMouseDown,I=t.onInputCompositionStart,j=t.onInputCompositionEnd,R=e.useRef(null),T=at(d(0),2),D=T[0],z=T[1],A=at(d(!1),2),B=A[0],H=A[1],F="".concat(i,"-selection"),V=s||"multiple"===f&&!1===c||"tags"===f?l:"",W="tags"===f||"multiple"===f&&!1===c||g&&(s||B);n=function(){z(R.current.scrollWidth)},o=[V],Ah?e.useLayoutEffect(n,o):e.useEffect(n,o);var U=function(t,n,o,r,i){return e.createElement("span",{title:Hh(t),className:L("".concat(F,"-item"),Z({},"".concat(F,"-item-disabled"),o))},e.createElement("span",{className:"".concat(F,"-item-content")},n),r&&e.createElement(fh,{className:"".concat(F,"-item-remove"),onMouseDown:Vh,onClick:i,customizeIcon:x},"×"))},X=function(t,n,o,r,i,a){return e.createElement("span",{onMouseDown:function(e){Vh(e),O(!s)}},k({label:n,value:t,disabled:o,closable:r,onClose:i,isMaxTag:!!a}))},q=e.createElement("div",{className:"".concat(F,"-search"),style:{width:D},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},e.createElement(Th,{ref:u,open:s,prefixCls:i,id:r,inputElement:null,disabled:h,autoFocus:m,autoComplete:v,editable:W,activeDescendantId:b,value:V,onKeyDown:P,onMouseDown:N,onChange:M,onPaste:_,onCompositionStart:I,onCompositionEnd:j,tabIndex:y,attrs:Us(t,!0)}),e.createElement("span",{ref:R,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},V," ")),G=e.createElement(jh,{prefixCls:"".concat(F,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!h&&!t,i=n;if("number"==typeof C&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>C&&(i="".concat(a.slice(0,C),"..."))}var s=function(t){t&&t.stopPropagation(),$(e)};return"function"==typeof k?X(o,i,t,r,s):U(e,i,t,r,s)},renderRest:function(e){var t="function"==typeof S?S(e):S;return"function"==typeof k?X(void 0,t,!1,!1,void 0,!0):U({title:t},t,!1)},suffix:q,itemKey:Fh,maxCount:w});return e.createElement(e.Fragment,null,G,!a.length&&!V&&e.createElement("span",{className:"".concat(F,"-placeholder")},p))},Uh=function(t){var n=t.inputElement,o=t.prefixCls,r=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,p=t.values,h=t.placeholder,f=t.tabIndex,g=t.showSearch,m=t.searchValue,v=t.activeValue,b=t.maxLength,y=t.onInputKeyDown,x=t.onInputMouseDown,w=t.onInputChange,C=t.onInputPaste,E=t.onInputCompositionStart,S=t.onInputCompositionEnd,k=t.title,O=at(e.useState(!1),2),$=O[0],M=O[1],_="combobox"===u,P=_||g,N=p[0],L=m||"";_&&v&&!$&&(L=v),e.useEffect((function(){_&&M(!1)}),[_,v]);var I=!("combobox"!==u&&!d&&!g)&&!!L,j=void 0===k?Hh(N):k,R=e.useMemo((function(){return N?null:e.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:I?{visibility:"hidden"}:void 0},h)}),[N,I,h,o]);return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(o,"-selection-search")},e.createElement(Th,{ref:i,prefixCls:o,id:r,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:P,activeDescendantId:c,value:L,onKeyDown:y,onMouseDown:x,onChange:function(e){M(!0),w(e)},onPaste:C,onCompositionStart:E,onCompositionEnd:S,tabIndex:f,attrs:Us(t,!0),maxLength:_?b:void 0})),!_&&N?e.createElement("span",{className:"".concat(o,"-selection-item"),title:j,style:I?{visibility:"hidden"}:void 0},N.label):null,R)},Xh=function(t,n){var o=a(null),r=a(!1),i=t.prefixCls,s=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,p=t.autoClearSearchValue,h=t.onSearch,f=t.onSearchSubmit,g=t.onToggleOpen,m=t.onInputKeyDown,v=t.domRef;e.useImperativeHandle(n,(function(){return{focus:function(e){o.current.focus(e)},blur:function(){o.current.blur()}}}));var b=at(mh(0),2),y=b[0],x=b[1],w=a(null),C=function(e){!1!==h(e,!0,r.current)&&g(!0)},E={inputRef:o,onInputKeyDown:function(e){var t,n=e.which;n!==Ys.UP&&n!==Ys.DOWN||e.preventDefault(),m&&m(e),n!==Ys.ENTER||"tags"!==l||r.current||s||null==f||f(e.target.value),t=n,[Ys.ESC,Ys.SHIFT,Ys.BACKSPACE,Ys.TAB,Ys.WIN_KEY,Ys.ALT,Ys.META,Ys.WIN_KEY_RIGHT,Ys.CTRL,Ys.SEMICOLON,Ys.EQUALS,Ys.CAPS_LOCK,Ys.CONTEXT_MENU,Ys.F1,Ys.F2,Ys.F3,Ys.F4,Ys.F5,Ys.F6,Ys.F7,Ys.F8,Ys.F9,Ys.F10,Ys.F11,Ys.F12].includes(t)||g(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(u&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,C(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&C(e.target.value)}},S="multiple"===l||"tags"===l?e.createElement(Wh,I({},t,E)):e.createElement(Uh,I({},t,E));return e.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:function(e){e.target!==o.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){o.current.focus()})):o.current.focus())},onMouseDown:function(e){var t=y();e.target===o.current||t||"combobox"===l&&d||e.preventDefault(),("combobox"===l||c&&t)&&s||(s&&!1!==p&&h("",!0,!1),g())}},S)},qh=e.forwardRef(Xh);function Gh(t){var n=t.prefixCls,o=t.align,r=t.arrow,i=t.arrowPos,a=r||{},s=a.className,l=a.content,c=i.x,u=void 0===c?0:c,d=i.y,p=void 0===d?0:d,h=e.useRef();if(!o||!o.points)return null;var f={position:"absolute"};if(!1!==o.autoArrow){var g=o.points[0],m=o.points[1],v=g[0],b=g[1],y=m[0],x=m[1];v!==y&&["t","b"].includes(v)?"t"===v?f.top=0:f.bottom=0:f.top=p,b!==x&&["l","r"].includes(b)?"l"===b?f.left=0:f.right=0:f.left=u}return e.createElement("div",{ref:h,className:L("".concat(n,"-arrow"),s),style:f},l)}function Kh(t){var n=t.prefixCls,o=t.open,r=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Ha,I({},a,{motionAppear:!0,visible:o,removeOnLeave:!0}),(function(t){var o=t.className;return e.createElement("div",{style:{zIndex:r},className:L("".concat(n,"-mask"),o)})})):null}"production"!==process.env.NODE_ENV&&(qh.displayName="Selector");var Yh=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(Yh.displayName="PopupContent");var Zh=e.forwardRef((function(t,n){var o=t.popup,r=t.className,i=t.prefixCls,a=t.style,s=t.target,l=t.onVisibleChanged,c=t.open,u=t.keepDom,d=t.fresh,p=t.onClick,h=t.mask,f=t.arrow,g=t.arrowPos,m=t.align,v=t.motion,b=t.maskMotion,y=t.forceRender,x=t.getPopupContainer,w=t.autoDestroy,C=t.portal,E=t.zIndex,S=t.onMouseEnter,k=t.onMouseLeave,O=t.onPointerEnter,$=t.ready,M=t.offsetX,_=t.offsetY,P=t.offsetR,N=t.offsetB,j=t.onAlign,R=t.onPrepare,T=t.stretch,D=t.targetWidth,z=t.targetHeight,A="function"==typeof o?o():o,B=c||u,H=(null==x?void 0:x.length)>0,F=at(e.useState(!x||!H),2),V=F[0],W=F[1];if(Gt((function(){!V&&H&&s&&W(!0)}),[V,H,s]),!V)return null;var U="auto",X={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if($||!c){var q,G=m.points,K=m.dynamicInset||(null===(q=m._experimental)||void 0===q?void 0:q.dynamicInset),Y=K&&"r"===G[0][1],Z=K&&"b"===G[0][0];Y?(X.right=P,X.left=U):(X.left=M,X.right=U),Z?(X.bottom=N,X.top=U):(X.top=_,X.bottom=U)}var Q={};return T&&(T.includes("height")&&z?Q.height=z:T.includes("minHeight")&&z&&(Q.minHeight=z),T.includes("width")&&D?Q.width=D:T.includes("minWidth")&&D&&(Q.minWidth=D)),c||(Q.pointerEvents="none"),e.createElement(C,{open:y||B,getContainer:x&&function(){return x(s)},autoDestroy:w},e.createElement(Kh,{prefixCls:i,open:c,zIndex:E,mask:h,motion:b}),e.createElement(Xe,{onResize:j,disabled:!c},(function(t){return e.createElement(Ha,I({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:R,onEnterPrepare:R,visible:c,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),l(e)}}),(function(o,s){var l=o.className,u=o.style,h=L(i,l,r);return e.createElement("div",{ref:re(t,n,s),className:h,style:J(J(J(J({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},X),Q),u),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:S,onMouseLeave:k,onPointerEnter:O,onClick:p},f&&e.createElement(Gh,{prefixCls:i,arrow:f,arrowPos:g,align:m}),e.createElement(Yh,{cache:!c&&!d},A))}))})))}));"production"!==process.env.NODE_ENV&&(Zh.displayName="Popup");var Qh=e.forwardRef((function(t,n){var o=t.children,r=t.getTriggerDOMNode,i=ae(o),a=e.useCallback((function(e){oe(n,r?r(e):e)}),[r]),s=ie(a,o.ref);return i?e.cloneElement(o,{ref:s}):o}));"production"!==process.env.NODE_ENV&&(Qh.displayName="TriggerWrapper");var Jh=e.createContext(null);function ef(e){return e?Array.isArray(e)?e:[e]:[]}function tf(){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 nf(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function of(e){return e.ownerDocument.defaultView}function rf(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=of(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(e){return o.includes(e)}))&&t.push(n),n=n.parentElement}return t}function af(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function sf(e){return af(parseFloat(e),0)}function lf(e,t){var n=J({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=of(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,h=e.clientWidth,f=sf(i),g=sf(a),m=sf(s),v=sf(l),b=af(Math.round(c.width/p*1e3)/1e3),y=af(Math.round(c.height/u*1e3)/1e3),x=(p-h-m-v)*b,w=(u-d-f-g)*y,C=f*y,E=g*y,S=m*b,k=v*b,O=0,$=0;if("clip"===o){var M=sf(r);O=M*b,$=M*y}var _=c.x+S-O,P=c.y+C-$,N=_+c.width+2*O-S-k-x,L=P+c.height+2*$-C-E-w;n.left=Math.max(n.left,_),n.top=Math.max(n.top,P),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,L)}})),n}function cf(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 uf(e,t){var n=at(t||[],2),o=n[0],r=n[1];return[cf(e.width,o),cf(e.height,r)]}function df(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function pf(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function hf(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}var ff=["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 gf=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gc,n=e.forwardRef((function(n,o){var r=n.prefixCls,i=void 0===r?"rc-trigger-popup":r,a=n.children,s=n.action,l=void 0===s?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,p=n.defaultPopupVisible,h=n.onPopupVisibleChange,f=n.afterPopupVisibleChange,g=n.mouseEnterDelay,m=n.mouseLeaveDelay,v=void 0===m?.1:m,b=n.focusDelay,y=n.blurDelay,x=n.mask,w=n.maskClosable,C=void 0===w||w,E=n.getPopupContainer,S=n.forceRender,k=n.autoDestroy,O=n.destroyPopupOnHide,$=n.popup,M=n.popupClassName,_=n.popupStyle,P=n.popupPlacement,N=n.builtinPlacements,I=void 0===N?{}:N,j=n.popupAlign,R=n.zIndex,T=n.stretch,D=n.getPopupClassNameFromAlign,z=n.fresh,A=n.alignPoint,B=n.onPopupClick,H=n.onPopupAlign,F=n.arrow,W=n.popupMotion,U=n.maskMotion,X=n.popupTransitionName,q=n.popupAnimation,G=n.maskTransitionName,K=n.maskAnimation,Y=n.className,Z=n.getTriggerDOMNode,Q=wt(n,ff),te=k||O||!1,ne=at(e.useState(!1),2),oe=ne[0],re=ne[1];Gt((function(){re(hh())}),[]);var ie=e.useRef({}),ae=e.useContext(Jh),se=e.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),le=Qc(),ce=at(e.useState(null),2),ue=ce[0],de=ce[1],pe=e.useRef(null),he=xi((function(e){pe.current=e,ee(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(le,e)})),fe=at(e.useState(null),2),ge=fe[0],me=fe[1],ve=e.useRef(null),be=xi((function(e){ee(e)&&ge!==e&&(me(e),ve.current=e)})),ye=e.Children.only(a),xe=(null==ye?void 0:ye.props)||{},we={},Ce=function(e,t){var n,o;return e===t||t.contains(e)||(null===(n=gs(t))||void 0===n?void 0:n.host)===e||t.contains(null===(o=gs(e))||void 0===o?void 0:o.host)},Ee=xi((function(e){var t=ge,n=Ce.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Se=nf(i,W,q,X),ke=nf(i,U,K,G),Oe=at(e.useState(p||!1),2),$e=Oe[0],Me=Oe[1],_e=null!=d?d:$e,Pe=xi((function(e){void 0===d&&Me(e)}));Gt((function(){Me(d||!1)}),[d]);var Ne=e.useRef(_e);Ne.current=_e;var Le=e.useRef([]);Le.current=[];var Ie=xi((function(e){var t;Pe(e),(null!==(t=Le.current[Le.current.length-1])&&void 0!==t?t:_e)!==e&&(Le.current.push(e),null==h||h(e))})),je=e.useRef(),Re=function(){clearTimeout(je.current)},Te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Re(),0===t?Ie(e):je.current=setTimeout((function(){Ie(e)}),1e3*t)};e.useEffect((function(){return Re}),[]);var De=at(e.useState(!1),2),ze=De[0],Ae=De[1];Gt((function(e){e&&!_e||Ae(!0)}),[_e]);var Be=at(e.useState(null),2),He=Be[0],Fe=Be[1],Ve=at(e.useState(null),2),We=Ve[0],Ue=Ve[1],qe=function(e){Ue([e.clientX,e.clientY])},Ge=function(t,n,o,r,i,a,s){var l=at(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),2),c=l[0],u=l[1],d=e.useRef(0),p=e.useMemo((function(){return n?rf(n):[]}),[n]),h=e.useRef({});t||(h.current={});var f=xi((function(){if(n&&o&&t){var e,l,c,d,f,g=n,m=g.ownerDocument,v=of(g).getComputedStyle(g),b=v.width,y=v.height,x=v.position,w=g.style.left,C=g.style.top,E=g.style.right,S=g.style.bottom,k=g.style.overflow,O=J(J({},i[r]),a),$=m.createElement("div");if(null===(e=g.parentElement)||void 0===e||e.appendChild($),$.style.left="".concat(g.offsetLeft,"px"),$.style.top="".concat(g.offsetTop,"px"),$.style.position=x,$.style.height="".concat(g.offsetHeight,"px"),$.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(o))f={x:o[0],y:o[1],width:0,height:0};else{var M,_,P=o.getBoundingClientRect();P.x=null!==(M=P.x)&&void 0!==M?M:P.left,P.y=null!==(_=P.y)&&void 0!==_?_:P.top,f={x:P.x,y:P.y,width:P.width,height:P.height}}var N=g.getBoundingClientRect();N.x=null!==(l=N.x)&&void 0!==l?l:N.left,N.y=null!==(c=N.y)&&void 0!==c?c:N.top;var L=m.documentElement,I=L.clientWidth,j=L.clientHeight,R=L.scrollWidth,T=L.scrollHeight,D=L.scrollTop,z=L.scrollLeft,A=N.height,B=N.width,H=f.height,F=f.width,V={left:0,top:0,right:I,bottom:j},W={left:-z,top:-D,right:R-z,bottom:T-D},U=O.htmlRegion,X="visible",q="visibleFirst";"scroll"!==U&&U!==q&&(U=X);var G=U===q,K=lf(W,p),Y=lf(V,p),Z=U===X?Y:K,Q=G?Y:Z;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=k,null===(d=g.parentElement)||void 0===d||d.removeChild($);var ne=af(Math.round(B/parseFloat(b)*1e3)/1e3),oe=af(Math.round(A/parseFloat(y)*1e3)/1e3);if(0===ne||0===oe||ee(o)&&!$l(o))return;var re=O.offset,ie=O.targetOffset,ae=at(uf(N,re),2),se=ae[0],le=ae[1],ce=at(uf(f,ie),2),ue=ce[0],de=ce[1];f.x-=ue,f.y-=de;var pe=at(O.points||[],2),he=pe[0],fe=df(pe[1]),ge=df(he),me=pf(f,fe),ve=pf(N,ge),be=J({},O),ye=me.x-ve.x+se,xe=me.y-ve.y+le;function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z,o=N.x+e,r=N.y+t,i=o+B,a=r+A,s=Math.max(o,n.left),l=Math.max(r,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var we,Ce,Ee,Se,ke=ft(ye,xe),Oe=ft(ye,xe,Y),$e=pf(f,["t","l"]),Me=pf(N,["t","l"]),_e=pf(f,["b","r"]),Pe=pf(N,["b","r"]),Ne=O.overflow||{},Le=Ne.adjustX,Ie=Ne.adjustY,je=Ne.shiftX,Re=Ne.shiftY,Te=function(e){return"boolean"==typeof e?e:e>=0};function gt(){we=N.y+xe,Ce=we+A,Ee=N.x+ye,Se=Ee+B}gt();var De=Te(Ie),ze=ge[0]===fe[0];if(De&&"t"===ge[0]&&(Ce>Q.bottom||h.current.bt)){var Ae=xe;ze?Ae-=A-H:Ae=$e.y-Pe.y-le;var Be=ft(ye,Ae),He=ft(ye,Ae,Y);Be>ke||Be===ke&&(!G||He>=Oe)?(h.current.bt=!0,xe=Ae,le=-le,be.points=[hf(ge,0),hf(fe,0)]):h.current.bt=!1}if(De&&"b"===ge[0]&&(we<Q.top||h.current.tb)){var Fe=xe;ze?Fe+=A-H:Fe=_e.y-Me.y-le;var Ve=ft(ye,Fe),We=ft(ye,Fe,Y);Ve>ke||Ve===ke&&(!G||We>=Oe)?(h.current.tb=!0,xe=Fe,le=-le,be.points=[hf(ge,0),hf(fe,0)]):h.current.tb=!1}var Ue=Te(Le),Xe=ge[1]===fe[1];if(Ue&&"l"===ge[1]&&(Se>Q.right||h.current.rl)){var qe=ye;Xe?qe-=B-F:qe=$e.x-Pe.x-se;var Ge=ft(qe,xe),Ke=ft(qe,xe,Y);Ge>ke||Ge===ke&&(!G||Ke>=Oe)?(h.current.rl=!0,ye=qe,se=-se,be.points=[hf(ge,1),hf(fe,1)]):h.current.rl=!1}if(Ue&&"r"===ge[1]&&(Ee<Q.left||h.current.lr)){var Ye=ye;Xe?Ye+=B-F:Ye=_e.x-Me.x-se;var Ze=ft(Ye,xe),Qe=ft(Ye,xe,Y);Ze>ke||Ze===ke&&(!G||Qe>=Oe)?(h.current.lr=!0,ye=Ye,se=-se,be.points=[hf(ge,1),hf(fe,1)]):h.current.lr=!1}gt();var Je=!0===je?0:je;"number"==typeof Je&&(Ee<Y.left&&(ye-=Ee-Y.left-se,f.x+F<Y.left+Je&&(ye+=f.x-Y.left+F-Je)),Se>Y.right&&(ye-=Se-Y.right-se,f.x>Y.right-Je&&(ye+=f.x-Y.right+Je)));var et=!0===Re?0:Re;"number"==typeof et&&(we<Y.top&&(xe-=we-Y.top-le,f.y+H<Y.top+et&&(xe+=f.y-Y.top+H-et)),Ce>Y.bottom&&(xe-=Ce-Y.bottom-le,f.y>Y.bottom-et&&(xe+=f.y-Y.bottom+et)));var tt=N.x+ye,nt=tt+B,ot=N.y+xe,rt=ot+A,it=f.x,st=it+F,lt=f.y,ct=lt+H,ut=(Math.max(tt,it)+Math.min(nt,st))/2-tt,dt=(Math.max(ot,lt)+Math.min(rt,ct))/2-ot;null==s||s(n,be);var pt=te.right-N.x-(ye+N.width),ht=te.bottom-N.y-(xe+N.height);1===ne&&(ye=Math.round(ye),pt=Math.round(pt)),1===oe&&(xe=Math.round(xe),ht=Math.round(ht)),u({ready:!0,offsetX:ye/ne,offsetY:xe/oe,offsetR:pt/ne,offsetB:ht/oe,arrowX:ut/ne,arrowY:dt/oe,scaleX:ne,scaleY:oe,align:be})}})),g=function(){u((function(e){return J(J({},e),{},{ready:!1})}))};return Gt(g,[r]),Gt((function(){t||g()}),[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&f()}))}]}(_e,ue,A&&null!==We?We:ge,P,I,j,H),Ke=at(Ge,11),Ye=Ke[0],Qe=Ke[1],Je=Ke[2],et=Ke[3],tt=Ke[4],nt=Ke[5],ot=Ke[6],rt=Ke[7],it=Ke[8],st=Ke[9],lt=Ke[10],ct=function(t,n,o,r){return e.useMemo((function(){var e=ef(null!=o?o:n),i=ef(null!=r?r:n),a=new Set(e),s=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[t,n,o,r])}(oe,l,c,u),ut=at(ct,2),dt=ut[0],pt=ut[1],ht=dt.has("click"),ft=pt.has("click")||pt.has("contextMenu"),gt=xi((function(){ze||lt()}));!function(e,t,n,o,r){Gt((function(){if(e&&t&&n){var i=n,a=rf(t),s=rf(i),l=of(i),c=new Set([l].concat(Ze(a),Ze(s)));function u(){o(),r()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),o(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(_e,ge,ue,gt,(function(){Ne.current&&A&&ft&&Te(!1)})),Gt((function(){gt()}),[We,P]),Gt((function(){!_e||null!=I&&I[P]||gt()}),[JSON.stringify(j)]);var mt=e.useMemo((function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(tf(null===(s=e[l])||void 0===s?void 0:s.points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(I,i,st,A);return L(e,null==D?void 0:D(st))}),[st,D,I,i,A]);e.useImperativeHandle(o,(function(){return{nativeElement:ve.current,popupElement:pe.current,forceAlign:gt}}));var vt=at(e.useState(0),2),bt=vt[0],yt=vt[1],xt=at(e.useState(0),2),Ct=xt[0],Et=xt[1],St=function(){if(T&&ge){var e=ge.getBoundingClientRect();yt(e.width),Et(e.height)}};function kt(e,t,n,o){we[e]=function(r){var i;null==o||o(r),Te(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=xe[e])||void 0===i||i.call.apply(i,[xe,r].concat(s))}}Gt((function(){He&&(lt(),He(),Fe(null))}),[He]),(ht||ft)&&(we.onClick=function(e){var t;Ne.current&&ft?Te(!1):!Ne.current&&ht&&(qe(e),Te(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=xe.onClick)||void 0===t||t.call.apply(t,[xe,e].concat(o))}),function(t,n,o,r,i,a,s,l){var c=e.useRef(t);c.current=t,e.useEffect((function(){if(n&&r&&(!i||a)){var e=function(e){var t;c.current&&!s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&l(!1)},t=of(r);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var u,d,p=gs(o);return p&&(p.addEventListener("mousedown",e,!0),p.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&V((null==o||null===(u=o.getRootNode)||void 0===u?void 0:u.call(o))===(null===(d=r.getRootNode)||void 0===d?void 0:d.call(r)),"trigger element and popup element should in same shadow root."),function(){t.removeEventListener("mousedown",e,!0),t.removeEventListener("contextmenu",e,!0),p&&(p.removeEventListener("mousedown",e,!0),p.removeEventListener("contextmenu",e,!0))}}}),[n,o,r,i,a])}(_e,ft,ge,ue,x,C,Ee,Te);var Ot,$t,Mt=dt.has("hover"),_t=pt.has("hover");Mt&&(kt("onMouseEnter",!0,g,(function(e){qe(e)})),kt("onPointerEnter",!0,g,(function(e){qe(e)})),Ot=function(e){(_e||ze)&&null!=ue&&ue.contains(e.target)&&Te(!0,g)},A&&(we.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),_t&&(kt("onMouseLeave",!1,v),kt("onPointerLeave",!1,v),$t=function(){Te(!1,v)}),dt.has("focus")&&kt("onFocus",!0,b),pt.has("focus")&&kt("onBlur",!1,y),dt.has("contextMenu")&&(we.onContextMenu=function(e){var t;Ne.current&&pt.has("contextMenu")?Te(!1):(qe(e),Te(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=xe.onContextMenu)||void 0===t||t.call.apply(t,[xe,e].concat(o))}),Y&&(we.className=L(xe.className,Y));var Pt=J(J({},xe),we),Nt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Q[e]&&(Nt[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=Pt[e])||void 0===t||t.call.apply(t,[Pt].concat(o)),Q[e].apply(Q,o)})}));var Lt=e.cloneElement(ye,J(J({},Pt),Nt)),It={x:nt,y:ot},jt=F?J({},!0!==F?F:{}):null;return e.createElement(e.Fragment,null,e.createElement(Xe,{disabled:!_e,ref:be,onResize:function(){St(),gt()}},e.createElement(Qh,{getTriggerDOMNode:Z},Lt)),e.createElement(Jh.Provider,{value:se},e.createElement(Zh,{portal:t,ref:he,prefixCls:i,popup:$,className:L(M,mt),style:_,target:ge,onMouseEnter:Ot,onMouseLeave:$t,onPointerEnter:Ot,zIndex:R,open:_e,keepDom:ze,fresh:z,onClick:B,mask:x,motion:Se,maskMotion:ke,onVisibleChanged:function(e){Ae(!1),lt(),null==f||f(e)},onPrepare:function(){return new Promise((function(e){St(),Fe((function(){return e}))}))},forceRender:S,autoDestroy:te,getPopupContainer:E,align:st,arrow:jt,arrowPos:It,ready:Ye,offsetX:Qe,offsetY:Je,offsetR:et,offsetB:tt,onAlign:gt,stretch:T,targetWidth:bt/rt,targetHeight:Ct/it})))}));return"production"!==process.env.NODE_ENV&&(n.displayName="Trigger"),n}(Gc),mf=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],vf=function(t,n){var o=t.prefixCls;t.disabled;var r=t.visible,i=t.children,a=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,p=void 0===d?"ltr":d,h=t.placement,f=t.builtinPlacements,g=t.dropdownMatchSelectWidth,m=t.dropdownRender,v=t.dropdownAlign,b=t.getPopupContainer,y=t.empty,x=t.getTriggerDOMNode,w=t.onPopupVisibleChange,C=t.onPopupMouseEnter,E=wt(t,mf),S="".concat(o,"-dropdown"),k=a;m&&(k=m(a));var O=e.useMemo((function(){return f||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(g)}),[f,g]),$=s?"".concat(S,"-").concat(s):l,M="number"==typeof g,_=e.useMemo((function(){return M?null:!1===g?"minWidth":"width"}),[g,M]),P=c;M&&(P=J(J({},P),{},{width:g}));var N=e.useRef(null);return e.useImperativeHandle(n,(function(){return{getPopupElement:function(){var e;return null===(e=N.current)||void 0===e?void 0:e.popupElement}}})),e.createElement(gf,I({},E,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:h||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:S,popupTransitionName:$,popup:e.createElement("div",{onMouseEnter:C},k),ref:N,stretch:_,popupAlign:v,popupVisible:r,getPopupContainer:b,popupClassName:L(u,Z({},"".concat(S,"-empty"),y)),popupStyle:P,getTriggerDOMNode:x,onPopupVisibleChange:w}),i)},bf=e.forwardRef(vf);function yf(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function xf(e){return void 0!==e&&!Number.isNaN(e)}function wf(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function Cf(e){var t=J({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return q(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}"production"!==process.env.NODE_ENV&&(bf.displayName="SelectTrigger");var Ef=e.createContext(null);function Sf(t){var n=t.visible,o=t.values;if(!n)return null;return e.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(o.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(K(t))?t:n})).join(", ")),o.length>50?", ...":null)}var kf=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Of=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],$f=function(e){return"tags"===e||"multiple"===e},Mf=e.forwardRef((function(n,o){var r,i=n.id,a=n.prefixCls,s=n.className,l=n.showSearch,c=n.tagRender,u=n.direction,d=n.omitDomProps,p=n.displayValues,h=n.onDisplayValuesChange,f=n.emptyOptions,g=n.notFoundContent,m=void 0===g?"Not Found":g,v=n.onClear,b=n.mode,y=n.disabled,x=n.loading,w=n.getInputElement,C=n.getRawInputElement,E=n.open,S=n.defaultOpen,k=n.onDropdownVisibleChange,O=n.activeValue,$=n.onActiveValueChange,M=n.activeDescendantId,_=n.searchValue,P=n.autoClearSearchValue,N=n.onSearch,j=n.onSearchSplit,R=n.tokenSeparators,T=n.allowClear,D=n.suffixIcon,z=n.clearIcon,A=n.OptionList,B=n.animation,H=n.transitionName,F=n.dropdownStyle,V=n.dropdownClassName,W=n.dropdownMatchSelectWidth,U=n.dropdownRender,X=n.dropdownAlign,q=n.placement,G=n.builtinPlacements,Y=n.getPopupContainer,Q=n.showAction,ee=void 0===Q?[]:Q,te=n.onFocus,ne=n.onBlur,oe=n.onKeyUp,re=n.onKeyDown,ae=n.onMouseDown,se=wt(n,kf),le=$f(b),ce=(void 0!==l?l:le)||"combobox"===b,ue=J({},se);Of.forEach((function(e){delete ue[e]})),null==d||d.forEach((function(e){delete ue[e]}));var de=at(e.useState(!1),2),pe=de[0],he=de[1];e.useEffect((function(){he(hh())}),[]);var fe=e.useRef(null),ge=e.useRef(null),me=e.useRef(null),ve=e.useRef(null),be=e.useRef(null),ye=e.useRef(!1),xe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=at(e.useState(!1),2),o=n[0],r=n[1],i=e.useRef(null),a=function(){window.clearTimeout(i.current)};return e.useEffect((function(){return a}),[]),[o,function(e,n){a(),i.current=window.setTimeout((function(){r(e),n&&n()}),t)},a]}(),we=at(xe,3),Ce=we[0],Ee=we[1],Se=we[2];e.useImperativeHandle(o,(function(){var e,t;return{focus:null===(e=ve.current)||void 0===e?void 0:e.focus,blur:null===(t=ve.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=be.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:fe.current||ge.current}}));var ke=e.useMemo((function(){var e;if("combobox"!==b)return _;var t=null===(e=p[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[_,b,p]),Oe="combobox"===b&&"function"==typeof w&&w()||null,$e="function"==typeof C&&C(),Me=ie(ge,null==$e||null===(r=$e.props)||void 0===r?void 0:r.ref),_e=at(e.useState(!1),2),Pe=_e[0],Ne=_e[1];Gt((function(){Ne(!0)}),[]);var Le=at(Ei(!1,{defaultValue:S,value:E}),2),Ie=Le[0],je=Le[1],Re=!!Pe&&Ie,Te=!m&&f;(y||Te&&Re&&"combobox"===b)&&(Re=!1);var De=!Te&&Re,ze=e.useCallback((function(e){var t=void 0!==e?e:!Re;y||(je(t),Re!==t&&(null==k||k(t)))}),[y,Re,je,k]),Ae=e.useMemo((function(){return(R||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[R]),Be=e.useContext(Ef)||{},He=Be.maxCount,Fe=Be.rawValues,Ve=function(e,t,n){if(!(le&&xf(He)&&(null==Fe?void 0:Fe.size)>=He)){var o=!0,r=e;null==$||$(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=Eo(n),i=r[0],a=r.slice(1);if(!i)return[t];var s=t.split(i);return o=o||s.length>1,s.reduce((function(t,n){return[].concat(Ze(t),Ze(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?void 0!==n?r.slice(0,n):r:null}(e,R,xf(He)?He-Fe.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(r="",null==j||j(a),ze(!1),o=!1),N&&ke!==r&&N(r,{source:t?"typing":"effect"}),o}};e.useEffect((function(){Re||le||"combobox"===b||Ve("",!1,!1)}),[Re]),e.useEffect((function(){Ie&&y&&je(!1),y&&!ye.current&&Ee(!1)}),[y]);var We=at(mh(),2),Ue=We[0],Xe=We[1],qe=e.useRef(!1),Ge=e.useRef(!1),Ke=[];e.useEffect((function(){return function(){Ke.forEach((function(e){return clearTimeout(e)})),Ke.splice(0,Ke.length)}}),[]);var Ye,Qe=at(e.useState({}),2)[1];$e&&(Ye=function(e){ze(e)}),function(t,n,o,r){var i=e.useRef(null);i.current={open:n,triggerOpen:o,customizedTrigger:r},e.useEffect((function(){function e(e){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),i.current.open&&t().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}((function(){var e;return[fe.current,null===(e=me.current)||void 0===e?void 0:e.getPopupElement()]}),De,ze,!!$e);var Je,et=e.useMemo((function(){return J(J({},n),{},{notFoundContent:m,open:Re,triggerOpen:De,id:i,showSearch:ce,multiple:le,toggleOpen:ze})}),[n,m,De,Re,i,ce,le,ze]),tt=!!D||x;tt&&(Je=e.createElement(fh,{className:L("".concat(a,"-arrow"),Z({},"".concat(a,"-arrow-loading"),x)),customizeIcon:D,customizeIconProps:{loading:x,searchValue:ke,open:Re,focused:Ce,showSearch:ce}}));var nt,ot=function(e,n,o,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=t.useMemo((function(){return"object"===K(r)?r.clearIcon:i||void 0}),[r,i]);return{allowClear:t.useMemo((function(){return!(a||!r||!o.length&&!s||"combobox"===l&&""===s)}),[r,a,o.length,s,l]),clearIcon:t.createElement(fh,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:c},"×")}}(a,(function(){var e;null==v||v(),null===(e=ve.current)||void 0===e||e.focus(),h([],{type:"clear",values:p}),Ve("",!1,!1)}),p,T,z,y,ke,b),rt=ot.allowClear,it=ot.clearIcon,st=e.createElement(A,{ref:be}),lt=L(a,s,Z(Z(Z(Z(Z(Z(Z(Z(Z(Z({},"".concat(a,"-focused"),Ce),"".concat(a,"-multiple"),le),"".concat(a,"-single"),!le),"".concat(a,"-allow-clear"),T),"".concat(a,"-show-arrow"),tt),"".concat(a,"-disabled"),y),"".concat(a,"-loading"),x),"".concat(a,"-open"),Re),"".concat(a,"-customize-input"),Oe),"".concat(a,"-show-search"),ce)),ct=e.createElement(bf,{ref:me,disabled:y,prefixCls:a,visible:De,popupElement:st,animation:B,transitionName:H,dropdownStyle:F,dropdownClassName:V,direction:u,dropdownMatchSelectWidth:W,dropdownRender:U,dropdownAlign:X,placement:q,builtinPlacements:G,getPopupContainer:Y,empty:f,getTriggerDOMNode:function(e){return ge.current||e},onPopupVisibleChange:Ye,onPopupMouseEnter:function(){Qe({})}},$e?e.cloneElement($e,{ref:Me}):e.createElement(qh,I({},n,{domRef:ge,prefixCls:a,inputElement:Oe,ref:ve,id:i,showSearch:ce,autoClearSearchValue:P,mode:b,activeDescendantId:M,tagRender:c,values:p,open:Re,onToggleOpen:ze,activeValue:O,searchValue:ke,onSearch:Ve,onSearchSubmit:function(e){e&&e.trim()&&N(e,{source:"submit"})},onRemove:function(e){var t=p.filter((function(t){return t!==e}));h(t,{type:"remove",values:[e]})},tokenWithEnter:Ae})));return nt=$e?ct:e.createElement("div",I({className:lt},ue,{ref:fe,onMouseDown:function(e){var t,n=e.target,o=null===(t=me.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=Ke.indexOf(r);-1!==t&&Ke.splice(t,1),Se(),pe||o.contains(document.activeElement)||null===(e=ve.current)||void 0===e||e.focus()}));Ke.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null==ae||ae.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ue(),o=e.key,r="Enter"===o;if(r&&("combobox"!==b&&e.preventDefault(),Re||ze(!0)),Xe(!!ke),"Backspace"===o&&!n&&le&&!ke&&p.length){for(var i=Ze(p),a=null,s=i.length-1;s>=0;s-=1){var l=i[s];if(!l.disabled){i.splice(s,1),a=l;break}}a&&h(i,{type:"remove",values:[a]})}for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];!Re||r&&qe.current||null===(t=be.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u)),r&&(qe.current=!0),null==re||re.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;Re&&(null===(r=be.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),"Enter"===e.key&&(qe.current=!1),null==oe||oe.apply(void 0,[e].concat(n))},onFocus:function(){Ee(!0),y||(te&&!Ge.current&&te.apply(void 0,arguments),ee.includes("focus")&&ze(!0)),Ge.current=!0},onBlur:function(){ye.current=!0,Ee(!1,(function(){Ge.current=!1,ye.current=!1,ze(!1)})),y||(ke&&("tags"===b?N(ke,{source:"submit"}):"multiple"===b&&N("",{source:"blur"})),ne&&ne.apply(void 0,arguments))}}),e.createElement(Sf,{visible:Ce&&!Re,values:p}),ct,Je,rt&&it),e.createElement(gh.Provider,{value:et},nt)}));"production"!==process.env.NODE_ENV&&(Mf.displayName="BaseSelect");var _f=function(){return null};_f.isSelectOptGroup=!0;var Pf=function(){return null};Pf.isSelectOption=!0;var Nf=e.forwardRef((function(t,n){var o=t.height,r=t.offsetY,i=t.offsetX,a=t.children,s=t.prefixCls,l=t.onInnerResize,c=t.innerProps,u=t.rtl,d=t.extra,p={},h={display:"flex",flexDirection:"column"};return void 0!==r&&(p={height:o,position:"relative",overflow:"hidden"},h=J(J({},h),{},Z(Z(Z(Z(Z({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),e.createElement("div",{style:p},e.createElement(Xe,{onResize:function(e){e.offsetHeight&&l&&l()}},e.createElement("div",I({style:h,className:L(Z({},"".concat(s,"-holder-inner"),s)),ref:n},c),a,d)))}));function Lf(t){var n=t.children,o=t.setRef,r=e.useCallback((function(e){o(e)}),[]);return e.cloneElement(n,{ref:r})}function If(t,n,o){var r=at(e.useState(t),2),i=r[0],a=r[1],s=at(e.useState(null),2),l=s[0],c=s[1];return e.useEffect((function(){var e=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var p=l(o[d]);if(p!==l(r[d])){c=d,u=u||p!==l(r[d+1]);break}}return null===c?null:{index:c,multiple:u}}(i||[],t||[],n);void 0!==(null==e?void 0:e.index)&&c(t[e.index]),a(t)}),[t]),[l]}Nf.displayName="Filler";var jf="object"===("undefined"==typeof navigator?"undefined":K(navigator))&&/Firefox/i.test(navigator.userAgent),Rf=function(e,t,n,o){var r=a(!1),i=a(null);var s=a({top:e,bottom:t,left:n,right:o});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&o?(clearTimeout(i.current),r.current=!1):o&&!r.current||(clearTimeout(i.current),r.current=!0,i.current=setTimeout((function(){r.current=!1}),50)),!r.current&&o}};function Tf(e,t,n,o,r,i,s){var l=a(0),c=a(null),u=a(null),d=a(!1),p=Rf(t,n,o,r);var h=a(null),f=a(null);return[function(t){if(e){ot.cancel(f.current),f.current=ot((function(){h.current=null}),2);var n=t.deltaX,o=t.deltaY,r=t.shiftKey,a=n,g=o;("sx"===h.current||!h.current&&r&&o&&!n)&&(a=o,g=0,h.current="sx");var m=Math.abs(a),v=Math.abs(g);null===h.current&&(h.current=i&&m>v?"x":"y"),"y"===h.current?function(e,t){ot.cancel(c.current),l.current+=t,u.current=t,p(!1,t)||(jf||e.preventDefault(),c.current=ot((function(){var e=d.current?10:1;s(l.current*e),l.current=0})))}(t,g):function(e,t){s(t,!0),jf||e.preventDefault()}(t,a)}},function(t){e&&(d.current=t.detail===u.current)}]}var Df=function(){function e(){Ie(this,e),Z(this,"maps",void 0),Z(this,"id",0),this.maps=Object.create(null)}return Re(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var zf=14/15;var Af=10;function Bf(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var Hf=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.rtl,i=t.scrollOffset,a=t.scrollRange,s=t.onStartMove,l=t.onStopMove,c=t.onScroll,u=t.horizontal,d=t.spinSize,p=t.containerSize,h=t.style,f=t.thumbStyle,g=at(e.useState(!1),2),m=g[0],v=g[1],b=at(e.useState(null),2),y=b[0],x=b[1],w=at(e.useState(null),2),C=w[0],E=w[1],S=!r,k=e.useRef(),O=e.useRef(),$=at(e.useState(!1),2),M=$[0],_=$[1],P=e.useRef(),N=function(){clearTimeout(P.current),_(!0),P.current=setTimeout((function(){_(!1)}),3e3)},I=a-p||0,j=p-d||0,R=e.useMemo((function(){return 0===i||0===I?0:i/I*j}),[i,I,j]),T=e.useRef({top:R,dragging:m,pageY:y,startTop:C});T.current={top:R,dragging:m,pageY:y,startTop:C};var D=function(e){v(!0),x(Bf(e,u)),E(T.current.top),s(),e.stopPropagation(),e.preventDefault()};e.useEffect((function(){var e=function(e){e.preventDefault()},t=k.current,n=O.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",D,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",D)}}),[]);var z=e.useRef();z.current=I;var A=e.useRef();A.current=j,e.useEffect((function(){if(m){var e,t=function(t){var n=T.current,o=n.dragging,r=n.pageY,i=n.startTop;ot.cancel(e);var a=k.current.getBoundingClientRect(),s=p/(u?a.width:a.height);if(o){var l=(Bf(t,u)-r)*s,d=i;!S&&u?d-=l:d+=l;var h=z.current,f=A.current,g=f?d/f:0,m=Math.ceil(g*h);m=Math.max(m,0),m=Math.min(m,h),e=ot((function(){c(m,u)}))}},n=function(){v(!1),l()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),ot.cancel(e)}}}),[m]),e.useEffect((function(){return N(),function(){clearTimeout(P.current)}}),[i]),e.useImperativeHandle(n,(function(){return{delayHidden:N}}));var B="".concat(o,"-scrollbar"),H={position:"absolute",visibility:M?null:"hidden"},F={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(H.height=8,H.left=0,H.right=0,H.bottom=0,F.height="100%",F.width=d,S?F.left=R:F.right=R):(H.width=8,H.top=0,H.bottom=0,S?H.right=0:H.left=0,F.width="100%",F.height=d,F.top=R),e.createElement("div",{ref:k,className:L(B,Z(Z(Z({},"".concat(B,"-horizontal"),u),"".concat(B,"-vertical"),!u),"".concat(B,"-visible"),M)),style:J(J({},H),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:N},e.createElement("div",{ref:O,className:L("".concat(B,"-thumb"),Z({},"".concat(B,"-thumb-moving"),m)),style:J(J({},F),f),onMouseDown:D}))}));"production"!==process.env.NODE_ENV&&(Hf.displayName="ScrollBar");var Ff=20;function Vf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,Ff),Math.floor(t)}var Wf=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Uf=[],Xf={overflowY:"auto",overflowAnchor:"none"};function qf(t,n){var o=t.prefixCls,r=void 0===o?"rc-virtual-list":o,i=t.className,s=t.height,c=t.itemHeight,u=t.fullHeight,p=void 0===u||u,h=t.style,f=t.data,g=t.children,m=t.itemKey,v=t.virtual,b=t.direction,y=t.scrollWidth,x=t.component,w=void 0===x?"div":x,C=t.onScroll,S=t.onVirtualScroll,k=t.onVisibleChange,O=t.innerProps,$=t.extraRender,M=t.styles,_=wt(t,Wf),P=e.useCallback((function(e){return"function"==typeof m?m(e):null==e?void 0:e[m]}),[m]),N=function(t){var n=at(e.useState(0),2),o=n[0],r=n[1],i=a(new Map),s=a(new Df),c=a();function u(){ot.cancel(c.current)}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){i.current.forEach((function(e,t){if(e&&e.offsetParent){var n=te(e),o=n.offsetHeight;s.current.get(t)!==o&&s.current.set(t,n.offsetHeight)}})),r((function(e){return e+1}))};e?t():c.current=ot(t)}return l((function(){return u}),[]),[function(e,n){var o=t(e);i.current.get(o),n?(i.current.set(o,n),d()):i.current.delete(o)},d,s.current,o]}(P),j=at(N,4),R=j[0],T=j[1],D=j[2],z=j[3],A=!(!1===v||!s||!c),B=e.useMemo((function(){return Object.values(D.maps).reduce((function(e,t){return e+t}),0)}),[D.id,D.maps]),H=A&&f&&(Math.max(c*f.length,B)>s||!!y),F="rtl"===b,V=L(r,Z({},"".concat(r,"-rtl"),F),i),W=f||Uf,U=a(),X=a(),G=a(),Y=at(d(0),2),Q=Y[0],ee=Y[1],ne=at(d(0),2),oe=ne[0],re=ne[1],ie=at(d(!1),2),ae=ie[0],se=ie[1],le=function(){se(!0)},ce=function(){se(!1)},ue={getKey:P};function de(e){ee((function(t){var n=function(e){var t=e;Number.isNaN(Me.current)||(t=Math.min(t,Me.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return U.current.scrollTop=n,n}))}var pe=a({start:0,end:W.length}),he=a(),fe=at(If(W,P),1)[0];he.current=fe;var ge=e.useMemo((function(){if(!A)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};var e;if(!H)return{scrollHeight:(null===(e=X.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:W.length-1,offset:void 0};for(var t,n,o,r=0,i=W.length,a=0;a<i;a+=1){var l=W[a],u=P(l),d=D.get(u),p=r+(void 0===d?c:d);p>=Q&&void 0===t&&(t=a,n=r),p>Q+s&&void 0===o&&(o=a),r=p}return void 0===t&&(t=0,n=0,o=Math.ceil(s/c)),void 0===o&&(o=W.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,W.length-1),offset:n}}),[H,A,Q,W,z,s]),me=ge.scrollHeight,ve=ge.start,be=ge.end,ye=ge.offset;pe.current.start=ve,pe.current.end=be;var xe=at(e.useState({width:0,height:s}),2),we=xe[0],Ce=xe[1],Ee=a(),Se=a(),ke=e.useMemo((function(){return Vf(we.width,y)}),[we.width,y]),Oe=e.useMemo((function(){return Vf(we.height,me)}),[we.height,me]),$e=me-s,Me=a($e);Me.current=$e;var _e=Q<=0,Pe=Q>=$e,Ne=oe<=0,Le=oe>=y,Ie=Rf(_e,Pe,Ne,Le),je=function(){return{x:F?-oe:oe,y:Q}},Re=a(je()),Te=xi((function(e){if(S){var t=J(J({},je()),e);Re.current.x===t.x&&Re.current.y===t.y||(S(t),Re.current=t)}}));function De(e,t){var n=e;t?(E((function(){re(n)})),Te()):de(n)}var ze=function(e){var t=e,n=y?y-we.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Ae=xi((function(e,t){t?(E((function(){re((function(t){return ze(t+(F?-e:e))}))})),Te()):de((function(t){return t+e}))})),Be=at(Tf(A,_e,Pe,Ne,Le,!!y,Ae),2),He=Be[0],Fe=Be[1];!function(e,t,n){var o,r=a(!1),i=a(0),s=a(0),l=a(null),c=a(null),u=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),a=i.current-t,l=s.current-o,u=Math.abs(a)>Math.abs(l);u?i.current=t:s.current=o,n(u,u?a:l)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){u?a*=zf:l*=zf;var e=Math.floor(u?a:l);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16)}},d=function(){r.current=!1,o()},p=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),s.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",d,{passive:!0}))};o=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",d))},Gt((function(){return e&&t.current.addEventListener("touchstart",p,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",p),o(),clearInterval(c.current)}}),[e])}(A,U,(function(e,t,n){return!Ie(e,t,n)&&(He({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)})),Gt((function(){function e(e){A&&e.preventDefault()}var t=U.current;return t.addEventListener("wheel",He,{passive:!1}),t.addEventListener("DOMMouseScroll",Fe,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",He),t.removeEventListener("DOMMouseScroll",Fe),t.removeEventListener("MozMousePixelScroll",e)}}),[A]),Gt((function(){if(y){var e=ze(oe);re(e),Te({x:e})}}),[we.width,y]);var Ve=function(){var e,t;null===(e=Ee.current)||void 0===e||e.delayHidden(),null===(t=Se.current)||void 0===t||t.delayHidden()},We=function(t,n,o,r,i,a,s,l){var c=e.useRef(),u=at(e.useState(null),2),d=u[0],p=u[1];return Gt((function(){if(d&&d.times<Af){if(!t.current)return void p((function(e){return J({},e)}));a();var e=d.targetAlign,l=d.originAlign,c=d.index,u=d.offset,h=t.current.clientHeight,f=!1,g=e,m=null;if(h){for(var v=e||l,b=0,y=0,x=0,w=Math.min(n.length-1,c),C=0;C<=w;C+=1){var E=i(n[C]);y=b;var S=o.get(E);b=x=y+(void 0===S?r:S)}for(var k="top"===v?u:h-u,O=w;O>=0;O-=1){var $=i(n[O]),M=o.get($);if(void 0===M){f=!0;break}if((k-=M)<=0)break}switch(v){case"top":m=y-u;break;case"bottom":m=x-h+u;break;default:var _=t.current.scrollTop;y<_?g="top":x>_+h&&(g="bottom")}null!==m&&s(m),m!==d.lastTop&&(f=!0)}f&&p(J(J({},d),{},{times:d.times+1,targetAlign:g,lastTop:m}))}else"production"!==process.env.NODE_ENV&&(null==d?void 0:d.times)===Af&&q(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")}),[d,t.current]),function(e){if(null!=e){if(ot.cancel(c.current),"number"==typeof e)s(e);else if(e&&"object"===K(e)){var t,o=e.align;t="index"in e?e.index:n.findIndex((function(t){return i(t)===e.key}));var r=e.offset;p({times:0,index:t,offset:void 0===r?0:r,originAlign:o})}}else l()}}(U,W,D,c,P,(function(){return T(!0)}),de,Ve);e.useImperativeHandle(n,(function(){return{nativeElement:G.current,getScrollInfo:je,scrollTo:function(e){var t;(t=e)&&"object"===K(t)&&("left"in t||"top"in t)?(void 0!==e.left&&re(ze(e.left)),We(e.top)):We(e)}}})),Gt((function(){if(k){var e=W.slice(ve,be+1);k(e,W)}}),[ve,be,W]);var Ue=function(t,n,o,r){var i=at(e.useMemo((function(){return[new Map,[]]}),[t,o.id,r]),2),a=i[0],s=i[1];return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,l=a.get(e),c=a.get(i);if(void 0===l||void 0===c)for(var u=t.length,d=s.length;d<u;d+=1){var p,h=t[d],f=n(h);a.set(f,d);var g=null!==(p=o.get(f))&&void 0!==p?p:r;if(s[d]=(s[d-1]||0)+g,f===e&&(l=d),f===i&&(c=d),void 0!==l&&void 0!==c)break}return{top:s[l-1]||0,bottom:s[c]}}}(W,P,D,c),qe=null==$?void 0:$({start:ve,end:be,virtual:H,offsetX:oe,offsetY:ye,rtl:F,getSize:Ue}),Ge=function(t,n,o,r,i,a,s,l){var c=l.getKey;return t.slice(n,o+1).map((function(t,o){var l=s(t,n+o,{style:{width:r},offsetX:i}),u=c(t);return e.createElement(Lf,{key:u,setRef:function(e){return a(t,e)}},l)}))}(W,ve,be,y,oe,R,g,ue),Ke=null;s&&(Ke=J(Z({},p?"height":"maxHeight",s),Xf),A&&(Ke.overflowY="hidden",y&&(Ke.overflowX="hidden"),ae&&(Ke.pointerEvents="none")));var Ye={};return F&&(Ye.dir="rtl"),e.createElement("div",I({ref:G,style:J(J({},h),{},{position:"relative"}),className:V},Ye,_),e.createElement(Xe,{onResize:function(e){Ce({width:e.offsetWidth,height:e.offsetHeight})}},e.createElement(w,{className:"".concat(r,"-holder"),style:Ke,ref:U,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==Q&&de(t),null==C||C(e),Te()},onMouseEnter:Ve},e.createElement(Nf,{prefixCls:r,height:me,offsetX:oe,offsetY:ye,scrollWidth:y,onInnerResize:T,ref:X,innerProps:O,rtl:F,extra:qe},Ge))),H&&me>s&&e.createElement(Hf,{ref:Ee,prefixCls:r,scrollOffset:Q,scrollRange:me,rtl:F,onScroll:De,onStartMove:le,onStopMove:ce,spinSize:Oe,containerSize:we.height,style:null==M?void 0:M.verticalScrollBar,thumbStyle:null==M?void 0:M.verticalScrollBarThumb}),H&&y>we.width&&e.createElement(Hf,{ref:Se,prefixCls:r,scrollOffset:oe,scrollRange:y,rtl:F,onScroll:De,onStartMove:le,onStopMove:ce,spinSize:ke,containerSize:we.width,horizontal:!0,style:null==M?void 0:M.horizontalScrollBar,thumbStyle:null==M?void 0:M.horizontalScrollBarThumb}))}var Gf=e.forwardRef(qf);Gf.displayName="List";var Kf=["disabled","title","children","style","className"];function Yf(e){return"string"==typeof e||"number"==typeof e}var Zf=function(t,n){var o=e.useContext(gh),r=o.prefixCls,i=o.id,a=o.open,s=o.multiple,c=o.mode,u=o.searchValue,d=o.toggleOpen,p=o.notFoundContent,h=o.onPopupScroll,f=e.useContext(Ef),g=f.maxCount,m=f.flattenOptions,v=f.onActiveValue,b=f.defaultActiveFirstOption,y=f.onSelect,x=f.menuItemSelectedIcon,w=f.rawValues,C=f.fieldNames,E=f.virtual,S=f.direction,k=f.listHeight,O=f.listItemHeight,$=f.optionRender,M="".concat(r,"-item"),_=ne((function(){return m}),[a,m],(function(e,t){return t[0]&&e[1]!==t[1]})),P=e.useRef(null),N=e.useMemo((function(){return s&&xf(g)&&(null==w?void 0:w.size)>=g}),[s,g,null==w?void 0:w.size]),j=function(e){e.preventDefault()},R=function(e){var t;null===(t=P.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},T=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=_.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=_[r]||{},a=i.group,s=i.data;if(!(a||null!=s&&s.disabled||N))return r}return-1},D=at(e.useState((function(){return T(0)})),2),z=D[0],A=D[1],B=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];A(e);var n={source:t?"keyboard":"mouse"},o=_[e];o?v(o.value,e,n):v(null,-1,n)};l((function(){B(!1!==b?T(0):-1)}),[_.length,u]);var H=e.useCallback((function(e){return w.has(e)&&"combobox"!==c}),[c,Ze(w).toString(),w.size]);l((function(){var e,t=setTimeout((function(){if(!s&&a&&1===w.size){var e=Array.from(w)[0],t=_.findIndex((function(t){return t.data.value===e}));-1!==t&&(B(t),R(t))}}));a&&(null===(e=P.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,u]);var F=function(e){void 0!==e&&y(e,{selected:!w.has(e)}),s||d(!1)};if(e.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Ys.N:case Ys.P:case Ys.UP:case Ys.DOWN:var o=0;if(t===Ys.UP?o=-1:t===Ys.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Ys.N?o=1:t===Ys.P&&(o=-1)),0!==o){var r=T(z+o,o);R(r),B(r,!0)}break;case Ys.ENTER:var i,s=_[z];!s||null!=s&&null!==(i=s.data)&&void 0!==i&&i.disabled||N?F(void 0):F(s.value),a&&e.preventDefault();break;case Ys.ESC:d(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){R(e)}}})),0===_.length)return e.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(M,"-empty"),onMouseDown:j},p);var V=Object.keys(C).map((function(e){return C[e]})),W=function(e){return e.label};function U(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var X=function(t){var n=_[t];if(!n)return null;var o=n.data||{},r=o.value,i=n.group,a=Us(o,!0),s=W(n);return n?e.createElement("div",I({"aria-label":"string"!=typeof s||i?null:s},a,{key:t},U(n,t),{"aria-selected":H(r)}),r):null},q={role:"listbox",id:"".concat(i,"_list")};return e.createElement(e.Fragment,null,E&&e.createElement("div",I({},q,{style:{height:0,width:0,overflow:"hidden"}}),X(z-1),X(z),X(z+1)),e.createElement(Gf,{itemKey:"key",ref:P,data:_,height:k,itemHeight:O,fullHeight:!1,onMouseDown:j,onScroll:h,virtual:E,direction:S,innerProps:E?null:q},(function(t,n){var o=t.group,r=t.groupOption,i=t.data,a=t.label,s=t.value,l=i.key;if(o){var c,u=null!==(c=i.title)&&void 0!==c?c:Yf(a)?a.toString():void 0;return e.createElement("div",{className:L(M,"".concat(M,"-group"),i.className),title:u},void 0!==a?a:l)}var d=i.disabled,p=i.title;i.children;var h=i.style,f=i.className,g=qe(wt(i,Kf),V),m=H(s),v=d||!m&&N,b="".concat(M,"-option"),y=L(M,b,f,Z(Z(Z(Z({},"".concat(b,"-grouped"),r),"".concat(b,"-active"),z===n&&!v),"".concat(b,"-disabled"),v),"".concat(b,"-selected"),m)),w=W(t),C=!x||"function"==typeof x||m,S="number"==typeof w?w:w||s,k=Yf(S)?S.toString():void 0;return void 0!==p&&(k=p),e.createElement("div",I({},Us(g),E?{}:U(t,n),{"aria-selected":m,className:y,title:k,onMouseMove:function(){z===n||v||B(n)},onClick:function(){v||F(s)},style:h}),e.createElement("div",{className:"".concat(b,"-content")},"function"==typeof $?$(t,{index:n}):S),e.isValidElement(x)||m,C&&e.createElement(fh,{className:"".concat(M,"-option-state"),customizeIcon:x,customizeIconProps:{value:s,disabled:v,isSelected:m}},m?"✓":null))})))},Qf=e.forwardRef(Zf);"production"!==process.env.NODE_ENV&&(Qf.displayName="OptionList");function Jf(e,t){return Dh(e).join("").toUpperCase().includes(t)}var eg=0,tg="test"!==process.env.NODE_ENV&<();function ng(t){var n=at(e.useState(),2),o=n[0],r=n[1];return e.useEffect((function(){var e;r("rc_select_".concat((tg?(e=eg,eg+=1):e="TEST_OR_SSR",e)))}),[]),t||o}var og=["children","value"],rg=["children"];function ig(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return B(t).map((function(t,o){if(!e.isValidElement(t)||!t.type)return null;var r=t,i=r.type.isSelectOptGroup,a=r.key,s=r.props,l=s.children,c=wt(s,rg);return n||!i?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value;return J({key:n,value:void 0!==i?i:n,children:r},wt(o,og))}(t):J(J({key:"__RC_SELECT_GRP__".concat(null===a?o:a,"__"),label:a},c),{},{options:ig(l)})})).filter((function(e){return e}))}function ag(t){var n=e.useRef();n.current=t;var o=e.useCallback((function(){return n.current.apply(n,arguments)}),[]);return o}var sg=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],lg=["inputValue"];var cg=e.forwardRef((function(t,n){var o=t.id,r=t.mode,i=t.prefixCls,a=void 0===i?"rc-select":i,s=t.backfill,l=t.fieldNames,c=t.inputValue,u=t.searchValue,d=t.onSearch,p=t.autoClearSearchValue,h=void 0===p||p,f=t.onSelect,g=t.onDeselect,m=t.dropdownMatchSelectWidth,v=void 0===m||m,b=t.filterOption,y=t.filterSort,x=t.optionFilterProp,w=t.optionLabelProp,C=t.options,E=t.optionRender,S=t.children,k=t.defaultActiveFirstOption,O=t.menuItemSelectedIcon,$=t.virtual,M=t.direction,_=t.listHeight,P=void 0===_?200:_,N=t.listItemHeight,L=void 0===N?20:N,j=t.labelRender,R=t.value,T=t.defaultValue,D=t.labelInValue,z=t.onChange,A=t.maxCount,H=wt(t,sg),F=ng(o),V=$f(r),W=!(C||!S),U=e.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),X=e.useMemo((function(){return wf(l,W)}),[JSON.stringify(l),W]),Y=at(Ei("",{value:void 0!==u?u:c,postState:function(e){return e||""}}),2),Q=Y[0],ee=Y[1],te=function(t,n,o,r,i){return e.useMemo((function(){var e=t;!t&&(e=ig(n));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[o.options]||n?(a.set(u[o.value],u),l(s,u,o.label),l(s,u,r),l(s,u,i)):e(u[o.options],!0)}}(e),{options:e,valueOptions:a,labelOptions:s}}),[t,n,o,r,i])}(C,S,X,x,w),ne=te.valueOptions,oe=te.labelOptions,re=te.options,ie=e.useCallback((function(t){return Dh(t).map((function(t){var n,o,r,i,a,s;(function(e){return!e||"object"!==K(e)})(t)?n=t:(r=t.key,o=t.label,n=null!==(s=t.value)&&void 0!==s?s:r);var l,c=ne.get(n);if(c&&(void 0===o&&(o=null==c?void 0:c[w||X.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:n),i=null==c?void 0:c.disabled,a=null==c?void 0:c.title,"production"!==process.env.NODE_ENV&&!w)){var u=null==c?void 0:c[X.label];void 0===u||e.isValidElement(u)||e.isValidElement(o)||u===o||q(!1,"`label` of `value` is not same as `label` in Select options.")}return{label:o,value:n,key:r,disabled:i,title:a}}))}),[X,w,ne]),ae=at(Ei(T,{value:R}),2),se=ae[0],le=ae[1],ce=e.useMemo((function(){var e,t=ie(V&&null===se?[]:se);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[se,ie,r,V]),ue=function(t,n){var o=e.useRef({values:new Map,options:new Map});return[e.useMemo((function(){var e=o.current,r=e.values,i=e.options,a=t.map((function(e){var t;return void 0===e.label?J(J({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return a.forEach((function(e){s.set(e.value,e),l.set(e.value,n.get(e.value)||i.get(e.value))})),o.current.values=s,o.current.options=l,a}),[t,n]),e.useCallback((function(e){return n.get(e)||o.current.options.get(e)}),[n])]}(ce,ne),de=at(ue,2),pe=de[0],he=de[1],fe=e.useMemo((function(){if(!r&&1===pe.length){var e=pe[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return pe.map((function(e){var t;return J(J({},e),{},{label:null!==(t="function"==typeof j?j(e):e.label)&&void 0!==t?t:e.value})}))}),[r,pe,j]),ge=e.useMemo((function(){return new Set(pe.map((function(e){return e.value})))}),[pe]);e.useEffect((function(){if("combobox"===r){var e,t=null===(e=pe[0])||void 0===e?void 0:e.value;ee(function(e){return null!=e}(t)?String(t):"")}}),[pe]);var me=ag((function(e,t){var n=null!=t?t:e;return Z(Z({},X.value,e),X.label,n)})),ve=function(t,n,o,r,i){return e.useMemo((function(){if(!o||!1===r)return t;var e=n.options,a=n.label,s=n.value,l=[],c="function"==typeof r,u=o.toUpperCase(),d=c?r:function(t,n){return i?Jf(n[i],u):n[e]?Jf(n["children"!==a?a:"label"],u):Jf(n[s],u)},p=c?function(e){return Cf(e)}:function(e){return e};return t.forEach((function(t){if(t[e])if(d(o,p(t)))l.push(t);else{var n=t[e].filter((function(e){return d(o,p(e))}));n.length&&l.push(J(J({},t),{},Z({},e,n)))}else d(o,p(t))&&l.push(t)})),l}),[t,r,i,o,n])}(e.useMemo((function(){if("tags"!==r)return re;var e=Ze(re);return Ze(pe).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return ne.has(e)})(n)||e.push(me(n,t.label))})),e}),[me,re,ne,pe,r]),X,Q,U,x),be=e.useMemo((function(){return"tags"!==r||!Q||ve.some((function(e){return e[x||"value"]===Q}))||ve.some((function(e){return e[X.value]===Q}))?ve:[me(Q)].concat(Ze(ve))}),[me,x,r,ve,Q,X]),ye=function e(t){return Ze(t).sort((function(e,t){return y(e,t,{searchValue:Q})})).map((function(t){return Array.isArray(t.options)?J(J({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},xe=e.useMemo((function(){return y?ye(be):be}),[be,y,Q]),we=e.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=wf(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(l in t)){var i=t[s];r.push({key:yf(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&o&&(u=t.label),r.push({key:yf(t,r.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),r}(xe,{fieldNames:X,childrenAsData:W})}),[xe,X,W]),Ce=function(e){var t=ie(e);if(le(t),z&&(t.length!==pe.length||t.some((function(e,t){var n;return(null===(n=pe[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=D?t:t.map((function(e){return e.value})),o=t.map((function(e){return Cf(he(e.value))}));z(V?n:n[0],V?o:o[0])}},Ee=at(e.useState(null),2),Se=Ee[0],ke=Ee[1],Oe=at(e.useState(0),2),$e=Oe[0],Me=Oe[1],_e=void 0!==k?k:"combobox"!==r,Pe=e.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;Me(t),s&&"combobox"===r&&null!==e&&"keyboard"===o&&ke(String(e))}),[s,r]),Ne=function(e,t,n){var o=function(){var t,n=he(e);return[D?{label:null==n?void 0:n[X.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Cf(n)]};if(t&&f){var r=at(o(),2),i=r[0],a=r[1];f(i,a)}else if(!t&&g&&"clear"!==n){var s=at(o(),2),l=s[0],c=s[1];g(l,c)}},Le=ag((function(e,t){var n,o=!V||t.selected;n=o?V?[].concat(Ze(pe),[e]):[e]:pe.filter((function(t){return t.value!==e})),Ce(n),Ne(e,o),"combobox"===r?ke(""):$f&&!h||(ee(""),ke(""))})),Ie=e.useMemo((function(){var e=!1!==$&&!1!==v;return J(J({},te),{},{flattenOptions:we,onActiveValue:Pe,defaultActiveFirstOption:_e,onSelect:Le,menuItemSelectedIcon:O,rawValues:ge,fieldNames:X,virtual:e,direction:M,listHeight:P,listItemHeight:L,childrenAsData:W,maxCount:A,optionRender:E})}),[A,te,we,Pe,_e,Le,O,ge,X,$,v,M,P,L,W,E]);return"production"!==process.env.NODE_ENV&&(function(t){var n=t.mode,o=t.options,r=t.children,i=t.backfill,a=t.allowClear,s=t.placeholder,l=t.getInputElement,c=t.showSearch,u=t.onSearch,d=t.defaultOpen,p=t.autoFocus,h=t.labelInValue,f=t.value,g=t.inputValue,m=t.optionLabelProp,v=$f(n),b=void 0!==c?c:v||"combobox"===n,y=o||ig(r);if(q("tags"!==n||y.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),("tags"===n||"combobox"===n)&&q(!y.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)})),"`value` of Option should not use number type when `mode` is `tags` or `combobox`."),q("combobox"!==n||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),q("combobox"===n||!i,"`backfill` only works with `combobox` mode."),q("combobox"===n||!l,"`getInputElement` only work with `combobox` mode."),G("combobox"!==n||!l||!a||!s,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!b&&"combobox"!==n&&"tags"!==n&&q(!1,"`onSearch` should work with `showSearch` instead of use alone."),G(!d||p,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=f){var x=Dh(f);q(!h||x.every((function(e){return"object"===K(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),q(!v||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var w=null;B(r).some((function(t){if(!e.isValidElement(t)||!t.type)return!1;var n=t.type;return!n.isSelectOption&&(n.isSelectOptGroup?!B(t.props.children).every((function(n){return!(e.isValidElement(n)&&t.type&&!n.type.isSelectOption&&(w=n.type,1))})):(w=n,!0))})),w&&q(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(w.displayName||w.name||w,"`.")),q(void 0===g,"`inputValue` is deprecated, please use `searchValue` instead.")}}(t),function(e,t){e&&function e(n){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;r<n.length;r++){var i=n[r];if(null===i[null==t?void 0:t.value])return q(!1,"`value` in Select options should not be `null`."),!0;if(!o&&Array.isArray(i[null==t?void 0:t.options])&&e(i[null==t?void 0:t.options],!0))break}}(e)}(re,X)),e.createElement(Ef.Provider,{value:Ie},e.createElement(Mf,I({},H,{id:F,prefixCls:a,ref:n,omitDomProps:lg,mode:r,displayValues:fe,onDisplayValuesChange:function(e,t){Ce(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){Ne(e.value,!1,n)}))},direction:M,searchValue:Q,onSearch:function(e,t){if(ee(e),ke(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&Ce(e),null==d||d(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(Ze(ge),[n])));Ce(o),Ne(n,!0),ee("")}}},autoClearSearchValue:h,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=oe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Ze(ge),Ze(t))));Ce(n),n.forEach((function(e){Ne(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:Qf,emptyOptions:!we.length,activeValue:Se,activeDescendantId:"".concat(F,"_list_").concat($e)})))}));"production"!==process.env.NODE_ENV&&(cg.displayName="Select");var ug=cg;function dg(e,t,n){return L({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}ug.Option=Pf,ug.OptGroup=_f;const pg=(e,t)=>t||e,hg=()=>{const[,t]=Ui(),n=new gr(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return e.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,"empty image"),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(24 31.67)"},e.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),e.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),e.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),e.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),e.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),e.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),e.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},e.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),e.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};"production"!==process.env.NODE_ENV&&(hg.displayName="EmptyImage");const fg=()=>{const[,t]=Ui(),{colorFill:n,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:i}=t,{borderColor:a,shadowColor:s,contentColor:l}=u((()=>({borderColor:new gr(n).onBackground(i).toHexShortString(),shadowColor:new gr(o).onBackground(i).toHexShortString(),contentColor:new gr(r).onBackground(i).toHexShortString()})),[n,o,r,i]);return e.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,"Simple Empty"),e.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},e.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),e.createElement("g",{fillRule:"nonzero",stroke:a},e.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),e.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))};"production"!==process.env.NODE_ENV&&(fg.displayName="SimpleImage");const gg=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var mg=Ji("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=$i(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[gg(r)]})),vg=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const bg=e.createElement(hg,null),yg=e.createElement(fg,null),xg=t=>{var{className:n,rootClassName:o,prefixCls:r,image:i=bg,description:a,children:s,imageStyle:l,style:c}=t,u=vg(t,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:p,empty:h}=e.useContext(ai),f=d("empty",r),[g,m,v]=mg(f),[b]=Go("Empty"),y=void 0!==a?a:null==b?void 0:b.description,x="string"==typeof y?y:"empty";let w=null;return w="string"==typeof i?e.createElement("img",{alt:x,src:i}):i,g(e.createElement("div",Object.assign({className:L(m,v,f,null==h?void 0:h.className,{[`${f}-normal`]:i===yg,[`${f}-rtl`]:"rtl"===p},n,o),style:Object.assign(Object.assign({},null==h?void 0:h.style),c)},u),e.createElement("div",{className:`${f}-image`,style:l},w),y&&e.createElement("div",{className:`${f}-description`},y),s&&e.createElement("div",{className:`${f}-footer`},s)))};xg.PRESENTED_IMAGE_DEFAULT=bg,xg.PRESENTED_IMAGE_SIMPLE=yg,"production"!==process.env.NODE_ENV&&(xg.displayName="Empty");const wg=e=>{const{componentName:n}=e,{getPrefixCls:o}=r(ai),i=o("empty");switch(n){case"Table":case"List":return t.createElement(xg,{image:xg.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return t.createElement(xg,{image:xg.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return t.createElement(xg,null)}},Cg=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:s}=r(ai),l=r(bd),c=null==s?void 0:s.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(o=null!=l?l:c)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,ii.includes(u)]};function Eg(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const Sg=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},kg=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Gi(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:mp},[`\n ${r}${s}topLeft,\n ${i}${s}topLeft,\n ${r}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:bp},[`${a}${s}bottomLeft`]:{animationName:vp},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:yp},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},Sg(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},qi),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${o}-option-selected:not(${o}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${o}-option-selected:not(${o}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Sg(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},kp(e,"slide-up"),kp(e,"slide-down"),gp(e,"move-up"),gp(e,"move-down")]},Og=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:r,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:o,cursor:"default",transition:`font-size ${r}, line-height ${r}, height ${r}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":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"}}),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},$g=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,r=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),s=t?`${n}-${t}`:"",l=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(n).sub(o).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:Ft(t),itemLineHeight:Ft(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},Og(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ft(o)} 0`,lineHeight:Ft(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Ft(l.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:Ft(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Mg(e,t){const{componentCls:n}=e,o=t?`${n}-${t}`:"",r={[`${n}-multiple${o}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[$g(e,t),r]}const _g=e=>{const{componentCls:t}=e,n=$i(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=$i(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Mg(e),Mg(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Mg(o,"lg")]};function Pg(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Gi(e,!0)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:Ft(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Ft(o)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Ft(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ft(o)}`,"&:after":{display:"none"}}}}}}}function Ng(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Pg(e),Pg($i(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${Ft(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Pg($i(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Lg=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Ft(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Ft(r)} ${t.activeShadowColor}`,outline:0}}}},Ig=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Lg(e,t))}),jg=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Lg(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),Ig(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),Ig(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ft(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Rg=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Ft(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Tg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Rg(e,t))}),Dg=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Rg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),Tg(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Tg(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),zg=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ft(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Ag=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},jg(e)),Dg(e)),zg(e))}),Bg=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Hg=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Fg=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},Gi(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Bg(e)),Hg(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},qi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},qi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]: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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}},Vg=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Fg(e),Ng(e),_g(e),kg(e),{[`${t}-rtl`]:{direction:"rtl"}},$c(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var Wg=Ji("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=$i(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Vg(o),Ag(o)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:h,colorBgContainer:f,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:v}=e,b=2*s,y=2*o,x=Math.min(r-b,r-y),w=Math.min(i-b,i-y),C=Math.min(a-b,a-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:h,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:f,clearBg:f,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:w,multipleItemHeightLG:C,multipleSelectorBgDisabled:m,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),Ug={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"},Xg=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:Ug}))},qg=e.forwardRef(Xg);"production"!==process.env.NODE_ENV&&(qg.displayName="CheckOutlined");var Gg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Kg=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:Gg}))},Yg=e.forwardRef(Kg);"production"!==process.env.NODE_ENV&&(Yg.displayName="DownOutlined");var Zg={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"},Qg=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:Zg}))},Jg=e.forwardRef(Qg);"production"!==process.env.NODE_ENV&&(Jg.displayName="SearchOutlined");var em=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const tm="SECRET_COMBOBOX_MODE_DO_NOT_USE",nm=(t,n)=>{var o;const{prefixCls:r,bordered:i,className:a,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:p,listItemHeight:h,size:f,disabled:g,notFoundContent:m,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:w,style:C,allowClear:E,variant:S,dropdownStyle:k,transitionName:O,tagRender:$,maxCount:M}=t,_=em(t,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:P,getPrefixCls:N,renderEmpty:I,direction:j,virtual:R,popupMatchSelectWidth:T,popupOverflow:D,select:z}=e.useContext(ai),[,A]=Ui(),B=null!=h?h:null==A?void 0:A.controlHeight,H=N("select",r),F=N(),V=null!=w?w:j,{compactSize:W,compactItemClassnames:U}=Al(H,V),[X,q]=Cg("select",S,i),G=Ks(H),[K,Y,Z]=Wg(H,G),Q=e.useMemo((()=>{const{mode:e}=t;if("combobox"!==e)return e===tm?"combobox":e}),[t.mode]),J="multiple"===Q||"tags"===Q,ee=function(e,t){return void 0!==t?t:null!==e}(t.suffixIcon,t.showArrow),te=null!==(o=null!=x?x:y)&&void 0!==o?o:T,{status:ne,hasFeedback:oe,isFormItemInput:re,feedbackIcon:ie}=e.useContext(md),ae=pg(ne,v);let se;se=void 0!==m?m:"combobox"===Q?null:(null==I?void 0:I("Select"))||e.createElement(wg,{componentName:"Select"});const{suffixIcon:le,itemIcon:ce,removeIcon:ue,clearIcon:de}=function(t){let{suffixIcon:n,clearIcon:o,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:h}=t;"production"!==process.env.NODE_ENV&&jo(h).deprecated(!o,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const f=null!=o?o:e.createElement(Ns,null),g=t=>null!==n||l||p?e.createElement(e.Fragment,null,!1!==u&&t,l&&d):null;let m=null;if(void 0!==n)m=g(n);else if(a)m=g(e.createElement(Js,{spin:!0}));else{const t=`${c}-suffix`;m=n=>{let{open:o,showSearch:r}=n;return g(o&&r?e.createElement(Jg,{className:t}):e.createElement(Yg,{className:t}))}}let v=null;v=void 0!==r?r:s?e.createElement(qg,null):null;let b=null;return b=void 0!==i?i:e.createElement(js,null),{clearIcon:f,suffixIcon:m,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},_),{multiple:J,hasFeedback:oe,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:H,componentName:"Select"})),pe=!0===E?{clearIcon:de}:E,he=qe(_,["suffixIcon","itemIcon"]),fe=L(c||u,{[`${H}-dropdown-${V}`]:"rtl"===V},s,Z,G,Y),ge=Dl((e=>{var t;return null!==(t=null!=f?f:W)&&void 0!==t?t:e})),me=e.useContext(ci),ve=null!=g?g:me,be=L({[`${H}-lg`]:"large"===ge,[`${H}-sm`]:"small"===ge,[`${H}-rtl`]:"rtl"===V,[`${H}-${X}`]:q,[`${H}-in-form-item`]:re},dg(H,ae,oe),U,null==z?void 0:z.className,a,s,Z,G,Y),ye=e.useMemo((()=>void 0!==p?p:"rtl"===V?"bottomRight":"bottomLeft"),[p,V]);if("production"!==process.env.NODE_ENV){const e=jo("Select");e.deprecated(!u,"dropdownClassName","popupClassName"),e.deprecated(void 0===y,"dropdownMatchSelectWidth","popupMatchSelectWidth"),"production"!==process.env.NODE_ENV&&e(!("showArrow"in t),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),e.deprecated(!("bordered"in t),"bordered","variant"),"production"!==process.env.NODE_ENV&&e(!(void 0!==M&&!J),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[xe]=rl("SelectLike",null==k?void 0:k.zIndex);return K(e.createElement(ug,Object.assign({ref:n,virtual:R,showSearch:null==z?void 0:z.showSearch},he,{style:Object.assign(Object.assign({},null==z?void 0:z.style),C),dropdownMatchSelectWidth:te,transitionName:Ol(F,"slide-up",O),builtinPlacements:Eg(b,D),listHeight:d,listItemHeight:B,mode:Q,prefixCls:H,placement:ye,direction:V,suffixIcon:le,menuItemSelectedIcon:ce,removeIcon:ue,allowClear:pe,notFoundContent:se,className:be,getPopupContainer:l||P,dropdownClassName:fe,disabled:ve,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:xe}),maxCount:J?M:void 0,tagRender:J?$:void 0})))};"production"!==process.env.NODE_ENV&&(nm.displayName="Select");const om=e.forwardRef(nm),rm=(im=om,ph((t=>{const{prefixCls:n,style:o}=t,r=e.useRef(null),[i,a]=e.useState(0),[s,l]=e.useState(0),[c,u]=Ei(!1,{value:t.open}),{getPrefixCls:d}=e.useContext(ai),p=d("select",n);e.useEffect((()=>{if(u(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;a(t.offsetHeight+8),l(t.offsetWidth)})),t=setInterval((()=>{var n;const o=`.${p}-dropdown`,i=null===(n=r.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let h=Object.assign(Object.assign({},t),{style:Object.assign(Object.assign({},o),{margin:0}),open:c,visible:c,getPopupContainer:()=>r.current});const f={paddingBottom:i,position:"relative",minWidth:s};return e.createElement("div",{ref:r,style:f},e.createElement(im,Object.assign({},h)))})));var im;om.SECRET_COMBOBOX_MODE_DO_NOT_USE=tm,om.Option=Pf,om.OptGroup=_f,om._InternalPanelDoNotUseOrYouWillBeFired=rm,"production"!==process.env.NODE_ENV&&(om.displayName="Select");const am=["xxl","xl","lg","md","sm","xs"],sm=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),lm=e=>{const t=e,n=[].concat(am).reverse();return n.forEach(((e,o)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o<n.length-1){const e=`screen${r}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e};function cm(){let n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const o=a({}),r=function(){const[,t]=e.useReducer((e=>e+1),0);return t}(),i=function(){const[,e]=Ui(),n=sm(lm(e));return t.useMemo((()=>{const e=new Map;let t=-1,o={};return{matchHandlers:{},dispatch:t=>(o=t,e.forEach((e=>e(o))),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(o),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(n).forEach((e=>{const t=n[e],o=this.matchHandlers[t];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),e.clear()},register(){Object.keys(n).forEach((e=>{const t=n[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},o),{[e]:n}))},i=window.matchMedia(t);i.addListener(r),this.matchHandlers[t]={mql:i,listener:r},r(i)}))},responsiveMap:n}}),[e])}();return Gt((()=>{const e=i.subscribe((e=>{o.current=e,n&&r()}));return()=>i.unsubscribe(e)}),[]),o.current}const um=e.createContext({}),dm=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:p,borderRadiusLG:h,borderRadiusSM:f,lineWidth:g,lineType:m}=e,v=(e,t,r)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:r},[`&${n}-icon`]:{fontSize:t,[`> ${o}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Gi(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${Ft(g)} ${m} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(a,c,p)),{"&-lg":Object.assign({},v(s,u,h)),"&-sm":Object.assign({},v(l,d,f)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},pm=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}};var hm=Ji("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=$i(e,{avatarBg:n,avatarColor:t});return[dm(o),pm(o)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:r,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}})),fm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const gm=(t,n)=>{const[o,r]=e.useState(1),[i,a]=e.useState(!1),[s,l]=e.useState(!0),c=e.useRef(null),u=e.useRef(null),d=re(n,c),{getPrefixCls:p,avatar:h}=e.useContext(ai),f=e.useContext(um),g=()=>{if(!u.current||!c.current)return;const e=u.current.offsetWidth,n=c.current.offsetWidth;if(0!==e&&0!==n){const{gap:o=4}=t;2*o<n&&r(n-2*o<e?(n-2*o)/e:1)}};e.useEffect((()=>{a(!0)}),[]),e.useEffect((()=>{l(!0),r(1)}),[t.src]),e.useEffect(g,[t.gap]);const m=()=>{const{onError:e}=t;!1!==(null==e?void 0:e())&&l(!1)},{prefixCls:v,shape:b,size:y,src:x,srcSet:w,icon:C,className:E,rootClassName:S,alt:k,draggable:O,children:$,crossOrigin:M}=t,_=fm(t,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),P=Dl((e=>{var t,n;return null!==(n=null!==(t=null!=y?y:null==f?void 0:f.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),N=cm(Object.keys("object"==typeof P&&P||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),I=e.useMemo((()=>{if("object"!=typeof P)return{};const e=am.find((e=>N[e])),t=P[e];return t?{width:t,height:t,fontSize:t&&(C||$)?t/2:18}:{}}),[N,P]);if("production"!==process.env.NODE_ENV){const e=jo("Avatar");"production"!==process.env.NODE_ENV&&e(!("string"==typeof C&&C.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${C}\` at https://ant.design/components/icon`)}const j=p("avatar",v),R=Ks(j),[T,D,z]=hm(j,R),A=L({[`${j}-lg`]:"large"===P,[`${j}-sm`]:"small"===P}),B=e.isValidElement(x),H=b||(null==f?void 0:f.shape)||"circle",F=L(j,A,null==h?void 0:h.className,`${j}-${H}`,{[`${j}-image`]:B||x&&s,[`${j}-icon`]:!!C},z,R,E,S,D),V="number"==typeof P?{width:P,height:P,fontSize:C?P/2:18}:{};let W;if("string"==typeof x&&s)W=e.createElement("img",{src:x,draggable:O,srcSet:w,onError:m,alt:k,crossOrigin:M});else if(B)W=x;else if(C)W=C;else if(i||1!==o){const t=`scale(${o})`,n={msTransform:t,WebkitTransform:t,transform:t};W=e.createElement(Xe,{onResize:g},e.createElement("span",{className:`${j}-string`,ref:u,style:Object.assign({},n)},$))}else W=e.createElement("span",{className:`${j}-string`,style:{opacity:0},ref:u},$);return delete _.onError,delete _.gap,T(e.createElement("span",Object.assign({},_,{style:Object.assign(Object.assign(Object.assign(Object.assign({},V),I),null==h?void 0:h.style),_.style),className:F,ref:d}),W))},mm=e.forwardRef(gm);"production"!==process.env.NODE_ENV&&(mm.displayName="Avatar");const vm=e=>e?"function"==typeof e?e():e:null;function bm(t){var n=t.children,o=t.prefixCls,r=t.id,i=t.overlayInnerStyle,a=t.className,s=t.style;return e.createElement("div",{className:L("".concat(o,"-content"),a),style:s},e.createElement("div",{className:"".concat(o,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof n?n():n))}var ym={shiftX:64,adjustY:1},xm={adjustX:1,shiftY:!0},wm=[0,0],Cm={left:{points:["cr","cl"],overflow:xm,offset:[-4,0],targetOffset:wm},right:{points:["cl","cr"],overflow:xm,offset:[4,0],targetOffset:wm},top:{points:["bc","tc"],overflow:ym,offset:[0,-4],targetOffset:wm},bottom:{points:["tc","bc"],overflow:ym,offset:[0,4],targetOffset:wm},topLeft:{points:["bl","tl"],overflow:ym,offset:[0,-4],targetOffset:wm},leftTop:{points:["tr","tl"],overflow:xm,offset:[-4,0],targetOffset:wm},topRight:{points:["br","tr"],overflow:ym,offset:[0,-4],targetOffset:wm},rightTop:{points:["tl","tr"],overflow:xm,offset:[4,0],targetOffset:wm},bottomRight:{points:["tr","br"],overflow:ym,offset:[0,4],targetOffset:wm},rightBottom:{points:["bl","br"],overflow:xm,offset:[4,0],targetOffset:wm},bottomLeft:{points:["tl","bl"],overflow:ym,offset:[0,4],targetOffset:wm},leftBottom:{points:["br","bl"],overflow:xm,offset:[-4,0],targetOffset:wm}},Em=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Sm=function(t,n){var o=t.overlayClassName,r=t.trigger,i=void 0===r?["hover"]:r,s=t.mouseEnterDelay,l=void 0===s?0:s,c=t.mouseLeaveDelay,u=void 0===c?.1:c,d=t.overlayStyle,p=t.prefixCls,h=void 0===p?"rc-tooltip":p,f=t.children,m=t.onVisibleChange,v=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,k=t.destroyTooltipOnHide,O=void 0!==k&&k,$=t.defaultVisible,M=t.getTooltipContainer,_=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,N=t.id,L=t.showArrow,j=void 0===L||L,R=wt(t,Em),T=a(null);g(n,(function(){return T.current}));var D=J({},R);"visible"in t&&(D.popupVisible=t.visible);return e.createElement(gf,I({popupClassName:o,prefixCls:h,popup:function(){return e.createElement(bm,{key:"content",prefixCls:h,id:N,overlayInnerStyle:_},P)},action:i,builtinPlacements:Cm,popupPlacement:C,ref:T,popupAlign:S,getPopupContainer:M,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:y,popupMotion:x,defaultPopupVisible:$,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:j},D),f)},km=c(Sm);function Om(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),s=r-o*(1-1/Math.sqrt(2)),l=r-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-l,d=c,p=2*r-a,h=s,f=2*r-0,g=i,m=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${p} ${h} A ${o} ${o} 0 0 0 ${f} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const $m=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:l(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ft(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Mm=8;function _m(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?Mm:o}}function Pm(e,t){return e?t:{}}function Nm(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},$m(e,t,r)),{"&:before":{background:t}})]},Pm(!!l.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ft(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Pm(!!l.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ft(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Pm(!!l.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i}})),Pm(!!l.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}))}}const Lm={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"]}},Im={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"]}},jm=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Rm(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Lm).forEach((e=>{const c=o&&Im[e]||Lm[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,jm.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-r;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+r;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-r;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+r}const d=_m({contentRadius:i,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+s;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-s}u.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},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),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),l}const Tm=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Gi(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":r,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Ft(e.calc(c).div(2).equal())} ${Ft(u)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Mm)}},[`${t}-content`]:{position:"relative"}}),na(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},Nm(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Dm=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},_m({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Om($i(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var zm=function(e){const t=Ji("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=$i(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[Tm(r),Ip(e,"zoom-big-fast")]}),Dm,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Am=ji.map((e=>`${e}-inverse`));function Bm(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Ze(Am),Ze(ji)).includes(e):ji.includes(e)}function Hm(e,t){const n=Bm(t),o=L({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}var Fm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Vm=e.forwardRef(((t,n)=>{var o,r;const{prefixCls:i,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:p,afterVisibleChange:h,destroyTooltipOnHide:f,arrow:g=!0,title:m,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=t,w=!!g,[,C]=Ui(),{getPopupContainer:E,getPrefixCls:S,direction:k}=e.useContext(ai),O=jo("Tooltip"),$=e.useRef(null),M=()=>{var e;null===(e=$.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,(()=>{var e;return{forceAlign:M,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),M()},nativeElement:null===(e=$.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((e=>{let[n,o]=e;O.deprecated(!(n in t),n,o)})),"production"!==process.env.NODE_ENV&&O(!f||"boolean"==typeof f,"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[_,P]=Ei(!1,{value:null!==(o=t.open)&&void 0!==o?o:t.visible,defaultValue:null!==(r=t.defaultOpen)&&void 0!==r?r:t.defaultVisible}),N=!m&&!v&&0!==m,I=e.useMemo((()=>{var e,t;let n=y;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:y),b||Rm({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:w?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[y,g,b,C]),j=e.useMemo((()=>0===m?m:v||m||""),[v,m]),R=e.createElement(yd,{space:!0},"function"==typeof j?j():j),{getPopupContainer:T,placement:D="top",mouseEnterDelay:z=.1,mouseLeaveDelay:A=.1,overlayStyle:B,rootClassName:H}=t,F=Fm(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=S("tooltip",i),W=S(),U=t["data-popover-inject"];let X=_;"open"in t||"visible"in t||!N||(X=!1);const q=e.isValidElement(d)&&!Xs(d)?d:e.createElement("span",null,d),G=q.props,K=G.className&&"string"!=typeof G.className?G.className:L(G.className,a||`${V}-open`),[Y,Z,Q]=zm(V,!U),J=Hm(V,c),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=L(l,{[`${V}-rtl`]:"rtl"===k},J.className,H,Z,Q),[oe,re]=rl("Tooltip",F.zIndex),ie=e.createElement(km,Object.assign({},F,{zIndex:oe,showArrow:w,placement:D,mouseEnterDelay:z,mouseLeaveDelay:A,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),B),getTooltipContainer:T||s||E,ref:$,builtinPlacements:I,overlay:R,visible:X,onVisibleChange:e=>{var n,o;P(!N&&e),N||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(o=t.onVisibleChange)||void 0===o||o.call(t,e))},afterVisibleChange:null!=p?p:h,overlayInnerStyle:te,arrowContent:e.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:Ol(W,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!f}),X?Gs(q,{className:K}):q);return Y(e.createElement(el.Provider,{value:re},ie))})),Wm=Vm;"production"!==process.env.NODE_ENV&&(Wm.displayName="Tooltip"),Wm._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:o,placement:r="top",title:i,color:a,overlayInnerStyle:s}=t,{getPrefixCls:l}=e.useContext(ai),c=l("tooltip",n),[u,d,p]=zm(c),h=Hm(c,a),f=h.arrowStyle,g=Object.assign(Object.assign({},s),h.overlayStyle),m=L(d,p,c,`${c}-pure`,`${c}-placement-${r}`,o,h.className);return u(e.createElement("div",{className:m,style:f},e.createElement("div",{className:`${c}-arrow`}),e.createElement(bm,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:g}),i)))};const Um=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:o,fontWeightStrong:r,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:p,titleBorderBottom:h,innerContentPadding:f,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},Gi(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:u,color:s,fontWeight:r,borderBottom:h,padding:g},[`${t}-inner-content`]:{color:n,padding:f}})},Nm(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Xm=e=>{const{componentCls:t}=e;return{[t]:ji.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}};var qm=Ji("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,o=$i(e,{popoverBg:t,popoverColor:n});return[Um(o),Xm(o),Ip(o,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:o,padding:r,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,p=n-o,h=p/2,f=p/2-t,g=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Om(e)),_m({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${h}px ${g}px ${f}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),Gm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Km=t=>{let{title:n,content:o,prefixCls:r}=t;return n||o?e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${r}-title`},n),o&&e.createElement("div",{className:`${r}-inner-content`},o)):null},Ym=t=>{const{hashId:n,prefixCls:o,className:r,style:i,placement:a="top",title:s,content:l,children:c}=t,u=vm(s),d=vm(l),p=L(n,o,`${o}-pure`,`${o}-placement-${a}`,r);return e.createElement("div",{className:p,style:i},e.createElement("div",{className:`${o}-arrow`}),e.createElement(bm,Object.assign({},t,{className:n,prefixCls:o}),c||e.createElement(Km,{prefixCls:o,title:u,content:d})))};var Zm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Qm=e.forwardRef(((t,n)=>{var o,r;const{prefixCls:i,title:a,content:s,overlayClassName:l,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:p=.1,mouseLeaveDelay:h=.1,onOpenChange:f,overlayStyle:g={}}=t,m=Zm(t,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:v}=e.useContext(ai),b=v("popover",i),[y,x,w]=qm(b),C=v(),E=L(l,x,w),[S,k]=Ei(!1,{value:null!==(o=t.open)&&void 0!==o?o:t.visible,defaultValue:null!==(r=t.defaultOpen)&&void 0!==r?r:t.defaultVisible}),O=(e,t)=>{k(e,!0),null==f||f(e,t)},$=vm(a),M=vm(s);return y(e.createElement(Wm,Object.assign({placement:c,trigger:u,mouseEnterDelay:p,mouseLeaveDelay:h,overlayStyle:g},m,{prefixCls:b,overlayClassName:E,ref:n,open:S,onOpenChange:e=>{O(e)},overlay:$||M?e.createElement(Km,{prefixCls:b,title:$,content:M}):null,transitionName:Ol(C,"zoom-big",m.transitionName),"data-popover-inject":!0}),Gs(d,{onKeyDown:t=>{var n,o;e.isValidElement(d)&&(null===(o=null==d?void 0:(n=d.props).onKeyDown)||void 0===o||o.call(n,t)),(e=>{e.keyCode===Ys.ESC&&O(!1,e)})(t)}})))}));Qm._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:o}=t,r=Gm(t,["prefixCls","className"]),{getPrefixCls:i}=e.useContext(ai),a=i("popover",n),[s,l,c]=qm(a);return s(e.createElement(Ym,Object.assign({},r,{prefixCls:a,hashId:l,className:L(o,c)})))},"production"!==process.env.NODE_ENV&&(Qm.displayName="Popover");const Jm=t=>{const{size:n,shape:o}=e.useContext(um),r=e.useMemo((()=>({size:t.size||n,shape:t.shape||o})),[t.size,t.shape,n,o]);return e.createElement(um.Provider,{value:r},t.children)},ev=mm;ev.Group=t=>{var n,o,r;const{getPrefixCls:i,direction:a}=e.useContext(ai),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:p,size:h,shape:f,maxPopoverPlacement:g,maxPopoverTrigger:m,children:v,max:b}=t;if("production"!==process.env.NODE_ENV){const e=jo("Avatar.Group");e.deprecated(!d,"maxCount","max={{ count: number }}"),e.deprecated(!p,"maxStyle","max={{ style: CSSProperties }}"),e.deprecated(!g,"maxPopoverPlacement","max={{ popover: PopoverProps }}"),e.deprecated(!m,"maxPopoverTrigger","max={{ popover: PopoverProps }}")}const y=i("avatar",s),x=`${y}-group`,w=Ks(y),[C,E,S]=hm(y,w),k=L(x,{[`${x}-rtl`]:"rtl"===a},S,w,l,c,E),O=B(v).map(((e,t)=>Gs(e,{key:`avatar-key-${t}`}))),$=(null==b?void 0:b.count)||d,M=O.length;if($&&$<M){const t=O.slice(0,$),i=O.slice($,M),a=(null==b?void 0:b.style)||p,s=(null===(n=null==b?void 0:b.popover)||void 0===n?void 0:n.trigger)||m||"hover",l=(null===(o=null==b?void 0:b.popover)||void 0===o?void 0:o.placement)||g||"top",c=Object.assign(Object.assign({content:i},null==b?void 0:b.popover),{overlayClassName:L(`${x}-popover`,null===(r=null==b?void 0:b.popover)||void 0===r?void 0:r.overlayClassName),placement:l,trigger:s});return t.push(e.createElement(Qm,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},c),e.createElement(mm,{style:a},"+"+(M-$)))),C(e.createElement(Jm,{shape:f,size:h},e.createElement("div",{className:k,style:u},t)))}return C(e.createElement(Jm,{shape:f,size:h},e.createElement("div",{className:k,style:u},O)))};const tv=new xo("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),nv=new xo("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),ov=new xo("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),rv=new xo("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),iv=new xo("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),av=new xo("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),sv=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return $i(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorBgContainer,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:r,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},lv=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*r,indicatorHeightSM:t,dotSize:o/2,textFontSize:o,textFontSizeSM:o,textFontWeight:"normal",statusSize:o/2}};var cv=Ji("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,badgeShadowSize:r,motionDurationSlow:i,textFontSize:a,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:p,marginXS:h,calc:f}=e,g=`${o}-scroll-number`,m=na(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o},"a:hover &":{background:o}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Gi(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:Ft(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:f(d).div(2).equal(),boxShadow:`0 0 0 ${Ft(r)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:p,height:p,fontSize:s,lineHeight:Ft(p),borderRadius:f(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Ft(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Ft(r)} ${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:av,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,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:r,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:tv,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:h,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:nv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:ov,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:rv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:iv,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%)"}}})}})(sv(e))),lv);var uv=Ji(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=na(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},Gi(e)),{position:"absolute",top:o,padding:`0 ${Ft(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Ft(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:r,height:r,color:"currentcolor",border:`${Ft(i(r).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(r).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(r).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(sv(e))),lv);const dv=t=>{const{className:n,prefixCls:o,style:r,color:i,children:a,text:s,placement:l="end",rootClassName:c}=t,{getPrefixCls:u,direction:d}=e.useContext(ai),p=u("ribbon",o),h=`${p}-wrapper`,[f,g,m]=uv(p,h),v=Bm(i,!1),b=L(p,`${p}-placement-${l}`,{[`${p}-rtl`]:"rtl"===d,[`${p}-color-${i}`]:v},n),y={},x={};return i&&!v&&(y.background=i,x.color=i),f(e.createElement("div",{className:L(h,c,g,m)},a,e.createElement("div",{className:L(b,g),style:Object.assign(Object.assign({},y),r)},e.createElement("span",{className:`${p}-text`},s),e.createElement("div",{className:`${p}-corner`,style:x}))))};"production"!==process.env.NODE_ENV&&(dv.displayName="Ribbon");const pv=t=>{const{prefixCls:n,value:o,current:r,offset:i=0}=t;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),e.createElement("span",{style:a,className:L(`${n}-only-unit`,{current:r})},o)};function hv(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const fv=t=>{const{prefixCls:n,count:o,value:r}=t,i=Number(r),a=Math.abs(o),[s,l]=e.useState(i),[c,u]=e.useState(a),d=()=>{l(i),u(a)};let p,h;if(e.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),s===i||Number.isNaN(i)||Number.isNaN(s))p=[e.createElement(pv,Object.assign({},t,{key:i,current:!0}))],h={transition:"none"};else{p=[];const n=i+10,o=[];for(let e=i;e<=n;e+=1)o.push(e);const r=o.findIndex((e=>e%10===s));p=o.map(((n,o)=>{const i=n%10;return e.createElement(pv,Object.assign({},t,{key:n,value:i,offset:o-r,current:o===r}))}));h={transform:`translateY(${-hv(s,i,c<a?1:-1)}00%)`}}return e.createElement("span",{className:`${n}-only`,style:h,onTransitionEnd:d},p)};var gv=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const mv=e.forwardRef(((t,n)=>{const{prefixCls:o,count:r,className:i,motionClassName:a,style:s,title:l,show:c,component:u="sup",children:d}=t,p=gv(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=e.useContext(ai),f=h("scroll-number",o),g=Object.assign(Object.assign({},p),{"data-show":c,style:s,className:L(f,i,a),title:l});let m=r;if(r&&Number(r)%1==0){const t=String(r).split("");m=e.createElement("bdi",null,t.map(((n,o)=>e.createElement(fv,{prefixCls:f,count:Number(r),value:n,key:t.length-o}))))}return(null==s?void 0:s.borderColor)&&(g.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?Gs(d,(e=>({className:L(`${f}-custom-component`,null==e?void 0:e.className,a)}))):e.createElement(u,Object.assign({},g,{ref:n}),m)}));var vv=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const bv=e.forwardRef(((t,n)=>{var o,r,i,s,l;const{prefixCls:c,scrollNumberPrefixCls:d,children:p,status:h,text:f,color:g,count:m=null,overflowCount:v=99,dot:b=!1,size:y="default",title:x,offset:w,style:C,className:E,rootClassName:S,classNames:k,styles:O,showZero:$=!1}=t,M=vv(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:_,direction:P,badge:N}=e.useContext(ai),I=_("badge",c),[j,R,T]=cv(I),D=m>v?`${v}+`:m,z="0"===D||0===D,A=(null!=h||null!=g)&&(null===m||z&&!$),B=b&&!z,H=B?"":D,F=u((()=>(null==H||""===H||z&&!$)&&!B),[H,z,$,B]),V=a(m);F||(V.current=m);const W=V.current,U=a(H);F||(U.current=H);const X=U.current,q=a(B);F||(q.current=B);const G=u((()=>{if(!w)return Object.assign(Object.assign({},null==N?void 0:N.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==N?void 0:N.style),C)}),[P,w,C,null==N?void 0:N.style]),K=null!=x?x:"string"==typeof W||"number"==typeof W?W:void 0,Y=F||!f?null:e.createElement("span",{className:`${I}-status-text`},f),Z=W&&"object"==typeof W?Gs(W,(e=>({style:Object.assign(Object.assign({},G),e.style)}))):void 0,Q=Bm(g,!1),J=L(null==k?void 0:k.indicator,null===(o=null==N?void 0:N.classNames)||void 0===o?void 0:o.indicator,{[`${I}-status-dot`]:A,[`${I}-status-${h}`]:!!h,[`${I}-color-${g}`]:Q}),ee={};g&&!Q&&(ee.color=g,ee.background=g);const te=L(I,{[`${I}-status`]:A,[`${I}-not-a-wrapper`]:!p,[`${I}-rtl`]:"rtl"===P},E,S,null==N?void 0:N.className,null===(r=null==N?void 0:N.classNames)||void 0===r?void 0:r.root,null==k?void 0:k.root,R,T);if(!p&&A){const t=G.color;return j(e.createElement("span",Object.assign({},M,{className:te,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(i=null==N?void 0:N.styles)||void 0===i?void 0:i.root),G)}),e.createElement("span",{className:J,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(s=null==N?void 0:N.styles)||void 0===s?void 0:s.indicator),ee)}),f&&e.createElement("span",{style:{color:t},className:`${I}-status-text`},f)))}return j(e.createElement("span",Object.assign({ref:n},M,{className:te,style:Object.assign(Object.assign({},null===(l=null==N?void 0:N.styles)||void 0===l?void 0:l.root),null==O?void 0:O.root)}),p,e.createElement(Ha,{visible:!F,motionName:`${I}-zoom`,motionAppear:!1,motionDeadline:1e3},(t=>{let{className:n}=t;var o,r;const i=_("scroll-number",d),a=q.current,s=L(null==k?void 0:k.indicator,null===(o=null==N?void 0:N.classNames)||void 0===o?void 0:o.indicator,{[`${I}-dot`]:a,[`${I}-count`]:!a,[`${I}-count-sm`]:"small"===y,[`${I}-multiple-words`]:!a&&X&&X.toString().length>1,[`${I}-status-${h}`]:!!h,[`${I}-color-${g}`]:Q});let l=Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(r=null==N?void 0:N.styles)||void 0===r?void 0:r.indicator),G);return g&&!Q&&(l=l||{},l.background=g),e.createElement(mv,{prefixCls:i,show:!F,motionClassName:n,className:s,count:X,title:K,style:l,key:"scrollNumber"},Z)})),Y))})),yv=bv;yv.Ribbon=dv,"production"!==process.env.NODE_ENV&&(yv.displayName="Badge");var xv={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"},wv=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:xv}))},Cv=e.forwardRef(wv);"production"!==process.env.NODE_ENV&&(Cv.displayName="RightOutlined");var Ev=Ys.ESC,Sv=Ys.TAB;var kv=c((function(e,n){var o=e.overlay,r=e.arrow,i=e.prefixCls,a=u((function(){return"function"==typeof o?o():o}),[o]),s=re(n,null==a?void 0:a.ref);return t.createElement(t.Fragment,null,r&&t.createElement("div",{className:"".concat(i,"-arrow")}),t.cloneElement(a,{ref:ae(a)?s:void 0}))})),Ov={adjustX:1,adjustY:1},$v=[0,0],Mv={topLeft:{points:["bl","tl"],overflow:Ov,offset:[0,-4],targetOffset:$v},top:{points:["bc","tc"],overflow:Ov,offset:[0,-4],targetOffset:$v},topRight:{points:["br","tr"],overflow:Ov,offset:[0,-4],targetOffset:$v},bottomLeft:{points:["tl","bl"],overflow:Ov,offset:[0,4],targetOffset:$v},bottom:{points:["tc","bc"],overflow:Ov,offset:[0,4],targetOffset:$v},bottomRight:{points:["tr","br"],overflow:Ov,offset:[0,4],targetOffset:$v}},_v=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Pv(n,o){var r,i=n.arrow,a=void 0!==i&&i,s=n.prefixCls,l=void 0===s?"rc-dropdown":s,c=n.transitionName,u=n.animation,d=n.align,p=n.placement,h=void 0===p?"bottomLeft":p,f=n.placements,g=void 0===f?Mv:f,m=n.getPopupContainer,v=n.showAction,b=n.hideAction,y=n.overlayClassName,x=n.overlayStyle,w=n.visible,C=n.trigger,E=void 0===C?["hover"]:C,S=n.autoFocus,k=n.overlay,O=n.children,$=n.onVisibleChange,M=wt(n,_v),_=at(t.useState(),2),P=_[0],N=_[1],j="visible"in n?w:P,R=t.useRef(null),T=t.useRef(null),D=t.useRef(null);t.useImperativeHandle(o,(function(){return R.current}));var z=function(e){N(e),null==$||$(e)};!function(t){var n=t.visible,o=t.triggerRef,r=t.onVisibleChange,i=t.autoFocus,a=t.overlayRef,s=e.useRef(!1),l=function(){var e,t;n&&(null===(e=o.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==r||r(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),s.current=!0,0))},u=function(e){switch(e.keyCode){case Ev:l();break;case Sv:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};e.useEffect((function(){return n?(window.addEventListener("keydown",u),i&&ot(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[n])}({visible:j,triggerRef:D,onVisibleChange:z,autoFocus:S,overlayRef:T});var A,B,H,F=function(){return t.createElement(kv,{ref:T,overlay:k,prefixCls:l,arrow:a})},V=t.cloneElement(O,{className:L(null===(r=O.props)||void 0===r?void 0:r.className,j&&(A=n.openClassName,void 0!==A?A:"".concat(l,"-open"))),ref:ae(O)?re(D,O.ref):void 0}),W=b;return W||-1===E.indexOf("contextMenu")||(W=["click"]),t.createElement(gf,I({builtinPlacements:g},M,{prefixCls:l,ref:R,popupClassName:L(y,Z({},"".concat(l,"-show-arrow"),a)),popupStyle:x,action:E,showAction:v,hideAction:W,popupPlacement:h,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:j,stretch:(B=n.minOverlayWidthMatchTrigger,H=n.alignPoint,("minOverlayWidthMatchTrigger"in n?B:!H)?"minWidth":""),popup:"function"==typeof k?F:F(),onPopupVisibleChange:z,onPopupClick:function(e){var t=n.onOverlayClick;N(!1),t&&t(e)},getPopupContainer:m}),V)}var Nv=t.forwardRef(Pv),Lv=e.createContext(null);function Iv(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function jv(t){return Iv(e.useContext(Lv),t)}var Rv=["children","locked"],Tv=e.createContext(null);function Dv(t){var n=t.children,o=t.locked,r=wt(t,Rv),i=e.useContext(Tv),a=ne((function(){return function(e,t){var n=J({},e);return Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n}(i,r)}),[i,r],(function(e,t){return!(o||e[0]===t[0]&&Ct(e[1],t[1],!0))}));return e.createElement(Tv.Provider,{value:a},n)}var zv=[],Av=e.createContext(null);function Bv(){return e.useContext(Av)}var Hv=e.createContext(zv);function Fv(t){var n=e.useContext(Hv);return e.useMemo((function(){return void 0!==t?[].concat(Ze(n),[t]):n}),[n,t])}var Vv=e.createContext(null),Wv=e.createContext({});function Uv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if($l(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Xv=Ys.LEFT,qv=Ys.RIGHT,Gv=Ys.UP,Kv=Ys.DOWN,Yv=Ys.ENTER,Zv=Ys.ESC,Qv=Ys.HOME,Jv=Ys.END,eb=[Gv,Kv,Xv,qv];function tb(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ze(e.querySelectorAll("*")).filter((function(e){return Uv(e,t)}));return Uv(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function nb(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=tb(e,t),i=r.length,a=r.findIndex((function(e){return n===e}));return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var ob=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Iv(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function rb(t,n,o,r,i,a,s,l,c,u){var d=e.useRef(),p=e.useRef();p.current=n;var h=function(){ot.cancel(d.current)};return e.useEffect((function(){return function(){h()}}),[]),function(e){var f=e.which;if([].concat(eb,[Yv,Zv,Qv,Jv]).includes(f)){var g=a(),m=ob(g,r),v=m,b=v.elements,y=v.key2element,x=v.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(n),b),C=x.get(w),E=function(e,t,n,o){var r,i,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&o===Yv)return{inlineTrigger:!0};var p=(Z(r={},Gv,l),Z(r,Kv,c),r),h=(Z(i={},Xv,n?c:l),Z(i,qv,n?l:c),Z(i,Kv,u),Z(i,Yv,u),i),f=(Z(a={},Gv,l),Z(a,Kv,c),Z(a,Yv,u),Z(a,Zv,d),Z(a,Xv,n?u:d),Z(a,qv,n?d:u),a);switch(null===(s={inline:p,horizontal:h,vertical:f,inlineSub:p,horizontalSub:f,verticalSub:f}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[o]){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(t,1===s(C,!0).length,o,f);if(!E&&f!==Qv&&f!==Jv)return;(eb.includes(f)||[Qv,Jv].includes(f))&&e.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=x.get(e);l(o),h(),d.current=ot((function(){p.current===o&&t.focus()}))}};if([Qv,Jv].includes(f)||E.sibling||!w){var k,O,$=tb(k=w&&"inline"!==t?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=f===Qv?$[0]:f===Jv?$[$.length-1]:nb(k,b,w,E.offset),S(O)}else if(E.inlineTrigger)c(C);else if(E.offset>0)c(C,!0),h(),d.current=ot((function(){m=ob(g,r);var e=w.getAttribute("aria-controls"),t=nb(document.getElementById(e),m.elements);S(t)}),5);else if(E.offset<0){var M=s(C,!0),_=M[M.length-2],P=y.get(_);c(_,!1),S(P)}}null==u||u(e)}}var ib="__RC_UTIL_PATH_SPLIT__",ab=function(e){return e.join(ib)},sb="rc-menu-more";function lb(){var t=at(e.useState({}),2)[1],n=a(new Map),o=a(new Map),r=at(e.useState([]),2),i=r[0],s=r[1],l=a(0),c=a(!1),u=f((function(e,r){"production"!==process.env.NODE_ENV&&q(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(r.join(" > "),"]"));var i=ab(r);o.current.set(i,e),n.current.set(e,i),l.current+=1;var a=l.current;!function(e){Promise.resolve().then(e)}((function(){a===l.current&&(c.current||t({}))}))}),[]),d=f((function(e,t){var r=ab(t);o.current.delete(r),n.current.delete(e)}),[]),p=f((function(e){s(e)}),[]),h=f((function(e,t){var o=n.current.get(e)||"",r=o.split(ib);return t&&i.includes(r[0])&&r.unshift(sb),r}),[i]),g=f((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return h(e,!0).includes(t)}))}),[h]),m=f((function(e){var t="".concat(n.current.get(e)).concat(ib),r=new Set;return Ze(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return e.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:h,getKeys:function(){var e=Ze(n.current.keys());return i.length&&e.push(sb),e},getSubPathKeys:m}}function cb(t){var n=e.useRef(t);n.current=t;var o=e.useCallback((function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(o))}),[]);return t?o:void 0}var ub=Math.random().toFixed(5).toString().slice(2),db=0;function pb(t,n,o,r){var i=e.useContext(Tv),a=i.activeKey,s=i.onActive,l=i.onInactive,c={active:a===t};return n||(c.onMouseEnter=function(e){null==o||o({key:t,domEvent:e}),s(t)},c.onMouseLeave=function(e){null==r||r({key:t,domEvent:e}),l(t)}),c}function hb(t){var n=e.useContext(Tv),o=n.mode,r=n.rtl,i=n.inlineIndent;if("inline"!==o)return null;return r?{paddingRight:t*i}:{paddingLeft:t*i}}function fb(t){var n,o=t.icon,r=t.props,i=t.children;return null===o||!1===o?null:("function"==typeof o?n=e.createElement(o,J({},r)):"boolean"!=typeof o&&(n=o),n||i||null)}var gb=["item"];function mb(e){var t=e.item,n=wt(e,gb);return Object.defineProperty(n,"item",{get:function(){return q(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var vb=["title","attribute","elementRef"],bb=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],yb=["active"],xb=function(){De(n,e.Component);var t=He(n);function n(){return Ie(this,n),t.apply(this,arguments)}return Re(n,[{key:"render",value:function(){var t=this.props,n=t.title,o=t.attribute,r=t.elementRef,i=qe(wt(t,vb),["eventKey","popupClassName","popupOffset","onTitleClick"]);return q(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(jh.Item,I({},o,{title:"string"==typeof n?n:void 0},i,{ref:r}))}}]),n}(),wb=e.forwardRef((function(t,n){var o,r=t.style,i=t.className,a=t.eventKey,s=t.warnKey,l=t.disabled,c=t.itemIcon,u=t.children,d=t.role,p=t.onMouseEnter,h=t.onMouseLeave,f=t.onClick,g=t.onKeyDown,m=t.onFocus,v=wt(t,bb),b=jv(a),y=e.useContext(Tv),x=y.prefixCls,w=y.onItemClick,C=y.disabled,E=y.overflowDisabled,S=y.itemIcon,k=y.selectedKeys,O=y.onActive,$=e.useContext(Wv)._internalRenderMenuItem,M="".concat(x,"-item"),_=e.useRef(),P=e.useRef(),N=C||l,j=ie(n,P),R=Fv(a);"production"!==process.env.NODE_ENV&&s&&q(!1,"MenuItem should not leave undefined `key`.");var T=function(e){return{key:a,keyPath:Ze(R).reverse(),item:_.current,domEvent:e}},D=c||S,z=pb(a,N,p,h),A=z.active,B=wt(z,yb),H=k.includes(a),F=hb(R.length),V={};"option"===t.role&&(V["aria-selected"]=H);var W=e.createElement(xb,I({ref:_,elementRef:j,role:null===d?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":E&&b?null:b},v,B,V,{component:"li","aria-disabled":l,style:J(J({},F),r),className:L(M,(o={},Z(o,"".concat(M,"-active"),A),Z(o,"".concat(M,"-selected"),H),Z(o,"".concat(M,"-disabled"),N),o),i),onClick:function(e){if(!N){var t=T(e);null==f||f(mb(t)),w(t)}},onKeyDown:function(e){if(null==g||g(e),e.which===Ys.ENTER){var t=T(e);null==f||f(mb(t)),w(t)}},onFocus:function(e){O(a),null==m||m(e)}}),u,e.createElement(fb,{props:J(J({},t),{},{isSelected:H}),icon:D}));return $&&(W=$(W,t,{selected:H})),W}));function Cb(t,n){var o=t.eventKey,r=Bv(),i=Fv(o);return e.useEffect((function(){if(r)return r.registerPath(o,i),function(){r.unregisterPath(o,i)}}),[i]),r?null:e.createElement(wb,I({},t,{ref:n}))}var Eb=e.forwardRef(Cb),Sb=["className","children"],kb=function(t,n){var o=t.className,r=t.children,i=wt(t,Sb),a=e.useContext(Tv),s=a.prefixCls,l=a.mode,c=a.rtl;return e.createElement("ul",I({className:L(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===l?"inline":"vertical"),o),role:"menu"},i,{"data-menu-list":!0,ref:n}),r)},Ob=e.forwardRef(kb);function $b(t,n){return B(t).map((function(t,o){if(e.isValidElement(t)){var r,i,a=t.key,s=null!==(r=null===(i=t.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a,l=null==s;l&&(s="tmp_key-".concat([].concat(Ze(n),[o]).join("-")));var c={key:s,eventKey:s};return"production"!==process.env.NODE_ENV&&l&&(c.warnKey=!0),e.cloneElement(t,c)}return t}))}Ob.displayName="SubMenuList";var Mb={adjustX:1,adjustY:1},_b={topLeft:{points:["bl","tl"],overflow:Mb},topRight:{points:["br","tr"],overflow:Mb},bottomLeft:{points:["tl","bl"],overflow:Mb},bottomRight:{points:["tr","br"],overflow:Mb},leftTop:{points:["tr","tl"],overflow:Mb},leftBottom:{points:["br","bl"],overflow:Mb},rightTop:{points:["tl","tr"],overflow:Mb},rightBottom:{points:["bl","br"],overflow:Mb}},Pb={topLeft:{points:["bl","tl"],overflow:Mb},topRight:{points:["br","tr"],overflow:Mb},bottomLeft:{points:["tl","bl"],overflow:Mb},bottomRight:{points:["tr","br"],overflow:Mb},rightTop:{points:["tr","tl"],overflow:Mb},rightBottom:{points:["br","bl"],overflow:Mb},leftTop:{points:["tl","tr"],overflow:Mb},leftBottom:{points:["bl","br"],overflow:Mb}};function Nb(e,t,n){return t||(n?n[e]||n.other:void 0)}var Lb={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ib(t){var n=t.prefixCls,o=t.visible,r=t.children,i=t.popup,a=t.popupStyle,s=t.popupClassName,l=t.popupOffset,c=t.disabled,u=t.mode,d=t.onVisibleChange,p=e.useContext(Tv),h=p.getPopupContainer,f=p.rtl,g=p.subMenuOpenDelay,m=p.subMenuCloseDelay,v=p.builtinPlacements,b=p.triggerSubMenuAction,y=p.forceSubMenuRender,x=p.rootClassName,w=p.motion,C=p.defaultMotions,E=at(e.useState(!1),2),S=E[0],k=E[1],O=J(J({},f?Pb:_b),v),$=Lb[u],M=Nb(u,w,C),_=e.useRef(M);"inline"!==u&&(_.current=M);var P=J(J({},_.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),N=e.useRef();return e.useEffect((function(){return N.current=ot((function(){k(o)})),function(){ot.cancel(N.current)}}),[o]),e.createElement(gf,{prefixCls:n,popupClassName:L("".concat(n,"-popup"),Z({},"".concat(n,"-rtl"),f),s,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:h,builtinPlacements:O,popupPlacement:$,popupVisible:S,popup:i,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:m,onPopupVisibleChange:d,forceRender:y,popupMotion:P,fresh:!0},r)}function jb(t){var n=t.id,o=t.open,r=t.keyPath,i=t.children,a="inline",s=e.useContext(Tv),l=s.prefixCls,c=s.forceSubMenuRender,u=s.motion,d=s.defaultMotions,p=s.mode,h=e.useRef(!1);h.current=p===a;var f=at(e.useState(!h.current),2),g=f[0],m=f[1],v=!!h.current&&o;e.useEffect((function(){h.current&&m(!1)}),[p]);var b=J({},Nb(a,u,d));r.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return h.current||e||m(!0),null==y?void 0:y(e)},g?null:e.createElement(Dv,{mode:a,locked:!h.current},e.createElement(Ha,I({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(t){var o=t.className,r=t.style;return e.createElement(Ob,{id:n,className:o,style:r},i)})))}var Rb=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Tb=["active"],Db=e.forwardRef((function(t,n){var o,r=t.style,i=t.className,a=t.title,s=t.eventKey,l=t.warnKey,c=t.disabled,u=t.internalPopupClose,d=t.children,p=t.itemIcon,h=t.expandIcon,f=t.popupClassName,g=t.popupOffset,m=t.popupStyle,v=t.onClick,b=t.onMouseEnter,y=t.onMouseLeave,x=t.onTitleClick,w=t.onTitleMouseEnter,C=t.onTitleMouseLeave,E=wt(t,Rb),S=jv(s),k=e.useContext(Tv),O=k.prefixCls,$=k.mode,M=k.openKeys,_=k.disabled,P=k.overflowDisabled,N=k.activeKey,j=k.selectedKeys,R=k.itemIcon,T=k.expandIcon,D=k.onItemClick,z=k.onOpenChange,A=k.onActive,B=e.useContext(Wv)._internalRenderSubMenuItem,H=e.useContext(Vv).isSubPathKey,F=Fv(),V="".concat(O,"-submenu"),W=_||c,U=e.useRef(),X=e.useRef();"production"!==process.env.NODE_ENV&&l&&q(!1,"SubMenu should not leave undefined `key`.");var G=null!=p?p:R,K=null!=h?h:T,Y=M.includes(s),Q=!P&&Y,ee=H(j,s),te=pb(s,W,w,C),ne=te.active,oe=wt(te,Tb),re=at(e.useState(!1),2),ie=re[0],ae=re[1],se=function(e){W||ae(e)},le=e.useMemo((function(){return ne||"inline"!==$&&(ie||H([N],s))}),[$,ne,N,ie,s,H]),ce=hb(F.length),ue=cb((function(e){null==v||v(mb(e)),D(e)})),de=S&&"".concat(S,"-popup"),pe=e.createElement("div",I({role:"menuitem",style:ce,className:"".concat(V,"-title"),tabIndex:W?null:-1,ref:U,title:"string"==typeof a?a:null,"data-menu-id":P&&S?null:S,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":W,onClick:function(e){W||(null==x||x({key:s,domEvent:e}),"inline"===$&&z(s,!Y))},onFocus:function(){A(s)}},oe),a,e.createElement(fb,{icon:"horizontal"!==$?K:void 0,props:J(J({},t),{},{isOpen:Q,isSubMenu:!0})},e.createElement("i",{className:"".concat(V,"-arrow")}))),he=e.useRef($);if("inline"!==$&&F.length>1?he.current="vertical":he.current=$,!P){var fe=he.current;pe=e.createElement(Ib,{mode:fe,prefixCls:V,visible:!u&&Q&&"inline"!==$,popupClassName:f,popupOffset:g,popupStyle:m,popup:e.createElement(Dv,{mode:"horizontal"===fe?"vertical":fe},e.createElement(Ob,{id:de,ref:X},d)),disabled:W,onVisibleChange:function(e){"inline"!==$&&z(s,e)}},pe)}var ge=e.createElement(jh.Item,I({ref:n,role:"none"},E,{component:"li",style:r,className:L(V,"".concat(V,"-").concat($),i,(o={},Z(o,"".concat(V,"-open"),Q),Z(o,"".concat(V,"-active"),le),Z(o,"".concat(V,"-selected"),ee),Z(o,"".concat(V,"-disabled"),W),o)),onMouseEnter:function(e){se(!0),null==b||b({key:s,domEvent:e})},onMouseLeave:function(e){se(!1),null==y||y({key:s,domEvent:e})}}),pe,!P&&e.createElement(jb,{id:de,open:Q,keyPath:F},d));return B&&(ge=B(ge,t,{selected:ee,active:le,open:Q,disabled:W})),e.createElement(Dv,{onItemClick:ue,mode:"horizontal"===$?"vertical":$,itemIcon:G,expandIcon:K},ge)})),zb=e.forwardRef((function(t,n){var o,r=t.eventKey,i=t.children,a=Fv(r),s=$b(i,a),l=Bv();return e.useEffect((function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}}),[a]),o=l?s:e.createElement(Db,I({ref:n},t),s),e.createElement(Hv.Provider,{value:a},o)}));function Ab(t){var n=t.className,o=t.style,r=e.useContext(Tv).prefixCls;return Bv()?null:e.createElement("li",{role:"separator",className:L("".concat(r,"-item-divider"),n),style:o})}"production"!==process.env.NODE_ENV&&(zb.displayName="SubMenu");var Bb=["className","title","eventKey","children"],Hb=e.forwardRef((function(t,n){var o=t.className,r=t.title;t.eventKey;var i=t.children,a=wt(t,Bb),s=e.useContext(Tv).prefixCls,l="".concat(s,"-item-group");return e.createElement("li",I({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:L(l,o)}),e.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),e.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))})),Fb=e.forwardRef((function(t,n){var o=t.eventKey,r=$b(t.children,Fv(o));return Bv()?r:e.createElement(Hb,I({ref:n},qe(t,["warnKey"])),r)}));"production"!==process.env.NODE_ENV&&(Fb.displayName="MenuItemGroup");var Vb=["label","children","key","type"];function Wb(t,n){var o=n.item,r=n.group,i=n.submenu,a=n.divider;return(t||[]).map((function(t,s){if(t&&"object"===K(t)){var l=t,c=l.label,u=l.children,d=l.key,p=l.type,h=wt(l,Vb),f=null!=d?d:"tmp-".concat(s);return u||"group"===p?"group"===p?e.createElement(r,I({key:f},h,{title:c}),Wb(u,n)):e.createElement(i,I({key:f},h,{title:c}),Wb(u,n)):"divider"===p?e.createElement(a,I({key:f},h)):e.createElement(o,I({key:f},h),c)}return null})).filter((function(e){return e}))}function Ub(e,t,n,o){var r=e,i=J({divider:Ab,item:Eb,group:Fb,submenu:zb},o);return t&&(r=Wb(t,i)),$b(r,n)}var Xb=["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"],qb=[],Gb=e.forwardRef((function(t,n){var o,r,i=t,a=i.prefixCls,s=void 0===a?"rc-menu":a,l=i.rootClassName,c=i.style,u=i.className,d=i.tabIndex,p=void 0===d?0:d,h=i.items,f=i.children,m=i.direction,v=i.id,b=i.mode,y=void 0===b?"vertical":b,x=i.inlineCollapsed,w=i.disabled,C=i.disabledOverflow,S=i.subMenuOpenDelay,k=void 0===S?.1:S,O=i.subMenuCloseDelay,$=void 0===O?.1:O,M=i.forceSubMenuRender,_=i.defaultOpenKeys,P=i.openKeys,N=i.activeKey,j=i.defaultActiveFirst,R=i.selectable,T=void 0===R||R,D=i.multiple,z=void 0!==D&&D,A=i.defaultSelectedKeys,B=i.selectedKeys,H=i.onSelect,F=i.onDeselect,V=i.inlineIndent,W=void 0===V?24:V,U=i.motion,X=i.defaultMotions,G=i.triggerSubMenuAction,K=void 0===G?"hover":G,Y=i.builtinPlacements,Q=i.itemIcon,ee=i.expandIcon,te=i.overflowedIndicator,ne=void 0===te?"...":te,oe=i.overflowedIndicatorPopupClassName,re=i.getPopupContainer,ie=i.onClick,ae=i.onOpenChange,se=i.onKeyDown,le=i.openAnimation,ce=i.openTransitionName,ue=i._internalRenderMenuItem,de=i._internalRenderSubMenuItem,pe=i._internalComponents,he=wt(i,Xb),fe=at(e.useMemo((function(){return[Ub(f,h,qb,pe),Ub(f,h,qb,{})]}),[f,h,pe]),2),ge=fe[0],me=fe[1],ve=at(e.useState(!1),2),be=ve[0],ye=ve[1],xe=e.useRef(),we=function(t){var n=at(Ei(t,{value:t}),2),o=n[0],r=n[1];return e.useEffect((function(){db+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(ub,"-").concat(db);r("rc-menu-uuid-".concat(e))}),[]),o}(v),Ce="rtl"===m;"production"!==process.env.NODE_ENV&&q(!le&&!ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ee=Ei(_,{value:P,postState:function(e){return e||qb}}),Se=at(Ee,2),ke=Se[0],Oe=Se[1],$e=function(e){function t(){Oe(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?E(t):t()},Me=at(e.useState(ke),2),_e=Me[0],Pe=Me[1],Ne=e.useRef(!1),Le=at(e.useMemo((function(){return"inline"!==y&&"vertical"!==y||!x?[y,!1]:["vertical",x]}),[y,x]),2),Ie=Le[0],je=Le[1],Re="inline"===Ie,Te=at(e.useState(Ie),2),De=Te[0],ze=Te[1],Ae=at(e.useState(je),2),Be=Ae[0],He=Ae[1];e.useEffect((function(){ze(Ie),He(je),Ne.current&&(Re?Oe(_e):$e(qb))}),[Ie,je]);var Fe=at(e.useState(0),2),Ve=Fe[0],We=Fe[1],Ue=Ve>=ge.length-1||"horizontal"!==De||C;e.useEffect((function(){Re&&Pe(ke)}),[ke]),e.useEffect((function(){return Ne.current=!0,function(){Ne.current=!1}}),[]);var Xe=lb(),qe=Xe.registerPath,Ge=Xe.unregisterPath,Ke=Xe.refreshOverflowKeys,Ye=Xe.isSubPathKey,Qe=Xe.getKeyPath,Je=Xe.getKeys,et=Xe.getSubPathKeys,tt=e.useMemo((function(){return{registerPath:qe,unregisterPath:Ge}}),[qe,Ge]),nt=e.useMemo((function(){return{isSubPathKey:Ye}}),[Ye]);e.useEffect((function(){Ke(Ue?qb:ge.slice(Ve+1).map((function(e){return e.key})))}),[Ve,Ue]);var ot=at(Ei(N||j&&(null===(o=ge[0])||void 0===o?void 0:o.key),{value:N}),2),rt=ot[0],it=ot[1],st=cb((function(e){it(e)})),lt=cb((function(){it(void 0)}));g(n,(function(){return{list:xe.current,focus:function(e){var t,n,o=Je(),r=ob(o,we),i=r.elements,a=r.key2element,s=r.element2key,l=tb(xe.current,i),c=null!=rt?rt:l[0]?s.get(l[0]):null===(t=ge.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var ct=Ei(A||[],{value:B,postState:function(e){return Array.isArray(e)?e:null==e?qb:[e]}}),ut=at(ct,2),dt=ut[0],pt=ut[1],ht=cb((function(e){null==ie||ie(mb(e)),function(e){if(T){var t,n=e.key,o=dt.includes(n);t=z?o?dt.filter((function(e){return e!==n})):[].concat(Ze(dt),[n]):[n],pt(t);var r=J(J({},e),{},{selectedKeys:t});o?null==F||F(r):null==H||H(r)}!z&&ke.length&&"inline"!==De&&$e(qb)}(e)})),ft=cb((function(e,t){var n=ke.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==De){var o=et(e);n=n.filter((function(e){return!o.has(e)}))}Ct(ke,n,!0)||$e(n,!0)})),gt=rb(De,rt,Ce,we,xe,Je,Qe,it,(function(e,t){var n=null!=t?t:!ke.includes(e);ft(e,n)}),se);e.useEffect((function(){ye(!0)}),[]);var mt=e.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),vt="horizontal"!==De||C?ge:ge.map((function(t,n){return e.createElement(Dv,{key:t.key,overflowDisabled:n>Ve},t)})),bt=e.createElement(jh,I({id:v,ref:xe,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Eb,className:L(s,"".concat(s,"-root"),"".concat(s,"-").concat(De),u,(r={},Z(r,"".concat(s,"-inline-collapsed"),Be),Z(r,"".concat(s,"-rtl"),Ce),r),l),dir:m,style:c,role:"menu",tabIndex:p,data:vt,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,o=n?ge.slice(-n):null;return e.createElement(zb,{eventKey:sb,title:ne,disabled:Ue,internalPopupClose:0===n,popupClassName:oe},o)},maxCount:"horizontal"!==De||C?jh.INVALIDATE:jh.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){We(e)},onKeyDown:gt},he));return e.createElement(Wv.Provider,{value:mt},e.createElement(Lv.Provider,{value:we},e.createElement(Dv,{prefixCls:s,rootClassName:l,mode:De,openKeys:ke,rtl:Ce,disabled:w,motion:be?U:null,defaultMotions:be?X:null,activeKey:rt,onActive:st,onInactive:lt,selectedKeys:dt,inlineIndent:W,subMenuOpenDelay:k,subMenuCloseDelay:$,forceSubMenuRender:M,builtinPlacements:Y,triggerSubMenuAction:K,getPopupContainer:re,itemIcon:Q,expandIcon:ee,onItemClick:ht,onOpenChange:ft},e.createElement(Vv.Provider,{value:nt},bt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(Av.Provider,{value:tt},me)))))})),Kb=Gb;Kb.Item=Eb,Kb.SubMenu=zb,Kb.ItemGroup=Fb,Kb.Divider=Ab;var Yb={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"},Zb=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:Yb}))},Qb=e.forwardRef(Zb);"production"!==process.env.NODE_ENV&&(Qb.displayName="BarsOutlined");var Jb={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"},ey=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:Jb}))},ty=e.forwardRef(ey);"production"!==process.env.NODE_ENV&&(ty.displayName="LeftOutlined");const ny=e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var oy=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ry={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},iy=e.createContext({}),ay=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),sy=e.forwardRef(((t,n)=>{const{prefixCls:o,className:i,trigger:s,children:c,defaultCollapsed:u=!1,theme:p="dark",style:h={},collapsible:f=!1,reverseArrow:g=!1,width:m=200,collapsedWidth:v=80,zeroWidthTriggerStyle:b,breakpoint:y,onCollapse:x,onBreakpoint:w}=t,C=oy(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:E}=r(ny),[S,k]=d("collapsed"in t?t.collapsed:u),[O,$]=d(!1);l((()=>{"collapsed"in t&&k(t.collapsed)}),[t.collapsed]);const M=(e,n)=>{"collapsed"in t||k(e),null==x||x(e,n)},_=a();_.current=e=>{$(e.matches),null==w||w(e.matches),S!==e.matches&&M(e.matches,"responsive")},l((()=>{function e(e){return _.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&y&&y in ry){t=n(`screen and (max-width: ${ry[y]})`);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)}}}),[y]),l((()=>{const e=ay("ant-sider-");return E.addSider(e),()=>E.removeSider(e)}),[]);const P=()=>{M(!S,"clickTrigger")},{getPrefixCls:N}=r(ai),I=e.useMemo((()=>({siderCollapsed:S})),[S]);return e.createElement(iy.Provider,{value:I},(()=>{const t=N("layout-sider",o),r=qe(C,["collapsed"]),a=S?v:m,l=(u=a,!isNaN(parseFloat(u))&&isFinite(u)?`${a}px`:String(a));var u;const d=0===parseFloat(String(v||0))?e.createElement("span",{onClick:P,className:L(`${t}-zero-width-trigger`,`${t}-zero-width-trigger-${g?"right":"left"}`),style:b},s||e.createElement(Qb,null)):null,y={expanded:g?e.createElement(Cv,null):e.createElement(ty,null),collapsed:g?e.createElement(ty,null):e.createElement(Cv,null)}[S?"collapsed":"expanded"],x=null!==s?d||e.createElement("div",{className:`${t}-trigger`,onClick:P,style:{width:l}},s||y):null,w=Object.assign(Object.assign({},h),{flex:`0 0 ${l}`,maxWidth:l,minWidth:l,width:l}),E=L(t,`${t}-${p}`,{[`${t}-collapsed`]:!!S,[`${t}-has-trigger`]:f&&null!==s&&!d,[`${t}-below`]:!!O,[`${t}-zero-width`]:0===parseFloat(l)},i);return e.createElement("aside",Object.assign({className:E},r,{style:w,ref:n}),e.createElement("div",{className:`${t}-children`},c),f||O&&d?x:null)})())}));"production"!==process.env.NODE_ENV&&(sy.displayName="Sider");var ly={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"},cy=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:ly}))},uy=e.forwardRef(cy);"production"!==process.env.NODE_ENV&&(uy.displayName="EllipsisOutlined");const dy=i({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var py=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const hy=t=>{const{prefixCls:n,className:o,dashed:r}=t,i=py(t,["prefixCls","className","dashed"]),{getPrefixCls:a}=e.useContext(ai),s=a("menu",n),l=L({[`${s}-item-divider-dashed`]:!!r},o);return e.createElement(Ab,Object.assign({className:l},i))},fy=t=>{var n;const{className:o,children:r,icon:i,title:a,danger:s}=t,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:p}=e.useContext(dy),{siderCollapsed:h}=e.useContext(iy);let f=a;void 0===a?f=c?r:"":!1===a&&(f="");const g={title:f};h||p||(g.title=null,g.open=!1);const m=B(r).length;let v=e.createElement(Eb,Object.assign({},qe(t,["title","icon","danger"]),{className:L({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(i?m+1:m)},o),title:"string"==typeof a?a:void 0}),Gs(i,{className:L(e.isValidElement(i)?null===(n=i.props)||void 0===n?void 0:n.className:"",`${l}-item-icon`)}),(t=>{const n=e.createElement("span",{className:`${l}-title-content`},r);return(!i||e.isValidElement(r)&&"span"===r.type)&&r&&t&&c&&"string"==typeof r?e.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):n})(p));return d||(v=e.createElement(Wm,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),v)),v},gy=e.createContext(null),my=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${Ft(i)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\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"}}}},vy=e=>{let{componentCls:t,menuArrowOffset:n,calc:o}=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(${Ft(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ft(n)})`}}}}},by=e=>Object.assign({},Yi(e)),yy=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:h,motionEaseOut:f,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:k,popupBg:O,itemHoverBg:$,itemActiveBg:M,menuSubMenuBg:_,horizontalItemSelectedColor:P,horizontalItemSelectedBg:N,horizontalItemBorderRadius:L,horizontalItemHoverBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:Object.assign({},by(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},by(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:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:M}}},[`${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:r,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${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:L,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Ft(c)} solid transparent`,transition:`border-color ${p} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:I,"&::after":{borderBottomWidth:c,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:c,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ft(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ft(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(",")}}}}}},xy=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Ft(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ft(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},wy=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:f,collapsedWidth:g,collapsedIconSize:m}=e,v={height:o,lineHeight:Ft(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},xy(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},xy(e)),{boxShadow:f})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Ft(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 ${p}`,`background ${p}`,`padding ${s} ${l}`].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`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${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% - ${Ft(e.calc(d).div(2).equal())} - ${Ft(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:Ft(o),"+ 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:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},qi),{paddingInline:h})}}]},Cy=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=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} ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${o} ${i}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${r}`,`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"}}}},Ey=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,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} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Ft(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ft(a)})`}}}}},Sy=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:h,menuArrowSize:f,menuArrowOffset:g,lineType:m,groupTitleLineHeight:v,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({},Gi(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} 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:`${Ft(s)} ${Ft(l)}`,fontSize:b,lineHeight:v,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`,[`> ${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:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Cy(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ft(e.calc(o).mul(2).equal())} ${Ft(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,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:p},Cy(e)),Ey(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${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}}}),Ey(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ft(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Ft(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ft(e.calc(f).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ft(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ft(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},ky=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:h,lineWidthBold:f,controlItemBgActive:g,colorBgTextHover:m,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:w,fontSize:C,controlHeightSM:E,fontSizeLG:S,colorTextLightSolid:k,colorErrorHover:O}=e,$=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,M=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:h,_=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,P=new gr(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:f,activeBarHeight:f,colorActiveBarBorderSize:h,activeBarBorderWidth:M,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:_,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*v+"px",iconSize:C,iconMarginInlineEnd:E-C,collapsedIconSize:S,groupTitleFontSize:C,darkItemDisabledColor:new gr(k).setAlpha(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:k,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:$?`calc(100% + ${M}px)`:`calc(100% - ${2*_}px)`}};const Oy=t=>{var n;const{popupClassName:o,icon:r,title:i,theme:a}=t,s=e.useContext(dy),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=Fv();let p;if(r){const t=e.isValidElement(i)&&"span"===i.type;p=e.createElement(e.Fragment,null,Gs(r,{className:L(e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:"",`${l}-item-icon`)}),t?i:e.createElement("span",{className:`${l}-title-content`},i))}else p=c&&!d.length&&i&&"string"==typeof i?e.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):e.createElement("span",{className:`${l}-title-content`},i);const h=e.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[f]=rl("Menu");return e.createElement(dy.Provider,{value:h},e.createElement(zb,Object.assign({},qe(t,["icon"]),{title:p,popupClassName:L(l,o,`${l}-${a||u}`),popupStyle:{zIndex:f}})))};var $y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function My(e){return null===e||!1===e}const _y={item:fy,submenu:Oy,divider:hy},Py=c(((t,n)=>{var o;const r=e.useContext(gy),i=r||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=e.useContext(ai),u=a(),{prefixCls:d,className:p,style:h,theme:f="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:x,selectable:w,onClick:C,overflowedIndicatorPopupClassName:E}=t,S=qe($y(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const e=jo("Menu");"production"!==process.env.NODE_ENV&&e(!("inlineCollapsed"in t&&"inline"!==x),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&e(!(void 0!==t.siderCollapsed&&"inlineCollapsed"in t),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),e.deprecated("items"in t&&!t.children,"children","items")}null===(o=i.validator)||void 0===o||o.call(i,{mode:x});const k=xi((function(){var e;null==C||C.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),O=i.mode||x,$=null!=w?w:i.selectable,M=e.useMemo((()=>void 0!==b?b:v),[v,b]),_={horizontal:{motionName:`${u}-slide-up`},inline:kl(u),other:{motionName:`${u}-zoom-big`}},P=a("menu",d||i.prefixCls),N=Ks(P),[I,j,R]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Ji("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:r,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:p,darkItemHoverColor:h,darkItemDisabledColor:f,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:m,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(o).div(7).mul(5).equal(),w=$i(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=$i(w,{itemColor:r,itemHoverColor:h,groupTitleColor:p,itemSelectedColor:l,itemBg:a,popupBg:y,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:f,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:m,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[Sy(w),my(w),wy(w),yy(w,"light"),yy(C,"dark"),vy(w),tp(w),kp(w,"slide-up"),kp(w,"slide-down"),Ip(w,"zoom-big")]}),ky,{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)}(P,N,!r),T=L(`${P}-${f}`,null==c?void 0:c.className,p),D=e.useMemo((()=>{var t,n;if("function"==typeof g||My(g))return g||null;if("function"==typeof i.expandIcon||My(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||My(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const o=null!==(t=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==t?t:null==c?void 0:c.expandIcon;return Gs(o,{className:L(`${P}-submenu-expand-icon`,e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,P]),z=e.useMemo((()=>({prefixCls:P,inlineCollapsed:M||!1,direction:l,firstLevel:!0,theme:f,mode:O,disableMenuItemTitleTooltip:m})),[P,M,l,m,f]);return I(e.createElement(gy.Provider,{value:null},e.createElement(dy.Provider,{value:z},e.createElement(Kb,Object.assign({getPopupContainer:s,overflowedIndicator:e.createElement(uy,null),overflowedIndicatorPopupClassName:L(P,`${P}-${f}`,E),mode:O,selectable:$,onClick:k},S,{inlineCollapsed:M,style:Object.assign(Object.assign({},null==c?void 0:c.style),h),className:T,prefixCls:P,direction:l,defaultMotions:_,expandIcon:D,ref:n,rootClassName:L(y,j,i.rootClassName,R,N),_internalComponents:_y})))))})),Ny=c(((t,n)=>{const o=a(null),r=e.useContext(iy);return g(n,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),e.createElement(Py,Object.assign({ref:o},t,r))}));Ny.Item=fy,Ny.SubMenu=Oy,Ny.Divider=hy,Ny.ItemGroup=Fb,"production"!==process.env.NODE_ENV&&(Ny.displayName="Menu");var Ly=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Iy=c((function(t,n){var o=t.prefixCls,r=void 0===o?"rc-checkbox":o,i=t.className,s=t.style,l=t.checked,c=t.disabled,u=t.defaultChecked,d=void 0!==u&&u,p=t.type,h=void 0===p?"checkbox":p,f=t.title,m=t.onChange,v=wt(t,Ly),b=a(null),y=a(null),x=at(Ei(d,{value:l}),2),w=x[0],C=x[1];g(n,(function(){return{focus:function(e){var t;null===(t=b.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=b.current)||void 0===e||e.blur()},input:b.current,nativeElement:y.current}}));var E=L(r,i,Z(Z({},"".concat(r,"-checked"),w),"".concat(r,"-disabled"),c));return e.createElement("span",{className:E,title:f,style:s,ref:y},e.createElement("input",I({},v,{className:"".concat(r,"-input"),ref:b,onChange:function(e){c||("checked"in t||C(e.target.checked),null==m||m({target:J(J({},t),{},{type:h,checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},disabled:c,checked:!!w,type:h})),e.createElement("span",{className:"".concat(r,"-inner")}))}));function jy(e){return $i(e,{inputAffixPadding:e.paddingXXS})}const Ry=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:h,colorPrimary:f,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*o)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((i-n*o)/2*10)/10-r,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-r,paddingInline:c-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:p,activeBorderColor:f,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},Ty=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Dy=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({},Ty($i(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),zy=(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}}),Ay=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},zy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),By=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zy(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Dy(e))}),Ay(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ay(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Hy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Fy=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Hy(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Hy(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Dy(e))}})}),Vy=(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)}},Wy=(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}}),Uy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Wy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Xy=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wy(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Dy(e))}),Uy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Uy(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),qy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Gy=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:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},qy(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),qy(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:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Ky=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${Ft(t)} ${Ft(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},Yy=e=>({padding:`${Ft(e.paddingBlockSM)} ${Ft(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Zy=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ft(e.paddingBlock)} ${Ft(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},(e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}))(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Ky(e)),"&-sm":Object.assign({},Yy(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Qy=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({},Ky(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Yy(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 ${Ft(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ft(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ft(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:`${Ft(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ft(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}}}})}},Jy=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,i=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gi(e)),Zy(e)),By(e)),Xy(e)),Vy(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"}})}},ex=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 ${Ft(e.inputAffixPadding)}`}}}},tx=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Zy(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:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),ex(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}})}},nx=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Gi(e)),Qy(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:o}}},Fy(e)),Gy(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}}})})}},ox=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-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,[`${o}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${o}-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}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-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}}}}},rx=e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[o]:{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${o}-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},[`${o}-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}}}}}},ix=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var ax=Ji("Input",(e=>{const t=$i(e,jy(e));return[Jy(t),rx(t),tx(t),nx(t),ox(t),ix(t),$c(t)]}),Ry,{resetFont:!1}),sx={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"},lx=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:sx}))},cx=e.forwardRef(lx);"production"!==process.env.NODE_ENV&&(cx.displayName="PlusOutlined");var ux=i(null),dx={width:0,height:0,left:0,top:0};function px(t,n){var o=e.useRef(t),r=at(e.useState({}),2)[1];return[o.current,function(e){var t="function"==typeof e?e(o.current):e;t!==o.current&&n(t,o.current),o.current=t,r({})}]}var hx=Math.pow(.995,20);function fx(e){var t=at(d(0),2),n=t[0],o=t[1],r=a(0),i=a();return i.current=e,Kt((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){r.current===n&&(r.current+=1,o(r.current))}}var gx={width:0,height:0,left:0,top:0,right:0};function mx(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function vx(e){return String(e).replace(/"/g,"TABS_DQ")}function bx(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var yx=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.editable,i=t.locale,a=t.style;return r&&!1!==r.showAdd?e.createElement("button",{ref:n,type:"button",className:"".concat(o,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null})),xx=e.forwardRef((function(t,n){var o,r=t.position,i=t.prefixCls,a=t.extra;if(!a)return null;var s={};return"object"!==K(a)||e.isValidElement(a)?s.right=a:s=a,"right"===r&&(o=s.right),"left"===r&&(o=s.left),o?e.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},o):null}));"production"!==process.env.NODE_ENV&&(xx.displayName="ExtraContent");var wx=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.id,i=t.tabs,a=t.locale,s=t.mobile,c=t.more,u=void 0===c?{}:c,p=t.style,h=t.className,f=t.editable,g=t.tabBarGutter,m=t.rtl,v=t.removeAriaLabel,b=t.onTabClick,y=t.getPopupContainer,x=t.popupClassName,w=at(d(!1),2),C=w[0],E=w[1],S=at(d(null),2),k=S[0],O=S[1],$=u.icon,M=void 0===$?"More":$,_="".concat(r,"-more-popup"),P="".concat(o,"-dropdown"),N=null!==k?"".concat(_,"-").concat(k):null,j=null==a?void 0:a.dropdownAriaLabel;var R=e.createElement(Kb,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),E(!1)},prefixCls:"".concat(P,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[k],"aria-label":void 0!==j?j:"expanded dropdown"},i.map((function(t){var n=t.closable,o=t.disabled,i=t.closeIcon,a=t.key,s=t.label,l=bx(n,i,f,o);return e.createElement(Eb,{key:a,id:"".concat(_,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:o},e.createElement("span",null,s),l&&e.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,a)}},i||f.removeIcon||"×"))})));function T(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,o=t.length,r=0;r<o;r+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void O(a.key)}}l((function(){var e=document.getElementById(N);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),l((function(){C||O(null)}),[C]);var D=Z({},m?"marginRight":"marginLeft",g);i.length||(D.visibility="hidden",D.order=1);var z=L(Z({},"".concat(P,"-rtl"),m)),A=s?null:e.createElement(Nv,I({prefixCls:P,overlay:R,visible:!!i.length&&C,onVisibleChange:E,overlayClassName:L(z,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},u),e.createElement("button",{type:"button",className:"".concat(o,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":_,id:"".concat(r,"-more"),"aria-expanded":C,onKeyDown:function(e){var t=e.which;if(C)switch(t){case Ys.UP:T(-1),e.preventDefault();break;case Ys.DOWN:T(1),e.preventDefault();break;case Ys.ESC:E(!1);break;case Ys.SPACE:case Ys.ENTER:null!==k&&b(k,e)}else[Ys.DOWN,Ys.SPACE,Ys.ENTER].includes(t)&&(E(!0),e.preventDefault())}},M));return e.createElement("div",{className:L("".concat(o,"-nav-operations"),h),style:p,ref:n},A,e.createElement(yx,{prefixCls:o,locale:a,editable:f}))})),Cx=e.memo(wx,(function(e,t){return t.tabMoving})),Ex=function(t){var n=t.prefixCls,o=t.id,r=t.active,i=t.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,d=t.closable,p=t.renderWrapper,h=t.removeAriaLabel,f=t.editable,g=t.onClick,m=t.onFocus,v=t.style,b="".concat(n,"-tab"),y=bx(d,c,f,l);function x(e){l||g(e)}var w=e.useMemo((function(){return u&&"string"==typeof s?e.createElement("span",null,s):s}),[s,u]),C=e.createElement("div",{key:a,"data-node-key":vx(a),className:L(b,Z(Z(Z({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),r),"".concat(b,"-disabled"),l)),style:v,onClick:x},e.createElement("div",{role:"tab","aria-selected":r,id:o&&"".concat(o,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":o&&"".concat(o,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[Ys.SPACE,Ys.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:m},u&&e.createElement("span",{className:"".concat(b,"-icon")},u),s&&w),y&&e.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),f.onEdit("remove",{key:a,event:t})}},c||f.removeIcon||"×"));return p?p(C):C},Sx=function(e){var t=e.current||{},n=t.offsetWidth,o=void 0===n?0:n,r=t.offsetHeight,i=void 0===r?0:r;if(e.current){var a=e.current.getBoundingClientRect(),s=a.width,l=a.height;if(Math.abs(s-o)<1)return[s,l]}return[o,i]},kx=function(e,t){return e[t?0:1]},Ox=e.forwardRef((function(n,o){var r,i,s,c,p,h=n.className,f=n.style,g=n.id,m=n.animated,v=n.activeKey,b=n.rtl,y=n.extra,x=n.editable,w=n.locale,C=n.tabPosition,E=n.tabBarGutter,S=n.children,k=n.onTabClick,O=n.onTabScroll,$=n.indicator,M=e.useContext(ux),_=M.prefixCls,P=M.tabs,N=a(null),j=a(null),R=a(null),T=a(null),D=a(null),z=a(null),A=a(null),B="top"===C||"bottom"===C,H=px(0,(function(e,t){B&&O&&O({direction:e>t?"left":"right"})})),F=at(H,2),V=F[0],W=F[1],U=px(0,(function(e,t){!B&&O&&O({direction:e>t?"top":"bottom"})})),X=at(U,2),q=X[0],G=X[1],K=at(d([0,0]),2),Y=K[0],Q=K[1],ee=at(d([0,0]),2),te=ee[0],ne=ee[1],oe=at(d([0,0]),2),re=oe[0],ae=oe[1],se=at(d([0,0]),2),le=se[0],ce=se[1],ue=(r=new Map,i=a([]),s=at(d({}),2)[1],c=a("function"==typeof r?r():r),p=fx((function(){var e=c.current;i.current.forEach((function(t){e=t(e)})),i.current=[],c.current=e,s({})})),[c.current,function(e){i.current.push(e),p()}]),de=at(ue,2),pe=de[0],he=de[1],fe=function(e,t,n){return u((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||dx,i=r.left+r.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||dx);var u=o.get(l)||J({},c);u.right=i-u.left-u.width,o.set(l,u)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(P,pe,te[0]),ge=kx(Y,B),me=kx(te,B),ve=kx(re,B),be=kx(le,B),ye=ge<me+ve,xe=ye?ge-be:ge-ve,we="".concat(_,"-nav-operations-hidden"),Ce=0,Ee=0;function Se(e){return e<Ce?Ce:e>Ee?Ee:e}B&&b?(Ce=0,Ee=Math.max(0,me-xe)):(Ce=Math.min(0,xe-me),Ee=0);var ke=a(null),Oe=at(d(),2),$e=Oe[0],Me=Oe[1];function _e(){Me(Date.now())}function Pe(){ke.current&&clearTimeout(ke.current)}!function(t,n){var o=at(d(),2),r=o[0],i=o[1],s=at(d(0),2),l=s[0],c=s[1],u=at(d(0),2),p=u[0],h=u[1],f=at(d(),2),g=f[0],m=f[1],v=a(),b=a(),y=a(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;i({x:n,y:o}),window.clearInterval(v.current)},onTouchMove:function(e){if(r){e.preventDefault();var t=e.touches[0],o=t.screenX,a=t.screenY;i({x:o,y:a});var s=o-r.x,u=a-r.y;n(s,u);var d=Date.now();c(d),h(d-l),m({x:s,y:u})}},onTouchEnd:function(){if(r&&(i(null),m(null),g)){var e=g.x/p,t=g.y/p,o=Math.abs(e),a=Math.abs(t);if(Math.max(o,a)<.1)return;var s=e,l=t;v.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(v.current):n(20*(s*=hx),20*(l*=hx))}),20)}},onWheel:function(e){var t=e.deltaX,o=e.deltaY,r=0,i=Math.abs(t),a=Math.abs(o);i===a?r="x"===b.current?t:o:i>a?(r=t,b.current="x"):(r=o,b.current="y"),n(-r,-r)&&e.preventDefault()}},e.useEffect((function(){function e(e){y.current.onTouchMove(e)}function n(e){y.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){y.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){y.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 Se(e+t)}))}return!!ye&&(B?n(W,e):n(G,t),Pe(),_e(),!0)})),l((function(){return Pe(),$e&&(ke.current=setTimeout((function(){Me(0)}),100)),Pe}),[$e]);var Ne=function(e,t,n,o,r,i,a){var s,l,c,d=a.tabs,p=a.tabPosition,h=a.rtl;return["top","bottom"].includes(p)?(s="width",l=h?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),u((function(){if(!d.length)return[0,0];for(var n=d.length,o=n,r=0;r<n;r+=1){var i=e.get(d[r].key)||gx;if(i[l]+i[s]>c+t){o=r-1;break}}for(var a=0,u=n-1;u>=0;u-=1)if((e.get(d[u].key)||gx)[l]<c){a=u+1;break}return a>=o?[0,0]:[a,o]}),[e,t,o,r,i,c,p,d.map((function(e){return e.key})).join("_"),h])}(fe,xe,B?V:q,me,ve,be,J(J({},n),{},{tabs:P})),Le=at(Ne,2),Ie=Le[0],je=Le[1],Re=xi((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=fe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(B){var n=V;b?t.right<V?n=t.right:t.right+t.width>V+xe&&(n=t.right+t.width-xe):t.left<-V?n=-t.left:t.left+t.width>-V+xe&&(n=-(t.left+t.width-xe)),G(0),W(Se(n))}else{var o=q;t.top<-q?o=-t.top:t.top+t.height>-q+xe&&(o=-(t.top+t.height-xe)),W(0),G(Se(o))}})),Te={};"top"===C||"bottom"===C?Te[b?"marginRight":"marginLeft"]=E:Te.marginTop=E;var De=P.map((function(t,n){var o=t.key;return e.createElement(Ex,{id:g,prefixCls:_,key:o,tab:t,style:0===n?void 0:Te,closable:t.closable,editable:x,active:o===v,renderWrapper:S,removeAriaLabel:null==w?void 0:w.removeAriaLabel,onClick:function(e){k(o,e)},onFocus:function(){Re(o),_e(),T.current&&(b||(T.current.scrollLeft=0),T.current.scrollTop=0)}})})),ze=function(){return he((function(){var e,t=new Map,n=null===(e=D.current)||void 0===e?void 0:e.getBoundingClientRect();return P.forEach((function(e){var o,r=e.key,i=null===(o=D.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(vx(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.x,u=a.y;return Math.abs(s-n)<1?[s,l,c-t.x,u-t.y]:[n,o,i,r]}(i,n),s=at(a,4),l=s[0],c=s[1],u=s[2],d=s[3];t.set(r,{width:l,height:c,left:u,top:d})}})),t}))};l((function(){ze()}),[P.map((function(e){return e.key})).join("_")]);var Ae=fx((function(){var e=Sx(N),t=Sx(j),n=Sx(R);Q([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=Sx(A);ae(o);var r=Sx(z);ce(r);var i=Sx(D);ne([i[0]-o[0],i[1]-o[1]]),ze()})),Be=P.slice(0,Ie),He=P.slice(je+1),Fe=[].concat(Ze(Be),Ze(He)),Ve=fe.get(v),We=function(e){var n=e.activeTabOffset,o=e.horizontal,r=e.rtl,i=e.indicator,s=void 0===i?{}:i,c=s.size,u=s.align,p=void 0===u?"center":u,h=at(d(),2),f=h[0],g=h[1],m=a(),v=t.useCallback((function(e){return"function"==typeof c?c(e):"number"==typeof c?c:e}),[c]);function b(){ot.cancel(m.current)}return l((function(){var e={};if(n)if(o){e.width=v(n.width);var t=r?"right":"left";"start"===p&&(e[t]=n[t]),"center"===p&&(e[t]=n[t]+n.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===p&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=v(n.height),"start"===p&&(e.top=n.top),"center"===p&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===p&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return b(),m.current=ot((function(){g(e)})),b}),[n,o,r,p,v]),{style:f}}({activeTabOffset:Ve,horizontal:B,indicator:$,rtl:b}),Ue=We.style;l((function(){Re()}),[v,Ce,Ee,mx(Ve),mx(fe),B]),l((function(){Ae()}),[b]);var qe,Ge,Ke,Ye,Qe=!!Fe.length,Je="".concat(_,"-nav-wrap");return B?b?(Ge=V>0,qe=V!==Ee):(qe=V<0,Ge=V!==Ce):(Ke=q<0,Ye=q!==Ce),e.createElement(Xe,{onResize:Ae},e.createElement("div",{ref:ie(o,N),role:"tablist",className:L("".concat(_,"-nav"),h),style:f,onKeyDown:function(){_e()}},e.createElement(xx,{ref:j,position:"left",extra:y,prefixCls:_}),e.createElement(Xe,{onResize:Ae},e.createElement("div",{className:L(Je,Z(Z(Z(Z({},"".concat(Je,"-ping-left"),qe),"".concat(Je,"-ping-right"),Ge),"".concat(Je,"-ping-top"),Ke),"".concat(Je,"-ping-bottom"),Ye)),ref:T},e.createElement(Xe,{onResize:Ae},e.createElement("div",{ref:D,className:"".concat(_,"-nav-list"),style:{transform:"translate(".concat(V,"px, ").concat(q,"px)"),transition:$e?"none":void 0}},De,e.createElement(yx,{ref:A,prefixCls:_,locale:w,editable:x,style:J(J({},0===De.length?void 0:Te),{},{visibility:Qe?"hidden":null})}),e.createElement("div",{className:L("".concat(_,"-ink-bar"),Z({},"".concat(_,"-ink-bar-animated"),m.inkBar)),style:Ue}))))),e.createElement(Cx,I({},n,{removeAriaLabel:null==w?void 0:w.removeAriaLabel,ref:z,prefixCls:_,tabs:Fe,className:!Qe&&we,tabMoving:!!$e})),e.createElement(xx,{ref:R,position:"right",extra:y,prefixCls:_})))})),$x=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.className,i=t.style,a=t.id,s=t.active,l=t.tabKey,c=t.children;return e.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!s,style:i,className:L(o,s&&"".concat(o,"-active"),r),ref:n},c)}));"production"!==process.env.NODE_ENV&&($x.displayName="TabPane");var Mx=["renderTabBar"],_x=["label","key"],Px=function(t){var n=t.renderTabBar,o=wt(t,Mx),r=e.useContext(ux).tabs;return n?n(J(J({},o),{},{panes:r.map((function(t){var n=t.label,o=t.key,r=wt(t,_x);return e.createElement($x,I({tab:n,key:o,tabKey:o},r))}))}),Ox):e.createElement(Ox,o)};"production"!==process.env.NODE_ENV&&(Px.displayName="TabNavListWrapper");var Nx=["key","forceRender","style","className","destroyInactiveTabPane"],Lx=function(t){var n=t.id,o=t.activeKey,r=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=e.useContext(ux),l=s.prefixCls,c=s.tabs,u=r.tabPane,d="".concat(l,"-tabpane");return e.createElement("div",{className:L("".concat(l,"-content-holder"))},e.createElement("div",{className:L("".concat(l,"-content"),"".concat(l,"-content-").concat(i),Z({},"".concat(l,"-content-animated"),u))},c.map((function(t){var i=t.key,s=t.forceRender,l=t.style,c=t.className,p=t.destroyInactiveTabPane,h=wt(t,Nx),f=i===o;return e.createElement(Ha,I({key:i,visible:f,forceRender:s,removeOnLeave:!(!a&&!p),leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),(function(t,o){var r=t.style,a=t.className;return e.createElement($x,I({},h,{prefixCls:d,id:n,tabKey:i,animated:u,active:f,style:J(J({},l),r),className:L(c,a),ref:o}))}))}))))};var Ix=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],jx=0,Rx=e.forwardRef((function(t,n){var o=t.id,r=t.prefixCls,i=void 0===r?"rc-tabs":r,a=t.className,s=t.items,c=t.direction,u=t.activeKey,p=t.defaultActiveKey,h=t.editable,f=t.animated,g=t.tabPosition,m=void 0===g?"top":g,v=t.tabBarGutter,b=t.tabBarStyle,y=t.tabBarExtraContent,x=t.locale,w=t.more,C=t.destroyInactiveTabPane,E=t.renderTabBar,S=t.onChange,k=t.onTabClick,O=t.onTabScroll,$=t.getPopupContainer,M=t.popupClassName,_=t.indicator,P=wt(t,Ix),N=e.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===K(e)&&"key"in e}))}),[s]),j="rtl"===c,R=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"===K(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&q(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(f),T=at(d(!1),2),D=T[0],z=T[1];l((function(){z(hh())}),[]);var A=at(Ei((function(){var e;return null===(e=N[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:p}),2),B=A[0],H=A[1],F=at(d((function(){return N.findIndex((function(e){return e.key===B}))})),2),V=F[0],W=F[1];l((function(){var e,t=N.findIndex((function(e){return e.key===B}));-1===t&&(t=Math.max(0,Math.min(V,N.length-1)),H(null===(e=N[t])||void 0===e?void 0:e.key));W(t)}),[N.map((function(e){return e.key})).join("_"),B,V]);var U=at(Ei(null,{value:o}),2),X=U[0],G=U[1];l((function(){o||(G("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":jx)),jx+=1)}),[]);var Y={id:X,activeKey:B,animated:R,tabPosition:m,rtl:j,mobile:D},Q=J(J({},Y),{},{editable:h,locale:x,more:w,tabBarGutter:v,onTabClick:function(e,t){null==k||k(e,t);var n=e!==B;H(e),n&&(null==S||S(e))},onTabScroll:O,extra:y,style:b,panes:null,getPopupContainer:$,popupClassName:M,indicator:_});return e.createElement(ux.Provider,{value:{tabs:N,prefixCls:i}},e.createElement("div",I({ref:n,id:o,className:L(i,"".concat(i,"-").concat(m),Z(Z(Z({},"".concat(i,"-mobile"),D),"".concat(i,"-editable"),h),"".concat(i,"-rtl"),j),a)},P),e.createElement(Px,I({},Q,{renderTabBar:E})),e.createElement(Lx,I({destroyInactiveTabPane:C},Y,{animated:R}))))}));"production"!==process.env.NODE_ENV&&(Rx.displayName="Tabs");const Tx={motionAppear:!1,motionEnter:!0,motionLeave:!0};var Dx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const zx=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}`}}}}},[kp(e,"slide-up"),kp(e,"slide-down")]]},Ax=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${Ft(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:Ft(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Ft(e.borderRadiusLG)} ${Ft(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Ft(e.borderRadiusLG)} ${Ft(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Ft(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ft(e.borderRadiusLG)} 0 0 ${Ft(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 ${Ft(e.borderRadiusLG)} ${Ft(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Bx=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Gi(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:`${Ft(o)} 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({},qi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ft(e.paddingXXS)} ${Ft(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"}}})}})}},Hx=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ft(e.lineWidth)} ${e.lineType} ${o}`,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:s(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:Ft(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Fx=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,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 ${Ft(e.borderRadius)} ${Ft(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Ft(e.borderRadius)} ${Ft(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ft(e.borderRadius)} ${Ft(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ft(e.borderRadius)} 0 0 ${Ft(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},Vx=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{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:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Zi(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-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:o},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},Wx=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,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}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Ft(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ft(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ft(i(e.marginXXS).mul(-1).equal())},[o]:{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:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ux=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Gi(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:o,minHeight:o,marginLeft:{_skip_check_:!0,value:r},padding:`0 ${Ft(e.paddingXS)}`,background:"transparent",border:`${Ft(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Ft(e.borderRadiusLG)} ${Ft(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}},Zi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Vx(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 Xx=Ji("Tabs",(e=>{const t=$i(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ft(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ft(e.horizontalItemGutter)}`});return[Fx(t),Wx(t),Hx(t),Bx(t),Ax(t),Ux(t),zx(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 qx=()=>null;"production"!==process.env.NODE_ENV&&(qx.displayName="DeprecatedTabPane");var Gx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Kx=t=>{var n,o,r,i,a,s,l,c,u,d,p;const{type:h,className:f,rootClassName:g,size:m,onEdit:v,hideAdd:b,centered:y,addIcon:x,removeIcon:w,moreIcon:C,more:E,popupClassName:S,children:k,items:O,animated:$,style:M,indicatorSize:_,indicator:P}=t,N=Gx(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:I}=N,{direction:j,tabs:R,getPrefixCls:T,getPopupContainer:D}=e.useContext(ai),z=T("tabs",I),A=Ks(z),[H,F,V]=Xx(z,A);let W;"editable-card"===h&&(W={onEdit:(e,t)=>{let{key:n,event:o}=t;null==v||v("add"===e?o:n,e)},removeIcon:null!==(n=null!=w?w:null==R?void 0:R.removeIcon)&&void 0!==n?n:e.createElement(js,null),addIcon:(null!=x?x:null==R?void 0:R.addIcon)||e.createElement(cx,null),showAdd:!0!==b});const U=T();if("production"!==process.env.NODE_ENV){const e=jo("Tabs");"production"!==process.env.NODE_ENV&&e(!("onPrevClick"in t)&&!("onNextClick"in t),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&e(!(_||(null==R?void 0:R.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const X=Dl(m),q=function(t,n){"production"!==process.env.NODE_ENV&&jo("Tabs").deprecated(!n,"Tabs.TabPane","items");if(t)return t;const o=B(n).map((t=>{if(e.isValidElement(t)){const{key:e,props:n}=t,o=n||{},{tab:r}=o,i=Dx(o,["tab"]);return Object.assign(Object.assign({key:String(e)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(o)}(O,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({},Tx),{motionName:Ol(e,"switch")})),t}(z,$),K=Object.assign(Object.assign({},null==R?void 0:R.style),M),Y={align:null!==(o=null==P?void 0:P.align)&&void 0!==o?o:null===(r=null==R?void 0:R.indicator)||void 0===r?void 0:r.align,size:null!==(l=null!==(a=null!==(i=null==P?void 0:P.size)&&void 0!==i?i:_)&&void 0!==a?a:null===(s=null==R?void 0:R.indicator)||void 0===s?void 0:s.size)&&void 0!==l?l:null==R?void 0:R.indicatorSize};return H(e.createElement(Rx,Object.assign({direction:j,getPopupContainer:D},N,{items:q,className:L({[`${z}-${X}`]:X,[`${z}-card`]:["card","editable-card"].includes(h),[`${z}-editable-card`]:"editable-card"===h,[`${z}-centered`]:y},null==R?void 0:R.className,f,g,F,V,A),popupClassName:L(S,F,V,A),style:K,editable:W,more:Object.assign({icon:null!==(p=null!==(d=null!==(u=null===(c=null==R?void 0:R.more)||void 0===c?void 0:c.icon)&&void 0!==u?u:null==R?void 0:R.moreIcon)&&void 0!==d?d:C)&&void 0!==p?p:e.createElement(uy,null),transitionName:`${U}-slide-up`},E),prefixCls:z,animated:G,indicator:Y})))};Kx.TabPane=qx,"production"!==process.env.NODE_ENV&&(Kx.displayName="Tabs");const Yx=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Gi(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Gi(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Gi(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Yi(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Ft(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Zx(e,t){const n=$i(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Yx(n)]}var Qx=Ji("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[Zx(n,e)]}));const Jx=t.createContext(null);var ew=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const tw=(t,n)=>{var o;const{prefixCls:r,className:i,rootClassName:a,children:s,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:p=!1,disabled:h}=t,f=ew(t,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:m,checkbox:v}=e.useContext(ai),b=e.useContext(Jx),{isFormItemInput:y}=e.useContext(md),x=e.useContext(ci),w=null!==(o=(null==b?void 0:b.disabled)||h)&&void 0!==o?o:x,C=e.useRef(f.value);if("production"!==process.env.NODE_ENV){const e=jo("Checkbox");"production"!==process.env.NODE_ENV&&e("checked"in f||!!b||!("value"in f),"usage","`value` is not a valid prop, do you mean `checked`?")}e.useEffect((()=>{null==b||b.registerValue(f.value)}),[]),e.useEffect((()=>{if(!p)return f.value!==C.current&&(null==b||b.cancelValue(C.current),null==b||b.registerValue(f.value),C.current=f.value),()=>null==b?void 0:b.cancelValue(f.value)}),[f.value]);const E=g("checkbox",r),S=Ks(E),[k,O,$]=Qx(E,S),M=Object.assign({},f);b&&!p&&(M.onChange=function(){f.onChange&&f.onChange.apply(f,arguments),b.toggleOption&&b.toggleOption({label:s,value:f.value})},M.name=b.name,M.checked=b.value.includes(f.value));const _=L(`${E}-wrapper`,{[`${E}-rtl`]:"rtl"===m,[`${E}-wrapper-checked`]:M.checked,[`${E}-wrapper-disabled`]:w,[`${E}-wrapper-in-form-item`]:y},null==v?void 0:v.className,i,a,$,S,O),P=L({[`${E}-indeterminate`]:l},Pl,O),N=l?"mixed":void 0;return k(e.createElement(Tl,{component:"Checkbox",disabled:w},e.createElement("label",{className:_,style:Object.assign(Object.assign({},null==v?void 0:v.style),c),onMouseEnter:u,onMouseLeave:d},e.createElement(Iy,Object.assign({"aria-checked":N},M,{prefixCls:E,className:P,disabled:w,ref:n})),void 0!==s&&e.createElement("span",null,s))))},nw=e.forwardRef(tw);"production"!==process.env.NODE_ENV&&(nw.displayName="Checkbox");var ow=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const rw=e.forwardRef(((t,n)=>{const{defaultValue:o,children:r,options:i=[],prefixCls:a,className:s,rootClassName:l,style:c,onChange:u}=t,d=ow(t,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:h}=e.useContext(ai),[f,g]=e.useState(d.value||o||[]),[m,v]=e.useState([]);e.useEffect((()=>{"value"in d&&g(d.value||[])}),[d.value]);const b=e.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),y=p("checkbox",a),x=`${y}-group`,w=Ks(y),[C,E,S]=Qx(y,w),k=qe(d,["value","disabled"]),O=i.length?b.map((t=>e.createElement(nw,{prefixCls:y,key:t.value.toString(),disabled:"disabled"in t?t.disabled:d.disabled,value:t.value,checked:f.includes(t.value),onChange:t.onChange,className:`${x}-item`,style:t.style,title:t.title,id:t.id,required:t.required},t.label))):r,$={toggleOption:e=>{const t=f.indexOf(e.value),n=Ze(f);-1===t?n.push(e.value):n.splice(t,1),"value"in d||g(n),null==u||u(n.filter((e=>m.includes(e))).sort(((e,t)=>b.findIndex((t=>t.value===e))-b.findIndex((e=>e.value===t)))))},value:f,disabled:d.disabled,name:d.name,registerValue:e=>{v((t=>[].concat(Ze(t),[e])))},cancelValue:e=>{v((t=>t.filter((t=>t!==e))))}},M=L(x,{[`${x}-rtl`]:"rtl"===h},s,l,S,w,E);return C(e.createElement("div",Object.assign({className:M,style:c},k,{ref:n}),e.createElement(Jx.Provider,{value:$},O)))})),iw=nw;iw.Group=rw,iw.__ANT_CHECKBOX=!0,"production"!==process.env.NODE_ENV&&(iw.displayName="Checkbox");var aw=t.forwardRef((function(e,n){var o=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=at(t.useState(l||r),2),d=u[0],p=u[1];return t.useEffect((function(){(r||l)&&p(!0)}),[r,l]),d?t.createElement("div",{ref:n,className:L("".concat(o,"-content"),Z(Z({},"".concat(o,"-content-active"),l),"".concat(o,"-content-inactive"),!l),i),style:a,role:c},t.createElement("div",{className:"".concat(o,"-content-box")},s)):null}));aw.displayName="PanelContent";var sw=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],lw=t.forwardRef((function(e,n){var o=e.showArrow,r=void 0===o||o,i=e.headerClass,a=e.isActive,s=e.onItemClick,l=e.forceRender,c=e.className,u=e.prefixCls,d=e.collapsible,p=e.accordion,h=e.panelKey,f=e.extra,g=e.header,m=e.expandIcon,v=e.openMotion,b=e.destroyInactivePanel,y=e.children,x=wt(e,sw),w="disabled"===d,C="header"===d,E="icon"===d,S=null!=f&&"boolean"!=typeof f,k=function(){null==s||s(h)},O="function"==typeof m?m(e):t.createElement("i",{className:"arrow"});O&&(O=t.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?k:void 0},O));var $=L(Z(Z(Z({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),w),c),M={className:L(i,Z(Z(Z({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),C),"".concat(u,"-icon-collapsible-only"),E)),"aria-expanded":a,"aria-disabled":w,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==Ys.ENTER&&e.which!==Ys.ENTER||k()}};return C||E||(M.onClick=k,M.role=p?"tab":"button",M.tabIndex=w?-1:0),t.createElement("div",I({},x,{ref:n,className:$}),t.createElement("div",M,r&&O,t.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===d?k:void 0},g),S&&t.createElement("div",{className:"".concat(u,"-extra")},f)),t.createElement(Ha,I({visible:a,leavedClassName:"".concat(u,"-content-hidden")},v,{forceRender:l,removeOnLeave:b}),(function(e,n){var o=e.className,r=e.style;return t.createElement(aw,{ref:n,prefixCls:u,className:o,style:r,isActive:a,forceRender:l,role:p?"tabpanel":void 0},y)})))})),cw=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function uw(e,n,o){return Array.isArray(e)?function(e,n){var o=n.prefixCls,r=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return e.map((function(e,n){var d=e.children,p=e.label,h=e.key,f=e.collapsible,g=e.onItemClick,m=e.destroyInactivePanel,v=wt(e,cw),b=String(null!=h?h:n),y=null!=f?f:i,x=null!=m?m:a,w=!1;return w=r?l[0]===b:l.indexOf(b)>-1,t.createElement(lw,I({},v,{prefixCls:o,key:b,panelKey:b,isActive:w,accordion:r,openMotion:c,expandIcon:u,header:p,collapsible:y,onItemClick:function(e){"disabled"!==y&&(s(e),null==g||g(e))},destroyInactivePanel:x}),d)}))}(e,o):B(n).map((function(e,n){return function(e,n,o){if(!e)return null;var r=o.prefixCls,i=o.accordion,a=o.collapsible,s=o.destroyInactivePanel,l=o.onItemClick,c=o.activeKey,u=o.openMotion,d=o.expandIcon,p=e.key||String(n),h=e.props,f=h.header,g=h.headerClass,m=h.destroyInactivePanel,v=h.collapsible,b=h.onItemClick,y=!1;y=i?c[0]===p:c.indexOf(p)>-1;var x=null!=v?v:a,w={key:p,panelKey:p,header:f,headerClass:g,isActive:y,prefixCls:r,destroyInactivePanel:null!=m?m:s,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(l(e),null==b||b(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(w).forEach((function(e){void 0===w[e]&&delete w[e]})),t.cloneElement(e,w))}(e,n,o)}))}function dw(e){var t=e;if(!Array.isArray(t)){var n=K(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var pw=t.forwardRef((function(e,n){var o=e.prefixCls,r=void 0===o?"rc-collapse":o,i=e.destroyInactivePanel,a=void 0!==i&&i,s=e.style,l=e.accordion,c=e.className,u=e.children,d=e.collapsible,p=e.openMotion,h=e.expandIcon,f=e.activeKey,g=e.defaultActiveKey,m=e.onChange,v=e.items,b=L(r,c),y=at(Ei([],{value:f,onChange:function(e){return null==m?void 0:m(e)},defaultValue:g,postState:dw}),2),x=y[0],w=y[1];q(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var C=uw(v,u,{prefixCls:r,accordion:l,openMotion:p,expandIcon:h,collapsible:d,destroyInactivePanel:a,onItemClick:function(e){return w((function(){return l?x[0]===e?[]:[e]:x.indexOf(e)>-1?x.filter((function(t){return t!==e})):[].concat(Ze(x),[e])}))},activeKey:x});return t.createElement("div",I({ref:n,className:b,style:s,role:l?"tablist":void 0},Us(e,{aria:!0,data:!0})),C)})),hw=Object.assign(pw,{Panel:lw});hw.Panel;const fw=e.forwardRef(((t,n)=>{if("production"!==process.env.NODE_ENV){jo("Collapse.Panel").deprecated(!("disabled"in t),"disabled",'collapsible="disabled"')}const{getPrefixCls:o}=e.useContext(ai),{prefixCls:r,className:i,showArrow:a=!0}=t,s=o("collapse",r),l=L({[`${s}-no-arrow`]:!a},i);return e.createElement(hw.Panel,Object.assign({ref:n},t,{prefixCls:s,className:l}))})),gw=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:h,colorTextDisabled:f,fontSizeLG:g,lineHeight:m,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:x,paddingXS:w,motionDurationSlow:C,fontSizeIcon:E,contentPadding:S,fontHeight:k,fontHeightLG:O}=e,$=`${Ft(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},Gi(e)),{backgroundColor:r,border:$,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Ft(l)} ${Ft(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:h,lineHeight:m,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:k,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]: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"}}),{fontSize:E,transition:`transform ${C}`,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(w).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:v,[`> ${t}-header`]:{padding:s,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(x).sub(o).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Ft(l)} ${Ft(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:f,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},mw=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},vw=e=>{const{componentCls:t,headerBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},bw=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var yw=Ji("Collapse",(e=>{const t=$i(e,{collapseHeaderPaddingSM:`${Ft(e.paddingXS)} ${Ft(e.paddingSM)}`,collapseHeaderPaddingLG:`${Ft(e.padding)} ${Ft(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[gw(t),vw(t),bw(t),mw(t),tp(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const xw=e.forwardRef(((t,n)=>{const{getPrefixCls:o,direction:r,collapse:i}=e.useContext(ai),{prefixCls:a,className:s,rootClassName:l,style:c,bordered:u=!0,ghost:d,size:p,expandIconPosition:h="start",children:f,expandIcon:g}=t,m=Dl((e=>{var t;return null!==(t=null!=p?p:e)&&void 0!==t?t:"middle"})),v=o("collapse",a),b=o(),[y,x,w]=yw(v);if("production"!==process.env.NODE_ENV){const e=jo("Collapse");"production"!==process.env.NODE_ENV&&e("left"!==h&&"right"!==h,"deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.")}const C=e.useMemo((()=>"left"===h?"start":"right"===h?"end":h),[h]),E=null!=g?g:null==i?void 0:i.expandIcon,S=e.useCallback((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="function"==typeof E?E(t):e.createElement(Cv,{rotate:t.isActive?90:void 0,"aria-label":t.isActive?"expanded":"collapsed"});return Gs(n,(()=>{var e;return{className:L(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.className,`${v}-arrow`)}}))}),[E,v]),k=L(`${v}-icon-position-${C}`,{[`${v}-borderless`]:!u,[`${v}-rtl`]:"rtl"===r,[`${v}-ghost`]:!!d,[`${v}-${m}`]:"middle"!==m},null==i?void 0:i.className,s,l,x,w),O=Object.assign(Object.assign({},kl(b)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),$=e.useMemo((()=>f?B(f).map(((e,t)=>{var n,o;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(o=e.key)&&void 0!==o?o:String(t),{disabled:r,collapsible:i}=e.props;return Gs(e,Object.assign(Object.assign({},qe(e.props,["disabled"])),{key:n,collapsible:null!=i?i:r?"disabled":void 0}))}return e})):null),[f]);return y(e.createElement(hw,Object.assign({ref:n,openMotion:O},qe(t,["rootClassName"]),{expandIcon:S,prefixCls:v,className:k,style:Object.assign(Object.assign({},null==i?void 0:i.style),c)}),$))}));"production"!==process.env.NODE_ENV&&(xw.displayName="Collapse");var ww=Object.assign(xw,{Panel:fw});function Cw(e,t,n){var o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function Ew(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=Cw(t,e,o)):n(r=Cw(t,e,""))}}var Sw=t.forwardRef((function(e,n){var o,r,i=e.inputElement,s=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,p=e.addonAfter,h=e.className,f=e.style,g=e.disabled,v=e.readOnly,b=e.focused,y=e.triggerFocus,x=e.allowClear,w=e.value,C=e.handleReset,E=e.hidden,S=e.classes,k=e.classNames,O=e.dataAttrs,$=e.styles,M=e.components,_=e.onClear,P=null!=s?s:i,N=(null==M?void 0:M.affixWrapper)||"span",j=(null==M?void 0:M.groupWrapper)||"span",R=(null==M?void 0:M.wrapper)||"span",T=(null==M?void 0:M.groupAddon)||"span",D=a(null),z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),A=m(P,{value:w,className:L(P.props.className,!z&&(null==k?void 0:k.variant))||null}),B=a(null);if(t.useImperativeHandle(n,(function(){return{nativeElement:B.current||D.current}})),z){var H=null;if(x){var F=!g&&!v&&w,V="".concat(l,"-clear-icon"),W="object"===K(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";H=t.createElement("span",{onClick:function(e){null==C||C(e),null==_||_()},onMouseDown:function(e){return e.preventDefault()},className:L(V,Z(Z({},"".concat(V,"-hidden"),!F),"".concat(V,"-has-suffix"),!!u)),role:"button",tabIndex:-1},W)}var U="".concat(l,"-affix-wrapper"),X=L(U,Z(Z(Z(Z(Z({},"".concat(l,"-disabled"),g),"".concat(U,"-disabled"),g),"".concat(U,"-focused"),b),"".concat(U,"-readonly"),v),"".concat(U,"-input-with-clear-btn"),u&&x&&w),null==S?void 0:S.affixWrapper,null==k?void 0:k.affixWrapper,null==k?void 0:k.variant),q=(u||x)&&t.createElement("span",{className:L("".concat(l,"-suffix"),null==k?void 0:k.suffix),style:null==$?void 0:$.suffix},H,u);A=t.createElement(N,I({className:X,style:null==$?void 0:$.affixWrapper,onClick:function(e){var t;null!==(t=D.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:D}),c&&t.createElement("span",{className:L("".concat(l,"-prefix"),null==k?void 0:k.prefix),style:null==$?void 0:$.prefix},c),A,q)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var G="".concat(l,"-group"),Y="".concat(G,"-addon"),Q="".concat(G,"-wrapper"),ee=L("".concat(l,"-wrapper"),G,null==S?void 0:S.wrapper,null==k?void 0:k.wrapper),te=L(Q,Z({},"".concat(Q,"-disabled"),g),null==S?void 0:S.group,null==k?void 0:k.groupWrapper);A=t.createElement(j,{className:te,ref:B},t.createElement(R,{className:ee},d&&t.createElement(T,{className:Y},d),A,p&&t.createElement(T,{className:Y},p)))}return t.cloneElement(A,{className:L(null===(o=A.props)||void 0===o?void 0:o.className,h)||null,style:J(J({},null===(r=A.props)||void 0===r?void 0:r.style),f),hidden:E})})),kw=["show"];function Ow(t,n){return e.useMemo((function(){var e={};n&&(e.show="object"===K(n)&&n.formatter?n.formatter:!!n);var o=e=J(J({},e),t),r=o.show,i=wt(o,kw);return J(J({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[t,n])}var $w=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Mw=c((function(e,n){var o=e.autoComplete,r=e.onChange,i=e.onFocus,s=e.onBlur,c=e.onPressEnter,u=e.onKeyDown,p=e.onKeyUp,h=e.prefixCls,f=void 0===h?"rc-input":h,m=e.disabled,v=e.htmlSize,b=e.className,y=e.maxLength,x=e.suffix,w=e.showCount,C=e.count,E=e.type,S=void 0===E?"text":E,k=e.classes,O=e.classNames,$=e.styles,M=e.onCompositionStart,_=e.onCompositionEnd,P=wt(e,$w),N=at(d(!1),2),j=N[0],R=N[1],T=a(!1),D=a(!1),z=a(null),A=a(null),B=function(e){z.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}(z.current,e)},H=at(Ei(e.defaultValue,{value:e.value}),2),F=H[0],V=H[1],W=null==F?"":String(F),U=at(d(null),2),X=U[0],q=U[1],G=Ow(C,w),K=G.max||y,Y=G.strategy(W),Q=!!K&&Y>K;g(n,(function(){var e;return{focus:B,blur:function(){var e;null===(e=z.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=z.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=z.current)||void 0===e||e.select()},input:z.current,nativeElement:(null===(e=A.current)||void 0===e?void 0:e.nativeElement)||z.current}})),l((function(){R((function(e){return(!e||!m)&&e}))}),[m]);var ee=function(e,t,n){var o,i,a=t;if(!T.current&&G.exceedFormatter&&G.max&&G.strategy(t)>G.max)t!==(a=G.exceedFormatter(t,{max:G.max}))&&q([(null===(o=z.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=z.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;V(a),z.current&&Ew(z.current,e,r,a)};l((function(){var e;X&&(null===(e=z.current)||void 0===e||e.setSelectionRange.apply(e,Ze(X)))}),[X]);var te,ne=function(e){ee(e,e.target.value,{source:"change"})},oe=function(e){T.current=!1,ee(e,e.currentTarget.value,{source:"compositionEnd"}),null==_||_(e)},re=function(e){c&&"Enter"===e.key&&!D.current&&(D.current=!0,c(e)),null==u||u(e)},ie=function(e){"Enter"===e.key&&(D.current=!1),null==p||p(e)},ae=function(e){R(!0),null==i||i(e)},se=function(e){R(!1),null==s||s(e)},le=Q&&"".concat(f,"-out-of-range");return t.createElement(Sw,I({},P,{prefixCls:f,className:L(b,le),handleReset:function(e){V(""),B(),z.current&&Ew(z.current,e,r)},value:W,focused:j,triggerFocus:B,suffix:function(){var e=Number(K)>0;if(x||G.show){var n=G.showFormatter?G.showFormatter({value:W,count:Y,maxLength:K}):"".concat(Y).concat(e?" / ".concat(K):"");return t.createElement(t.Fragment,null,G.show&&t.createElement("span",{className:L("".concat(f,"-show-count-suffix"),Z({},"".concat(f,"-show-count-has-suffix"),!!x),null==O?void 0:O.count),style:J({},null==$?void 0:$.count)},n),x)}return null}(),disabled:m,classes:k,classNames:O,styles:$}),(te=qe(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t.createElement("input",I({autoComplete:o},te,{onChange:ne,onFocus:ae,onBlur:se,onKeyDown:re,onKeyUp:ie,className:L(f,Z({},"".concat(f,"-disabled"),m),null==O?void 0:O.input),style:null==$?void 0:$.input,ref:z,size:v,type:S,onCompositionStart:function(e){T.current=!0,null==M||M(e)},onCompositionEnd:oe}))))}));const _w=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t.createElement(Ns,null)}),n};function Pw(e,t){const n=a([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return l((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var Nw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Lw=c(((e,n)=>{var o;const{prefixCls:i,bordered:s=!0,status:c,size:u,disabled:d,onBlur:p,onFocus:h,suffix:f,allowClear:g,addonAfter:m,addonBefore:v,className:b,style:y,styles:x,rootClassName:w,onChange:C,classNames:E,variant:S}=e,k=Nw(e,["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:t}=jo("Input");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:O,direction:$,input:M}=t.useContext(ai),_=O("input",i),P=a(null),N=Ks(_),[I,j,R]=ax(_,N),{compactSize:T,compactItemClassnames:D}=Al(_,$),z=Dl((e=>{var t;return null!==(t=null!=u?u:T)&&void 0!==t?t:e})),A=t.useContext(ci),B=null!=d?d:A,{status:H,hasFeedback:F,feedbackIcon:V}=r(md),W=pg(H,c),U=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!F,X=a(U);if("production"!==process.env.NODE_ENV){const e=jo("Input");l((()=>{var t;U&&!X.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===(null===(t=P.current)||void 0===t?void 0:t.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"),X.current=U}),[U])}const q=Pw(P,!0),G=(F||f)&&t.createElement(t.Fragment,null,f,F&&V),K=_w(null!=g?g:null==M?void 0:M.allowClear),[Y,Z]=Cg("input",S,s);return I(t.createElement(Mw,Object.assign({ref:re(n,P),prefixCls:_,autoComplete:null==M?void 0:M.autoComplete},k,{disabled:B,onBlur:e=>{q(),null==p||p(e)},onFocus:e=>{q(),null==h||h(e)},style:Object.assign(Object.assign({},null==M?void 0:M.style),y),styles:Object.assign(Object.assign({},null==M?void 0:M.styles),x),suffix:G,allowClear:K,className:L(b,w,R,N,D,null==M?void 0:M.className),onChange:e=>{q(),null==C||C(e)},addonBefore:v&&t.createElement(yd,{form:!0,space:!0},v),addonAfter:m&&t.createElement(yd,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},E),null==M?void 0:M.classNames),{input:L({[`${_}-sm`]:"small"===z,[`${_}-lg`]:"large"===z,[`${_}-rtl`]:"rtl"===$},null==E?void 0:E.input,null===(o=null==M?void 0:M.classNames)||void 0===o?void 0:o.input,j),variant:L({[`${_}-${Y}`]:Z},dg(_,W)),affixWrapper:L({[`${_}-affix-wrapper-sm`]:"small"===z,[`${_}-affix-wrapper-lg`]:"large"===z,[`${_}-affix-wrapper-rtl`]:"rtl"===$},j),wrapper:L({[`${_}-group-rtl`]:"rtl"===$},j),groupWrapper:L({[`${_}-group-wrapper-sm`]:"small"===z,[`${_}-group-wrapper-lg`]:"large"===z,[`${_}-group-wrapper-rtl`]:"rtl"===$,[`${_}-group-wrapper-${Y}`]:Z},dg(`${_}-group-wrapper`,W,F),j)})})))}));"production"!==process.env.NODE_ENV&&(Lw.displayName="Input");const Iw=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 jw=Ji(["Input","OTP"],(e=>{const t=$i(e,jy(e));return[Iw(t)]}),Ry),Rw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Tw=e.forwardRef(((t,n)=>{const{value:o,onChange:r,onActiveChange:i,index:a,mask:s}=t,l=Rw(t,["value","onChange","onActiveChange","index","mask"]),c=o&&"string"==typeof s?s:o,u=e.useRef(null);e.useImperativeHandle(n,(()=>u.current));const d=()=>{ot((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return e.createElement(Lw,Object.assign({},l,{ref:u,value:c,onInput:e=>{r(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||o||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===s?"password":"text"}))}));var Dw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function zw(e){return(e||"").split("")}const Aw=e.forwardRef(((t,n)=>{const{prefixCls:o,length:r=6,size:i,defaultValue:a,value:s,onChange:l,formatter:c,variant:u,disabled:d,status:p,autoFocus:h,mask:f}=t,g=Dw(t,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=jo("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof f&&f.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:m,direction:v}=e.useContext(ai),b=m("otp",o),y=Us(g,{aria:!0,data:!0,attr:!0}),x=Ks(b),[w,C,E]=jw(b,x),S=Dl((e=>null!=i?i:e)),k=e.useContext(md),O=pg(k.status,p),$=e.useMemo((()=>Object.assign(Object.assign({},k),{status:O,hasFeedback:!1,feedbackIcon:null})),[k,O]),M=e.useRef(null),_=e.useRef({});e.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=_.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=_.current[t])||void 0===e||e.blur()},nativeElement:M.current})));const P=e=>c?c(e):e,[N,I]=e.useState(zw(P(a||"")));e.useEffect((()=>{void 0!==s&&I(zw(s))}),[s]);const j=xi((e=>{I(e),l&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>N[t]!==e))&&l(e.join(""))})),R=xi(((e,t)=>{let n=Ze(N);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(zw(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const o=P(n.map((e=>e||" ")).join(""));return n=zw(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),T=(e,t)=>{var n;const o=R(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=_.current[i])||void 0===n||n.focus()),j(o)},D=e=>{var t;null===(t=_.current[e])||void 0===t||t.focus()},z={variant:u,disabled:d,status:O,mask:f};return w(e.createElement("div",Object.assign({},y,{ref:M,className:L(b,{[`${b}-sm`]:"small"===S,[`${b}-lg`]:"large"===S,[`${b}-rtl`]:"rtl"===v},E,C)}),e.createElement(md.Provider,{value:$},Array.from({length:r}).map(((t,n)=>{const o=`otp-${n}`,r=N[n]||"";return e.createElement(Tw,Object.assign({ref:e=>{_.current[n]=e},key:o,index:n,size:S,htmlSize:1,className:`${b}-input`,onChange:T,value:r,onActiveChange:D,autoFocus:0===n&&h},z))})))))}));var Bw={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"},Hw=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:Bw}))},Fw=e.forwardRef(Hw);"production"!==process.env.NODE_ENV&&(Fw.displayName="EyeInvisibleOutlined");var Vw={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"},Ww=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:Vw}))},Uw=e.forwardRef(Ww);"production"!==process.env.NODE_ENV&&(Uw.displayName="EyeOutlined");var Xw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const qw=t=>t?e.createElement(Uw,null):e.createElement(Fw,null),Gw={click:"onClick",hover:"onMouseOver"},Kw=e.forwardRef(((t,n)=>{const{disabled:o,action:r="click",visibilityToggle:i=!0,iconRender:s=qw}=t,l="object"==typeof i&&void 0!==i.visible,[c,u]=d((()=>!!l&&i.visible)),p=a(null);e.useEffect((()=>{l&&u(i.visible)}),[l,i]);const h=Pw(p),f=()=>{o||(c&&h(),u((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:g,prefixCls:m,inputPrefixCls:v,size:b}=t,y=Xw(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=e.useContext(ai),w=x("input",v),C=x("input-password",m),E=i&&(t=>{const n=Gw[r]||"",o=s(c),i={[n]:f,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(o)?o:e.createElement("span",null,o),i)})(C),S=L(C,g,{[`${C}-${b}`]:!!b}),k=Object.assign(Object.assign({},qe(y,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:S,prefixCls:w,suffix:E});return b&&(k.size=b),e.createElement(Lw,Object.assign({ref:re(n,p)},k))}));"production"!==process.env.NODE_ENV&&(Kw.displayName="Input.Password");var Yw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Zw=e.forwardRef(((t,n)=>{const{prefixCls:o,inputPrefixCls:r,className:i,size:a,suffix:s,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:p,onChange:h,onCompositionStart:f,onCompositionEnd:g}=t,m=Yw(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=e.useContext(ai),y=e.useRef(!1),x=v("input-search",o),w=v("input",r),{compactSize:C}=Al(x,b),E=Dl((e=>{var t;return null!==(t=null!=a?a:C)&&void 0!==t?t:e})),S=e.useRef(null),k=e=>{var t;document.activeElement===(null===(t=S.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;p&&p(null===(n=null===(t=S.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},$="boolean"==typeof l?e.createElement(Jg,null):null,M=`${x}-button`;let _;const P=l||{},N=P.type&&!0===P.type.__ANT_BUTTON;_=N||"button"===P.type?Gs(P,Object.assign({onMouseDown:k,onClick:e=>{var t,n;null===(n=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},N?{className:M,size:E}:{})):e.createElement(jc,{className:M,type:l?"primary":void 0,size:E,disabled:d,key:"enterButton",onMouseDown:k,onClick:O,loading:u,icon:$},l),c&&(_=[_,Gs(c,{key:"addonAfter"})]);const I=L(x,{[`${x}-rtl`]:"rtl"===b,[`${x}-${E}`]:!!E,[`${x}-with-button`]:!!l},i);return e.createElement(Lw,Object.assign({ref:re(S,n),onPressEnter:e=>{y.current||u||O(e)}},m,{size:E,onCompositionStart:e=>{y.current=!0,null==f||f(e)},onCompositionEnd:e=>{y.current=!1,null==g||g(e)},prefixCls:w,addonAfter:_,suffix:s,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&p&&p(e.target.value,e,{source:"clear"}),null==h||h(e)},className:I,disabled:d}))}));"production"!==process.env.NODE_ENV&&(Zw.displayName="Search");var Qw,Jw=["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"],eC={};function tC(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Qw||((Qw=document.createElement("textarea")).setAttribute("tab-index","-1"),Qw.setAttribute("aria-hidden","true"),document.body.appendChild(Qw)),e.getAttribute("wrap")?Qw.setAttribute("wrap",e.getAttribute("wrap")):Qw.removeAttribute("wrap");var r=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&&eC[n])return eC[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:Jw.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(eC[n]=s),s}(e,t),i=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;Qw.setAttribute("style","".concat(l,";").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")),Qw.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,p=Qw.scrollHeight;if("border-box"===s?p+=a:"content-box"===s&&(p-=i),null!==n||null!==o){Qw.value=" ";var h=Qw.scrollHeight-i;null!==n&&(u=h*n,"border-box"===s&&(u=u+i+a),p=Math.max(u,p)),null!==o&&(d=h*o,"border-box"===s&&(d=d+i+a),c=p>d?"":"hidden",p=Math.min(d,p))}var f={height:p,overflowY:c,resize:"none"};return u&&(f.minHeight=u),d&&(f.maxHeight=d),f}var nC=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],oC=e.forwardRef((function(t,n){var o=t,r=o.prefixCls,i=o.defaultValue,a=o.value,s=o.autoSize,l=o.onResize,c=o.className,u=o.style,d=o.disabled,p=o.onChange,h=o.onInternalAutoSize,f=wt(o,nC),g=at(Ei(i,{value:a,postState:function(e){return null!=e?e:""}}),2),m=g[0],v=g[1],b=e.useRef();e.useImperativeHandle(n,(function(){return{textArea:b.current}}));var y=at(e.useMemo((function(){return s&&"object"===K(s)?[s.minRows,s.maxRows]:[]}),[s]),2),x=y[0],w=y[1],C=!!s,E=at(e.useState(2),2),S=E[0],k=E[1],O=at(e.useState(),2),$=O[0],M=O[1],_=function(){k(0),"test"===process.env.NODE_ENV&&(null==h||h())};Gt((function(){C&&_()}),[a,x,w,C]),Gt((function(){if(0===S)k(1);else if(1===S){var e=tC(b.current,!1,x,w);k(2),M(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=o}}catch(e){}}()}),[S]);var P=e.useRef(),N=function(){ot.cancel(P.current)};e.useEffect((function(){return N}),[]);var j=C?$:null,R=J(J({},u),j);return 0!==S&&1!==S||(R.overflowY="hidden",R.overflowX="hidden"),e.createElement(Xe,{onResize:function(e){2===S&&(null==l||l(e),s&&(N(),P.current=ot((function(){_()}))))},disabled:!(s||l)},e.createElement("textarea",I({},f,{ref:b,style:R,className:L(r,c,Z({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:function(e){v(e.target.value),null==p||p(e)}})))})),rC=["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"],iC=t.forwardRef((function(e,n){var o,r=e.defaultValue,i=e.value,s=e.onFocus,c=e.onBlur,u=e.onChange,d=e.allowClear,p=e.maxLength,h=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,b=void 0===v?"rc-textarea":v,y=e.showCount,x=e.count,w=e.className,C=e.style,E=e.disabled,S=e.hidden,k=e.classNames,O=e.styles,$=e.onResize,M=e.onClear,_=e.onPressEnter,P=e.readOnly,N=e.autoSize,j=e.onKeyDown,R=wt(e,rC),T=at(Ei(r,{value:i,defaultValue:r}),2),D=T[0],z=T[1],A=null==D?"":String(D),B=at(t.useState(!1),2),H=B[0],F=B[1],V=t.useRef(!1),W=at(t.useState(null),2),U=W[0],X=W[1],q=a(null),G=a(null),K=function(){var e;return null===(e=G.current)||void 0===e?void 0:e.textArea},Y=function(){K().focus()};g(n,(function(){var e;return{resizableTextArea:G.current,focus:Y,blur:function(){K().blur()},nativeElement:(null===(e=q.current)||void 0===e?void 0:e.nativeElement)||K()}})),l((function(){F((function(e){return!E&&e}))}),[E]);var Q=at(t.useState(null),2),ee=Q[0],te=Q[1];t.useEffect((function(){var e;ee&&(e=K()).setSelectionRange.apply(e,Ze(ee))}),[ee]);var ne,oe=Ow(x,y),re=null!==(o=oe.max)&&void 0!==o?o:p,ie=Number(re)>0,ae=oe.strategy(A),se=!!re&&ae>re,le=function(e,t){var n=t;!V.current&&oe.exceedFormatter&&oe.max&&oe.strategy(t)>oe.max&&t!==(n=oe.exceedFormatter(t,{max:oe.max}))&&te([K().selectionStart||0,K().selectionEnd||0]),z(n),Ew(e.currentTarget,e,u,n)},ce=m;oe.show&&(ne=oe.showFormatter?oe.showFormatter({value:A,count:ae,maxLength:re}):"".concat(ae).concat(ie?" / ".concat(re):""),ce=t.createElement(t.Fragment,null,ce,t.createElement("span",{className:L("".concat(b,"-data-count"),null==k?void 0:k.count),style:null==O?void 0:O.count},ne)));var ue=!N&&!y&&!d;return t.createElement(Sw,{ref:q,value:A,allowClear:d,handleReset:function(e){z(""),Y(),Ew(K(),e,u)},suffix:ce,prefixCls:b,classNames:J(J({},k),{},{affixWrapper:L(null==k?void 0:k.affixWrapper,Z(Z({},"".concat(b,"-show-count"),y),"".concat(b,"-textarea-allow-clear"),d))}),disabled:E,focused:H,className:L(w,se&&"".concat(b,"-out-of-range")),style:J(J({},C),U&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ne?ne:void 0}},hidden:S,readOnly:P,onClear:M},t.createElement(oC,I({},R,{autoSize:N,maxLength:p,onKeyDown:function(e){"Enter"===e.key&&_&&_(e),null==j||j(e)},onChange:function(e){le(e,e.target.value)},onFocus:function(e){F(!0),null==s||s(e)},onBlur:function(e){F(!1),null==c||c(e)},onCompositionStart:function(e){V.current=!0,null==h||h(e)},onCompositionEnd:function(e){V.current=!1,le(e,e.currentTarget.value),null==f||f(e)},className:L(null==k?void 0:k.textarea),style:J(J({},null==O?void 0:O.textarea),{},{resize:null==C?void 0:C.resize}),disabled:E,prefixCls:b,onResize:function(e){var t;null==$||$(e),null!==(t=K())&&void 0!==t&&t.style.height&&X(!0)},ref:G,readOnly:P})))})),aC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const sC=c(((t,n)=>{var o,r;const{prefixCls:i,bordered:a=!0,size:s,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:p,className:h,style:f,styles:g,variant:m}=t,v=aC(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=jo("TextArea");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:b,direction:y,textArea:x}=e.useContext(ai),w=Dl(s),C=e.useContext(ci),E=null!=l?l:C,{status:S,hasFeedback:k,feedbackIcon:O}=e.useContext(md),$=pg(S,c),M=e.useRef(null);e.useImperativeHandle(n,(()=>{var e;return{resizableTextArea:null===(e=M.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=M.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=M.current)||void 0===e?void 0:e.blur()}}}));const _=b("input",i),P=Ks(_),[N,I,j]=ax(_,P),[R,T]=Cg("textArea",m,a),D=_w(null!=u?u:null==x?void 0:x.allowClear);return N(e.createElement(iC,Object.assign({autoComplete:null==x?void 0:x.autoComplete},v,{style:Object.assign(Object.assign({},null==x?void 0:x.style),f),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:E,allowClear:D,className:L(j,P,h,p,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==x?void 0:x.classNames),{textarea:L({[`${_}-sm`]:"small"===w,[`${_}-lg`]:"large"===w},I,null==d?void 0:d.textarea,null===(o=null==x?void 0:x.classNames)||void 0===o?void 0:o.textarea),variant:L({[`${_}-${R}`]:T},dg(_,$)),affixWrapper:L(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:"rtl"===y,[`${_}-affix-wrapper-sm`]:"small"===w,[`${_}-affix-wrapper-lg`]:"large"===w,[`${_}-textarea-show-count`]:t.showCount||(null===(r=t.count)||void 0===r?void 0:r.show)},I)}),prefixCls:_,suffix:k&&e.createElement("span",{className:`${_}-textarea-suffix`},O),ref:M})))})),lC=Lw;function cC(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function uC(e,t,n,o){var r=x.unstable_batchedUpdates?function(e){x.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,r,o)}}}lC.Group=t=>{const{getPrefixCls:n,direction:o}=r(ai),{prefixCls:i,className:a}=t,s=n("input-group",i),l=n("input"),[c,d]=ax(l),p=L(s,{[`${s}-lg`]:"large"===t.size,[`${s}-sm`]:"small"===t.size,[`${s}-compact`]:t.compact,[`${s}-rtl`]:"rtl"===o},d,a),h=r(md),f=u((()=>Object.assign(Object.assign({},h),{isFormItemInput:!1})),[h]);if("production"!==process.env.NODE_ENV){jo("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return c(e.createElement("span",{className:p,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(md.Provider,{value:f},t.children)))},lC.Search=Zw,lC.TextArea=sC,lC.Password=Kw,lC.OTP=Aw;var dC=e.createContext(null),pC=function(t){var n=t.visible,o=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,s=t.rootClassName,l=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,p=t.current,h=t.transform,f=t.count,g=t.scale,m=t.minScale,v=t.maxScale,b=t.closeIcon,y=t.onSwitchLeft,x=t.onSwitchRight,w=t.onClose,C=t.onZoomIn,E=t.onZoomOut,S=t.onRotateRight,k=t.onRotateLeft,O=t.onFlipX,$=t.onFlipY,M=t.onReset,_=t.toolbarRender,P=t.zIndex,N=t.image,I=r(dC),j=l.rotateLeft,R=l.rotateRight,T=l.zoomIn,D=l.zoomOut,z=l.close,A=l.left,B=l.right,H=l.flipX,F=l.flipY,V="".concat(a,"-operations-operation");e.useEffect((function(){var e=function(e){e.keyCode===Ys.ESC&&w()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[n]);var W=[{icon:F,onClick:$,type:"flipY"},{icon:H,onClick:O,type:"flipX"},{icon:j,onClick:k,type:"rotateLeft"},{icon:R,onClick:S,type:"rotateRight"},{icon:D,onClick:E,type:"zoomOut",disabled:g<=m},{icon:T,onClick:C,type:"zoomIn",disabled:g===v}].map((function(t){var n,o=t.icon,r=t.onClick,i=t.type,s=t.disabled;return e.createElement("div",{className:L(V,(n={},Z(n,"".concat(a,"-operations-operation-").concat(i),!0),Z(n,"".concat(a,"-operations-operation-disabled"),!!s),n)),onClick:r,key:i},o)})),U=e.createElement("div",{className:"".concat(a,"-operations")},W);return e.createElement(Ha,{visible:n,motionName:o},(function(t){var n=t.className,o=t.style;return e.createElement(Gc,{open:!0,getContainer:null!=i?i:document.body},e.createElement("div",{className:L("".concat(a,"-operations-wrapper"),n,s),style:J(J({},o),{},{zIndex:P})},null===b?null:e.createElement("button",{className:"".concat(a,"-close"),onClick:w},b||z),u&&e.createElement(e.Fragment,null,e.createElement("div",{className:L("".concat(a,"-switch-left"),Z({},"".concat(a,"-switch-left-disabled"),0===p)),onClick:y},A),e.createElement("div",{className:L("".concat(a,"-switch-right"),Z({},"".concat(a,"-switch-right-disabled"),p===f-1)),onClick:x},B)),e.createElement("div",{className:"".concat(a,"-footer")},d&&e.createElement("div",{className:"".concat(a,"-progress")},c?c(p+1,f):"".concat(p+1," / ").concat(f)),_?_(U,J(J({icons:{flipYIcon:W[0],flipXIcon:W[1],rotateLeftIcon:W[2],rotateRightIcon:W[3],zoomOutIcon:W[4],zoomInIcon:W[5]},actions:{onFlipY:$,onFlipX:O,onRotateLeft:k,onRotateRight:S,onZoomOut:E,onZoomIn:C,onReset:M,onClose:w},transform:h},I?{current:p,total:f}:{}),{},{image:N})):U)))}))},hC={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function fC(e,t,n,o){var r=t+n,i=(n-o)/2;if(n>o){if(t>0)return Z({},e,i);if(t<0&&r<o)return Z({},e,-i)}else if(t<0||r>o)return Z({},e,t<0?i:-i);return{}}function gC(e,t,n,o){var r=cC(),i=r.width,a=r.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=J(J({},fC("x",n,e,i)),fC("y",o,t,a))),s}function mC(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,r=at(d(n?"loading":"normal"),2),i=r[0],s=r[1],c=a(!1),u="error"===i;l((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&s("error")})),function(){e=!1}}),[t]),l((function(){n&&!c.current?s("loading"):u&&s("normal")}),[t]);var p=function(){s("normal")};return[function(e){c.current=!1,"loading"===i&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,p())},u&&o?{src:o}:{onLoad:p,src:t},i]}function vC(e,t){var n=e.x-t.x,o=e.y-t.y;return Math.hypot(n,o)}function bC(e,t,n,o,r,i,s){var c=r.rotate,u=r.scale,p=r.x,h=r.y,f=at(d(!1),2),g=f[0],m=f[1],v=a({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),b=function(e){v.current=J(J({},v.current),e)};return l((function(){var e;return n&&t&&(e=uC(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:g,onTouchStart:function(e){if(t){e.stopPropagation(),m(!0);var n=e.touches,o=void 0===n?[]:n;o.length>1?b({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):b({point1:{x:o[0].clientX-p,y:o[0].clientY-h},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,o=v.current,r=o.point1,a=o.point2,l=o.eventType;if(n.length>1&&"touchZoom"===l){var c={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,o){var r=vC(e,n),i=vC(t,o);if(0===r&&0===i)return[e.x,e.y];var a=r/(r+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(r,a,c,u),p=at(d,2),h=p[0],f=p[1],g=vC(c,u)/vC(r,a);s(g,"touchZoom",h,f,!0),b({point1:c,point2:u,eventType:"touchZoom"})}else"move"===l&&(i({x:n[0].clientX-r.x,y:n[0].clientY-r.y},"move"),b({eventType:"move"}))},onTouchEnd:function(){if(n){if(g&&m(!1),b({eventType:"none"}),o>u)return i({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*u,r=e.current.offsetHeight*u,a=e.current.getBoundingClientRect(),s=a.left,l=a.top,d=c%180!=0,p=gC(d?r:t,d?t:r,s,l);p&&i(J({},p),"dragRebound")}}}}var yC=["fallback","src","imgRef"],xC=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],wC=function(e){var n=e.fallback,o=e.src,r=e.imgRef,i=wt(e,yC),a=at(mC({src:o,fallback:n}),2),s=a[0],l=a[1];return t.createElement("img",I({ref:function(e){r.current=e,s(e)}},i,l))},CC=function(e){var n=e.prefixCls,o=e.src,i=e.alt,s=e.imageInfo,c=e.fallback,u=e.movable,p=void 0===u||u,h=e.onClose,f=e.visible,g=e.icons,m=void 0===g?{}:g,v=e.rootClassName,b=e.closeIcon,y=e.getContainer,x=e.current,w=void 0===x?0:x,C=e.count,E=void 0===C?1:C,S=e.countRender,k=e.scaleStep,O=void 0===k?.5:k,$=e.minScale,M=void 0===$?1:$,_=e.maxScale,P=void 0===_?50:_,N=e.transitionName,j=void 0===N?"zoom":N,R=e.maskTransitionName,T=void 0===R?"fade":R,D=e.imageRender,z=e.imgCommonProps,A=e.toolbarRender,B=e.onTransform,H=e.onChange,F=wt(e,xC),W=a(),U=r(dC),X=U&&E>1,q=U&&E>=1,G=at(d(!0),2),K=G[0],Y=G[1],Q=function(e,t,n,o){var r=a(null),i=a([]),s=at(d(hC),2),l=s[0],c=s[1],u=function(e,t){null===r.current&&(i.current=[],r.current=ot((function(){c((function(e){var n=e;return i.current.forEach((function(e){n=J(J({},n),e)})),r.current=null,null==o||o({transform:n,action:t}),n}))}))),i.current.push(J(J({},l),e))};return{transform:l,resetTransform:function(e){c(hC),Ct(hC,l)||null==o||o({transform:hC,action:e})},updateTransform:u,dispatchZoomChange:function(o,r,i,a,s){var c=e.current,d=c.width,p=c.height,h=c.offsetWidth,f=c.offsetHeight,g=c.offsetLeft,m=c.offsetTop,v=o,b=l.scale*o;b>n?(b=n,v=n/l.scale):b<t&&(v=(b=s?b:t)/l.scale);var y=null!=i?i:innerWidth/2,x=null!=a?a:innerHeight/2,w=v-1,C=w*d*.5,E=w*p*.5,S=w*(y-l.x-g),k=w*(x-l.y-m),O=l.x-(S-C),$=l.y-(k-E);if(o<1&&1===b){var M=h*b,_=f*b,P=cC(),N=P.width,L=P.height;M<=N&&_<=L&&(O=0,$=0)}u({x:O,y:$,scale:b},r)}}}(W,M,P,B),ee=Q.transform,te=Q.resetTransform,ne=Q.updateTransform,oe=Q.dispatchZoomChange,re=function(e,t,n,o,r,i,s){var c=r.rotate,u=r.scale,p=r.x,h=r.y,f=at(d(!1),2),g=f[0],m=f[1],v=a({diffX:0,diffY:0,transformX:0,transformY:0}),b=function(e){n&&g&&i({x:e.pageX-v.current.diffX,y:e.pageY-v.current.diffY},"move")},y=function(){if(n&&g){m(!1);var t=v.current,o=t.transformX,r=t.transformY;if(p===o||h===r)return;var a=e.current.offsetWidth*u,s=e.current.offsetHeight*u,l=e.current.getBoundingClientRect(),d=l.left,f=l.top,b=c%180!=0,y=gC(b?s:a,b?a:s,d,f);y&&i(J({},y),"dragRebound")}};return l((function(){var e,n,o,r;if(t){o=uC(window,"mouseup",y,!1),r=uC(window,"mousemove",b,!1);try{window.top!==window.self&&(e=uC(window.top,"mouseup",y,!1),n=uC(window.top,"mousemove",b,!1))}catch(e){V(!1,"[rc-image] ".concat(e))}}return function(){var t,i,a,s;null===(t=o)||void 0===t||t.remove(),null===(i=r)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(s=n)||void 0===s||s.remove()}}),[n,g,p,h,c,t]),{isMoving:g,onMouseDown:function(e){t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),v.current={diffX:e.pageX-p,diffY:e.pageY-h,transformX:p,transformY:h},m(!0))},onMouseMove:b,onMouseUp:y,onWheel:function(e){if(n&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),r=1+Math.min(t,1)*o;e.deltaY>0&&(r=1/r),s(r,"wheel",e.clientX,e.clientY)}}}}(W,p,f,O,ee,ne,oe),ie=re.isMoving,ae=re.onMouseDown,se=re.onWheel,le=bC(W,p,f,M,ee,ne,oe),ce=le.isTouching,ue=le.onTouchStart,de=le.onTouchMove,pe=le.onTouchEnd,he=ee.rotate,fe=ee.scale,ge=L(Z({},"".concat(n,"-moving"),ie));l((function(){K||Y(!0)}),[K]);var me=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),w>0&&(Y(!1),te("prev"),null==H||H(w-1,w))},ve=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),w<E-1&&(Y(!1),te("next"),null==H||H(w+1,w))},be=function(e){f&&X&&(e.keyCode===Ys.LEFT?me():e.keyCode===Ys.RIGHT&&ve())};l((function(){var e=uC(window,"keydown",be,!1);return function(){e.remove()}}),[f,X,w]);var ye=t.createElement(wC,I({},z,{width:e.width,height:e.height,imgRef:W,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(ee.x,"px, ").concat(ee.y,"px, 0) scale3d(").concat(ee.flipX?"-":"").concat(fe,", ").concat(ee.flipY?"-":"").concat(fe,", 1) rotate(").concat(he,"deg)"),transitionDuration:(!K||ce)&&"0s"},fallback:c,src:o,onWheel:se,onMouseDown:ae,onDoubleClick:function(e){f&&(1!==fe?ne({x:0,y:0,scale:1},"doubleClick"):oe(1+O,"doubleClick",e.clientX,e.clientY))},onTouchStart:ue,onTouchMove:de,onTouchEnd:pe,onTouchCancel:pe})),xe=J({url:o,alt:i},s);return t.createElement(t.Fragment,null,t.createElement(lu,I({transitionName:j,maskTransitionName:T,closable:!1,keyboard:!0,prefixCls:n,onClose:h,visible:f,classNames:{wrapper:ge},rootClassName:v,getContainer:y},F,{afterClose:function(){te("close")}}),t.createElement("div",{className:"".concat(n,"-img-wrapper")},D?D(ye,J({transform:ee,image:xe},U?{current:w}:{})):ye)),t.createElement(pC,{visible:f,transform:ee,maskTransitionName:T,closeIcon:b,getContainer:y,prefixCls:n,rootClassName:v,icons:m,countRender:S,showSwitch:X,showProgress:q,current:w,count:E,scale:fe,minScale:M,maxScale:P,toolbarRender:A,onSwitchLeft:me,onSwitchRight:ve,onZoomIn:function(){oe(1+O,"zoomIn")},onZoomOut:function(){oe(1/(1+O),"zoomOut")},onRotateRight:function(){ne({rotate:he+90},"rotateRight")},onRotateLeft:function(){ne({rotate:he-90},"rotateLeft")},onFlipX:function(){ne({flipX:!ee.flipX},"flipX")},onFlipY:function(){ne({flipY:!ee.flipY},"flipY")},onClose:h,onReset:function(){te("reset")},zIndex:void 0!==F.zIndex?F.zIndex+1:void 0,image:xe}))},EC=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var SC=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],kC=["src"],OC=0;var $C=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],MC=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],_C=function(t){var n=t.src,o=t.alt,i=t.onPreviewClose,a=t.prefixCls,s=void 0===a?"rc-image":a,l=t.previewPrefixCls,c=void 0===l?"".concat(s,"-preview"):l,p=t.placeholder,h=t.fallback,f=t.width,g=t.height,m=t.style,v=t.preview,b=void 0===v||v,y=t.className,x=t.onClick,w=t.onError,C=t.wrapperClassName,E=t.wrapperStyle,S=t.rootClassName,k=wt(t,$C),O=p&&!0!==p,$="object"===K(b)?b:{},M=$.src,_=$.visible,P=void 0===_?void 0:_,N=$.onVisibleChange,j=void 0===N?i:N,R=$.getContainer,T=void 0===R?void 0:R,D=$.mask,z=$.maskClassName,A=$.movable,B=$.icons,H=$.scaleStep,F=$.minScale,V=$.maxScale,W=$.imageRender,U=$.toolbarRender,X=wt($,MC),q=null!=M?M:n,G=at(Ei(!!P,{value:P,onChange:j}),2),Y=G[0],Q=G[1],ee=at(mC({src:n,isCustomPlaceholder:O,fallback:h}),3),te=ee[0],ne=ee[1],oe=ee[2],re=at(d(null),2),ie=re[0],ae=re[1],se=r(dC),le=!!b,ce=L(s,C,S,Z({},"".concat(s,"-error"),"error"===oe)),ue=u((function(){var e={};return EC.forEach((function(n){void 0!==t[n]&&(e[n]=t[n])})),e}),EC.map((function(e){return t[e]}))),de=function(t,n){var o=at(e.useState((function(){return String(OC+=1)})),1)[0],r=e.useContext(dC),i={data:n,canPreview:t};return e.useEffect((function(){if(r)return r.register(o,i)}),[]),e.useEffect((function(){r&&r.register(o,i)}),[t,n]),o}(le,u((function(){return J(J({},ue),{},{src:q})}),[q,ue]));return e.createElement(e.Fragment,null,e.createElement("div",I({},k,{className:ce,onClick:le?function(e){var t=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}(e.target),n=t.left,o=t.top;se?se.onPreview(de,q,n,o):(ae({x:n,y:o}),Q(!0)),null==x||x(e)}:x,style:J({width:f,height:g},E)}),e.createElement("img",I({},ue,{className:L("".concat(s,"-img"),Z({},"".concat(s,"-img-placeholder"),!0===p),y),style:J({height:g},m),ref:te},ne,{width:f,height:g,onError:w})),"loading"===oe&&e.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},p),D&&le&&e.createElement("div",{className:L("".concat(s,"-mask"),z),style:{display:"none"===(null==m?void 0:m.display)?"none":void 0}},D)),!se&&le&&e.createElement(CC,I({"aria-hidden":!Y,visible:Y,prefixCls:c,onClose:function(){Q(!1),ae(null)},mousePosition:ie,src:q,alt:o,imageInfo:{width:f,height:g},fallback:h,getContainer:T,icons:B,movable:A,scaleStep:H,minScale:F,maxScale:V,rootClassName:S,imageRender:W,imgCommonProps:ue,toolbarRender:U},X)))};_C.PreviewGroup=function(t){var n,o=t.previewPrefixCls,r=void 0===o?"rc-image-preview":o,i=t.children,a=t.icons,s=void 0===a?{}:a,l=t.items,c=t.preview,u=t.fallback,p="object"===K(c)?c:{},h=p.visible,f=p.onVisibleChange,g=p.getContainer,m=p.current,v=p.movable,b=p.minScale,y=p.maxScale,x=p.countRender,w=p.closeIcon,C=p.onChange,E=p.onTransform,S=p.toolbarRender,k=p.imageRender,O=wt(p,SC),$=function(t){var n=at(e.useState({}),2),o=n[0],r=n[1],i=e.useCallback((function(e,t){return r((function(n){return J(J({},n),{},Z({},e,t))})),function(){r((function(t){var n=J({},t);return delete n[e],n}))}}),[]);return[e.useMemo((function(){return t?t.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(Ze(EC)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(o).reduce((function(e,t){var n=o[t],r=n.canPreview,i=n.data;return r&&e.push({data:i,id:t}),e}),[])}),[t,o]),i,!!t]}(l),M=at($,3),_=M[0],P=M[1],N=M[2],L=at(Ei(0,{value:m}),2),j=L[0],R=L[1],T=at(d(!1),2),D=T[0],z=T[1],A=(null===(n=_[j])||void 0===n?void 0:n.data)||{},B=A.src,H=wt(A,kC),F=at(Ei(!!h,{value:h,onChange:function(e,t){null==f||f(e,t,j)}}),2),V=F[0],W=F[1],U=at(d(null),2),X=U[0],q=U[1],G=e.useCallback((function(e,t,n,o){var r=N?_.findIndex((function(e){return e.data.src===t})):_.findIndex((function(t){return t.id===e}));R(r<0?0:r),W(!0),q({x:n,y:o}),z(!0)}),[_,N]);e.useEffect((function(){V?D||R(0):z(!1)}),[V]);var Y=e.useMemo((function(){return{register:P,onPreview:G}}),[P,G]);return e.createElement(dC.Provider,{value:Y},i,e.createElement(CC,I({"aria-hidden":!V,movable:v,visible:V,prefixCls:r,closeIcon:w,onClose:function(){W(!1),q(null)},mousePosition:X,imgCommonProps:H,src:B,fallback:u,icons:s,minScale:b,maxScale:y,getContainer:g,current:j,count:_.length,countRender:x,onTransform:E,toolbarRender:S,imageRender:k,onChange:function(e,t){R(e),null==C||C(e,t)}},O)))},"production"!==process.env.NODE_ENV&&(_C.displayName="Image");var PC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},NC=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:PC}))},LC=e.forwardRef(NC);"production"!==process.env.NODE_ENV&&(LC.displayName="RotateLeftOutlined");var IC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},jC=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:IC}))},RC=e.forwardRef(jC);"production"!==process.env.NODE_ENV&&(RC.displayName="RotateRightOutlined");var TC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},DC=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:TC}))},zC=e.forwardRef(DC);"production"!==process.env.NODE_ENV&&(zC.displayName="SwapOutlined");var AC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},BC=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:AC}))},HC=e.forwardRef(BC);"production"!==process.env.NODE_ENV&&(HC.displayName="ZoomInOutlined");var FC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},VC=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:FC}))},WC=e.forwardRef(VC);"production"!==process.env.NODE_ENV&&(WC.displayName="ZoomOutOutlined");const UC=e=>({position:e||"absolute",inset:0}),XC=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new gr("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},qi),{padding:`0 ${Ft(o)}`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},qC=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,marginXL:r,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,p=new gr(n).setAlpha(.1),h=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:r,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:r,right:{_skip_check_:!0,value:r},display:"flex",color:d,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ft(a)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},GC=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,s=new gr(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},KC=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},UC()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},UC()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[qC(e),GC(e)]}]},YC=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},XC(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},UC())}}},ZC=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Ip(e,"zoom"),"&":sp(e,!0)}};var QC=Ji("Image",(e=>{const t=`${e.componentCls}-preview`,n=$i(e,{previewCls:t,modalMaskBg:new gr("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[YC(n),KC(n),Rp($i(n,{componentCls:t})),ZC(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new gr(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new gr(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new gr(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),JC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const eE={rotateLeft:e.createElement(LC,null),rotateRight:e.createElement(RC,null),zoomIn:e.createElement(HC,null),zoomOut:e.createElement(WC,null),close:e.createElement(js,null),left:e.createElement(ty,null),right:e.createElement(Cv,null),flipX:e.createElement(zC,null),flipY:e.createElement(zC,{rotate:90})};var tE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const nE=t=>{var n;const{prefixCls:o,preview:r,className:i,rootClassName:a,style:s}=t,l=tE(t,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=Fo,getPopupContainer:d,image:p}=e.useContext(ai),h=c("image",o),f=c(),g=u.Image||Fo.Image,m=Ks(h),[v,b,y]=QC(h,m),x=L(a,b,y,m),w=L(i,b,null==p?void 0:p.className),[C]=rl("ImagePreview","object"==typeof r?r.zIndex:void 0),E=e.useMemo((()=>{var t;if(!1===r)return r;const n="object"==typeof r?r:{},{getContainer:o,closeIcon:i}=n,a=tE(n,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:e.createElement("div",{className:`${h}-mask-info`},e.createElement(Uw,null),null==g?void 0:g.preview),icons:eE},a),{getContainer:null!=o?o:d,transitionName:Ol(f,"zoom",n.transitionName),maskTransitionName:Ol(f,"fade",n.maskTransitionName),zIndex:C,closeIcon:null!=i?i:null===(t=null==p?void 0:p.preview)||void 0===t?void 0:t.closeIcon})}),[r,g,null===(n=null==p?void 0:p.preview)||void 0===n?void 0:n.closeIcon]),S=Object.assign(Object.assign({},null==p?void 0:p.style),s);return v(e.createElement(_C,Object.assign({prefixCls:h,preview:E,rootClassName:x,className:w,style:S},l)))};nE.PreviewGroup=t=>{var{previewPrefixCls:n,preview:o}=t,r=JC(t,["previewPrefixCls","preview"]);const{getPrefixCls:i}=e.useContext(ai),a=i("image",n),s=`${a}-preview`,l=i(),c=Ks(a),[u,d,p]=QC(a,c),[h]=rl("ImagePreview","object"==typeof o?o.zIndex:void 0),f=e.useMemo((()=>{var e;if(!1===o)return o;const t="object"==typeof o?o:{},n=L(d,p,c,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:Ol(l,"zoom",t.transitionName),maskTransitionName:Ol(l,"fade",t.maskTransitionName),rootClassName:n,zIndex:h})}),[o]);return u(e.createElement(_C.PreviewGroup,Object.assign({preview:f,previewPrefixCls:s,icons:eE},r)))},"production"!==process.env.NODE_ENV&&(nE.displayName="Image");const oE=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:o,lightTriggerBg:r,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:o,[`${t}-sider-trigger`]:{color:i,background:r},[`${t}-sider-zero-width-trigger`]:{color:i,background:r,border:`1px solid ${n}`,borderInlineStart:0}}}},rE=e=>{const{antCls:t,componentCls:n,colorText:o,triggerColor:r,footerBg:i,triggerBg:a,headerHeight:s,headerPadding:l,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:p,zeroTriggerWidth:h,motionDurationMid:f,motionDurationSlow:g,fontSize:m,borderRadius:v,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 ${f}, 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:r,lineHeight:Ft(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${f}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:p,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:x,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,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(h).mul(-1).equal(),borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},oE(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:Ft(s),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:o,fontSize:m,background:i},[`${n}-content`]:{flex:"auto",color:o,minHeight:0}}};var iE=Ji("Layout",(e=>[rE(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:r,controlHeightSM:i,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:r,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:r}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),aE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function sE(t){let{suffixCls:n,tagName:o,displayName:r}=t;return t=>{const i=e.forwardRef(((r,i)=>e.createElement(t,Object.assign({ref:i,suffixCls:n,tagName:o},r))));return"production"!==process.env.NODE_ENV&&(i.displayName=r),i}}const lE=e.forwardRef(((t,n)=>{const{prefixCls:o,suffixCls:r,className:i,tagName:a}=t,s=aE(t,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=e.useContext(ai),c=l("layout",o),[u,d,p]=iE(c),h=r?`${c}-${r}`:c;return u(e.createElement(a,Object.assign({className:L(o||h,i,d,p),ref:n},s)))})),cE=e.forwardRef(((t,n)=>{const{direction:o}=e.useContext(ai),[r,i]=e.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:p}=t,h=qe(aE(t,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:f,layout:g}=e.useContext(ai),m=f("layout",a),v=function(e,t,n){return"boolean"==typeof n?n:!!e.length||B(t).some((e=>e.type===sy))}(r,c,u),[b,y,x]=iE(m),w=L(m,{[`${m}-has-sider`]:v,[`${m}-rtl`]:"rtl"===o},null==g?void 0:g.className,s,l,y,x),C=e.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Ze(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return b(e.createElement(ny.Provider,{value:C},e.createElement(d,Object.assign({ref:n,className:w,style:Object.assign(Object.assign({},null==g?void 0:g.style),p)},h),c)))})),uE=sE({tagName:"div",displayName:"Layout"})(cE),dE=sE({suffixCls:"header",tagName:"header",displayName:"Header"})(lE),pE=sE({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(lE),hE=sE({suffixCls:"content",tagName:"main",displayName:"Content"})(lE),fE=uE;fE.Header=dE,fE.Footer=pE,fE.Content=hE,fE.Sider=sy,fE._InternalSiderContext=iy;var gE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},mE=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:gE}))},vE=e.forwardRef(mE);"production"!==process.env.NODE_ENV&&(vE.displayName="DoubleLeftOutlined");var bE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},yE=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:bE}))},xE=e.forwardRef(yE);"production"!==process.env.NODE_ENV&&(xE.displayName="DoubleRightOutlined");var wE={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},CE=["10","20","50","100"],EE=function(e){var n=e.pageSizeOptions,o=void 0===n?CE:n,r=e.locale,i=e.changeSize,a=e.pageSize,s=e.goButton,l=e.quickGo,c=e.rootPrefixCls,u=e.selectComponentClass,d=e.selectPrefixCls,p=e.disabled,h=e.buildOptionText,f=at(t.useState(""),2),g=f[0],m=f[1],v=function(){return!g||Number.isNaN(g)?void 0:Number(g)},b="function"==typeof h?h:function(e){return"".concat(e," ").concat(r.items_per_page)},y=function(e){""!==g&&(e.keyCode!==Ys.ENTER&&"click"!==e.type||(m(""),null==l||l(v())))},x="".concat(c,"-options");if(!i&&!l)return null;var w=null,C=null,E=null;if(i&&u){var S=(o.some((function(e){return e.toString()===a.toString()}))?o:o.concat([a.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,n){return t.createElement(u.Option,{key:n,value:e.toString()},b(e))}));w=t.createElement(u,{disabled:p,prefixCls:d,showSearch:!1,className:"".concat(x,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||o[0]).toString(),onChange:function(e){null==i||i(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},S)}return l&&(s&&(E="boolean"==typeof s?t.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:p,className:"".concat(x,"-quick-jumper-button")},r.jump_to_confirm):t.createElement("span",{onClick:y,onKeyUp:y},s)),C=t.createElement("div",{className:"".concat(x,"-quick-jumper")},r.jump_to,t.createElement("input",{disabled:p,type:"text",value:g,onChange:function(e){m(e.target.value)},onKeyUp:y,onBlur:function(e){s||""===g||(m(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(v()))},"aria-label":r.page}),r.page,E)),t.createElement("li",{className:x},w,C)};"production"!==process.env.NODE_ENV&&(EE.displayName="Options");var SE=function(e){var n,o=e.rootPrefixCls,r=e.page,i=e.active,a=e.className,s=e.showTitle,l=e.onClick,c=e.onKeyPress,u=e.itemRender,d="".concat(o,"-item"),p=L(d,"".concat(d,"-").concat(r),(Z(n={},"".concat(d,"-active"),i),Z(n,"".concat(d,"-disabled"),!r),n),a),h=u(r,"page",t.createElement("a",{rel:"nofollow"},r));return h?t.createElement("li",{title:s?String(r):null,className:p,onClick:function(){l(r)},onKeyDown:function(e){c(e,l,r)},tabIndex:0},h):null};"production"!==process.env.NODE_ENV&&(SE.displayName="Pager");var kE=function(e,t,n){return n};function OE(){}function $E(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ME(e,t,n){var o=void 0===e?t:e;return Math.floor((n-1)/o)+1}var _E=function(e){var n,o=e.prefixCls,r=void 0===o?"rc-pagination":o,i=e.selectPrefixCls,a=void 0===i?"rc-select":i,s=e.className,c=e.selectComponentClass,u=e.current,d=e.defaultCurrent,p=void 0===d?1:d,h=e.total,f=void 0===h?0:h,g=e.pageSize,m=e.defaultPageSize,v=void 0===m?10:m,b=e.onChange,y=void 0===b?OE:b,x=e.hideOnSinglePage,w=e.align,C=e.showPrevNextJumpers,E=void 0===C||C,S=e.showQuickJumper,k=e.showLessItems,O=e.showTitle,$=void 0===O||O,M=e.onShowSizeChange,_=void 0===M?OE:M,P=e.locale,N=void 0===P?wE:P,j=e.style,R=e.totalBoundaryShowSizeChanger,T=void 0===R?50:R,D=e.disabled,z=e.simple,A=e.showTotal,B=e.showSizeChanger,H=e.pageSizeOptions,F=e.itemRender,V=void 0===F?kE:F,W=e.jumpPrevIcon,U=e.jumpNextIcon,X=e.prevIcon,G=e.nextIcon,Y=t.useRef(null),Q=at(Ei(10,{value:g,defaultValue:v}),2),ee=Q[0],te=Q[1],ne=at(Ei(1,{value:u,defaultValue:p,postState:function(e){return Math.max(1,Math.min(e,ME(void 0,ee,f)))}}),2),oe=ne[0],re=ne[1],ie=at(t.useState(oe),2),ae=ie[0],se=ie[1];l((function(){se(oe)}),[oe]);var le=y!==OE,ce="current"in e;"production"!==process.env.NODE_ENV&&q(!ce||le,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var ue=Math.max(1,oe-(k?3:5)),de=Math.min(ME(void 0,ee,f),oe+(k?3:5));function pe(n,o){var i=n||t.createElement("button",{type:"button","aria-label":o,className:"".concat(r,"-item-link")});return"function"==typeof n&&(i=t.createElement(n,J({},e))),i}function he(e){var t=e.target.value,n=ME(void 0,ee,f);return""===t?t:Number.isNaN(Number(t))?ae:t>=n?n:Number(t)}var fe=f>ee&&S;function ge(e){var t=he(e);switch(t!==ae&&se(t),e.keyCode){case Ys.ENTER:me(t);break;case Ys.UP:me(t-1);break;case Ys.DOWN:me(t+1)}}function me(e){if(function(e){return $E(e)&&e!==oe&&$E(f)&&f>0}(e)&&!D){var t=ME(void 0,ee,f),n=e;return e>t?n=t:e<1&&(n=1),n!==ae&&se(n),re(n),null==y||y(n,ee),n}return oe}var ve=oe>1,be=oe<ME(void 0,ee,f),ye=null!=B?B:f>T;function xe(){ve&&me(oe-1)}function we(){be&&me(oe+1)}function Ce(){me(ue)}function Ee(){me(de)}function Se(e,t){if("Enter"===e.key||e.charCode===Ys.ENTER||e.keyCode===Ys.ENTER){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];t.apply(void 0,o)}}function ke(e){"click"!==e.type&&e.keyCode!==Ys.ENTER||me(ae)}var Oe=null,$e=Us(e,{aria:!0,data:!0}),Me=A&&t.createElement("li",{className:"".concat(r,"-total-text")},A(f,[0===f?0:(oe-1)*ee+1,oe*ee>f?f:oe*ee])),_e=null,Pe=ME(void 0,ee,f);if(x&&f<=ee)return null;var Ne=[],Le={rootPrefixCls:r,onClick:me,onKeyPress:Se,showTitle:$,itemRender:V,page:-1},Ie=oe-1>0?oe-1:0,je=oe+1<Pe?oe+1:Pe,Re=S&&S.goButton,Te="object"===K(z)?z.readOnly:!z,De=Re,ze=null;z&&(Re&&(De="boolean"==typeof Re?t.createElement("button",{type:"button",onClick:ke,onKeyUp:ke},N.jump_to_confirm):t.createElement("span",{onClick:ke,onKeyUp:ke},Re),De=t.createElement("li",{title:$?"".concat(N.jump_to).concat(oe,"/").concat(Pe):null,className:"".concat(r,"-simple-pager")},De)),ze=t.createElement("li",{title:$?"".concat(oe,"/").concat(Pe):null,className:"".concat(r,"-simple-pager")},Te?ae:t.createElement("input",{type:"text",value:ae,disabled:D,onKeyDown:function(e){e.keyCode!==Ys.UP&&e.keyCode!==Ys.DOWN||e.preventDefault()},onKeyUp:ge,onChange:ge,onBlur:function(e){me(he(e))},size:3}),t.createElement("span",{className:"".concat(r,"-slash")},"/"),Pe));var Ae=k?1:2;if(Pe<=3+2*Ae){Pe||Ne.push(t.createElement(SE,I({},Le,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Be=1;Be<=Pe;Be+=1)Ne.push(t.createElement(SE,I({},Le,{key:Be,page:Be,active:oe===Be})))}else{var He=k?N.prev_3:N.prev_5,Fe=k?N.next_3:N.next_5,Ve=V(ue,"jump-prev",pe(W,"prev page")),We=V(de,"jump-next",pe(U,"next page"));E&&(Oe=Ve?t.createElement("li",{title:$?He:null,key:"prev",onClick:Ce,tabIndex:0,onKeyDown:function(e){Se(e,Ce)},className:L("".concat(r,"-jump-prev"),Z({},"".concat(r,"-jump-prev-custom-icon"),!!W))},Ve):null,_e=We?t.createElement("li",{title:$?Fe:null,key:"next",onClick:Ee,tabIndex:0,onKeyDown:function(e){Se(e,Ee)},className:L("".concat(r,"-jump-next"),Z({},"".concat(r,"-jump-next-custom-icon"),!!U))},We):null);var Ue=Math.max(1,oe-Ae),Xe=Math.min(oe+Ae,Pe);oe-1<=Ae&&(Xe=1+2*Ae),Pe-oe<=Ae&&(Ue=Pe-2*Ae);for(var qe=Ue;qe<=Xe;qe+=1)Ne.push(t.createElement(SE,I({},Le,{key:qe,page:qe,active:oe===qe})));if(oe-1>=2*Ae&&3!==oe&&(Ne[0]=t.cloneElement(Ne[0],{className:L("".concat(r,"-item-after-jump-prev"),Ne[0].props.className)}),Ne.unshift(Oe)),Pe-oe>=2*Ae&&oe!==Pe-2){var Ge=Ne[Ne.length-1];Ne[Ne.length-1]=t.cloneElement(Ge,{className:L("".concat(r,"-item-before-jump-next"),Ge.props.className)}),Ne.push(_e)}1!==Ue&&Ne.unshift(t.createElement(SE,I({},Le,{key:1,page:1}))),Xe!==Pe&&Ne.push(t.createElement(SE,I({},Le,{key:Pe,page:Pe})))}var Ke=function(e){var n=V(e,"prev",pe(X,"prev page"));return t.isValidElement(n)?t.cloneElement(n,{disabled:!ve}):n}(Ie);if(Ke){var Ye=!ve||!Pe;Ke=t.createElement("li",{title:$?N.prev_page:null,onClick:xe,tabIndex:Ye?null:0,onKeyDown:function(e){Se(e,xe)},className:L("".concat(r,"-prev"),Z({},"".concat(r,"-disabled"),Ye)),"aria-disabled":Ye},Ke)}var Ze,Qe,Je=function(e){var n=V(e,"next",pe(G,"next page"));return t.isValidElement(n)?t.cloneElement(n,{disabled:!be}):n}(je);Je&&(z?(Ze=!be,Qe=ve?0:null):Qe=(Ze=!be||!Pe)?null:0,Je=t.createElement("li",{title:$?N.next_page:null,onClick:we,tabIndex:Qe,onKeyDown:function(e){Se(e,we)},className:L("".concat(r,"-next"),Z({},"".concat(r,"-disabled"),Ze)),"aria-disabled":Ze},Je));var et=L(r,s,(Z(n={},"".concat(r,"-start"),"start"===w),Z(n,"".concat(r,"-center"),"center"===w),Z(n,"".concat(r,"-end"),"end"===w),Z(n,"".concat(r,"-simple"),z),Z(n,"".concat(r,"-disabled"),D),n));return t.createElement("ul",I({className:et,style:j,ref:Y},$e),Me,Ke,z?ze:Ne,Je,t.createElement(EE,{locale:N,rootPrefixCls:r,disabled:D,selectComponentClass:c,selectPrefixCls:a,changeSize:ye?function(e){var t=ME(e,ee,f),n=oe>t&&0!==t?t:oe;te(e),se(n),null==_||_(oe,e),re(n),null==y||y(n,e)}:null,pageSize:ee,pageSizeOptions:H,quickGo:fe?me:null,goButton:De}))};"production"!==process.env.NODE_ENV&&(_E.displayName="Pagination");const PE=t=>e.createElement(om,Object.assign({},t,{showSearch:!0,size:"small"})),NE=t=>e.createElement(om,Object.assign({},t,{showSearch:!0,size:"middle"}));PE.Option=om.Option,NE.Option=om.Option;const LE=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},IE=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Ft(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ft(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ft(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Ft(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Ft(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Ft(e.itemSizeSM),input:Object.assign(Object.assign({},Yy(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},jE=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:Ft(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Ft(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Ft(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Ft(e.inputOutlineOffset)} 0 ${Ft(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},RE=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Ft(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ft(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Ft(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Zy(e)),zy(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Dy(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},TE=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Ft(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Ft(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ft(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},DE=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gi(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Ft(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),TE(e)),RE(e)),jE(e)),IE(e)),LE(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},zE=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Zi(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Yi(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Yi(e))}}}},AE=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Ry(e)),BE=e=>$i(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},jy(e));var HE=Ji("Pagination",(e=>{const t=BE(e);return[DE(t),zE(t)]}),AE);const FE=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Ft(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var VE=ta(["Pagination","bordered"],(e=>{const t=BE(e);return[FE(t)]}),AE),WE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const UE=t=>{const{align:n,prefixCls:o,selectPrefixCls:r,className:i,rootClassName:a,style:s,size:l,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:p}=t,h=WE(t,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=cm(d),[,g]=Ui(),{getPrefixCls:m,direction:v,pagination:b={}}=e.useContext(ai),y=m("pagination",o),[x,w,C]=HE(y),E=null!=p?p:b.showSizeChanger,S=e.useMemo((()=>{const t=e.createElement("span",{className:`${y}-item-ellipsis`},"•••");return{prevIcon:e.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?e.createElement(Cv,null):e.createElement(ty,null)),nextIcon:e.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?e.createElement(ty,null):e.createElement(Cv,null)),jumpPrevIcon:e.createElement("a",{className:`${y}-item-link`},e.createElement("div",{className:`${y}-item-container`},"rtl"===v?e.createElement(xE,{className:`${y}-item-link-icon`}):e.createElement(vE,{className:`${y}-item-link-icon`}),t)),jumpNextIcon:e.createElement("a",{className:`${y}-item-link`},e.createElement("div",{className:`${y}-item-container`},"rtl"===v?e.createElement(vE,{className:`${y}-item-link-icon`}):e.createElement(xE,{className:`${y}-item-link-icon`}),t))}}),[v,y]),[k]=Go("Pagination",Do),O=Object.assign(Object.assign({},k),c),$=Dl(l),M="small"===$||!(!f||$||!d),_=m("select",r),P=L({[`${y}-${n}`]:!!n,[`${y}-mini`]:M,[`${y}-rtl`]:"rtl"===v,[`${y}-bordered`]:g.wireframe},null==b?void 0:b.className,i,a,w,C),N=Object.assign(Object.assign({},null==b?void 0:b.style),s);return x(e.createElement(e.Fragment,null,g.wireframe&&e.createElement(VE,{prefixCls:y}),e.createElement(_E,Object.assign({},S,h,{style:N,prefixCls:y,selectPrefixCls:_,className:P,selectComponentClass:u||(M?PE:NE),locale:O,showSizeChanger:E}))))};"production"!==process.env.NODE_ENV&&(UE.displayName="Pagination");var XE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};var qE=ph((t=>{const{prefixCls:n,className:o,closeIcon:r,closable:i,type:a,title:s,children:l,footer:c}=t,u=XE(t,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=e.useContext(ai),p=d(),h=n||d("modal"),f=Ks(p),[g,m,v]=Bp(h,f),b=`${h}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:e.createElement(Gp,Object.assign({},t,{prefixCls:h,confirmPrefixCls:b,rootPrefixCls:p,content:l}))}:{closable:null==i||i,title:s,footer:null!==c&&e.createElement(ep,Object.assign({},t)),children:l},g(e.createElement(ru,Object.assign({prefixCls:h,className:L(m,`${h}-pure-panel`,a&&b,a&&`${b}-${a}`,o,v,f)},u,{closeIcon:Jd(h,r),closable:i},y)))}));function GE(e){return th(nh(e))}const KE=Wp;KE.useModal=function(){const t=e.useRef(null),[n,o]=e.useState([]);e.useEffect((()=>{if(n.length){Ze(n).forEach((e=>{e()})),o([])}}),[n]);const r=e.useCallback((n=>function(r){var i;uh+=1;const a=e.createRef();let s;const l=new Promise((e=>{s=e}));let c,u=!1;const d=e.createElement(ch,{key:`modal-${uh}`,config:n(r),ref:a,afterClose:()=>{null==c||c()},isSilent:()=>u,onConfirm:e=>{s(e)}});c=null===(i=t.current)||void 0===i?void 0:i.patchElement(d),c&&Zp.push(c);const p={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():o((t=>[].concat(Ze(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():o((e=>[].concat(Ze(e),[t])))},then:e=>(u=!0,l.then(e))};return p}),[]);return[e.useMemo((()=>({info:r(oh),success:r(rh),error:r(ih),warning:r(nh),confirm:r(ah)})),[]),e.createElement(dh,{key:"modal-holder",ref:t})]},KE.info=function(e){return th(oh(e))},KE.success=function(e){return th(rh(e))},KE.error=function(e){return th(ih(e))},KE.warning=GE,KE.warn=GE,KE.confirm=function(e){return th(ah(e))},KE.destroyAll=function(){for(;Zp.length;){const e=Zp.pop();e&&e()}},KE.config=function(e){let{rootPrefixCls:t}=e;"production"!==process.env.NODE_ENV&&Ro(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),Qp=t},KE._InternalPanelDoNotUseOrYouWillBeFired=qE,"production"!==process.env.NODE_ENV&&(KE.displayName="Modal");var YE={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"},ZE=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:YE}))},QE=e.forwardRef(ZE);"production"!==process.env.NODE_ENV&&(QE.displayName="CopyOutlined");var JE={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"},eS=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:JE}))},tS=e.forwardRef(eS);"production"!==process.env.NODE_ENV&&(tS.displayName="EditOutlined");var nS={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"},oS=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:nS}))},rS=e.forwardRef(oS);"production"!==process.env.NODE_ENV&&(rS.displayName="EnterOutlined");var iS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},aS=function(t,n){return e.createElement(Os,I({},t,{ref:n,icon:iS}))},sS=e.forwardRef(aS);"production"!==process.env.NODE_ENV&&(sS.displayName="UserOutlined");var lS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const cS={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},uS=e.forwardRef(((t,n)=>{const{style:o,noStyle:r,disabled:i,tabIndex:a=0}=t,s=lS(t,["style","noStyle","disabled","tabIndex"]);let l={};return r||(l=Object.assign({},cS)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),e.createElement("div",Object.assign({role:"button",tabIndex:a,ref:n},s,{onKeyDown:e=>{const{keyCode:t}=e;t===Ys.ENTER&&e.preventDefault()},onKeyUp:e=>{const{keyCode:n}=e,{onClick:o}=t;n===Ys.ENTER&&o&&o()},style:l}))})),dS=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,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},pS=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"}}})}},hS=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:jr[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}}),fS=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(o).mul(-1).equal(),marginBottom:`calc(1em - ${Ft(o)})`},[`${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"}}}},gS=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),mS=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"}},dS(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}}}),hS(e)),pS(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},Xi(e)),{marginInlineStart:e.marginXXS})}),fS(e)),gS(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 vS=Ji("Typography",(e=>[mS(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));const bS=t=>{const{prefixCls:n,"aria-label":o,className:r,style:i,direction:a,maxLength:s,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:p,component:h,enterIcon:f=e.createElement(rS,null)}=t,g=e.useRef(null),m=e.useRef(!1),v=e.useRef(),[b,y]=e.useState(c);e.useEffect((()=>{y(c)}),[c]),e.useEffect((()=>{var e;if(null===(e=g.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=g.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const x=()=>{u(b.trim())},[w,C,E]=vS(n),S=L(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===a,[`${n}-${h}`]:!!h},r,C,E);return w(e.createElement("div",{className:S,style:i},e.createElement(sC,{ref:g,maxLength:s,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;m.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;v.current!==t||m.current||n||o||r||i||(t===Ys.ENTER?(x(),null==p||p()):t===Ys.ESC&&d())},onCompositionStart:()=>{m.current=!0},onCompositionEnd:()=>{m.current=!1},onBlur:()=>{x()},"aria-label":o,rows:1,autoSize:l}),null!==f?Gs(f,{className:`${n}-edit-content-confirm`}):null))};var yS=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));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()}},xS={"text/plain":"Text","text/html":"Url",default:"Text"};var wS=function(e,t){var n,o,r,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(r=yS(),i=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=xS[t.format]||xS.default;window.clipboardData.setData(r,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=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(o,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),r()}return l},CS=S(wS),ES=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};function SS(t,n){return e.useMemo((()=>{const e=!!t;return[e,Object.assign(Object.assign({},n),e&&"object"==typeof t?t:null)]}),[t])}var kS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const OS=e.forwardRef(((t,n)=>{const{prefixCls:o,component:r="article",className:i,rootClassName:a,setContentRef:s,children:l,direction:c,style:u}=t,d=kS(t,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:h,typography:f}=e.useContext(ai),g=null!=c?c:h,m=s?re(n,s):n,v=p("typography",o);if("production"!==process.env.NODE_ENV){jo("Typography").deprecated(!s,"setContentRef","ref")}const[b,y,x]=vS(v),w=L(v,null==f?void 0:f.className,{[`${v}-rtl`]:"rtl"===g},i,a,y,x),C=Object.assign(Object.assign({},null==f?void 0:f.style),u);return b(e.createElement(r,Object.assign({className:w,style:C,ref:m},d),l))}));function $S(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function MS(e,t,n){return!0===e||void 0===e?t:e||n&&t}"production"!==process.env.NODE_ENV&&(OS.displayName="Typography");const _S=e=>["string","number"].includes(typeof e),PS=t=>{let{prefixCls:n,copied:o,locale:r,iconOnly:i,tooltips:a,icon:s,tabIndex:l,onCopy:c,loading:u}=t;const d=$S(a),p=$S(s),{copied:h,copy:f}=null!=r?r:{},g=o?h:f,m=MS(d[o?1:0],g),v="string"==typeof m?m:g;return e.createElement(Wm,{title:m},e.createElement(uS,{className:L(`${n}-copy`,{[`${n}-copy-success`]:o,[`${n}-copy-icon-only`]:i}),onClick:c,"aria-label":v,tabIndex:l},o?MS(p[1],e.createElement(qg,null),!0):MS(p[0],u?e.createElement(Js,null):e.createElement(QE,null),!0)))},NS=e.forwardRef(((t,n)=>{let{style:o,children:r}=t;const i=e.useRef(null);return e.useImperativeHandle(n,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),e.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)"},o)},r)}));function LS(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const i=e[r],a=n+(_S(i)?String(i).length:1);if(a>t){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=a}return e}const IS=0,jS=4,RS={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function TS(t){const{enableMeasure:n,width:o,text:r,children:i,rows:a,expanded:s,miscDeps:l,onEllipsis:c}=t,u=e.useMemo((()=>B(r)),[r]),d=e.useMemo((()=>(e=>e.reduce(((e,t)=>e+(_S(t)?String(t).length:1)),0))(u)),[r]),p=e.useMemo((()=>i(u,!1)),[r]),[h,f]=e.useState(null),g=e.useRef(null),m=e.useRef(null),v=e.useRef(null),b=e.useRef(null),y=e.useRef(null),[x,w]=e.useState(!1),[C,E]=e.useState(IS),[S,k]=e.useState(0),[O,$]=e.useState(null);Gt((()=>{E(n&&o&&d?1:IS)}),[o,r,a,n,u]),Gt((()=>{var e,t,n,o;if(1===C){E(2);const e=m.current&&getComputedStyle(m.current).whiteSpace;$(e)}else if(2===C){const r=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());E(r?3:jS),f(r?[0,d]:null),w(r);const i=(null===(t=v.current)||void 0===t?void 0:t.getHeight())||0,s=1===a?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0,l=(null===(o=y.current)||void 0===o?void 0:o.getHeight())||0,u=Math.max(i,s+l);k(u+1),c(r)}}),[C]);const M=h?Math.ceil((h[0]+h[1])/2):0;Gt((()=>{var e;const[t,n]=h||[0,0];if(t!==n){const o=((null===(e=g.current)||void 0===e?void 0:e.getHeight())||0)>S;let r=M;n-t==1&&(r=o?t:n),f(o?[t,r]:[r,n])}}),[h,M]);const _=e.useMemo((()=>{if(!n)return i(u,!1);if(3!==C||!h||h[0]!==h[1]){const t=i(u,!1);return[jS,IS].includes(C)?t:e.createElement("span",{style:Object.assign(Object.assign({},RS),{WebkitLineClamp:a})},t)}return i(s?u:LS(u,h[0]),x)}),[s,C,h,u].concat(Ze(l))),P={width:o,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return e.createElement(e.Fragment,null,_,2===C&&e.createElement(e.Fragment,null,e.createElement(NS,{style:Object.assign(Object.assign(Object.assign({},P),RS),{WebkitLineClamp:a}),ref:v},p),e.createElement(NS,{style:Object.assign(Object.assign(Object.assign({},P),RS),{WebkitLineClamp:a-1}),ref:b},p),e.createElement(NS,{style:Object.assign(Object.assign(Object.assign({},P),RS),{WebkitLineClamp:1}),ref:y},i([],!0))),3===C&&h&&h[0]!==h[1]&&e.createElement(NS,{style:Object.assign(Object.assign({},P),{top:400}),ref:g},i(LS(u,M),!0)),1===C&&e.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const DS=t=>{let{enableEllipsis:n,isEllipsis:o,children:r,tooltipProps:i}=t;return(null==i?void 0:i.title)&&n?e.createElement(Wm,Object.assign({open:!!o&&void 0},i),r):r};"production"!==process.env.NODE_ENV&&(DS.displayName="EllipsisTooltip");var zS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const AS=e.forwardRef(((t,n)=>{var r;const{prefixCls:i,className:s,style:c,type:d,disabled:p,children:h,ellipsis:f,editable:g,copyable:m,component:v,title:b}=t,y=zS(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:w}=e.useContext(ai),[C]=Go("Text"),E=e.useRef(null),S=e.useRef(null),k=x("typography",i),O=qe(y,["mark","code","delete","underline","strong","keyboard","italic"]),[$,M]=SS(g),[_,P]=Ei(!1,{value:M.editing}),{triggerType:N=["icon"]}=M,I=e=>{var t;e&&(null===(t=M.onStart)||void 0===t||t.call(M)),P(e)},j=(e=>{const t=a();return l((()=>{t.current=e})),t.current})(_);Gt((()=>{var e;!_&&j&&(null===(e=S.current)||void 0===e||e.focus())}),[_]);const R=e=>{null==e||e.preventDefault(),I(!0)},T=e=>{var t;null===(t=M.onChange)||void 0===t||t.call(M,e),I(!1)},D=()=>{var e;null===(e=M.onCancel)||void 0===e||e.call(M),I(!1)},[z,A]=SS(m),{copied:H,copyLoading:F,onClick:V}=(t=>{let{copyConfig:n,children:o}=t;const[r,i]=e.useState(!1),[a,s]=e.useState(!1),l=e.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};return n.format&&(u.format=n.format),e.useEffect((()=>c),[]),{copied:r,copyLoading:a,onClick:xi((e=>ES(void 0,void 0,void 0,(function*(){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),s(!0);try{const r="function"==typeof n.text?yield n.text():n.text;CS(r||String(o)||"",u),s(!1),i(!0),c(),l.current=setTimeout((()=>{i(!1)}),3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(e){throw s(!1),e}}))))}})({copyConfig:A,children:h}),[W,U]=e.useState(!1),[X,q]=e.useState(!1),[G,K]=e.useState(!1),[Y,Z]=e.useState(!1),[Q,J]=e.useState(!0),[ee,te]=SS(f,{expandable:!1,symbol:e=>e?null==C?void 0:C.collapse:null==C?void 0:C.expand}),[ne,oe]=Ei(te.defaultExpanded||!1,{value:te.expanded}),ie=ee&&(!ne||"collapsible"===te.expandable),{rows:ae=1}=te,se=e.useMemo((()=>ie&&(void 0!==te.suffix||te.onEllipsis||te.expandable||$||z)),[ie,te,$,z]);Gt((()=>{ee&&!se&&(U(kd("webkitLineClamp")),q(kd("textOverflow")))}),[se,ee]);const[le,ce]=e.useState(ie),ue=e.useMemo((()=>!se&&(1===ae?X:W)),[se,X,W]);Gt((()=>{ce(ue&&ie)}),[ue,ie]);const de=ie&&(le?Y:G),pe=ie&&1===ae&&le,he=ie&&ae>1&&le,[fe,ge]=e.useState(0),me=e=>{var t;K(e),G!==e&&(null===(t=te.onEllipsis)||void 0===t||t.call(te,e))};e.useEffect((()=>{const e=E.current;if(ee&&le&&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(),o=t.getBoundingClientRect();return e.removeChild(t),n.left>o.left||o.right>n.right||n.top>o.top||o.bottom>n.bottom}(e);Y!==t&&Z(t)}}),[ee,le,h,he,Q,fe]),e.useEffect((()=>{const e=E.current;if("undefined"==typeof IntersectionObserver||!e||!le||!ie)return;const t=new IntersectionObserver((()=>{J(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[le,ie]);const ve=((e,t,n)=>u((()=>!0===e?{title:null!=t?t:n}:o(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e}),[e,t,n]))(te.tooltip,M.text,h),be=e.useMemo((()=>{if(ee&&!le)return[M.text,h,b,ve.title].find(_S)}),[ee,le,b,ve.title,de]);if(_)return e.createElement(bS,{value:null!==(r=M.text)&&void 0!==r?r:"string"==typeof h?h:"",onSave:T,onCancel:D,onEnd:M.onEnd,prefixCls:k,className:s,style:c,direction:w,component:v,maxLength:M.maxLength,autoSize:M.autoSize,enterIcon:M.enterIcon});const ye=()=>{const{expandable:t,symbol:n}=te;return t?e.createElement(uS,{key:"expand",className:`${k}-${ne?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;oe(t.expanded),null===(n=te.onExpand)||void 0===n||n.call(te,e,t)})(e,{expanded:!ne}),"aria-label":ne?C.collapse:null==C?void 0:C.expand},"function"==typeof n?n(ne):n):null},xe=()=>{if(!$)return;const{icon:t,tooltip:n,tabIndex:o}=M,r=B(n)[0]||(null==C?void 0:C.edit),i="string"==typeof r?r:"";return N.includes("icon")?e.createElement(Wm,{key:"edit",title:!1===n?"":r},e.createElement(uS,{ref:S,className:`${k}-edit`,onClick:R,"aria-label":i,tabIndex:o},t||e.createElement(tS,{role:"button"}))):null},we=t=>[t&&ye(),xe(),z?e.createElement(PS,Object.assign({key:"copy"},A,{prefixCls:k,copied:H,locale:C,onCopy:V,loading:F,iconOnly:null==h})):null];return e.createElement(Xe,{onResize:e=>{let{offsetWidth:t}=e;ge(t)},disabled:!ie},(o=>e.createElement(DS,{tooltipProps:ve,enableEllipsis:ie,isEllipsis:de},e.createElement(OS,Object.assign({className:L({[`${k}-${d}`]:d,[`${k}-disabled`]:p,[`${k}-ellipsis`]:ee,[`${k}-ellipsis-single-line`]:pe,[`${k}-ellipsis-multiple-line`]:he},s),prefixCls:i,style:Object.assign(Object.assign({},c),{WebkitLineClamp:he?ae:void 0}),component:v,ref:re(o,E,n),direction:w,onClick:N.includes("text")?R:void 0,"aria-label":null==be?void 0:be.toString(),title:b},O),e.createElement(TS,{enableMeasure:ie&&!le,text:h,rows:ae,width:fe,onEllipsis:me,expanded:ne,miscDeps:[H,ne,F,$,z]},((n,o)=>function(t,n){let{mark:o,code:r,underline:i,delete:a,strong:s,keyboard:l,italic:c}=t,u=n;function d(t,n){n&&(u=e.createElement(t,{},u))}return d("strong",s),d("u",i),d("del",a),d("code",r),d("mark",o),d("kbd",l),d("i",c),u}(t,e.createElement(e.Fragment,null,n.length>0&&o&&!ne&&be?e.createElement("span",{key:"show-content","aria-hidden":!0},n):n,(t=>[t&&!ne&&e.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),te.suffix,we(t)])(o)))))))))}));var BS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const HS=e.forwardRef(((t,n)=>{var{ellipsis:o,rel:r}=t,i=BS(t,["ellipsis","rel"]);if("production"!==process.env.NODE_ENV){const e=jo("Typography.Link");"production"!==process.env.NODE_ENV&&e("object"!=typeof o,"usage","`ellipsis` only supports boolean value.")}const a=Object.assign(Object.assign({},i),{rel:void 0===r&&"_blank"===i.target?"noopener noreferrer":r});return delete a.navigate,e.createElement(AS,Object.assign({},a,{ref:n,ellipsis:!!o,component:"a"}))})),FS=e.forwardRef(((t,n)=>e.createElement(AS,Object.assign({ref:n},t,{component:"div"}))));var VS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const WS=(t,n)=>{var{ellipsis:o}=t,r=VS(t,["ellipsis"]);const i=e.useMemo((()=>o&&"object"==typeof o?qe(o,["expandable","rows"]):o),[o]);if("production"!==process.env.NODE_ENV){const e=jo("Typography.Text");"production"!==process.env.NODE_ENV&&e("object"!=typeof o||!o||!("expandable"in o)&&!("rows"in o),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return e.createElement(AS,Object.assign({ref:n},r,{ellipsis:i,component:"span"}))};var US=e.forwardRef(WS),XS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const qS=[1,2,3,4,5],GS=e.forwardRef(((t,n)=>{const{level:o=1}=t,r=XS(t,["level"]);if("production"!==process.env.NODE_ENV){const e=jo("Typography.Title");"production"!==process.env.NODE_ENV&&e(qS.includes(o),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const i=qS.includes(o)?`h${o}`:"h1";return e.createElement(AS,Object.assign({ref:n},r,{component:i}))})),KS=OS;function YS(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}KS.Text=US,KS.Link=HS,KS.Title=GS,KS.Paragraph=FS;YS(".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");var ZS=function(e){var t=e.className,n=e.label,o=e.name,r=e.value,i=e.dataTestId,s=e.type,c=e.id,u=e.disabled,d=e.handleChange,p=e.onClick,h=e.defaultValue,f=e.onPressEnter,g=e.isAutoFocus,m=e.triggerFocus,v=e.isOptional,b=e.errorMessage,y=e.suffixIcon,x=e.prefixIcon,w=a(null);l((function(){g&&w.current&&w.current.focus()}),[m,g]);var C=v?"".concat(n," (optional)"):n;return P.jsxs("div",{className:"appInput ".concat(t),children:[P.jsx(lC,{type:s,"data-test-id":i,id:c,disabled:u,name:o,className:"input",value:r,onChange:d,onClick:p,defaultValue:h,onPressEnter:f,placeholder:C,ref:w,prefix:x&&x,suffix:y&&y}),b&&P.jsx("div",{className:"error",children:b})]})};YS(".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");var QS=function(e){var t=e.type,n=e.size,o=e.className,r=e.handleClick,i=e.icon,a=e.text,s=e.disabled,l=e.iconPosition,c=e.isLoading;return P.jsx("div",{className:"appButton ".concat(o),children:P.jsx(jc,{disabled:s,type:t,className:["customBtn",i?"btn-icon":"","right"===l?"iconRight":""].join(" "),size:n,onClick:r,icon:i,loading:c,children:a})})};YS('.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 JS=fE.Sider,ek=function(e){var t=e.links,n=e.logo,o=e.footerLinks,r=e.className,i=function(e){window.location.href=e},a=t.map((function(e){return{key:e.path,icon:e.icon,label:P.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&P.jsx("span",{className:"tag",children:e.tag})]})}})),s=null==o?void 0:o.map((function(e){return{key:e.path,label:P.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return P.jsx("div",{className:"sideBar ".concat(r),children:P.jsxs(JS,{className:"sider",children:[P.jsx("div",{className:"logo",children:n}),P.jsx(Ny,{mode:"inline",className:"menu",items:a}),o&&P.jsx("div",{className:"footer",children:P.jsx(Ny,{mode:"inline",items:s})})]})})};YS(".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");var tk=function(e){var t=e.id,n=e.placeholder,o=e.name,r=e.value,i=e.dataTestId,a=e.defaultValue,s=e.onPressEnter,l=e.handleChange,c=e.rows,u=e.cols,d=e.className,p=e.error;return P.jsxs("div",{className:"appTextArea ".concat(d),children:[P.jsx(lC.TextArea,{"data-test-id":i,id:t,name:o,placeholder:n,value:r,className:"textArea",onChange:l,defaultValue:a,onPressEnter:s,rows:c,cols:u}),p&&P.jsx("div",{className:"error",children:p})]})};YS(".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 nk=function(e){var t=e.className,n=e.items,o=e.handleChange,r=e.defaultActiveKey;return P.jsx("div",{className:"appTab ".concat(t),children:P.jsx(Kx,{defaultActiveKey:r,items:n,onChange:o,className:"tab"})})},ok={searchIcon:P.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[P.jsx("circle",{cx:"11.7666",cy:"12.2666",r:"8.98856",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),P.jsx("path",{d:"M18.0183 18.9851L21.5423 22.5",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),eyePassword:P.jsx("svg",{width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:P.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:P.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:P.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:P.jsxs("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[P.jsx("path",{d:"M1.25 7.27429L16.25 7.27429",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),P.jsx("path",{d:"M7.2998 13.2987L1.2498 7.27469L7.2998 1.24969",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),badge:P.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66025 0L17.3205 5V15L8.66025 20L0 15V5L8.66025 0Z",fill:"#FBBA07"}),P.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"}),P.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"}),P.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:P.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:P.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"})})};YS(".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 rk=function(e){var t=e.text,n=void 0===t?"Back":t,o=e.href,r=e.className,i=e.backIcon;return P.jsxs("div",{className:"backArrow ".concat(r),onClick:function(){window.location.href=o},children:[P.jsx("span",{className:"icon",children:i||ok.backArrow}),n&&P.jsx("span",{className:"text",children:n})]})},ik=function(){return ik=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ik.apply(this,arguments)};function ak(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}"function"==typeof SuppressedError&&SuppressedError;YS(".appBadge {\n .ribbonWrapper {\n .ant-ribbon-wrapper {\n position: relative;\n .ant-ribbon {\n position: absolute;\n top: 0;\n }\n }\n }\n}\n");var sk=function(e){var t=e.content,n=e.children,o=e.className,r=e.ribbon,i=ak(e,["content","children","className","ribbon"]);return P.jsx("div",{className:"appBadge ".concat(o),children:P.jsx(yv,ik({count:t},i,{children:r?P.jsx("div",{className:"ribbonWrapper",children:P.jsx(yv.Ribbon,{text:r.text,color:r.color,placement:r.placement,children:n})}):n}))})};YS(".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 lk=KS.Text,ck=function(e){var t=e.className,n=e.text,o=e.number;return P.jsxs("div",{className:"overViewCard ".concat(t),children:[P.jsx(lk,{children:n}),P.jsx("span",{children:o})]})};
|
27
|
+
/*!
|
28
|
+
* @kurkle/color v0.3.2
|
29
|
+
* https://github.com/kurkle/color#readme
|
30
|
+
* (c) 2023 Jukka Kurkela
|
31
|
+
* Released under the MIT License
|
32
|
+
*/
|
33
|
+
function uk(e){return e+.5|0}const dk=(e,t,n)=>Math.max(Math.min(e,n),t);function pk(e){return dk(uk(2.55*e),0,255)}function hk(e){return dk(uk(255*e),0,255)}function fk(e){return dk(uk(e/2.55)/100,0,1)}function gk(e){return dk(uk(100*e),0,100)}const mk={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},vk=[..."0123456789ABCDEF"],bk=e=>vk[15&e],yk=e=>vk[(240&e)>>4]+vk[15&e],xk=e=>(240&e)>>4==(15&e);function wk(e){var t=(e=>xk(e.r)&&xk(e.g)&&xk(e.b)&&xk(e.a))(e)?bk:yk;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const Ck=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ek(e,t,n){const o=t*Math.min(n,1-n),r=(t,r=(t+e/30)%12)=>n-o*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function Sk(e,t,n){const o=(o,r=(o+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[o(5),o(3),o(1)]}function kk(e,t,n){const o=Ek(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)o[r]*=1-t-n,o[r]+=t;return o}function Ok(e){const t=e.r/255,n=e.g/255,o=e.b/255,r=Math.max(t,n,o),i=Math.min(t,n,o),a=(r+i)/2;let s,l,c;return r!==i&&(c=r-i,l=a>.5?c/(2-r-i):c/(r+i),s=function(e,t,n,o,r){return e===r?(t-n)/o+(t<n?6:0):t===r?(n-e)/o+2:(e-t)/o+4}(t,n,o,c,r),s=60*s+.5),[0|s,l||0,a]}function $k(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(hk)}function Mk(e,t,n){return $k(Ek,e,t,n)}function _k(e){return(e%360+360)%360}function Pk(e){const t=Ck.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?pk(+t[5]):hk(+t[5]));const r=_k(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return $k(kk,e,t,n)}(r,i,a):"hsv"===t[1]?function(e,t,n){return $k(Sk,e,t,n)}(r,i,a):Mk(r,i,a),{r:n[0],g:n[1],b:n[2],a:o}}const Nk={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Lk={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Ik;function jk(e){Ik||(Ik=function(){const e={},t=Object.keys(Lk),n=Object.keys(Nk);let o,r,i,a,s;for(o=0;o<t.length;o++){for(a=s=t[o],r=0;r<n.length;r++)i=n[r],s=s.replace(i,Nk[i]);i=parseInt(Lk[a],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),Ik.transparent=[0,0,0,0]);const t=Ik[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const Rk=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Tk=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Dk=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function zk(e,t,n){if(e){let o=Ok(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=Mk(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function Ak(e,t){return e?Object.assign(t||{},e):e}function Bk(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=hk(e[3]))):(t=Ak(e,{r:0,g:0,b:0,a:1})).a=hk(t.a),t}function Hk(e){return"r"===e.charAt(0)?function(e){const t=Rk.exec(e);let n,o,r,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?pk(e):dk(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?pk(n):dk(n,0,255)),o=255&(t[4]?pk(o):dk(o,0,255)),r=255&(t[6]?pk(r):dk(r,0,255)),{r:n,g:o,b:r,a:i}}}(e):Pk(e)}class Fk{constructor(e){if(e instanceof Fk)return e;const t=typeof e;let n;var o,r,i;"object"===t?n=Bk(e):"string"===t&&(i=(o=e).length,"#"===o[0]&&(4===i||5===i?r={r:255&17*mk[o[1]],g:255&17*mk[o[2]],b:255&17*mk[o[3]],a:5===i?17*mk[o[4]]:255}:7!==i&&9!==i||(r={r:mk[o[1]]<<4|mk[o[2]],g:mk[o[3]]<<4|mk[o[4]],b:mk[o[5]]<<4|mk[o[6]],a:9===i?mk[o[7]]<<4|mk[o[8]]:255})),n=r||jk(e)||Hk(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Ak(this._rgb);return e&&(e.a=fk(e.a)),e}set rgb(e){this._rgb=Bk(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${fk(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?wk(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=Ok(e),n=t[0],o=gk(t[1]),r=gk(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${r}%, ${fk(e.a)})`:`hsl(${n}, ${o}%, ${r}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,o=e.rgb;let r;const i=t===r?.5:t,a=2*i-1,s=n.a-o.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-l,n.r=255&l*n.r+r*o.r+.5,n.g=255&l*n.g+r*o.g+.5,n.b=255&l*n.b+r*o.b+.5,n.a=i*n.a+(1-i)*o.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const o=Dk(fk(e.r)),r=Dk(fk(e.g)),i=Dk(fk(e.b));return{r:hk(Tk(o+n*(Dk(fk(t.r))-o))),g:hk(Tk(r+n*(Dk(fk(t.g))-r))),b:hk(Tk(i+n*(Dk(fk(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new Fk(this.rgb)}alpha(e){return this._rgb.a=hk(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=uk(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return zk(this._rgb,2,e),this}darken(e){return zk(this._rgb,2,-e),this}saturate(e){return zk(this._rgb,1,e),this}desaturate(e){return zk(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=Ok(e);n[0]=_k(n[0]+t),n=Mk(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}
|
34
|
+
/*!
|
35
|
+
* Chart.js v4.4.4
|
36
|
+
* https://www.chartjs.org
|
37
|
+
* (c) 2024 Chart.js Contributors
|
38
|
+
* Released under the MIT License
|
39
|
+
*/function Vk(){}const Wk=(()=>{let e=0;return()=>e++})();function Uk(e){return null==e}function Xk(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function qk(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function Gk(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function Kk(e,t){return Gk(e)?e:t}function Yk(e,t){return void 0===e?t:e}const Zk=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Qk(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function Jk(e,t,n,o){let r,i,a;if(Xk(e))for(i=e.length,r=0;r<i;r++)t.call(n,e[r],r);else if(qk(e))for(a=Object.keys(e),i=a.length,r=0;r<i;r++)t.call(n,e[a[r]],a[r])}function eO(e,t){let n,o,r,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(r=e[n],i=t[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function tO(e){if(Xk(e))return e.map(tO);if(qk(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=tO(e[n[r]]);return t}return e}function nO(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function oO(e,t,n,o){if(!nO(e))return;const r=t[e],i=n[e];qk(r)&&qk(i)?rO(r,i,o):t[e]=tO(i)}function rO(e,t,n){const o=Xk(t)?t:[t],r=o.length;if(!qk(e))return e;const i=(n=n||{}).merger||oO;let a;for(let t=0;t<r;++t){if(a=o[t],!qk(a))continue;const r=Object.keys(a);for(let t=0,o=r.length;t<o;++t)i(r[t],e,a,n)}return e}function iO(e,t){return rO(e,t,{merger:aO})}function aO(e,t,n){if(!nO(e))return;const o=t[e],r=n[e];qk(o)&&qk(r)?iO(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=tO(r))}const sO={"":e=>e,x:e=>e.x,y:e=>e.y};function lO(e,t){const n=sO[t]||(sO[t]=function(e){const t=function(e){const t=e.split("."),n=[];let o="";for(const e of t)o+=e,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function cO(e){return e.charAt(0).toUpperCase()+e.slice(1)}const uO=e=>void 0!==e,dO=e=>"function"==typeof e,pO=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const hO=Math.PI,fO=2*hO,gO=fO+hO,mO=Number.POSITIVE_INFINITY,vO=hO/180,bO=hO/2,yO=hO/4,xO=2*hO/3,wO=Math.log10,CO=Math.sign;function EO(e,t,n){return Math.abs(e-t)<n}function SO(e){const t=Math.round(e);e=EO(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(wO(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function kO(e){return!isNaN(parseFloat(e))&&isFinite(e)}function OO(e,t,n){let o,r,i;for(o=0,r=e.length;o<r;o++)i=e[o][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function $O(e){return e*(hO/180)}function MO(e){return e*(180/hO)}function _O(e){if(!Gk(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function PO(e,t){const n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*hO&&(i+=fO),{angle:i,distance:r}}function NO(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function LO(e,t){return(e-t+gO)%fO-hO}function IO(e){return(e%fO+fO)%fO}function jO(e,t,n,o){const r=IO(e),i=IO(t),a=IO(n),s=IO(i-r),l=IO(a-r),c=IO(r-i),u=IO(r-a);return r===i||r===a||o&&i===a||s>l&&c<u}function RO(e,t,n){return Math.max(t,Math.min(n,e))}function TO(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function DO(e,t,n){n=n||(n=>e[n]<t);let o,r=e.length-1,i=0;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const zO=(e,t,n,o)=>DO(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),AO=(e,t,n)=>DO(e,n,(o=>e[o][t]>=n));const BO=["push","pop","shift","splice","unshift"];function HO(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(t);-1!==r&&o.splice(r,1),o.length>0||(BO.forEach((t=>{delete e[t]})),delete e._chartjs)}function FO(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const VO="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function WO(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,VO.call(window,(()=>{o=!1,e.apply(t,n)})))}}const UO=e=>"start"===e?"left":"end"===e?"right":"center",XO=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const qO=e=>0===e||1===e,GO=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*fO/n),KO=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*fO/n)+1,YO={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*bO),easeOutSine:e=>Math.sin(e*bO),easeInOutSine:e=>-.5*(Math.cos(hO*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>qO(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>qO(e)?e:GO(e,.075,.3),easeOutElastic:e=>qO(e)?e:KO(e,.075,.3),easeInOutElastic(e){const t=.1125;return qO(e)?e:e<.5?.5*GO(2*e,t,.45):.5+.5*KO(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-YO.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*YO.easeInBounce(2*e):.5*YO.easeOutBounce(2*e-1)+.5};function ZO(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function QO(e){return ZO(e)?e:new Fk(e)}function JO(e){return ZO(e)?e:new Fk(e).saturate(.5).darken(.1).hexString()}const e$=["x","y","borderWidth","radius","tension"],t$=["color","borderColor","backgroundColor"];const n$=new Map;function o$(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=n$.get(n);return o||(o=new Intl.NumberFormat(e,t),n$.set(n,o)),o}(t,n).format(e)}const r$={values:e=>Xk(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const o=this.chart.options.locale;let r,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const a=wO(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),o$(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(wO(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?r$.numeric.call(this,e,t,n):""}};var i$={formatters:r$};const a$=Object.create(null),s$=Object.create(null);function l$(e,t){if(!t)return e;const n=t.split(".");for(let t=0,o=n.length;t<o;++t){const o=n[t];e=e[o]||(e[o]=Object.create(null))}return e}function c$(e,t,n){return"string"==typeof t?rO(l$(e,t),n):rO(l$(e,""),t)}class u${constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>JO(t.backgroundColor),this.hoverBorderColor=(e,t)=>JO(t.borderColor),this.hoverColor=(e,t)=>JO(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return c$(this,e,t)}get(e){return l$(this,e)}describe(e,t){return c$(s$,e,t)}override(e,t){return c$(a$,e,t)}route(e,t,n,o){const r=l$(this,e),i=l$(this,n),a="_"+t;Object.defineProperties(r,{[a]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=i[o];return qk(e)?Object.assign({},t,e):Yk(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var d$=new u$({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:t$},numbers:{type:"number",properties:e$}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:i$.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function p$(e,t,n,o,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,n.push(r)),i>o&&(o=i),o}function h$(e,t,n){const o=e.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((t-r)*o)/o+r}function f$(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function g$(e,t,n,o){m$(e,t,n,o,null)}function m$(e,t,n,o,r){let i,a,s,l,c,u,d,p;const h=t.pointStyle,f=t.rotation,g=t.radius;let m=(f||0)*vO;if(h&&"object"==typeof h&&(i=h.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,o),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(g)||g<=0)){switch(e.beginPath(),h){default:r?e.ellipse(n,o,r/2,g,0,0,fO):e.arc(n,o,g,0,fO),e.closePath();break;case"triangle":u=r?r/2:g,e.moveTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=xO,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=xO,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),e.closePath();break;case"rectRounded":c=.516*g,l=g-c,a=Math.cos(m+yO)*l,d=Math.cos(m+yO)*(r?r/2-c:l),s=Math.sin(m+yO)*l,p=Math.sin(m+yO)*(r?r/2-c:l),e.arc(n-d,o-s,c,m-hO,m-bO),e.arc(n+p,o-a,c,m-bO,m),e.arc(n+d,o+s,c,m,m+bO),e.arc(n-p,o+a,c,m+bO,m+hO),e.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*g,u=r?r/2:l,e.rect(n-u,o-l,2*u,2*l);break}m+=yO;case"rectRot":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+p,o-a),e.lineTo(n+d,o+s),e.lineTo(n-p,o+a),e.closePath();break;case"crossRot":m+=yO;case"cross":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a);break;case"star":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a),m+=yO,d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a);break;case"line":a=r?r/2:Math.cos(m)*g,s=Math.sin(m)*g,e.moveTo(n-a,o-s),e.lineTo(n+a,o+s);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(m)*(r?r/2:g),o+Math.sin(m)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function v$(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function b$(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function y$(e){e.restore()}function x$(e,t,n,o,r){if(!t)return e.lineTo(n.x,n.y);if("middle"===r){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===r!=!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function w$(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function C$(e,t,n,o,r){if(r.strikethrough||r.underline){const i=e.measureText(o),a=t-i.actualBoundingBoxLeft,s=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function E$(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function S$(e,t,n,o,r,i={}){const a=Xk(t)?t:[t],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Uk(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),l=0;l<a.length;++l)c=a[l],i.backdrop&&E$(e,i.backdrop),s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),Uk(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,o,i.maxWidth)),e.fillText(c,n,o,i.maxWidth),C$(e,n,o,c,i),o+=Number(r.lineHeight);e.restore()}function k$(e,t){const{x:n,y:o,w:r,h:i,radius:a}=t;e.arc(n+a.topLeft,o+a.topLeft,a.topLeft,1.5*hO,hO,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,hO,bO,!0),e.lineTo(n+r-a.bottomRight,o+i),e.arc(n+r-a.bottomRight,o+i-a.bottomRight,a.bottomRight,bO,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-bO,!0),e.lineTo(n+a.topLeft,o)}const O$=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,$$=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function M$(e,t){const n=(""+e).match(O$);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const _$=e=>+e||0;function P$(e,t){const n={},o=qk(t),r=o?Object.keys(t):t,i=qk(e)?o?n=>Yk(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=_$(i(e));return n}function N$(e){return P$(e,{top:"y",right:"x",bottom:"y",left:"x"})}function L$(e){return P$(e,["topLeft","topRight","bottomLeft","bottomRight"])}function I$(e){const t=N$(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function j$(e,t){e=e||{},t=t||d$.font;let n=Yk(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let o=Yk(e.style,t.style);o&&!(""+o).match($$)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:Yk(e.family,t.family),lineHeight:M$(Yk(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:Yk(e.weight,t.weight),string:""};return r.string=function(e){return!e||Uk(e.size)||Uk(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function R$(e,t,n,o){let r,i,a;for(r=0,i=e.length;r<i;++r)if(a=e[r],void 0!==a&&void 0!==a)return a}function T$(e,t){return Object.assign(Object.create(e),t)}function D$(e,t=[""],n,o,r=()=>e[0]){const i=n||e;void 0===o&&(o=G$("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:n=>D$([n,...e],t,i,o)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,o)=>F$(n,o,(()=>function(e,t,n,o){let r;for(const i of t)if(r=G$(B$(i,e),n),void 0!==r)return H$(e,r)?X$(n,o,e,r):r}(o,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>K$(e).includes(t),ownKeys:e=>K$(e),set(e,t,n){const o=e._storage||(e._storage=r());return e[t]=o[t]=n,delete e._keys,!0}})}function z$(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:A$(e,o),setContext:t=>z$(e,t,n,o),override:r=>z$(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>F$(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:a}=e;let s=o[t];dO(s)&&a.isScriptable(t)&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(i,a||o);s.delete(e),H$(e,l)&&(l=X$(r._scopes,r,e,l));return l}(t,s,e,n));Xk(s)&&s.length&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_descriptors:s}=n;if(void 0!==i.index&&o(e))return t[i.index%t.length];if(qk(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=X$(o,r,e,l);t.push(z$(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));H$(t,s)&&(s=z$(s,r,i&&i[t],a));return s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,o)=>(e[n]=o,delete t[n],!0)})}function A$(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:o,isScriptable:dO(n)?n:()=>n,isIndexable:dO(o)?o:()=>o}}const B$=(e,t)=>e?e+cO(t):t,H$=(e,t)=>qk(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function F$(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const o=n();return e[t]=o,o}function V$(e,t,n){return dO(e)?e(t,n):e}const W$=(e,t)=>!0===e?t:"string"==typeof e?lO(t,e):void 0;function U$(e,t,n,o,r){for(const i of t){const t=W$(n,i);if(t){e.add(t);const i=V$(t._fallback,n,r);if(void 0!==i&&i!==n&&i!==o)return i}else if(!1===t&&void 0!==o&&n!==o)return null}return!1}function X$(e,t,n,o){const r=t._rootScopes,i=V$(t._fallback,n,o),a=[...e,...r],s=new Set;s.add(o);let l=q$(s,a,n,i||n,o);return null!==l&&((void 0===i||i===n||(l=q$(s,a,i,l,o),null!==l))&&D$(Array.from(s),[""],r,i,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];if(Xk(r)&&qk(n))return n;return r||{}}(t,n,o))))}function q$(e,t,n,o,r){for(;n;)n=U$(e,t,n,o,r);return n}function G$(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function K$(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}const Y$=Number.EPSILON||1e-14,Z$=(e,t)=>t<e.length&&!e[t].skip&&e[t],Q$=e=>"x"===e?"y":"x";function J$(e,t,n,o){const r=e.skip?t:e,i=t,a=n.skip?t:n,s=NO(i,r),l=NO(a,i);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=o*c,p=o*u;return{previous:{x:i.x-d*(a.x-r.x),y:i.y-d*(a.y-r.y)},next:{x:i.x+p*(a.x-r.x),y:i.y+p*(a.y-r.y)}}}function eM(e,t="x"){const n=Q$(t),o=e.length,r=Array(o).fill(0),i=Array(o);let a,s,l,c=Z$(e,0);for(a=0;a<o;++a)if(s=l,l=c,c=Z$(e,a+1),l){if(c){const e=c[t]-l[t];r[a]=0!==e?(c[n]-l[n])/e:0}i[a]=s?c?CO(r[a-1])!==CO(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}!function(e,t,n){const o=e.length;let r,i,a,s,l,c=Z$(e,0);for(let u=0;u<o-1;++u)l=c,c=Z$(e,u+1),l&&c&&(EO(t[u],0,Y$)?n[u]=n[u+1]=0:(r=n[u]/t[u],i=n[u+1]/t[u],s=Math.pow(r,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),n[u]=r*a*t[u],n[u+1]=i*a*t[u])))}(e,r,i),function(e,t,n="x"){const o=Q$(n),r=e.length;let i,a,s,l=Z$(e,0);for(let c=0;c<r;++c){if(a=s,s=l,l=Z$(e,c+1),!s)continue;const r=s[n],u=s[o];a&&(i=(r-a[n])/3,s[`cp1${n}`]=r-i,s[`cp1${o}`]=u-i*t[c]),l&&(i=(l[n]-r)/3,s[`cp2${n}`]=r+i,s[`cp2${o}`]=u+i*t[c])}}(e,i,t)}function tM(e,t,n){return Math.max(Math.min(e,n),t)}function nM(e,t,n,o,r){let i,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)eM(e,r);else{let n=o?e[e.length-1]:e[0];for(i=0,a=e.length;i<a;++i)s=e[i],l=J$(n,s,e[Math.min(i+1,a-(o?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,o,r,i,a,s=v$(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=s,s=n<o-1&&v$(e[n+1],t),i&&(r=e[n],a&&(r.cp1x=tM(r.cp1x,t.left,t.right),r.cp1y=tM(r.cp1y,t.top,t.bottom)),s&&(r.cp2x=tM(r.cp2x,t.left,t.right),r.cp2y=tM(r.cp2y,t.top,t.bottom)))}(e,n)}function oM(){return"undefined"!=typeof window&&"undefined"!=typeof document}function rM(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function iM(e,t,n){let o;return"string"==typeof e?(o=parseInt(e,10),-1!==e.indexOf("%")&&(o=o/100*t.parentNode[n])):o=e,o}const aM=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const sM=["top","right","bottom","left"];function lM(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=sM[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const cM=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function uM(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=aM(n),i="border-box"===r.boxSizing,a=lM(r,"padding"),s=lM(r,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:r,offsetY:i}=o;let a,s,l=!1;if(cM(r,i,e.target))a=r,s=i;else{const e=t.getBoundingClientRect();a=o.clientX-e.left,s=o.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(u&&s.left),p=a.top+(u&&s.top);let{width:h,height:f}=t;return i&&(h-=a.width+s.width,f-=a.height+s.height),{x:Math.round((l-d)/h*n.width/o),y:Math.round((c-p)/f*n.height/o)}}const dM=e=>Math.round(10*e)/10;function pM(e,t,n,o){const r=aM(e),i=lM(r,"margin"),a=iM(r.maxWidth,e,"clientWidth")||mO,s=iM(r.maxHeight,e,"clientHeight")||mO,l=function(e,t,n){let o,r;if(void 0===t||void 0===n){const i=e&&rM(e);if(i){const e=i.getBoundingClientRect(),a=aM(i),s=lM(a,"border","width"),l=lM(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,o=iM(a.maxWidth,i,"clientWidth"),r=iM(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||mO,maxHeight:r||mO}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=lM(r,"border","width"),t=lM(r,"padding");c-=t.width+e.width,u-=t.height+e.height}c=Math.max(0,c-i.width),u=Math.max(0,o?c/o:u-i.height),c=dM(Math.min(c,a,l.maxWidth)),u=dM(Math.min(u,s,l.maxHeight)),c&&!u&&(u=dM(c/2));return(void 0!==t||void 0!==n)&&o&&l.height&&u>l.height&&(u=l.height,c=dM(Math.floor(u*o))),{width:c,height:u}}function hM(e,t,n){const o=t||1,r=Math.floor(e.height*o),i=Math.floor(e.width*o);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==o||a.height!==r||a.width!==i)&&(e.currentDevicePixelRatio=o,a.height=r,a.width=i,e.ctx.setTransform(o,0,0,o,0,0),!0)}const fM=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};oM()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function gM(e,t){const n=function(e,t){return aM(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function mM(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function vM(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:"middle"===o?n<.5?e.y:t.y:"after"===o?n<1?e.y:t.y:n>0?t.y:e.y}}function bM(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=mM(e,r,n),s=mM(r,i,n),l=mM(i,t,n),c=mM(a,s,n),u=mM(s,l,n);return mM(c,u,n)}function yM(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function xM(e,t){let n,o;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}function wM(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function CM(e){return"angle"===e?{between:jO,compare:LO,normalize:IO}:{between:TO,compare:(e,t)=>e-t,normalize:e=>e}}function EM({start:e,end:t,count:n,loop:o,style:r}){return{start:e%n,end:t%n,loop:o&&(t-e+1)%n==0,style:r}}function SM(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=CM(o),{start:u,end:d,loop:p,style:h}=function(e,t,n){const{property:o,start:r,end:i}=n,{between:a,normalize:s}=CM(o),l=t.length;let c,u,{start:d,end:p,loop:h}=e;if(h){for(d+=l,p+=l,c=0,u=l;c<u&&a(s(t[d%l][o]),r,i);++c)d--,p--;d%=l,p%=l}return p<d&&(p+=l),{start:d,end:p,loop:h,style:e.style}}(e,t,n),f=[];let g,m,v,b=!1,y=null;const x=()=>b||l(r,v,g)&&0!==s(r,v),w=()=>!b||0===s(i,g)||l(i,v,g);for(let e=u,n=u;e<=d;++e)m=t[e%a],m.skip||(g=c(m[o]),g!==v&&(b=l(g,r,i),null===y&&x()&&(y=0===s(g,r)?e:n),null!==y&&w()&&(f.push(EM({start:y,end:e,loop:p,count:a,style:h})),y=null),n=e,v=g));return null!==y&&f.push(EM({start:y,end:d,loop:p,count:a,style:h})),f}function kM(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),i=OM(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=i,d=t[0].start,p=d;function h(e,t,o,r){const i=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=i;for(;n[t%l].skip;)t+=i;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:o,style:r}),u=r,d=t%l)}}for(const e of t){d=s?d:e.start;let t,i=n[d%l];for(p=d+1;p<=e.end;p++){const s=n[p%l];t=OM(o.setContext(T$(r,{type:"segment",p0:i,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),$M(t,u)&&h(d,p-1,e.loop,u),i=s,u=t}d<p-1&&h(d,p-1,e.loop,u)}return c}(e,t,n,o):t}function OM(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function $M(e,t){if(!t)return!1;const n=[],o=function(e,t){return ZO(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,o)!==JSON.stringify(t,o)}
|
40
|
+
/*!
|
41
|
+
* Chart.js v4.4.4
|
42
|
+
* https://www.chartjs.org
|
43
|
+
* (c) 2024 Chart.js Contributors
|
44
|
+
* Released under the MIT License
|
45
|
+
*/class MM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,o){const r=t.listeners[o],i=t.duration;r.forEach((o=>o({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=VO.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,o)=>{if(!n.running||!n.items.length)return;const r=n.items;let i,a=r.length-1,s=!1;for(;a>=0;--a)i=r[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),s=!0):(r[a]=r[r.length-1],r.pop());s&&(o.draw(),this._notify(o,n,e,"progress")),r.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var _M=new MM;const PM="transparent",NM={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=QO(e||PM),r=o.valid&&QO(t||PM);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class LM{constructor(e,t,n,o){const r=t[n];o=R$([e.to,o,r,e.from]);const i=R$([e.from,r,o]);this._active=!0,this._fn=e.fn||NM[e.type||typeof i],this._easing=YO[e.easing]||YO.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=o,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const o=this._target[this._prop],r=n-this._start,i=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=R$([e.to,t,o,e.from]),this._from=R$([e.from,o,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,o=this._prop,r=this._from,i=this._loop,a=this._to;let s;if(this._active=r!==a&&(i||t<n),!this._active)return this._target[o]=a,void this._notify(!0);t<0?this._target[o]=r:(s=t/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(r,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class IM{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!qk(e))return;const t=Object.keys(d$.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!qk(r))return;const i={};for(const e of t)i[e]=r[e];(Xk(r.properties)&&r.properties||[o]).forEach((e=>{e!==o&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,o=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!o)return[];const r=this._createAnimations(o,n);return n.$shared&&function(e,t){const n=[],o=Object.keys(t);for(let t=0;t<o.length;t++){const r=e[o[t]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,o=[],r=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){o.push(...this._animateOptions(e,t));continue}const c=t[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(r[l]=u=new LM(d,e,l,c),o.push(u)):e[l]=c}return o}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(_M.add(this._chart,n),!0):void 0}}function jM(e,t){const n=e&&e.options||{},o=n.reverse,r=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:o?i:r,end:o?r:i}}function RM(e,t){const n=[],o=e._getSortedDatasetMetas(t);let r,i;for(r=0,i=o.length;r<i;++r)n.push(o[r].index);return n}function TM(e,t,n,o={}){const r=e.keys,i="single"===o.mode;let a,s,l,c;if(null!==t){for(a=0,s=r.length;a<s;++a){if(l=+r[a],l===n){if(o.all)continue;break}c=e.values[l],Gk(c)&&(i||0===t||CO(t)===CO(c))&&(t+=c)}return t}}function DM(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function zM(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function AM(e,t,n,o){for(const r of t.getMatchingVisibleMetas(o).reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function BM(e,t){const{chart:n,_cachedMeta:o}=e,r=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=o,l=i.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,a,o),d=t.length;let p;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;p=(n._stacks||(n._stacks={}))[c]=zM(r,u,i),p[s]=d,p._top=AM(p,a,!0,o.type),p._bottom=AM(p,a,!1,o.type);(p._visualValues||(p._visualValues={}))[s]=d}}function HM(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function FM(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[o]||void 0===t[o][n])return;delete t[o][n],void 0!==t[o]._visualValues&&void 0!==t[o]._visualValues[n]&&delete t[o]._visualValues[n]}}}const VM=e=>"reset"===e||"none"===e,WM=(e,t)=>t?e:Object.assign({},e);class UM{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=DM(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&FM(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),o=(e,t,n,o)=>"x"===e?t:"r"===e?o:n,r=t.xAxisID=Yk(n.xAxisID,HM(e,"x")),i=t.yAxisID=Yk(n.yAxisID,HM(e,"y")),a=t.rAxisID=Yk(n.rAxisID,HM(e,"r")),s=t.indexAxis,l=t.iAxisID=o(s,r,i,a),c=t.vAxisID=o(s,i,r,a);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&HO(this._data,this),e._stacked&&FM(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(qk(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:o}=t,r="x"===n.axis?"x":"y",i="x"===o.axis?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[r]:u,[i]:e[u]};return s}(t,e)}else if(n!==t){if(n){HO(n,this);const e=this._cachedMeta;FM(e),e._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),BO.forEach((t=>{const n="_onData"+cO(t),o=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const r=o.apply(this,t);return e._chartjs.listeners.forEach((e=>{"function"==typeof e[n]&&e[n](...t)})),r}})})))}(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const r=t._stacked;t._stacked=DM(t.vScale,t),t.stack!==n.stack&&(o=!0,FM(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&BM(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:i}=n,a=r.axis;let s,l,c,u=0===e&&t===o.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,c=o;else{c=Xk(o[e])?this.parseArrayData(n,o,e,t):qk(o[e])?this.parseObjectData(n,o,e,t):this.parsePrimitiveData(n,o,e,t);const r=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(r()&&(u=!1),d=l);n._sorted=u}i&&BM(this,c)}parsePrimitiveData(e,t,n,o){const{iScale:r,vScale:i}=e,a=r.axis,s=i.axis,l=r.getLabels(),c=r===i,u=new Array(o);let d,p,h;for(d=0,p=o;d<p;++d)h=d+n,u[d]={[a]:c||r.parse(l[h],h),[s]:i.parse(t[h],h)};return u}parseArrayData(e,t,n,o){const{xScale:r,yScale:i}=e,a=new Array(o);let s,l,c,u;for(s=0,l=o;s<l;++s)c=s+n,u=t[c],a[s]={x:r.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(e,t,n,o){const{xScale:r,yScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(o);let c,u,d,p;for(c=0,u=o;c<u;++c)d=c+n,p=t[d],l[c]={x:r.parse(lO(p,a),d),y:i.parse(lO(p,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const o=this.chart,r=this._cachedMeta,i=t[e.axis];return TM({keys:RM(o,!0),values:t._stacks[e.axis]._visualValues},i,r.index,{mode:n})}updateRangeFromParsed(e,t,n,o){const r=n[t.axis];let i=null===r?NaN:r;const a=o&&n._stacks[t.axis];o&&a&&(o.values=a,i=TM(o,r,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,o=n._parsed,r=n._sorted&&e===n.iScale,i=o.length,a=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:RM(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:o,maxDefined:r}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let d,p;function h(){p=o[d];const t=p[a.axis];return!Gk(p[e.axis])||c>t||u<t}for(d=0;d<i&&(h()||(this.updateRangeFromParsed(l,e,p,s),!r));++d);if(r)for(d=i-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(l,e,p,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let o,r,i;for(o=0,r=t.length;o<r;++o)i=t[o][e.axis],Gk(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,o=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:o?""+o.getLabelForValue(r[o.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,o,r;return qk(e)?(t=e.top,n=e.right,o=e.bottom,r=e.left):t=n=o=r=e,{top:t,right:n,bottom:o,left:r,disabled:!1===e}}(Yk(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=jM(e,n),r=jM(t,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,o=n.data||[],r=t.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||o.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,r,a,s),c=a;c<a+s;++c){const t=o[c];t.hidden||(t.active&&l?i.push(t):t.draw(e,r))}for(c=0;c<i.length;++c)i[c].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const o=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];r=t.$context||(t.$context=function(e,t,n){return T$(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),r.parsed=this.getParsed(e),r.raw=o.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return T$(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=o,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const o="active"===t,r=this._cachedDataOpts,i=e+"-"+t,a=r[i],s=this.enableOptionSharing&&uO(n);if(a)return WM(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=o?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),p=Object.keys(d$.elements[e]),h=l.resolveNamedOptions(d,p,(()=>this.getContext(n,o,t)),u);return h.$shared&&(h.$shared=s,r[i]=Object.freeze(WM(h,s))),h}_resolveAnimations(e,t,n){const o=this.chart,r=this._cachedDataOpts,i=`animation-${t}`,a=r[i];if(a)return a;let s;if(!1!==o.options.animation){const o=this.chart.config,r=o.datasetAnimationScopeKeys(this._type,t),i=o.getOptionScopes(this.getDataset(),r);s=o.createResolver(i,this.getContext(e,n,t))}const l=new IM(o,s&&s.animations);return s&&s._cacheable&&(r[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||VM(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),o=this._sharedOptions,r=this.getSharedOptions(n),i=this.includeOptions(t,r)||r!==o;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:i}}updateElement(e,t,n,o){VM(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!VM(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,o){e.active=o;const r=this.getStyle(t,o);this._resolveAnimations(t,n,o).update(e,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const o=n.length,r=t.length,i=Math.min(r,o);i&&this.parse(0,i),r>o?this._insertElements(o,r-o,e):r<o&&this._removeElements(r,o-r)}_insertElements(e,t,n=!0){const o=this._cachedMeta,r=o.data,i=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(s(r),a=e;a<i;++a)r[a]=new this.dataElementType;this._parsing&&s(o._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,o){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,t);n._stacked&&FM(n,o)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,o]=e;this[t](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function XM(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let t=0,r=n.length;t<r;t++)o=o.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=FO(o.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let o,r,i,a,s=t._length;const l=()=>{32767!==i&&-32768!==i&&(uO(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(o=0,r=n.length;o<r;++o)i=t.getPixelForValue(n[o]),l();for(a=void 0,o=0,r=t.ticks.length;o<r;++o)i=t.getPixelForTick(o),l();return s}function qM(e,t,n,o){return Xk(e)?function(e,t,n,o){const r=n.parse(e[0],o),i=n.parse(e[1],o),a=Math.min(r,i),s=Math.max(r,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:i,min:a,max:s}}(e,t,n,o):t[n.axis]=n.parse(e,o),t}function GM(e,t,n,o){const r=e.iScale,i=e.vScale,a=r.getLabels(),s=r===i,l=[];let c,u,d,p;for(c=n,u=n+o;c<u;++c)p=t[c],d={},d[r.axis]=s||r.parse(a[c],c),l.push(qM(p,d,i,c));return l}function KM(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function YM(e,t,n,o){let r=t.borderSkipped;const i={};if(!r)return void(e.borderSkipped=i);if(!0===r)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,o,r,i;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(r="end",i="start"):(r="start",i="end"),{start:n,end:o,reverse:t,top:r,bottom:i}}(e);"middle"===r&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?r=c:(n._bottom||0)===o?r=u:(i[ZM(u,a,s,l)]=!0,r=c)),i[ZM(r,a,s,l)]=!0,e.borderSkipped=i}function ZM(e,t,n,o){var r,i,a;return o?(a=n,e=QM(e=(r=e)===(i=t)?a:r===a?i:r,n,t)):e=QM(e,t,n),e}function QM(e,t,n){return"start"===e?t:"end"===e?n:e}function JM(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class e_ extends UM{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,o){return GM(e,t,n,o)}parseArrayData(e,t,n,o){return GM(e,t,n,o)}parseObjectData(e,t,n,o){const{iScale:r,vScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===r.axis?a:s,c="x"===i.axis?a:s,u=[];let d,p,h,f;for(d=n,p=n+o;d<p;++d)f=t[d],h={},h[r.axis]=r.parse(lO(f,l),d),u.push(qM(lO(f,c),h,i,d));return u}updateRangeFromParsed(e,t,n,o){super.updateRangeFromParsed(e,t,n,o);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:o}=t,r=this.getParsed(e),i=r._custom,a=KM(i)?"["+i.start+", "+i.end+"]":""+o.getLabelForValue(r[o.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,o){const r="reset"===o,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,o);for(let p=t;p<t+n;p++){const t=this.getParsed(p),n=r||Uk(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(p),h=this._calculateBarIndexPixels(p,c),f=(t._stacks||{})[a.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||KM(t._custom)||i===f._top||i===f._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};d&&(g.options=u||this.resolveDataElementOptions(p,e[p].active?"active":o));const m=g.options||e[p].options;YM(g,m,f,i),JM(g,m,c.ratio),this.updateElement(e[p],p,g,o)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,o=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),r=n.options.stacked,i=[],a=this._cachedMeta.controller.getParsed(t),s=a&&a[n.axis],l=e=>{const t=e._parsed.find((e=>e[n.axis]===s)),o=t&&t[e.vScale.axis];if(Uk(o)||isNaN(o))return!0};for(const n of o)if((void 0===t||!l(n))&&((!1===r||-1===i.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const o=this._getStacks(e,n),r=void 0!==t?o.indexOf(t):-1;return-1===r?o.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,o=[];let r,i;for(r=0,i=t.data.length;r<i;++r)o.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const a=e.barThickness;return{min:a||XM(t),pixels:o,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:o},options:{base:r,minBarLength:i}}=this,a=r||0,s=this.getParsed(e),l=s._custom,c=KM(l);let u,d,p=s[t.axis],h=0,f=n?this.applyStack(t,s,n):p;f!==p&&(h=f-p,f=p),c&&(p=l.barStart,f=l.barEnd-l.barStart,0!==p&&CO(p)!==CO(l.barEnd)&&(h=0),h+=p);const g=Uk(r)||c?h:r;let m=t.getPixelForValue(g);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(h+f):m,d=u-m,Math.abs(d)<i){d=function(e,t,n){return 0!==e?CO(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,p===a&&(m-=d/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),l=Math.min(e,r),h=Math.max(e,r);m=Math.max(Math.min(m,h),l),u=m+d,n&&!c&&(s._stacks[t.axis]._visualValues[o]=t.getValueForPixel(u)-t.getValueForPixel(m))}if(m===t.getPixelForValue(a)){const e=CO(d)*t.getLineWidthForValue(a)/2;m+=e,d-=e}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,o=this.options,r=o.skipNull,i=Yk(o.maxBarThickness,1/0);let a,s;if(t.grouped){const n=r?this._getStackCount(e):t.stackCount,l="flex"===o.barThickness?function(e,t,n,o){const r=t.pixels,i=r[e];let a=e>0?r[e-1]:null,s=e<r.length-1?r[e+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/o,ratio:n.barPercentage,start:c}}(e,t,o,n):function(e,t,n,o){const r=n.barThickness;let i,a;return Uk(r)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=r*o,a=1),{chunk:i/o,ratio:a,start:t.pixels[e]-i/2}}(e,t,o,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(i,t.min*t.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,o=n.length;let r=0;for(;r<o;++r)null===this.getParsed(r)[t.axis]||n[r].hidden||n[r].draw(this._ctx)}}class t_ extends UM{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return t.labels.map(((t,r)=>{const i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:o,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=n;else{let r,i,a=e=>+n[e];if(qk(n[e])){const{key:e="value"}=this._parsing;a=t=>+lO(n[t],e)}for(r=e,i=e+t;r<i;++r)o._parsed[r]=a(r)}}_getRotation(){return $O(this.options.rotation-90)}_getCircumference(){return $O(this.options.circumference)}_getRotationExtents(){let e=fO,t=-fO;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const o=this.chart.getDatasetMeta(n).controller,r=o._getRotation(),i=o._getCircumference();e=Math.min(e,r),t=Math.max(t,r+i)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,o=this._cachedMeta,r=o.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:p}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:g,offsetY:m}=function(e,t,n){let o=1,r=1,i=0,a=0;if(t<fO){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),p=Math.sin(l),h=(e,t,o)=>jO(e,s,l,!0)?1:Math.max(t,t*n,o,o*n),f=(e,t,o)=>jO(e,s,l,!0)?-1:Math.min(t,t*n,o,o*n),g=h(0,c,d),m=h(bO,u,p),v=f(hO,c,d),b=f(hO+bO,u,p);o=(g-v)/2,r=(m-b)/2,i=-(g+v)/2,a=-(m+b)/2}return{ratioX:o,ratioY:r,offsetX:i,offsetY:a}}(p,d,s),v=(n.width-i)/h,b=(n.height-i)/f,y=Math.max(Math.min(v,b)/2,0),x=Zk(this.options.radius,y),w=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,o.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const n=this.options,o=this._cachedMeta,r=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===o._parsed[e]||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*r/fO)}updateElements(e,t,n,o){const r="reset"===o,i=this.chart,a=i.chartArea,s=i.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=r&&s.animateScale,d=u?0:this.innerRadius,p=u?0:this.outerRadius,{sharedOptions:h,includeOptions:f}=this._getSharedOptions(t,o);let g,m=this._getRotation();for(g=0;g<t;++g)m+=this._circumference(g,r);for(g=t;g<t+n;++g){const t=this._circumference(g,r),n=e[g],i={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+t,circumference:t,outerRadius:p,innerRadius:d};f&&(i.options=h||this.resolveDataElementOptions(g,n.active?"active":o)),m+=t,this.updateElement(n,g,i,o)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,o=0;for(n=0;n<t.length;n++){const r=e._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||t[n].hidden||(o+=Math.abs(r))}return o}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?fO*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=o$(t._parsed[e],n.options.locale);return{label:o[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const n=this.chart;let o,r,i,a,s;if(!e)for(o=0,r=n.data.datasets.length;o<r;++o)if(n.isDatasetVisible(o)){i=n.getDatasetMeta(o),e=i.data,a=i.controller;break}if(!e)return 0;for(o=0,r=e.length;o<r;++o)s=a.resolveDataElementOptions(o),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,o=e.length;n<o;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(Yk(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class n_ extends UM{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=function(e,t,n){const o=t.length;let r=0,i=o;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:p}=a.getUserBounds();d&&(r=RO(Math.min(zO(s,l,c).lo,n?o:zO(t,l,a.getPixelForValue(c)).lo),0,o-1)),i=p?RO(Math.max(zO(s,a.axis,u,!0).hi+1,n?0:zO(t,l,a.getPixelForValue(u),!0).hi+1),r,o)-r:o-r}return{start:r,count:i}}(t,o,i);this._drawStart=a,this._drawCount=s,function(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=r,!0;const i=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),i}(t)&&(a=0,s=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(o,a,s,e)}updateElements(e,t,n,o){const r="reset"===o,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,o),d=i.axis,p=a.axis,{spanGaps:h,segment:f}=this.options,g=kO(h)?h:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||r||"none"===o,v=t+n,b=e.length;let y=t>0&&this.getParsed(t-1);for(let n=0;n<b;++n){const h=e[n],b=m?h:{};if(n<t||n>=v){b.skip=!0;continue}const x=this.getParsed(n),w=Uk(x[p]),C=b[d]=i.getPixelForValue(x[d],n),E=b[p]=r||w?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[p],n);b.skip=isNaN(C)||isNaN(E)||w,b.stop=n>0&&Math.abs(x[d]-y[d])>g,f&&(b.parsed=x,b.raw=l.data[n]),u&&(b.options=c||this.resolveDataElementOptions(n,h.active?"active":o)),m||this.updateElement(h,n,b,o),y=x}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,o=e.data||[];if(!o.length)return n;const r=o[0].size(this.resolveDataElementOptions(0)),i=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}class o_ extends t_{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function r_(e,t,n,o){const{controller:r,data:i,_sorted:a}=e,s=r._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&i.length){const e=s._reversePixels?AO:zO;if(!o)return e(i,t,n);if(r._sharedOptions){const o=i[0],r="function"==typeof o.getRange&&o.getRange(t);if(r){const o=e(i,t,n-r),a=e(i,t,n+r);return{lo:o.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function i_(e,t,n,o,r){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:s}=i[e],{lo:l,hi:c}=r_(i[e],t,a,r);for(let e=l;e<=c;++e){const t=s[e];t.skip||o(t,n,e)}}}function a_(e,t,n,o,r){const i=[];if(!r&&!e.isPointInArea(t))return i;return i_(e,n,t,(function(n,a,s){(r||v$(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i}function s_(e,t,n,o,r,i){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,o){const r=t?Math.abs(e.x-o.x):0,i=n?Math.abs(e.y-o.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return i_(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,r);if(o&&!d)return;const p=n.getCenterPoint(r);if(!(!!i||e.isPointInArea(p))&&!d)return;const h=s(t,p);h<l?(a=[{element:n,datasetIndex:c,index:u}],l=h):h===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function l_(e,t,n,o,r,i){return i||e.isPointInArea(t)?"r"!==n||o?s_(e,t,n,o,r,i):function(e,t,n,o){let r=[];return i_(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],o),{angle:l}=PO(e,{x:t.x,y:t.y});jO(l,a,s)&&r.push({element:e,datasetIndex:n,index:i})})),r}(e,t,n,r):[]}function c_(e,t,n,o,r){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return i_(e,n,t,((e,o,l)=>{e[a]&&e[a](t[n],r)&&(i.push({element:e,datasetIndex:o,index:l}),s=s||e.inRange(t.x,t.y,r))})),o&&!s?[]:i}var u_={evaluateInteractionItems:i_,modes:{index(e,t,n,o){const r=uM(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?a_(e,r,i,o,a):l_(e,r,i,!1,o,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,o){const r=uM(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?a_(e,r,i,o,a):l_(e,r,i,!1,o,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,o)=>a_(e,uM(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=uM(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return l_(e,r,i,n.intersect,o,a)},x:(e,t,n,o)=>c_(e,uM(t,e),"x",n.intersect,o),y:(e,t,n,o)=>c_(e,uM(t,e),"y",n.intersect,o)}};const d_=["left","top","right","bottom"];function p_(e,t){return e.filter((e=>e.pos===t))}function h_(e,t){return e.filter((e=>-1===d_.indexOf(e.pos)&&e.box.axis===t))}function f_(e,t){return e.sort(((e,n)=>{const o=t?n:e,r=t?e:n;return o.weight===r.weight?o.index-r.index:o.weight-r.weight}))}function g_(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!d_.includes(o))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=r}return t}(e),{vBoxMaxWidth:o,hBoxMaxHeight:r}=t;let i,a,s;for(i=0,a=e.length;i<a;++i){s=e[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*o:a&&t.availableWidth,s.height=r):(s.width=o,s.height=c?c*r:a&&t.availableHeight)}return n}function m_(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function v_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function b_(e,t,n,o){const{pos:r,box:i}=n,a=e.maxPadding;if(!qk(r)){n.size&&(e[r]-=n.size);const t=o[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[r]+=n.size}i.getPadding&&v_(a,i.getPadding());const s=Math.max(0,t.outerWidth-m_(a,e,"left","right")),l=Math.max(0,t.outerHeight-m_(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function y_(e,t){const n=t.maxPadding;function o(e){const o={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{o[e]=Math.max(t[e],n[e])})),o}return o(e?["left","right"]:["top","bottom"])}function x_(e,t,n,o){const r=[];let i,a,s,l,c,u;for(i=0,a=e.length,c=0;i<a;++i){s=e[i],l=s.box,l.update(s.width||t.w,s.height||t.h,y_(s.horizontal,t));const{same:a,other:d}=b_(t,n,s,o);c|=a&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&x_(r,t,n,o)||u}function w_(e,t,n,o,r){e.top=n,e.left=t,e.right=t+o,e.bottom=n+r,e.width=o,e.height=r}function C_(e,t,n,o){const r=n.padding;let{x:i,y:a}=t;for(const s of e){const e=s.box,l=o[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const o=t.w*c,i=l.size||e.height;uO(l.start)&&(a=l.start),e.fullSize?w_(e,r.left,a,n.outerWidth-r.right-r.left,i):w_(e,t.left+l.placed,a,o,i),l.start=a,l.placed+=o,a=e.bottom}else{const o=t.h*c,a=l.size||e.width;uO(l.start)&&(i=l.start),e.fullSize?w_(e,i,r.top,a,n.outerHeight-r.bottom-r.top):w_(e,i,t.top+l.placed,a,o),l.start=i,l.placed+=o,i=e.right}}t.x=i,t.y=a}var E_={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const r=I$(e.options.layout.padding),i=Math.max(t-r.width,0),a=Math.max(n-r.height,0),s=function(e){const t=function(e){const t=[];let n,o,r,i,a,s;for(n=0,o=(e||[]).length;n<o;++n)r=e[n],({position:i,options:{stack:a,stackWeight:s=1}}=r),t.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:s});return t}(e),n=f_(t.filter((e=>e.box.fullSize)),!0),o=f_(p_(t,"left"),!0),r=f_(p_(t,"right")),i=f_(p_(t,"top"),!0),a=f_(p_(t,"bottom")),s=h_(t,"x"),l=h_(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:p_(t,"chartArea"),vertical:o.concat(r).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;Jk(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},r);v_(p,I$(o));const h=Object.assign({maxPadding:p,w:i,h:a,x:r.left,y:r.top},r),f=g_(l.concat(c),d);x_(s.fullSize,h,d,f),x_(l,h,d,f),x_(c,h,d,f)&&x_(l,h,d,f),function(e){const t=e.maxPadding;function n(n){const o=Math.max(t[n]-e[n],0);return e[n]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),C_(s.leftAndTop,h,d,f),h.x+=h.w,h.y+=h.h,C_(s.rightAndBottom,h,d,f),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Jk(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class S_{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,o){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,o?Math.floor(t/o):n)}}isAttached(e){return!0}updateConfig(e){}}class k_ extends S_{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const O_="$chartjs",$_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},M_=e=>null===e||""===e;const __=!!fM&&{passive:!0};function P_(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,__)}function N_(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function L_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||N_(n.addedNodes,o),t=t&&!N_(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function I_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||N_(n.removedNodes,o),t=t&&!N_(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const j_=new Map;let R_=0;function T_(){const e=window.devicePixelRatio;e!==R_&&(R_=e,j_.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function D_(e,t,n){const o=e.canvas,r=o&&rM(o);if(!r)return;const i=WO(((e,t)=>{const o=r.clientWidth;n(e,t),o<r.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,o=t.contentRect.height;0===n&&0===o||i(n,o)}));return a.observe(r),function(e,t){j_.size||window.addEventListener("resize",T_),j_.set(e,t)}(e,i),a}function z_(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){j_.delete(e),j_.size||window.removeEventListener("resize",T_)}(e)}function A_(e,t,n){const o=e.canvas,r=WO((t=>{null!==e.ctx&&n(function(e,t){const n=$_[e.type]||e.type,{x:o,y:r}=uM(e,t);return{type:n,chart:t,native:e,x:void 0!==o?o:null,y:void 0!==r?r:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,__)}(o,t,r),r}class B_ extends S_{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,o=e.getAttribute("height"),r=e.getAttribute("width");if(e[O_]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",M_(r)){const t=gM(e,"width");void 0!==t&&(e.width=t)}if(M_(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=gM(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[O_])return!1;const n=t[O_].initial;["height","width"].forEach((e=>{const o=n[e];Uk(o)?t.removeAttribute(e):t.setAttribute(e,o)}));const o=n.style||{};return Object.keys(o).forEach((e=>{t.style[e]=o[e]})),t.width=t.width,delete t[O_],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:L_,detach:I_,resize:D_}[t]||A_;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];if(!o)return;({attach:z_,detach:z_,resize:z_}[t]||P_)(e,t,o),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return pM(e,t,n,o)}isAttached(e){const t=e&&rM(e);return!(!t||!t.isConnected)}}let H_=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return kO(this.x)&&kO(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const o={};return e.forEach((e=>{o[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),o}};function F_(e,t){const n=e.options.ticks,o=function(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(o,r))}(e),r=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?function(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}(t):[],a=i.length,s=i[0],l=i[a-1],c=[];if(a>r)return function(e,t,n,o){let r,i=0,a=n[0];for(o=Math.ceil(o),r=0;r<e.length;r++)r===a&&(t.push(e[r]),i++,a=n[i*o])}(t,c,i,a/r),c;const u=function(e,t,n){const o=function(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}(e),r=t.length/n;if(!o)return Math.max(r,1);const i=function(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o==0&&(t.push(o),t.push(e/o));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(o);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>r)return t}return Math.max(r,1)}(i,t,r);if(a>0){let e,n;const o=a>1?Math.round((l-s)/(a-1)):null;for(V_(t,c,u,Uk(o)?0:s-o,s),e=0,n=a-1;e<n;e++)V_(t,c,u,i[e],i[e+1]);return V_(t,c,u,l,Uk(o)?t.length:l+o),c}return V_(t,c,u),c}function V_(e,t,n,o,r){const i=Yk(o,0),a=Math.min(Yk(r,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),r&&(s=r-o,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(i+u*n))}const W_=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,U_=(e,t)=>Math.min(t||e,e);function X_(e,t){const n=[],o=e.length/t,r=e.length;let i=0;for(;i<r;i+=o)n.push(e[Math.floor(i)]);return n}function q_(e,t,n){const o=e.ticks.length,r=Math.min(t,o-1),i=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(r);if(!(n&&(l=1===o?Math.max(c-i,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<i-s||c>a+s)))return c}function G_(e){return e.drawTicks?e.tickLength:0}function K_(e,t){if(!e.display)return 0;const n=j$(e.font,t),o=I$(e.padding);return(Xk(e.text)?e.text.length:1)*n.lineHeight+o.height}function Y_(e,t,n){let o=UO(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class Z_ extends H_{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:o}=this;return e=Kk(e,Number.POSITIVE_INFINITY),t=Kk(t,Number.NEGATIVE_INFINITY),n=Kk(n,Number.POSITIVE_INFINITY),o=Kk(o,Number.NEGATIVE_INFINITY),{min:Kk(e,n),max:Kk(t,o),minDefined:Gk(e),maxDefined:Gk(t)}}getMinMax(e){let t,{min:n,max:o,minDefined:r,maxDefined:i}=this.getUserBounds();if(r&&i)return{min:n,max:o};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),r||(n=Math.min(n,t.min)),i||(o=Math.max(o,t.max));return n=i&&n>o?o:n,o=r&&n>o?n:o,{min:Kk(n,Kk(o,n)),max:Kk(o,Kk(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Qk(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:o,grace:r,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:o,max:r}=e,i=Zk(t,(r-o)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(o,-Math.abs(i)),max:a(r,i)}}(this,r,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?X_(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=F_(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Qk(this.options.afterUpdate,[this])}beforeSetDimensions(){Qk(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Qk(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Qk(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Qk(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,o,r;for(n=0,o=e.length;n<o;n++)r=e[n],r.label=Qk(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){Qk(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Qk(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=U_(this.ticks.length,e.ticks.maxTicksLimit),o=t.minRotation||0,r=t.maxRotation;let i,a,s,l=o;if(!this._isVisible()||!t.display||o>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,p=RO(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:p/(n-1),u+6>i&&(i=p/(n-(e.offset?.5:1)),a=this.maxHeight-G_(e.grid)-t.padding-K_(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=MO(Math.min(Math.asin(RO((c.highest.height+6)/i,-1,1)),Math.asin(RO(a/s,-1,1))-Math.asin(RO(d/s,-1,1)))),l=Math.max(o,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Qk(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Qk(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:o,grid:r}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=K_(o,t.options.font);if(a?(e.width=this.maxWidth,e.height=G_(r)+i):(e.height=this.maxHeight,e.width=G_(r)+i),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,l=$O(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*r.width+c*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*r.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,o,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,o){const{ticks:{align:r,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=o*e.width,d=n*t.height):(u=n*e.height,d=o*t.width):"start"===r?d=t.width:"end"===r?u=e.width:"inner"!==r&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=t.height/2,o=e.height/2;"start"===r?(n=0,o=e.height):"end"===r&&(n=t.height,o=0),this.paddingTop=n+i,this.paddingBottom=o+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Qk(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)Uk(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=X_(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:o,_longestTextCache:r}=this,i=[],a=[],s=Math.floor(t/U_(t,n));let l,c,u,d,p,h,f,g,m,v,b,y=0,x=0;for(l=0;l<t;l+=s){if(d=e[l].label,p=this._resolveTickFontOptions(l),o.font=h=p.string,f=r[h]=r[h]||{data:{},gc:[]},g=p.lineHeight,m=v=0,Uk(d)||Xk(d)){if(Xk(d))for(c=0,u=d.length;c<u;++c)b=d[c],Uk(b)||Xk(b)||(m=p$(o,f.data,f.gc,m,b),v+=g)}else m=p$(o,f.data,f.gc,m,d),v=g;i.push(m),a.push(v),y=Math.max(m,y),x=Math.max(v,x)}!function(e,t){Jk(e,(e=>{const n=e.gc,o=n.length/2;let r;if(o>t){for(r=0;r<o;++r)delete e.data[n[r]];n.splice(0,o)}}))}(r,t);const w=i.indexOf(y),C=a.indexOf(x),E=e=>({width:i[e]||0,height:a[e]||0});return{first:E(0),last:E(t-1),widest:E(w),highest:E(C),widths:i,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return RO(this._alignToPixels?h$(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return T$(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=T$(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=$O(this.labelRotation),n=Math.abs(Math.cos(t)),o=Math.abs(Math.sin(t)),r=this._getLabelSizes(),i=e.autoSkipPadding||0,a=r?r.widest.width+i:0,s=r?r.highest.height+i:0;return this.isHorizontal()?s*n>a*o?a/n:s/o:s*o<a*n?s/n:a/o}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,o=this.options,{grid:r,position:i,border:a}=o,s=r.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=G_(r),d=[],p=a.setContext(this.getContext()),h=p.display?p.width:0,f=h/2,g=function(e){return h$(n,e,h)};let m,v,b,y,x,w,C,E,S,k,O,$;if("top"===i)m=g(this.bottom),w=this.bottom-u,E=m-f,k=g(e.top)+f,$=e.bottom;else if("bottom"===i)m=g(this.top),k=e.top,$=g(e.bottom)-f,w=m+f,E=this.top+u;else if("left"===i)m=g(this.right),x=this.right-u,C=m-f,S=g(e.left)+f,O=e.right;else if("right"===i)m=g(this.left),S=e.left,O=g(e.right)-f,x=m+f,C=this.left+u;else if("x"===t){if("center"===i)m=g((e.top+e.bottom)/2+.5);else if(qk(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}k=e.top,$=e.bottom,w=m+f,E=w+u}else if("y"===t){if("center"===i)m=g((e.left+e.right)/2);else if(qk(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}x=m-f,C=x-u,S=e.left,O=e.right}const M=Yk(o.ticks.maxTicksLimit,c),_=Math.max(1,Math.ceil(c/M));for(v=0;v<c;v+=_){const e=this.getContext(v),t=r.setContext(e),o=a.setContext(e),i=t.lineWidth,c=t.color,u=o.dash||[],p=o.dashOffset,h=t.tickWidth,f=t.tickColor,g=t.tickBorderDash||[],m=t.tickBorderDashOffset;b=q_(this,v,s),void 0!==b&&(y=h$(n,b,i),l?x=C=S=O=y:w=E=k=$=y,d.push({tx1:x,ty1:w,tx2:C,ty2:E,x1:S,y1:k,x2:O,y2:$,width:i,color:c,borderDash:u,borderDashOffset:p,tickWidth:h,tickColor:f,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:o,ticks:r}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=r,d=G_(n.grid),p=d+c,h=u?-c:p,f=-$O(this.labelRotation),g=[];let m,v,b,y,x,w,C,E,S,k,O,$,M="middle";if("top"===o)w=this.bottom-h,C=this._getXAxisLabelAlignment();else if("bottom"===o)w=this.top+h,C=this._getXAxisLabelAlignment();else if("left"===o){const e=this._getYAxisLabelAlignment(d);C=e.textAlign,x=e.x}else if("right"===o){const e=this._getYAxisLabelAlignment(d);C=e.textAlign,x=e.x}else if("x"===t){if("center"===o)w=(e.top+e.bottom)/2+p;else if(qk(o)){const e=Object.keys(o)[0],t=o[e];w=this.chart.scales[e].getPixelForValue(t)+p}C=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)x=(e.left+e.right)/2-p;else if(qk(o)){const e=Object.keys(o)[0],t=o[e];x=this.chart.scales[e].getPixelForValue(t)}C=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?M="top":"end"===s&&(M="bottom"));const _=this._getLabelSizes();for(m=0,v=a.length;m<v;++m){b=a[m],y=b.label;const e=r.setContext(this.getContext(m));E=this.getPixelForTick(m)+r.labelOffset,S=this._resolveTickFontOptions(m),k=S.lineHeight,O=Xk(y)?y.length:1;const t=O/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,p=C;if(i?(x=E,"inner"===C&&(p=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),$="top"===o?"near"===l||0!==f?-O*k+k/2:"center"===l?-_.highest.height/2-t*k+k:-_.highest.height+k/2:"near"===l||0!==f?k/2:"center"===l?_.highest.height/2-t*k:_.highest.height-O*k,u&&($*=-1),0===f||e.showLabelBackdrop||(x+=k/2*Math.sin(f))):(w=E,$=(1-O)*k/2),e.showLabelBackdrop){const t=I$(e.backdropPadding),n=_.heights[m],o=_.widths[m];let r=$-t.top,i=0-t.left;switch(M){case"middle":r-=n/2;break;case"bottom":r-=n}switch(C){case"center":i-=o/2;break;case"right":i-=o;break;case"inner":m===v-1?i-=o:m>0&&(i-=o/2)}d={left:i,top:r,width:o+t.width,height:n+t.height,color:e.backdropColor}}g.push({label:y,font:S,textOffset:$,options:{rotation:f,color:n,strokeColor:s,strokeWidth:c,textAlign:p,textBaseline:M,translation:[x,w],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-$O(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:o,padding:r}}=this.options,i=e+r,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?o?(l=this.right+r,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?o?(l=this.left+r,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:o,width:r,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,o,r,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,i;const a=(e,t,o)=>{o.width&&o.color&&(n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.setLineDash(o.borderDash||[]),n.lineDashOffset=o.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,i=o.length;r<i;++r){const e=o[r];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:o}}=this,r=n.setContext(this.getContext()),i=n.display?r.width:0;if(!i)return;const a=o.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=h$(e,this.left,i)-i/2,c=h$(e,this.right,a)+a/2,u=d=s):(u=h$(e,this.top,i)-i/2,d=h$(e,this.bottom,a)+a/2,l=c=s),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&b$(t,n);const o=this.getLabelItems(e);for(const e of o){const n=e.options,o=e.font;S$(t,e.label,0,e.textOffset,o,n)}n&&y$(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=j$(n.font),i=I$(n.padding),a=n.align;let s=r.lineHeight/2;"bottom"===t||"center"===t||qk(t)?(s+=i.bottom,Xk(n.text)&&(s+=r.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,o){const{top:r,left:i,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,p,h,f=0;const g=a-r,m=s-i;if(e.isHorizontal()){if(p=XO(o,i,s),qk(n)){const e=Object.keys(n)[0],o=n[e];h=u[e].getPixelForValue(o)+g-t}else h="center"===n?(c.bottom+c.top)/2+g-t:W_(e,n,t);d=s-i}else{if(qk(n)){const e=Object.keys(n)[0],o=n[e];p=u[e].getPixelForValue(o)-m+t}else p="center"===n?(c.left+c.right)/2-m+t:W_(e,n,t);h=XO(o,a,r),f="left"===n?-bO:bO}return{titleX:p,titleY:h,maxWidth:d,rotation:f}}(this,s,t,a);S$(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:Y_(a,t,o),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=Yk(e.grid&&e.grid.z,-1),o=Yk(e.border&&e.border.z,0);return this._isVisible()&&this.draw===Z_.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let r,i;for(r=0,i=t.length;r<i;++r){const i=t[r];i[n]!==this.id||e&&i.type!==e||o.push(i)}return o}_resolveTickFontOptions(e){return j$(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Q_{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const o=this.items,r=e.id,i=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in o||(o[r]=e,function(e,t,n){const o=rO(Object.create(null),[n?d$.get(n):{},d$.get(t),e.defaults]);d$.set(t,o),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const o=n.split("."),r=o.pop(),i=[e].concat(o).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");d$.route(i,r,l,s)}))}(t,e.defaultRoutes);e.descriptors&&d$.describe(t,e.descriptors)}(e,i,n),this.override&&d$.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,o=this.scope;n in t&&delete t[n],o&&n in d$[o]&&(delete d$[o][n],this.override&&delete a$[n])}}class J_{constructor(){this.controllers=new Q_(UM,"datasets",!0),this.elements=new Q_(H_,"elements"),this.plugins=new Q_(Object,"plugins"),this.scales=new Q_(Z_,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const o=n||this._getRegistryForType(t);n||o.isForType(t)||o===this.plugins&&t.id?this._exec(e,o,t):Jk(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=cO(e);Qk(n["before"+o],[],n),t[e](n),Qk(n["after"+o],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const o=t.get(e);if(void 0===o)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var eP=new J_;class tP{constructor(){this._init=[]}notify(e,t,n,o){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=o?this._descriptors(e).filter(o):this._descriptors(e),i=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,o){o=o||{};for(const r of e){const e=r.plugin;if(!1===Qk(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){Uk(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,o=Yk(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys(eP.plugins.items);for(let e=0;e<o.length;e++)n.push(eP.getPlugin(o[e]));const r=e.plugins||[];for(let e=0;e<r.length;e++){const o=r[e];-1===n.indexOf(o)&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==o||t?function(e,{plugins:t,localIds:n},o,r){const i=[],a=e.getContext();for(const s of t){const t=s.id,l=nP(o[t],r);null!==l&&i.push({plugin:s,options:oP(e.config,{plugin:s,local:n[t]},l,a)})}return i}(e,r,o,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,o=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(o(t,n),e,"stop"),this._notify(o(n,t),e,"start")}}function nP(e,t){return t||!1!==e?!0===e?{}:e:null}function oP(e,{plugin:t,local:n},o,r){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(o,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function rP(e,t){const n=d$.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function iP(e){if("x"===e||"y"===e||"r"===e)return e}function aP(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function sP(e,...t){if(iP(e))return e;for(const n of t){const t=n.axis||aP(n.position)||e.length>1&&iP(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function lP(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function cP(e,t){const n=a$[e.type]||{scales:{}},o=t.scales||{},r=rP(e.type,t),i=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!qk(a))return console.error(`Invalid scale configuration for scale: ${t}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=sP(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return lP(e,"x",n[0])||lP(e,"y",n[0])}return{}}(t,e),d$.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};i[t]=iO(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||rP(r,t),s=(a$[r]||{}).scales||{};Object.keys(s).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),r=n[t+"AxisID"]||t;i[r]=i[r]||Object.create(null),iO(i[r],[{axis:t},o[r],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];iO(t,[d$.scales[t.type],d$.scale])})),i}function uP(e){const t=e.options||(e.options={});t.plugins=Yk(t.plugins,{}),t.scales=cP(e,t)}function dP(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const pP=new Map,hP=new Set;function fP(e,t){let n=pP.get(e);return n||(n=t(),pP.set(e,n),hP.add(n)),n}const gP=(e,t,n)=>{const o=lO(t,n);void 0!==o&&e.add(o)};class mP{constructor(e){this._config=function(e){return(e=e||{}).data=dP(e.data),uP(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=dP(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),uP(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return fP(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return fP(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return fP(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return fP(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let o=n.get(e);return o&&!t||(o=new Map,n.set(e,o)),o}getOptionScopes(e,t,n){const{options:o,type:r}=this,i=this._cachedScopes(e,n),a=i.get(t);if(a)return a;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>gP(s,e,t)))),t.forEach((e=>gP(s,o,e))),t.forEach((e=>gP(s,a$[r]||{},e))),t.forEach((e=>gP(s,d$,e))),t.forEach((e=>gP(s,s$,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),hP.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,a$[t]||{},d$.datasets[t]||{},{type:t},d$,s$]}resolveNamedOptions(e,t,n,o=[""]){const r={$shared:!0},{resolver:i,subPrefixes:a}=vP(this._resolverCache,e,o);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:o}=A$(e);for(const r of t){const t=n(r),i=o(r),a=(i||t)&&e[r];if(t&&(dO(a)||bP(a))||i&&Xk(a))return!0}return!1}(i,t)){r.$shared=!1;s=z$(i,n=dO(n)?n():n,this.createResolver(e,n,a))}for(const e of t)r[e]=s[e];return r}createResolver(e,t,n=[""],o){const{resolver:r}=vP(this._resolverCache,e,n);return qk(t)?z$(r,t,void 0,o):r}}function vP(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const r=n.join();let i=o.get(r);if(!i){i={resolver:D$(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,i)}return i}const bP=e=>qk(e)&&Object.getOwnPropertyNames(e).some((t=>dO(e[t])));const yP=["top","bottom","left","right","chartArea"];function xP(e,t){return"top"===e||"bottom"===e||-1===yP.indexOf(e)&&"x"===t}function wP(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function CP(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Qk(n&&n.onComplete,[e],t)}function EP(e){const t=e.chart,n=t.options.animation;Qk(n&&n.onProgress,[e],t)}function SP(e){return oM()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const kP={},OP=e=>{const t=SP(e);return Object.values(kP).filter((e=>e.canvas===t)).pop()};function $P(e,t,n){const o=Object.keys(e);for(const r of o){const o=+r;if(o>=t){const i=e[r];delete e[r],(n>0||o>t)&&(e[o+n]=i)}}}function MP(e,t,n){return e.options.clip?e[n]:t[n]}let _P=class{static defaults=d$;static instances=kP;static overrides=a$;static registry=eP;static version="4.4.4";static getChart=OP;static register(...e){eP.add(...e),PP()}static unregister(...e){eP.remove(...e),PP()}constructor(e,t){const n=this.config=new mP(t),o=SP(e),r=OP(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!oM()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?k_:B_}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=Wk(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new tP,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...o){return t?(clearTimeout(n),n=setTimeout(e,t,o)):e.apply(this,o),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],kP[this.id]=this,a&&s?(_M.listen(this,"complete",CP),_M.listen(this,"progress",EP),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:o,_aspectRatio:r}=this;return Uk(e)?t&&r?r:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return eP}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():hM(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return f$(this.canvas,this.ctx),this}stop(){return _M.stop(this),this}resize(e,t){_M.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(o,e,t,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,hM(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),Qk(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Jk(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,o=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],o=sP(e,n),r="r"===o,i="x"===o;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),Jk(r,(t=>{const r=t.options,i=r.id,a=sP(i,r),s=Yk(r.type,t.dtype);void 0!==r.position&&xP(r.position,a)===xP(t.dposition)||(r.position=t.dposition),o[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(eP.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),Jk(o,((e,t)=>{e||delete n[t]})),Jk(n,(e=>{E_.configure(this,e,e.options),E_.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(wP("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=t.length;n<o;n++){const o=t[n];let r=this.getDatasetMeta(n);const i=o.type||this.config.type;if(r.type&&r.type!==i&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=i,r.indexAxis=o.indexAxis||rP(i,this.options),r.order=o.order||0,r.index=n,r.label=""+o.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const t=eP.getController(i),{datasetElementType:o,dataElementType:a}=d$.datasets[i];Object.assign(t,{dataElementType:eP.getElement(a),datasetElementType:o&&eP.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){Jk(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!o&&-1===r.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),o||Jk(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(wP("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Jk(this.scales,(e=>{E_.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);pO(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:r}of t){$P(e,o,"_removeElements"===n?-r:r)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),o=n(0);for(let e=1;e<t;e++)if(!pO(o,n(e)))return;return Array.from(o).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;E_.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Jk(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,dO(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",o)&&(n.controller._update(t),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(_M.has(this)?this.attached&&!_M.running(this)&&_M.start(this):(this.draw(),CP({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let o,r;for(o=0,r=t.length;o<r;++o){const r=t[o];e&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,o=!n.disabled,r=function(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:MP(n,t,"left"),right:MP(n,t,"right"),top:MP(o,t,"top"),bottom:MP(o,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(o&&b$(t,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),e.controller.draw(),o&&y$(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return v$(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=u_.modes[t];return"function"==typeof r?r(this,e,n,o):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let o=n.filter((e=>e&&e._dataset===t)).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=T$(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const o=n?"show":"hide",r=this.getDatasetMeta(e),i=r.controller._resolveAnimations(void 0,o);uO(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?o:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),_M.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),f$(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete kP[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Jk(this.options.events,(e=>n(e,o)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(n,o)=>{e[n]&&(t.removeEventListener(this,n,o),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",i)};i=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){Jk(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},Jk(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const o=n?"set":"remove";let r,i,a,s;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){i=e[a];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[o+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!eO(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const o=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=r(t,e),a=n?e:r(e,t);i.length&&this.updateHoverStyle(i,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},o=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:o=[],options:r}=this,i=t,a=this._getActiveElements(e,o,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,o){return n&&"mouseout"!==e.type?o?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,Qk(r.onHover,[e,a,this],this),s&&Qk(r.onClick,[e,a,this],this));const c=!eO(a,o);return(c||t)&&(this._active=a,this._updateHoverStyles(a,o,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,o){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,o)}};function PP(){return Jk(_P.instances,(e=>e._plugins.invalidate()))}function NP(e,t,n,o){const r=P$(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(n-t)/2,a=Math.min(i,o*t/2),s=e=>{const t=(n-Math.min(i,e))*o/2;return RO(e,0,Math.min(i,t))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:RO(r.innerStart,0,a),innerEnd:RO(r.innerEnd,0,a)}}function LP(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function IP(e,t,n,o,r,i){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+o+n-c,0),p=u>0?u+o+n+c:0;let h=0;const f=r-l;if(o){const e=((u>0?u-o:0)+(d>0?d-o:0))/2;h=(f-(0!==e?f*e/(e+o):f))/2}const g=(f-Math.max(.001,f*d-n/hO)/d)/2,m=l+g+h,v=r-g-h,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:w}=NP(t,p,d,v-m),C=d-b,E=d-y,S=m+b/C,k=v-y/E,O=p+x,$=p+w,M=m+x/O,_=v-w/$;if(e.beginPath(),i){const t=(S+k)/2;if(e.arc(a,s,d,S,t),e.arc(a,s,d,t,k),y>0){const t=LP(E,k,a,s);e.arc(t.x,t.y,y,k,v+bO)}const n=LP($,v,a,s);if(e.lineTo(n.x,n.y),w>0){const t=LP($,_,a,s);e.arc(t.x,t.y,w,v+bO,_+Math.PI)}const o=(v-w/p+(m+x/p))/2;if(e.arc(a,s,p,v-w/p,o,!0),e.arc(a,s,p,o,m+x/p,!0),x>0){const t=LP(O,M,a,s);e.arc(t.x,t.y,x,M+Math.PI,m-bO)}const r=LP(C,m,a,s);if(e.lineTo(r.x,r.y),b>0){const t=LP(C,S,a,s);e.arc(t.x,t.y,b,m-bO,S)}}else{e.moveTo(a,s);const t=Math.cos(S)*d+a,n=Math.sin(S)*d+s;e.lineTo(t,n);const o=Math.cos(k)*d+a,r=Math.sin(k)*d+s;e.lineTo(o,r)}e.closePath()}function jP(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:p}=l,h="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=p,h?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let f=t.endAngle;if(i){IP(e,t,n,o,f,r);for(let t=0;t<i;++t)e.stroke();isNaN(s)||(f=a+(s%fO||fO))}h&&function(e,t,n){const{startAngle:o,pixelMargin:r,x:i,y:a,outerRadius:s,innerRadius:l}=t;let c=r/s;e.beginPath(),e.arc(i,a,s,o-c,n+c),l>r?(c=r/l,e.arc(i,a,l,n+c,o-c,!0)):e.arc(i,a,r,n+bO,o-bO),e.closePath(),e.clip()}(e,t,f),i||(IP(e,t,n,o,f,r),e.stroke())}function RP(e,t,n=t){e.lineCap=Yk(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Yk(n.borderDash,t.borderDash)),e.lineDashOffset=Yk(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Yk(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Yk(n.borderWidth,t.borderWidth),e.strokeStyle=Yk(n.borderColor,t.borderColor)}function TP(e,t,n){e.lineTo(n.x,n.y)}function DP(e,t,n={}){const o=e.length,{start:r=0,end:i=o-1}=n,{start:a,end:s}=t,l=Math.max(r,a),c=Math.min(i,s),u=r<a&&i<a||r>s&&i>s;return{count:o,start:l,loop:t.loop,ilen:c<l&&!u?o+c-l:c-l}}function zP(e,t,n,o){const{points:r,options:i}=t,{count:a,start:s,loop:l,ilen:c}=DP(r,n,o),u=function(e){return e.stepped?x$:e.tension||"monotone"===e.cubicInterpolationMode?w$:TP}(i);let d,p,h,{move:f=!0,reverse:g}=o||{};for(d=0;d<=c;++d)p=r[(s+(g?c-d:d))%a],p.skip||(f?(e.moveTo(p.x,p.y),f=!1):u(e,h,p,g,i.stepped),h=p);return l&&(p=r[(s+(g?c:0))%a],u(e,h,p,g,i.stepped)),!!l}function AP(e,t,n,o){const r=t.points,{count:i,start:a,ilen:s}=DP(r,n,o),{move:l=!0,reverse:c}=o||{};let u,d,p,h,f,g,m=0,v=0;const b=e=>(a+(c?s-e:e))%i,y=()=>{h!==f&&(e.lineTo(m,f),e.lineTo(m,h),e.lineTo(m,g))};for(l&&(d=r[b(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=r[b(u)],d.skip)continue;const t=d.x,n=d.y,o=0|t;o===p?(n<h?h=n:n>f&&(f=n),m=(v*m+t)/++v):(y(),e.lineTo(t,n),p=o,v=0,h=f=n),g=n}y()}function BP(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?AP:zP}const HP="function"==typeof Path2D;function FP(e,t,n,o){HP&&!t.options.segment?function(e,t,n,o){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,o)&&r.closePath()),RP(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:i}=t,a=BP(t);for(const s of r)RP(e,i,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}(e,t,n,o)}function VP(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}function WP(e,t){const{x:n,y:o,base:r,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=a/2,s=Math.min(n,r),l=Math.max(n,r),c=o-d,u=o+d):(d=i/2,s=n-d,l=n+d,c=Math.min(o,r),u=Math.max(o,r)),{left:s,top:c,right:l,bottom:u}}function UP(e,t,n,o){return e?0:RO(t,n,o)}function XP(e){const t=WP(e),n=t.right-t.left,o=t.bottom-t.top,r=function(e,t,n){const o=e.options.borderWidth,r=e.borderSkipped,i=N$(o);return{t:UP(r.top,i.top,0,n),r:UP(r.right,i.right,0,t),b:UP(r.bottom,i.bottom,0,n),l:UP(r.left,i.left,0,t)}}(e,n/2,o/2),i=function(e,t,n){const{enableBorderRadius:o}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,i=L$(r),a=Math.min(t,n),s=e.borderSkipped,l=o||qk(r);return{topLeft:UP(!l||s.top||s.left,i.topLeft,0,a),topRight:UP(!l||s.top||s.right,i.topRight,0,a),bottomLeft:UP(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:UP(!l||s.bottom||s.right,i.bottomRight,0,a)}}(e,n/2,o/2);return{outer:{x:t.left,y:t.top,w:n,h:o,radius:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:o-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function qP(e,t,n,o){const r=null===t,i=null===n,a=e&&!(r&&i)&&WP(e,o);return a&&(r||TO(t,a.left,a.right))&&(i||TO(n,a.top,a.bottom))}function GP(e,t){e.rect(t.x,t.y,t.w,t.h)}function KP(e,t,n={}){const o=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-o,a=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+o,y:e.y+r,w:e.w+i,h:e.h+a,radius:e.radius}}const YP=(e,t)=>{let{boxHeight:n=t,boxWidth:o=t}=e;return e.usePointStyle&&(n=Math.min(n,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(t,n)}};class ZP extends H_{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=Qk(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,o=j$(n.font),r=o.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=YP(n,r);let l,c;t.font=o.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,r,a,s)+10):(c=this.maxHeight,l=this._fitCols(i,o,a,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,o){const{ctx:r,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=o+a;let u=e;r.textAlign="left",r.textBaseline="middle";let d=-1,p=-c;return this.legendItems.forEach(((e,h)=>{const f=n+t/2+r.measureText(e.text).width;(0===h||l[l.length-1]+f+2*a>i)&&(u+=c,l[l.length-(h>0?0:1)]=0,p+=c,d++),s[h]={left:0,top:p,row:d,width:f,height:o},l[l.length-1]+=f+a})),u}_fitCols(e,t,n,o){const{ctx:r,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-e;let u=a,d=0,p=0,h=0,f=0;return this.legendItems.forEach(((e,i)=>{const{itemWidth:g,itemHeight:m}=function(e,t,n,o,r){const i=function(e,t,n,o){let r=e.text;r&&"string"!=typeof r&&(r=r.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+o.measureText(r).width}(o,e,t,n),a=function(e,t,n){let o=e;"string"!=typeof t.text&&(o=QP(t,n));return o}(r,o,t.lineHeight);return{itemWidth:i,itemHeight:a}}(n,t,r,e,o);i>0&&p+m+2*a>c&&(u+=d+a,l.push({width:d,height:p}),h+=d+a,f++,d=p=0),s[i]={left:h,top:p,col:f,width:g,height:m},d=Math.max(d,g),p+=m+a})),u+=d,l.push({width:d,height:p}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:o},rtl:r}}=this,i=yM(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=XO(n,this.left+o,this.right-this.lineWidths[r]);for(const s of t)r!==s.row&&(r=s.row,a=XO(n,this.left+o,this.right-this.lineWidths[r])),s.top+=this.top+e+o,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+o}else{let r=0,a=XO(n,this.top+e+o,this.bottom-this.columnSizes[r].height);for(const s of t)s.col!==r&&(r=s.col,a=XO(n,this.top+e+o,this.bottom-this.columnSizes[r].height)),s.top=a,s.left+=this.left+o,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;b$(e,this),this._draw(),y$(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:o}=this,{align:r,labels:i}=e,a=d$.color,s=yM(e.rtl,this.left,this.width),l=j$(i.font),{padding:c}=i,u=l.size,d=u/2;let p;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=l.string;const{boxWidth:h,boxHeight:f,itemHeight:g}=YP(i,u),m=this.isHorizontal(),v=this._computeTitleHeight();p=m?{x:XO(r,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:XO(r,this.top+v+c,this.bottom-t[0].height),line:0},xM(this.ctx,e.textDirection);const b=g+c;this.legendItems.forEach(((y,x)=>{o.strokeStyle=y.fontColor,o.fillStyle=y.fontColor;const w=o.measureText(y.text).width,C=s.textAlign(y.textAlign||(y.textAlign=i.textAlign)),E=h+d+w;let S=p.x,k=p.y;s.setWidth(this.width),m?x>0&&S+E+c>this.right&&(k=p.y+=b,p.line++,S=p.x=XO(r,this.left+c,this.right-n[p.line])):x>0&&k+b>this.bottom&&(S=p.x=S+t[p.line].width+c,p.line++,k=p.y=XO(r,this.top+v+c,this.bottom-t[p.line].height));if(function(e,t,n){if(isNaN(h)||h<=0||isNaN(f)||f<0)return;o.save();const r=Yk(n.lineWidth,1);if(o.fillStyle=Yk(n.fillStyle,a),o.lineCap=Yk(n.lineCap,"butt"),o.lineDashOffset=Yk(n.lineDashOffset,0),o.lineJoin=Yk(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=Yk(n.strokeStyle,a),o.setLineDash(Yk(n.lineDash,[])),i.usePointStyle){const a={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=s.xPlus(e,h/2);m$(o,a,l,t+d,i.pointStyleWidth&&h)}else{const i=t+Math.max((u-f)/2,0),a=s.leftForLtr(e,h),l=L$(n.borderRadius);o.beginPath(),Object.values(l).some((e=>0!==e))?k$(o,{x:a,y:i,w:h,h:f,radius:l}):o.rect(a,i,h,f),o.fill(),0!==r&&o.stroke()}o.restore()}(s.x(S),k,y),S=((e,t,n,o)=>e===(o?"left":"right")?n:"center"===e?(t+n)/2:t)(C,S+h+d,m?S+E:this.right,e.rtl),function(e,t,n){S$(o,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),k,y),m)p.x+=E+c;else if("string"!=typeof y.text){const e=l.lineHeight;p.y+=QP(y,e)+c}else p.y+=b})),wM(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=j$(t.font),o=I$(t.padding);if(!t.display)return;const r=yM(e.rtl,this.left,this.width),i=this.ctx,a=t.position,s=n.size/2,l=o.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=XO(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+XO(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=XO(a,u,u+d);i.textAlign=r.textAlign(UO(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,S$(i,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=j$(e.font),n=I$(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,o,r;if(TO(e,this.left,this.right)&&TO(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(o=r[n],TO(e,o.left,o.left+o.width)&&TO(t,o.top,o.top+o.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const i=this._hoveredItem,a=(r=n,null!==(o=i)&&null!==r&&o.datasetIndex===r.datasetIndex&&o.index===r.index);i&&!a&&Qk(t.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!a&&Qk(t.onHover,[e,n,this],this)}else n&&Qk(t.onClick,[e,n,this],this);var o,r}}function QP(e,t){return t*(e.text?e.text.length:0)}var JP={id:"legend",_element:ZP,start(e,t,n){const o=e.legend=new ZP({ctx:e.ctx,options:n,chart:e});E_.configure(e,o,n),E_.addBox(e,o)},stop(e){E_.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;E_.configure(e,o,n),o.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const o=t.datasetIndex,r=n.chart;r.isDatasetVisible(o)?(r.hide(o),t.hidden=!0):(r.show(o),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:r,color:i,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=I$(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:o||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class eN extends H_{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const o=Xk(n.text)?n.text.length:1;this._padding=I$(n.padding);const r=o*j$(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:o,right:r,options:i}=this,a=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=XO(a,n,r),c=t+e,s=r-n):("left"===i.position?(l=n+e,c=XO(a,o,t),u=-.5*hO):(l=r-e,c=XO(a,t,o),u=.5*hO),s=o-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=j$(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(o);S$(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:UO(t.align),textBaseline:"middle",translation:[r,i]})}}var tN={id:"title",_element:eN,start(e,t,n){!function(e,t){const n=new eN({ctx:e.ctx,options:t,chart:e});E_.configure(e,n,t),E_.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;E_.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;E_.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const nN={average(e){if(!e.length)return!1;let t,n,o=new Set,r=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();o.add(e.x),r+=e.y,++i}}if(0===i||0===o.size)return!1;return{x:[...o].reduce(((e,t)=>e+t))/o.size,y:r/i}},nearest(e,t){if(!e.length)return!1;let n,o,r,i=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,o=e.length;n<o;++n){const o=e[n].element;if(o&&o.hasValue()){const e=NO(t,o.getCenterPoint());e<s&&(s=e,r=o)}}if(r){const e=r.tooltipPosition();i=e.x,a=e.y}return{x:i,y:a}}};function oN(e,t){return t&&(Xk(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function rN(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function iN(e,t){const{element:n,datasetIndex:o,index:r}=t,i=e.getDatasetMeta(o).controller,{label:a,value:s}=i.getLabelAndValue(r);return{chart:e,label:a,parsed:i.getParsed(r),raw:e.data.datasets[o].data[r],formattedValue:s,dataset:i.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function aN(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=j$(t.bodyFont),c=j$(t.titleFont),u=j$(t.footerFont),d=i.length,p=r.length,h=o.length,f=I$(t.padding);let g=f.height,m=0,v=o.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){g+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}p&&(g+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let b=0;const y=function(e){m=Math.max(m,n.measureText(e).width+b)};return n.save(),n.font=c.string,Jk(e.title,y),n.font=l.string,Jk(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,Jk(o,(e=>{Jk(e.before,y),Jk(e.lines,y),Jk(e.after,y)})),b=0,n.font=u.string,Jk(e.footer,y),n.restore(),m+=f.width,{width:m,height:g}}function sN(e,t,n,o){const{x:r,width:i}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===o?c=r<=(s+l)/2?"left":"right":r<=i/2?c="left":r>=a-i/2&&(c="right"),function(e,t,n,o){const{x:r,width:i}=o,a=n.caretSize+n.caretPadding;return"left"===e&&r+i+a>t.width||"right"===e&&r-i-a<0||void 0}(c,e,t,n)&&(c="center"),c}function lN(e,t,n){const o=n.yAlign||t.yAlign||function(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||sN(e,t,n,o),yAlign:o}}function cN(e,t,n,o){const{caretSize:r,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=r+i,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=L$(a);let f=function(e,t){let{x:n,width:o}=e;return"right"===t?n-=o:"center"===t&&(n-=o/2),n}(t,s);const g=function(e,t,n){let{y:o,height:r}=e;return"top"===t?o+=n:o-="bottom"===t?r+n:r/2,o}(t,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(u,p)+r:"right"===s&&(f+=Math.max(d,h)+r),{x:RO(f,0,o.width-t.width),y:RO(g,0,o.height-t.height)}}function uN(e,t,n){const o=I$(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function dN(e){return oN([],rN(e))}function pN(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const hN={beforeTitle:Vk,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:Vk,beforeBody:Vk,beforeLabel:Vk,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Uk(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Vk,afterBody:Vk,beforeFooter:Vk,footer:Vk,afterFooter:Vk};function fN(e,t,n,o){const r=e[t].call(n,o);return void 0===r?hN[t].call(n,o):r}class gN extends H_{static positioners=nN;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&t.options.animation&&n.animations,r=new IM(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,T$(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,o=fN(n,"beforeTitle",this,e),r=fN(n,"title",this,e),i=fN(n,"afterTitle",this,e);let a=[];return a=oN(a,rN(o)),a=oN(a,rN(r)),a=oN(a,rN(i)),a}getBeforeBody(e,t){return dN(fN(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return Jk(e,(e=>{const t={before:[],lines:[],after:[]},r=pN(n,e);oN(t.before,rN(fN(r,"beforeLabel",this,e))),oN(t.lines,fN(r,"label",this,e)),oN(t.after,rN(fN(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return dN(fN(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=fN(n,"beforeFooter",this,e),r=fN(n,"footer",this,e),i=fN(n,"afterFooter",this,e);let a=[];return a=oN(a,rN(o)),a=oN(a,rN(r)),a=oN(a,rN(i)),a}_createItems(e){const t=this._active,n=this.chart.data,o=[],r=[],i=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(iN(this.chart,t[a]));return e.filter&&(l=l.filter(((t,o,r)=>e.filter(t,o,r,n)))),e.itemSort&&(l=l.sort(((t,o)=>e.itemSort(t,o,n)))),Jk(l,(t=>{const n=pN(e.callbacks,t);o.push(fN(n,"labelColor",this,t)),r.push(fN(n,"labelPointStyle",this,t)),i.push(fN(n,"labelTextColor",this,t))})),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),o=this._active;let r,i=[];if(o.length){const e=nN[n.position].call(this,o,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=aN(this,n),a=Object.assign({},e,t),s=lN(this.chart,n,a),l=cN(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,o){const r=this.getCaretPosition(e,n,o);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:o,yAlign:r}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=L$(a),{x:d,y:p}=e,{width:h,height:f}=t;let g,m,v,b,y,x;return"center"===r?(y=p+f/2,"left"===o?(g=d,m=g-i,b=y+i,x=y-i):(g=d+h,m=g+i,b=y-i,x=y+i),v=g):(m="left"===o?d+Math.max(s,c)+i:"right"===o?d+h-Math.max(l,u)-i:this.caretX,"top"===r?(b=p,y=b-i,g=m-i,v=m+i):(b=p+f,y=b+i,g=m+i,v=m-i),x=b),{x1:g,x2:m,x3:v,y1:b,y2:y,y3:x}}drawTitle(e,t,n){const o=this.title,r=o.length;let i,a,s;if(r){const l=yM(n.rtl,this.x,this.width);for(e.x=uN(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=j$(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s<r;++s)t.fillText(o[s],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+a,s+1===r&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,o,r){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=r,c=j$(r.bodyFont),u=uN(this,"left",r),d=o.x(u),p=s<c.lineHeight?(c.lineHeight-s)/2:0,h=t.y+p;if(r.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=o.leftForLtr(d,l)+l/2,c=h+s/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,g$(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,g$(e,t,n,c)}else{e.lineWidth=qk(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=o.leftForLtr(d,l),n=o.leftForLtr(o.xPlus(d,1),l-2),a=L$(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,k$(e,{x:t,y:h,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),k$(e,{x:n,y:h+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,h,l,s),e.strokeRect(t,h,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,h+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:o}=this,{bodySpacing:r,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=j$(n.bodyFont);let d=u.lineHeight,p=0;const h=yM(n.rtl,this.x,this.width),f=function(n){t.fillText(n,h.x(e.x+p),e.y+d/2),e.y+=d+r},g=h.textAlign(i);let m,v,b,y,x,w,C;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=uN(this,g,n),t.fillStyle=n.bodyColor,Jk(this.beforeBody,f),p=a&&"right"!==g?"center"===i?l/2+c:l+2+c:0,y=0,w=o.length;y<w;++y){for(m=o[y],v=this.labelTextColors[y],t.fillStyle=v,Jk(m.before,f),b=m.lines,a&&b.length&&(this._drawColorBox(t,e,y,h,n),d=Math.max(u.lineHeight,s)),x=0,C=b.length;x<C;++x)f(b[x]),d=u.lineHeight;Jk(m.after,f)}p=0,d=u.lineHeight,Jk(this.afterBody,f),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let i,a;if(r){const s=yM(n.rtl,this.x,this.width);for(e.x=uN(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=j$(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,a=0;a<r;++a)t.fillText(o[a],s.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,o){const{xAlign:r,yAlign:i}=this,{x:a,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=L$(o.cornerRadius);t.fillStyle=o.backgroundColor,t.strokeStyle=o.borderColor,t.lineWidth=o.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===r&&this.drawCaret(e,t,n,o),t.lineTo(a+l,s+c-h),t.quadraticCurveTo(a+l,s+c,a+l-h,s+c),"bottom"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+p,s+c),t.quadraticCurveTo(a,s+c,a,s+c-p),"center"===i&&"left"===r&&this.drawCaret(e,t,n,o),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),o.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){const n=nN[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=aN(this,e),a=Object.assign({},n,this._size),s=lN(t,e,a),l=cN(e,a,s,t);o._to===l.x&&r._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=I$(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,o,t),xM(e,t.textDirection),r.y+=i.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),wM(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,o=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),r=!eO(n,o),i=this._positionChanged(o,t);(r||i)&&(this._active=o,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,r=this._active||[],i=this._getActiveElements(e,r,t,n),a=this._positionChanged(i,e),s=t||!eO(i,r)||a;return s&&(this._active=i,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,o){const r=this.options;if("mouseout"===e.type)return[];if(!o)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:o,options:r}=this,i=nN[r.position].call(this,e,t);return!1!==i&&(n!==i.x||o!==i.y)}}var mN={id:"tooltip",_element:gN,positioners:nN,afterInit(e,t,n){n&&(e.tooltip=new gN({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:hN},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function vN(e,t,n,o){const r=e.indexOf(t);if(-1===r)return((e,t,n,o)=>("string"==typeof t?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,o);return r!==e.lastIndexOf(t)?n:r}function bN(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function yN(e,t){const n=[],{bounds:o,step:r,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,p=r||1,h=c-1,{min:f,max:g}=t,m=!Uk(i),v=!Uk(a),b=!Uk(l),y=(g-f)/(u+1);let x,w,C,E,S=SO((g-f)/h/p)*p;if(S<1e-14&&!m&&!v)return[{value:f},{value:g}];E=Math.ceil(g/S)-Math.floor(f/S),E>h&&(S=SO(E*S/h/p)*p),Uk(s)||(x=Math.pow(10,s),S=Math.ceil(S*x)/x),"ticks"===o?(w=Math.floor(f/S)*S,C=Math.ceil(g/S)*S):(w=f,C=g),m&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/r,S/1e3)?(E=Math.round(Math.min((a-i)/S,c)),S=(a-i)/E,w=i,C=a):b?(w=m?i:w,C=v?a:C,E=l-1,S=(C-w)/E):(E=(C-w)/S,E=EO(E,Math.round(E),S/1e3)?Math.round(E):Math.ceil(E));const k=Math.max(_O(S),_O(w));x=Math.pow(10,Uk(s)?k:s),w=Math.round(w*x)/x,C=Math.round(C*x)/x;let O=0;for(m&&(d&&w!==i?(n.push({value:i}),w<i&&O++,EO(Math.round((w+O*S)*x)/x,i,xN(i,y,e))&&O++):w<i&&O++);O<E;++O){const e=Math.round((w+O*S)*x)/x;if(v&&e>a)break;n.push({value:e})}return v&&d&&C!==a?n.length&&EO(n[n.length-1].value,a,xN(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&C!==a||n.push({value:C}),n}function xN(e,t,{horizontal:n,minRotation:o}){const r=$O(o),i=(n?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class wN extends Z_{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return Uk(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this;const i=e=>o=t?o:e,a=e=>r=n?r:e;if(e){const e=CO(o),t=CO(r);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(o===r){let t=0===r?1:Math.abs(.05*r);a(r+t),e||i(o-t)}this.min=o,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:o}=e;return o?(t=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const o=yN({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&OO(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const o=(n-t)/Math.max(e.length-1,1)/2;t-=o,n+=o}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return o$(e,this.chart.options.locale,this.options.ticks.format)}}class CN extends wN{static id="linear";static defaults={ticks:{callback:i$.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Gk(e)?e:0,this.max=Gk(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=$O(this.options.ticks.minRotation),o=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/o))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}i$.formatters.logarithmic;i$.formatters.numeric;const EN="label";function SN(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function kN(e,t){e.labels=t}function ON(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:EN;const o=[];e.datasets=t.map((t=>{const r=e.datasets.find((e=>e[n]===t[n]));return r&&t.data&&!o.includes(r)?(o.push(r),Object.assign(r,t),r):{...t}}))}function $N(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:EN;const n={labels:[],datasets:[]};return kN(n,e.labels),ON(n,e.datasets,t),n}function MN(e,n){const{height:o=150,width:r=300,redraw:i=!1,datasetIdKey:s,type:c,data:u,options:d,plugins:p=[],fallbackContent:h,updateMode:f,...g}=e,m=a(null),v=a(),b=()=>{m.current&&(v.current=new _P(m.current,{type:c,data:$N(u,s),options:d&&{...d},plugins:p}),SN(n,v.current))},y=()=>{SN(n,null),v.current&&(v.current.destroy(),v.current=null)};return l((()=>{!i&&v.current&&d&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(v.current,d)}),[i,d]),l((()=>{!i&&v.current&&kN(v.current.config.data,u.labels)}),[i,u.labels]),l((()=>{!i&&v.current&&u.datasets&&ON(v.current.config.data,u.datasets,s)}),[i,u.datasets]),l((()=>{v.current&&(i?(y(),setTimeout(b)):v.current.update(f))}),[i,d,u.labels,u.datasets,f]),l((()=>{v.current&&(y(),setTimeout(b))}),[c]),l((()=>(b(),()=>y())),[]),t.createElement("canvas",Object.assign({ref:m,role:"img",height:o,width:r},g),h)}const _N=c(MN);function PN(e,n){return _P.register(n),c(((n,o)=>t.createElement(_N,Object.assign({},n,{ref:o,type:e}))))}const NN=PN("line",n_),LN=PN("bar",e_),IN=PN("doughnut",t_),jN=PN("pie",o_);YS(".appChart {\n & > canvas {\n height: 100% !important;\n width: 100% !important;\n }\n}\n"),_P.register(class extends Z_{static id="category";static defaults={ticks:{callback:bN}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:o}of t)e[n]===o&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(Uk(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:RO(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:vN(n,e,Yk(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,o=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)o.push({value:n});return o}getLabelForValue(e){return bN.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}},CN,class extends H_{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:o}}=this,{inner:r,outer:i}=XP(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?k$:GP;var s;e.save(),i.w===r.w&&i.h===r.h||(e.beginPath(),a(e,KP(i,t,r)),e.clip(),a(e,KP(r,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,KP(r,t)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,t,n){return qP(this,e,t,n)}inXRange(e,t){return qP(this,e,null,t)}inYRange(e,t){return qP(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:o,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(t+o)/2:t,y:r?n:(n+o)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}},class extends H_{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const o=n.spanGaps?this._loop:this._fullLoop;nM(this._points,n,e,o,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,o=e.options.spanGaps,r=n.length;if(!r)return[];const i=!!e._loop,{start:a,end:s}=function(e,t,n,o){let r=0,i=t-1;if(n&&!o)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(i+=r);i>r&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}(n,r,i,o);return kM(e,!0===o?[{start:a,end:s,loop:i}]:function(e,t,n,o){const r=e.length,i=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%r];n.skip||n.stop?l.skip||(o=!1,i.push({start:t%r,end:(a-1)%r,loop:o}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&i.push({start:t%r,end:s%r,loop:o}),i}(n,a,s<a?s+r:s,!!e._fullLoop&&0===a&&s===r-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,o=e[t],r=this.points,i=function(e,t){const n=[],o=e.segments;for(let r=0;r<o.length;r++){const i=SM(o[r],e.points,t);i.length&&n.push(...i)}return n}(this,{property:t,start:o,end:o});if(!i.length)return;const a=[],s=function(e){return e.stepped?vM:e.tension||"monotone"===e.cubicInterpolationMode?bM:mM}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=r[c],p=r[u];if(d===p){a.push(d);continue}const h=s(d,p,Math.abs((o-d[t])/(p[t]-d[t])),n.stepped);h[t]=e[t],a.push(h)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return BP(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=BP(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const a of o)i&=r(e,this,a,{start:t,end:t+n-1});return!!i}draw(e,t,n,o){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),FP(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends H_{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.options,{x:r,y:i}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-i,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,t){return VP(this,e,"x",t)}inYRange(e,t){return VP(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!v$(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,g$(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}},class extends H_{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.getProps(["x","y"],n),{angle:r,distance:i}=PO(o,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,p=Yk(u,s-a),h=jO(r,a,s)&&a!==s,f=p>=fO||h,g=TO(i,l+d,c+d);return f&&g}getCenterPoint(e){const{x:t,y:n,startAngle:o,endAngle:r,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:s,spacing:l}=this.options,c=(o+r)/2,u=(i+a+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,o=(t.offset||0)/4,r=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>fO?Math.floor(n/fO):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*o,Math.sin(a)*o);const s=o*(1-Math.sin(Math.min(hO,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:s}=t;let l=t.endAngle;if(i){IP(e,t,n,o,l,r);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+(s%fO||fO))}IP(e,t,n,o,l,r),e.fill()}(e,this,s,r,i),jP(e,this,s,r,i),e.restore()}},tN,mN,JP);var RN=function(e){var t=e.type,n=e.data,o=e.options,r=e.className,i=e.height,a=void 0===i?400:i,s=e.width,l=void 0===s?600:s;return P.jsx("div",{style:{height:a,width:l},className:"appChart ".concat(r),children:function(){switch(t){case"bar":return P.jsx(LN,{data:n,options:o,className:r});case"line":return P.jsx(NN,{data:n,options:o,className:r});case"pie":return P.jsx(jN,{data:n,options:o,className:r});case"doughnut":return P.jsx(IN,{data:n,options:o,className:r});default:return null}}()})};YS(".appImageBox {\n width: max-content;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1rem;\n\n .ant-image {\n border-radius: 50%;\n overflow: hidden;\n\n .ant-image-img {\n border-radius: 50%;\n }\n }\n .text {\n font-size: 16px;\n font-weight: 700;\n line-height: 20px;\n text-align: left;\n color: #000000;\n }\n}\n");var TN=function(e){var t=e.width,n=void 0===t?100:t,o=e.height,r=void 0===o?100:o,i=e.text,a=void 0===i?"":i,s=e.image,l=e.className;return P.jsxs("div",{className:"appImageBox ".concat(l),children:[P.jsx(nE,{preview:!1,width:n,height:r,src:s.src,alt:a}),a&&P.jsx("span",{className:"text",children:a})]})},DN=function(e){var t=e.src,n=e.fallbackIcon,o=void 0===n?P.jsx(sS,{}):n,r=e.className,i=ak(e,["src","fallbackIcon","className"]);return P.jsx("div",{className:r,children:P.jsx(ev,ik({src:t,icon:t?void 0:o},i))})};YS(".appCheckboxText {\n .checkboxText {\n & > span:last-child {\n line-height: unset;\n & > span {\n font-size: 15px;\n font-weight: 500;\n text-align: left;\n }\n }\n }\n}\n");var zN=function(e){var t=e.text,n=e.className;return P.jsx("div",{className:"appCheckboxText ".concat(n),children:P.jsx(iw,{className:"checkboxText",children:P.jsx("span",{dangerouslySetInnerHTML:{__html:t}})})})};ww.Panel;var AN=function(e){var t=e.panels,n=void 0===t?[]:t,o=e.defaultActiveKey,r=e.onChange,i=e.expandIconPosition,a=e.ghost,s=e.accordion,l=e.expandIcon,c=e.size,u=e.bordered,d=e.activeKey,p=e.className,h=ak(e,["panels","defaultActiveKey","onChange","expandIconPosition","ghost","accordion","expandIcon","size","bordered","activeKey","className"]),f=n.map((function(e){return{key:e.key,label:e.header,children:e.content,collapsible:e.collapsible}}));return P.jsx("div",{className:p,children:P.jsx(ww,ik({defaultActiveKey:o,onChange:r,expandIconPosition:i,ghost:a,accordion:s,expandIcon:l,size:c,bordered:u,activeKey:d,items:f},h))})};YS('.wrapper {\n width: 100vw;\n height: 100vh;\n position: fixed;\n top: 0;\n left: 0;\n background-color: (0, 0, 0, 0.3);\n backdrop-filter: blur(10px);\n display: flex;\n z-index: 99;\n}\n\n/*code for custom loading icon*/\n\n.loader {\n position: relative;\n width: 80px;\n margin-left: 45%;\n margin-top: 25%;\n}\n\n.loader span {\n display: block;\n transform-origin: 40px 40px;\n animation: ding 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n}\n\n.loader span::before {\n content: "";\n position: absolute;\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background: rgb(0, 0, 0);\n margin: -4px 0 0 -4px;\n}\n\n.loader span:nth-child(1) {\n animation-delay: -0.36s;\n}\n\n.loader span:nth-child(1):before {\n top: 63px;\n left: 63px;\n}\n\n.loader span:nth-child(2) {\n animation-delay: -0.72s;\n}\n\n.loader span:nth-child(2):before {\n top: 68px;\n left: 56px;\n}\n\n.loader span:nth-child(3) {\n animation-delay: -0.108s;\n}\n\n.loader span:nth-child(3):before {\n top: 71px;\n left: 48px;\n}\n.loader span:nth-child(4) {\n animation-delay: -0.144s;\n}\n\n.loader span:nth-child(4):before {\n top: 72px;\n left: 40px;\n}\n\n.loader span:nth-child(5) {\n animation-delay: -0.18;\n}\n\n.loader span:nth-child(5):before {\n top: 71px;\n left: 32px;\n}\n\n.loader span:nth-child(6) {\n animation-delay: -0.216s;\n}\n\n.loader span:nth-child(6):before {\n top: 68px;\n left: 24px;\n}\n\n.loader span:nth-child(7) {\n animation-delay: -0.252s;\n}\n\n.loader span:nth-child(7):before {\n top: 63px;\n left: 17px;\n}\n\n.loader span:nth-child(8) {\n animation-delay: -0.288s;\n}\n\n.loader span:nth-child(8):before {\n top: 56px;\n left: 12px;\n}\n\n@keyframes ding {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n');var BN=function(e){var t=e.className;return P.jsx("div",{className:"wrapper ".concat(t),children:P.jsxs("div",{className:"loader",children:[P.jsx("span",{}),P.jsx("span",{}),P.jsx("span",{}),P.jsx("span",{}),P.jsx("span",{}),P.jsx("span",{}),P.jsx("span",{}),P.jsx("span",{})]})})},HN=function(e,t){return HN=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},HN(e,t)};
|
46
|
+
/*! *****************************************************************************
|
47
|
+
Copyright (c) Microsoft Corporation.
|
48
|
+
|
49
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
50
|
+
purpose with or without fee is hereby granted.
|
51
|
+
|
52
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
53
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
54
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
55
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
56
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
57
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
58
|
+
PERFORMANCE OF THIS SOFTWARE.
|
59
|
+
***************************************************************************** */function FN(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}HN(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var VN=function(){return VN=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},VN.apply(this,arguments)};function WN(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function UN(e,t,n,o){return new(n||(n=Promise))((function(t,r){function i(e){try{s(o.next(e))}catch(e){r(e)}}function a(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n((function(e){e(o)}))).then(i,a)}s((o=o.apply(e,[])).next())}))}function XN(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function qN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var GN=process.env.NODE_ENV,KN=function(e,t,n,o,r,i,a,s){if("production"!==GN&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}},YN=qN(KN),ZN=i(null);function QN(e,t,n,o){var r,i,a={};return r=e,i=function(e,r){var i=n[r];i!==t[r]&&(a[r]=i,e(o,i))},Object.keys(r).forEach((function(e){return i(r[e],e)})),a}function JN(e,t,n){var o,r,i,a=(o=n,r=function(n,o,r){return"function"==typeof e[r]&&n.push(google.maps.event.addListener(t,o,e[r])),n},i=[],Object.keys(o).reduce((function(e,t){return r(e,o[t],t)}),i));return a}function eL(e){google.maps.event.removeListener(e)}function tL(e){void 0===e&&(e=[]),e.forEach(eL)}function nL(e){var t=e.updaterMap,n=e.eventMap,o=e.prevProps,r=e.nextProps,i=e.instance,a=JN(r,i,n);return QN(t,o,r,i),a}var oL={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},rL={extraMapTypes:function(e,t){t.forEach((function(t,n){e.mapTypes.set(String(n),t)}))},center:function(e,t){e.setCenter(t)},clickableIcons:function(e,t){e.setClickableIcons(t)},heading:function(e,t){e.setHeading(t)},mapTypeId:function(e,t){e.setMapTypeId(t)},options:function(e,t){e.setOptions(t)},streetView:function(e,t){e.setStreetView(t)},tilt:function(e,t){e.setTilt(t)},zoom:function(e,t){e.setZoom(t)}};v((function(e){var t=e.children,n=e.options,o=e.id,r=e.mapContainerStyle,i=e.mapContainerClassName,s=e.center,c=e.onClick,u=e.onDblClick,p=e.onDrag,h=e.onDragEnd,f=e.onDragStart,g=e.onMouseMove,m=e.onMouseOut,v=e.onMouseOver,b=e.onMouseDown,y=e.onMouseUp,x=e.onRightClick,w=e.onCenterChanged,C=e.onLoad,E=e.onUnmount,S=d(null),k=S[0],O=S[1],$=a(null),M=d(null),_=M[0],N=M[1],L=d(null),I=L[0],j=L[1],R=d(null),T=R[0],D=R[1],z=d(null),A=z[0],B=z[1],H=d(null),F=H[0],V=H[1],W=d(null),U=W[0],X=W[1],q=d(null),G=q[0],K=q[1],Y=d(null),Z=Y[0],Q=Y[1],J=d(null),ee=J[0],te=J[1],ne=d(null),oe=ne[0],re=ne[1],ie=d(null),ae=ie[0],se=ie[1],le=d(null),ce=le[0],ue=le[1];return l((function(){n&&null!==k&&k.setOptions(n)}),[k,n]),l((function(){null!==k&&void 0!==s&&k.setCenter(s)}),[k,s]),l((function(){k&&u&&(null!==I&&google.maps.event.removeListener(I),j(google.maps.event.addListener(k,"dblclick",u)))}),[u]),l((function(){k&&h&&(null!==T&&google.maps.event.removeListener(T),D(google.maps.event.addListener(k,"dragend",h)))}),[h]),l((function(){k&&f&&(null!==A&&google.maps.event.removeListener(A),B(google.maps.event.addListener(k,"dragstart",f)))}),[f]),l((function(){k&&b&&(null!==F&&google.maps.event.removeListener(F),V(google.maps.event.addListener(k,"mousedown",b)))}),[b]),l((function(){k&&g&&(null!==U&&google.maps.event.removeListener(U),X(google.maps.event.addListener(k,"mousemove",g)))}),[g]),l((function(){k&&m&&(null!==G&&google.maps.event.removeListener(G),K(google.maps.event.addListener(k,"mouseout",m)))}),[m]),l((function(){k&&v&&(null!==Z&&google.maps.event.removeListener(Z),Q(google.maps.event.addListener(k,"mouseover",v)))}),[v]),l((function(){k&&y&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener(k,"mouseup",y)))}),[y]),l((function(){k&&x&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener(k,"rightclick",x)))}),[x]),l((function(){k&&c&&(null!==ae&&google.maps.event.removeListener(ae),se(google.maps.event.addListener(k,"click",c)))}),[c]),l((function(){k&&p&&(null!==ce&&google.maps.event.removeListener(ce),ue(google.maps.event.addListener(k,"drag",p)))}),[p]),l((function(){k&&w&&(null!==_&&google.maps.event.removeListener(_),N(google.maps.event.addListener(k,"center_changed",w)))}),[c]),l((function(){var e=null===$.current?null:new google.maps.Map($.current,n);return O(e),null!==e&&C&&C(e),function(){null!==e&&E&&E(e)}}),[]),P.jsx("div",{id:o,ref:$,style:r,className:i,children:P.jsx(ZN.Provider,{value:k,children:null!==k?t:null})})}));var iL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={map:null},t.registeredEvents=[],t.mapRef=null,t.getInstance=function(){return null===t.mapRef?null:new google.maps.Map(t.mapRef,t.props.options)},t.panTo=function(e){var n=t.getInstance();n&&n.panTo(e)},t.setMapCallback=function(){null!==t.state.map&&t.props.onLoad&&t.props.onLoad(t.state.map)},t.getRef=function(e){t.mapRef=e},t}return FN(t,e),t.prototype.componentDidMount=function(){var e=this.getInstance();this.registeredEvents=nL({updaterMap:rL,eventMap:oL,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{map:e}}),this.setMapCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.map&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:rL,eventMap:oL,prevProps:e,nextProps:this.props,instance:this.state.map}))},t.prototype.componentWillUnmount=function(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),tL(this.registeredEvents))},t.prototype.render=function(){return P.jsx("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:P.jsx(ZN.Provider,{value:this.state.map,children:null!==this.state.map?this.props.children:null})})},t}(b),aL="undefined"!=typeof document;function sL(e){var t=e.url,n=e.id,o=e.nonce;return aL?new Promise((function(e,r){var i=document.getElementById(n),a=window;if(i){var s=i.getAttribute("data-state");if(i.src===t&&"error"!==s){if("ready"===s)return e(n);var l=a.initMap,c=i.onerror;return a.initMap=function(){l&&l(),e(n)},void(i.onerror=function(e){c&&c(e),r(e)})}i.remove()}var u=document.createElement("script");u.type="text/javascript",u.src=t,u.id=n,u.async=!0,u.nonce=o||"",u.onerror=function(e){u.setAttribute("data-state","error"),r(e)},a.initMap=function(){u.setAttribute("data-state","ready"),e(n)},document.head.appendChild(u)})).catch((function(e){throw console.error("injectScript error: ",e),e})):Promise.reject(new Error("document is undefined"))}function lL(e){var t=e.href;return!(!t||0!==t.indexOf("https://fonts.googleapis.com/css?family=Roboto")&&0!==t.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text"))||("style"===e.tagName.toLowerCase()&&e.styleSheet&&e.styleSheet.cssText&&0===e.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(e.styleSheet.cssText="",!0):"style"===e.tagName.toLowerCase()&&e.innerHTML&&0===e.innerHTML.replace("\r\n","").indexOf(".gm-style")?(e.innerHTML="",!0):"style"===e.tagName.toLowerCase()&&!e.styleSheet&&!e.innerHTML)}function cL(){var e=document.getElementsByTagName("head")[0];if(e){var t=e.insertBefore.bind(e);e.insertBefore=function(n,o){return lL(n)||Reflect.apply(t,e,[n,o]),n};var n=e.appendChild.bind(e);e.appendChild=function(t){return lL(t)||Reflect.apply(n,e,[t]),t}}}function uL(e){var t=e.googleMapsApiKey,n=e.googleMapsClientId,o=e.version,r=void 0===o?"weekly":o,i=e.language,a=e.region,s=e.libraries,l=e.channel,c=e.mapIds,u=e.authReferrerPolicy,d=[];return YN(t&&n||!(t&&n),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),t?d.push("key=".concat(t)):n&&d.push("client=".concat(n)),r&&d.push("v=".concat(r)),i&&d.push("language=".concat(i)),a&&d.push("region=".concat(a)),s&&s.length&&d.push("libraries=".concat(s.sort().join(","))),l&&d.push("channel=".concat(l)),c&&c.length&&d.push("map_ids=".concat(c.join(","))),u&&d.push("auth_referrer_policy=".concat(u)),d.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?".concat(d.join("&"))}var dL=!1;function pL(){return P.jsx("div",{children:"Loading..."})}var hL,fL={id:"script-loader",version:"weekly"},gL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.check=h(),t.state={loaded:!1},t.cleanupCallback=function(){delete window.google.maps,t.injectScript()},t.isCleaningUp=function(){return UN(t,0,void 0,(function(){function e(e){if(dL){if(aL)var t=window.setInterval((function(){dL||(window.clearInterval(t),e())}),1)}else e()}return XN(this,(function(t){return[2,new Promise(e)]}))}))},t.cleanup=function(){dL=!0;var e=document.getElementById(t.props.id);e&&e.parentNode&&e.parentNode.removeChild(e),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(e){return"string"==typeof e.src&&e.src.includes("maps.googleapis")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(e){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===e.href})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(e){return void 0!==e.innerText&&e.innerText.length>0&&e.innerText.includes(".gm-")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},t.injectScript=function(){t.props.preventGoogleFontsLoading&&cL(),YN(!!t.props.id,'LoadScript requires "id" prop to be a string: %s',t.props.id),sL({id:t.props.id,nonce:t.props.nonce,url:uL(t.props)}).then((function(){t.props.onLoad&&t.props.onLoad(),t.setState((function(){return{loaded:!0}}))})).catch((function(e){t.props.onError&&t.props.onError(e),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(t.props.googleMapsApiKey||"-",") or Client ID (").concat(t.props.googleMapsClientId||"-",") to <LoadScript />\n Otherwise it is a Network issue.\n "))}))},t}return FN(t,e),t.prototype.componentDidMount=function(){if(aL){if(window.google&&window.google.maps&&!dL)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(e){console.error("Error at injecting script after cleaning up: ",e)}))}},t.prototype.componentDidUpdate=function(e){this.props.libraries!==e.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),aL&&e.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))},t.prototype.componentWillUnmount=function(){var e=this;if(aL){this.cleanup();window.setTimeout((function(){e.check.current||(delete window.google,dL=!1)}),1),this.props.onUnmount&&this.props.onUnmount()}},t.prototype.render=function(){return P.jsxs(P.Fragment,{children:[P.jsx("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||P.jsx(pL,{})]})},t.defaultProps=fL,t}(b);var mL,vL=P.jsx(pL,{});v((function(e){var t=e.loadingElement,n=e.onLoad,o=e.onError,r=e.onUnmount,i=e.children,s=function(e){var t=e.id,n=void 0===t?fL.id:t,o=e.version,r=void 0===o?fL.version:o,i=e.nonce,s=e.googleMapsApiKey,c=e.googleMapsClientId,u=e.language,p=e.region,h=e.libraries,f=e.preventGoogleFontsLoading,g=e.channel,m=e.mapIds,v=e.authReferrerPolicy,b=a(!1),y=d(!1),x=y[0],w=y[1],C=d(void 0),E=C[0],S=C[1];l((function(){return b.current=!0,function(){b.current=!1}}),[]),l((function(){aL&&f&&cL()}),[f]),l((function(){x&&YN(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[x]);var k=uL({version:r,googleMapsApiKey:s,googleMapsClientId:c,language:u,region:p,libraries:h,channel:g,mapIds:m,authReferrerPolicy:v});l((function(){function e(){b.current&&(w(!0),hL=k)}aL&&(window.google&&window.google.maps&&hL===k?e():sL({id:n,url:k,nonce:i}).then(e).catch((function(e){b.current&&S(e),console.warn("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(s||"-",") or Client ID (").concat(c||"-",")\n Otherwise it is a Network issue.\n ")),console.error(e)})))}),[n,k,i]);var O=a();return l((function(){O.current&&h!==O.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),O.current=h}),[h]),{isLoaded:x,loadError:E,url:k}}(WN(e,["loadingElement","onLoad","onError","onUnmount","children"])),c=s.isLoaded,u=s.loadError;return l((function(){c&&"function"==typeof n&&n()}),[c,n]),l((function(){u&&"function"==typeof o&&o(u)}),[u,o]),l((function(){return function(){r&&r()}}),[r]),c?i:t||vL})),function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(mL||(mL={}));var bL={},yL={options:function(e,t){e.setOptions(t)}};v((function(e){var t=e.options,n=e.onLoad,o=e.onUnmount,i=r(ZN),a=d(null),s=a[0],c=a[1];return l((function(){null!==s&&s.setMap(i)}),[i]),l((function(){t&&null!==s&&s.setOptions(t)}),[s,t]),l((function(){var e=new google.maps.TrafficLayer(VN(VN({},t||{}),{map:i}));return c(e),n&&n(e),function(){null!==s&&(o&&o(s),s.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={trafficLayer:null},t.setTrafficLayerCallback=function(){null!==t.state.trafficLayer&&t.props.onLoad&&t.props.onLoad(t.state.trafficLayer)},t.registeredEvents=[],t}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.TrafficLayer(VN(VN({},this.props.options||{}),{map:this.context}));this.registeredEvents=nL({updaterMap:yL,eventMap:bL,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{trafficLayer:e}}),this.setTrafficLayerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.trafficLayer&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:yL,eventMap:bL,prevProps:e,nextProps:this.props,instance:this.state.trafficLayer}))},t.prototype.componentWillUnmount=function(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),tL(this.registeredEvents),this.state.trafficLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=ZN}(b),v((function(e){var t=e.onLoad,n=e.onUnmount,o=r(ZN),i=d(null),a=i[0],s=i[1];return l((function(){null!==a&&a.setMap(o)}),[o]),l((function(){var e=new google.maps.BicyclingLayer;return s(e),e.setMap(o),t&&t(e),function(){null!==e&&(n&&n(e),e.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={bicyclingLayer:null},t.setBicyclingLayerCallback=function(){null!==t.state.bicyclingLayer&&(t.state.bicyclingLayer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.bicyclingLayer))},t}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:e}}),this.setBicyclingLayerCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=ZN}(b),v((function(e){var t=e.onLoad,n=e.onUnmount,o=r(ZN),i=d(null),a=i[0],s=i[1];return l((function(){null!==a&&a.setMap(o)}),[o]),l((function(){var e=new google.maps.TransitLayer;return s(e),e.setMap(o),t&&t(e),function(){null!==a&&(n&&n(a),a.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={transitLayer:null},t.setTransitLayerCallback=function(){null!==t.state.transitLayer&&(t.state.transitLayer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.transitLayer))},t}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:e}}),this.setTransitLayerCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=ZN}(b);var xL={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},wL={drawingMode:function(e,t){e.setDrawingMode(t)},options:function(e,t){e.setOptions(t)}};v((function(e){var t=e.options,n=e.drawingMode,o=e.onCircleComplete,i=e.onMarkerComplete,a=e.onOverlayComplete,s=e.onPolygonComplete,c=e.onPolylineComplete,u=e.onRectangleComplete,p=e.onLoad,h=e.onUnmount,f=r(ZN),g=d(null),m=g[0],v=g[1],b=d(null),y=b[0],x=b[1],w=d(null),C=w[0],E=w[1],S=d(null),k=S[0],O=S[1],$=d(null),M=$[0],_=$[1],P=d(null),N=P[0],L=P[1],I=d(null),j=I[0],R=I[1];return l((function(){null!==m&&m.setMap(f)}),[f]),l((function(){t&&null!==m&&m.setOptions(t)}),[m,t]),l((function(){null!==m&&m.setDrawingMode(null!=n?n:null)}),[m,n]),l((function(){m&&o&&(null!==y&&google.maps.event.removeListener(y),x(google.maps.event.addListener(m,"circlecomplete",o)))}),[m,o]),l((function(){m&&i&&(null!==C&&google.maps.event.removeListener(C),E(google.maps.event.addListener(m,"markercomplete",i)))}),[m,i]),l((function(){m&&a&&(null!==k&&google.maps.event.removeListener(k),O(google.maps.event.addListener(m,"overlaycomplete",a)))}),[m,a]),l((function(){m&&s&&(null!==M&&google.maps.event.removeListener(M),_(google.maps.event.addListener(m,"polygoncomplete",s)))}),[m,s]),l((function(){m&&c&&(null!==N&&google.maps.event.removeListener(N),L(google.maps.event.addListener(m,"polylinecomplete",c)))}),[m,c]),l((function(){m&&u&&(null!==j&&google.maps.event.removeListener(j),R(google.maps.event.addListener(m,"rectanglecomplete",u)))}),[m,u]),l((function(){YN(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var e=new google.maps.drawing.DrawingManager(VN(VN({},t||{}),{map:f}));return n&&e.setDrawingMode(n),o&&x(google.maps.event.addListener(e,"circlecomplete",o)),i&&E(google.maps.event.addListener(e,"markercomplete",i)),a&&O(google.maps.event.addListener(e,"overlaycomplete",a)),s&&_(google.maps.event.addListener(e,"polygoncomplete",s)),c&&L(google.maps.event.addListener(e,"polylinecomplete",c)),u&&R(google.maps.event.addListener(e,"rectanglecomplete",u)),v(e),p&&p(e),function(){null!==m&&(y&&google.maps.event.removeListener(y),C&&google.maps.event.removeListener(C),k&&google.maps.event.removeListener(k),M&&google.maps.event.removeListener(M),N&&google.maps.event.removeListener(N),j&&google.maps.event.removeListener(j),h&&h(m),m.setMap(null))}}),[]),null})),function(e){function t(t){var n=e.call(this,t)||this;return n.registeredEvents=[],n.state={drawingManager:null},n.setDrawingManagerCallback=function(){null!==n.state.drawingManager&&n.props.onLoad&&n.props.onLoad(n.state.drawingManager)},YN(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing),n}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.drawing.DrawingManager(VN(VN({},this.props.options||{}),{map:this.context}));this.registeredEvents=nL({updaterMap:wL,eventMap:xL,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{drawingManager:e}}),this.setDrawingManagerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.drawingManager&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:wL,eventMap:xL,prevProps:e,nextProps:this.props,instance:this.state.drawingManager}))},t.prototype.componentWillUnmount=function(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),tL(this.registeredEvents),this.state.drawingManager.setMap(null))},t.prototype.render=function(){return null},t.contextType=ZN}(b);var CL={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},EL={animation:function(e,t){e.setAnimation(t)},clickable:function(e,t){e.setClickable(t)},cursor:function(e,t){e.setCursor(t)},draggable:function(e,t){e.setDraggable(t)},icon:function(e,t){e.setIcon(t)},label:function(e,t){e.setLabel(t)},map:function(e,t){e.setMap(t)},opacity:function(e,t){e.setOpacity(t)},options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},shape:function(e,t){e.setShape(t)},title:function(e,t){e.setTitle(t)},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},SL={};v((function(e){var t=e.position,n=e.options,i=e.clusterer,a=e.noClustererRedraw,s=e.children,c=e.draggable,h=e.visible,f=e.animation,g=e.clickable,v=e.cursor,b=e.icon,y=e.label,x=e.opacity,w=e.shape,C=e.title,E=e.zIndex,S=e.onClick,k=e.onDblClick,O=e.onDrag,$=e.onDragEnd,M=e.onDragStart,_=e.onMouseOut,N=e.onMouseOver,L=e.onMouseUp,I=e.onMouseDown,j=e.onRightClick,R=e.onClickableChanged,T=e.onCursorChanged,D=e.onAnimationChanged,z=e.onDraggableChanged,A=e.onFlatChanged,B=e.onIconChanged,H=e.onPositionChanged,F=e.onShapeChanged,V=e.onTitleChanged,W=e.onVisibleChanged,U=e.onZindexChanged,X=e.onLoad,q=e.onUnmount,G=r(ZN),K=d(null),Y=K[0],Z=K[1],Q=d(null),J=Q[0],ee=Q[1],te=d(null),ne=te[0],oe=te[1],re=d(null),ie=re[0],ae=re[1],se=d(null),le=se[0],ce=se[1],ue=d(null),de=ue[0],pe=ue[1],he=d(null),fe=he[0],ge=he[1],me=d(null),ve=me[0],be=me[1],ye=d(null),xe=ye[0],we=ye[1],Ce=d(null),Ee=Ce[0],Se=Ce[1],ke=d(null),Oe=ke[0],$e=ke[1],Me=d(null),_e=Me[0],Pe=Me[1],Ne=d(null),Le=Ne[0],Ie=Ne[1],je=d(null),Re=je[0],Te=je[1],De=d(null),ze=De[0],Ae=De[1],Be=d(null),He=Be[0],Fe=Be[1],Ve=d(null),We=Ve[0],Ue=Ve[1],Xe=d(null),qe=Xe[0],Ge=Xe[1],Ke=d(null),Ye=Ke[0],Ze=Ke[1],Qe=d(null),Je=Qe[0],et=Qe[1],tt=d(null),nt=tt[0],ot=tt[1],rt=d(null),it=rt[0],at=rt[1];l((function(){null!==Y&&Y.setMap(G)}),[G]),l((function(){void 0!==n&&null!==Y&&Y.setOptions(n)}),[Y,n]),l((function(){void 0!==c&&null!==Y&&Y.setDraggable(c)}),[Y,c]),l((function(){t&&null!==Y&&Y.setPosition(t)}),[Y,t]),l((function(){void 0!==h&&null!==Y&&Y.setVisible(h)}),[Y,h]),l((function(){null==Y||Y.setAnimation(f)}),[Y,f]),l((function(){Y&&void 0!==g&&Y.setClickable(g)}),[Y,g]),l((function(){Y&&void 0!==v&&Y.setCursor(v)}),[Y,v]),l((function(){Y&&void 0!==b&&Y.setIcon(b)}),[Y,b]),l((function(){Y&&void 0!==y&&Y.setLabel(y)}),[Y,y]),l((function(){Y&&void 0!==x&&Y.setOpacity(x)}),[Y,x]),l((function(){Y&&void 0!==w&&Y.setShape(w)}),[Y,w]),l((function(){Y&&void 0!==C&&Y.setTitle(C)}),[Y,C]),l((function(){Y&&void 0!==E&&Y.setZIndex(E)}),[Y,E]),l((function(){Y&&k&&(null!==J&&google.maps.event.removeListener(J),ee(google.maps.event.addListener(Y,"dblclick",k)))}),[k]),l((function(){Y&&$&&(null!==ne&&google.maps.event.removeListener(ne),oe(google.maps.event.addListener(Y,"dragend",$)))}),[$]),l((function(){Y&&M&&(null!==ie&&google.maps.event.removeListener(ie),ae(google.maps.event.addListener(Y,"dragstart",M)))}),[M]),l((function(){Y&&I&&(null!==le&&google.maps.event.removeListener(le),ce(google.maps.event.addListener(Y,"mousedown",I)))}),[I]),l((function(){Y&&_&&(null!==de&&google.maps.event.removeListener(de),pe(google.maps.event.addListener(Y,"mouseout",_)))}),[_]),l((function(){Y&&N&&(null!==fe&&google.maps.event.removeListener(fe),ge(google.maps.event.addListener(Y,"mouseover",N)))}),[N]),l((function(){Y&&L&&(null!==ve&&google.maps.event.removeListener(ve),be(google.maps.event.addListener(Y,"mouseup",L)))}),[L]),l((function(){Y&&j&&(null!==xe&&google.maps.event.removeListener(xe),we(google.maps.event.addListener(Y,"rightclick",j)))}),[j]),l((function(){Y&&S&&(null!==Ee&&google.maps.event.removeListener(Ee),Se(google.maps.event.addListener(Y,"click",S)))}),[S]),l((function(){Y&&O&&(null!==Oe&&google.maps.event.removeListener(Oe),$e(google.maps.event.addListener(Y,"drag",O)))}),[O]),l((function(){Y&&R&&(null!==_e&&google.maps.event.removeListener(_e),Pe(google.maps.event.addListener(Y,"clickable_changed",R)))}),[R]),l((function(){Y&&T&&(null!==Le&&google.maps.event.removeListener(Le),Ie(google.maps.event.addListener(Y,"cursor_changed",T)))}),[T]),l((function(){Y&&D&&(null!==Re&&google.maps.event.removeListener(Re),Te(google.maps.event.addListener(Y,"animation_changed",D)))}),[D]),l((function(){Y&&z&&(null!==ze&&google.maps.event.removeListener(ze),Ae(google.maps.event.addListener(Y,"draggable_changed",z)))}),[z]),l((function(){Y&&A&&(null!==He&&google.maps.event.removeListener(He),Fe(google.maps.event.addListener(Y,"flat_changed",A)))}),[A]),l((function(){Y&&B&&(null!==We&&google.maps.event.removeListener(We),Ue(google.maps.event.addListener(Y,"icon_changed",B)))}),[B]),l((function(){Y&&H&&(null!==qe&&google.maps.event.removeListener(qe),Ge(google.maps.event.addListener(Y,"position_changed",H)))}),[H]),l((function(){Y&&F&&(null!==Ye&&google.maps.event.removeListener(Ye),Ze(google.maps.event.addListener(Y,"shape_changed",F)))}),[F]),l((function(){Y&&V&&(null!==Je&&google.maps.event.removeListener(Je),et(google.maps.event.addListener(Y,"title_changed",V)))}),[V]),l((function(){Y&&W&&(null!==nt&&google.maps.event.removeListener(nt),ot(google.maps.event.addListener(Y,"visible_changed",W)))}),[W]),l((function(){Y&&U&&(null!==it&&google.maps.event.removeListener(it),at(google.maps.event.addListener(Y,"zindex_changed",U)))}),[U]),l((function(){var e=VN(VN(VN({},n||SL),i?SL:{map:G}),{position:t}),o=new google.maps.Marker(e);return i?i.addMarker(o,!!a):o.setMap(G),t&&o.setPosition(t),void 0!==h&&o.setVisible(h),void 0!==c&&o.setDraggable(c),void 0!==g&&o.setClickable(g),"string"==typeof v&&o.setCursor(v),b&&o.setIcon(b),void 0!==y&&o.setLabel(y),void 0!==x&&o.setOpacity(x),w&&o.setShape(w),"string"==typeof C&&o.setTitle(C),"number"==typeof E&&o.setZIndex(E),k&&ee(google.maps.event.addListener(o,"dblclick",k)),$&&oe(google.maps.event.addListener(o,"dragend",$)),M&&ae(google.maps.event.addListener(o,"dragstart",M)),I&&ce(google.maps.event.addListener(o,"mousedown",I)),_&&pe(google.maps.event.addListener(o,"mouseout",_)),N&&ge(google.maps.event.addListener(o,"mouseover",N)),L&&be(google.maps.event.addListener(o,"mouseup",L)),j&&we(google.maps.event.addListener(o,"rightclick",j)),S&&Se(google.maps.event.addListener(o,"click",S)),O&&$e(google.maps.event.addListener(o,"drag",O)),R&&Pe(google.maps.event.addListener(o,"clickable_changed",R)),T&&Ie(google.maps.event.addListener(o,"cursor_changed",T)),D&&Te(google.maps.event.addListener(o,"animation_changed",D)),z&&Ae(google.maps.event.addListener(o,"draggable_changed",z)),A&&Fe(google.maps.event.addListener(o,"flat_changed",A)),B&&Ue(google.maps.event.addListener(o,"icon_changed",B)),H&&Ge(google.maps.event.addListener(o,"position_changed",H)),F&&Ze(google.maps.event.addListener(o,"shape_changed",F)),V&&et(google.maps.event.addListener(o,"title_changed",V)),W&&ot(google.maps.event.addListener(o,"visible_changed",W)),U&&at(google.maps.event.addListener(o,"zindex_changed",U)),Z(o),X&&X(o),function(){null!==J&&google.maps.event.removeListener(J),null!==ne&&google.maps.event.removeListener(ne),null!==ie&&google.maps.event.removeListener(ie),null!==le&&google.maps.event.removeListener(le),null!==de&&google.maps.event.removeListener(de),null!==fe&&google.maps.event.removeListener(fe),null!==ve&&google.maps.event.removeListener(ve),null!==xe&&google.maps.event.removeListener(xe),null!==Ee&&google.maps.event.removeListener(Ee),null!==_e&&google.maps.event.removeListener(_e),null!==Le&&google.maps.event.removeListener(Le),null!==Re&&google.maps.event.removeListener(Re),null!==ze&&google.maps.event.removeListener(ze),null!==He&&google.maps.event.removeListener(He),null!==We&&google.maps.event.removeListener(We),null!==qe&&google.maps.event.removeListener(qe),null!==Je&&google.maps.event.removeListener(Je),null!==nt&&google.maps.event.removeListener(nt),null!==it&&google.maps.event.removeListener(it),q&&q(o),i?i.removeMarker(o,!!a):o&&o.setMap(null)}}),[]);var st=u((function(){return s?p.map(s,(function(e){return o(e)?m(e,{anchor:Y}):e})):null}),[s,Y]);return P.jsx(P.Fragment,{children:st})||null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t}FN(t,e),t.prototype.componentDidMount=function(){var e=VN(VN(VN({},this.props.options||SL),this.props.clusterer?SL:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(e),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=nL({updaterMap:EL,eventMap:CL,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},t.prototype.componentDidUpdate=function(e){this.marker&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:EL,eventMap:CL,prevProps:e,nextProps:this.props,instance:this.marker}))},t.prototype.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),tL(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},t.prototype.render=function(){var e=this,t=null;return this.props.children&&(t=p.map(this.props.children,(function(t){return o(t)?m(t,{anchor:e.marker}):t}))),t||null},t.contextType=ZN}(b);var kL=function(){function e(t,n){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(t.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return e.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},e.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},e.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var t=this.cluster.getClusterer();if(google.maps.event.trigger(t,"click",this.cluster),google.maps.event.trigger(t,"clusterclick",this.cluster),t.getZoomOnClick()){var n=t.getMaxZoom(),o=this.cluster.getBounds(),r=t.getMap();null!==r&&"fitBounds"in r&&r.fitBounds(o),this.timeOut=window.setTimeout((function(){var e=t.getMap();if(null!==e){"fitBounds"in e&&e.fitBounds(o);var r=e.getZoom()||0;null!==n&&r>n&&e.setZoom(n+1)}}),100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},e.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},e.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},e.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),null===(e=this.getPanes())||void 0===e||e.overlayMouseTarget.appendChild(this.div);var t=this.getMap();null!==t&&(this.boundsChangedListener=google.maps.event.addListener(t,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),null!==this.timeOut&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},e.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=null!==e?"".concat(e.y,"px"):"0",this.div.style.left=null!==e?"".concat(e.x,"px"):"0"}},e.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.prototype.show=function(){var e,t,n,o,r,i;if(this.div&&this.center){var a=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,s=this.backgroundPosition.split(" "),l=parseInt((null===(e=s[0])||void 0===e?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),c=parseInt((null===(t=s[1])||void 0===t?void 0:t.replace(/^\s+|\s+$/g,""))||"0",10),u=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(null!==u?"".concat(u.y,"px"):"0","; left: ").concat(null!==u?"".concat(u.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var d=document.createElement("img");d.alt=a,d.src=this.url,d.width=this.width,d.height=this.height,d.setAttribute("style","position: absolute; top: ".concat(c,"px; left: ").concat(l,"px")),this.cluster.getClusterer().enableRetinaIcons||(d.style.clip="rect(-".concat(c,"px, -").concat(l+this.width,"px, -").concat(c+this.height,", -").concat(l,")"));var p=document.createElement("div");p.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),(null===(n=this.sums)||void 0===n?void 0:n.text)&&(p.innerText="".concat(null===(o=this.sums)||void 0===o?void 0:o.text)),(null===(r=this.sums)||void 0===r?void 0:r.html)&&(p.innerHTML="".concat(null===(i=this.sums)||void 0===i?void 0:i.html)),this.div.innerHTML="",this.div.appendChild(d),this.div.appendChild(p),this.div.title=a,this.div.style.display=""}this.visible=!0},e.prototype.useStyle=function(e){this.sums=e;var t=this.cluster.getClusterer().getStyles(),n=t[Math.min(t.length-1,Math.max(0,e.index-1))];n&&(this.url=n.url,this.height=n.height,this.width=n.width,n.className&&(this.className="".concat(this.clusterClassName," ").concat(n.className)),this.anchorText=n.anchorText||[0,0],this.anchorIcon=n.anchorIcon||[this.height/2,this.width/2],this.textColor=n.textColor||"black",this.textSize=n.textSize||11,this.textDecoration=n.textDecoration||"none",this.fontWeight=n.fontWeight||"bold",this.fontStyle=n.fontStyle||"normal",this.fontFamily=n.fontFamily||"Arial,sans-serif",this.backgroundPosition=n.backgroundPosition||"0 0")},e.prototype.setCenter=function(e){this.center=e},e.prototype.getPosFromLatLng=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return null!==t&&(t.x-=this.anchorIcon[1],t.y-=this.anchorIcon[0]),t},e}(),OL=function(){function e(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new kL(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return e.prototype.getSize=function(){return this.markers.length},e.prototype.getMarkers=function(){return this.markers},e.prototype.getCenter=function(){return this.center},e.prototype.getMap=function(){return this.map},e.prototype.getClusterer=function(){return this.markerClusterer},e.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),t=0,n=this.getMarkers();t<n.length;t++){var o=n[t].getPosition();o&&e.extend(o)}return e},e.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},e.prototype.addMarker=function(e){var t,n;if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter&&(n=e.getPosition())){var o=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(o-1)+n.lat())/o,(this.center.lng()*(o-1)+n.lng())/o),this.calculateBounds()}}else(n=e.getPosition())&&(this.center=n,this.calculateBounds());e.isAdded=!0,this.markers.push(e);var r=this.markers.length,i=this.markerClusterer.getMaxZoom(),a=null===(t=this.map)||void 0===t?void 0:t.getZoom();if(null!==i&&void 0!==a&&a>i)e.getMap()!==this.map&&e.setMap(this.map);else if(r<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(r===this.minClusterSize)for(var s=0,l=this.markers;s<l.length;s++){l[s].setMap(null)}else e.setMap(null);return!0},e.prototype.isMarkerInClusterBounds=function(e){if(null!==this.bounds){var t=e.getPosition();if(t)return this.bounds.contains(t)}return!1},e.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},e.prototype.updateIcon=function(){var e,t=this.markers.length,n=this.markerClusterer.getMaxZoom(),o=null===(e=this.map)||void 0===e?void 0:e.getZoom();null!==n&&void 0!==o&&o>n||t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},e.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var t=0;t<this.markers.length;t++)if(e===this.markers[t])return!0;return!1},e}();function $L(e,t){var n=e.length,o=n.toString().length,r=Math.min(o,t);return{text:n.toString(),index:r,title:""}}var ML=[53,56,66,78,90],_L=function(){function e(t,n,o){void 0===n&&(n=[]),void 0===o&&(o={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createClusters=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(e,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=o.gridSize||60,this.minClusterSize=o.minimumClusterSize||2,this.maxZoom=o.maxZoom||null,this.styles=o.styles||[],this.title=o.title||"",this.zoomOnClick=!0,void 0!==o.zoomOnClick&&(this.zoomOnClick=o.zoomOnClick),this.averageCenter=!1,void 0!==o.averageCenter&&(this.averageCenter=o.averageCenter),this.ignoreHidden=!1,void 0!==o.ignoreHidden&&(this.ignoreHidden=o.ignoreHidden),this.enableRetinaIcons=!1,void 0!==o.enableRetinaIcons&&(this.enableRetinaIcons=o.enableRetinaIcons),this.imagePath=o.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=o.imageExtension||"png",this.imageSizes=o.imageSizes||ML,this.calculator=o.calculator||$L,this.batchSize=o.batchSize||2e3,this.batchSizeIE=o.batchSizeIE||500,this.clusterClass=o.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(t)}return e.prototype.onZoomChanged=function(){var e,t;this.resetViewport(!1),(null===(e=this.getMap())||void 0===e?void 0:e.getZoom())!==(this.get("minZoom")||0)&&(null===(t=this.getMap())||void 0===t?void 0:t.getZoom())!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")},e.prototype.onIdle=function(){this.redraw()},e.prototype.onAdd=function(){var e=this.getMap();this.activeMap=e,this.ready=!0,this.repaint(),null!==e&&(this.listeners=[google.maps.event.addListener(e,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(e,"idle",this.onIdle)])},e.prototype.onRemove=function(){for(var e=0,t=this.markers;e<t.length;e++){var n=t[e];n.getMap()!==this.activeMap&&n.setMap(this.activeMap)}for(var o=0,r=this.clusters;o<r.length;o++){r[o].remove()}this.clusters=[];for(var i=0,a=this.listeners;i<a.length;i++){var s=a[i];google.maps.event.removeListener(s)}this.listeners=[],this.activeMap=null,this.ready=!1},e.prototype.draw=function(){},e.prototype.getMap=function(){return null},e.prototype.getPanes=function(){return null},e.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},e.prototype.setMap=function(){},e.prototype.addListener=function(){return{remove:function(){}}},e.prototype.bindTo=function(){},e.prototype.get=function(){},e.prototype.notify=function(){},e.prototype.set=function(){},e.prototype.setValues=function(){},e.prototype.unbind=function(){},e.prototype.unbindAll=function(){},e.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:"".concat(this.imagePath+(e+1),".").concat(this.imageExtension),height:this.imageSizes[e]||0,width:this.imageSizes[e]||0})},e.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,n=0,o=e;n<o.length;n++){var r=o[n].getPosition();r&&t.extend(r)}var i=this.getMap();null!==i&&"fitBounds"in i&&i.fitBounds(t)},e.prototype.getGridSize=function(){return this.gridSize},e.prototype.setGridSize=function(e){this.gridSize=e},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize},e.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.setMaxZoom=function(e){this.maxZoom=e},e.prototype.getStyles=function(){return this.styles},e.prototype.setStyles=function(e){this.styles=e},e.prototype.getTitle=function(){return this.title},e.prototype.setTitle=function(e){this.title=e},e.prototype.getZoomOnClick=function(){return this.zoomOnClick},e.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},e.prototype.getAverageCenter=function(){return this.averageCenter},e.prototype.setAverageCenter=function(e){this.averageCenter=e},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden},e.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},e.prototype.getImageExtension=function(){return this.imageExtension},e.prototype.setImageExtension=function(e){this.imageExtension=e},e.prototype.getImagePath=function(){return this.imagePath},e.prototype.setImagePath=function(e){this.imagePath=e},e.prototype.getImageSizes=function(){return this.imageSizes},e.prototype.setImageSizes=function(e){this.imageSizes=e},e.prototype.getCalculator=function(){return this.calculator},e.prototype.setCalculator=function(e){this.calculator=e},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE},e.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},e.prototype.getClusterClass=function(){return this.clusterClass},e.prototype.setClusterClass=function(e){this.clusterClass=e},e.prototype.getMarkers=function(){return this.markers},e.prototype.getTotalMarkers=function(){return this.markers.length},e.prototype.getClusters=function(){return this.clusters},e.prototype.getTotalClusters=function(){return this.clusters.length},e.prototype.addMarker=function(e,t){this.pushMarkerTo(e),t||this.redraw()},e.prototype.addMarkers=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];o&&this.pushMarkerTo(o)}t||this.redraw()},e.prototype.pushMarkerTo=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",(function(){t.ready&&(e.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers.push(e)},e.prototype.removeMarker_=function(e){var t=-1;if(this.markers.indexOf)t=this.markers.indexOf(e);else for(var n=0;n<this.markers.length;n++)if(e===this.markers[n]){t=n;break}return-1!==t&&(e.setMap(null),this.markers.splice(t,1),!0)},e.prototype.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},e.prototype.removeMarkers=function(e,t){for(var n=!1,o=0,r=e;o<r.length;o++){var i=r[o];n=n||this.removeMarker_(i)}return!t&&n&&this.repaint(),n},e.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},e.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var t=0,n=e;t<n.length;t++){n[t].remove()}}),0)},e.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));null!==n&&(n.x+=this.gridSize,n.y-=this.gridSize);var o=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));if(null!==o&&(o.x-=this.gridSize,o.y+=this.gridSize),null!==n){var r=t.fromDivPixelToLatLng(n);null!==r&&e.extend(r)}if(null!==o){var i=t.fromDivPixelToLatLng(o);null!==i&&e.extend(i)}return e},e.prototype.redraw=function(){this.createClusters(0)},e.prototype.resetViewport=function(e){for(var t=0,n=this.clusters;t<n.length;t++){n[t].remove()}this.clusters=[];for(var o=0,r=this.markers;o<r.length;o++){var i=r[o];i.isAdded=!1,e&&i.setMap(null)}},e.prototype.distanceBetweenPoints=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,o=(t.lng()-e.lng())*Math.PI/180,r=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2);return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371},e.prototype.isMarkerInBounds=function(e,t){var n=e.getPosition();return!!n&&t.contains(n)},e.prototype.addToClosestCluster=function(e){for(var t,n=4e4,o=null,r=0,i=this.clusters;r<i.length;r++){var a=(t=i[r]).getCenter(),s=e.getPosition();if(a&&s){var l=this.distanceBetweenPoints(a,s);l<n&&(n=l,o=t)}}o&&o.isMarkerInClusterBounds(e)?o.addMarker(e):((t=new OL(this)).addMarker(e),this.clusters.push(t))},e.prototype.createClusters=function(e){var t=this;if(this.ready){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var n=this.getMap(),o=(null!==n&&"getBounds"in n?n.getBounds():null),r=((null==n?void 0:n.getZoom())||0)>3?new google.maps.LatLngBounds(null==o?void 0:o.getSouthWest(),null==o?void 0:o.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),i=this.getExtendedBounds(r),a=Math.min(e+this.batchSize,this.markers.length),s=e;s<a;s++){var l=this.markers[s];l&&!l.isAdded&&this.isMarkerInBounds(l,i)&&(!this.ignoreHidden||this.ignoreHidden&&l.getVisible())&&this.addToClosestCluster(l)}if(a<this.markers.length)this.timerRefStatic=window.setTimeout((function(){t.createClusters(a)}),0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);for(var c=0,u=this.clusters;c<u.length;c++){u[c].updateIcon()}}}},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype){var n=t;this.prototype[n]=e.prototype[n]}return this}.apply(e,[t])},e}(),PL={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},NL={averageCenter:function(e,t){e.setAverageCenter(t)},batchSizeIE:function(e,t){e.setBatchSizeIE(t)},calculator:function(e,t){e.setCalculator(t)},clusterClass:function(e,t){e.setClusterClass(t)},enableRetinaIcons:function(e,t){e.setEnableRetinaIcons(t)},gridSize:function(e,t){e.setGridSize(t)},ignoreHidden:function(e,t){e.setIgnoreHidden(t)},imageExtension:function(e,t){e.setImageExtension(t)},imagePath:function(e,t){e.setImagePath(t)},imageSizes:function(e,t){e.setImageSizes(t)},maxZoom:function(e,t){e.setMaxZoom(t)},minimumClusterSize:function(e,t){e.setMinimumClusterSize(t)},styles:function(e,t){e.setStyles(t)},title:function(e,t){e.setTitle(t)},zoomOnClick:function(e,t){e.setZoomOnClick(t)}},LL={};function IL(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}v((function(e){var t=e.children,n=e.options,o=e.averageCenter,i=e.batchSizeIE,a=e.calculator,s=e.clusterClass,c=e.enableRetinaIcons,u=e.gridSize,p=e.ignoreHidden,h=e.imageExtension,f=e.imagePath,g=e.imageSizes,m=e.maxZoom,v=e.minimumClusterSize,b=e.styles,y=e.title,x=e.zoomOnClick,w=e.onClick,C=e.onClusteringBegin,E=e.onClusteringEnd,S=e.onMouseOver,k=e.onMouseOut,O=e.onLoad,$=e.onUnmount,M=d(null),_=M[0],P=M[1],N=r(ZN),L=d(null),I=L[0],j=L[1],R=d(null),T=R[0],D=R[1],z=d(null),A=z[0],B=z[1],H=d(null),F=H[0],V=H[1],W=d(null),U=W[0],X=W[1];return l((function(){_&&k&&(null!==F&&google.maps.event.removeListener(F),V(google.maps.event.addListener(_,PL.onMouseOut,k)))}),[k]),l((function(){_&&S&&(null!==U&&google.maps.event.removeListener(U),X(google.maps.event.addListener(_,PL.onMouseOver,S)))}),[S]),l((function(){_&&w&&(null!==I&&google.maps.event.removeListener(I),j(google.maps.event.addListener(_,PL.onClick,w)))}),[w]),l((function(){_&&C&&(null!==T&&google.maps.event.removeListener(T),D(google.maps.event.addListener(_,PL.onClusteringBegin,C)))}),[C]),l((function(){_&&E&&(null!==A&&google.maps.event.removeListener(A),D(google.maps.event.addListener(_,PL.onClusteringEnd,E)))}),[E]),l((function(){void 0!==o&&null!==_&&NL.averageCenter(_,o)}),[_,o]),l((function(){void 0!==i&&null!==_&&NL.batchSizeIE(_,i)}),[_,i]),l((function(){void 0!==a&&null!==_&&NL.calculator(_,a)}),[_,a]),l((function(){void 0!==s&&null!==_&&NL.clusterClass(_,s)}),[_,s]),l((function(){void 0!==c&&null!==_&&NL.enableRetinaIcons(_,c)}),[_,c]),l((function(){void 0!==u&&null!==_&&NL.gridSize(_,u)}),[_,u]),l((function(){void 0!==p&&null!==_&&NL.ignoreHidden(_,p)}),[_,p]),l((function(){void 0!==h&&null!==_&&NL.imageExtension(_,h)}),[_,h]),l((function(){void 0!==f&&null!==_&&NL.imagePath(_,f)}),[_,f]),l((function(){void 0!==g&&null!==_&&NL.imageSizes(_,g)}),[_,g]),l((function(){void 0!==m&&null!==_&&NL.maxZoom(_,m)}),[_,m]),l((function(){void 0!==v&&null!==_&&NL.minimumClusterSize(_,v)}),[_,v]),l((function(){void 0!==b&&null!==_&&NL.styles(_,b)}),[_,b]),l((function(){void 0!==y&&null!==_&&NL.title(_,y)}),[_,y]),l((function(){void 0!==x&&null!==_&&NL.zoomOnClick(_,x)}),[_,x]),l((function(){if(N){var e=VN({},n||LL),t=new _L(N,[],e);return o&&NL.averageCenter(t,o),i&&NL.batchSizeIE(t,i),a&&NL.calculator(t,a),s&&NL.clusterClass(t,s),c&&NL.enableRetinaIcons(t,c),u&&NL.gridSize(t,u),p&&NL.ignoreHidden(t,p),h&&NL.imageExtension(t,h),f&&NL.imagePath(t,f),g&&NL.imageSizes(t,g),m&&NL.maxZoom(t,m),v&&NL.minimumClusterSize(t,v),b&&NL.styles(t,b),y&&NL.title(t,y),x&&NL.zoomOnClick(t,x),k&&V(google.maps.event.addListener(t,PL.onMouseOut,k)),S&&X(google.maps.event.addListener(t,PL.onMouseOver,S)),w&&j(google.maps.event.addListener(t,PL.onClick,w)),C&&D(google.maps.event.addListener(t,PL.onClusteringBegin,C)),E&&B(google.maps.event.addListener(t,PL.onClusteringEnd,E)),P(t),O&&O(t),function(){null!==F&&google.maps.event.removeListener(F),null!==U&&google.maps.event.removeListener(U),null!==I&&google.maps.event.removeListener(I),null!==T&&google.maps.event.removeListener(T),null!==A&&google.maps.event.removeListener(A),$&&$(t)}}}),[]),null!==_&&t(_)||null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={markerClusterer:null},t.setClustererCallback=function(){null!==t.state.markerClusterer&&t.props.onLoad&&t.props.onLoad(t.state.markerClusterer)},t}FN(t,e),t.prototype.componentDidMount=function(){if(this.context){var e=new _L(this.context,[],this.props.options);this.registeredEvents=nL({updaterMap:NL,eventMap:PL,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{markerClusterer:e}}),this.setClustererCallback)}},t.prototype.componentDidUpdate=function(e){this.state.markerClusterer&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:NL,eventMap:PL,prevProps:e,nextProps:this.props,instance:this.state.markerClusterer}))},t.prototype.componentWillUnmount=function(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),tL(this.registeredEvents),this.state.markerClusterer.setMap(null))},t.prototype.render=function(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null},t.contextType=ZN}(b);var jL=function(){function e(t){void 0===t&&(t={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),void 0===t.visible&&(void 0===t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return e.prototype.createInfoBoxDiv=function(){var e=this;if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),"string"==typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var t=this.getPanes();if(null!==t&&t[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var n=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-n.left-n.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var o=0,r=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"];o<r.length;o++){var i=r[o];this.eventListeners.push(google.maps.event.addListener(this.div,i,IL))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",(function(){e.div&&(e.div.style.cursor="default")})))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",(function(t){t.returnValue=!1,t.preventDefault&&t.preventDefault(),e.enableEventPropagation||IL(t)})),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg=function(){var e="";return""!==this.closeBoxURL&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},e.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&""!==this.closeBoxURL?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},e.prototype.closeClickHandler=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},e.prototype.getCloseClickHandler=function(){return this.closeClickHandler},e.prototype.panBox=function(e){if(this.div&&!e){var t=this.getMap();if(t instanceof google.maps.Map){var n=0,o=0,r=t.getBounds();r&&!r.contains(this.position)&&t.setCenter(this.position);var i=t.getDiv(),a=i.offsetWidth,s=i.offsetHeight,l=this.pixelOffset.width,c=this.pixelOffset.height,u=this.div.offsetWidth,d=this.div.offsetHeight,p=this.infoBoxClearance.width,h=this.infoBoxClearance.height,f=this.getProjection().fromLatLngToContainerPixel(this.position);null!==f&&(f.x<-l+p?n=f.x+l-p:f.x+u+l+p>a&&(n=f.x+u+l+p-a),this.alignBottom?f.y<-c+h+d?o=f.y+c-h-d:f.y+c+h>s&&(o=f.y+c+h-s):f.y<-c+h?o=f.y+c-h:f.y+d+c+h>s&&(o=f.y+d+c+h-s)),0===n&&0===o||t.panBy(n,o)}}},e.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.div.style[t]=e[t]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var n=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*n+')"',this.div.style.filter="alpha(opacity="+100*n+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},e.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var t=this.div.ownerDocument,n=t&&t.defaultView?t.defaultView.getComputedStyle(this.div,""):null;n&&(e.top=parseInt(n.borderTopWidth||"",10)||0,e.bottom=parseInt(n.borderBottomWidth||"",10)||0,e.left=parseInt(n.borderLeftWidth||"",10)||0,e.right=parseInt(n.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var o=this.div.currentStyle;o&&(e.top=parseInt(o.borderTopWidth||"",10)||0,e.bottom=parseInt(o.borderBottomWidth||"",10)||0,e.left=parseInt(o.borderLeftWidth||"",10)||0,e.right=parseInt(o.borderRightWidth||"",10)||0)}return e},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection().fromLatLngToDivPixel(this.position);null!==e&&(this.div.style.left=e.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(e.y+this.pixelOffset.height)+"px":this.div.style.top=e.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},e.prototype.setOptions=function(e){void 0===e&&(e={}),void 0!==e.boxClass&&(this.boxClass=e.boxClass,this.setBoxStyle()),void 0!==e.boxStyle&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),void 0!==e.content&&this.setContent(e.content),void 0!==e.disableAutoPan&&(this.disableAutoPan=e.disableAutoPan),void 0!==e.maxWidth&&(this.maxWidth=e.maxWidth),void 0!==e.pixelOffset&&(this.pixelOffset=e.pixelOffset),void 0!==e.alignBottom&&(this.alignBottom=e.alignBottom),void 0!==e.position&&this.setPosition(e.position),void 0!==e.zIndex&&this.setZIndex(e.zIndex),void 0!==e.closeBoxMargin&&(this.closeBoxMargin=e.closeBoxMargin),void 0!==e.closeBoxURL&&(this.closeBoxURL=e.closeBoxURL),void 0!==e.infoBoxClearance&&(this.infoBoxClearance=e.infoBoxClearance),void 0!==e.isHidden&&(this.isHidden=e.isHidden),void 0!==e.visible&&(this.isHidden=!e.visible),void 0!==e.enableEventPropagation&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},e.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},e.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},e.prototype.getContent=function(){return this.content},e.prototype.getPosition=function(){return this.position},e.prototype.getZIndex=function(){return this.zIndex},e.prototype.getVisible=function(){var e=this.getMap();return null!=e&&!this.isHidden},e.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},e.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},e.prototype.open=function(e,t){var n=this;t&&(this.position=t.getPosition(),this.moveListener=google.maps.event.addListener(t,"position_changed",(function(){var e=t.getPosition();n.setPosition(e)})),this.mapListener=google.maps.event.addListener(t,"map_changed",(function(){n.setMap(t.map)}))),this.setMap(e),this.div&&this.panBox()},e.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,t=this.eventListeners;e<t.length;e++){var n=t[e];google.maps.event.removeListener(n)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)Object.prototype.hasOwnProperty.call(this,t)||(this.prototype[t]=e.prototype[t]);return this}.apply(e,[t])},e}(),RL={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},TL={options:function(e,t){e.setOptions(t)},position:function(e,t){t instanceof google.maps.LatLng?e.setPosition(t):e.setPosition(new google.maps.LatLng(t.lat,t.lng))},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},DL={};v((function(e){var t=e.children,n=e.anchor,o=e.options,i=e.position,s=e.zIndex,c=e.onCloseClick,u=e.onDomReady,h=e.onContentChanged,f=e.onPositionChanged,g=e.onZindexChanged,m=e.onLoad,v=e.onUnmount,b=r(ZN),y=d(null),x=y[0],C=y[1],E=d(null),S=E[0],k=E[1],O=d(null),$=O[0],M=O[1],_=d(null),P=_[0],N=_[1],L=d(null),I=L[0],j=L[1],R=d(null),T=R[0],D=R[1],z=a(null);return l((function(){b&&null!==x&&(x.close(),n?x.open(b,n):x.getPosition()&&x.open(b))}),[b,x,n]),l((function(){o&&null!==x&&x.setOptions(o)}),[x,o]),l((function(){if(i&&null!==x){var e=i instanceof google.maps.LatLng?i:new google.maps.LatLng(i.lat,i.lng);x.setPosition(e)}}),[i]),l((function(){"number"==typeof s&&null!==x&&x.setZIndex(s)}),[s]),l((function(){x&&c&&(null!==S&&google.maps.event.removeListener(S),k(google.maps.event.addListener(x,"closeclick",c)))}),[c]),l((function(){x&&u&&(null!==$&&google.maps.event.removeListener($),M(google.maps.event.addListener(x,"domready",u)))}),[u]),l((function(){x&&h&&(null!==P&&google.maps.event.removeListener(P),N(google.maps.event.addListener(x,"content_changed",h)))}),[h]),l((function(){x&&f&&(null!==I&&google.maps.event.removeListener(I),j(google.maps.event.addListener(x,"position_changed",f)))}),[f]),l((function(){x&&g&&(null!==T&&google.maps.event.removeListener(T),D(google.maps.event.addListener(x,"zindex_changed",g)))}),[g]),l((function(){if(b){var e=o||DL,t=e.position,r=WN(e,["position"]),i=void 0;!t||t instanceof google.maps.LatLng||(i=new google.maps.LatLng(t.lat,t.lng));var a=new jL(VN(VN({},r),i?{position:i}:{}));z.current=document.createElement("div"),C(a),c&&k(google.maps.event.addListener(a,"closeclick",c)),u&&M(google.maps.event.addListener(a,"domready",u)),h&&N(google.maps.event.addListener(a,"content_changed",h)),f&&j(google.maps.event.addListener(a,"position_changed",f)),g&&D(google.maps.event.addListener(a,"zindex_changed",g)),a.setContent(z.current),n?a.open(b,n):a.getPosition()?a.open(b):YN(!1,"You must provide either an anchor or a position prop for <InfoBox>."),m&&m(a)}return function(){null!==x&&(S&&google.maps.event.removeListener(S),P&&google.maps.event.removeListener(P),$&&google.maps.event.removeListener($),I&&google.maps.event.removeListener(I),T&&google.maps.event.removeListener(T),v&&v(x),x.close())}}),[]),z.current?w(p.only(t),z.current):null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=null,t.state={infoBox:null},t.open=function(e,n){n?null!==t.context&&e.open(t.context,n):e.getPosition()?null!==t.context&&e.open(t.context):YN(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},t.setInfoBoxCallback=function(){null!==t.state.infoBox&&null!==t.containerElement&&(t.state.infoBox.setContent(t.containerElement),t.open(t.state.infoBox,t.props.anchor),t.props.onLoad&&t.props.onLoad(t.state.infoBox))},t}FN(t,e),t.prototype.componentDidMount=function(){var e,t=this.props.options||{},n=t.position,o=WN(t,["position"]);!n||n instanceof google.maps.LatLng||(e=new google.maps.LatLng(n.lat,n.lng));var r=new jL(VN(VN({},o),e?{position:e}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=nL({updaterMap:TL,eventMap:RL,prevProps:{},nextProps:this.props,instance:r}),this.setState({infoBox:r},this.setInfoBoxCallback)},t.prototype.componentDidUpdate=function(e){var t=this.state.infoBox;null!==t&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:TL,eventMap:RL,prevProps:e,nextProps:this.props,instance:t}))},t.prototype.componentWillUnmount=function(){var e=this.props.onUnmount,t=this.state.infoBox;null!==t&&(e&&e(t),tL(this.registeredEvents),t.close())},t.prototype.render=function(){return this.containerElement?w(p.only(this.props.children),this.containerElement):null},t.contextType=ZN}(b);var zL=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},AL=qN(zL);const BL=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class HL{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,n]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const o=n>>4;if(1!==o)throw new Error(`Got v${o} data when expected v1.`);const r=BL[15&n];if(!r)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(e,2,1),[a]=new Uint32Array(e,4,1);return new HL(a,i,r,e)}constructor(e,t=64,n=Float64Array,o){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const r=BL.indexOf(this.ArrayType),i=2*e*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(r<0)throw new Error(`Unexpected typed array class: ${n}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+i+a+s),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+r]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return FL(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:a}=this,s=[0,r.length-1,0],l=[];for(;s.length;){const c=s.pop()||0,u=s.pop()||0,d=s.pop()||0;if(u-d<=a){for(let a=d;a<=u;a++){const s=i[2*a],c=i[2*a+1];s>=e&&s<=n&&c>=t&&c<=o&&l.push(r[a])}continue}const p=d+u>>1,h=i[2*p],f=i[2*p+1];h>=e&&h<=n&&f>=t&&f<=o&&l.push(r[p]),(0===c?e<=h:t<=f)&&(s.push(d),s.push(p-1),s.push(1-c)),(0===c?n>=h:o>=f)&&(s.push(p+1),s.push(u),s.push(1-c))}return l}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:r,nodeSize:i}=this,a=[0,o.length-1,0],s=[],l=n*n;for(;a.length;){const c=a.pop()||0,u=a.pop()||0,d=a.pop()||0;if(u-d<=i){for(let n=d;n<=u;n++)XL(r[2*n],r[2*n+1],e,t)<=l&&s.push(o[n]);continue}const p=d+u>>1,h=r[2*p],f=r[2*p+1];XL(h,f,e,t)<=l&&s.push(o[p]),(0===c?e-n<=h:t-n<=f)&&(a.push(d),a.push(p-1),a.push(1-c)),(0===c?e+n>=h:t+n>=f)&&(a.push(p+1),a.push(u),a.push(1-c))}return s}}function FL(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;VL(e,t,a,o,r,i),FL(e,t,n,o,a-1,1-i),FL(e,t,n,a+1,r,1-i)}function VL(e,t,n,o,r,i){for(;r>o;){if(r-o>600){const a=r-o+1,s=n-o+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(s-a/2<0?-1:1);VL(e,t,n,Math.max(o,Math.floor(n-s*c/a+u)),Math.min(r,Math.floor(n+(a-s)*c/a+u)),i)}const a=t[2*n+i];let s=o,l=r;for(WL(e,t,o,n),t[2*r+i]>a&&WL(e,t,o,r);s<l;){for(WL(e,t,s,l),s++,l--;t[2*s+i]<a;)s++;for(;t[2*l+i]>a;)l--}t[2*o+i]===a?WL(e,t,o,l):(l++,WL(e,t,l,r)),l<=n&&(o=l+1),n<=l&&(r=l-1)}}function WL(e,t,n,o){UL(e,n,o),UL(t,2*n,2*o),UL(t,2*n+1,2*o+1)}function UL(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function XL(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const qL={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},GL=Math.fround||(KL=new Float32Array(1),e=>(KL[0]=+e,KL[0]));var KL;const YL=3,ZL=5,QL=6;class JL{constructor(e){this.options=Object.assign(Object.create(qL),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:n,maxZoom:o}=this.options;t&&console.time("total time");const r=`prepare ${e.length} points`;t&&console.time(r),this.points=e;const i=[];for(let t=0;t<e.length;t++){const n=e[t];if(!n.geometry)continue;const[o,r]=n.geometry.coordinates,a=GL(nI(o)),s=GL(oI(r));i.push(a,s,1/0,t,-1,1),this.options.reduce&&i.push(0)}let a=this.trees[o+1]=this._createTree(i);t&&console.timeEnd(r);for(let e=o;e>=n;e--){const n=+Date.now();a=this.trees[e]=this._createTree(this._cluster(a,e)),t&&console.log("z%d: %d clusters in %dms",e,a.numItems,+Date.now()-n)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[1]));let r=180===e[2]?180:((e[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,r=180;else if(n>r){const e=this.getClusters([n,o,180,i],t),a=this.getClusters([-180,o,r,i],t);return e.concat(a)}const a=this.trees[this._limitZoom(t)],s=a.range(nI(n),oI(i),nI(r),oI(o)),l=a.data,c=[];for(const e of s){const t=this.stride*e;c.push(l[t+ZL]>1?eI(l,t,this.clusterProps):this.points[l[t+YL]])}return c}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),o="No cluster with the specified id.",r=this.trees[n];if(!r)throw new Error(o);const i=r.data;if(t*this.stride>=i.length)throw new Error(o);const a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=i[t*this.stride],l=i[t*this.stride+1],c=r.within(s,l,a),u=[];for(const t of c){const n=t*this.stride;i[n+4]===e&&u.push(i[n+ZL]>1?eI(i,n,this.clusterProps):this.points[i[n+YL]])}if(0===u.length)throw new Error(o);return u}getLeaves(e,t,n){t=t||10,n=n||0;const o=[];return this._appendLeaves(o,e,t,n,0),o}getTile(e,t,n){const o=this.trees[this._limitZoom(e)],r=Math.pow(2,e),{extent:i,radius:a}=this.options,s=a/i,l=(n-s)/r,c=(n+1+s)/r,u={features:[]};return this._addTileFeatures(o.range((t-s)/r,l,(t+1+s)/r,c),o.data,t,n,r,u),0===t&&this._addTileFeatures(o.range(1-s/r,l,1,c),o.data,r,n,r,u),t===r-1&&this._addTileFeatures(o.range(0,l,s/r,c),o.data,-1,n,r,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,o,r){const i=this.getChildren(t);for(const t of i){const i=t.properties;if(i&&i.cluster?r+i.point_count<=o?r+=i.point_count:r=this._appendLeaves(e,i.cluster_id,n,o,r):r<o?r++:e.push(t),e.length===n)break}return r}_createTree(e){const t=new HL(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let n=0;n<e.length;n+=this.stride)t.add(e[n],e[n+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,n,o,r,i){for(const a of e){const e=a*this.stride,s=t[e+ZL]>1;let l,c,u;if(s)l=tI(t,e,this.clusterProps),c=t[e],u=t[e+1];else{const n=this.points[t[e+YL]];l=n.properties;const[o,r]=n.geometry.coordinates;c=nI(o),u=oI(r)}const d={type:1,geometry:[[Math.round(this.options.extent*(c*r-n)),Math.round(this.options.extent*(u*r-o))]],tags:l};let p;p=s||this.options.generateId?t[e+YL]:this.points[t[e+YL]].id,void 0!==p&&(d.id=p),i.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:n,extent:o,reduce:r,minPoints:i}=this.options,a=n/(o*Math.pow(2,t)),s=e.data,l=[],c=this.stride;for(let n=0;n<s.length;n+=c){if(s[n+2]<=t)continue;s[n+2]=t;const o=s[n],u=s[n+1],d=e.within(s[n],s[n+1],a),p=s[n+ZL];let h=p;for(const e of d){const n=e*c;s[n+2]>t&&(h+=s[n+ZL])}if(h>p&&h>=i){let e,i=o*p,a=u*p,f=-1;const g=(n/c<<5)+(t+1)+this.points.length;for(const o of d){const l=o*c;if(s[l+2]<=t)continue;s[l+2]=t;const u=s[l+ZL];i+=s[l]*u,a+=s[l+1]*u,s[l+4]=g,r&&(e||(e=this._map(s,n,!0),f=this.clusterProps.length,this.clusterProps.push(e)),r(e,this._map(s,l)))}s[n+4]=g,l.push(i/h,a/h,1/0,g,-1,h),r&&l.push(f)}else{for(let e=0;e<c;e++)l.push(s[n+e]);if(h>1)for(const e of d){const n=e*c;if(!(s[n+2]<=t)){s[n+2]=t;for(let e=0;e<c;e++)l.push(s[n+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+ZL]>1){const o=this.clusterProps[e[t+QL]];return n?Object.assign({},o):o}const o=this.points[e[t+YL]].properties,r=this.options.map(o);return n&&r===o?Object.assign({},r):r}}function eI(e,t,n){return{type:"Feature",id:e[t+YL],properties:tI(e,t,n),geometry:{type:"Point",coordinates:[(o=e[t],360*(o-.5)),rI(e[t+1])]}};var o}function tI(e,t,n){const o=e[t+ZL],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?Math.round(o/100)/10+"k":o,i=e[t+QL],a=-1===i?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+YL],point_count:o,point_count_abbreviated:r})}function nI(e){return e/360+.5}function oI(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function rI(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}
|
60
|
+
/*! *****************************************************************************
|
61
|
+
Copyright (c) Microsoft Corporation.
|
62
|
+
|
63
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
64
|
+
purpose with or without fee is hereby granted.
|
65
|
+
|
66
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
67
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
68
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
69
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
70
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
71
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
72
|
+
PERFORMANCE OF THIS SOFTWARE.
|
73
|
+
***************************************************************************** */class iI{static isAdvancedMarkerAvailable(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return!!this.isAdvancedMarker(e)||e.getVisible()}}class aI{constructor({markers:e,position:t}){this.markers=e,t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(0===this.markers.length&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const t of this.markers)e.extend(iI.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>iI.getVisible(e))).length}push(e){this.markers.push(e)}delete(){this.marker&&(iI.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class sI{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return lI(e)}}const lI=e=>e.map((e=>new aI({position:iI.getPosition(e),markers:[e]})));class cI extends sI{constructor(e){var{maxZoom:t,radius:n=60}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["maxZoom","radius"]);super({maxZoom:t}),this.state={zoom:-1},this.superCluster=new JL(Object.assign({maxZoom:this.maxZoom,radius:n},o))}calculate(e){let t=!1;const n={zoom:e.map.getZoom()};if(!AL(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const n=this.markers.map((e=>{const t=iI.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(n)}return t||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!AL(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster({map:e}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map((e=>this.transformCluster(e)))}transformCluster({geometry:{coordinates:[e,t]},properties:n}){if(n.cluster)return new aI({markers:this.superCluster.getLeaves(n.cluster_id,1/0).map((e=>e.properties.marker)),position:{lat:t,lng:e}});const o=n.marker;return new aI({markers:[o],position:iI.getPosition(o)})}}class uI{constructor(e,t){this.markers={sum:e.length};const n=t.map((e=>e.count)),o=n.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:o/t.length,sum:o,min:Math.min(...n),max:Math.max(...n)}}}}class dI{render({count:e,position:t},n,o){const r=`<svg fill="${e>Math.max(10,n.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text>\n</svg>`,i=`Cluster of ${e} markers`,a=Number(google.maps.Marker.MAX_ZINDEX)+e;if(iI.isAdvancedMarkerAvailable(o)){const e=(new DOMParser).parseFromString(r,"image/svg+xml").documentElement;e.setAttribute("transform","translate(0 25)");const n={map:o,position:t,zIndex:a,title:i,content:e};return new google.maps.marker.AdvancedMarkerElement(n)}const s={position:t,zIndex:a,title:i,icon:{url:`data:image/svg+xml;base64,${btoa(r)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(s)}}class pI{constructor(){!function(e,t){for(let n in t.prototype)e.prototype[n]=t.prototype[n]}(pI,google.maps.OverlayView)}}var hI;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(hI||(hI={}));const fI=(e,t,n)=>{n.fitBounds(t.bounds)};class gI extends pI{constructor({map:e,markers:t=[],algorithmOptions:n={},algorithm:o=new cI(n),renderer:r=new dI,onClusterClick:i=fI}){super(),this.markers=[...t],this.clusters=[],this.algorithm=o,this.renderer=r,this.onClusterClick=i,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){const n=this.markers.indexOf(e);return-1!==n&&(iI.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){let n=!1;return e.forEach((e=>{n=this.removeMarker(e,!0)||n})),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,hI.CLUSTERING_BEGIN,this);const{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(n||null==n){const e=new Set;for(const n of t)1==n.markers.length&&e.add(n.markers[0]);const n=[];for(const t of this.clusters)null!=t.marker&&(1==t.markers.length?e.has(t.marker)||iI.setMap(t.marker,null):n.push(t.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame((()=>n.forEach((e=>iI.setMap(e,null)))))}google.maps.event.trigger(this,hI.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>iI.setMap(e,null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){const e=new uI(this.markers,this.clusters),t=this.getMap();this.clusters.forEach((n=>{1===n.markers.length?n.marker=n.markers[0]:(n.marker=this.renderer.render(n,e,t),n.markers.forEach((e=>iI.setMap(e,null))),this.onClusterClick&&n.marker.addListener("click",(e=>{google.maps.event.trigger(this,hI.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)}))),iI.setMap(n.marker,t)}))}}function mI(e){var t=function(){YN(!!r,"useGoogleMap is React hook and requires React version 16.8+");var e=r(ZN);return YN(!!e,"useGoogleMap needs a GoogleMap available up in the tree"),e}(),n=d(null),o=n[0],i=n[1];return l((function(){if(t&&null===o){var n=new gI(VN(VN({},e),{map:t}));i(n)}}),[t]),o}v((function(e){var t=e.children,n=mI(e.options);return null!==n?t(n):null}));var vI={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},bI={options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},zIndex:function(e,t){e.setZIndex(t)}};v((function(e){var t=e.children,n=e.anchor,o=e.options,i=e.position,s=e.zIndex,c=e.onCloseClick,u=e.onDomReady,h=e.onContentChanged,f=e.onPositionChanged,g=e.onZindexChanged,m=e.onLoad,v=e.onUnmount,b=r(ZN),y=d(null),x=y[0],C=y[1],E=d(null),S=E[0],k=E[1],O=d(null),$=O[0],M=O[1],_=d(null),P=_[0],N=_[1],L=d(null),I=L[0],j=L[1],R=d(null),T=R[0],D=R[1],z=a(null);return l((function(){null!==x&&(x.close(),n?x.open(b,n):x.getPosition()&&x.open(b))}),[b,x,n]),l((function(){o&&null!==x&&x.setOptions(o)}),[x,o]),l((function(){i&&null!==x&&x.setPosition(i)}),[i]),l((function(){"number"==typeof s&&null!==x&&x.setZIndex(s)}),[s]),l((function(){x&&c&&(null!==S&&google.maps.event.removeListener(S),k(google.maps.event.addListener(x,"closeclick",c)))}),[c]),l((function(){x&&u&&(null!==$&&google.maps.event.removeListener($),M(google.maps.event.addListener(x,"domready",u)))}),[u]),l((function(){x&&h&&(null!==P&&google.maps.event.removeListener(P),N(google.maps.event.addListener(x,"content_changed",h)))}),[h]),l((function(){x&&f&&(null!==I&&google.maps.event.removeListener(I),j(google.maps.event.addListener(x,"position_changed",f)))}),[f]),l((function(){x&&g&&(null!==T&&google.maps.event.removeListener(T),D(google.maps.event.addListener(x,"zindex_changed",g)))}),[g]),l((function(){var e=new google.maps.InfoWindow(VN({},o||{}));return C(e),z.current=document.createElement("div"),c&&k(google.maps.event.addListener(e,"closeclick",c)),u&&M(google.maps.event.addListener(e,"domready",u)),h&&N(google.maps.event.addListener(e,"content_changed",h)),f&&j(google.maps.event.addListener(e,"position_changed",f)),g&&D(google.maps.event.addListener(e,"zindex_changed",g)),e.setContent(z.current),i&&e.setPosition(i),s&&e.setZIndex(s),n?e.open(b,n):e.getPosition()?e.open(b):YN(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),m&&m(e),function(){S&&google.maps.event.removeListener(S),P&&google.maps.event.removeListener(P),$&&google.maps.event.removeListener($),I&&google.maps.event.removeListener(I),T&&google.maps.event.removeListener(T),v&&v(e),e.close()}}),[]),z.current?w(p.only(t),z.current):null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=null,t.state={infoWindow:null},t.open=function(e,n){n?e.open(t.context,n):e.getPosition()?e.open(t.context):YN(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},t.setInfoWindowCallback=function(){null!==t.state.infoWindow&&null!==t.containerElement&&(t.state.infoWindow.setContent(t.containerElement),t.open(t.state.infoWindow,t.props.anchor),t.props.onLoad&&t.props.onLoad(t.state.infoWindow))},t}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.InfoWindow(VN({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=nL({updaterMap:bI,eventMap:vI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{infoWindow:e}}),this.setInfoWindowCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.infoWindow&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:bI,eventMap:vI,prevProps:e,nextProps:this.props,instance:this.state.infoWindow}))},t.prototype.componentWillUnmount=function(){null!==this.state.infoWindow&&(tL(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())},t.prototype.render=function(){return this.containerElement?w(p.only(this.props.children),this.containerElement):null},t.contextType=ZN}(b);var yI={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},xI={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},visible:function(e,t){e.setVisible(t)}},wI={};v((function(e){var t=e.options,n=e.draggable,o=e.editable,i=e.visible,a=e.path,s=e.onDblClick,c=e.onDragEnd,u=e.onDragStart,p=e.onMouseDown,h=e.onMouseMove,f=e.onMouseOut,g=e.onMouseOver,m=e.onMouseUp,v=e.onRightClick,b=e.onClick,y=e.onDrag,x=e.onLoad,w=e.onUnmount,C=r(ZN),E=d(null),S=E[0],k=E[1],O=d(null),$=O[0],M=O[1],_=d(null),P=_[0],N=_[1],L=d(null),I=L[0],j=L[1],R=d(null),T=R[0],D=R[1],z=d(null),A=z[0],B=z[1],H=d(null),F=H[0],V=H[1],W=d(null),U=W[0],X=W[1],q=d(null),G=q[0],K=q[1],Y=d(null),Z=Y[0],Q=Y[1],J=d(null),ee=J[0],te=J[1],ne=d(null),oe=ne[0],re=ne[1];return l((function(){null!==S&&S.setMap(C)}),[C]),l((function(){void 0!==t&&null!==S&&S.setOptions(t)}),[S,t]),l((function(){void 0!==n&&null!==S&&S.setDraggable(n)}),[S,n]),l((function(){void 0!==o&&null!==S&&S.setEditable(o)}),[S,o]),l((function(){void 0!==i&&null!==S&&S.setVisible(i)}),[S,i]),l((function(){void 0!==a&&null!==S&&S.setPath(a)}),[S,a]),l((function(){S&&s&&(null!==$&&google.maps.event.removeListener($),M(google.maps.event.addListener(S,"dblclick",s)))}),[s]),l((function(){S&&c&&(null!==P&&google.maps.event.removeListener(P),N(google.maps.event.addListener(S,"dragend",c)))}),[c]),l((function(){S&&u&&(null!==I&&google.maps.event.removeListener(I),j(google.maps.event.addListener(S,"dragstart",u)))}),[u]),l((function(){S&&p&&(null!==T&&google.maps.event.removeListener(T),D(google.maps.event.addListener(S,"mousedown",p)))}),[p]),l((function(){S&&h&&(null!==A&&google.maps.event.removeListener(A),B(google.maps.event.addListener(S,"mousemove",h)))}),[h]),l((function(){S&&f&&(null!==F&&google.maps.event.removeListener(F),V(google.maps.event.addListener(S,"mouseout",f)))}),[f]),l((function(){S&&g&&(null!==U&&google.maps.event.removeListener(U),X(google.maps.event.addListener(S,"mouseover",g)))}),[g]),l((function(){S&&m&&(null!==G&&google.maps.event.removeListener(G),K(google.maps.event.addListener(S,"mouseup",m)))}),[m]),l((function(){S&&v&&(null!==Z&&google.maps.event.removeListener(Z),Q(google.maps.event.addListener(S,"rightclick",v)))}),[v]),l((function(){S&&b&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener(S,"click",b)))}),[b]),l((function(){S&&y&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener(S,"drag",y)))}),[y]),l((function(){var e=new google.maps.Polyline(VN(VN({},t||wI),{map:C}));return a&&e.setPath(a),void 0!==i&&e.setVisible(i),void 0!==o&&e.setEditable(o),void 0!==n&&e.setDraggable(n),s&&M(google.maps.event.addListener(e,"dblclick",s)),c&&N(google.maps.event.addListener(e,"dragend",c)),u&&j(google.maps.event.addListener(e,"dragstart",u)),p&&D(google.maps.event.addListener(e,"mousedown",p)),h&&B(google.maps.event.addListener(e,"mousemove",h)),f&&V(google.maps.event.addListener(e,"mouseout",f)),g&&X(google.maps.event.addListener(e,"mouseover",g)),m&&K(google.maps.event.addListener(e,"mouseup",m)),v&&Q(google.maps.event.addListener(e,"rightclick",v)),b&&te(google.maps.event.addListener(e,"click",b)),y&&re(google.maps.event.addListener(e,"drag",y)),k(e),x&&x(e),function(){null!==$&&google.maps.event.removeListener($),null!==P&&google.maps.event.removeListener(P),null!==I&&google.maps.event.removeListener(I),null!==T&&google.maps.event.removeListener(T),null!==A&&google.maps.event.removeListener(A),null!==F&&google.maps.event.removeListener(F),null!==U&&google.maps.event.removeListener(U),null!==G&&google.maps.event.removeListener(G),null!==Z&&google.maps.event.removeListener(Z),null!==ee&&google.maps.event.removeListener(ee),w&&w(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={polyline:null},t.setPolylineCallback=function(){null!==t.state.polyline&&t.props.onLoad&&t.props.onLoad(t.state.polyline)},t}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Polyline(VN(VN({},this.props.options||{}),{map:this.context}));this.registeredEvents=nL({updaterMap:xI,eventMap:yI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polyline:e}}),this.setPolylineCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.polyline&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:xI,eventMap:yI,prevProps:e,nextProps:this.props,instance:this.state.polyline}))},t.prototype.componentWillUnmount=function(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),tL(this.registeredEvents),this.state.polyline.setMap(null))},t.prototype.render=function(){return null},t.contextType=ZN}(b);var CI={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},EI={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},paths:function(e,t){e.setPaths(t)},visible:function(e,t){e.setVisible(t)}};v((function(e){var t=e.options,n=e.draggable,o=e.editable,i=e.visible,a=e.path,s=e.paths,c=e.onDblClick,u=e.onDragEnd,p=e.onDragStart,h=e.onMouseDown,f=e.onMouseMove,g=e.onMouseOut,m=e.onMouseOver,v=e.onMouseUp,b=e.onRightClick,y=e.onClick,x=e.onDrag,w=e.onLoad,C=e.onUnmount,E=e.onEdit,S=r(ZN),k=d(null),O=k[0],$=k[1],M=d(null),_=M[0],P=M[1],N=d(null),L=N[0],I=N[1],j=d(null),R=j[0],T=j[1],D=d(null),z=D[0],A=D[1],B=d(null),H=B[0],F=B[1],V=d(null),W=V[0],U=V[1],X=d(null),q=X[0],G=X[1],K=d(null),Y=K[0],Z=K[1],Q=d(null),J=Q[0],ee=Q[1],te=d(null),ne=te[0],oe=te[1],re=d(null),ie=re[0],ae=re[1];return l((function(){null!==O&&O.setMap(S)}),[S]),l((function(){void 0!==t&&null!==O&&O.setOptions(t)}),[O,t]),l((function(){void 0!==n&&null!==O&&O.setDraggable(n)}),[O,n]),l((function(){void 0!==o&&null!==O&&O.setEditable(o)}),[O,o]),l((function(){void 0!==i&&null!==O&&O.setVisible(i)}),[O,i]),l((function(){void 0!==a&&null!==O&&O.setPath(a)}),[O,a]),l((function(){void 0!==s&&null!==O&&O.setPaths(s)}),[O,s]),l((function(){O&&c&&(null!==_&&google.maps.event.removeListener(_),P(google.maps.event.addListener(O,"dblclick",c)))}),[c]),l((function(){O&&(google.maps.event.addListener(O.getPath(),"insert_at",(function(){null==E||E(O)})),google.maps.event.addListener(O.getPath(),"set_at",(function(){null==E||E(O)})))}),[O,E]),l((function(){O&&u&&(null!==L&&google.maps.event.removeListener(L),I(google.maps.event.addListener(O,"dragend",u)))}),[u]),l((function(){O&&p&&(null!==R&&google.maps.event.removeListener(R),T(google.maps.event.addListener(O,"dragstart",p)))}),[p]),l((function(){O&&h&&(null!==z&&google.maps.event.removeListener(z),A(google.maps.event.addListener(O,"mousedown",h)))}),[h]),l((function(){O&&f&&(null!==H&&google.maps.event.removeListener(H),F(google.maps.event.addListener(O,"mousemove",f)))}),[f]),l((function(){O&&g&&(null!==W&&google.maps.event.removeListener(W),U(google.maps.event.addListener(O,"mouseout",g)))}),[g]),l((function(){O&&m&&(null!==q&&google.maps.event.removeListener(q),G(google.maps.event.addListener(O,"mouseover",m)))}),[m]),l((function(){O&&v&&(null!==Y&&google.maps.event.removeListener(Y),Z(google.maps.event.addListener(O,"mouseup",v)))}),[v]),l((function(){O&&b&&(null!==J&&google.maps.event.removeListener(J),ee(google.maps.event.addListener(O,"rightclick",b)))}),[b]),l((function(){O&&y&&(null!==ne&&google.maps.event.removeListener(ne),oe(google.maps.event.addListener(O,"click",y)))}),[y]),l((function(){O&&x&&(null!==ie&&google.maps.event.removeListener(ie),ae(google.maps.event.addListener(O,"drag",x)))}),[x]),l((function(){var e=new google.maps.Polygon(VN(VN({},t||{}),{map:S}));return a&&e.setPath(a),s&&e.setPaths(s),void 0!==i&&e.setVisible(i),void 0!==o&&e.setEditable(o),void 0!==n&&e.setDraggable(n),c&&P(google.maps.event.addListener(e,"dblclick",c)),u&&I(google.maps.event.addListener(e,"dragend",u)),p&&T(google.maps.event.addListener(e,"dragstart",p)),h&&A(google.maps.event.addListener(e,"mousedown",h)),f&&F(google.maps.event.addListener(e,"mousemove",f)),g&&U(google.maps.event.addListener(e,"mouseout",g)),m&&G(google.maps.event.addListener(e,"mouseover",m)),v&&Z(google.maps.event.addListener(e,"mouseup",v)),b&&ee(google.maps.event.addListener(e,"rightclick",b)),y&&oe(google.maps.event.addListener(e,"click",y)),x&&ae(google.maps.event.addListener(e,"drag",x)),$(e),w&&w(e),function(){null!==_&&google.maps.event.removeListener(_),null!==L&&google.maps.event.removeListener(L),null!==R&&google.maps.event.removeListener(R),null!==z&&google.maps.event.removeListener(z),null!==H&&google.maps.event.removeListener(H),null!==W&&google.maps.event.removeListener(W),null!==q&&google.maps.event.removeListener(q),null!==Y&&google.maps.event.removeListener(Y),null!==J&&google.maps.event.removeListener(J),null!==ne&&google.maps.event.removeListener(ne),C&&C(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={polygon:null},t.setPolygonCallback=function(){null!==t.state.polygon&&t.props.onLoad&&t.props.onLoad(t.state.polygon)},t}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Polygon(VN(VN({},this.props.options||{}),{map:this.context}));this.registeredEvents=nL({updaterMap:EI,eventMap:CI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polygon:e}}),this.setPolygonCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.polygon&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:EI,eventMap:CI,prevProps:e,nextProps:this.props,instance:this.state.polygon}))},t.prototype.componentWillUnmount=function(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),tL(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},t.prototype.render=function(){return null},t.contextType=ZN}(b);var SI={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},kI={bounds:function(e,t){e.setBounds(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},visible:function(e,t){e.setVisible(t)}};v((function(e){var t=e.options,n=e.bounds,o=e.draggable,i=e.editable,a=e.visible,s=e.onDblClick,c=e.onDragEnd,u=e.onDragStart,p=e.onMouseDown,h=e.onMouseMove,f=e.onMouseOut,g=e.onMouseOver,m=e.onMouseUp,v=e.onRightClick,b=e.onClick,y=e.onDrag,x=e.onBoundsChanged,w=e.onLoad,C=e.onUnmount,E=r(ZN),S=d(null),k=S[0],O=S[1],$=d(null),M=$[0],_=$[1],P=d(null),N=P[0],L=P[1],I=d(null),j=I[0],R=I[1],T=d(null),D=T[0],z=T[1],A=d(null),B=A[0],H=A[1],F=d(null),V=F[0],W=F[1],U=d(null),X=U[0],q=U[1],G=d(null),K=G[0],Y=G[1],Z=d(null),Q=Z[0],J=Z[1],ee=d(null),te=ee[0],ne=ee[1],oe=d(null),re=oe[0],ie=oe[1],ae=d(null),se=ae[0],le=ae[1];return l((function(){null!==k&&k.setMap(E)}),[E]),l((function(){void 0!==t&&null!==k&&k.setOptions(t)}),[k,t]),l((function(){void 0!==o&&null!==k&&k.setDraggable(o)}),[k,o]),l((function(){void 0!==i&&null!==k&&k.setEditable(i)}),[k,i]),l((function(){void 0!==a&&null!==k&&k.setVisible(a)}),[k,a]),l((function(){void 0!==n&&null!==k&&k.setBounds(n)}),[k,n]),l((function(){k&&s&&(null!==M&&google.maps.event.removeListener(M),_(google.maps.event.addListener(k,"dblclick",s)))}),[s]),l((function(){k&&c&&(null!==N&&google.maps.event.removeListener(N),L(google.maps.event.addListener(k,"dragend",c)))}),[c]),l((function(){k&&u&&(null!==j&&google.maps.event.removeListener(j),R(google.maps.event.addListener(k,"dragstart",u)))}),[u]),l((function(){k&&p&&(null!==D&&google.maps.event.removeListener(D),z(google.maps.event.addListener(k,"mousedown",p)))}),[p]),l((function(){k&&h&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(k,"mousemove",h)))}),[h]),l((function(){k&&f&&(null!==V&&google.maps.event.removeListener(V),W(google.maps.event.addListener(k,"mouseout",f)))}),[f]),l((function(){k&&g&&(null!==X&&google.maps.event.removeListener(X),q(google.maps.event.addListener(k,"mouseover",g)))}),[g]),l((function(){k&&m&&(null!==K&&google.maps.event.removeListener(K),Y(google.maps.event.addListener(k,"mouseup",m)))}),[m]),l((function(){k&&v&&(null!==Q&&google.maps.event.removeListener(Q),J(google.maps.event.addListener(k,"rightclick",v)))}),[v]),l((function(){k&&b&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(k,"click",b)))}),[b]),l((function(){k&&y&&(null!==re&&google.maps.event.removeListener(re),ie(google.maps.event.addListener(k,"drag",y)))}),[y]),l((function(){k&&x&&(null!==se&&google.maps.event.removeListener(se),le(google.maps.event.addListener(k,"bounds_changed",x)))}),[x]),l((function(){var e=new google.maps.Rectangle(VN(VN({},t||{}),{map:E}));return void 0!==a&&e.setVisible(a),void 0!==i&&e.setEditable(i),void 0!==o&&e.setDraggable(o),void 0!==n&&e.setBounds(n),s&&_(google.maps.event.addListener(e,"dblclick",s)),c&&L(google.maps.event.addListener(e,"dragend",c)),u&&R(google.maps.event.addListener(e,"dragstart",u)),p&&z(google.maps.event.addListener(e,"mousedown",p)),h&&H(google.maps.event.addListener(e,"mousemove",h)),f&&W(google.maps.event.addListener(e,"mouseout",f)),g&&q(google.maps.event.addListener(e,"mouseover",g)),m&&Y(google.maps.event.addListener(e,"mouseup",m)),v&&J(google.maps.event.addListener(e,"rightclick",v)),b&&ne(google.maps.event.addListener(e,"click",b)),y&&ie(google.maps.event.addListener(e,"drag",y)),x&&le(google.maps.event.addListener(e,"bounds_changed",x)),O(e),w&&w(e),function(){null!==M&&google.maps.event.removeListener(M),null!==N&&google.maps.event.removeListener(N),null!==j&&google.maps.event.removeListener(j),null!==D&&google.maps.event.removeListener(D),null!==B&&google.maps.event.removeListener(B),null!==V&&google.maps.event.removeListener(V),null!==X&&google.maps.event.removeListener(X),null!==K&&google.maps.event.removeListener(K),null!==Q&&google.maps.event.removeListener(Q),null!==te&&google.maps.event.removeListener(te),null!==re&&google.maps.event.removeListener(re),null!==se&&google.maps.event.removeListener(se),C&&C(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={rectangle:null},t.setRectangleCallback=function(){null!==t.state.rectangle&&t.props.onLoad&&t.props.onLoad(t.state.rectangle)},t}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Rectangle(VN(VN({},this.props.options||{}),{map:this.context}));this.registeredEvents=nL({updaterMap:kI,eventMap:SI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{rectangle:e}}),this.setRectangleCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.rectangle&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:kI,eventMap:SI,prevProps:e,nextProps:this.props,instance:this.state.rectangle}))},t.prototype.componentWillUnmount=function(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),tL(this.registeredEvents),this.state.rectangle.setMap(null))},t.prototype.render=function(){return null},t.contextType=ZN}(b);var OI={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},$I={center:function(e,t){e.setCenter(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},radius:function(e,t){e.setRadius(t)},visible:function(e,t){e.setVisible(t)}},MI={};v((function(e){var t=e.options,n=e.center,o=e.radius,i=e.draggable,a=e.editable,s=e.visible,c=e.onDblClick,u=e.onDragEnd,p=e.onDragStart,h=e.onMouseDown,f=e.onMouseMove,g=e.onMouseOut,m=e.onMouseOver,v=e.onMouseUp,b=e.onRightClick,y=e.onClick,x=e.onDrag,w=e.onCenterChanged,C=e.onRadiusChanged,E=e.onLoad,S=e.onUnmount,k=r(ZN),O=d(null),$=O[0],M=O[1],_=d(null),P=_[0],N=_[1],L=d(null),I=L[0],j=L[1],R=d(null),T=R[0],D=R[1],z=d(null),A=z[0],B=z[1],H=d(null),F=H[0],V=H[1],W=d(null),U=W[0],X=W[1],q=d(null),G=q[0],K=q[1],Y=d(null),Z=Y[0],Q=Y[1],J=d(null),ee=J[0],te=J[1],ne=d(null),oe=ne[0],re=ne[1],ie=d(null),ae=ie[0],se=ie[1],le=d(null),ce=le[0],ue=le[1],de=d(null),pe=de[0],he=de[1];return l((function(){null!==$&&$.setMap(k)}),[k]),l((function(){void 0!==t&&null!==$&&$.setOptions(t)}),[$,t]),l((function(){void 0!==i&&null!==$&&$.setDraggable(i)}),[$,i]),l((function(){void 0!==a&&null!==$&&$.setEditable(a)}),[$,a]),l((function(){void 0!==s&&null!==$&&$.setVisible(s)}),[$,s]),l((function(){"number"==typeof o&&null!==$&&$.setRadius(o)}),[$,o]),l((function(){void 0!==n&&null!==$&&$.setCenter(n)}),[$,n]),l((function(){$&&c&&(null!==P&&google.maps.event.removeListener(P),N(google.maps.event.addListener($,"dblclick",c)))}),[c]),l((function(){$&&u&&(null!==I&&google.maps.event.removeListener(I),j(google.maps.event.addListener($,"dragend",u)))}),[u]),l((function(){$&&p&&(null!==T&&google.maps.event.removeListener(T),D(google.maps.event.addListener($,"dragstart",p)))}),[p]),l((function(){$&&h&&(null!==A&&google.maps.event.removeListener(A),B(google.maps.event.addListener($,"mousedown",h)))}),[h]),l((function(){$&&f&&(null!==F&&google.maps.event.removeListener(F),V(google.maps.event.addListener($,"mousemove",f)))}),[f]),l((function(){$&&g&&(null!==U&&google.maps.event.removeListener(U),X(google.maps.event.addListener($,"mouseout",g)))}),[g]),l((function(){$&&m&&(null!==G&&google.maps.event.removeListener(G),K(google.maps.event.addListener($,"mouseover",m)))}),[m]),l((function(){$&&v&&(null!==Z&&google.maps.event.removeListener(Z),Q(google.maps.event.addListener($,"mouseup",v)))}),[v]),l((function(){$&&b&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener($,"rightclick",b)))}),[b]),l((function(){$&&y&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener($,"click",y)))}),[y]),l((function(){$&&x&&(null!==ae&&google.maps.event.removeListener(ae),se(google.maps.event.addListener($,"drag",x)))}),[x]),l((function(){$&&w&&(null!==ce&&google.maps.event.removeListener(ce),ue(google.maps.event.addListener($,"center_changed",w)))}),[y]),l((function(){$&&C&&(null!==pe&&google.maps.event.removeListener(pe),he(google.maps.event.addListener($,"radius_changed",C)))}),[C]),l((function(){var e=new google.maps.Circle(VN(VN({},t||MI),{map:k}));return"number"==typeof o&&e.setRadius(o),void 0!==n&&e.setCenter(n),"number"==typeof o&&e.setRadius(o),void 0!==s&&e.setVisible(s),void 0!==a&&e.setEditable(a),void 0!==i&&e.setDraggable(i),c&&N(google.maps.event.addListener(e,"dblclick",c)),u&&j(google.maps.event.addListener(e,"dragend",u)),p&&D(google.maps.event.addListener(e,"dragstart",p)),h&&B(google.maps.event.addListener(e,"mousedown",h)),f&&V(google.maps.event.addListener(e,"mousemove",f)),g&&X(google.maps.event.addListener(e,"mouseout",g)),m&&K(google.maps.event.addListener(e,"mouseover",m)),v&&Q(google.maps.event.addListener(e,"mouseup",v)),b&&te(google.maps.event.addListener(e,"rightclick",b)),y&&re(google.maps.event.addListener(e,"click",y)),x&&se(google.maps.event.addListener(e,"drag",x)),w&&ue(google.maps.event.addListener(e,"center_changed",w)),C&&he(google.maps.event.addListener(e,"radius_changed",C)),M(e),E&&E(e),function(){null!==P&&google.maps.event.removeListener(P),null!==I&&google.maps.event.removeListener(I),null!==T&&google.maps.event.removeListener(T),null!==A&&google.maps.event.removeListener(A),null!==F&&google.maps.event.removeListener(F),null!==U&&google.maps.event.removeListener(U),null!==G&&google.maps.event.removeListener(G),null!==Z&&google.maps.event.removeListener(Z),null!==ee&&google.maps.event.removeListener(ee),null!==oe&&google.maps.event.removeListener(oe),null!==ce&&google.maps.event.removeListener(ce),null!==pe&&google.maps.event.removeListener(pe),S&&S(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={circle:null},t.setCircleCallback=function(){null!==t.state.circle&&t.props.onLoad&&t.props.onLoad(t.state.circle)},t}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Circle(VN(VN({},this.props.options||{}),{map:this.context}));this.registeredEvents=nL({updaterMap:$I,eventMap:OI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{circle:e}}),this.setCircleCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.circle&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:$I,eventMap:OI,prevProps:e,nextProps:this.props,instance:this.state.circle}))},t.prototype.componentWillUnmount=function(){var e;null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),tL(this.registeredEvents),null===(e=this.state.circle)||void 0===e||e.setMap(null))},t.prototype.render=function(){return null},t.contextType=ZN}(b);var _I={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},PI={add:function(e,t){e.add(t)},addgeojson:function(e,t,n){e.addGeoJson(t,n)},contains:function(e,t){e.contains(t)},foreach:function(e,t){e.forEach(t)},loadgeojson:function(e,t,n,o){e.loadGeoJson(t,n,o)},overridestyle:function(e,t,n){e.overrideStyle(t,n)},remove:function(e,t){e.remove(t)},revertstyle:function(e,t){e.revertStyle(t)},controlposition:function(e,t){e.setControlPosition(t)},controls:function(e,t){e.setControls(t)},drawingmode:function(e,t){e.setDrawingMode(t)},map:function(e,t){e.setMap(t)},style:function(e,t){e.setStyle(t)},togeojson:function(e,t){e.toGeoJson(t)}};v((function(e){var t=e.options,n=e.onClick,o=e.onDblClick,i=e.onMouseDown,a=e.onMouseMove,s=e.onMouseOut,c=e.onMouseOver,u=e.onMouseUp,p=e.onRightClick,h=e.onAddFeature,f=e.onRemoveFeature,g=e.onRemoveProperty,m=e.onSetGeometry,v=e.onSetProperty,b=e.onLoad,y=e.onUnmount,x=r(ZN),w=d(null),C=w[0],E=w[1],S=d(null),k=S[0],O=S[1],$=d(null),M=$[0],_=$[1],P=d(null),N=P[0],L=P[1],I=d(null),j=I[0],R=I[1],T=d(null),D=T[0],z=T[1],A=d(null),B=A[0],H=A[1],F=d(null),V=F[0],W=F[1],U=d(null),X=U[0],q=U[1],G=d(null),K=G[0],Y=G[1],Z=d(null),Q=Z[0],J=Z[1],ee=d(null),te=ee[0],ne=ee[1],oe=d(null),re=oe[0],ie=oe[1],ae=d(null),se=ae[0],le=ae[1];return l((function(){null!==C&&C.setMap(x)}),[x]),l((function(){C&&o&&(null!==k&&google.maps.event.removeListener(k),O(google.maps.event.addListener(C,"dblclick",o)))}),[o]),l((function(){C&&i&&(null!==M&&google.maps.event.removeListener(M),_(google.maps.event.addListener(C,"mousedown",i)))}),[i]),l((function(){C&&a&&(null!==N&&google.maps.event.removeListener(N),L(google.maps.event.addListener(C,"mousemove",a)))}),[a]),l((function(){C&&s&&(null!==j&&google.maps.event.removeListener(j),R(google.maps.event.addListener(C,"mouseout",s)))}),[s]),l((function(){C&&c&&(null!==D&&google.maps.event.removeListener(D),z(google.maps.event.addListener(C,"mouseover",c)))}),[c]),l((function(){C&&u&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(C,"mouseup",u)))}),[u]),l((function(){C&&p&&(null!==V&&google.maps.event.removeListener(V),W(google.maps.event.addListener(C,"rightclick",p)))}),[p]),l((function(){C&&n&&(null!==X&&google.maps.event.removeListener(X),q(google.maps.event.addListener(C,"click",n)))}),[n]),l((function(){C&&h&&(null!==K&&google.maps.event.removeListener(K),Y(google.maps.event.addListener(C,"addfeature",h)))}),[h]),l((function(){C&&f&&(null!==Q&&google.maps.event.removeListener(Q),J(google.maps.event.addListener(C,"removefeature",f)))}),[f]),l((function(){C&&g&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(C,"removeproperty",g)))}),[g]),l((function(){C&&m&&(null!==re&&google.maps.event.removeListener(re),ie(google.maps.event.addListener(C,"setgeometry",m)))}),[m]),l((function(){C&&v&&(null!==se&&google.maps.event.removeListener(se),le(google.maps.event.addListener(C,"setproperty",v)))}),[v]),l((function(){if(null!==x){var e=new google.maps.Data(VN(VN({},t||{}),{map:x}));o&&O(google.maps.event.addListener(e,"dblclick",o)),i&&_(google.maps.event.addListener(e,"mousedown",i)),a&&L(google.maps.event.addListener(e,"mousemove",a)),s&&R(google.maps.event.addListener(e,"mouseout",s)),c&&z(google.maps.event.addListener(e,"mouseover",c)),u&&H(google.maps.event.addListener(e,"mouseup",u)),p&&W(google.maps.event.addListener(e,"rightclick",p)),n&&q(google.maps.event.addListener(e,"click",n)),h&&Y(google.maps.event.addListener(e,"addfeature",h)),f&&J(google.maps.event.addListener(e,"removefeature",f)),g&&ne(google.maps.event.addListener(e,"removeproperty",g)),m&&ie(google.maps.event.addListener(e,"setgeometry",m)),v&&le(google.maps.event.addListener(e,"setproperty",v)),E(e),b&&b(e)}return function(){C&&(null!==k&&google.maps.event.removeListener(k),null!==M&&google.maps.event.removeListener(M),null!==N&&google.maps.event.removeListener(N),null!==j&&google.maps.event.removeListener(j),null!==D&&google.maps.event.removeListener(D),null!==B&&google.maps.event.removeListener(B),null!==V&&google.maps.event.removeListener(V),null!==X&&google.maps.event.removeListener(X),null!==K&&google.maps.event.removeListener(K),null!==Q&&google.maps.event.removeListener(Q),null!==te&&google.maps.event.removeListener(te),null!==re&&google.maps.event.removeListener(re),null!==se&&google.maps.event.removeListener(se),y&&y(C),C.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={data:null},t.setDataCallback=function(){null!==t.state.data&&t.props.onLoad&&t.props.onLoad(t.state.data)},t}FN(t,e),t.prototype.componentDidMount=function(){if(null!==this.context){var e=new google.maps.Data(VN(VN({},this.props.options||{}),{map:this.context}));this.registeredEvents=nL({updaterMap:PI,eventMap:_I,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{data:e}}),this.setDataCallback)}},t.prototype.componentDidUpdate=function(e){null!==this.state.data&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:PI,eventMap:_I,prevProps:e,nextProps:this.props,instance:this.state.data}))},t.prototype.componentWillUnmount=function(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),tL(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},t.prototype.render=function(){return null},t.contextType=ZN}(b);var NI={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},LI={options:function(e,t){e.setOptions(t)},url:function(e,t){e.setUrl(t)},zIndex:function(e,t){e.setZIndex(t)}};function II(e,t){return"function"==typeof t?t(e.offsetWidth,e.offsetHeight):{x:0,y:0}}function jI(e,t){return new t(e.lat,e.lng)}function RI(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function TI(e,t,n,o){return void 0!==n?function(e,t,n){var o=e&&e.fromLatLngToDivPixel(n.getNorthEast()),r=e&&e.fromLatLngToDivPixel(n.getSouthWest());return o&&r?{left:"".concat(r.x+t.x,"px"),top:"".concat(o.y+t.y,"px"),width:"".concat(o.x-r.x-t.x,"px"),height:"".concat(r.y-o.y-t.y,"px")}:{left:"-9999px",top:"-9999px"}}(e,t,function(e,t,n){return e instanceof t?e:n(e,t)}(n,google.maps.LatLngBounds,RI)):function(e,t,n){var o=e&&e.fromLatLngToDivPixel(n);if(o){var r=o.x,i=o.y;return{left:"".concat(r+t.x,"px"),top:"".concat(i+t.y,"px")}}return{left:"-9999px",top:"-9999px"}}(e,t,function(e,t,n){return e instanceof t?e:n(e,t)}(o,google.maps.LatLng,jI))}function DI(e){return e?(e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng))+"":""}function zI(e){return e?(e instanceof google.maps.LatLngBounds?e:new google.maps.LatLngBounds(new google.maps.LatLng(e.south,e.east),new google.maps.LatLng(e.north,e.west)))+"":""}function AI(){}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={kmlLayer:null},t.setKmlLayerCallback=function(){null!==t.state.kmlLayer&&t.props.onLoad&&t.props.onLoad(t.state.kmlLayer)},t}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.KmlLayer(VN(VN({},this.props.options),{map:this.context}));this.registeredEvents=nL({updaterMap:LI,eventMap:NI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{kmlLayer:e}}),this.setKmlLayerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.kmlLayer&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:LI,eventMap:NI,prevProps:e,nextProps:this.props,instance:this.state.kmlLayer}))},t.prototype.componentWillUnmount=function(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),tL(this.registeredEvents),this.state.kmlLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=ZN}(b),v((function(e){var t=e.position,n=e.bounds,o=e.mapPaneName,i=e.zIndex,a=e.onLoad,s=e.onUnmount,c=e.getPixelPositionOffset,d=e.children,p=r(ZN),h=u((function(){var e=document.createElement("div");return e.style.position="absolute",e}),[]),f=u((function(){return function(e,t,n,o,r){var i=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.container=t,i.pane=n,i.position=o,i.bounds=r,i}return FN(t,e),t.prototype.onAdd=function(){var e,t=null===(e=this.getPanes())||void 0===e?void 0:e[this.pane];null==t||t.appendChild(this.container)},t.prototype.draw=function(){for(var e=TI(this.getProjection(),VN({},this.container?II(this.container,r):{x:0,y:0}),this.bounds,this.position),t=0,n=Object.entries(e);t<n.length;t++){var o=n[t],i=o[0],a=o[1];this.container.style[i]=a}},t.prototype.onRemove=function(){null!==this.container.parentNode&&this.container.parentNode.removeChild(this.container)},t}(google.maps.OverlayView);return new i(e,t,n,o)}(h,o,t,n,c)}),[h,o,t,n]);return l((function(){return null==a||a(f),null==f||f.setMap(p),function(){null==s||s(f),null==f||f.setMap(null)}}),[p,f]),l((function(){h.style.zIndex="".concat(i)}),[i,h]),y.createPortal(d,h)})),function(e){function t(t){var n=e.call(this,t)||this;n.state={paneEl:null,containerStyle:{position:"absolute"}},n.updatePane=function(){var e=n.props.mapPaneName,t=n.overlayView.getPanes();YN(!!e,"OverlayView requires props.mapPaneName but got %s",e),t?n.setState({paneEl:t[e]}):n.setState({paneEl:null})},n.onAdd=function(){var e,t;n.updatePane(),null===(t=(e=n.props).onLoad)||void 0===t||t.call(e,n.overlayView)},n.onPositionElement=function(){var e,t,o=TI(n.overlayView.getProjection(),VN({x:0,y:0},n.containerRef.current?II(n.containerRef.current,n.props.getPixelPositionOffset):{}),n.props.bounds,n.props.position),r=n.state.containerStyle,i=r.left,a=r.top,s=r.width,l=r.height;t={left:i,top:a,width:s,height:l},((e=o).left!==t.left||e.top!==t.top||e.width!==t.height||e.height!==t.height)&&n.setState({containerStyle:{top:o.top||0,left:o.left||0,width:o.width||0,height:o.height||0,position:"absolute"}})},n.draw=function(){n.onPositionElement()},n.onRemove=function(){var e,t;n.setState((function(){return{paneEl:null}})),null===(t=(e=n.props).onUnmount)||void 0===t||t.call(e,n.overlayView)},n.containerRef=h();var o=new google.maps.OverlayView;return o.onAdd=n.onAdd,o.draw=n.draw,o.onRemove=n.onRemove,n.overlayView=o,n}FN(t,e),t.prototype.componentDidMount=function(){this.overlayView.setMap(this.context)},t.prototype.componentDidUpdate=function(e){var t=DI(e.position),n=DI(this.props.position),o=zI(e.bounds),r=zI(this.props.bounds);t===n&&o===r||this.overlayView.draw(),e.mapPaneName!==this.props.mapPaneName&&this.updatePane()},t.prototype.componentWillUnmount=function(){this.overlayView.setMap(null)},t.prototype.render=function(){var e=this.state.paneEl;return e?y.createPortal(P.jsx("div",{ref:this.containerRef,style:this.state.containerStyle,children:p.only(this.props.children)}),e):null},t.FLOAT_PANE="floatPane",t.MAP_PANE="mapPane",t.MARKER_LAYER="markerLayer",t.OVERLAY_LAYER="overlayLayer",t.OVERLAY_MOUSE_TARGET="overlayMouseTarget",t.contextType=ZN}(b);var BI={onDblClick:"dblclick",onClick:"click"},HI={opacity:function(e,t){e.setOpacity(t)}};v((function(e){var t=e.url,n=e.bounds,o=e.options,i=e.visible,a=r(ZN),s=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east)),c=u((function(){return new google.maps.GroundOverlay(t,s,VN({},o))}),[]);return l((function(){null!==c&&c.setMap(a)}),[a]),l((function(){void 0!==t&&null!==c&&(c.set("url",t),c.setMap(a))}),[c,t]),l((function(){void 0!==i&&null!==c&&c.setOpacity(i?1:0)}),[c,i]),l((function(){var e=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east));void 0!==n&&null!==c&&(c.set("bounds",e),c.setMap(a))}),[c,n]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={groundOverlay:null},t.setGroundOverlayCallback=function(){null!==t.state.groundOverlay&&t.props.onLoad&&t.props.onLoad(t.state.groundOverlay)},t}FN(t,e),t.prototype.componentDidMount=function(){YN(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var e=new google.maps.GroundOverlay(this.props.url,this.props.bounds,VN(VN({},this.props.options),{map:this.context}));this.registeredEvents=nL({updaterMap:HI,eventMap:BI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{groundOverlay:e}}),this.setGroundOverlayCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.groundOverlay&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:HI,eventMap:BI,prevProps:e,nextProps:this.props,instance:this.state.groundOverlay}))},t.prototype.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},t.prototype.render=function(){return null},t.defaultProps={onLoad:AI},t.contextType=ZN}(b);var FI={},VI={data:function(e,t){e.setData(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)}};v((function(e){var t=e.data,n=e.onLoad,o=e.onUnmount,i=e.options,a=r(ZN),s=d(null),c=s[0],u=s[1];return l((function(){google.maps.visualization||YN(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)}),[]),l((function(){YN(!!t,"data property is required in HeatmapLayer %s",t)}),[t]),l((function(){null!==c&&c.setMap(a)}),[a]),l((function(){i&&null!==c&&c.setOptions(i)}),[c,i]),l((function(){var e=new google.maps.visualization.HeatmapLayer(VN(VN({},i||{}),{data:t,map:a}));return u(e),n&&n(e),function(){null!==c&&(o&&o(c),c.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={heatmapLayer:null},t.setHeatmapLayerCallback=function(){null!==t.state.heatmapLayer&&t.props.onLoad&&t.props.onLoad(t.state.heatmapLayer)},t}FN(t,e),t.prototype.componentDidMount=function(){YN(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),YN(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var e=new google.maps.visualization.HeatmapLayer(VN(VN({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=nL({updaterMap:VI,eventMap:FI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{heatmapLayer:e}}),this.setHeatmapLayerCallback)},t.prototype.componentDidUpdate=function(e){tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:VI,eventMap:FI,prevProps:e,nextProps:this.props,instance:this.state.heatmapLayer})},t.prototype.componentWillUnmount=function(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),tL(this.registeredEvents),this.state.heatmapLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=ZN}(b);var WI={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},UI={register:function(e,t,n){e.registerPanoProvider(t,n)},links:function(e,t){e.setLinks(t)},motionTracking:function(e,t){e.setMotionTracking(t)},options:function(e,t){e.setOptions(t)},pano:function(e,t){e.setPano(t)},position:function(e,t){e.setPosition(t)},pov:function(e,t){e.setPov(t)},visible:function(e,t){e.setVisible(t)},zoom:function(e,t){e.setZoom(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={streetViewPanorama:null},t.setStreetViewPanoramaCallback=function(){null!==t.state.streetViewPanorama&&t.props.onLoad&&t.props.onLoad(t.state.streetViewPanorama)},t}FN(t,e),t.prototype.componentDidMount=function(){var e,t,n=null!==(t=null===(e=this.context)||void 0===e?void 0:e.getStreetView())&&void 0!==t?t:null;this.registeredEvents=nL({updaterMap:UI,eventMap:WI,prevProps:{},nextProps:this.props,instance:n}),this.setState((function(){return{streetViewPanorama:n}}),this.setStreetViewPanoramaCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.streetViewPanorama&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:UI,eventMap:WI,prevProps:e,nextProps:this.props,instance:this.state.streetViewPanorama}))},t.prototype.componentWillUnmount=function(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),tL(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},t.prototype.render=function(){return null},t.contextType=ZN}(b),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={streetViewService:null},t.setStreetViewServiceCallback=function(){null!==t.state.streetViewService&&t.props.onLoad&&t.props.onLoad(t.state.streetViewService)},t}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:e}}),this.setStreetViewServiceCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},t.prototype.render=function(){return null},t.contextType=ZN}(b),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={directionsService:null},t.setDirectionsServiceCallback=function(){null!==t.state.directionsService&&t.props.onLoad&&t.props.onLoad(t.state.directionsService)},t}FN(t,e),t.prototype.componentDidMount=function(){YN(!!this.props.options,"DirectionsService expected options object as parameter, but got %s",this.props.options);var e=new google.maps.DirectionsService;this.setState((function(){return{directionsService:e}}),this.setDirectionsServiceCallback)},t.prototype.componentDidUpdate=function(){null!==this.state.directionsService&&this.state.directionsService.route(this.props.options,this.props.callback)},t.prototype.componentWillUnmount=function(){null!==this.state.directionsService&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},t.prototype.render=function(){return null}}(b);var XI={onDirectionsChanged:"directions_changed"},qI={directions:function(e,t){e.setDirections(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},panel:function(e,t){e.setPanel(t)},routeIndex:function(e,t){e.setRouteIndex(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={directionsRenderer:null},t.setDirectionsRendererCallback=function(){null!==t.state.directionsRenderer&&(t.state.directionsRenderer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.directionsRenderer))},t}FN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=nL({updaterMap:qI,eventMap:XI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{directionsRenderer:e}}),this.setDirectionsRendererCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.directionsRenderer&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:qI,eventMap:XI,prevProps:e,nextProps:this.props,instance:this.state.directionsRenderer}))},t.prototype.componentWillUnmount=function(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),tL(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},t.prototype.render=function(){return P.jsx(P.Fragment,{})},t.contextType=ZN}(b),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={distanceMatrixService:null},t.setDistanceMatrixServiceCallback=function(){null!==t.state.distanceMatrixService&&t.props.onLoad&&t.props.onLoad(t.state.distanceMatrixService)},t}FN(t,e),t.prototype.componentDidMount=function(){YN(!!this.props.options,"DistanceMatrixService expected options object as parameter, but go %s",this.props.options);var e=new google.maps.DistanceMatrixService;this.setState((function(){return{distanceMatrixService:e}}),this.setDistanceMatrixServiceCallback)},t.prototype.componentDidUpdate=function(){null!==this.state.distanceMatrixService&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},t.prototype.componentWillUnmount=function(){null!==this.state.distanceMatrixService&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},t.prototype.render=function(){return null}}(b);var GI={onPlacesChanged:"places_changed"},KI={bounds:function(e,t){e.setBounds(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=h(),t.state={searchBox:null},t.setSearchBoxCallback=function(){null!==t.state.searchBox&&t.props.onLoad&&t.props.onLoad(t.state.searchBox)},t}FN(t,e),t.prototype.componentDidMount=function(){if(YN(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){var e=this.containerElement.current.querySelector("input");if(null!==e){var t=new google.maps.places.SearchBox(e,this.props.options);this.registeredEvents=nL({updaterMap:KI,eventMap:GI,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{searchBox:t}}),this.setSearchBoxCallback)}}},t.prototype.componentDidUpdate=function(e){null!==this.state.searchBox&&(tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:KI,eventMap:GI,prevProps:e,nextProps:this.props,instance:this.state.searchBox}))},t.prototype.componentWillUnmount=function(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),tL(this.registeredEvents))},t.prototype.render=function(){return P.jsx("div",{ref:this.containerElement,children:p.only(this.props.children)})},t.contextType=ZN}(b);var YI={onPlaceChanged:"place_changed"},ZI={bounds:function(e,t){e.setBounds(t)},restrictions:function(e,t){e.setComponentRestrictions(t)},fields:function(e,t){e.setFields(t)},options:function(e,t){e.setOptions(t)},types:function(e,t){e.setTypes(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=h(),t.state={autocomplete:null},t.setAutocompleteCallback=function(){null!==t.state.autocomplete&&t.props.onLoad&&t.props.onLoad(t.state.autocomplete)},t}FN(t,e),t.prototype.componentDidMount=function(){var e;YN(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var t=null===(e=this.containerElement.current)||void 0===e?void 0:e.querySelector("input");if(t){var n=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=nL({updaterMap:ZI,eventMap:YI,prevProps:{},nextProps:this.props,instance:n}),this.setState((function(){return{autocomplete:n}}),this.setAutocompleteCallback)}},t.prototype.componentDidUpdate=function(e){tL(this.registeredEvents),this.registeredEvents=nL({updaterMap:ZI,eventMap:YI,prevProps:e,nextProps:this.props,instance:this.state.autocomplete})},t.prototype.componentWillUnmount=function(){null!==this.state.autocomplete&&tL(this.registeredEvents)},t.prototype.render=function(){return P.jsx("div",{ref:this.containerElement,className:this.props.className,children:p.only(this.props.children)})},t.defaultProps={className:""},t.contextType=ZN}(b);YS(".appLocationMap {\n width: max-content;\n height: max-content;\n}\n");var QI=function(e){var t=e.cityId,n=e.className,o=e.containerStyle,r=e.clickableIcons,i=e.zoom,a=void 0===i?10:i,s=e.mapKey,c=d(null),u=c[0],p=c[1];return l((function(){t?p(t):navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){p({lat:e.coords.latitude,lng:e.coords.longitude})}))}),[t]),P.jsx("div",{className:"appLocationMap ".concat(n),children:P.jsx(gL,{googleMapsApiKey:s,children:P.jsx("div",{style:o,children:u&&P.jsx(iL,{mapContainerStyle:o,center:u,clickableIcons:r,zoom:a})})})})};YS(".header {\n width: 100%;\n padding: 0 16px;\n}\n\n.title,\n.titleLeft {\n font-size: 1rem;\n font-weight: 500;\n text-align: center;\n flex-grow: 1;\n}\n\n.titleLeft {\n text-align: left;\n}\n\n.descriptionLeft {\n text-align: left;\n}\n\n.closeButton {\n align-self: flex-end;\n}\n\n.body {\n text-align: center;\n}\n\n.footer {\n margin-top: 16px;\n display: flex;\n justify-content: center;\n width: 100%;\n}\n");var JI=function(e){var t=e.visible,n=e.onClose,o=e.title,r=e.description,i=e.children,a=e.footerButtons,s=e.alignTitleLeft,l=void 0!==s&&s,c=e.className,u=e.closeIcon;return P.jsx("div",{className:"AppModal ".concat(c),children:P.jsxs(KE,{open:t,onCancel:n,footer:null,closeIcon:u||P.jsx(js,{}),className:"modal",children:[P.jsxs("div",{className:"header",children:[o&&P.jsx("div",{className:l?"titleLeft":"title",children:o}),r&&P.jsx("div",{className:l?"descriptionLeft":"description",children:r})]}),P.jsx("div",{className:"body",children:i}),a&&P.jsx("div",{className:"footer",children:a})]})})},ej=function(e){return"object"==typeof e&&null!==e},tj=function(e){var n=e.value,o=void 0===n?"":n,r=e.numInputs,i=void 0===r?4:r,a=e.onChange,s=e.onPaste,l=e.renderInput,c=e.shouldAutoFocus,u=void 0!==c&&c,d=e.inputType,p=void 0===d?"text":d,h=e.renderSeparator,f=e.placeholder,g=e.containerStyle,m=e.inputStyle,v=e.skipDefaultStyles,b=void 0!==v&&v,y=t.useState(0),x=y[0],w=y[1],C=t.useRef([]),E=function(){return o?o.toString().split(""):[]},S="number"===p||"tel"===p;t.useEffect((function(){C.current=C.current.slice(0,i)}),[i]),t.useEffect((function(){var e;u&&(null===(e=C.current[0])||void 0===e||e.focus())}),[u]);var k=function(){if("string"==typeof f){if(f.length===i)return f;f.length>0&&console.error("Length of the placeholder should be equal to the number of inputs.")}},O=function(e){return(S?!isNaN(Number(e)):"string"==typeof e)&&1===e.trim().length},$=function(e){var t=e.target.value;O(t)&&(L(t),N(x+1))},M=function(e){var t=e.nativeEvent,n=e.target.value;if(!O(n)){if(n.length===i)n.split("").some((function(e){return!O(e)}))||(I(n.split("")),N(i-1));null===t.data&&"deleteContentBackward"===t.inputType&&(e.preventDefault(),L(""),N(x-1)),e.target.value=""}},_=function(){w(x-1)},P=function(e){var t=E();[e.code,e.key].includes("Backspace")?(e.preventDefault(),L(""),N(x-1)):"Delete"===e.code?(e.preventDefault(),L("")):"ArrowLeft"===e.code?(e.preventDefault(),N(x-1)):"ArrowRight"===e.code||e.key===t[x]?(e.preventDefault(),N(x+1)):"Spacebar"!==e.code&&"Space"!==e.code&&"ArrowUp"!==e.code&&"ArrowDown"!==e.code||e.preventDefault()},N=function(e){var t,n,o=Math.max(Math.min(i-1,e),0);C.current[o]&&(null===(t=C.current[o])||void 0===t||t.focus(),null===(n=C.current[o])||void 0===n||n.select(),w(o))},L=function(e){var t=E();t[x]=e[0],I(t)},I=function(e){var t=e.join("");a(t)},j=function(e){var t;e.preventDefault();var n=E(),o=x,r=e.clipboardData.getData("text/plain").slice(0,i-x).split("");if(!S||!r.some((function(e){return isNaN(Number(e))}))){for(var a=0;a<i;++a)a>=x&&r.length>0&&(n[a]=null!==(t=r.shift())&&void 0!==t?t:"",o++);N(o),I(n)}};return t.createElement("div",{style:Object.assign({display:"flex",alignItems:"center"},ej(g)&&g),className:"string"==typeof g?g:void 0,onPaste:s},Array.from({length:i},(function(e,t){return t})).map((function(e){var n,o,r;return t.createElement(t.Fragment,{key:e},l({value:null!==(n=E()[e])&&void 0!==n?n:"",placeholder:null!==(r=null===(o=k())||void 0===o?void 0:o[e])&&void 0!==r?r:void 0,ref:function(t){return C.current[e]=t},onChange:$,onFocus:function(t){return function(e){return function(t){w(t),e.target.select()}}(t)(e)},onBlur:_,onKeyDown:P,onPaste:j,autoComplete:"off","aria-label":"Please enter OTP character ".concat(e+1),style:Object.assign(b?{}:{width:"1em",textAlign:"center"},ej(m)?m:{}),className:"string"==typeof m?m:void 0,type:p,inputMode:S?"numeric":"text",onInput:M},e),e<i-1&&("function"==typeof h?h(e):h))})))};YS(".appOtpField {\n .otpInputStyle {\n gap: 0.5rem;\n & input {\n margin: 0 5px;\n font-size: 24px;\n border-radius: 10px;\n border: none;\n width: 3.125rem !important;\n height: 2.6875rem !important;\n background-color: #f6f7f9 !important;\n }\n }\n .resendWrap {\n margin-top: 1rem;\n & .forgotPassword {\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 500;\n line-height: 150%;\n letter-spacing: -0.0175rem;\n cursor: pointer;\n .resendTimer {\n color: rgb(255, 0, 0);\n }\n .resendBtn {\n color: #009046;\n }\n }\n }\n}\n");var nj=function(e){var t=e.otp,n=e.onChange,o=e.numInputs,r=void 0===o?4:o,i=e.otpError,a=e.resendTimeout,s=e.onResendOtp,c=e.setResendTimeout,u=e.className,d=e.resendTxt,p=e.resendTime;return l((function(){if(a&&a>0){var e=setTimeout((function(){c(a-1)}),1e3);return function(){return clearTimeout(e)}}}),[a,c]),P.jsxs("div",{className:"appOtpField ".concat(u),children:[P.jsx(tj,{value:t,onChange:n,numInputs:r,containerStyle:"otpInputStyle",renderSeparator:P.jsx("span",{children:"-"}),renderInput:function(e){return P.jsx("input",ik({},e))}}),i&&P.jsx("p",{className:"error",children:i})," ",P.jsx("div",{className:"resendWrap",children:void 0!==a&&P.jsx("span",{className:"forgotPassword",children:a>0?P.jsx("span",{className:"resendTimer",children:p}):s&&P.jsx("span",{className:"resendBtn",onClick:function(){return s()},children:d})})})]})},oj=function(e){var t=e.total,n=e.currentPage,o=e.pageSize,r=void 0===o?10:o,i=e.onPageChange,a=e.showGotoBox,s=void 0!==a&&a,l=e.sizeChanger,c=void 0===l||l,u=e.className,d=ak(e,["total","currentPage","pageSize","onPageChange","showGotoBox","sizeChanger","className"]);return P.jsx("div",{className:u,children:P.jsx(UE,ik({current:n,pageSize:r,total:t,onChange:i,showSizeChanger:c,showQuickJumper:s},d))})};YS(".appPasswordInput {\n font-size: var(--font-14);\n font-weight: 500;\n color: #1e1f21;\n border: none;\n position: relative;\n\n .icon {\n position: absolute;\n right: 1rem;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n .ant-input-outlined {\n &:hover {\n border-color: #bfbebe !important;\n }\n &::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: 14px;\n text-align: left;\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var rj=function(e){var t=e.label,n=e.name,o=e.value,r=e.dataTestId,i=e.id,a=e.disabled,s=e.handleChange,l=e.onClick,c=e.defaultValue,u=e.onPressEnter,p=e.className,h=e.errorMessage,f=e.isAutoFocus,g=e.autoComplete,m=void 0===g?"new-password":g,v=d(!1),b=v[0],y=v[1];return P.jsxs("div",{className:"appPasswordInput ".concat(p),children:[P.jsxs("div",{className:"position-relative w-100",children:[P.jsx(lC,{type:b?"text":"password",className:"inputPassword","data-test-id":r,id:i,disabled:a,name:n,value:o,onChange:s,onClick:l,defaultValue:c,onPressEnter:u,placeholder:t,autoFocus:f,autoComplete:m}),P.jsx("span",{className:"icon",onClick:function(){y(!b)},children:ok.eyePassword})]}),h&&P.jsx("div",{className:"error",children:h})]})};export{DN as AppAvatar,rk as AppBackArrow,sk as AppBadge,QS as AppButton,RN as AppChart,zN as AppCheckboxText,AN as AppCollapse,BN as AppCustomLoader,TN as AppImageBox,ZS as AppInput,QI as AppLocationMap,JI as AppModal,nj as AppOtpField,oj as AppPagination,rj as AppPasswordInput,ek as AppSidebar,nk as AppTab,tk as AppTextarea,ck as OverViewCard};
|
26
74
|
//# sourceMappingURL=index.mjs.map
|