react-frontend-common-components 0.0.1

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.
Files changed (78) hide show
  1. package/dist/index.d.ts +85 -0
  2. package/dist/index.js +26 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/index.mjs +26 -0
  5. package/dist/index.mjs.map +1 -0
  6. package/package.json +34 -0
  7. package/rollup.config.js +44 -0
  8. package/src/components/app-avatar/app-avatar.tsx +24 -0
  9. package/src/components/app-back-arrow/app-back-arrow.css +17 -0
  10. package/src/components/app-back-arrow/app-back-arrow.tsx +30 -0
  11. package/src/components/app-badge/app-badge.css +11 -0
  12. package/src/components/app-badge/app-badge.tsx +44 -0
  13. package/src/components/app-bread-crumb/app-bread-crumb.tsx +16 -0
  14. package/src/components/app-button/app-button.css +13 -0
  15. package/src/components/app-button/app-button.tsx +51 -0
  16. package/src/components/app-card/app-card.css +8 -0
  17. package/src/components/app-card/app-card.tsx +43 -0
  18. package/src/components/app-carousel/app-carousel.css +68 -0
  19. package/src/components/app-carousel/app-carousel.tsx +62 -0
  20. package/src/components/app-chart/app-chart.css +6 -0
  21. package/src/components/app-chart/app-chart.tsx +97 -0
  22. package/src/components/app-checkbox-text/app-checkbox-text.css +12 -0
  23. package/src/components/app-checkbox-text/app-checkbox-text.tsx +20 -0
  24. package/src/components/app-collapse/app-collapse.tsx +57 -0
  25. package/src/components/app-custom-loader/app-custom-loader.css +116 -0
  26. package/src/components/app-custom-loader/app-custom-loader.tsx +23 -0
  27. package/src/components/app-divider/app-divider.tsx +16 -0
  28. package/src/components/app-float-button/app-float-button.tsx +23 -0
  29. package/src/components/app-image-box/app-image-box.css +23 -0
  30. package/src/components/app-image-box/app-image-box.tsx +38 -0
  31. package/src/components/app-input/app-input.css +61 -0
  32. package/src/components/app-input/app-input.tsx +89 -0
  33. package/src/components/app-label/app-label.css +5 -0
  34. package/src/components/app-label/app-label.tsx +34 -0
  35. package/src/components/app-list/app-list.tsx +26 -0
  36. package/src/components/app-loader/app-loader.css +16 -0
  37. package/src/components/app-loader/app-loader.tsx +28 -0
  38. package/src/components/app-location-map/app-location-map.css +4 -0
  39. package/src/components/app-location-map/app-location-map.tsx +62 -0
  40. package/src/components/app-modal/app-modal.css +35 -0
  41. package/src/components/app-modal/app-modal.tsx +58 -0
  42. package/src/components/app-otp-field/app-otp-field.css +31 -0
  43. package/src/components/app-otp-field/app-otp-field.tsx +70 -0
  44. package/src/components/app-pagination/app-pagination.tsx +40 -0
  45. package/src/components/app-password-input/app-password-input.css +41 -0
  46. package/src/components/app-password-input/app-password-input.tsx +79 -0
  47. package/src/components/app-phone-field/app-phone-field.css +61 -0
  48. package/src/components/app-phone-field/app-phone-field.tsx +60 -0
  49. package/src/components/app-popover/app-popover.css +5 -0
  50. package/src/components/app-popover/app-popover.tsx +45 -0
  51. package/src/components/app-progress/app-progress.tsx +40 -0
  52. package/src/components/app-radio-group/app-radio-group.css +6 -0
  53. package/src/components/app-radio-group/app-radio-group.tsx +45 -0
  54. package/src/components/app-select/app-select.css +21 -0
  55. package/src/components/app-select/app-select.tsx +53 -0
  56. package/src/components/app-select-add/app-select-add.css +21 -0
  57. package/src/components/app-select-add/app-select-add.tsx +34 -0
  58. package/src/components/app-sidebar/app-sidebar.css +46 -0
  59. package/src/components/app-sidebar/app-sidebar.tsx +60 -0
  60. package/src/components/app-tab/app-tab.css +22 -0
  61. package/src/components/app-tab/app-tab.tsx +31 -0
  62. package/src/components/app-table/app-table.tsx +42 -0
  63. package/src/components/app-tag/app-tag.css +11 -0
  64. package/src/components/app-tag/app-tag.tsx +48 -0
  65. package/src/components/app-textarea/app-textarea.css +19 -0
  66. package/src/components/app-textarea/app-textarea.tsx +59 -0
  67. package/src/components/app-title/app-title.css +12 -0
  68. package/src/components/app-title/app-title.tsx +28 -0
  69. package/src/components/app-toggle-button/app-toggle-button.css +27 -0
  70. package/src/components/app-toggle-button/app-toggle-button.tsx +43 -0
  71. package/src/components/app-upload-image/app-upload-image.css +26 -0
  72. package/src/components/app-upload-image/app-upload-image.tsx +90 -0
  73. package/src/components/over-view-card/over-view-card.css +16 -0
  74. package/src/components/over-view-card/over-view-card.tsx +22 -0
  75. package/src/index.ts +5 -0
  76. package/src/themes/icons/icons.tsx +131 -0
  77. package/src/themes/images/profile-img.svg +14 -0
  78. package/tsconfig.json +20 -0
package/dist/index.js ADDED
@@ -0,0 +1,26 @@
1
+ "use strict";var e=require("react"),t=require("react-dom");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r=n(e),o=n(t);function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,l={exports:{}},c={};var s,u={};
2
+ /**
3
+ * @license React
4
+ * react-jsx-runtime.development.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */"production"===process.env.NODE_ENV?l.exports=function(){if(a)return c;a=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var a,c={},s=null,u=null;for(a in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,a)&&!l.hasOwnProperty(a)&&(c[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===c[a]&&(c[a]=t[a]);return{$$typeof:n,type:e,key:s,ref:u,props:c,_owner:i.current}}return c.Fragment=r,c.jsx=s,c.jsxs=s,c}():l.exports=(s||(s=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),g=Symbol.iterator,h="@@iterator",b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=b.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var w,x=!1,E=!1,C=!1,S=!1,$=!1;function k(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return k(e)+".Consumer";case l:return k(e._context)+".Provider";case s:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case m:var n=e,u=n._payload,v=n._init;try{return O(v(u))}catch(e){return null}}return null}w=Symbol.for("react.module.reference");var N,P,I,R,M,j,_,A=Object.assign,T=0;function F(){}F.__reactDisabledLog=!0;var B,z=b.ReactCurrentDispatcher;function D(e,t,n){if(void 0===B)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);B=r&&r[1]||""}return"\n"+B+e}var L,H=!1,V="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||H)return"";var n,r=L.get(e);if(void 0!==r)return r;H=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=z.current,z.current=null,function(){if(0===T){N=console.log,P=console.info,I=console.warn,R=console.error,M=console.group,j=console.groupCollapsed,_=console.groupEnd;var e={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}T++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),c=n.stack.split("\n"),s=l.length-1,u=c.length-1;s>=1&&u>=0&&l[s]!==c[u];)u--;for(;s>=1&&u>=0;s--,u--)if(l[s]!==c[u]){if(1!==s||1!==u)do{if(s--,--u<0||l[s]!==c[u]){var d="\n"+l[s].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&L.set(e,d),d}}while(s>=1&&u>=0);break}}}finally{H=!1,z.current=o,function(){if(0==--T){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:N}),info:A({},e,{value:P}),warn:A({},e,{value:I}),error:A({},e,{value:R}),group:A({},e,{value:M}),groupCollapsed:A({},e,{value:j}),groupEnd:A({},e,{value:_})})}T<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?D(f):"";return"function"==typeof e&&L.set(e,p),p}function q(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return D(e);switch(e){case d:return D("Suspense");case f:return D("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return W(e.render,!1);case p:return q(e.type,t,n);case m:var o=e,i=o._payload,a=o._init;try{return q(a(i),t,n)}catch(e){}}return""}L=new V;var X=Object.prototype.hasOwnProperty,G={},K=b.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);K.setExtraStackFrame(n)}else K.setExtraStackFrame(null)}var Y=Array.isArray;function Q(e){return Y(e)}function Z(e){return""+e}function J(e){if(function(e){try{return Z(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Z(e)}var ee,te,ne,re=b.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,r,o,i,a,l){var c={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function ae(e,t,n,r,o){var i,a={},l=null,c=null;for(i in void 0!==n&&(J(n),l=""+n),function(e){if(X.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(J(t.key),l=""+t.key),function(e){if(X.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var n=O(re.current.type);ne[n]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)X.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var s=e.defaultProps;for(i in s)void 0===a[i]&&(a[i]=s[i])}if(l||c){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){ee||(ee=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,u),c&&function(e,t){var n=function(){te||(te=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,u)}return ie(e,l,c,o,r,re.current,a)}var le,ce=b.ReactCurrentOwner,se=b.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function fe(){if(ce.current){var e=O(ce.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}le=!1;var pe={};function me(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=fe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==ce.current&&(r=" It was passed a child from "+O(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ue(null)}}}function ve(e,t){if("object"==typeof e)if(Q(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&me(r,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[h];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)de(i.value)&&me(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==s&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=O(n);!function(e,t,n,r,o){var i=Function.call.bind(X);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var c=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(U(o),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof l),U(null)),l instanceof Error&&!(l.message in G)&&(G[l.message]=!0,U(o),y("Failed %s type: %s",n,l.message),U(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||le||(le=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var he={};function be(e,t,r,u,g,h){var b=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||$||e===i||e===d||e===f||S||e===v||x||E||C)||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===s||e.$$typeof===w||void 0!==e.getModuleId)}(e);if(!b){var k,N="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),N+=fe(),null===e?k="null":Q(e)?k="array":void 0!==e&&e.$$typeof===n?(k="<"+(O(e.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,N)}var P=ae(e,t,r,g,h);if(null==P)return P;if(b){var I=t.children;if(void 0!==I)if(u)if(Q(I)){for(var R=0;R<I.length;R++)ve(I[R],e);Object.freeze&&Object.freeze(I)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ve(I,e)}if(X.call(t,"key")){var M=O(e),j=Object.keys(t).filter((function(e){return"key"!==e})),_=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";he[M+_]||(y('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',_,M,j.length>0?"{"+j.join(": ..., ")+": ...}":"{}",M),he[M+_]=!0)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(P):ge(P),P}var ye=function(e,t,n){return be(e,t,n,!1)},we=function(e,t,n){return be(e,t,n,!0)};u.Fragment=o,u.jsx=ye,u.jsxs=we}()),u);var d=l.exports,f={exports:{}};
11
+ /*!
12
+ Copyright (c) 2018 Jed Watson.
13
+ Licensed under the MIT License (MIT), see
14
+ http://jedwatson.github.io/classnames
15
+ */
16
+ !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(f);var p=i(f.exports);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}var v,g={exports:{}},h={};var b,y={};
17
+ /**
18
+ * @license React
19
+ * react-is.development.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */"production"===process.env.NODE_ENV?g.exports=function(){if(v)return h;v=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case s:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),h.ContextConsumer=l,h.ContextProvider=a,h.Element=t,h.ForwardRef=s,h.Fragment=r,h.Lazy=p,h.Memo=f,h.Portal=n,h.Profiler=i,h.StrictMode=o,h.Suspense=u,h.SuspenseList=d,h.isAsyncMode=function(){return!1},h.isConcurrentMode=function(){return!1},h.isContextConsumer=function(e){return g(e)===l},h.isContextProvider=function(e){return g(e)===a},h.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},h.isForwardRef=function(e){return g(e)===s},h.isFragment=function(e){return g(e)===r},h.isLazy=function(e){return g(e)===p},h.isMemo=function(e){return g(e)===f},h.isPortal=function(e){return g(e)===n},h.isProfiler=function(e){return g(e)===i},h.isStrictMode=function(e){return g(e)===o},h.isSuspense=function(e){return g(e)===u},h.isSuspenseList=function(e){return g(e)===d},h.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},h.typeOf=g,h}():g.exports=(b||(b=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var v=e.type;switch(v){case r:case i:case o:case u:case d:return v;default:var g=v&&v.$$typeof;switch(g){case c:case l:case s:case p:case f:case a:return g;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var g=l,h=a,b=t,w=s,x=r,E=p,C=f,S=n,$=i,k=o,O=u,N=d,P=!1,I=!1;y.ContextConsumer=g,y.ContextProvider=h,y.Element=b,y.ForwardRef=w,y.Fragment=x,y.Lazy=E,y.Memo=C,y.Portal=S,y.Profiler=$,y.StrictMode=k,y.Suspense=O,y.SuspenseList=N,y.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isConcurrentMode=function(e){return I||(I=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isContextConsumer=function(e){return v(e)===l},y.isContextProvider=function(e){return v(e)===a},y.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},y.isForwardRef=function(e){return v(e)===s},y.isFragment=function(e){return v(e)===r},y.isLazy=function(e){return v(e)===p},y.isMemo=function(e){return v(e)===f},y.isPortal=function(e){return v(e)===n},y.isProfiler=function(e){return v(e)===i},y.isStrictMode=function(e){return v(e)===o},y.isSuspense=function(e){return v(e)===u},y.isSuspenseList=function(e){return v(e)===d},y.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},y.typeOf=v}()),y);var w=g.exports;function x(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return e.Children.forEach(t,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(x(e)):w.isFragment(e)&&e.props?r=r.concat(x(e.props.children,n)):r.push(e))})),r}var E={},C=[];function S(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=C.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function $(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=C.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function k(){E={}}function O(e,t,n){t||E[n]||(e(!1,n),E[n]=!0)}function N(e,t){O(S,e,t)}function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function I(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}function R(e,t,n){return(t=I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){return e instanceof HTMLElement||e instanceof SVGElement}function A(n){var r,o=function(e){return e&&"object"===P(e)&&_(e.nativeElement)?e.nativeElement:_(e)?e:null}(n);return o||(n instanceof e.Component?null===(r=t.findDOMNode)||void 0===r?void 0:r.call(t,n):null)}function T(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}N.preMessage=function(e){C.push(e)},N.resetWarned=k,N.noteOnce=function(e,t){O($,e,t)};var F=function(e,t){"function"==typeof e?e(t):"object"===P(e)&&e&&"current"in e&&(e.current=t)},B=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){F(t,e)}))}},z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T((function(){return B.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},D=function(e){var t,n,r=w.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===w.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===w.ForwardRef)};Number(e.version.split(".")[0]);var L=r.createContext(null);var H=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),V="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,W="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),q="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(W):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var X=["top","right","bottom","left","width","height","size","weight"],G="undefined"!=typeof MutationObserver,K=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){q(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){V&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),G?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){V&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;X.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),U=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Y=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||W},Q=re(0,0,0,0);function Z(e){return parseFloat(e)||0}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Z(e["border-"+n+"-width"])}),0)}function ee(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Q;var r=Y(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Z(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Z(r.width),c=Z(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=J(r,"left","right")+i),Math.round(c+a)!==n&&(c-=J(r,"top","bottom")+a)),!function(e){return e===Y(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return re(o.left,o.top,l,c)}var te="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Y(e).SVGGraphicsElement}:function(e){return e instanceof Y(e).SVGElement&&"function"==typeof e.getBBox};function ne(e){return V?te(e)?function(e){var t=e.getBBox();return re(0,0,t.width,t.height)}(e):ee(e):Q}function re(e,t,n,r){return{x:e,y:t,width:n,height:r}}var oe=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=re(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ne(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ie=function(e,t){var n,r,o,i,a,l,c,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),U(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);U(this,{target:e,contentRect:s})},ae=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new H,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Y(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new oe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Y(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new ie(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),le="undefined"!=typeof WeakMap?new WeakMap:new H,ce=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=K.getInstance(),r=new ae(t,n,this);le.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ce.prototype[e]=function(){var t;return(t=le.get(this))[e].apply(t,arguments)}}));var se=void 0!==W.ResizeObserver?W.ResizeObserver:ce,ue=new Map;function de(e){e.forEach((function(e){var t,n=e.target;null===(t=ue.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var fe=new se(de);function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I(r.key),r)}}function ve(e,t,n){return t&&me(e.prototype,t),n&&me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ge(e,t){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ge(e,t)}function he(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ge(e,t)}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}function ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ye=function(){return!!e})()}function we(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xe(e){var t=ye();return function(){var n,r=be(e);if(t){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return we(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ee=function(){he(t,r.Component);var e=xe(t);function t(){return pe(this,t),e.apply(this,arguments)}return ve(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Ce(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(L),c="function"==typeof n,s=c?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&r.isValidElement(s)&&D(s),f=d?s.ref:null,p=z(f,i),m=function(){var e;return A(i.current)||(i.current&&"object"===P(i.current)?A(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||A(a.current)};r.useImperativeHandle(t,(function(){return m()}));var v=r.useRef(e);v.current=e;var g=r.useCallback((function(e){var t=v.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var m=c===Math.round(i)?i:c,g=s===Math.round(a)?a:s,h=j(j({},p),{},{offsetWidth:m,offsetHeight:g});null==l||l(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return r.useEffect((function(){var e,t,n=m();return n&&!o&&(e=n,t=g,ue.has(e)||(ue.set(e,new Set),fe.observe(e)),ue.get(e).add(t)),function(){return function(e,t){ue.has(e)&&(ue.get(e).delete(t),ue.get(e).size||(fe.unobserve(e),ue.delete(e)))}(n,g)}}),[i.current,o]),r.createElement(Ee,{ref:a},d?r.cloneElement(s,{ref:p}):s)}var Se=r.forwardRef(Ce);"production"!==process.env.NODE_ENV&&(Se.displayName="SingleObserver");function $e(e,t){var n=e.children,o="function"==typeof n?[n]:x(n);return"production"!==process.env.NODE_ENV&&(o.length>1?S(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&S(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Se,m({},e,{key:i,ref:0===o?t:void 0}),n)}))}var ke=r.forwardRef($e);function Oe(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ie(e,t){if(e){if("string"==typeof e)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}function Re(e){return function(e){if(Array.isArray(e))return Ne(e)}(e)||Pe(e)||Ie(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"!==process.env.NODE_ENV&&(ke.displayName="ResizeObserver"),ke.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(L),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(L.Provider,{value:l},t)};var Me=function(e){return+setTimeout(e,16)},je=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Me=function(e){return window.requestAnimationFrame(e)},je=function(e){return window.cancelAnimationFrame(e)});var _e=0,Ae=new Map;function Te(e){Ae.delete(e)}var Fe=function(e){var t=_e+=1;return function n(r){if(0===r)Te(t),e();else{var o=Me((function(){n(r-1)}));Ae.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function Be(e){if(Array.isArray(e))return e}function ze(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function De(e,t){return Be(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||Ie(e,t)||ze()}function Le(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function He(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}Fe.cancel=function(e){var t=Ae.get(e);return Te(e),je(t)},"production"!==process.env.NODE_ENV&&(Fe.ids=function(){return Ae});var Ve="data-rc-order",We="data-rc-priority",qe="rc-util-key",Xe=new Map;function Ge(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):qe}function Ke(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ue(e){return Array.from((Xe.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!He())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(Ve,a),l&&i&&c.setAttribute(We,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=Ke(t),u=s.firstChild;if(r){if(l){var d=(t.styles||Ue(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Ve)))return!1;var t=Number(e.getAttribute(We)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ke(t);return(t.styles||Ue(n)).find((function(n){return n.getAttribute(Ge(t))===e}))}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Qe(e,t);n&&Ke(t).removeChild(n)}function Je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ke(n),o=Ue(r),i=j(j({},n),{},{styles:o});!function(e,t){var n=Xe.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=Ye("",t),o=r.parentNode;Xe.set(e,o),e.removeChild(r)}}(r,i);var a=Qe(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Ye(e,i);return u.setAttribute(Ge(i),t),u}function et(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(N(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===P(t)&&"object"===P(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)}var nt="%";function rt(e){return e.join(nt)}var ot=function(){function e(t){pe(this,e),R(this,"instanceId",void 0),R(this,"cache",new Map),this.instanceId=t}return ve(e,[{key:"get",value:function(e){return this.opGet(rt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(rt(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),it="data-token-hash",at="data-css-hash",lt="data-cache-path",ct="__cssinjs_instance__";var st=r.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(at,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[ct]=t[ct]||e,t[ct]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(at,"]"))).forEach((function(t){var n,o=t.getAttribute(at);r[o]?t[ct]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new ot(e)}(),defaultCache:!0});var ut=function(){function e(){pe(this,e),R(this,"cache",void 0),R(this,"keys",void 0),R(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ve(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=De(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=De(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();R(ut,"MAX_CACHE_SIZE",20),R(ut,"MAX_CACHE_OFFSET",5);var dt=0,ft=function(){function e(t){pe(this,e),R(this,"derivatives",void 0),R(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=dt,0===t.length&&S(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),dt+=1}return ve(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),pt=new ut;function mt(e){var t=Array.isArray(e)?e:[e];return pt.has(t)||pt.set(t,new ft(t)),pt.get(t)}var vt=new WeakMap,gt={};var ht=new WeakMap;function bt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ht.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof ft?n+=o.id:o&&"object"===P(o)?n+=bt(o,t):n+=o})),t&&(n=Le(n)),ht.set(e,n)),n}function yt(e,t){return Le("".concat(t,"_").concat(bt(e,!0)))}var wt=He();function xt(e){return"number"==typeof e?"".concat(e,"px"):e}function Et(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=j(j({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},R(R({},it,t),at,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},St=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=De(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},$t=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=De(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=Ct(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,St(r,t,{scope:null==n?void 0:n.scope})]},kt="test"!==process.env.NODE_ENV&&He()?r.useLayoutEffect:r.useEffect,Ot=function(e,t){var n=r.useRef(!0);kt((function(){return e(n.current)}),t),kt((function(){return n.current=!1,function(){n.current=!0}}),[])},Nt=function(e,t){Ot((function(t){if(!t)return e()}),t)},Pt=j({},r).useInsertionEffect,It=Pt?function(e,t,n){return Pt((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),Ot((function(){return t(!0)}),n)},Rt=void 0!==j({},r).useInsertionEffect?function(e){var t=[],n=!1;return r.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&S(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var Mt=!1;var jt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Mt};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var _t=window;if("function"==typeof _t.webpackHotUpdate){var At=_t.webpackHotUpdate;_t.webpackHotUpdate=function(){return Mt=!0,setTimeout((function(){Mt=!1}),0),At.apply(void 0,arguments)}}}function Tt(e,t,n,o,i){var a=r.useContext(st).cache,l=rt([e].concat(Re(t))),c=Rt([l]),s=jt(),u=function(e){a.opUpdate(l,(function(t){var r=De(t||[void 0,void 0],2),i=r[0],a=void 0===i?0:i,l=r[1],c=l;"production"!==process.env.NODE_ENV&&l&&s&&(null==o||o(c,s),c=null);var u=[a,c||n()];return e?e(u):u}))};r.useMemo((function(){u()}),[l]);var d=a.opGet(l);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(l));var f=d[1];return It((function(){null==i||i(f)}),(function(e){return u((function(t){var n=De(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(f)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=De(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null==o||o(s,!1)})),null):[i-1,s]}))}}),[l]),f}var Ft={},Bt="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",zt=new Map;var Dt=0;function Lt(e,t){zt.set(e,(zt.get(e)||0)-1);var n=Array.from(zt.keys()),r=n.filter((function(e){return(zt.get(e)||0)<=0}));n.length-r.length>Dt&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(it,'="').concat(e,'"]')).forEach((function(e){var n;e[ct]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),zt.delete(e)}))}var Ht=function(e,t,n,r){var o=j(j({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},Vt="token";function Wt(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.useContext(st),i=o.cache.instanceId,a=o.container,l=r.salt,c=void 0===l?"":l,s=r.override,u=void 0===s?Ft:s,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,m=function(e,t){for(var n=vt,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(gt)||n.set(gt,e()),n.get(gt)}((function(){return Object.assign.apply(Object,[{}].concat(Re(n)))}),n),v=bt(m),g=bt(u),h=p?bt(p):"",b=Tt(Vt,[c,t.id,v,g,h],(function(){var e,n=f?f(m,u,t):Ht(m,u,t,d),r=j({},n),o="";if(p){var i=De($t(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=yt(n,c);n._tokenKey=a,r._tokenKey=yt(r,c);var l=null!==(e=null==p?void 0:p.key)&&void 0!==e?e:a;n._themeKey=l,function(e){zt.set(e,(zt.get(e)||0)+1)}(l);var s="".concat(Bt,"-").concat(Le(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]}),(function(e){Lt(e[0]._themeKey,i)}),(function(e){var t=De(e,4),n=t[0],r=t[3];if(p&&r){var o=Je(r,Le("css-variables-".concat(n._themeKey)),{mark:at,prepend:"queue",attachTo:a,priority:-999});o[ct]=i,o.setAttribute(it,n._themeKey)}}));return b}var qt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xt="comm",Gt="rule",Kt="decl",Ut="@import",Yt="@keyframes",Qt="@layer",Zt=Math.abs,Jt=String.fromCharCode;function en(e){return e.trim()}function tn(e,t,n){return e.replace(t,n)}function nn(e,t,n){return e.indexOf(t,n)}function rn(e,t){return 0|e.charCodeAt(t)}function on(e,t,n){return e.slice(t,n)}function an(e){return e.length}function ln(e,t){return t.push(e),e}var cn=1,sn=1,un=0,dn=0,fn=0,pn="";function mn(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cn,column:sn,length:a,return:"",siblings:l}}function vn(){return fn=dn>0?rn(pn,--dn):0,sn--,10===fn&&(sn=1,cn--),fn}function gn(){return fn=dn<un?rn(pn,dn++):0,sn++,10===fn&&(sn=1,cn++),fn}function hn(){return rn(pn,dn)}function bn(){return dn}function yn(e,t){return on(pn,e,t)}function wn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xn(e){return en(yn(dn-1,Sn(91===e?e+2:40===e?e+1:e)))}function En(e){for(;(fn=hn())&&fn<33;)gn();return wn(e)>2||wn(fn)>3?"":" "}function Cn(e,t){for(;--t&&gn()&&!(fn<48||fn>102||fn>57&&fn<65||fn>70&&fn<97););return yn(e,bn()+(t<6&&32==hn()&&32==gn()))}function Sn(e){for(;gn();)switch(fn){case e:return dn;case 34:case 39:34!==e&&39!==e&&Sn(fn);break;case 40:41===e&&Sn(e);break;case 92:gn()}return dn}function $n(e,t){for(;gn()&&e+fn!==57&&(e+fn!==84||47!==hn()););return"/*"+yn(t,dn-1)+"*"+Jt(47===e?e:gn())}function kn(e){for(;!wn(hn());)gn();return yn(e,dn)}function On(e){return function(e){return pn="",e}(Nn("",null,null,null,[""],e=function(e){return cn=sn=1,un=an(pn=e),dn=0,[]}(e),0,[0],e))}function Nn(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,v=1,g=1,h=1,b=0,y="",w=o,x=i,E=r,C=y;g;)switch(m=b,b=gn()){case 40:if(108!=m&&58==rn(C,d-1)){-1!=nn(C+=tn(xn(b),"&","&\f"),"&\f",Zt(s?l[s-1]:0))&&(h=-1);break}case 34:case 39:case 91:C+=xn(b);break;case 9:case 10:case 13:case 32:C+=En(m);break;case 92:C+=Cn(bn()-1,7);continue;case 47:switch(hn()){case 42:case 47:ln(In($n(gn(),bn()),t,n,c),c),5!=wn(m||1)&&5!=wn(hn()||1)||!an(C)||" "===on(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*v:l[s++]=an(C)*h;case 125*v:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==h&&(C=tn(C,/\f/g,"")),p>0&&(an(C)-d||0===v&&47===m)&&ln(p>32?Rn(C+";",r,n,d-1,c):Rn(tn(C," ","")+";",r,n,d-2,c),c);break;case 59:C+=";";default:if(ln(E=Pn(C,t,n,s,u,o,l,y,w=[],x=[],d,i),i),123===b)if(0===u)Nn(C,t,E,E,w,i,d,l,x);else switch(99===f&&110===rn(C,3)?100:f){case 100:case 108:case 109:case 115:Nn(e,E,E,r&&ln(Pn(e,E,E,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:Nn(C,E,E,E,[""],x,0,l,x)}}s=u=p=0,v=h=1,y=C="",d=a;break;case 58:d=1+an(C),p=m;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==vn())continue;switch(C+=Jt(b),b*v){case 38:h=u>0?1:(C+="\f",-1);break;case 44:l[s++]=(an(C)-1)*h,h=1;break;case 64:45===hn()&&(C+=xn(gn())),f=hn(),u=d=an(y=C+=kn(bn())),b++;break;case 45:45===m&&2==an(C)&&(v=0)}}return i}function Pn(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),v=0,g=0,h=0;v<r;++v)for(var b=0,y=on(e,f+1,f=Zt(g=a[v])),w=e;b<m;++b)(w=en(g>0?p[b]+" "+y:tn(y,/&\f/g,p[b])))&&(c[h++]=w);return mn(e,t,n,0===o?Gt:l,c,s,u,d)}function In(e,t,n,r){return mn(e,t,n,Xt,Jt(fn),on(e,2,-2),0,r)}function Rn(e,t,n,r,o){return mn(e,t,n,Kt,on(e,0,r),on(e,r+1,-1),r,o)}function Mn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function jn(e,t,n,r){switch(e.type){case Qt:if(e.children.length)break;case Ut:case Kt:return e.return=e.return||e.value;case Xt:return"";case Yt:return e.return=e.value+"{"+Mn(e.children,r)+"}";case Gt:if(!an(e.value=e.props.join(",")))return""}return an(n=Mn(e.children,r))?e.return=e.value+"{"+n+"}":""}function _n(e,t){var n=t.path,r=t.parentSelectors;N(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var An,Tn=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&_n("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},Fn=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&_n("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Bn="data-ant-cssinjs-cache-path",zn="_FILE_STYLE__",Dn=!0;function Ln(e){return function(){if(!An&&(An={},He())){var e=document.createElement("div");e.className=Bn,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=De(e.split(":"),2),n=t[0],r=t[1];An[n]=r}));var n,r=document.querySelector("style[".concat(Bn,"]"));r&&(Dn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!An[e]}var Hn="_skip_check_",Vn="_multi_value_";function Wn(e){return Mn(On(e),jn).replace(/\{%%%\:[^;];}/g,";")}function qn(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Re(n.slice(1))).join(" ")})).join(",")}var Xn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,s=n.path,u=n.hashPriority,d=n.transformers,f=void 0===d?[]:d,p=n.linters,m=void 0===p?[]:p,v="",g={};function h(t){var r=t.getName(l);if(!g[r]){var o=De(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];g[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)v+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==P(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===P(e)&&e&&(Hn in e||Vn in e)}(r)){var d;function C(e,t){"production"===process.env.NODE_ENV||"object"===P(r)&&null!=r&&r[Hn]||[Tn,Fn].concat(Re(m)).forEach((function(n){return n(e,t,{path:s,hashId:l,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;qt[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),o=t.getName(l)),v+="".concat(n,":").concat(o,";")}var f=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===P(r)&&null!=r&&r[Vn]&&Array.isArray(f)?f.forEach((function(e){C(t,e)})):C(t,f)}else{var p=!1,b=t.trim(),y=!1;(o||i)&&l?b.startsWith("@")?p=!0:b=qn("&"===b?"":t,l,u):!o||l||"&"!==b&&""!==b||(b="",y=!0);var w=De(e(r,n,{root:y,injectHash:p,parentSelectors:[].concat(Re(a),[b])}),2),x=w[0],E=w[1];g=j(j({},g),E),v+="".concat(b).concat(x)}}))}})),o?c&&(v="@layer ".concat(c.name," {").concat(v,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):v="{".concat(v,"}"),[v,g]};function Gn(e,t){return Le("".concat(e.join("%")).concat(t))}function Kn(){return null}var Un="style";function Yn(e,t){var n=e.token,o=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=r.useContext(st),f=d.autoClear,p=d.mock,v=d.defaultCache,g=d.hashPriority,h=d.container,b=d.ssrInline,y=d.transformers,w=d.linters,x=d.cache,E=d.layer,C=n._tokenKey,S=[C];E&&S.push("layer"),S.push.apply(S,Re(o));var $=wt;"production"!==process.env.NODE_ENV&&void 0!==p&&($="client"===p);var k=Tt(Un,S,(function(){var e=S.join("|");if(Ln(e)){var n=function(e){var t=An[e],n=null;if(t&&He())if(Dn)n=zn;else{var r=document.querySelector("style[".concat(at,'="').concat(An[e],'"]'));r?n=r.innerHTML:delete An[e]}return[n,t]}(e),r=De(n,2),l=r[0],s=r[1];if(l)return[l,C,s,{},c,u]}var d=t(),f=De(Xn(d,{hashId:i,hashPriority:g,layer:E?a:void 0,path:o.join("-"),transformers:y,linters:w}),2),p=f[0],m=f[1],v=Wn(p),h=Gn(S,v);return[v,C,h,m,c,u]}),(function(e,t){var n=De(e,3)[2];(t||f)&&wt&&Ze(n,{mark:at})}),(function(e){var t=De(e,4),n=t[0];t[1];var r=t[2],o=t[3];if($&&n!==zn){var i={mark:at,prepend:!E&&"queue",attachTo:h,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){Je(Wn(o[e]),"_layer-".concat(e),j(j({},i),{},{prepend:!0}))}));var d=Je(n,r,i);d[ct]=x.instanceId,d.setAttribute(it,C),"production"!==process.env.NODE_ENV&&d.setAttribute(lt,S.join("|")),s.forEach((function(e){Je(Wn(o[e]),"_effect-".concat(e),i)}))}})),O=De(k,3),N=O[0],P=O[1],I=O[2];return function(e){var t;return t=b&&!$&&v?r.createElement("style",m({},R(R({},it,P),at,I),{dangerouslySetInnerHTML:{__html:N}})):r.createElement(Kn,null),r.createElement(r.Fragment,null,t,e)}}var Qn="cssVar";R(R(R({},Un,(function(e,t,n){var r=De(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=Et(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Et(Wn(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),Vt,(function(e,t,n){var r=De(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,Et(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),Qn,(function(e,t,n){var r=De(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Et(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var Zn=function(){function e(t,n){pe(this,e),R(this,"name",void 0),R(this,"style",void 0),R(this,"_keyframe",!0),this.name=t,this.style=n}return ve(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function Jn(e){return e.notSplit=!0,e}Jn(["borderTop","borderBottom"]),Jn(["borderTop"]),Jn(["borderBottom"]),Jn(["borderLeft","borderRight"]),Jn(["borderLeft"]),Jn(["borderRight"]);var er=e.createContext({});function tr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function nr(e,t,n,r){if(!t.length)return n;var o,i,a=Be(o=t)||Pe(o)||Ie(o)||ze(),l=a[0],c=a.slice(1);return i=e||"number"!=typeof l?Array.isArray(e)?Re(e):j({},e):[],r&&void 0===n&&1===c.length?delete i[l][c[0]]:i[l]=nr(i[l],c,n,r),i}function rr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!tr(e,t.slice(0,-1))?e:nr(e,t,n,r)}function or(e){return Array.isArray(e)?[]:{}}var ir="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function ar(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=or(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=tr(e,n),c=Array.isArray(l);if(c||"object"===P(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=tr(r,n);c?r=rr(r,n,[]):s&&"object"===P(s)||(r=rr(r,n,or(l))),ir(l).forEach((function(e){t([].concat(Re(n),[e]),a)}))}}else r=rr(r,n,l)}([])})),r}function lr(){}let cr=null;let sr=lr;"production"!==process.env.NODE_ENV&&(sr=(e,t,n)=>{N(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(cr=null,k())});const ur=r.createContext({}),dr="production"!==process.env.NODE_ENV?e=>{const{strict:t}=r.useContext(ur),n=(n,r,o)=>{if(!n)if(!1===t&&"deprecated"===r){const t=cr;cr||(cr={}),cr[e]=cr[e]||[],cr[e].includes(o||"")||cr[e].push(o||""),t||console.warn("[antd] There exists deprecated usage in your code:",cr)}else"production"!==process.env.NODE_ENV&&sr(n,e,o)};return n.deprecated=(e,t,r,o)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${r}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=lr,e};var fr=sr,pr=e.createContext(void 0),mr=j(j({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const vr={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},gr={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},mr),timePickerLocale:Object.assign({},vr)},hr="${label} is not a valid ${type}",br={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:gr,TimePicker:vr,Calendar:gr,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:hr,method:hr,array:hr,object:hr,number:hr,date:hr,boolean:hr,integer:hr,float:hr,regexp:hr,email:hr,url:hr,hex:hr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},br.Modal);let yr=[];const wr=()=>yr.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),br.Modal);const xr=e.createContext(void 0),Er="internalMark",Cr=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;if("production"!==process.env.NODE_ENV){const e=dr("LocaleProvider");"production"!==process.env.NODE_ENV&&e(o===Er,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}r.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return yr.push(t),wr(),()=>{yr=yr.filter((e=>e!==t)),wr()}}Object.assign({},br.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(xr.Provider,{value:i},n)};function Sr(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function $r(e){return Math.min(1,Math.max(0,e))}function kr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Or(e){return e<=1?"".concat(100*Number(e),"%"):e}function Nr(e){return 1===e.length?"0"+e:String(e)}function Pr(e,t,n){e=Sr(e,255),t=Sr(t,255),n=Sr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function Ir(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Rr(e,t,n){e=Sr(e,255),t=Sr(t,255),n=Sr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function Mr(e,t,n,r){var o=[Nr(Math.round(e).toString(16)),Nr(Math.round(t).toString(16)),Nr(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function jr(e){return _r(e)/255}function _r(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(Cr.displayName="LocaleProvider");var Ar={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Tr(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,l=null,c=null,s=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Ar[e])e=Ar[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Dr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Dr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Dr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Dr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Dr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Dr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Dr.hex8.exec(e),n)return{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),a:jr(n[4]),format:t?"name":"hex8"};if(n=Dr.hex6.exec(e),n)return{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),format:t?"name":"hex"};if(n=Dr.hex4.exec(e),n)return{r:_r(n[1]+n[1]),g:_r(n[2]+n[2]),b:_r(n[3]+n[3]),a:jr(n[4]+n[4]),format:t?"name":"hex8"};if(n=Dr.hex3.exec(e),n)return{r:_r(n[1]+n[1]),g:_r(n[2]+n[2]),b:_r(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Lr(e.r)&&Lr(e.g)&&Lr(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Sr(t,255),g:255*Sr(n,255),b:255*Sr(r,255)},s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Lr(e.h)&&Lr(e.s)&&Lr(e.v)?(a=Or(e.s),l=Or(e.v),o=function(e,t,n){e=6*Sr(e,360),t=Sr(t,100),n=Sr(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,a,l),s=!0,u="hsv"):Lr(e.h)&&Lr(e.s)&&Lr(e.l)&&(a=Or(e.s),c=Or(e.l),o=function(e,t,n){var r,o,i;if(e=Sr(e,360),t=Sr(t,100),n=Sr(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Ir(l,a,e+1/3),o=Ir(l,a,e),i=Ir(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=kr(i),{ok:s,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var Fr="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Br="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),zr="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),Dr={CSS_UNIT:new RegExp(Fr),rgb:new RegExp("rgb"+Br),rgba:new RegExp("rgba"+zr),hsl:new RegExp("hsl"+Br),hsla:new RegExp("hsla"+zr),hsv:new RegExp("hsv"+Br),hsva:new RegExp("hsva"+zr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Lr(e){return Boolean(Dr.CSS_UNIT.exec(String(e)))}var Hr=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Tr(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=kr(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Rr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Rr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Pr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Pr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Mr(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[Nr(Math.round(e).toString(16)),Nr(Math.round(t).toString(16)),Nr(Math.round(n).toString(16)),Nr((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Sr(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Sr(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Mr(this.r,this.g,this.b,!1),t=0,n=Object.entries(Ar);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=$r(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=$r(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=$r(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=$r(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Vr=2,Wr=.16,qr=.05,Xr=.05,Gr=.15,Kr=5,Ur=4,Yr=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Qr(e){var t=Rr(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Zr(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Mr(t,n,r,!1))}function Jr(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Vr*t:Math.round(e.h)+Vr*t:n?Math.round(e.h)+Vr*t:Math.round(e.h)-Vr*t)<0?r+=360:r>=360&&(r-=360),r}function eo(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-Wr*t:t===Ur?e.s+Wr:e.s+qr*t)>1&&(r=1),n&&t===Kr&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function to(e,t,n){var r;return(r=n?e.v+Xr*t:e.v-Gr*t)>1&&(r=1),Number(r.toFixed(2))}function no(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Tr(e),o=Kr;o>0;o-=1){var i=Qr(r),a=Zr(Tr({h:Jr(i,o,!0),s:eo(i,o,!0),v:to(i,o,!0)}));n.push(a)}n.push(Zr(r));for(var l=1;l<=Ur;l+=1){var c=Qr(r),s=Zr(Tr({h:Jr(c,l),s:eo(c,l),v:to(c,l)}));n.push(s)}return"dark"===t.theme?Yr.map((function(e){var r,o,i,a=e.index,l=e.opacity;return Zr((r=Tr(t.backgroundColor||"#141414"),o=Tr(n[a]),i=100*l/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var ro={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},oo=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];oo.primary=oo[5];var io=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];io.primary=io[5];var ao=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ao.primary=ao[5];var lo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];lo.primary=lo[5];var co=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];co.primary=co[5];var so=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];so.primary=so[5];var uo=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];uo.primary=uo[5];var fo=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];fo.primary=fo[5];var po=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];po.primary=po[5];var mo=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];mo.primary=mo[5];var vo=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];vo.primary=vo[5];var go=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];go.primary=go[5];var ho=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ho.primary=ho[5];var bo={red:oo,volcano:io,orange:ao,gold:lo,yellow:co,lime:so,green:uo,cyan:fo,blue:po,geekblue:mo,purple:vo,magenta:go,grey:ho};const yo={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},wo=Object.assign(Object.assign({},yo),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});const xo=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function Eo(e){return(e+8)/e}const Co=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Eo(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const So=(e,t)=>new Hr(e).setAlpha(t).toRgbString(),$o=(e,t)=>new Hr(e).darken(t).toHexString(),ko=e=>{const t=no(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Oo=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:So(r,.88),colorTextSecondary:So(r,.65),colorTextTertiary:So(r,.45),colorTextQuaternary:So(r,.25),colorFill:So(r,.15),colorFillSecondary:So(r,.06),colorFillTertiary:So(r,.04),colorFillQuaternary:So(r,.02),colorBgLayout:$o(n,4),colorBgContainer:$o(n,0),colorBgElevated:$o(n,0),colorBgSpotlight:So(r,.85),colorBgBlur:"transparent",colorBorder:$o(n,15),colorBorderSecondary:$o(n,6)}};const No=mt((function(e){ro.pink=ro.magenta,bo.pink=bo.magenta;const t=Object.keys(yo).map((t=>{const n=e[t]===ro[t]?bo[t]:no(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(o),p=n(i),m=n(a),v=n(l),g=r(s,u),h=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new Hr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:ko,generateNeutralColorPalettes:Oo})),Co(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},xo(r))}(e))})),Po={token:wo,override:{override:wo},hashed:!0},Io=e.createContext(Po),Ro="ant",Mo="anticon",jo=["outlined","borderless","filled"],_o=r.createContext({getPrefixCls:(e,t)=>t||(e?`${Ro}-${e}`:Ro),iconPrefixCls:Mo}),Ao=`-ant-${Date.now()}-${Math.random()}`;function To(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Hr(e),i=no(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Hr(t.primaryColor),i=no(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Hr(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);He()?Je(n,`${Ao}-dynamic-theme`):"production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Fo=r.createContext(!1),Bo=e=>{let{children:t,disabled:n}=e;const o=r.useContext(Fo);return r.createElement(Fo.Provider,{value:null!=n?n:o},t)},zo=r.createContext(void 0),Do=e=>{let{children:t,size:n}=e;const o=r.useContext(zo);return r.createElement(zo.Provider,{value:n||o},t)};var Lo=ve((function e(){pe(this,e)})),Ho="CALC_UNIT",Vo=new RegExp(Ho,"g");function Wo(e){return"number"==typeof e?"".concat(e).concat(Ho):e}var qo=function(){he(t,Lo);var e=xe(t);function t(n,r){var o;pe(this,t),R(we(o=e.call(this)),"result",""),R(we(o),"unitlessCssVar",void 0),R(we(o),"lowPriority",void 0);var i=P(n);return o.unitlessCssVar=r,n instanceof t?o.result="(".concat(n.result,")"):"number"===i?o.result=Wo(n):"string"===i&&(o.result=n),o}return ve(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Wo(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Wo(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Vo,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),Xo=function(){he(t,Lo);var e=xe(t);function t(n){var r;return pe(this,t),R(we(r=e.call(this)),"result",0),n instanceof t?r.result=n.result:"number"==typeof n&&(r.result=n),r}return ve(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),Go=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ko(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Uo(e){var t=r.useRef(!1),n=De(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}function Yo(e){return void 0!==e}function Qo(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=De(Uo((function(){return Yo(o)?o:Yo(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=Ko(i),p=De(Uo([u]),2),m=p[0],v=p[1];return Nt((function(){var e=m[0];c!==e&&f(c,e)}),[m]),Nt((function(){Yo(o)||s(o)}),[o]),[d,Ko((function(e,t){s(e,t),v([u],t)}))]}function Zo(e,t,n,r){var o=j({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=De(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&N(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))}));var i=j(j({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var Jo="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,ei=!0;function ti(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Jo)return Object.assign.apply(Object,[{}].concat(t));ei=!1;var r={};return t.forEach((function(e){"object"===P(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),ei=!0,r}var ni={};function ri(){}function oi(e,t,n){var r;return"function"==typeof n?n(ti(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var ii=function(){function e(){pe(this,e),R(this,"map",new Map),R(this,"objectIDMap",new WeakMap),R(this,"nextID",0),R(this,"lastAccessBeat",new Map),R(this,"accessBeat",0)}return ve(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===P(e)?"obj_".concat(t.getObjectID(e)):"".concat(P(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),ai=new ii;var li=function(){return{}};const ci=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var si="5.20.5";function ui(e){return e>=0&&e<=255}function di(e,t){const{r:n,g:r,b:o,a:i}=new Hr(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Hr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(ui(t)&&ui(i)&&ui(s))return new Hr({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new Hr({r:n,g:r,b:o,a:1}).toRgbString()}var fi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function pi(e){const{override:t}=e,n=fi(e,["override"]),r=Object.assign({},t);Object.keys(wo).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:di(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:di(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:di(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:di(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Hr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Hr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Hr("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var mi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const vi={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},gi={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},hi={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},bi=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=mi(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=pi(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=mi(n,["theme"]);let i=o;r&&(i=bi(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function yi(){const{token:t,hashed:n,theme:r,override:o,cssVar:i}=e.useContext(Io),a=`${si}-${n||""}`,l=r||No,[c,s,u]=Wt(l,[wo,t],{salt:a,override:o,getComputedToken:bi,formatToken:pi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:vi,ignore:gi,preserve:hi}});return[l,u,n?s:"",c,i]}const wi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},xi=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Ei=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ci=e=>({outline:`${xt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Si=e=>({"&:focus-visible":Object.assign({},Ci(e))}),$i=(e,t)=>{const[n,r]=yi();return Yn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},{genStyleHooks:ki,genComponentStyleHook:Oi,genSubStyleComponent:Ni}=function(t){var n=t.useCSP,r=void 0===n?li:n,o=t.useToken,i=t.usePrefix,a=t.getResetStyles,l=t.getCommonStyle,c=t.getCompUnitless;function s(t,n,c){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=De(u,1)[0],f=u.join("-");return function(t){var u,p,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,v=o(),g=v.theme,h=v.realToken,b=v.hashId,y=v.token,w=v.cssVar,x=i(),E=x.rootPrefixCls,C=x.iconPrefixCls,S=r(),$=w?"css":"js",k=(u=function(){var e=new Set;return w&&Object.keys(s.unitless||{}).forEach((function(t){e.add(Ct(t,w.prefix)),e.add(Ct(t,Go(d,w.prefix)))})),function(e,t){var n="css"===e?qo:Xo;return function(e){return new n(e,t)}}($,e)},p=[$,d,null==w?void 0:w.prefix],e.useMemo((function(){var e=ai.get(p);if(e)return e;var t=u();return ai.set(p,t),t}),p)),O=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return xt(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return xt(e)})).join(","),")")}}}($),N=O.max,I=O.min,R={theme:g,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:{name:"antd"},order:s.order||-999};Yn(j(j({},R),{},{clientOnly:!1,path:["Shared",E]}),(function(){return"function"==typeof a?a(y):[]}));var M=Yn(j(j({},R),{},{path:[f,t,C]}),(function(){if(!1===s.injectStyle)return[];var e=function(e){var t,n=e,r=ri;return Jo&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return ei&&t.add(n),e[n]}}),r=function(e,n){var r;ni[e]={global:Array.from(t),component:j(j({},null===(r=ni[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(y),r=e.token,o=e.flush,i=oi(d,h,c),a=".".concat(t),u=Zo(d,h,i,{deprecatedTokens:s.deprecatedTokens});w&&"object"===P(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(Ct(e,Go(d,w.prefix)),")")}));var f=ti(r,{componentCls:a,prefixCls:t,iconCls:".".concat(C),antCls:".".concat(E),calc:k,max:N,min:I},w?i:u),p=n(f,{hashId:b,prefixCls:t,rootPrefixCls:E,iconPrefixCls:C});o(d,u);var v="function"==typeof l?l(f,t,m,s.resetFont):null;return[!1===s.resetStyle?null:v,p]}));return[M,b]}}return{genStyleHooks:function(t,n,r,i){var a=Array.isArray(t)?t[0]:t;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=j(j({},"function"==typeof c?c(t):{}),{},R({},l("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[l(e)]=u[e]}));var f=j(j({},i),{},{unitless:d,prefixToken:l}),p=s(t,n,r,f),m=function(t,n,r){var i=r.unitless,a=r.injectStyle,l=void 0===a||a,c=r.prefixToken,s=r.ignore,u=function(a){var l=a.rootCls,u=a.cssVar,d=void 0===u?{}:u,f=o().realToken;return function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,s=void 0===c?"":c,u=e.useContext(st),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(Re(t.path),[r,s,p]),v=Tt(Qn,m,(function(){var e=n(),t=De($t(e,r,{prefix:o,unitless:i,ignore:a,scope:s}),2),l=t[0],c=t[1];return[l,c,Gn(m,c),r]}),(function(e){var t=De(e,3)[2];wt&&Ze(t,{mark:at})}),(function(e){var t=De(e,3),n=t[1],o=t[2];if(n){var i=Je(n,o,{mark:at,prepend:"queue",attachTo:f,priority:-999});i[ct]=d,i.setAttribute(it,r)}}))}({path:[t],prefix:d.prefix,key:d.key,unitless:i,ignore:s,token:f,scope:l},(function(){var e=oi(t,f,n),o=Zo(t,f,e,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(e).forEach((function(e){o[c(e)]=o[e],delete o[e]})),o})),null},d=function(n){var r=o().cssVar;return[function(o){return l&&r?e.createElement(e.Fragment,null,e.createElement(u,{rootCls:n,cssVar:r,component:t}),o):o},null==r?void 0:r.key]};return d}(a,r,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=De(p(e,t),2)[1],r=De(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,j({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=e.useContext(_o);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=yi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t,iconPrefixCls:n}=e.useContext(_o);return $i(n,t),null!=t?t:{}},getResetStyles:e=>[{"&":Ei(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>vi});function Pi(e,t){return ci.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const Ii=Object.assign({},r),{useId:Ri}=Ii,Mi=void 0===Ri?()=>"":Ri;var ji=["children"],_i=r.createContext({});function Ai(e){var t=e.children,n=et(e,ji);return r.createElement(_i.Provider,{value:n},t)}var Ti=function(){he(t,r.Component);var e=xe(t);function t(){return pe(this,t),e.apply(this,arguments)}return ve(t,[{key:"render",value:function(){return this.props.children}}]),t}();var Fi="none",Bi="appear",zi="enter",Di="leave",Li="none",Hi="prepare",Vi="start",Wi="active",qi="end",Xi="prepared";function Gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var Ki=function(e,t){var n={animationend:Gi("Animation","AnimationEnd"),transitionend:Gi("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(He(),"undefined"!=typeof window?window:{}),Ui={};if(He()){var Yi=document.createElement("div");Ui=Yi.style}var Qi={};function Zi(e){if(Qi[e])return Qi[e];var t=Ki[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Ui)return Qi[e]=t[i],Qi[e]}return""}var Ji=Zi("animationend"),ea=Zi("transitionend"),ta=!(!Ji||!ea),na=Ji||"animationend",ra=ea||"transitionend";function oa(e,t){if(!e)return null;if("object"===P(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var ia=function(t){var n=e.useRef();function o(e){e&&(e.removeEventListener(ra,t),e.removeEventListener(na,t))}return r.useEffect((function(){return function(){o(n.current)}}),[]),[function(e){n.current&&n.current!==e&&o(n.current),e&&e!==n.current&&(e.addEventListener(ra,t),e.addEventListener(na,t),n.current=e)},o]},aa=He()?e.useLayoutEffect:e.useEffect,la=[Hi,Vi,Wi,qi],ca=[Hi,Xi],sa=!1,ua=!0;function da(e){return e===Wi||e===qi}var fa=function(e,t,n){var o=De(Uo(Li),2),i=o[0],a=o[1],l=function(){var e=r.useRef(null);function t(){Fe.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Fe((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=De(l,2),s=c[0],u=c[1];var d=t?ca:la;return aa((function(){if(i!==Li&&i!==qi){var e=d.indexOf(i),t=d[e+1],r=n(i);r===sa?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(Hi,!0)},i]};function pa(t,n,o,i){var a,l,c,s=i.motionEnter,u=void 0===s||s,d=i.motionAppear,f=void 0===d||d,p=i.motionLeave,m=void 0===p||p,v=i.motionDeadline,g=i.motionLeaveImmediately,h=i.onAppearPrepare,b=i.onEnterPrepare,y=i.onLeavePrepare,w=i.onAppearStart,x=i.onEnterStart,E=i.onLeaveStart,C=i.onAppearActive,S=i.onEnterActive,$=i.onLeaveActive,k=i.onAppearEnd,O=i.onEnterEnd,N=i.onLeaveEnd,P=i.onVisibleChanged,I=De(Uo(),2),M=I[0],_=I[1],A=(a=Fi,l=De(r.useReducer((function(e){return e+1}),0),2)[1],c=r.useRef(a),[Ko((function(){return c.current})),Ko((function(e){c.current="function"==typeof e?e(c.current):e,l()}))]),T=De(A,2),F=T[0],B=T[1],z=De(Uo(null),2),D=z[0],L=z[1],H=F(),V=e.useRef(!1),W=e.useRef(null);function q(){return o()}var X=e.useRef(!1);function G(){B(Fi),L(null,!0)}var K=Ko((function(e){var t=F();if(t!==Fi){var n=q();if(!e||e.deadline||e.target===n){var r,o=X.current;t===Bi&&o?r=null==k?void 0:k(n,e):t===zi&&o?r=null==O?void 0:O(n,e):t===Di&&o&&(r=null==N?void 0:N(n,e)),o&&!1!==r&&G()}}})),U=De(ia(K),1)[0],Y=function(e){switch(e){case Bi:return R(R(R({},Hi,h),Vi,w),Wi,C);case zi:return R(R(R({},Hi,b),Vi,x),Wi,S);case Di:return R(R(R({},Hi,y),Vi,E),Wi,$);default:return{}}},Q=r.useMemo((function(){return Y(H)}),[H]),Z=De(fa(H,!t,(function(e){if(e===Hi){var t=Q[Hi];return t?t(q()):sa}var n;ee in Q&&L((null===(n=Q[ee])||void 0===n?void 0:n.call(Q,q(),null))||null);return ee===Wi&&H!==Fi&&(U(q()),v>0&&(clearTimeout(W.current),W.current=setTimeout((function(){K({deadline:!0})}),v))),ee===Xi&&G(),ua})),2),J=Z[0],ee=Z[1],te=da(ee);X.current=te,aa((function(){_(n);var e,r=V.current;V.current=!0,!r&&n&&f&&(e=Bi),r&&n&&u&&(e=zi),(r&&!n&&m||!r&&g&&!n&&m)&&(e=Di);var o=Y(e);e&&(t||o[Hi])?(B(e),J()):B(Fi)}),[n]),e.useEffect((function(){(H===Bi&&!f||H===zi&&!u||H===Di&&!m)&&B(Fi)}),[f,u,m]),e.useEffect((function(){return function(){V.current=!1,clearTimeout(W.current)}}),[]);var ne=r.useRef(!1);e.useEffect((function(){M&&(ne.current=!0),void 0!==M&&H===Fi&&((ne.current||M)&&(null==P||P(M)),ne.current=!0)}),[M,H]);var re=D;return Q[Hi]&&ee===Vi&&(re=j({transition:"none"},re)),[H,ee,re,null!=M?M:n]}var ma=function(t){var n=t;"object"===P(t)&&(n=t.transitionSupport);var o=r.forwardRef((function(t,o){var i=t.visible,a=void 0===i||i,l=t.removeOnLeave,c=void 0===l||l,s=t.forceRender,u=t.children,d=t.motionName,f=t.leavedClassName,m=t.eventProps,v=function(e,t){return!(!e.motionName||!n||!1===t)}(t,r.useContext(_i).motion),g=e.useRef(),h=e.useRef();var b=De(pa(v,a,(function(){try{return g.current instanceof HTMLElement?g.current:A(h.current)}catch(e){return null}}),t),4),y=b[0],w=b[1],x=b[2],E=b[3],C=r.useRef(E);E&&(C.current=!0);var S,$=r.useCallback((function(e){g.current=e,F(o,e)}),[o]),k=j(j({},m),{},{visible:a});if(u)if(y===Fi)S=E?u(j({},k),$):!c&&C.current&&f?u(j(j({},k),{},{className:f}),$):s||!c&&!f?u(j(j({},k),{},{style:{display:"none"}}),$):null;else{var O;w===Hi?O="prepare":da(w)?O="active":w===Vi&&(O="start");var N=oa(d,"".concat(y,"-").concat(O));S=u(j(j({},k),{},{className:p(oa(d,y),R(R({},N,N&&O),d,"string"==typeof d)),style:x}),$)}else S=null;r.isValidElement(S)&&D(S)&&(S.ref||(S=r.cloneElement(S,{ref:$})));return r.createElement(Ti,{ref:h},S)}));return o.displayName="CSSMotion",o}(ta),va="add",ga="keep",ha="remove",ba="removed";function ya(e){var t;return j(j({},t=e&&"object"===P(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function wa(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ya)}var xa=["component","children","onVisibleChanged","onAllRemoved"],Ea=["status"],Ca=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Sa(e){const{children:t}=e,[,n]=yi(),{motion:o}=n,i=r.useRef(!1);return i.current=i.current||!1===o,i.current?r.createElement(Ai,{motion:o},t):t}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ma,t=function(){he(n,r.Component);var t=xe(n);function n(){var e;pe(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return R(we(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),R(we(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:j(j({},e),{},{status:ba})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==ba})).length})),e}return ve(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=et(o,xa),u=i||r.Fragment,d={};return Ca.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,r.createElement(u,s,n.map((function(n,o){var i=n.status,s=et(n,Ea),u=i===va||i===ga;return r.createElement(e,m({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(e){(null==l||l(e,{key:s.key}),e)||0===t.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(j(j({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=wa(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=wa(e),a=wa(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return j(j({},e),{},{status:va})}))),r=i),n.push(j(j({},l),{},{status:ga})),r+=1,t=!0;break}}t||n.push(j(j({},e),{},{status:ha}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return j(j({},e),{},{status:va})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ha}))).forEach((function(t){t.key===e&&(t.status=ga)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ba||e.status!==ha}))}}}]),n}();R(t,"defaultProps",{component:"div"})}(ta);const $a=r.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return dr("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&($a.displayName="PropWarning");var ka="production"!==process.env.NODE_ENV?$a:()=>null,Oa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let Na=!1;process.env.NODE_ENV;const Pa=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ia;const Ra=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:v,legacyLocale:g,parentContext:h,iconPrefixCls:b,theme:y,componentDisabled:w,segmented:x,statistic:E,spin:C,calendar:S,carousel:$,cascader:k,collapse:O,typography:N,checkbox:P,descriptions:I,divider:R,drawer:M,skeleton:j,steps:_,image:A,layout:F,list:B,mentions:z,modal:D,progress:L,result:H,slider:V,breadcrumb:W,menu:q,pagination:X,input:G,textArea:K,empty:U,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ve,wave:ge,dropdown:he,warning:be,tour:ye,floatButtonGroup:we,variant:xe,inputNumber:Ee,treeSelect:Ce}=e,Se=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||h.getPrefixCls("");return t?`${o}-${t}`:o}),[h.getPrefixCls,e.prefixCls]),$e=b||h.iconPrefixCls||Mo,ke=n||h.csp;$i($e,ke);const Oe=function(e,t,n){var r,o;const i=dr("ConfigProvider"),a=e||{},l=!1!==a.inherit&&t?t:Object.assign(Object.assign({},Po),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:Po.hashed,cssVar:null==t?void 0:t.cssVar}),c=Mi();if("production"!==process.env.NODE_ENV){const e=a.cssVar||l.cssVar,t=!!("object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||c);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return T((()=>{var r,o;if(!e)return t;const i=Object.assign({},l.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const s=`css-var-${c.replace(/:/g,"")}`,u=(null!==(r=a.cssVar)&&void 0!==r?r:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof l.cssVar?l.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||s});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:i,cssVar:u})}),[a,l],((e,t)=>e.some(((e,n)=>!tt(e,t[n],!0)))))}(y,h.theme,{prefixCls:Se("")});"production"!==process.env.NODE_ENV&&(Na=Na||!!Oe);const Ne={csp:ke,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||g,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=m?m:p,popupOverflow:v,getPrefixCls:Se,iconPrefixCls:$e,theme:Oe,segmented:x,statistic:E,spin:C,calendar:S,carousel:$,cascader:k,collapse:O,typography:N,checkbox:P,descriptions:I,divider:R,drawer:M,skeleton:j,steps:_,image:A,input:G,textArea:K,layout:F,list:B,mentions:z,modal:D,progress:L,result:H,slider:V,breadcrumb:W,menu:q,pagination:X,empty:U,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ve,wave:ge,dropdown:he,warning:be,tour:ye,floatButtonGroup:we,variant:xe,inputNumber:Ee,treeSelect:Ce};if("production"!==process.env.NODE_ENV){dr("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Pe=Object.assign({},h);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&(Pe[e]=Ne[e])})),Pa.forEach((t=>{const n=e[t];n&&(Pe[t]=n)})),void 0!==o&&(Pe.button=Object.assign({autoInsertSpace:o},Pe.button));const Ie=T((()=>Pe),Pe,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Re=r.useMemo((()=>({prefixCls:$e,csp:ke})),[$e,ke]);let Me=r.createElement(r.Fragment,null,r.createElement(ka,{dropdownMatchSelectWidth:p}),t);const je=r.useMemo((()=>{var e,t,n,r;return ar((null===(e=br.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ie.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ie.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Ie,null==l?void 0:l.validateMessages]);Object.keys(je).length>0&&(Me=r.createElement(pr.Provider,{value:je},Me)),c&&(Me=r.createElement(Cr,{locale:c,_ANT_MARK__:Er},Me)),($e||ke)&&(Me=r.createElement(er.Provider,{value:Re},Me)),s&&(Me=r.createElement(Do,{size:s},Me)),Me=r.createElement(Sa,null,Me);const _e=r.useMemo((()=>{const e=Oe||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=Oa(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?mt(t):No,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=mt(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},wo),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[Oe]);return y&&(Me=r.createElement(Io.Provider,{value:_e},Me)),Ie.warning&&(Me=r.createElement(ur.Provider,{value:Ie.warning},Me)),void 0!==w&&(Me=r.createElement(Bo,{disabled:w},Me)),r.createElement(_o.Provider,{value:Ie},Me)},Ma=e=>{const t=r.useContext(_o),n=r.useContext(xr);return r.createElement(Ra,Object.assign({parentContext:t,legacyLocale:n},e))};function ja(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function _a(e){return function(e){return ja(e)instanceof ShadowRoot}(e)?ja(e):null}function Aa(e){return"object"===P(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===P(e.icon)||"function"==typeof e.icon)}function Ta(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function Fa(t,n,r){return r?e.createElement(t.tag,j(j({key:n},Ta(t.attrs)),r),(t.children||[]).map((function(e,r){return Fa(e,"".concat(n,"-").concat(t.tag,"-").concat(r))}))):e.createElement(t.tag,j({key:n},Ta(t.attrs)),(t.children||[]).map((function(e,r){return Fa(e,"".concat(n,"-").concat(t.tag,"-").concat(r))})))}function Ba(e){return no(e)[0]}function za(e){return e?Array.isArray(e)?e:[e]:[]}Ma.ConfigContext=_o,Ma.SizeContext=zo,Ma.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Ia=t),r&&function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)&&("production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),To(Ia||Ro,r))},Ma.useConfig=function(){return{componentDisabled:e.useContext(Fo),componentSize:e.useContext(zo)}},Object.defineProperty(Ma,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),zo)}),"production"!==process.env.NODE_ENV&&(Ma.displayName="ConfigProvider");var Da=["icon","className","onClick","style","primaryColor","secondaryColor"],La={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ha=function(t){var n,o,i,a,l,c,s,u=t.icon,d=t.className,f=t.onClick,p=t.style,m=t.primaryColor,v=t.secondaryColor,g=et(t,Da),h=r.useRef(),b=La;if(m&&(b={primaryColor:m,secondaryColor:v||Ba(m)}),n=h,o=e.useContext(er),i=o.csp,a=o.prefixCls,l="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",a&&(l=l.replace(/anticon/g,a)),e.useEffect((function(){var e=_a(n.current);Je(l,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),c=Aa(u),s="icon should be icon definiton, but got ".concat(u),N(c,"[@ant-design/icons] ".concat(s)),!Aa(u))return null;var y=u;return y&&"function"==typeof y.icon&&(y=j(j({},y),{},{icon:y.icon(b.primaryColor,b.secondaryColor)})),Fa(y.icon,"svg-".concat(y.name),j(j({className:d,onClick:f,style:p,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:h}))};function Va(e){var t=De(za(e),2),n=t[0],r=t[1];return Ha.setTwoToneColors({primaryColor:n,secondaryColor:r})}Ha.displayName="IconReact",Ha.getTwoToneColors=function(){return j({},La)},Ha.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;La.primaryColor=t,La.secondaryColor=n||Ba(t),La.calculated=!!n};var Wa=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Va(po.primary);var qa=r.forwardRef((function(e,t){var n=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=et(e,Wa),d=r.useContext(er),f=d.prefixCls,v=void 0===f?"anticon":f,g=d.rootClassName,h=p(g,v,R(R({},"".concat(v,"-").concat(o.name),!!o.name),"".concat(v,"-spin"),!!i||"loading"===o.name),n),b=l;void 0===b&&c&&(b=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=De(za(s),2),x=w[0],E=w[1];return r.createElement("span",m({role:"img","aria-label":o.name},u,{ref:t,tabIndex:b,onClick:c,className:h}),r.createElement(Ha,{icon:o,primaryColor:x,secondaryColor:E,style:y}))}));qa.displayName="AntdIcon",qa.getTwoToneColor=function(){var e=Ha.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},qa.setTwoToneColor=Va;var Xa={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Ga=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Xa}))},Ka=r.forwardRef(Ga);"production"!==process.env.NODE_ENV&&(Ka.displayName="CloseCircleFilled");var Ua={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Ya=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Ua}))},Qa=r.forwardRef(Ya);"production"!==process.env.NODE_ENV&&(Qa.displayName="CloseOutlined");var Za="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Ja(e,t){return 0===e.indexOf(t)}function el(t){return t&&e.isValidElement(t)&&t.type===e.Fragment}const tl=(t,n,r)=>e.isValidElement(t)?e.cloneElement(t,"function"==typeof r?r(t.props||{}):r):n;function nl(e,t){return tl(e,e,t)}const rl=e=>{const[,,,,t]=yi();return t?`${e}-css-var`:""};var ol={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=ol.F1&&t<=ol.F12)return!1;switch(t){case ol.ALT:case ol.CAPS_LOCK:case ol.CONTEXT_MENU:case ol.CTRL:case ol.DOWN:case ol.END:case ol.ESC:case ol.HOME:case ol.INSERT:case ol.LEFT:case ol.MAC_FF_META:case ol.META:case ol.NUMLOCK:case ol.NUM_CENTER:case ol.PAGE_DOWN:case ol.PAGE_UP:case ol.PAUSE:case ol.PRINT_SCREEN:case ol.RIGHT:case ol.SHIFT:case ol.UP:case ol.WIN_KEY:case ol.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ol.ZERO&&e<=ol.NINE)return!0;if(e>=ol.NUM_ZERO&&e<=ol.NUM_MULTIPLY)return!0;if(e>=ol.A&&e<=ol.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ol.SPACE:case ol.QUESTION_MARK:case ol.NUM_PLUS:case ol.NUM_MINUS:case ol.NUM_PERIOD:case ol.NUM_DIVISION:case ol.SEMICOLON:case ol.DASH:case ol.EQUALS:case ol.COMMA:case ol.PERIOD:case ol.SLASH:case ol.APOSTROPHE:case ol.SINGLE_QUOTE:case ol.OPEN_SQUARE_BRACKET:case ol.BACKSLASH:case ol.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},il={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},al=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:il}))},ll=r.forwardRef(al);"production"!==process.env.NODE_ENV&&(ll.displayName="LoadingOutlined");const cl=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(cl.displayName="zIndexContext");const sl=100,ul={Modal:sl,Drawer:sl,Popover:sl,Popconfirm:sl,Tooltip:sl,Tour:sl},dl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function fl(t,n){const[,r]=yi(),o=e.useContext(cl),i=function(e){return e in ul}(t);let a;if(void 0!==n)a=[n,n];else{let e=null!=o?o:0;e+=i?(o?0:r.zIndexPopupBase)+ul[t]:dl[t],a=[void 0===o?n:e,e]}if("production"!==process.env.NODE_ENV){const e=dr(t),o=r.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&e(void 0!==n||i<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function pl(){pl=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new R(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",v="completed",g={};function h(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(M([])));E&&E!==n&&r.call(E,a)&&(w=E);var C=y.prototype=h.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function $(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==P(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=O(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(P(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S($.prototype),s($.prototype,l,(function(){return this})),t.AsyncIterator=$,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new $(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function ml(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function vl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ml(i,r,o,a,l,"next",e)}function l(e){ml(i,r,o,a,l,"throw",e)}a(void 0)}))}}var gl,hl=j({},o),bl=hl.version,yl=hl.render,wl=hl.unmountComponentAtNode;try{Number((bl||"").split(".")[0])>=18&&(gl=hl.createRoot)}catch(e){}function xl(e){var t=hl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===P(t)&&(t.usingClientEntryPoint=e)}var El="__rc_react_root__";function Cl(e,t){gl?function(e,t){xl(!0);var n=t[El]||gl(t);xl(!1),n.render(e),t[El]=n}(e,t):function(e,t){yl(e,t)}(e,t)}function Sl(e){return $l.apply(this,arguments)}function $l(){return($l=vl(pl().mark((function e(t){return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[El])||void 0===e||e.unmount(),delete t[El]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kl(e){wl(e)}function Ol(){return(Ol=vl(pl().mark((function e(t){return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===gl){e.next=2;break}return e.abrupt("return",Sl(t));case 2:kl(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Nl=()=>({height:0,opacity:0}),Pl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Il=e=>({height:e?e.offsetHeight:0}),Rl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Ml=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ro}-motion-collapse`,onAppearStart:Nl,onEnterStart:Nl,onAppearActive:Pl,onEnterActive:Pl,onLeaveStart:Il,onLeaveActive:Nl,onAppearEnd:Rl,onEnterEnd:Rl,onLeaveEnd:Rl,motionDeadline:500}},jl=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var _l=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};const Al=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var Tl=Oi("Wave",(e=>[Al(e)]));const Fl=`${Ro}-wave-target`;function Bl(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function zl(e){return Number.isNaN(e)?0:e}const Dl=e=>{const{className:t,target:n,component:o}=e,i=r.useRef(null),[a,l]=r.useState(null),[c,s]=r.useState([]),[u,d]=r.useState(0),[f,m]=r.useState(0),[v,g]=r.useState(0),[h,b]=r.useState(0),[y,w]=r.useState(!1),x={left:u,top:f,width:v,height:h,borderRadius:c.map((e=>`${e}px`)).join(" ")};function E(){const e=getComputedStyle(n);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Bl(t)?t:Bl(n)?n:Bl(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:zl(-parseFloat(r))),m(t?n.offsetTop:zl(-parseFloat(o))),g(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>zl(parseFloat(e)))))}if(a&&(x["--wave-color"]=a),r.useEffect((()=>{if(n){const e=Fe((()=>{E(),w(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(E),t.observe(n)),()=>{Fe.cancel(e),null==t||t.disconnect()}}}),[]),!y)return null;const C=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(Fl));return r.createElement(ma,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(function(e){return Ol.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:o}=e;return r.createElement("div",{ref:B(i,n),className:p(t,o,{"wave-quick":C}),style:x})}))},Ll=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),Cl(r.createElement(Dl,Object.assign({},t,{target:e})),i)},Hl=(e,t,n)=>{const{wave:o}=r.useContext(_o),[,i,a]=yi(),l=Ko((r=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${Fl}`)||l,{showEffect:s}=o||{};(s||Ll)(c,{className:t,token:i,component:n,event:r,hashId:a})})),c=r.useRef();return e=>{Fe.cancel(c.current),c.current=Fe((()=>{l(e)}))}},Vl=t=>{const{children:n,disabled:r,component:o}=t,{getPrefixCls:i}=e.useContext(_o),a=e.useRef(null),l=i("wave"),[,c]=Tl(l),s=Hl(a,p(l,c),o);if(e.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!_l(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!e.isValidElement(n))return null!=n?n:null;return nl(n,{ref:D(n)?B(n.ref,a):a})};"production"!==process.env.NODE_ENV&&(Vl.displayName="Wave");const Wl=t=>{const n=e.useContext(zo);return e.useMemo((()=>t?"string"==typeof t?null!=t?t:n:t instanceof Function?t(n):n:n),[t,n])},ql=r.createContext(null),Xl=(e,t)=>{const n=r.useContext(ql),o=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return p(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},Gl=e=>{let{children:t}=e;return r.createElement(ql.Provider,{value:null},t)};var Kl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ul=r.createContext(void 0),Yl=/^[\u4e00-\u9fa5]{2}$/,Ql=Yl.test.bind(Yl);function Zl(e){return"string"==typeof e}function Jl(e){return"text"===e||"link"===e}function ec(t,n){let r=!1;const o=[];return e.Children.forEach(t,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),e.Children.map(o,(t=>function(t,n){if(null==t)return;const r=n?" ":"";return"string"!=typeof t&&"number"!=typeof t&&Zl(t.type)&&Ql(t.props.children)?nl(t,{children:t.props.children.split("").join(r)}):Zl(t)?Ql(t)?e.createElement("span",null,t.split("").join(r)):e.createElement("span",null,t):el(t)?e.createElement("span",null,t):t}(t,n)))}const tc=e.forwardRef(((t,n)=>{const{className:r,style:o,children:i,prefixCls:a}=t,l=p(`${a}-icon`,r);return e.createElement("span",{ref:n,className:l,style:o},i)})),nc=e.forwardRef(((t,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=t,l=p(`${r}-loading-icon`,o);return e.createElement(tc,{prefixCls:r,className:l,style:i,ref:n},e.createElement(ll,{className:a}))})),rc=()=>({width:0,opacity:0,transform:"scale(0)"}),oc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ic=t=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=t,l=!!r;return o?e.createElement(nc,{prefixCls:n,className:i,style:a}):e.createElement(ma,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:rc,onAppearActive:oc,onEnterStart:rc,onEnterActive:oc,onLeaveStart:oc,onLeaveActive:rc},((t,r)=>{let{className:o,style:l}=t;return e.createElement(nc,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))},ac=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),lc=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},ac(`${t}-primary`,o),ac(`${t}-danger`,i)]}},cc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return ti(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},sc=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Eo(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Eo(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Eo(s);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},uc=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${xt(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Si(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},dc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),fc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),pc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),mc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),vc=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},dc(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),gc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},mc(e))}),hc=e=>Object.assign({},gc(e)),bc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),yc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),dc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),vc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},dc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),gc(e))}),wc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),dc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),vc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},dc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),vc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gc(e))}),xc=e=>Object.assign(Object.assign({},yc(e)),{borderStyle:"dashed"}),Ec=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},dc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),bc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},dc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),bc(e))}),Cc=e=>Object.assign(Object.assign(Object.assign({},dc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),bc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},bc(e)),dc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Sc=e=>{const{componentCls:t}=e;return{[`${t}-default`]:yc(e),[`${t}-primary`]:wc(e),[`${t}-dashed`]:xc(e),[`${t}-link`]:Ec(e),[`${t}-text`]:Cc(e),[`${t}-ghost`]:vc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},$c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${xt(s)} ${xt(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:fc(e)},{[`${n}${n}-round${t}`]:pc(e)}]},kc=e=>{const t=ti(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return $c(t,e.componentCls)},Oc=e=>{const t=ti(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return $c(t,`${e.componentCls}-sm`)},Nc=e=>{const t=ti(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return $c(t,`${e.componentCls}-lg`)},Pc=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Ic=ki("Button",(e=>{const t=cc(e);return[uc(t),kc(t),Oc(t),Nc(t),Pc(t),Sc(t),lc(t)]}),sc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Rc(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Mc(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function jc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Rc(e,r,t)),Mc(n,r,t))}}function _c(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ac(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_c(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Tc=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${xt(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${xt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var Fc=Ni(["Button","compact"],(e=>{const t=cc(e);return[jc(t),Ac(t),Tc(t)]}),sc),Bc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const zc=e.forwardRef(((t,n)=>{var r,o,i;const{loading:a=!1,prefixCls:l,type:c,danger:s=!1,shape:u="default",size:d,styles:f,disabled:m,className:v,rootClassName:g,children:h,icon:b,iconPosition:y="start",ghost:w=!1,block:x=!1,htmlType:E="button",classNames:C,style:S={},autoInsertSpace:$}=t,k=Bc(t,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=c||"default",{getPrefixCls:N,direction:P,button:I}=e.useContext(_o),R=null===(r=null!=$?$:null==I?void 0:I.autoInsertSpace)||void 0===r||r,M=N("btn",l),[j,_,A]=Ic(M),T=e.useContext(Fo),F=null!=m?m:T,z=e.useContext(Ul),D=e.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a)),[a]),[L,H]=e.useState(D.loading),[V,W]=e.useState(!1),q=B(n,e.createRef()),X=1===e.Children.count(h)&&!b&&!Jl(O);e.useEffect((()=>{let e=null;return D.delay>0?e=setTimeout((()=>{e=null,H(!0)}),D.delay):H(D.loading),function(){e&&(clearTimeout(e),e=null)}}),[D]),e.useEffect((()=>{if(!q||!q.current||!R)return;const e=q.current.textContent;X&&Ql(e)?V||W(!0):V&&W(!1)}),[q]);const G=e=>{const{onClick:n}=t;L||F?e.preventDefault():null==n||n(e)};if("production"!==process.env.NODE_ENV){const e=dr("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof b&&b.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(w&&Jl(O)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:K,compactItemClassnames:U}=Xl(M,P),Y={large:"lg",small:"sm",middle:void 0},Q=Wl((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:K)&&void 0!==t?t:z)&&void 0!==n?n:e})),Z=Q&&Y[Q]||"",J=L?"loading":b,ee=Oe(k,["navigate"]),te=p(M,_,A,{[`${M}-${u}`]:"default"!==u&&u,[`${M}-${O}`]:O,[`${M}-${Z}`]:Z,[`${M}-icon-only`]:!h&&0!==h&&!!J,[`${M}-background-ghost`]:w&&!Jl(O),[`${M}-loading`]:L,[`${M}-two-chinese-chars`]:V&&R&&!L,[`${M}-block`]:x,[`${M}-dangerous`]:s,[`${M}-rtl`]:"rtl"===P,[`${M}-icon-end`]:"end"===y},U,v,g,null==I?void 0:I.className),ne=Object.assign(Object.assign({},null==I?void 0:I.style),S),re=p(null==C?void 0:C.icon,null===(o=null==I?void 0:I.classNames)||void 0===o?void 0:o.icon),oe=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),(null===(i=null==I?void 0:I.styles)||void 0===i?void 0:i.icon)||{}),ie=b&&!L?e.createElement(tc,{prefixCls:M,className:re,style:oe},b):e.createElement(ic,{existIcon:!!b,prefixCls:M,loading:L}),ae=h||0===h?ec(h,X&&R):null;if(void 0!==ee.href)return j(e.createElement("a",Object.assign({},ee,{className:p(te,{[`${M}-disabled`]:F}),href:F?void 0:ee.href,style:ne,onClick:G,ref:q,tabIndex:F?-1:0}),ie,ae));let le=e.createElement("button",Object.assign({},k,{type:E,className:te,style:ne,onClick:G,disabled:F,ref:q}),ie,ae,!!U&&e.createElement(Fc,{key:"compact",prefixCls:M}));return Jl(O)||(le=e.createElement(Vl,{component:"Button",disabled:L},le)),j(le)})),Dc=zc;Dc.Group=e=>{const{getPrefixCls:t,direction:n}=r.useContext(_o),{prefixCls:o,size:i,className:a}=e,l=Kl(e,["prefixCls","size","className"]),c=t("btn-group",o),[,,s]=yi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=dr("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=p(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===n},a,s);return r.createElement(Ul.Provider,{value:i},r.createElement("div",Object.assign({},l,{className:d})))},Dc.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(Dc.displayName="Button");var Lc=r.createContext(null),Hc=[];function Vc(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";Je("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ze(t),{width:f,height:p}}(e):{width:0,height:0}}var Wc="rc-util-locker-".concat(Date.now()),qc=0;function Xc(e){var t=!!e,n=De(r.useState((function(){return qc+=1,"".concat(Wc,"_").concat(qc)})),1)[0];Ot((function(){if(t){var e=Vc(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Je("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Ze(n);return function(){Ze(n)}}),[t,n])}var Gc=function(e){return!1!==e&&(He()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Kc=r.forwardRef((function(e,n){var o=e.open,i=e.autoLock,a=e.getContainer,l=e.debug,c=e.autoDestroy,s=void 0===c||c,u=e.children,d=De(r.useState(o),2),f=d[0],p=d[1],m=f||o;"production"!==process.env.NODE_ENV&&N(He()||!o,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),r.useEffect((function(){(s||o)&&p(o)}),[o,s]);var v=De(r.useState((function(){return Gc(a)})),2),g=v[0],h=v[1];r.useEffect((function(){var e=Gc(a);h(null!=e?e:null)}));var b=function(e,t){var n=De(r.useState((function(){if(!He())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e})),1)[0],o=r.useRef(!1),i=r.useContext(Lc),a=De(r.useState(Hc),2),l=a[0],c=a[1],s=i||(o.current?void 0:function(e){c((function(t){return[e].concat(Re(t))}))});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return Ot((function(){return e?i?i(u):u():d(),d}),[e]),Ot((function(){l.length&&(l.forEach((function(e){return e()})),c(Hc))}),[l]),[n,s]}(m&&!g,l),y=De(b,2),w=y[0],x=y[1],E=null!=g?g:w;Xc(i&&o&&He()&&(E===w||E===document.body));var C=null;u&&D(u)&&n&&(C=u.ref);var S=z(C,n);if(!m||!He()||void 0===g)return null;var $=!1===E||!1,k=u;return n&&(k=r.cloneElement(u,{ref:S})),r.createElement(Lc.Provider,{value:x},$?k:t.createPortal(k,E))}));"production"!==process.env.NODE_ENV&&(Kc.displayName="Portal");var Uc=0,Yc=j({},r).useId,Qc=Yc?function(e){var t=Yc();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=De(r.useState("ssr-id"),2),n=t[0],o=t[1];return r.useEffect((function(){var e=Uc;Uc+=1,o("rc_unique_".concat(e))}),[]),e||("test"===process.env.NODE_ENV?"test-id":n)},Zc="RC_FORM_INTERNAL_HOOKS",Jc=function(){N(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},es=r.createContext({getFieldValue:Jc,getFieldsValue:Jc,getFieldError:Jc,getFieldWarning:Jc,getFieldsError:Jc,isFieldsTouched:Jc,isFieldTouched:Jc,isFieldValidating:Jc,isFieldsValidating:Jc,resetFields:Jc,setFields:Jc,setFieldValue:Jc,setFieldsValue:Jc,validateFields:Jc,submit:Jc,getInternalHooks:function(){return Jc(),{dispatch:Jc,initEntityValue:Jc,registerField:Jc,useSubscribe:Jc,setInitialValues:Jc,destroyForm:Jc,setCallbacks:Jc,registerWatch:Jc,getFields:Jc,setValidateMessages:Jc,setPreserve:Jc,getInitialValue:Jc}}}),ts=r.createContext(null);function ns(e){return null==e?[]:Array.isArray(e)?e:[e]}function rs(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var os=rs();function is(e){var t="function"==typeof Map?new Map:void 0;return is=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(ye())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ge(o,n.prototype),o}(e,arguments,be(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ge(n,e)},is(e)}var as=/%[sdj%]/g,ls=function(){};function cs(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function ss(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(as,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function us(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function ds(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(ls=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var fs=function(){he(t,is(Error));var e=xe(t);function t(n,r){var o;return pe(this,t),R(we(o=e.call(this,"Async Validation Error")),"errors",void 0),R(we(o),"fields",void 0),o.errors=n,o.fields=r,o}return ve(t)}();function ps(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Re(e[n]||[]))})),t}(e);ds(a,n,(function(e){return r(e),e.length?i(new fs(e,cs(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new fs(u,cs(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?ds(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Re(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function ms(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function vs(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===P(r)&&"object"===P(e[n])?e[n]=j(j({},e[n]),r):e[n]=r}return e}var gs,hs="enum",bs=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!us(t,i||e.type)||r.push(ss(o.messages.required,e.fullField))},ys=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,ws=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,xs={integer:function(e){return xs.number(e)&&parseInt(e,10)===e},float:function(e){return xs.number(e)&&!xs.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===P(e)&&!xs.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(ys)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(gs)return gs;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return gs=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(ws)}},Es={required:bs,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(ss(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)bs(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?xs[i](t)||r.push(ss(o.messages.types[i],e.fullField,e.type)):i&&P(t)!==e.type&&r.push(ss(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(ss(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(ss(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(ss(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(ss(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[hs]=Array.isArray(e[hs])?e[hs]:[],-1===e[hs].indexOf(t)&&r.push(ss(o.messages[hs],e.fullField,e[hs].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(ss(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(ss(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Cs=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,i)&&!e.required)return n();Es.required(e,t,r,a,o,i),us(t,i)||Es.type(e,t,r,a,o)}n(a)},Ss={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,"string")&&!e.required)return n();Es.required(e,t,r,i,o,"string"),us(t,"string")||(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o),Es.pattern(e,t,r,i,o),!0===e.whitespace&&Es.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),us(t)||Es.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Es.required(e,t,r,i,o,"array"),null!=t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,"string")&&!e.required)return n();Es.required(e,t,r,i,o),us(t,"string")||Es.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,"date")&&!e.required)return n();var a;if(Es.required(e,t,r,i,o),!us(t,"date"))a=t instanceof Date?t:new Date(t),Es.type(e,a,r,i,o),a&&Es.range(e,a.getTime(),r,i,o)}n(i)},url:Cs,hex:Cs,email:Cs,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":P(t);Es.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o)}n(i)}},$s=function(){function e(t){pe(this,e),R(this,"rules",null),R(this,"_messages",os),this.define(t)}return ve(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==P(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=vs(rs(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===os&&(a=rs()),vs(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=j({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":P(i)))),(a="function"==typeof a?{validator:a}:j({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return ps(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==P(a.fields)&&"object"!==P(a.defaultField));function s(e,t){return j(j({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Re(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(ms(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(ms(a,r)):o.error&&(d=[o.error(a,ss(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=j(j({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Re(d)),e&&e.length&&t.push.apply(t,Re(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,Re(t)):o.push(t);o.length?(a=cs(o),i(o,a)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Ss.hasOwnProperty(e.type))throw new Error(ss("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Ss.required:Ss[this.getType(e)]||void 0}}]),e}();R($s,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ss[e]=t})),R($s,"warning",ls),R($s,"messages",os),R($s,"validators",Ss);var ks="'${name}' is not a valid ${type}",Os={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:ks,method:ks,array:ks,object:ks,number:ks,date:ks,boolean:ks,integer:ks,float:ks,regexp:ks,email:ks,url:ks,hex:ks},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Ns=$s;function Ps(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var Is="CODE_LOGIC_ERROR";function Rs(e,t,n,r,o){return Ms.apply(this,arguments)}function Ms(){return Ms=vl(pl().mark((function e(t,n,o,i,a){var l,c,s,u,d,f,p,m,v;return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=j({},o)).ruleIndex,Ns.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Is)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new Ns(R({},t,[l])),d=ar(Os,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(R({},t,n),j({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,t){var n=e.message,o=n===Is?d.default:n;return r.isValidElement(o)?r.cloneElement(o,{key:"error_".concat(t)}):o})));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Rs("".concat(t,".").concat(n),e,s,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Re(e),Re(t))}),[]));case 23:return m=j(j({},o),{},{name:t,enum:(o.enum||[]).join(", ")},a),v=f.map((function(e){return"string"==typeof e?Ps(e,m):e})),e.abrupt("return",v);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Ms.apply(this,arguments)}function js(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=j(j({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){N(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));N(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=vl(pl().mark((function e(n,o){var a,s,u;return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Rs(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map((function(e){return Rs(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return As.apply(this,arguments)}(s):function(e){return _s.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function _s(){return(_s=vl(pl().mark((function e(t){return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Re(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function As(){return(As=vl(pl().mark((function e(t){var n;return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ts(e){return ns(e)}function Fs(e,t){var n={};return t.forEach((function(t){var r=tr(e,t);n=rr(n,t,r)})),n}function Bs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return zs(t,e,n)}))}function zs(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function Ds(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===P(t.target)&&e in t.target?t.target[e]:t}function Ls(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Re(e.slice(0,n)),[o],Re(e.slice(n,t)),Re(e.slice(t+1,r))):i<0?[].concat(Re(e.slice(0,t)),Re(e.slice(t+1,n+1)),[o],Re(e.slice(n+1,r))):e}var Hs=["name"],Vs=[];function Ws(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var qs=function(){he(t,r.Component);var e=xe(t);function t(n){var o;(pe(this,t),R(we(o=e.call(this,n)),"state",{resetCount:0}),R(we(o),"cancelRegisterFunc",null),R(we(o),"mounted",!1),R(we(o),"touched",!1),R(we(o),"dirty",!1),R(we(o),"validatePromise",void 0),R(we(o),"prevValidating",void 0),R(we(o),"errors",Vs),R(we(o),"warnings",Vs),R(we(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Ts(r)),o.cancelRegisterFunc=null})),R(we(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Re(void 0===n?[]:n),Re(t)):[]})),R(we(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),R(we(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),R(we(o),"metaCache",null),R(we(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=j(j({},o.getMeta()),{},{destroy:e});tt(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),R(we(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(s),p=t&&Bs(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||tt(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Vs,o.warnings=Vs,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Vs,o.warnings=Vs,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&Ws(i,e,s,d,f,n))return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||Vs),"warnings"in m&&(o.warnings=m.warnings||Vs),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&Bs(t,u,!0))return void o.reRender();if(i&&!u.length&&Ws(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Ts).some((function(e){return Bs(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&Ws(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),R(we(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(vl(pl().mark((function r(){var a,l,s,u,d,f,p;return pl().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||ns(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=js(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vs;if(o.validatePromise===c){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?Vs:o;t?r.push.apply(r,Re(i)):n.push.apply(n,Re(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=c,o.dirty=!0,o.errors=Vs,o.warnings=Vs,o.triggerMetaEvent(),o.reRender()),c})),R(we(o),"isFieldValidating",(function(){return!!o.validatePromise})),R(we(o),"isFieldTouched",(function(){return o.touched})),R(we(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Zc).getInitialValue)(o.getNamePath())})),R(we(o),"getErrors",(function(){return o.errors})),R(we(o),"getWarnings",(function(){return o.warnings})),R(we(o),"isListField",(function(){return o.props.isListField})),R(we(o),"isList",(function(){return o.props.isList})),R(we(o),"isPreserve",(function(){return o.props.preserve})),R(we(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),R(we(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return j(j({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=x(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),R(we(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return tr(e||t(!0),n)})),R(we(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,v=p(Zc).dispatch,g=o.getValue(),h=s||function(e){return R({},c,e)},b=e[r],y=void 0!==n?h(g):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){N("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var w=j(j({},e),y);return w[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):Ds.apply(void 0,[c].concat(n)),l&&(e=l(e,g,m(!0))),v({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},ns(d||[]).forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&v({type:"validateField",namePath:f,triggerName:e})}})),w})),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(Zc).initEntityValue)(we(o));return o}return ve(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Zc).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),i=o.child;return o.isFunction?e=i:r.isValidElement(i)?e=r.cloneElement(i,this.getControlled(i.props)):(N(!i,"`children` of Field is not validate ReactElement."),e=i),r.createElement(r.Fragment,{key:t},e)}}]),t}();function Xs(e){var t=e.name,n=et(e,Hs),o=r.useContext(es),i=r.useContext(ts),a=void 0!==t?Ts(t):void 0,l="keep";return n.isListField||(l="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===n.preserve&&n.isListField&&a.length<=1&&N(!1,"`preserve` should not apply on Form.List fields."),r.createElement(qs,m({key:l,name:a,isListField:!!i},n,{fieldContext:o}))}R(qs,"contextType",es),R(qs,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Gs="__@field_split__";function Ks(e){return e.map((function(e){return"".concat(P(e),":").concat(e)})).join(Gs)}var Us=function(){function e(){pe(this,e),R(this,"kvs",new Map)}return ve(e,[{key:"set",value:function(e,t){this.kvs.set(Ks(e),t)}},{key:"get",value:function(e){return this.kvs.get(Ks(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Ks(e))}},{key:"map",value:function(e){return Re(this.kvs.entries()).map((function(t){var n=De(t,2),r=n[0],o=n[1],i=r.split(Gs);return e({key:i.map((function(e){var t=De(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),Ys=["name"],Qs=ve((function e(t){var n=this;pe(this,e),R(this,"formHooked",!1),R(this,"forceRootUpdate",void 0),R(this,"subscribable",!0),R(this,"store",{}),R(this,"fieldEntities",[]),R(this,"initialValues",{}),R(this,"callbacks",{}),R(this,"validateMessages",null),R(this,"preserve",null),R(this,"lastValidatePromise",null),R(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),R(this,"getInternalHooks",(function(e){return e===Zc?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(N(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),R(this,"useSubscribe",(function(e){n.subscribable=e})),R(this,"prevWithoutPreserves",null),R(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=ar(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=rr(o,n,tr(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),R(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new Us;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),R(this,"getInitialValue",(function(e){var t=tr(n.initialValues,e);return e.length?ar(t):t})),R(this,"setCallbacks",(function(e){n.callbacks=e})),R(this,"setValidateMessages",(function(e){n.validateMessages=e})),R(this,"setPreserve",(function(e){n.preserve=e})),R(this,"watchList",[]),R(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),R(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),R(this,"timeoutId",null),R(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||N(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),R(this,"updateStore",(function(e){n.store=e})),R(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),R(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Us;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),R(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Ts(e);return t.get(n)||{INVALIDATE_NAME_PATH:Ts(e)}}))})),R(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===P(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)})),Fs(n.store,l.map(Ts))})),R(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Ts(e);return tr(n.store,t)})),R(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Ts(e[n]),errors:[],warnings:[]}}))})),R(this,"getFieldError",(function(e){n.warningUnhooked();var t=Ts(e);return n.getFieldsError([t])[0].errors})),R(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Ts(e);return n.getFieldsError([t])[0].warnings})),R(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Ts),l=!1):(o=null,l=i):(o=i.map(Ts),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every((function(e){return s(e)||e.isList()})):c.some(s);var u=new Us;o.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Re(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),R(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),R(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Ts);return t.some((function(e){var t=e.getNamePath();return Bs(r,t)&&e.isFieldValidating()}))})),R(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),R(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Us,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Re(Re(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))N(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)N(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(rr(n.store,o,Re(i)[0].value))}}}}))})),R(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(ar(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Ts);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(rr(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),R(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=et(e,Ys),a=Ts(o);r.push(a),"value"in i&&n.updateStore(rr(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),R(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=j(j({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),R(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===tr(n.store,r)&&n.updateStore(rr(n.store,r,t))}})),R(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),R(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!zs(e.getNamePath(),t)}))){var l=n.store;n.updateStore(rr(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),R(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),R(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=j(j({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),R(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Re(r))}),r})),R(this,"updateValue",(function(e,t){var r=Ts(e),o=n.store;n.updateStore(rr(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Fs(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Re(i)))})),R(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=ar(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),R(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),R(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Us;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Ts(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),R(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Us;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return Bs(e,n)}));a.length&&r(a,o)}})),R(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Ts):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||Bs(a,t,d)){var r=e.validateRules(j({validateMessages:j(j({},Os),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Re(n)):r.push.apply(r,Re(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var v=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(v),m})),R(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function Zs(e){var t=r.useRef(),n=De(r.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new Qs((function(){n({})}));t.current=o.getForm()}return[t.current]}var Js=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],tu=function(e,t){var n=e.name,o=e.initialValues,i=e.fields,a=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,v=e.onValuesChange,g=e.onFieldsChange,h=e.onFinish,b=e.onFinishFailed,y=e.clearOnDestroy,w=et(e,eu),x=r.useRef(null),E=r.useContext(Js),C=De(Zs(a),1)[0],S=C.getInternalHooks(Zc),$=S.useSubscribe,k=S.setInitialValues,O=S.setCallbacks,N=S.setValidateMessages,I=S.setPreserve,R=S.destroyForm;r.useImperativeHandle(t,(function(){return j(j({},C),{},{nativeElement:x.current})})),r.useEffect((function(){return E.registerForm(n,C),function(){E.unregisterForm(n)}}),[E,C,n]),N(j(j({},E.validateMessages),d)),O({onValuesChange:v,onFieldsChange:function(e){if(E.triggerFormChange(n,e),g){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];g.apply(void 0,[e].concat(r))}},onFinish:function(e){E.triggerFormFinish(n,e),h&&h(e)},onFinishFailed:b}),I(l);var M,_=r.useRef(null);k(o,!_.current),_.current||(_.current=!0),r.useEffect((function(){return function(){return R(y)}}),[]);var A="function"==typeof c;A?M=c(C.getFieldsValue(!0),C):M=c;$(!A);var T=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==P(e)||"object"!==P(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Re(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(T.current||[],i||[])||C.setFields(i||[]),T.current=i}),[i,C]);var F=r.useMemo((function(){return j(j({},C),{},{validateTrigger:p})}),[C,p]),B=r.createElement(ts.Provider,{value:null},r.createElement(es.Provider,{value:F},M));return!1===u?B:r.createElement(u,m({},w,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),C.submit()},onReset:function(e){var t;e.preventDefault(),C.resetFields(),null===(t=w.onReset)||void 0===t||t.call(w,e)}}),B)};function nu(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ru="production"!==process.env.NODE_ENV?function(t){var n=t.join("__RC_FIELD_FORM_SPLIT__");N(e.useRef(n).current===n,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var ou=r.forwardRef(tu);ou.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,i=e.children,a=r.useContext(Js),l=r.useRef({});return r.createElement(Js.Provider,{value:j(j({},a),{},{validateMessages:j(j({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=j(j({},l.current),{},R({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=j({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},ou.Field=Xs,ou.List=function(e){var t=e.name,n=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=r.useContext(es),s=r.useContext(ts),u=r.useRef({keys:[],id:0}).current,d=r.useMemo((function(){var e=Ts(c.prefixName)||[];return[].concat(Re(e),Re(Ts(t)))}),[c.prefixName,t]),f=r.useMemo((function(){return j(j({},c),{},{prefixName:d})}),[c,d]),p=r.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(N(!1,"Form.List only accepts function as children."),null):r.createElement(ts.Provider,{value:p},r.createElement(es.Provider,{value:f},r.createElement(Xs,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=l?l:!!s},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(Re(u.keys.slice(0,t)),[u.id],Re(u.keys.slice(t))),i([].concat(Re(n.slice(0,t)),[e],Re(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&N(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Re(u.keys),[u.id]),i([].concat(Re(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Ls(u.keys,e,t),i(Ls(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[],"production"!==process.env.NODE_ENV&&N(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),o(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))},ou.useForm=Zs,ou.useWatch=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=De(e.useState(),2),u=s[0],d=s[1],f=e.useMemo((function(){return nu(u)}),[u]),p=e.useRef(f);p.current=f;var m=e.useContext(es),v=c||m,g=v&&v._init;"production"!==process.env.NODE_ENV&&N(2===n.length&&!c||g,"useWatch requires a form instance since it can not auto detect from context.");var h=Ts(o),b=e.useRef(h);return b.current=h,ru(h),e.useEffect((function(){if(g){var e=v.getFieldsValue,t=(0,v.getInternalHooks)(Zc).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):tr(n,b.current)},r=t((function(e,t){var r=n(e,t),o=nu(r);p.current!==o&&(p.current=o,d(r))})),i=n(e(),e(!0));return u!==i&&d(i),r}}),[g]),u};const iu=r.createContext({});"production"!==process.env.NODE_ENV&&(iu.displayName="FormItemInputContext");const au=t=>{let{children:n,status:o,override:i}=t;const a=e.useContext(iu),l=e.useMemo((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,o&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[o,i,a]);return r.createElement(iu.Provider,{value:l},n)},lu=e.createContext(void 0),cu=t=>{const{space:n,form:r,children:o}=t;if(null==o)return null;let i=o;return r&&(i=e.createElement(au,{override:!0,status:!0},i)),n&&(i=e.createElement(Gl,null,i)),i},su=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),uu=e=>({animationDuration:e,animationFillMode:"both"}),du=e=>({animationDuration:e,animationFillMode:"both"}),fu=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},uu(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},du(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},pu={"slide-up":{inKeyframes:new Zn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Zn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new Zn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new Zn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new Zn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Zn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new Zn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new Zn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},mu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=pu[t];return[fu(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},vu=new Zn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),gu=new Zn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),hu=new Zn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bu=new Zn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),yu=new Zn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wu=new Zn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),xu={zoom:{inKeyframes:vu,outKeyframes:gu},"zoom-big":{inKeyframes:hu,outKeyframes:bu},"zoom-big-fast":{inKeyframes:hu,outKeyframes:bu},"zoom-left":{inKeyframes:new Zn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Zn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Zn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Zn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:yu,outKeyframes:wu},"zoom-down":{inKeyframes:new Zn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Zn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Eu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=xu[t];return[fu(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Cu=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},Su=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$u=void 0;function ku(e,t){var n=e.prefixCls,o=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,g=e.display,h=e.order,b=e.component,y=void 0===b?"div":b,w=et(e,Su),x=l&&!g;function E(e){s(u,e)}r.useEffect((function(){return function(){E(null)}}),[]);var C,S=a&&i!==$u?a(i):v;o||(C={opacity:x?0:1,height:x?0:$u,overflowY:x?"hidden":$u,order:l?h:$u,pointerEvents:x?"none":$u,position:x?"absolute":$u});var $={};x&&($["aria-hidden"]=!0);var k=r.createElement(y,m({className:p(!o&&n,d),style:j(j({},C),f)},$,w,{ref:t}),S);return l&&(k=r.createElement(ke,{onResize:function(e){E(e.offsetWidth)},disabled:c},k)),k}var Ou=r.forwardRef(ku);function Nu(){var e=r.useRef(null);return function(n){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Fe(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){t.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(n)}}function Pu(e,t){var n=De(r.useState(t),2),o=n[0],i=n[1];return[o,Ko((function(t){e((function(){i(t)}))}))]}Ou.displayName="Item";var Iu=e.createContext(null),Ru=["component"],Mu=["className"],ju=["className"],_u=function(e,t){var n=r.useContext(Iu);if(!n){var o=e.component,i=void 0===o?"div":o,a=et(e,Ru);return r.createElement(i,m({},a,{ref:t}))}var l=n.className,c=et(n,Mu),s=e.className,u=et(e,ju);return r.createElement(Iu.Provider,{value:null},r.createElement(Ou,m({ref:t,className:p(l,s)},c,u)))},Au=r.forwardRef(_u);Au.displayName="RawItem";var Tu=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fu="responsive",Bu="invalidate";function zu(e){return"+ ".concat(e.length," ...")}function Du(t,n){var o=t.prefixCls,i=void 0===o?"rc-overflow":o,a=t.data,l=void 0===a?[]:a,c=t.renderItem,s=t.renderRawItem,u=t.itemKey,d=t.itemWidth,f=void 0===d?10:d,v=t.ssr,g=t.style,h=t.className,b=t.maxCount,y=t.renderRest,w=t.renderRawRest,x=t.suffix,E=t.component,C=void 0===E?"div":E,S=t.itemComponent,$=t.onVisibleChange,k=et(t,Tu),O="full"===v,N=Nu(),P=De(Pu(N,null),2),I=P[0],R=P[1],M=I||0,_=De(Pu(N,new Map),2),A=_[0],T=_[1],F=De(Pu(N,0),2),B=F[0],z=F[1],D=De(Pu(N,0),2),L=D[0],H=D[1],V=De(Pu(N,0),2),W=V[0],q=V[1],X=De(e.useState(null),2),G=X[0],K=X[1],U=De(e.useState(null),2),Y=U[0],Q=U[1],Z=r.useMemo((function(){return null===Y&&O?Number.MAX_SAFE_INTEGER:Y||0}),[Y,I]),J=De(e.useState(!1),2),ee=J[0],te=J[1],ne="".concat(i,"-item"),re=Math.max(B,L),oe=b===Fu,ie=l.length&&oe,ae=b===Bu,le=ie||"number"==typeof b&&l.length>b,ce=e.useMemo((function(){var e=l;return ie?e=null===I&&O?l:l.slice(0,Math.min(l.length,M/f)):"number"==typeof b&&(e=l.slice(0,b)),e}),[l,f,I,b,ie]),se=e.useMemo((function(){return ie?l.slice(Z+1):l.slice(ce.length)}),[l,ce,ie,Z]),ue=e.useCallback((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),de=e.useCallback(c||function(e){return e},[c]);function fe(e,t,n){(Y!==e||void 0!==t&&t!==G)&&(Q(e),n||(te(e<l.length-1),null==$||$(e)),void 0!==t&&K(t))}function pe(e,t){T((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function me(e){return A.get(ue(ce[e],e))}Ot((function(){if(M&&"number"==typeof re&&ce){var e=W,t=ce.length,n=t-1;if(!t)return void fe(0,null);for(var r=0;r<t;r+=1){var o=me(r);if(O&&(o=o||0),void 0===o){fe(r-1,void 0,!0);break}if(e+=o,0===n&&e<=M||r===n-1&&e+me(n)<=M){fe(n,null);break}if(e+re>M){fe(r-1,e-o-W+L);break}}x&&me(0)+W>M&&K(null)}}),[M,A,L,W,ue,ce]);var ve=ee&&!!se.length,ge={};null!==G&&ie&&(ge={position:"absolute",left:G,top:0});var he,be={prefixCls:ne,responsive:ie,component:S,invalidate:ae},ye=s?function(e,t){var n=ue(e,t);return r.createElement(Iu.Provider,{key:n,value:j(j({},be),{},{order:t,item:e,itemKey:n,registerSize:pe,display:t<=Z})},s(e,t))}:function(e,t){var n=ue(e,t);return r.createElement(Ou,m({},be,{order:t,key:n,item:e,renderItem:de,itemKey:n,registerSize:pe,display:t<=Z}))},we={order:ve?Z:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:function(e,t){H(t),z(L)},display:ve};if(w)w&&(he=r.createElement(Iu.Provider,{value:j(j({},be),we)},w(se)));else{var xe=y||zu;he=r.createElement(Ou,m({},be,we),"function"==typeof xe?xe(se):xe)}var Ee=r.createElement(C,m({className:p(!ae&&i,h),style:g,ref:n},k),ce.map(ye),le?he:null,x&&r.createElement(Ou,m({},be,{responsive:oe,responsiveDisabled:!ie,order:Z,className:"".concat(ne,"-suffix"),registerSize:function(e,t){q(t)},display:!0,style:ge}),x));return oe&&(Ee=r.createElement(ke,{onResize:function(e,t){R(t.clientWidth)},disabled:!ie},Ee)),Ee}var Lu=r.forwardRef(Du);function Hu(e){var t=e.prefixCls,n=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,m=r.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],h=n.points[1],b=g[0],y=g[1],w=h[0],x=h[1];b!==w&&["t","b"].includes(b)?"t"===b?v.top=0:v.bottom=0:v.top=f,y!==x&&["l","r"].includes(y)?"l"===y?v.left=0:v.right=0:v.left=u}return r.createElement("div",{ref:m,className:p("".concat(t,"-arrow"),l),style:v},c)}function Vu(e){var t=e.prefixCls,n=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?r.createElement(ma,m({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:p("".concat(t,"-mask"),n)})})):null}Lu.displayName="Overflow",Lu.Item=Au,Lu.RESPONSIVE=Fu,Lu.INVALIDATE=Bu;var Wu=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(Wu.displayName="PopupContent");var qu=r.forwardRef((function(e,t){var n=e.popup,o=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,g=e.arrow,h=e.arrowPos,b=e.align,y=e.motion,w=e.maskMotion,x=e.forceRender,E=e.getPopupContainer,C=e.autoDestroy,S=e.portal,$=e.zIndex,k=e.onMouseEnter,O=e.onMouseLeave,N=e.onPointerEnter,P=e.ready,I=e.offsetX,R=e.offsetY,M=e.offsetR,_=e.offsetB,A=e.onAlign,T=e.onPrepare,F=e.stretch,z=e.targetWidth,D=e.targetHeight,L="function"==typeof n?n():n,H=s||u,V=(null==E?void 0:E.length)>0,W=De(r.useState(!E||!V),2),q=W[0],X=W[1];if(Ot((function(){!q&&V&&l&&X(!0)}),[q,V,l]),!q)return null;var G="auto",K={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(P||!s){var U,Y=b.points,Q=b.dynamicInset||(null===(U=b._experimental)||void 0===U?void 0:U.dynamicInset),Z=Q&&"r"===Y[0][1],J=Q&&"b"===Y[0][0];Z?(K.right=M,K.left=G):(K.left=I,K.right=G),J?(K.bottom=_,K.top=G):(K.top=R,K.bottom=G)}var ee={};return F&&(F.includes("height")&&D?ee.height=D:F.includes("minHeight")&&D&&(ee.minHeight=D),F.includes("width")&&z?ee.width=z:F.includes("minWidth")&&z&&(ee.minWidth=z)),s||(ee.pointerEvents="none"),r.createElement(S,{open:x||H,getContainer:E&&function(){return E(l)},autoDestroy:C},r.createElement(Vu,{prefixCls:i,open:s,zIndex:$,mask:v,motion:w}),r.createElement(ke,{onResize:A,disabled:!s},(function(e){return r.createElement(ma,m({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:T,onEnterPrepare:T,visible:s,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),c(e)}}),(function(n,l){var c=n.className,u=n.style,m=p(i,c,o);return r.createElement("div",{ref:B(e,t,l),className:m,style:j(j(j(j({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},K),ee),u),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:k,onMouseLeave:O,onPointerEnter:N,onClick:f},g&&r.createElement(Hu,{prefixCls:i,arrow:g,arrowPos:h,align:b}),r.createElement(Wu,{cache:!s&&!d},L))}))})))}));"production"!==process.env.NODE_ENV&&(qu.displayName="Popup");var Xu=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=D(n),a=r.useCallback((function(e){F(t,o?o(e):e)}),[o]),l=z(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));"production"!==process.env.NODE_ENV&&(Xu.displayName="TriggerWrapper");var Gu=r.createContext(null);function Ku(e){return e?Array.isArray(e)?e:[e]:[]}function Uu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Yu(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Qu(e){return e.ownerDocument.defaultView}function Zu(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Qu(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Ju(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function ed(e){return Ju(parseFloat(e),0)}function td(e,t){var n=j({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Qu(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=ed(i),v=ed(a),g=ed(l),h=ed(c),b=Ju(Math.round(s.width/f*1e3)/1e3),y=Ju(Math.round(s.height/u*1e3)/1e3),w=(f-p-g-h)*b,x=(u-d-m-v)*y,E=m*y,C=v*y,S=g*b,$=h*b,k=0,O=0;if("clip"===r){var N=ed(o);k=N*b,O=N*y}var P=s.x+S-k,I=s.y+E-O,R=P+s.width+2*k-S-$-w,M=I+s.height+2*O-E-C-x;n.left=Math.max(n.left,P),n.top=Math.max(n.top,I),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,M)}})),n}function nd(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function rd(e,t){var n=De(t||[],2),r=n[0],o=n[1];return[nd(e.width,r),nd(e.height,o)]}function od(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function id(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function ad(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var ld=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var cd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kc,t=r.forwardRef((function(t,n){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=t.children,l=t.action,c=void 0===l?"hover":l,s=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,m=t.onPopupVisibleChange,v=t.afterPopupVisibleChange,g=t.mouseEnterDelay,h=t.mouseLeaveDelay,b=void 0===h?.1:h,y=t.focusDelay,w=t.blurDelay,x=t.mask,E=t.maskClosable,C=void 0===E||E,$=t.getPopupContainer,k=t.forceRender,O=t.autoDestroy,N=t.destroyPopupOnHide,P=t.popup,I=t.popupClassName,R=t.popupStyle,M=t.popupPlacement,A=t.builtinPlacements,T=void 0===A?{}:A,F=t.popupAlign,B=t.zIndex,z=t.stretch,D=t.getPopupClassNameFromAlign,L=t.fresh,H=t.alignPoint,V=t.onPopupClick,W=t.onPopupAlign,q=t.arrow,X=t.popupMotion,G=t.maskMotion,K=t.popupTransitionName,U=t.popupAnimation,Y=t.maskTransitionName,Q=t.maskAnimation,Z=t.className,J=t.getTriggerDOMNode,ee=et(t,ld),te=O||N||!1,ne=De(r.useState(!1),2),re=ne[0],oe=ne[1];Ot((function(){oe(Cu())}),[]);var ie=r.useRef({}),ae=r.useContext(Gu),le=r.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),ce=Qc(),se=De(r.useState(null),2),ue=se[0],de=se[1],fe=r.useRef(null),pe=Ko((function(e){fe.current=e,_(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(ce,e)})),me=De(r.useState(null),2),ve=me[0],ge=me[1],he=r.useRef(null),be=Ko((function(e){_(e)&&ve!==e&&(ge(e),he.current=e)})),ye=r.Children.only(a),we=(null==ye?void 0:ye.props)||{},xe={},Ee=function(e,t){var n,r;return e===t||t.contains(e)||(null===(n=_a(t))||void 0===n?void 0:n.host)===e||t.contains(null===(r=_a(e))||void 0===r?void 0:r.host)},Ce=Ko((function(e){var t=ve,n=Ee.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Se=Yu(i,X,U,K),$e=Yu(i,G,Q,Y),Oe=De(r.useState(f||!1),2),Ne=Oe[0],Pe=Oe[1],Ie=null!=d?d:Ne,Me=Ko((function(e){void 0===d&&Pe(e)}));Ot((function(){Pe(d||!1)}),[d]);var je=r.useRef(Ie);je.current=Ie;var _e=r.useRef([]);_e.current=[];var Ae=Ko((function(e){var t;Me(e),(null!==(t=_e.current[_e.current.length-1])&&void 0!==t?t:Ie)!==e&&(_e.current.push(e),null==m||m(e))})),Te=r.useRef(),Fe=function(){clearTimeout(Te.current)},Be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Fe(),0===t?Ae(e):Te.current=setTimeout((function(){Ae(e)}),1e3*t)};r.useEffect((function(){return Fe}),[]);var ze=De(r.useState(!1),2),Le=ze[0],He=ze[1];Ot((function(e){e&&!Ie||He(!0)}),[Ie]);var Ve=De(r.useState(null),2),We=Ve[0],qe=Ve[1],Xe=De(r.useState(null),2),Ge=Xe[0],Ke=Xe[1],Ue=function(e){Ke([e.clientX,e.clientY])},Ye=function(e,t,n,o,i,a,l){var c=De(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=r.useRef(0),f=r.useMemo((function(){return t?Zu(t):[]}),[t]),p=r.useRef({});e||(p.current={});var m=Ko((function(){if(t&&n&&e){var r,c,s,d,m,v=t,g=v.ownerDocument,h=Qu(v).getComputedStyle(v),b=h.width,y=h.height,w=h.position,x=v.style.left,E=v.style.top,C=v.style.right,S=v.style.bottom,$=v.style.overflow,k=j(j({},i[o]),a),O=g.createElement("div");if(null===(r=v.parentElement)||void 0===r||r.appendChild(O),O.style.left="".concat(v.offsetLeft,"px"),O.style.top="".concat(v.offsetTop,"px"),O.style.position=w,O.style.height="".concat(v.offsetHeight,"px"),O.style.width="".concat(v.offsetWidth,"px"),v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var N,P,I=n.getBoundingClientRect();I.x=null!==(N=I.x)&&void 0!==N?N:I.left,I.y=null!==(P=I.y)&&void 0!==P?P:I.top,m={x:I.x,y:I.y,width:I.width,height:I.height}}var R=v.getBoundingClientRect();R.x=null!==(c=R.x)&&void 0!==c?c:R.left,R.y=null!==(s=R.y)&&void 0!==s?s:R.top;var M=g.documentElement,A=M.clientWidth,T=M.clientHeight,F=M.scrollWidth,B=M.scrollHeight,z=M.scrollTop,D=M.scrollLeft,L=R.height,H=R.width,V=m.height,W=m.width,q={left:0,top:0,right:A,bottom:T},X={left:-D,top:-z,right:F-D,bottom:B-z},G=k.htmlRegion,K="visible",U="visibleFirst";"scroll"!==G&&G!==U&&(G=K);var Y=G===U,Q=td(X,f),Z=td(q,f),J=G===K?Z:Q,ee=Y?Z:J;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";var te=v.getBoundingClientRect();v.style.left=x,v.style.top=E,v.style.right=C,v.style.bottom=S,v.style.overflow=$,null===(d=v.parentElement)||void 0===d||d.removeChild(O);var ne=Ju(Math.round(H/parseFloat(b)*1e3)/1e3),re=Ju(Math.round(L/parseFloat(y)*1e3)/1e3);if(0===ne||0===re||_(n)&&!_l(n))return;var oe=k.offset,ie=k.targetOffset,ae=De(rd(R,oe),2),le=ae[0],ce=ae[1],se=De(rd(m,ie),2),ue=se[0],de=se[1];m.x-=ue,m.y-=de;var fe=De(k.points||[],2),pe=fe[0],me=od(fe[1]),ve=od(pe),ge=id(m,me),he=id(R,ve),be=j({},k),ye=ge.x-he.x+le,we=ge.y-he.y+ce;function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=R.x+e,o=R.y+t,i=r+H,a=o+L,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var xe,Ee,Ce,Se,$e=mt(ye,we),ke=mt(ye,we,Z),Oe=id(m,["t","l"]),Ne=id(R,["t","l"]),Pe=id(m,["b","r"]),Ie=id(R,["b","r"]),Re=k.overflow||{},Me=Re.adjustX,je=Re.adjustY,_e=Re.shiftX,Ae=Re.shiftY,Te=function(e){return"boolean"==typeof e?e:e>=0};function vt(){xe=R.y+we,Ee=xe+L,Ce=R.x+ye,Se=Ce+H}vt();var Fe=Te(je),Be=ve[0]===me[0];if(Fe&&"t"===ve[0]&&(Ee>ee.bottom||p.current.bt)){var ze=we;Be?ze-=L-V:ze=Oe.y-Ie.y-ce;var Le=mt(ye,ze),He=mt(ye,ze,Z);Le>$e||Le===$e&&(!Y||He>=ke)?(p.current.bt=!0,we=ze,ce=-ce,be.points=[ad(ve,0),ad(me,0)]):p.current.bt=!1}if(Fe&&"b"===ve[0]&&(xe<ee.top||p.current.tb)){var Ve=we;Be?Ve+=L-V:Ve=Pe.y-Ne.y-ce;var We=mt(ye,Ve),qe=mt(ye,Ve,Z);We>$e||We===$e&&(!Y||qe>=ke)?(p.current.tb=!0,we=Ve,ce=-ce,be.points=[ad(ve,0),ad(me,0)]):p.current.tb=!1}var Xe=Te(Me),Ge=ve[1]===me[1];if(Xe&&"l"===ve[1]&&(Se>ee.right||p.current.rl)){var Ke=ye;Ge?Ke-=H-W:Ke=Oe.x-Ie.x-le;var Ue=mt(Ke,we),Ye=mt(Ke,we,Z);Ue>$e||Ue===$e&&(!Y||Ye>=ke)?(p.current.rl=!0,ye=Ke,le=-le,be.points=[ad(ve,1),ad(me,1)]):p.current.rl=!1}if(Xe&&"r"===ve[1]&&(Ce<ee.left||p.current.lr)){var Qe=ye;Ge?Qe+=H-W:Qe=Pe.x-Ne.x-le;var Ze=mt(Qe,we),Je=mt(Qe,we,Z);Ze>$e||Ze===$e&&(!Y||Je>=ke)?(p.current.lr=!0,ye=Qe,le=-le,be.points=[ad(ve,1),ad(me,1)]):p.current.lr=!1}vt();var et=!0===_e?0:_e;"number"==typeof et&&(Ce<Z.left&&(ye-=Ce-Z.left-le,m.x+W<Z.left+et&&(ye+=m.x-Z.left+W-et)),Se>Z.right&&(ye-=Se-Z.right-le,m.x>Z.right-et&&(ye+=m.x-Z.right+et)));var tt=!0===Ae?0:Ae;"number"==typeof tt&&(xe<Z.top&&(we-=xe-Z.top-ce,m.y+V<Z.top+tt&&(we+=m.y-Z.top+V-tt)),Ee>Z.bottom&&(we-=Ee-Z.bottom-ce,m.y>Z.bottom-tt&&(we+=m.y-Z.bottom+tt)));var nt=R.x+ye,rt=nt+H,ot=R.y+we,it=ot+L,at=m.x,lt=at+W,ct=m.y,st=ct+V,ut=(Math.max(nt,at)+Math.min(rt,lt))/2-nt,dt=(Math.max(ot,ct)+Math.min(it,st))/2-ot;null==l||l(t,be);var ft=te.right-R.x-(ye+R.width),pt=te.bottom-R.y-(we+R.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===re&&(we=Math.round(we),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:we/re,offsetR:ft/ne,offsetB:pt/re,arrowX:ut/ne,arrowY:dt/re,scaleX:ne,scaleY:re,align:be})}})),v=function(){u((function(e){return j(j({},e),{},{ready:!1})}))};return Ot(v,[o]),Ot((function(){e||v()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(Ie,ue,H&&null!==Ge?Ge:ve,M,T,F,W),Qe=De(Ye,11),Ze=Qe[0],Je=Qe[1],tt=Qe[2],nt=Qe[3],rt=Qe[4],ot=Qe[5],it=Qe[6],at=Qe[7],lt=Qe[8],ct=Qe[9],st=Qe[10],ut=function(e,t,n,o){return r.useMemo((function(){var r=Ku(null!=n?n:t),i=Ku(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(re,c,s,u),dt=De(ut,2),ft=dt[0],pt=dt[1],mt=ft.has("click"),vt=pt.has("click")||pt.has("contextMenu"),gt=Ko((function(){Le||st()}));!function(e,t,n,r,o){Ot((function(){if(e&&t&&n){var i=n,a=Zu(t),l=Zu(i),c=Qu(i),s=new Set([c].concat(Re(a),Re(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(Ie,ve,ue,gt,(function(){je.current&&H&&vt&&Be(!1)})),Ot((function(){gt()}),[Ge,M]),Ot((function(){!Ie||null!=T&&T[M]||gt()}),[JSON.stringify(F)]);var ht=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(Uu(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(T,i,ct,H);return p(e,null==D?void 0:D(ct))}),[ct,D,T,i,H]);r.useImperativeHandle(n,(function(){return{nativeElement:he.current,popupElement:fe.current,forceAlign:gt}}));var bt=De(r.useState(0),2),yt=bt[0],wt=bt[1],xt=De(r.useState(0),2),Et=xt[0],Ct=xt[1],St=function(){if(z&&ve){var e=ve.getBoundingClientRect();wt(e.width),Ct(e.height)}};function $t(e,t,n,r){xe[e]=function(o){var i;null==r||r(o),Be(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=we[e])||void 0===i||i.call.apply(i,[we,o].concat(l))}}Ot((function(){We&&(st(),We(),qe(null))}),[We]),(mt||vt)&&(xe.onClick=function(e){var t;je.current&&vt?Be(!1):!je.current&&mt&&(Ue(e),Be(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=we.onClick)||void 0===t||t.call.apply(t,[we,e].concat(r))}),function(e,t,n,o,i,a,l,c){var s=r.useRef(e);s.current=e,r.useEffect((function(){if(t&&o&&(!i||a)){var e=function(e){var t;s.current&&!l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},r=Qu(o);r.addEventListener("mousedown",e,!0),r.addEventListener("contextmenu",e,!0);var u,d,f=_a(n);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&S((null==n||null===(u=n.getRootNode)||void 0===u?void 0:u.call(n))===(null===(d=o.getRootNode)||void 0===d?void 0:d.call(o)),"trigger element and popup element should in same shadow root."),function(){r.removeEventListener("mousedown",e,!0),r.removeEventListener("contextmenu",e,!0),f&&(f.removeEventListener("mousedown",e,!0),f.removeEventListener("contextmenu",e,!0))}}}),[t,n,o,i,a])}(Ie,vt,ve,ue,x,C,Ce,Be);var kt,Nt,Pt=ft.has("hover"),It=pt.has("hover");Pt&&($t("onMouseEnter",!0,g,(function(e){Ue(e)})),$t("onPointerEnter",!0,g,(function(e){Ue(e)})),kt=function(e){(Ie||Le)&&null!=ue&&ue.contains(e.target)&&Be(!0,g)},H&&(xe.onMouseMove=function(e){var t;null===(t=we.onMouseMove)||void 0===t||t.call(we,e)})),It&&($t("onMouseLeave",!1,b),$t("onPointerLeave",!1,b),Nt=function(){Be(!1,b)}),ft.has("focus")&&$t("onFocus",!0,y),pt.has("focus")&&$t("onBlur",!1,w),ft.has("contextMenu")&&(xe.onContextMenu=function(e){var t;je.current&&pt.has("contextMenu")?Be(!1):(Ue(e),Be(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=we.onContextMenu)||void 0===t||t.call.apply(t,[we,e].concat(r))}),Z&&(xe.className=p(we.className,Z));var Rt=j(j({},we),xe),Mt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(Mt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Rt[e])||void 0===t||t.call.apply(t,[Rt].concat(r)),ee[e].apply(ee,r)})}));var jt=r.cloneElement(ye,j(j({},Rt),Mt)),_t={x:ot,y:it},At=q?j({},!0!==q?q:{}):null;return r.createElement(r.Fragment,null,r.createElement(ke,{disabled:!Ie,ref:be,onResize:function(){St(),gt()}},r.createElement(Xu,{getTriggerDOMNode:J},jt)),r.createElement(Gu.Provider,{value:le},r.createElement(qu,{portal:e,ref:pe,prefixCls:i,popup:P,className:p(I,ht),style:R,target:ve,onMouseEnter:kt,onMouseLeave:Nt,onPointerEnter:kt,zIndex:B,open:Ie,keepDom:Le,fresh:L,onClick:V,mask:x,motion:Se,maskMotion:$e,onVisibleChanged:function(e){He(!1),st(),null==v||v(e)},onPrepare:function(){return new Promise((function(e){St(),qe((function(){return e}))}))},forceRender:k,autoDestroy:te,getPopupContainer:$,align:ct,arrow:At,arrowPos:_t,ready:Ze,offsetX:Je,offsetY:tt,offsetR:nt,offsetB:rt,onAlign:gt,stretch:z,targetWidth:yt/at,targetHeight:Et/lt})))}));return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(Kc);function sd(e,t,n){return p({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const ud=(e,t)=>t||e,dd=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[t]:l}=e.useContext(_o),c=e.useContext(lu),s=null==l?void 0:l.variant;let u;u=void 0!==n?n:!1===r?"borderless":null!==(i=null!==(o=null!=c?c:s)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,jo.includes(u)]};var fd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},pd=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:fd}))},md=r.forwardRef(pd);function vd(e){var t=e.children,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return r.createElement("div",{className:p("".concat(n,"-content"),a),style:l},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof t?t():t))}"production"!==process.env.NODE_ENV&&(md.displayName="SearchOutlined");var gd={shiftX:64,adjustY:1},hd={adjustX:1,shiftY:!0},bd=[0,0],yd={left:{points:["cr","cl"],overflow:hd,offset:[-4,0],targetOffset:bd},right:{points:["cl","cr"],overflow:hd,offset:[4,0],targetOffset:bd},top:{points:["bc","tc"],overflow:gd,offset:[0,-4],targetOffset:bd},bottom:{points:["tc","bc"],overflow:gd,offset:[0,4],targetOffset:bd},topLeft:{points:["bl","tl"],overflow:gd,offset:[0,-4],targetOffset:bd},leftTop:{points:["tr","tl"],overflow:hd,offset:[-4,0],targetOffset:bd},topRight:{points:["br","tr"],overflow:gd,offset:[0,-4],targetOffset:bd},rightTop:{points:["tl","tr"],overflow:hd,offset:[4,0],targetOffset:bd},bottomRight:{points:["tr","br"],overflow:gd,offset:[0,4],targetOffset:bd},rightBottom:{points:["bl","br"],overflow:hd,offset:[4,0],targetOffset:bd},bottomLeft:{points:["tl","bl"],overflow:gd,offset:[0,4],targetOffset:bd},leftBottom:{points:["br","bl"],overflow:hd,offset:[-4,0],targetOffset:bd}},wd=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],xd=function(t,n){var o=t.overlayClassName,i=t.trigger,a=void 0===i?["hover"]:i,l=t.mouseEnterDelay,c=void 0===l?0:l,s=t.mouseLeaveDelay,u=void 0===s?.1:s,d=t.overlayStyle,f=t.prefixCls,p=void 0===f?"rc-tooltip":f,v=t.children,g=t.onVisibleChange,h=t.afterVisibleChange,b=t.transitionName,y=t.animation,w=t.motion,x=t.placement,E=void 0===x?"right":x,C=t.align,S=void 0===C?{}:C,$=t.destroyTooltipOnHide,k=void 0!==$&&$,O=t.defaultVisible,N=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,R=t.id,M=t.showArrow,_=void 0===M||M,A=et(t,wd),T=e.useRef(null);e.useImperativeHandle(n,(function(){return T.current}));var F=j({},A);"visible"in t&&(F.popupVisible=t.visible);return r.createElement(cd,m({popupClassName:o,prefixCls:p,popup:function(){return r.createElement(vd,{key:"content",prefixCls:p,id:R,overlayInnerStyle:P},I)},action:a,builtinPlacements:yd,popupPlacement:E,ref:T,popupAlign:S,getPopupContainer:N,onPopupVisibleChange:g,afterPopupVisibleChange:h,popupTransitionName:b,popupAnimation:y,popupMotion:w,defaultPopupVisible:O,autoDestroy:k,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:c,arrow:_},F),v)},Ed=e.forwardRef(xd);const Cd=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${xt(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Sd=8;function $d(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Sd:r}}function kd(e,t){return e?t:{}}function Od(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Cd(e,t,o)),{"&:before":{background:t}})]},kd(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${xt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),kd(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${xt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),kd(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),kd(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Nd={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Pd={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Id=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Rd(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Nd).forEach((e=>{const s=r&&Pd[e]||Nd[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Id.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=$d({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const Md=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xi(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${xt(e.calc(s).div(2).equal())} ${xt(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Sd)}},[`${t}-content`]:{position:"relative"}}),Pi(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Od(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},jd=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},$d({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,m=2*o-0,v=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${v} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*o-h}px 100%, ${h}px 100%)`}}(ti(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var _d=function(e){const t=ki("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=ti(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Md(o),Eu(e,"zoom-big-fast")]}),jd,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Ad=ci.map((e=>`${e}-inverse`));function Td(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?ci.includes(e):[].concat(Re(Ad),Re(ci)).includes(e)}(t),r=p({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Fd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Bd=r.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:v,arrow:g=!0,title:h,overlay:b,builtinPlacements:y,arrowPointAtCenter:w=!1,autoAdjustOverflow:x=!0}=e,E=!!g,[,C]=yi(),{getPopupContainer:S,getPrefixCls:$,direction:k}=r.useContext(_o),O=dr("Tooltip"),N=r.useRef(null),P=()=>{var e;null===(e=N.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>{var e;return{forceAlign:P,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),P()},nativeElement:null===(e=N.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((t=>{let[n,r]=t;O.deprecated(!(n in e),n,r)})),"production"!==process.env.NODE_ENV&&O(!v||"boolean"==typeof v,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&O(!g||"boolean"==typeof g||!("arrowPointAtCenter"in g),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[I,R]=Qo(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),M=!h&&!b&&0!==h,j=r.useMemo((()=>{var e,t;let n=w;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:w),y||Rd({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[w,g,y,C]),_=r.useMemo((()=>0===h?h:b||h||""),[b,h]),A=r.createElement(cu,{space:!0},"function"==typeof _?_():_),{getPopupContainer:T,placement:F="top",mouseEnterDelay:B=.1,mouseLeaveDelay:z=.1,overlayStyle:D,rootClassName:L}=e,H=Fd(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=$("tooltip",i),W=$(),q=e["data-popover-inject"];let X=I;"open"in e||"visible"in e||!M||(X=!1);const G=r.isValidElement(d)&&!el(d)?d:r.createElement("span",null,d),K=G.props,U=K.className&&"string"!=typeof K.className?K.className:p(K.className,a||`${V}-open`),[Y,Q,Z]=_d(V,!q),J=Td(V,s),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=p(c,{[`${V}-rtl`]:"rtl"===k},J.className,L,Q,Z),[re,oe]=fl("Tooltip",H.zIndex),ie=r.createElement(Ed,Object.assign({},H,{zIndex:re,showArrow:E,placement:F,mouseEnterDelay:B,mouseLeaveDelay:z,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),D),getTooltipContainer:T||l||S,ref:N,builtinPlacements:j,overlay:A,visible:X,onVisibleChange:t=>{var n,r;R(!M&&t),M||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:m,overlayInnerStyle:te,arrowContent:r.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:jl(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),X?nl(G,{className:U}):G);return Y(r.createElement(cl.Provider,{value:oe},ie))})),zd=Bd;"production"!==process.env.NODE_ENV&&(zd.displayName="Tooltip"),zd._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:o="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=r.useContext(_o),s=c("tooltip",t),[u,d,f]=_d(s),m=Td(s,a),v=m.arrowStyle,g=Object.assign(Object.assign({},l),m.overlayStyle),h=p(d,f,s,`${s}-pure`,`${s}-placement-${o}`,n,m.className);return u(r.createElement("div",{className:h,style:v},r.createElement("div",{className:`${s}-arrow`}),r.createElement(vd,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:g}),i)))};var Dd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ld=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Dd}))},Hd=r.forwardRef(Ld);"production"!==process.env.NODE_ENV&&(Hd.displayName="RightOutlined");var Vd=ol.ESC,Wd=ol.TAB;var qd=e.forwardRef((function(t,n){var r=t.overlay,o=t.arrow,i=t.prefixCls,a=e.useMemo((function(){return"function"==typeof r?r():r}),[r]),l=B(n,null==a?void 0:a.ref);return e.createElement(e.Fragment,null,o&&e.createElement("div",{className:"".concat(i,"-arrow")}),e.cloneElement(a,{ref:D(a)?l:void 0}))})),Xd={adjustX:1,adjustY:1},Gd=[0,0],Kd={topLeft:{points:["bl","tl"],overflow:Xd,offset:[0,-4],targetOffset:Gd},top:{points:["bc","tc"],overflow:Xd,offset:[0,-4],targetOffset:Gd},topRight:{points:["br","tr"],overflow:Xd,offset:[0,-4],targetOffset:Gd},bottomLeft:{points:["tl","bl"],overflow:Xd,offset:[0,4],targetOffset:Gd},bottom:{points:["tc","bc"],overflow:Xd,offset:[0,4],targetOffset:Gd},bottomRight:{points:["tr","br"],overflow:Xd,offset:[0,4],targetOffset:Gd}},Ud=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Yd(t,n){var o,i=t.arrow,a=void 0!==i&&i,l=t.prefixCls,c=void 0===l?"rc-dropdown":l,s=t.transitionName,u=t.animation,d=t.align,f=t.placement,v=void 0===f?"bottomLeft":f,g=t.placements,h=void 0===g?Kd:g,b=t.getPopupContainer,y=t.showAction,w=t.hideAction,x=t.overlayClassName,E=t.overlayStyle,C=t.visible,S=t.trigger,$=void 0===S?["hover"]:S,k=t.autoFocus,O=t.overlay,N=t.children,P=t.onVisibleChange,I=et(t,Ud),M=De(e.useState(),2),j=M[0],_=M[1],A="visible"in t?C:j,T=e.useRef(null),F=e.useRef(null),z=e.useRef(null);e.useImperativeHandle(n,(function(){return T.current}));var L=function(e){_(e),null==P||P(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=r.useRef(!1),c=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case Vd:c();break;case Wd:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};r.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&Fe(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:A,triggerRef:z,onVisibleChange:L,autoFocus:k,overlayRef:F});var H,V,W,q=function(){return e.createElement(qd,{ref:F,overlay:O,prefixCls:c,arrow:a})},X=e.cloneElement(N,{className:p(null===(o=N.props)||void 0===o?void 0:o.className,A&&(H=t.openClassName,void 0!==H?H:"".concat(c,"-open"))),ref:D(N)?B(z,N.ref):void 0}),G=w;return G||-1===$.indexOf("contextMenu")||(G=["click"]),e.createElement(cd,m({builtinPlacements:h},I,{prefixCls:c,ref:T,popupClassName:p(x,R({},"".concat(c,"-show-arrow"),a)),popupStyle:E,action:$,showAction:y,hideAction:G,popupPlacement:v,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:A,stretch:(V=t.minOverlayWidthMatchTrigger,W=t.alignPoint,("minOverlayWidthMatchTrigger"in t?V:!W)?"minWidth":""),popup:"function"==typeof O?q:q(),onPopupVisibleChange:L,onPopupClick:function(e){var n=t.onOverlayClick;_(!1),n&&n(e)},getPopupContainer:b}),X)}var Qd=e.forwardRef(Yd),Zd=r.createContext(null);function Jd(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function ef(e){return Jd(r.useContext(Zd),e)}var tf=["children","locked"],nf=r.createContext(null);function rf(e){var t=e.children,n=e.locked,o=et(e,tf),i=r.useContext(nf),a=T((function(){return e=o,t=j({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(n||e[0]===t[0]&&tt(e[1],t[1],!0))}));return r.createElement(nf.Provider,{value:a},t)}var of=[],af=r.createContext(null);function lf(){return r.useContext(af)}var cf=r.createContext(of);function sf(e){var t=r.useContext(cf);return r.useMemo((function(){return void 0!==e?[].concat(Re(t),[e]):t}),[t,e])}var uf=r.createContext(null),df=r.createContext({});function ff(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(_l(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var pf=ol.LEFT,mf=ol.RIGHT,vf=ol.UP,gf=ol.DOWN,hf=ol.ENTER,bf=ol.ESC,yf=ol.HOME,wf=ol.END,xf=[vf,gf,pf,mf];function Ef(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Re(e.querySelectorAll("*")).filter((function(e){return ff(e,t)}));return ff(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function Cf(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Ef(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var Sf=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Jd(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function $f(e,t,n,o,i,a,l,c,s,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){Fe.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var m=r.which;if([].concat(xf,[hf,bf,yf,wf]).includes(m)){var v=a(),g=Sf(v,o),h=g,b=h.elements,y=h.key2element,w=h.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),E=w.get(x),C=function(e,t,n,r){var o,i,a,l,c="prev",s="next",u="children",d="parent";if("inline"===e&&r===hf)return{inlineTrigger:!0};var f=(R(o={},vf,c),R(o,gf,s),o),p=(R(i={},pf,n?s:c),R(i,mf,n?c:s),R(i,gf,u),R(i,hf,u),i),m=(R(a={},vf,c),R(a,gf,s),R(a,hf,u),R(a,bf,d),R(a,pf,n?u:d),R(a,mf,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(E,!0).length,n,m);if(!C&&m!==yf&&m!==wf)return;(xf.includes(m)||[yf,wf].includes(m))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);c(r),p(),d.current=Fe((function(){f.current===r&&t.focus()}))}};if([yf,wf].includes(m)||C.sibling||!x){var $,k,O=Ef($=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):i.current,b);k=m===yf?O[0]:m===wf?O[O.length-1]:Cf($,b,x,C.offset),S(k)}else if(C.inlineTrigger)s(E);else if(C.offset>0)s(E,!0),p(),d.current=Fe((function(){g=Sf(v,o);var e=x.getAttribute("aria-controls"),t=Cf(document.getElementById(e),g.elements);S(t)}),5);else if(C.offset<0){var N=l(E,!0),P=N[N.length-2],I=y.get(P);s(P,!1),S(I)}}null==u||u(r)}}var kf="__RC_UTIL_PATH_SPLIT__",Of=function(e){return e.join(kf)},Nf="rc-menu-more";function Pf(){var t=De(r.useState({}),2)[1],n=e.useRef(new Map),o=e.useRef(new Map),i=De(r.useState([]),2),a=i[0],l=i[1],c=e.useRef(0),s=e.useRef(!1),u=e.useCallback((function(e,r){"production"!==process.env.NODE_ENV&&N(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(r.join(" > "),"]"));var i=Of(r);o.current.set(i,e),n.current.set(e,i),c.current+=1;var a,l=c.current;a=function(){l===c.current&&(s.current||t({}))},Promise.resolve().then(a)}),[]),d=e.useCallback((function(e,t){var r=Of(t);o.current.delete(r),n.current.delete(e)}),[]),f=e.useCallback((function(e){l(e)}),[]),p=e.useCallback((function(e,t){var r=n.current.get(e)||"",o=r.split(kf);return t&&a.includes(o[0])&&o.unshift(Nf),o}),[a]),m=e.useCallback((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return p(e,!0).includes(t)}))}),[p]),v=e.useCallback((function(e){var t="".concat(n.current.get(e)).concat(kf),r=new Set;return Re(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return r.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:m,getKeyPath:p,getKeys:function(){var e=Re(n.current.keys());return a.length&&e.push(Nf),e},getSubPathKeys:v}}function If(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var Rf=Math.random().toFixed(5).toString().slice(2),Mf=0;function jf(e,t,n,o){var i=r.useContext(nf),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),c(e)}),s}function _f(e){var t=r.useContext(nf),n=t.mode,o=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return o?{paddingRight:e*i}:{paddingLeft:e*i}}function Af(e){var t,n=e.icon,o=e.props,i=e.children;return null===n||!1===n?null:("function"==typeof n?t=r.createElement(n,j({},o)):"boolean"!=typeof n&&(t=n),t||i||null)}var Tf=["item"];function Ff(e){var t=e.item,n=et(e,Tf);return Object.defineProperty(n,"item",{get:function(){return N(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Bf=["title","attribute","elementRef"],zf=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Df=["active"],Lf=function(){he(t,r.Component);var e=xe(t);function t(){return pe(this,t),e.apply(this,arguments)}return ve(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=Oe(et(e,Bf),["eventKey","popupClassName","popupOffset","onTitleClick"]);return N(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(Lu.Item,m({},n,{title:"string"==typeof t?t:void 0},i,{ref:o}))}}]),t}(),Hf=r.forwardRef((function(e,t){var n,o=e.style,i=e.className,a=e.eventKey,l=e.warnKey,c=e.disabled,s=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,h=e.onKeyDown,b=e.onFocus,y=et(e,zf),w=ef(a),x=r.useContext(nf),E=x.prefixCls,C=x.onItemClick,S=x.disabled,$=x.overflowDisabled,k=x.itemIcon,O=x.selectedKeys,P=x.onActive,I=r.useContext(df)._internalRenderMenuItem,M="".concat(E,"-item"),_=r.useRef(),A=r.useRef(),T=S||c,F=z(t,A),B=sf(a);"production"!==process.env.NODE_ENV&&l&&N(!1,"MenuItem should not leave undefined `key`.");var D=function(e){return{key:a,keyPath:Re(B).reverse(),item:_.current,domEvent:e}},L=s||k,H=jf(a,T,f,v),V=H.active,W=et(H,Df),q=O.includes(a),X=_f(B.length),G={};"option"===e.role&&(G["aria-selected"]=q);var K=r.createElement(Lf,m({ref:_,elementRef:F,role:null===d?"none":d||"menuitem",tabIndex:c?null:-1,"data-menu-id":$&&w?null:w},y,W,G,{component:"li","aria-disabled":c,style:j(j({},X),o),className:p(M,(n={},R(n,"".concat(M,"-active"),V),R(n,"".concat(M,"-selected"),q),R(n,"".concat(M,"-disabled"),T),n),i),onClick:function(e){if(!T){var t=D(e);null==g||g(Ff(t)),C(t)}},onKeyDown:function(e){if(null==h||h(e),e.which===ol.ENTER){var t=D(e);null==g||g(Ff(t)),C(t)}},onFocus:function(e){P(a),null==b||b(e)}}),u,r.createElement(Af,{props:j(j({},e),{},{isSelected:q}),icon:L}));return I&&(K=I(K,e,{selected:q})),K}));function Vf(e,t){var n=e.eventKey,o=lf(),i=sf(n);return r.useEffect((function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}}),[i]),o?null:r.createElement(Hf,m({},e,{ref:t}))}var Wf=r.forwardRef(Vf),qf=["className","children"],Xf=function(e,t){var n=e.className,o=e.children,i=et(e,qf),a=r.useContext(nf),l=a.prefixCls,c=a.mode,s=a.rtl;return r.createElement("ul",m({className:p(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)},Gf=r.forwardRef(Xf);function Kf(e,t){return x(e).map((function(e,n){if(r.isValidElement(e)){var o,i,a=e.key,l=null!==(o=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a,c=null==l;c&&(l="tmp_key-".concat([].concat(Re(t),[n]).join("-")));var s={key:l,eventKey:l};return"production"!==process.env.NODE_ENV&&c&&(s.warnKey=!0),r.cloneElement(e,s)}return e}))}Gf.displayName="SubMenuList";var Uf={adjustX:1,adjustY:1},Yf={topLeft:{points:["bl","tl"],overflow:Uf},topRight:{points:["br","tr"],overflow:Uf},bottomLeft:{points:["tl","bl"],overflow:Uf},bottomRight:{points:["tr","br"],overflow:Uf},leftTop:{points:["tr","tl"],overflow:Uf},leftBottom:{points:["br","bl"],overflow:Uf},rightTop:{points:["tl","tr"],overflow:Uf},rightBottom:{points:["bl","br"],overflow:Uf}},Qf={topLeft:{points:["bl","tl"],overflow:Uf},topRight:{points:["br","tr"],overflow:Uf},bottomLeft:{points:["tl","bl"],overflow:Uf},bottomRight:{points:["tr","br"],overflow:Uf},rightTop:{points:["tr","tl"],overflow:Uf},rightBottom:{points:["br","bl"],overflow:Uf},leftTop:{points:["tl","tr"],overflow:Uf},leftBottom:{points:["bl","br"],overflow:Uf}};function Zf(e,t,n){return t||(n?n[e]||n.other:void 0)}var Jf={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ep(e){var t=e.prefixCls,n=e.visible,o=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=r.useContext(nf),m=f.getPopupContainer,v=f.rtl,g=f.subMenuOpenDelay,h=f.subMenuCloseDelay,b=f.builtinPlacements,y=f.triggerSubMenuAction,w=f.forceSubMenuRender,x=f.rootClassName,E=f.motion,C=f.defaultMotions,S=De(r.useState(!1),2),$=S[0],k=S[1],O=j(j({},v?Qf:Yf),b),N=Jf[u],P=Zf(u,E,C),I=r.useRef(P);"inline"!==u&&(I.current=P);var M=j(j({},I.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=r.useRef();return r.useEffect((function(){return _.current=Fe((function(){k(n)})),function(){Fe.cancel(_.current)}}),[n]),r.createElement(cd,{prefixCls:t,popupClassName:p("".concat(t,"-popup"),R({},"".concat(t,"-rtl"),v),l,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:m,builtinPlacements:O,popupPlacement:N,popupVisible:$,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[y],mouseEnterDelay:g,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:w,popupMotion:M,fresh:!0},o)}function tp(e){var t=e.id,n=e.open,o=e.keyPath,i=e.children,a="inline",l=r.useContext(nf),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=r.useRef(!1);p.current=f===a;var v=De(r.useState(!p.current),2),g=v[0],h=v[1],b=!!p.current&&n;r.useEffect((function(){p.current&&h(!1)}),[f]);var y=j({},Zf(a,u,d));o.length>1&&(y.motionAppear=!1);var w=y.onVisibleChanged;return y.onVisibleChanged=function(e){return p.current||e||h(!0),null==w?void 0:w(e)},g?null:r.createElement(rf,{mode:a,locked:!p.current},r.createElement(ma,m({visible:b},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(Gf,{id:t,className:n,style:o},i)})))}var np=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],rp=["active"],op=r.forwardRef((function(e,t){var n,o=e.style,i=e.className,a=e.title,l=e.eventKey,c=e.warnKey,s=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,g=e.popupClassName,h=e.popupOffset,b=e.popupStyle,y=e.onClick,w=e.onMouseEnter,x=e.onMouseLeave,E=e.onTitleClick,C=e.onTitleMouseEnter,S=e.onTitleMouseLeave,$=et(e,np),k=ef(l),O=r.useContext(nf),P=O.prefixCls,I=O.mode,M=O.openKeys,_=O.disabled,A=O.overflowDisabled,T=O.activeKey,F=O.selectedKeys,B=O.itemIcon,z=O.expandIcon,D=O.onItemClick,L=O.onOpenChange,H=O.onActive,V=r.useContext(df)._internalRenderSubMenuItem,W=r.useContext(uf).isSubPathKey,q=sf(),X="".concat(P,"-submenu"),G=_||s,K=r.useRef(),U=r.useRef();"production"!==process.env.NODE_ENV&&c&&N(!1,"SubMenu should not leave undefined `key`.");var Y=null!=f?f:B,Q=null!=v?v:z,Z=M.includes(l),J=!A&&Z,ee=W(F,l),te=jf(l,G,C,S),ne=te.active,re=et(te,rp),oe=De(r.useState(!1),2),ie=oe[0],ae=oe[1],le=function(e){G||ae(e)},ce=r.useMemo((function(){return ne||"inline"!==I&&(ie||W([T],l))}),[I,ne,T,ie,l,W]),se=_f(q.length),ue=If((function(e){null==y||y(Ff(e)),D(e)})),de=k&&"".concat(k,"-popup"),fe=r.createElement("div",m({role:"menuitem",style:se,className:"".concat(X,"-title"),tabIndex:G?null:-1,ref:K,title:"string"==typeof a?a:null,"data-menu-id":A&&k?null:k,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":G,onClick:function(e){G||(null==E||E({key:l,domEvent:e}),"inline"===I&&L(l,!Z))},onFocus:function(){H(l)}},re),a,r.createElement(Af,{icon:"horizontal"!==I?Q:void 0,props:j(j({},e),{},{isOpen:J,isSubMenu:!0})},r.createElement("i",{className:"".concat(X,"-arrow")}))),pe=r.useRef(I);if("inline"!==I&&q.length>1?pe.current="vertical":pe.current=I,!A){var me=pe.current;fe=r.createElement(ep,{mode:me,prefixCls:X,visible:!u&&J&&"inline"!==I,popupClassName:g,popupOffset:h,popupStyle:b,popup:r.createElement(rf,{mode:"horizontal"===me?"vertical":me},r.createElement(Gf,{id:de,ref:U},d)),disabled:G,onVisibleChange:function(e){"inline"!==I&&L(l,e)}},fe)}var ve=r.createElement(Lu.Item,m({ref:t,role:"none"},$,{component:"li",style:o,className:p(X,"".concat(X,"-").concat(I),i,(n={},R(n,"".concat(X,"-open"),J),R(n,"".concat(X,"-active"),ce),R(n,"".concat(X,"-selected"),ee),R(n,"".concat(X,"-disabled"),G),n)),onMouseEnter:function(e){le(!0),null==w||w({key:l,domEvent:e})},onMouseLeave:function(e){le(!1),null==x||x({key:l,domEvent:e})}}),fe,!A&&r.createElement(tp,{id:de,open:J,keyPath:q},d));return V&&(ve=V(ve,e,{selected:ee,active:ce,open:J,disabled:G})),r.createElement(rf,{onItemClick:ue,mode:"horizontal"===I?"vertical":I,itemIcon:Y,expandIcon:Q},ve)})),ip=r.forwardRef((function(e,t){var n,o=e.eventKey,i=e.children,a=sf(o),l=Kf(i,a),c=lf();return r.useEffect((function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}}),[a]),n=c?l:r.createElement(op,m({ref:t},e),l),r.createElement(cf.Provider,{value:a},n)}));function ap(e){var t=e.className,n=e.style,o=r.useContext(nf).prefixCls;return lf()?null:r.createElement("li",{role:"separator",className:p("".concat(o,"-item-divider"),t),style:n})}"production"!==process.env.NODE_ENV&&(ip.displayName="SubMenu");var lp=["className","title","eventKey","children"],cp=r.forwardRef((function(e,t){var n=e.className,o=e.title;e.eventKey;var i=e.children,a=et(e,lp),l=r.useContext(nf).prefixCls,c="".concat(l,"-item-group");return r.createElement("li",m({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:p(c,n)}),r.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),r.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))})),sp=r.forwardRef((function(e,t){var n=e.eventKey,o=Kf(e.children,sf(n));return lf()?o:r.createElement(cp,m({ref:t},Oe(e,["warnKey"])),o)}));"production"!==process.env.NODE_ENV&&(sp.displayName="MenuItemGroup");var up=["label","children","key","type"];function dp(e,t){var n=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,l){if(e&&"object"===P(e)){var c=e,s=c.label,u=c.children,d=c.key,f=c.type,p=et(c,up),v=null!=d?d:"tmp-".concat(l);return u||"group"===f?"group"===f?r.createElement(o,m({key:v},p,{title:s}),dp(u,t)):r.createElement(i,m({key:v},p,{title:s}),dp(u,t)):"divider"===f?r.createElement(a,m({key:v},p)):r.createElement(n,m({key:v},p),s)}return null})).filter((function(e){return e}))}function fp(e,t,n,r){var o=e,i=j({divider:ap,item:Wf,group:sp,submenu:ip},r);return t&&(o=dp(t,i)),Kf(o,n)}var pp=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],mp=[],vp=r.forwardRef((function(n,o){var i,a,l=n,c=l.prefixCls,s=void 0===c?"rc-menu":c,u=l.rootClassName,d=l.style,f=l.className,v=l.tabIndex,g=void 0===v?0:v,h=l.items,b=l.children,y=l.direction,w=l.id,x=l.mode,E=void 0===x?"vertical":x,C=l.inlineCollapsed,S=l.disabled,$=l.disabledOverflow,k=l.subMenuOpenDelay,O=void 0===k?.1:k,P=l.subMenuCloseDelay,I=void 0===P?.1:P,M=l.forceSubMenuRender,_=l.defaultOpenKeys,A=l.openKeys,T=l.activeKey,F=l.defaultActiveFirst,B=l.selectable,z=void 0===B||B,D=l.multiple,L=void 0!==D&&D,H=l.defaultSelectedKeys,V=l.selectedKeys,W=l.onSelect,q=l.onDeselect,X=l.inlineIndent,G=void 0===X?24:X,K=l.motion,U=l.defaultMotions,Y=l.triggerSubMenuAction,Q=void 0===Y?"hover":Y,Z=l.builtinPlacements,J=l.itemIcon,ee=l.expandIcon,te=l.overflowedIndicator,ne=void 0===te?"...":te,re=l.overflowedIndicatorPopupClassName,oe=l.getPopupContainer,ie=l.onClick,ae=l.onOpenChange,le=l.onKeyDown,ce=l.openAnimation,se=l.openTransitionName,ue=l._internalRenderMenuItem,de=l._internalRenderSubMenuItem,fe=l._internalComponents,pe=et(l,pp),me=De(r.useMemo((function(){return[fp(b,h,mp,fe),fp(b,h,mp,{})]}),[b,h,fe]),2),ve=me[0],ge=me[1],he=De(r.useState(!1),2),be=he[0],ye=he[1],we=r.useRef(),xe=function(e){var t=De(Qo(e,{value:e}),2),n=t[0],o=t[1];return r.useEffect((function(){Mf+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(Rf,"-").concat(Mf);o("rc-menu-uuid-".concat(e))}),[]),n}(w),Ee="rtl"===y;"production"!==process.env.NODE_ENV&&N(!ce&&!se,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ce=Qo(_,{value:A,postState:function(e){return e||mp}}),Se=De(Ce,2),$e=Se[0],ke=Se[1],Oe=function(e){function n(){ke(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t.flushSync(n):n()},Ne=De(r.useState($e),2),Pe=Ne[0],Ie=Ne[1],Me=r.useRef(!1),je=De(r.useMemo((function(){return"inline"!==E&&"vertical"!==E||!C?[E,!1]:["vertical",C]}),[E,C]),2),_e=je[0],Ae=je[1],Te="inline"===_e,Fe=De(r.useState(_e),2),Be=Fe[0],ze=Fe[1],Le=De(r.useState(Ae),2),He=Le[0],Ve=Le[1];r.useEffect((function(){ze(_e),Ve(Ae),Me.current&&(Te?ke(Pe):Oe(mp))}),[_e,Ae]);var We=De(r.useState(0),2),qe=We[0],Xe=We[1],Ge=qe>=ve.length-1||"horizontal"!==Be||$;r.useEffect((function(){Te&&Ie($e)}),[$e]),r.useEffect((function(){return Me.current=!0,function(){Me.current=!1}}),[]);var Ke=Pf(),Ue=Ke.registerPath,Ye=Ke.unregisterPath,Qe=Ke.refreshOverflowKeys,Ze=Ke.isSubPathKey,Je=Ke.getKeyPath,nt=Ke.getKeys,rt=Ke.getSubPathKeys,ot=r.useMemo((function(){return{registerPath:Ue,unregisterPath:Ye}}),[Ue,Ye]),it=r.useMemo((function(){return{isSubPathKey:Ze}}),[Ze]);r.useEffect((function(){Qe(Ge?mp:ve.slice(qe+1).map((function(e){return e.key})))}),[qe,Ge]);var at=De(Qo(T||F&&(null===(i=ve[0])||void 0===i?void 0:i.key),{value:T}),2),lt=at[0],ct=at[1],st=If((function(e){ct(e)})),ut=If((function(){ct(void 0)}));e.useImperativeHandle(o,(function(){return{list:we.current,focus:function(e){var t,n,r=nt(),o=Sf(r,xe),i=o.elements,a=o.key2element,l=o.element2key,c=Ef(we.current,i),s=null!=lt?lt:c[0]?l.get(c[0]):null===(t=ve.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var dt=Qo(H||[],{value:V,postState:function(e){return Array.isArray(e)?e:null==e?mp:[e]}}),ft=De(dt,2),pt=ft[0],mt=ft[1],vt=If((function(e){null==ie||ie(Ff(e)),function(e){if(z){var t,n=e.key,r=pt.includes(n);t=L?r?pt.filter((function(e){return e!==n})):[].concat(Re(pt),[n]):[n],mt(t);var o=j(j({},e),{},{selectedKeys:t});r?null==q||q(o):null==W||W(o)}!L&&$e.length&&"inline"!==Be&&Oe(mp)}(e)})),gt=If((function(e,t){var n=$e.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Be){var r=rt(e);n=n.filter((function(e){return!r.has(e)}))}tt($e,n,!0)||Oe(n,!0)})),ht=$f(Be,lt,Ee,xe,we,nt,Je,ct,(function(e,t){var n=null!=t?t:!$e.includes(e);gt(e,n)}),le);r.useEffect((function(){ye(!0)}),[]);var bt=r.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),yt="horizontal"!==Be||$?ve:ve.map((function(e,t){return r.createElement(rf,{key:e.key,overflowDisabled:t>qe},e)})),wt=r.createElement(Lu,m({id:w,ref:we,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Wf,className:p(s,"".concat(s,"-root"),"".concat(s,"-").concat(Be),f,(a={},R(a,"".concat(s,"-inline-collapsed"),He),R(a,"".concat(s,"-rtl"),Ee),a),u),dir:y,style:d,role:"menu",tabIndex:g,data:yt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ve.slice(-t):null;return r.createElement(ip,{eventKey:Nf,title:ne,disabled:Ge,internalPopupClose:0===t,popupClassName:re},n)},maxCount:"horizontal"!==Be||$?Lu.INVALIDATE:Lu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Xe(e)},onKeyDown:ht},pe));return r.createElement(df.Provider,{value:bt},r.createElement(Zd.Provider,{value:xe},r.createElement(rf,{prefixCls:s,rootClassName:u,mode:Be,openKeys:$e,rtl:Ee,disabled:S,motion:be?K:null,defaultMotions:be?U:null,activeKey:lt,onActive:st,onInactive:ut,selectedKeys:pt,inlineIndent:G,subMenuOpenDelay:O,subMenuCloseDelay:I,forceSubMenuRender:M,builtinPlacements:Z,triggerSubMenuAction:Q,getPopupContainer:oe,itemIcon:J,expandIcon:ee,onItemClick:vt,onOpenChange:gt},r.createElement(uf.Provider,{value:it},wt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(af.Provider,{value:ot},ge)))))})),gp=vp;gp.Item=Wf,gp.SubMenu=ip,gp.ItemGroup=sp,gp.Divider=ap;var hp={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},bp=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:hp}))},yp=r.forwardRef(bp);"production"!==process.env.NODE_ENV&&(yp.displayName="BarsOutlined");var wp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},xp=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:wp}))},Ep=r.forwardRef(xp);"production"!==process.env.NODE_ENV&&(Ep.displayName="LeftOutlined");const Cp=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Sp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $p={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},kp=r.createContext({}),Op=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Np=r.forwardRef(((t,n)=>{const{prefixCls:o,className:i,trigger:a,children:l,defaultCollapsed:c=!1,theme:s="dark",style:u={},collapsible:d=!1,reverseArrow:f=!1,width:m=200,collapsedWidth:v=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:b,onBreakpoint:y}=t,w=Sp(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:x}=e.useContext(Cp),[E,C]=e.useState("collapsed"in t?t.collapsed:c),[S,$]=e.useState(!1);e.useEffect((()=>{"collapsed"in t&&C(t.collapsed)}),[t.collapsed]);const k=(e,n)=>{"collapsed"in t||C(e),null==b||b(e,n)},O=e.useRef();O.current=e=>{$(e.matches),null==y||y(e.matches),E!==e.matches&&k(e.matches,"responsive")},e.useEffect((()=>{function e(e){return O.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&h&&h in $p){t=n(`screen and (max-width: ${$p[h]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[h]),e.useEffect((()=>{const e=Op("ant-sider-");return x.addSider(e),()=>x.removeSider(e)}),[]);const N=()=>{k(!E,"clickTrigger")},{getPrefixCls:P}=e.useContext(_o),I=r.useMemo((()=>({siderCollapsed:E})),[E]);return r.createElement(kp.Provider,{value:I},(()=>{const e=P("layout-sider",o),t=Oe(w,["collapsed"]),c=E?v:m,h=(b=c,!isNaN(parseFloat(b))&&isFinite(b)?`${c}px`:String(c));var b;const y=0===parseFloat(String(v||0))?r.createElement("span",{onClick:N,className:p(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${f?"right":"left"}`),style:g},a||r.createElement(yp,null)):null,x={expanded:f?r.createElement(Hd,null):r.createElement(Ep,null),collapsed:f?r.createElement(Ep,null):r.createElement(Hd,null)}[E?"collapsed":"expanded"],C=null!==a?y||r.createElement("div",{className:`${e}-trigger`,onClick:N,style:{width:h}},a||x):null,$=Object.assign(Object.assign({},u),{flex:`0 0 ${h}`,maxWidth:h,minWidth:h,width:h}),k=p(e,`${e}-${s}`,{[`${e}-collapsed`]:!!E,[`${e}-has-trigger`]:d&&null!==a&&!y,[`${e}-below`]:!!S,[`${e}-zero-width`]:0===parseFloat(h)},i);return r.createElement("aside",Object.assign({className:k},t,{style:$,ref:n}),r.createElement("div",{className:`${e}-children`},l),d||S&&y?C:null)})())}));"production"!==process.env.NODE_ENV&&(Np.displayName="Sider");var Pp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Ip=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Pp}))},Rp=r.forwardRef(Ip);"production"!==process.env.NODE_ENV&&(Rp.displayName="EllipsisOutlined");const Mp=e.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var jp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _p=e=>{const{prefixCls:t,className:n,dashed:o}=e,i=jp(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=r.useContext(_o),l=a("menu",t),c=p({[`${l}-item-divider-dashed`]:!!o},n);return r.createElement(ap,Object.assign({className:c},i))},Ap=e=>{var t;const{className:n,children:o,icon:i,title:a,danger:l}=e,{prefixCls:c,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=r.useContext(Mp),{siderCollapsed:m}=r.useContext(kp);let v=a;void 0===a?v=s?o:"":!1===a&&(v="");const g={title:v};m||f||(g.title=null,g.open=!1);const h=x(o).length;let b=r.createElement(Wf,Object.assign({},Oe(e,["title","icon","danger"]),{className:p({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?h+1:h)},n),title:"string"==typeof a?a:void 0}),nl(i,{className:p(r.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),(e=>{const t=r.createElement("span",{className:`${c}-title-content`},o);return(!i||r.isValidElement(o)&&"span"===o.type)&&o&&e&&s&&"string"==typeof o?r.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):t})(f));return d||(b=r.createElement(zd,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${c}-inline-collapsed-tooltip`}),b)),b},Tp=r.createContext(null),Fp=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${xt(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Bp=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${xt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${xt(n)})`}}}}},zp=e=>Object.assign({},Ci(e)),Dp=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:v,motionDurationMid:g,itemHoverColor:h,lineType:b,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:E,dangerItemSelectedColor:C,dangerItemActiveBg:S,dangerItemSelectedBg:$,popupBg:k,itemHoverBg:O,itemActiveBg:N,menuSubMenuBg:P,horizontalItemSelectedColor:I,horizontalItemSelectedBg:R,horizontalItemBorderRadius:M,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},zp(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},zp(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:h}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${xt(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:s,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:s,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${xt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${xt(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${m}`,`opacity ${g} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(",")}}}}}},Lp=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:xt(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:xt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Hp=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:s,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:v,collapsedIconSize:g}=e,h={height:r,lineHeight:xt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Lp(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Lp(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${xt(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${l} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${xt(e.calc(d).div(2).equal())} - ${xt(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:xt(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},wi),{paddingInline:p})}}]},Vp=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Wp=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${xt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${xt(a)})`}}}}},qp=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:v,lineType:g,groupTitleLineHeight:h,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xi(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${xt(l)} ${xt(c)}`,fontSize:b,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Vp(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${xt(e.calc(r).mul(2).equal())} ${xt(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},Vp(e)),Wp(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Wp(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${xt(v)})`},"&::after":{transform:`rotate(45deg) translateX(${xt(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${xt(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${xt(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${xt(v)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Xp=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:v,colorBgTextHover:g,controlHeightLG:h,lineHeight:b,colorBgElevated:y,marginXXS:w,padding:x,fontSize:E,controlHeightSM:C,fontSizeLG:S,colorTextLightSolid:$,colorErrorHover:k}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,N=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,P=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,I=new Hr($).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:N,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:b,collapsedWidth:2*h,popupBg:y,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:1.15*h+"px",iconSize:E,iconMarginInlineEnd:C-E,collapsedIconSize:S,groupTitleFontSize:E,darkItemDisabledColor:new Hr($).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:$,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${N}px)`:`calc(100% - ${2*P}px)`}};const Gp=e=>{var t;const{popupClassName:n,icon:o,title:i,theme:a}=e,l=r.useContext(Mp),{prefixCls:c,inlineCollapsed:s,theme:u}=l,d=sf();let f;if(o){const e=r.isValidElement(i)&&"span"===i.type;f=r.createElement(r.Fragment,null,nl(o,{className:p(r.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),e?i:r.createElement("span",{className:`${c}-title-content`},i))}else f=s&&!d.length&&i&&"string"==typeof i?r.createElement("div",{className:`${c}-inline-collapsed-noicon`},i.charAt(0)):r.createElement("span",{className:`${c}-title-content`},i);const m=r.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[v]=fl("Menu");return r.createElement(Mp.Provider,{value:m},r.createElement(ip,Object.assign({},Oe(e,["icon"]),{title:f,popupClassName:p(c,n,`${c}-${a||u}`),popupStyle:{zIndex:v}})))};var Kp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Up(e){return null===e||!1===e}const Yp={item:Ap,submenu:Gp,divider:_p},Qp=e.forwardRef(((e,t)=>{var n;const o=r.useContext(Tp),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:s}=r.useContext(_o),u=a(),{prefixCls:d,className:f,style:m,theme:v="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:b,siderCollapsed:y,rootClassName:w,mode:x,selectable:E,onClick:C,overflowedIndicatorPopupClassName:S}=e,$=Oe(Kp(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=dr("Menu");"production"!==process.env.NODE_ENV&&t(!("inlineCollapsed"in e&&"inline"!==x),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&t(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),t.deprecated("items"in e&&!e.children,"children","items")}null===(n=i.validator)||void 0===n||n.call(i,{mode:x});const k=Ko((function(){var e;null==C||C.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),O=i.mode||x,N=null!=E?E:i.selectable,P=r.useMemo((()=>void 0!==y?y:b),[b,y]),I={horizontal:{motionName:`${u}-slide-up`},inline:Ml(u),other:{motionName:`${u}-zoom-big`}},R=a("menu",d||i.prefixCls),M=rl(R),[j,_,A]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=ki("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:h,popupBg:b,darkPopupBg:y}=e,w=e.calc(r).div(7).mul(5).equal(),x=ti(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),E=ti(x,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:v,dangerItemSelectedColor:g,dangerItemActiveBg:h,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[qp(x),Fp(x),Hp(x),Dp(x,"light"),Dp(E,"dark"),Bp(x),su(x),mu(x,"slide-up"),mu(x,"slide-down"),Eu(x,"zoom-big")]}),Xp,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(R,M,!o),T=p(`${R}-${v}`,null==s?void 0:s.className,f),F=r.useMemo((()=>{var e,t;if("function"==typeof g||Up(g))return g||null;if("function"==typeof i.expandIcon||Up(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||Up(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const n=null!==(e=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==s?void 0:s.expandIcon;return nl(n,{className:p(`${R}-submenu-expand-icon`,r.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==s?void 0:s.expandIcon,R]),B=r.useMemo((()=>({prefixCls:R,inlineCollapsed:P||!1,direction:c,firstLevel:!0,theme:v,mode:O,disableMenuItemTitleTooltip:h})),[R,P,c,h,v]);return j(r.createElement(Tp.Provider,{value:null},r.createElement(Mp.Provider,{value:B},r.createElement(gp,Object.assign({getPopupContainer:l,overflowedIndicator:r.createElement(Rp,null),overflowedIndicatorPopupClassName:p(R,`${R}-${v}`,S),mode:O,selectable:N,onClick:k},$,{inlineCollapsed:P,style:Object.assign(Object.assign({},null==s?void 0:s.style),m),className:T,prefixCls:R,direction:c,defaultMotions:I,expandIcon:F,ref:t,rootClassName:p(w,_,i.rootClassName,A,M),_internalComponents:Yp})))))})),Zp=e.forwardRef(((t,n)=>{const o=e.useRef(null),i=r.useContext(kp);return e.useImperativeHandle(n,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),r.createElement(Qp,Object.assign({ref:o},t,i))}));function Jp(e){return ti(e,{inputAffixPadding:e.paddingXXS})}Zp.Item=Ap,Zp.SubMenu=Gp,Zp.Divider=_p,Zp.ItemGroup=sp,"production"!==process.env.NODE_ENV&&(Zp.displayName="Menu");const em=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:v,controlOutline:g,colorErrorOutline:h,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${g}`,errorActiveShadow:`0 0 0 ${v}px ${h}`,warningActiveShadow:`0 0 0 ${v}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},tm=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),nm=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},tm(ti(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),rm=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),om=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},rm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),im=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},nm(e))}),om(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),om(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),am=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lm=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},am(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),am(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},nm(e))}})}),cm=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},sm=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),um=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),dm=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sm(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},nm(e))}),um(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),um(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),fm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),pm=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},fm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),fm(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),mm=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${xt(t)} ${xt(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},vm=e=>({padding:`${xt(e.paddingBlockSM)} ${xt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),gm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${xt(e.paddingBlock)} ${xt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},mm(e)),"&-sm":Object.assign({},vm(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),hm=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},mm(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},vm(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${xt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${xt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${xt(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${xt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${xt(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},bm=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xi(e)),gm(e)),im(e)),dm(e)),cm(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ym=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${xt(e.inputAffixPadding)}`}}}},wm=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},gm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),ym(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},xm=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},xi(e)),hm(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},lm(e)),pm(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Em=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Cm=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Sm=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var $m=ki("Input",(e=>{const t=ti(e,Jp(e));return[bm(t),Cm(t),wm(t),xm(t),Em(t),Sm(t),jc(t)]}),em,{resetFont:!1}),km={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Om=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:km}))},Nm=r.forwardRef(Om);"production"!==process.env.NODE_ENV&&(Nm.displayName="PlusOutlined");var Pm=e.createContext(null),Im={width:0,height:0,left:0,top:0};function Rm(e,t){var n=r.useRef(e),o=De(r.useState({}),2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var Mm=Math.pow(.995,20);function jm(t){var n=De(e.useState(0),2),r=n[0],o=n[1],i=e.useRef(0),a=e.useRef();return a.current=t,Nt((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var _m={width:0,height:0,left:0,top:0,right:0};function Am(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Tm(e){return String(e).replace(/"/g,"TABS_DQ")}function Fm(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var Bm=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null})),zm=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==P(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));"production"!==process.env.NODE_ENV&&(zm.displayName="ExtraContent");var Dm=r.forwardRef((function(t,n){var o=t.prefixCls,i=t.id,a=t.tabs,l=t.locale,c=t.mobile,s=t.more,u=void 0===s?{}:s,d=t.style,f=t.className,v=t.editable,g=t.tabBarGutter,h=t.rtl,b=t.removeAriaLabel,y=t.onTabClick,w=t.getPopupContainer,x=t.popupClassName,E=De(e.useState(!1),2),C=E[0],S=E[1],$=De(e.useState(null),2),k=$[0],O=$[1],N=u.icon,P=void 0===N?"More":N,I="".concat(i,"-more-popup"),M="".concat(o,"-dropdown"),j=null!==k?"".concat(I,"-").concat(k):null,_=null==l?void 0:l.dropdownAriaLabel;var A=r.createElement(gp,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),S(!1)},prefixCls:"".concat(M,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[k],"aria-label":void 0!==_?_:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,l=e.label,c=Fm(t,o,v,n);return r.createElement(Wf,{key:a,id:"".concat(I,"-").concat(a),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),v.onEdit("remove",{key:t,event:e})}(e,a)}},o||v.removeIcon||"×"))})));function T(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,r=t.length,o=0;o<r;o+=1){var i=t[n=(n+e+r)%r];if(!i.disabled)return void O(i.key)}}e.useEffect((function(){var e=document.getElementById(j);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),e.useEffect((function(){C||O(null)}),[C]);var F=R({},h?"marginRight":"marginLeft",g);a.length||(F.visibility="hidden",F.order=1);var B=p(R({},"".concat(M,"-rtl"),h)),z=c?null:r.createElement(Qd,m({prefixCls:M,overlay:A,visible:!!a.length&&C,onVisibleChange:S,overlayClassName:p(B,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:w},u),r.createElement("button",{type:"button",className:"".concat(o,"-nav-more"),style:F,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":I,id:"".concat(i,"-more"),"aria-expanded":C,onKeyDown:function(e){var t=e.which;if(C)switch(t){case ol.UP:T(-1),e.preventDefault();break;case ol.DOWN:T(1),e.preventDefault();break;case ol.ESC:S(!1);break;case ol.SPACE:case ol.ENTER:null!==k&&y(k,e)}else[ol.DOWN,ol.SPACE,ol.ENTER].includes(t)&&(S(!0),e.preventDefault())}},P));return r.createElement("div",{className:p("".concat(o,"-nav-operations"),f),style:d,ref:n},z,r.createElement(Bm,{prefixCls:o,locale:l,editable:v}))})),Lm=r.memo(Dm,(function(e,t){return t.tabMoving})),Hm=function(e){var t=e.prefixCls,n=e.id,o=e.active,i=e.tab,a=i.key,l=i.label,c=i.disabled,s=i.closeIcon,u=i.icon,d=e.closable,f=e.renderWrapper,m=e.removeAriaLabel,v=e.editable,g=e.onClick,h=e.onFocus,b=e.style,y="".concat(t,"-tab"),w=Fm(d,s,v,c);function x(e){c||g(e)}var E=r.useMemo((function(){return u&&"string"==typeof l?r.createElement("span",null,l):l}),[l,u]),C=r.createElement("div",{key:a,"data-node-key":Tm(a),className:p(y,R(R(R({},"".concat(y,"-with-remove"),w),"".concat(y,"-active"),o),"".concat(y,"-disabled"),c)),style:b,onClick:x},r.createElement("div",{role:"tab","aria-selected":o,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(y,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[ol.SPACE,ol.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:h},u&&r.createElement("span",{className:"".concat(y,"-icon")},u),l&&E),w&&r.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),v.onEdit("remove",{key:a,event:t})}},s||v.removeIcon||"×"));return f?f(C):C},Vm=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},Wm=function(e,t){return e[t?0:1]},qm=r.forwardRef((function(t,n){var o,i,a,l,c,s=t.className,u=t.style,d=t.id,f=t.animated,v=t.activeKey,g=t.rtl,h=t.extra,b=t.editable,y=t.locale,w=t.tabPosition,x=t.tabBarGutter,E=t.children,C=t.onTabClick,S=t.onTabScroll,$=t.indicator,k=r.useContext(Pm),O=k.prefixCls,N=k.tabs,P=e.useRef(null),I=e.useRef(null),M=e.useRef(null),_=e.useRef(null),A=e.useRef(null),T=e.useRef(null),F=e.useRef(null),B="top"===w||"bottom"===w,D=Rm(0,(function(e,t){B&&S&&S({direction:e>t?"left":"right"})})),L=De(D,2),H=L[0],V=L[1],W=Rm(0,(function(e,t){!B&&S&&S({direction:e>t?"top":"bottom"})})),q=De(W,2),X=q[0],G=q[1],K=De(e.useState([0,0]),2),U=K[0],Y=K[1],Q=De(e.useState([0,0]),2),Z=Q[0],J=Q[1],ee=De(e.useState([0,0]),2),te=ee[0],ne=ee[1],re=De(e.useState([0,0]),2),oe=re[0],ie=re[1],ae=(o=new Map,i=e.useRef([]),a=De(e.useState({}),2)[1],l=e.useRef("function"==typeof o?o():o),c=jm((function(){var e=l.current;i.current.forEach((function(t){e=t(e)})),i.current=[],l.current=e,a({})})),[l.current,function(e){i.current.push(e),c()}]),le=De(ae,2),ce=le[0],se=le[1],ue=function(t,n,r){return e.useMemo((function(){for(var e,r=new Map,o=n.get(null===(e=t[0])||void 0===e?void 0:e.key)||Im,i=o.left+o.width,a=0;a<t.length;a+=1){var l,c=t[a].key,s=n.get(c);s||(s=n.get(null===(l=t[a-1])||void 0===l?void 0:l.key)||Im);var u=r.get(c)||j({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[t.map((function(e){return e.key})).join("_"),n,r])}(N,ce,Z[0]),de=Wm(U,B),fe=Wm(Z,B),pe=Wm(te,B),me=Wm(oe,B),ve=de<fe+pe,ge=ve?de-me:de-pe,he="".concat(O,"-nav-operations-hidden"),be=0,ye=0;function we(e){return e<be?be:e>ye?ye:e}B&&g?(be=0,ye=Math.max(0,fe-ge)):(be=Math.min(0,ge-fe),ye=0);var xe=e.useRef(null),Ee=De(e.useState(),2),Ce=Ee[0],Se=Ee[1];function $e(){Se(Date.now())}function Oe(){xe.current&&clearTimeout(xe.current)}!function(t,n){var o=De(e.useState(),2),i=o[0],a=o[1],l=De(e.useState(0),2),c=l[0],s=l[1],u=De(e.useState(0),2),d=u[0],f=u[1],p=De(e.useState(),2),m=p[0],v=p[1],g=e.useRef(),h=e.useRef(),b=e.useRef(null);b.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(g.current)},onTouchMove:function(e){if(i){e.preventDefault();var t=e.touches[0],r=t.screenX,o=t.screenY;a({x:r,y:o});var l=r-i.x,u=o-i.y;n(l,u);var d=Date.now();s(d),f(d-c),v({x:l,y:u})}},onTouchEnd:function(){if(i&&(a(null),v(null),m)){var e=m.x/d,t=m.y/d,r=Math.abs(e),o=Math.abs(t);if(Math.max(r,o)<.1)return;var l=e,c=t;g.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(g.current):n(20*(l*=Mm),20*(c*=Mm))}),20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,i=Math.abs(t),a=Math.abs(r);i===a?o="x"===h.current?t:r:i>a?(o=t,h.current="x"):(o=r,h.current="y"),n(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function e(e){b.current.onTouchMove(e)}function n(e){b.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){b.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){b.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(_,(function(e,t){function n(e,t){e((function(e){return we(e+t)}))}return!!ve&&(B?n(V,e):n(G,t),Oe(),$e(),!0)})),e.useEffect((function(){return Oe(),Ce&&(xe.current=setTimeout((function(){Se(0)}),100)),Oe}),[Ce]);var Ne=function(t,n,r,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(r)):(c="height",s="top",u=-r),e.useMemo((function(){if(!d.length)return[0,0];for(var e=d.length,r=e,o=0;o<e;o+=1){var i=t.get(d[o].key)||_m;if(i[s]+i[c]>u+n){r=o-1;break}}for(var a=0,l=e-1;l>=0;l-=1)if((t.get(d[l].key)||_m)[s]<u){a=l+1;break}return a>=r?[0,0]:[a,r]}),[t,n,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(ue,ge,B?H:X,fe,pe,me,j(j({},t),{},{tabs:N})),Pe=De(Ne,2),Ie=Pe[0],Me=Pe[1],je=Ko((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(B){var n=H;g?t.right<H?n=t.right:t.right+t.width>H+ge&&(n=t.right+t.width-ge):t.left<-H?n=-t.left:t.left+t.width>-H+ge&&(n=-(t.left+t.width-ge)),G(0),V(we(n))}else{var r=X;t.top<-X?r=-t.top:t.top+t.height>-X+ge&&(r=-(t.top+t.height-ge)),V(0),G(we(r))}})),_e={};"top"===w||"bottom"===w?_e[g?"marginRight":"marginLeft"]=x:_e.marginTop=x;var Ae=N.map((function(e,t){var n=e.key;return r.createElement(Hm,{id:d,prefixCls:O,key:n,tab:e,style:0===t?void 0:_e,closable:e.closable,editable:b,active:n===v,renderWrapper:E,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){C(n,e)},onFocus:function(){je(n),$e(),_.current&&(g||(_.current.scrollLeft=0),_.current.scrollTop=0)}})})),Te=function(){return se((function(){var e,t=new Map,n=null===(e=A.current)||void 0===e?void 0:e.getBoundingClientRect();return N.forEach((function(e){var r,o=e.key,i=null===(r=A.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(Tm(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=De(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};e.useEffect((function(){Te()}),[N.map((function(e){return e.key})).join("_")]);var Be=jm((function(){var e=Vm(P),t=Vm(I),n=Vm(M);Y([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Vm(F);ne(r);var o=Vm(T);ie(o);var i=Vm(A);J([i[0]-r[0],i[1]-r[1]]),Te()})),ze=N.slice(0,Ie),Le=N.slice(Me+1),He=[].concat(Re(ze),Re(Le)),Ve=ue.get(v),We=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=De(e.useState(),2),d=u[0],f=u[1],p=e.useRef(),m=e.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function v(){Fe.cancel(p.current)}return e.useEffect((function(){var e={};if(n)if(r){e.width=m(n.width);var t=o?"right":"left";"start"===s&&(e[t]=n[t]),"center"===s&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=m(n.height),"start"===s&&(e.top=n.top),"center"===s&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return v(),p.current=Fe((function(){f(e)})),v}),[n,r,o,s,m]),{style:d}}({activeTabOffset:Ve,horizontal:B,indicator:$,rtl:g}),qe=We.style;e.useEffect((function(){je()}),[v,be,ye,Am(Ve),Am(ue),B]),e.useEffect((function(){Be()}),[g]);var Xe,Ge,Ke,Ue,Ye=!!He.length,Qe="".concat(O,"-nav-wrap");return B?g?(Ge=H>0,Xe=H!==ye):(Xe=H<0,Ge=H!==be):(Ke=X<0,Ue=X!==be),r.createElement(ke,{onResize:Be},r.createElement("div",{ref:z(n,P),role:"tablist",className:p("".concat(O,"-nav"),s),style:u,onKeyDown:function(){$e()}},r.createElement(zm,{ref:I,position:"left",extra:h,prefixCls:O}),r.createElement(ke,{onResize:Be},r.createElement("div",{className:p(Qe,R(R(R(R({},"".concat(Qe,"-ping-left"),Xe),"".concat(Qe,"-ping-right"),Ge),"".concat(Qe,"-ping-top"),Ke),"".concat(Qe,"-ping-bottom"),Ue)),ref:_},r.createElement(ke,{onResize:Be},r.createElement("div",{ref:A,className:"".concat(O,"-nav-list"),style:{transform:"translate(".concat(H,"px, ").concat(X,"px)"),transition:Ce?"none":void 0}},Ae,r.createElement(Bm,{ref:F,prefixCls:O,locale:y,editable:b,style:j(j({},0===Ae.length?void 0:_e),{},{visibility:Ye?"hidden":null})}),r.createElement("div",{className:p("".concat(O,"-ink-bar"),R({},"".concat(O,"-ink-bar-animated"),f.inkBar)),style:qe}))))),r.createElement(Lm,m({},t,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:T,prefixCls:O,tabs:He,className:!Ye&&he,tabMoving:!!Ce})),r.createElement(zm,{ref:M,position:"right",extra:h,prefixCls:O})))})),Xm=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,s=e.children;return r.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:p(n,l&&"".concat(n,"-active"),o),ref:t},s)}));"production"!==process.env.NODE_ENV&&(Xm.displayName="TabPane");var Gm=["renderTabBar"],Km=["label","key"],Um=function(e){var t=e.renderTabBar,n=et(e,Gm),o=r.useContext(Pm).tabs;return t?t(j(j({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=et(e,Km);return r.createElement(Xm,m({tab:t,key:n,tabKey:n},o))}))}),qm):r.createElement(qm,n)};"production"!==process.env.NODE_ENV&&(Um.displayName="TabNavListWrapper");var Ym=["key","forceRender","style","className","destroyInactiveTabPane"],Qm=function(e){var t=e.id,n=e.activeKey,o=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,l=r.useContext(Pm),c=l.prefixCls,s=l.tabs,u=o.tabPane,d="".concat(c,"-tabpane");return r.createElement("div",{className:p("".concat(c,"-content-holder"))},r.createElement("div",{className:p("".concat(c,"-content"),"".concat(c,"-content-").concat(i),R({},"".concat(c,"-content-animated"),u))},s.map((function(e){var i=e.key,l=e.forceRender,c=e.style,s=e.className,f=e.destroyInactiveTabPane,v=et(e,Ym),g=i===n;return r.createElement(ma,m({key:i,visible:g,forceRender:l,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,a=e.className;return r.createElement(Xm,m({},v,{prefixCls:d,id:t,tabKey:i,animated:u,active:g,style:j(j({},c),o),className:p(s,a),ref:n}))}))}))))};var Zm=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Jm=0,ev=r.forwardRef((function(t,n){var o=t.id,i=t.prefixCls,a=void 0===i?"rc-tabs":i,l=t.className,c=t.items,s=t.direction,u=t.activeKey,d=t.defaultActiveKey,f=t.editable,v=t.animated,g=t.tabPosition,h=void 0===g?"top":g,b=t.tabBarGutter,y=t.tabBarStyle,w=t.tabBarExtraContent,x=t.locale,E=t.more,C=t.destroyInactiveTabPane,S=t.renderTabBar,$=t.onChange,k=t.onTabClick,O=t.onTabScroll,I=t.getPopupContainer,M=t.popupClassName,_=t.indicator,A=et(t,Zm),T=r.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===P(e)&&"key"in e}))}),[c]),F="rtl"===s,B=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:j({inkBar:!0},"object"===P(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&N(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(v),z=De(e.useState(!1),2),D=z[0],L=z[1];e.useEffect((function(){L(Cu())}),[]);var H=De(Qo((function(){var e;return null===(e=T[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),2),V=H[0],W=H[1],q=De(e.useState((function(){return T.findIndex((function(e){return e.key===V}))})),2),X=q[0],G=q[1];e.useEffect((function(){var e,t=T.findIndex((function(e){return e.key===V}));-1===t&&(t=Math.max(0,Math.min(X,T.length-1)),W(null===(e=T[t])||void 0===e?void 0:e.key));G(t)}),[T.map((function(e){return e.key})).join("_"),V,X]);var K=De(Qo(null,{value:o}),2),U=K[0],Y=K[1];e.useEffect((function(){o||(Y("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":Jm)),Jm+=1)}),[]);var Q={id:U,activeKey:V,animated:B,tabPosition:h,rtl:F,mobile:D},Z=j(j({},Q),{},{editable:f,locale:x,more:E,tabBarGutter:b,onTabClick:function(e,t){null==k||k(e,t);var n=e!==V;W(e),n&&(null==$||$(e))},onTabScroll:O,extra:w,style:y,panes:null,getPopupContainer:I,popupClassName:M,indicator:_});return r.createElement(Pm.Provider,{value:{tabs:T,prefixCls:a}},r.createElement("div",m({ref:n,id:o,className:p(a,"".concat(a,"-").concat(h),R(R(R({},"".concat(a,"-mobile"),D),"".concat(a,"-editable"),f),"".concat(a,"-rtl"),F),l)},A),r.createElement(Um,m({},Z,{renderTabBar:S})),r.createElement(Qm,m({destroyInactiveTabPane:C},Q,{animated:B}))))}));"production"!==process.env.NODE_ENV&&(ev.displayName="Tabs");const tv={motionAppear:!1,motionEnter:!0,motionLeave:!0};var nv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rv=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[mu(e,"slide-up"),mu(e,"slide-down")]]},ov=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${xt(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:xt(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:xt(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xt(e.borderRadiusLG)} 0 0 ${xt(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},iv=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},xi(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${xt(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},wi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${xt(e.paddingXXS)} ${xt(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},av=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${xt(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:xt(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},lv=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${xt(e.borderRadius)} ${xt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${xt(e.borderRadius)} ${xt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${xt(e.borderRadius)} ${xt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xt(e.borderRadius)} 0 0 ${xt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},cv=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Si(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},sv=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:xt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:xt(e.marginXS)},marginLeft:{_skip_check_:!0,value:xt(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},uv=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xi(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${xt(e.paddingXS)}`,background:"transparent",border:`${xt(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Si(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),cv(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var dv=ki("Tabs",(e=>{const t=ti(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${xt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${xt(e.horizontalItemGutter)}`});return[lv(t),sv(t),av(t),iv(t),ov(t),uv(t),rv(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));const fv=()=>null;"production"!==process.env.NODE_ENV&&(fv.displayName="DeprecatedTabPane");var pv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mv=e=>{var t,n,o,i,a,l,c,s,u,d,f;const{type:m,className:v,rootClassName:g,size:h,onEdit:b,hideAdd:y,centered:w,addIcon:E,removeIcon:C,moreIcon:S,more:$,popupClassName:k,children:O,items:N,animated:P,style:I,indicatorSize:R,indicator:M}=e,j=pv(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:_}=j,{direction:A,tabs:T,getPrefixCls:F,getPopupContainer:B}=r.useContext(_o),z=F("tabs",_),D=rl(z),[L,H,V]=dv(z,D);let W;"editable-card"===m&&(W={onEdit:(e,t)=>{let{key:n,event:r}=t;null==b||b("add"===e?r:n,e)},removeIcon:null!==(t=null!=C?C:null==T?void 0:T.removeIcon)&&void 0!==t?t:r.createElement(Qa,null),addIcon:(null!=E?E:null==T?void 0:T.addIcon)||r.createElement(Nm,null),showAdd:!0!==y});const q=F();if("production"!==process.env.NODE_ENV){const t=dr("Tabs");"production"!==process.env.NODE_ENV&&t(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&t(!(R||(null==T?void 0:T.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const X=Wl(h),G=function(e,t){"production"!==process.env.NODE_ENV&&dr("Tabs").deprecated(!t,"Tabs.TabPane","items");if(e)return e;const n=x(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=nv(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(n)}(N,O),K=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},tv),{motionName:jl(e,"switch")})),t}(z,P),U=Object.assign(Object.assign({},null==T?void 0:T.style),I),Y={align:null!==(n=null==M?void 0:M.align)&&void 0!==n?n:null===(o=null==T?void 0:T.indicator)||void 0===o?void 0:o.align,size:null!==(c=null!==(a=null!==(i=null==M?void 0:M.size)&&void 0!==i?i:R)&&void 0!==a?a:null===(l=null==T?void 0:T.indicator)||void 0===l?void 0:l.size)&&void 0!==c?c:null==T?void 0:T.indicatorSize};return L(r.createElement(ev,Object.assign({direction:A,getPopupContainer:B},j,{items:G,className:p({[`${z}-${X}`]:X,[`${z}-card`]:["card","editable-card"].includes(m),[`${z}-editable-card`]:"editable-card"===m,[`${z}-centered`]:w},null==T?void 0:T.className,v,g,H,V,D),popupClassName:p(k,H,V,D),style:U,editable:W,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(s=null==T?void 0:T.more)||void 0===s?void 0:s.icon)&&void 0!==u?u:null==T?void 0:T.moreIcon)&&void 0!==d?d:S)&&void 0!==f?f:r.createElement(Rp,null),transitionName:`${q}-slide-up`},$),prefixCls:z,animated:K,indicator:Y})))};function vv(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function gv(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=vv(t,e,r)):n(o=vv(t,e,""))}}mv.TabPane=fv,"production"!==process.env.NODE_ENV&&(mv.displayName="Tabs");var hv=e.forwardRef((function(t,n){var r,o,i=t.inputElement,a=t.children,l=t.prefixCls,c=t.prefix,s=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,v=t.style,g=t.disabled,h=t.readOnly,b=t.focused,y=t.triggerFocus,w=t.allowClear,x=t.value,E=t.handleReset,C=t.hidden,S=t.classes,$=t.classNames,k=t.dataAttrs,O=t.styles,N=t.components,I=t.onClear,M=null!=a?a:i,_=(null==N?void 0:N.affixWrapper)||"span",A=(null==N?void 0:N.groupWrapper)||"span",T=(null==N?void 0:N.wrapper)||"span",F=(null==N?void 0:N.groupAddon)||"span",B=e.useRef(null),z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(t),D=e.cloneElement(M,{value:x,className:p(M.props.className,!z&&(null==$?void 0:$.variant))||null}),L=e.useRef(null);if(e.useImperativeHandle(n,(function(){return{nativeElement:L.current||B.current}})),z){var H=null;if(w){var V=!g&&!h&&x,W="".concat(l,"-clear-icon"),q="object"===P(w)&&null!=w&&w.clearIcon?w.clearIcon:"✖";H=e.createElement("span",{onClick:function(e){null==E||E(e),null==I||I()},onMouseDown:function(e){return e.preventDefault()},className:p(W,R(R({},"".concat(W,"-hidden"),!V),"".concat(W,"-has-suffix"),!!s)),role:"button",tabIndex:-1},q)}var X="".concat(l,"-affix-wrapper"),G=p(X,R(R(R(R(R({},"".concat(l,"-disabled"),g),"".concat(X,"-disabled"),g),"".concat(X,"-focused"),b),"".concat(X,"-readonly"),h),"".concat(X,"-input-with-clear-btn"),s&&w&&x),null==S?void 0:S.affixWrapper,null==$?void 0:$.affixWrapper,null==$?void 0:$.variant),K=(s||w)&&e.createElement("span",{className:p("".concat(l,"-suffix"),null==$?void 0:$.suffix),style:null==O?void 0:O.suffix},H,s);D=e.createElement(_,m({className:G,style:null==O?void 0:O.affixWrapper,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==k?void 0:k.affixWrapper,{ref:B}),c&&e.createElement("span",{className:p("".concat(l,"-prefix"),null==$?void 0:$.prefix),style:null==O?void 0:O.prefix},c),D,K)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(t)){var U="".concat(l,"-group"),Y="".concat(U,"-addon"),Q="".concat(U,"-wrapper"),Z=p("".concat(l,"-wrapper"),U,null==S?void 0:S.wrapper,null==$?void 0:$.wrapper),J=p(Q,R({},"".concat(Q,"-disabled"),g),null==S?void 0:S.group,null==$?void 0:$.groupWrapper);D=e.createElement(A,{className:J,ref:L},e.createElement(T,{className:Z},u&&e.createElement(F,{className:Y},u),D,d&&e.createElement(F,{className:Y},d)))}return e.cloneElement(D,{className:p(null===(r=D.props)||void 0===r?void 0:r.className,f)||null,style:j(j({},null===(o=D.props)||void 0===o?void 0:o.style),v),hidden:C})})),bv=["show"];function yv(e,t){return r.useMemo((function(){var n={};t&&(n.show="object"===P(t)&&t.formatter?t.formatter:!!t);var r=n=j(j({},n),e),o=r.show,i=et(r,bv);return j(j({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var wv=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],xv=e.forwardRef((function(t,n){var r=t.autoComplete,o=t.onChange,i=t.onFocus,a=t.onBlur,l=t.onPressEnter,c=t.onKeyDown,s=t.onKeyUp,u=t.prefixCls,d=void 0===u?"rc-input":u,f=t.disabled,v=t.htmlSize,g=t.className,h=t.maxLength,b=t.suffix,y=t.showCount,w=t.count,x=t.type,E=void 0===x?"text":x,C=t.classes,S=t.classNames,$=t.styles,k=t.onCompositionStart,O=t.onCompositionEnd,N=et(t,wv),P=De(e.useState(!1),2),I=P[0],M=P[1],_=e.useRef(!1),A=e.useRef(!1),T=e.useRef(null),F=e.useRef(null),B=function(e){T.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(T.current,e)},z=De(Qo(t.defaultValue,{value:t.value}),2),D=z[0],L=z[1],H=null==D?"":String(D),V=De(e.useState(null),2),W=V[0],q=V[1],X=yv(w,y),G=X.max||h,K=X.strategy(H),U=!!G&&K>G;e.useImperativeHandle(n,(function(){var e;return{focus:B,blur:function(){var e;null===(e=T.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=T.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=T.current)||void 0===e||e.select()},input:T.current,nativeElement:(null===(e=F.current)||void 0===e?void 0:e.nativeElement)||T.current}})),e.useEffect((function(){M((function(e){return(!e||!f)&&e}))}),[f]);var Y=function(e,t,n){var r,i,a=t;if(!_.current&&X.exceedFormatter&&X.max&&X.strategy(t)>X.max)t!==(a=X.exceedFormatter(t,{max:X.max}))&&q([(null===(r=T.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=T.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;L(a),T.current&&gv(T.current,e,o,a)};e.useEffect((function(){var e;W&&(null===(e=T.current)||void 0===e||e.setSelectionRange.apply(e,Re(W)))}),[W]);var Q,Z=function(e){Y(e,e.target.value,{source:"change"})},J=function(e){_.current=!1,Y(e,e.currentTarget.value,{source:"compositionEnd"}),null==O||O(e)},ee=function(e){l&&"Enter"===e.key&&!A.current&&(A.current=!0,l(e)),null==c||c(e)},te=function(e){"Enter"===e.key&&(A.current=!1),null==s||s(e)},ne=function(e){M(!0),null==i||i(e)},re=function(e){M(!1),null==a||a(e)},oe=U&&"".concat(d,"-out-of-range");return e.createElement(hv,m({},N,{prefixCls:d,className:p(g,oe),handleReset:function(e){L(""),B(),T.current&&gv(T.current,e,o)},value:H,focused:I,triggerFocus:B,suffix:function(){var t=Number(G)>0;if(b||X.show){var n=X.showFormatter?X.showFormatter({value:H,count:K,maxLength:G}):"".concat(K).concat(t?" / ".concat(G):"");return e.createElement(e.Fragment,null,X.show&&e.createElement("span",{className:p("".concat(d,"-show-count-suffix"),R({},"".concat(d,"-show-count-has-suffix"),!!b),null==S?void 0:S.count),style:j({},null==$?void 0:$.count)},n),b)}return null}(),disabled:f,classes:C,classNames:S,styles:$}),(Q=Oe(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),e.createElement("input",m({autoComplete:r},Q,{onChange:Z,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:p(d,R({},"".concat(d,"-disabled"),f),null==S?void 0:S.input),style:null==$?void 0:$.input,ref:T,size:v,type:E,onCompositionStart:function(e){_.current=!0,null==k||k(e)},onCompositionEnd:J}))))}));const Ev=t=>{let n;return"object"==typeof t&&(null==t?void 0:t.clearIcon)?n=t:t&&(n={clearIcon:e.createElement(Ka,null)}),n};function Cv(t,n){const r=e.useRef([]),o=()=>{r.current.push(setTimeout((()=>{var e,n,r,o;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=t.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=t.current)||void 0===o||o.input.removeAttribute("value"))})))};return e.useEffect((()=>(n&&o(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var Sv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $v=e.forwardRef(((t,n)=>{var r;const{prefixCls:o,bordered:i=!0,status:a,size:l,disabled:c,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:v,className:g,style:h,styles:b,rootClassName:y,onChange:w,classNames:x,variant:E}=t,C=Sv(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=dr("Input");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:S,direction:$,input:k}=e.useContext(_o),O=S("input",o),N=e.useRef(null),P=rl(O),[I,R,M]=$m(O,P),{compactSize:j,compactItemClassnames:_}=Xl(O,$),A=Wl((e=>{var t;return null!==(t=null!=l?l:j)&&void 0!==t?t:e})),T=e.useContext(Fo),F=null!=c?c:T,{status:z,hasFeedback:D,feedbackIcon:L}=e.useContext(iu),H=ud(z,a),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(t)||!!D,W=e.useRef(V);if("production"!==process.env.NODE_ENV){const t=dr("Input");e.useEffect((()=>{var e;V&&!W.current&&"production"!==process.env.NODE_ENV&&t(document.activeElement===(null===(e=N.current)||void 0===e?void 0:e.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),W.current=V}),[V])}const q=Cv(N,!0),X=(D||d)&&e.createElement(e.Fragment,null,d,D&&L),G=Ev(null!=f?f:null==k?void 0:k.allowClear),[K,U]=dd("input",E,i);return I(e.createElement(xv,Object.assign({ref:B(n,N),prefixCls:O,autoComplete:null==k?void 0:k.autoComplete},C,{disabled:F,onBlur:e=>{q(),null==s||s(e)},onFocus:e=>{q(),null==u||u(e)},style:Object.assign(Object.assign({},null==k?void 0:k.style),h),styles:Object.assign(Object.assign({},null==k?void 0:k.styles),b),suffix:X,allowClear:G,className:p(g,y,M,P,_,null==k?void 0:k.className),onChange:e=>{q(),null==w||w(e)},addonBefore:v&&e.createElement(cu,{form:!0,space:!0},v),addonAfter:m&&e.createElement(cu,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},x),null==k?void 0:k.classNames),{input:p({[`${O}-sm`]:"small"===A,[`${O}-lg`]:"large"===A,[`${O}-rtl`]:"rtl"===$},null==x?void 0:x.input,null===(r=null==k?void 0:k.classNames)||void 0===r?void 0:r.input,R),variant:p({[`${O}-${K}`]:U},sd(O,H)),affixWrapper:p({[`${O}-affix-wrapper-sm`]:"small"===A,[`${O}-affix-wrapper-lg`]:"large"===A,[`${O}-affix-wrapper-rtl`]:"rtl"===$},R),wrapper:p({[`${O}-group-rtl`]:"rtl"===$},R),groupWrapper:p({[`${O}-group-wrapper-sm`]:"small"===A,[`${O}-group-wrapper-lg`]:"large"===A,[`${O}-group-wrapper-rtl`]:"rtl"===$,[`${O}-group-wrapper-${K}`]:U},sd(`${O}-group-wrapper`,H,D),R)})})))}));"production"!==process.env.NODE_ENV&&($v.displayName="Input");const kv=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var Ov=ki(["Input","OTP"],(e=>{const t=ti(e,Jp(e));return[kv(t)]}),em),Nv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Pv=r.forwardRef(((e,t)=>{const{value:n,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=Nv(e,["value","onChange","onActiveChange","index","mask"]),s=n&&"string"==typeof l?l:n,u=r.useRef(null);r.useImperativeHandle(t,(()=>u.current));const d=()=>{Fe((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return r.createElement($v,Object.assign({},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===l?"password":"text"}))}));var Iv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Rv(e){return(e||"").split("")}const Mv=r.forwardRef(((e,t)=>{const{prefixCls:n,length:o=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,variant:u,disabled:d,status:f,autoFocus:m,mask:v}=e,g=Iv(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=dr("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof v&&v.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:h,direction:b}=r.useContext(_o),y=h("otp",n),w=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:j({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Ja(n,"aria-"))||t.data&&Ja(n,"data-")||t.attr&&Za.includes(n))&&(r[n]=e[n])})),r}(g,{aria:!0,data:!0,attr:!0}),x=rl(y),[E,C,S]=Ov(y,x),$=Wl((e=>null!=i?i:e)),k=r.useContext(iu),O=ud(k.status,f),N=r.useMemo((()=>Object.assign(Object.assign({},k),{status:O,hasFeedback:!1,feedbackIcon:null})),[k,O]),P=r.useRef(null),I=r.useRef({});r.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=I.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=I.current[t])||void 0===e||e.blur()},nativeElement:P.current})));const R=e=>s?s(e):e,[M,_]=r.useState(Rv(R(a||"")));r.useEffect((()=>{void 0!==l&&_(Rv(l))}),[l]);const A=Ko((e=>{_(e),c&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>M[t]!==e))&&c(e.join(""))})),T=Ko(((e,t)=>{let n=Re(M);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Rv(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=R(n.map((e=>e||" ")).join(""));return n=Rv(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),F=(e,t)=>{var n;const r=T(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=I.current[i])||void 0===n||n.focus()),A(r)},B=e=>{var t;null===(t=I.current[e])||void 0===t||t.focus()},z={variant:u,disabled:d,status:O,mask:v};return E(r.createElement("div",Object.assign({},w,{ref:P,className:p(y,{[`${y}-sm`]:"small"===$,[`${y}-lg`]:"large"===$,[`${y}-rtl`]:"rtl"===b},S,C)}),r.createElement(iu.Provider,{value:N},Array.from({length:o}).map(((e,t)=>{const n=`otp-${t}`,o=M[t]||"";return r.createElement(Pv,Object.assign({ref:e=>{I.current[t]=e},key:n,index:t,size:$,htmlSize:1,className:`${y}-input`,onChange:F,value:o,onActiveChange:B,autoFocus:0===t&&m},z))})))))}));var jv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},_v=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:jv}))},Av=r.forwardRef(_v);"production"!==process.env.NODE_ENV&&(Av.displayName="EyeInvisibleOutlined");var Tv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Fv=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Tv}))},Bv=r.forwardRef(Fv);"production"!==process.env.NODE_ENV&&(Bv.displayName="EyeOutlined");var zv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Dv=e=>e?r.createElement(Bv,null):r.createElement(Av,null),Lv={click:"onClick",hover:"onMouseOver"},Hv=r.forwardRef(((t,n)=>{const{disabled:o,action:i="click",visibilityToggle:a=!0,iconRender:l=Dv}=t,c="object"==typeof a&&void 0!==a.visible,[s,u]=e.useState((()=>!!c&&a.visible)),d=e.useRef(null);r.useEffect((()=>{c&&u(a.visible)}),[c,a]);const f=Cv(d),m=()=>{o||(s&&f(),u((e=>{var t;const n=!e;return"object"==typeof a&&(null===(t=a.onVisibleChange)||void 0===t||t.call(a,n)),n})))},{className:v,prefixCls:g,inputPrefixCls:h,size:b}=t,y=zv(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=r.useContext(_o),x=w("input",h),E=w("input-password",g),C=a&&(e=>{const t=Lv[i]||"",n=l(s),o={[t]:m,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return r.cloneElement(r.isValidElement(n)?n:r.createElement("span",null,n),o)})(E),S=p(E,v,{[`${E}-${b}`]:!!b}),$=Object.assign(Object.assign({},Oe(y,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:S,prefixCls:x,suffix:C});return b&&($.size=b),r.createElement($v,Object.assign({ref:B(n,d)},$))}));"production"!==process.env.NODE_ENV&&(Hv.displayName="Input.Password");var Vv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wv=r.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:g}=e,h=Vv(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:y}=r.useContext(_o),w=r.useRef(!1),x=b("input-search",n),E=b("input",o),{compactSize:C}=Xl(x,y),S=Wl((e=>{var t;return null!==(t=null!=a?a:C)&&void 0!==t?t:e})),$=r.useRef(null),k=e=>{var t;document.activeElement===(null===(t=$.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;f&&f(null===(n=null===(t=$.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},N="boolean"==typeof c?r.createElement(md,null):null,P=`${x}-button`;let I;const R=c||{},M=R.type&&!0===R.type.__ANT_BUTTON;I=M||"button"===R.type?nl(R,Object.assign({onMouseDown:k,onClick:e=>{var t,n;null===(n=null===(t=null==R?void 0:R.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},M?{className:P,size:S}:{})):r.createElement(Dc,{className:P,type:c?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:k,onClick:O,loading:u,icon:N},c),s&&(I=[I,nl(s,{key:"addonAfter"})]);const j=p(x,{[`${x}-rtl`]:"rtl"===y,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!c},i);return r.createElement($v,Object.assign({ref:B($,t),onPressEnter:e=>{w.current||u||O(e)}},h,{size:S,onCompositionStart:e=>{w.current=!0,null==v||v(e)},onCompositionEnd:e=>{w.current=!1,null==g||g(e)},prefixCls:E,addonAfter:I,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==m||m(e)},className:j,disabled:d}))}));"production"!==process.env.NODE_ENV&&(Wv.displayName="Search");var qv,Xv=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Gv={};function Kv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;qv||((qv=document.createElement("textarea")).setAttribute("tab-index","-1"),qv.setAttribute("aria-hidden","true"),document.body.appendChild(qv)),e.getAttribute("wrap")?qv.setAttribute("wrap",e.getAttribute("wrap")):qv.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Gv[n])return Gv[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:Xv.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Gv[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;qv.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),qv.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=qv.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){qv.value=" ";var p=qv.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var Uv=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Yv=r.forwardRef((function(e,t){var n=e,o=n.prefixCls,i=n.defaultValue,a=n.value,l=n.autoSize,c=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange,v=n.onInternalAutoSize,g=et(n,Uv),h=De(Qo(i,{value:a,postState:function(e){return null!=e?e:""}}),2),b=h[0],y=h[1],w=r.useRef();r.useImperativeHandle(t,(function(){return{textArea:w.current}}));var x=De(r.useMemo((function(){return l&&"object"===P(l)?[l.minRows,l.maxRows]:[]}),[l]),2),E=x[0],C=x[1],S=!!l,$=De(r.useState(2),2),k=$[0],O=$[1],N=De(r.useState(),2),I=N[0],M=N[1],_=function(){O(0),"test"===process.env.NODE_ENV&&(null==v||v())};Ot((function(){S&&_()}),[a,E,C,S]),Ot((function(){if(0===k)O(1);else if(1===k){var e=Kv(w.current,!1,E,C);O(2),M(e)}else!function(){try{if(document.activeElement===w.current){var e=w.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;w.current.setSelectionRange(t,n),w.current.scrollTop=r}}catch(e){}}()}),[k]);var A=r.useRef(),T=function(){Fe.cancel(A.current)};r.useEffect((function(){return T}),[]);var F=S?I:null,B=j(j({},u),F);return 0!==k&&1!==k||(B.overflowY="hidden",B.overflowX="hidden"),r.createElement(ke,{onResize:function(e){2===k&&(null==c||c(e),l&&(T(),A.current=Fe((function(){_()}))))},disabled:!(l||c)},r.createElement("textarea",m({},g,{ref:w,style:B,className:p(o,s,R({},"".concat(o,"-disabled"),d)),disabled:d,value:b,onChange:function(e){y(e.target.value),null==f||f(e)}})))})),Qv=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Zv=e.forwardRef((function(t,n){var r,o=t.defaultValue,i=t.value,a=t.onFocus,l=t.onBlur,c=t.onChange,s=t.allowClear,u=t.maxLength,d=t.onCompositionStart,f=t.onCompositionEnd,v=t.suffix,g=t.prefixCls,h=void 0===g?"rc-textarea":g,b=t.showCount,y=t.count,w=t.className,x=t.style,E=t.disabled,C=t.hidden,S=t.classNames,$=t.styles,k=t.onResize,O=t.onClear,N=t.onPressEnter,P=t.readOnly,I=t.autoSize,M=t.onKeyDown,_=et(t,Qv),A=De(Qo(o,{value:i,defaultValue:o}),2),T=A[0],F=A[1],B=null==T?"":String(T),z=De(e.useState(!1),2),D=z[0],L=z[1],H=e.useRef(!1),V=De(e.useState(null),2),W=V[0],q=V[1],X=e.useRef(null),G=e.useRef(null),K=function(){var e;return null===(e=G.current)||void 0===e?void 0:e.textArea},U=function(){K().focus()};e.useImperativeHandle(n,(function(){var e;return{resizableTextArea:G.current,focus:U,blur:function(){K().blur()},nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||K()}})),e.useEffect((function(){L((function(e){return!E&&e}))}),[E]);var Y=De(e.useState(null),2),Q=Y[0],Z=Y[1];e.useEffect((function(){var e;Q&&(e=K()).setSelectionRange.apply(e,Re(Q))}),[Q]);var J,ee=yv(y,b),te=null!==(r=ee.max)&&void 0!==r?r:u,ne=Number(te)>0,re=ee.strategy(B),oe=!!te&&re>te,ie=function(e,t){var n=t;!H.current&&ee.exceedFormatter&&ee.max&&ee.strategy(t)>ee.max&&t!==(n=ee.exceedFormatter(t,{max:ee.max}))&&Z([K().selectionStart||0,K().selectionEnd||0]),F(n),gv(e.currentTarget,e,c,n)},ae=v;ee.show&&(J=ee.showFormatter?ee.showFormatter({value:B,count:re,maxLength:te}):"".concat(re).concat(ne?" / ".concat(te):""),ae=e.createElement(e.Fragment,null,ae,e.createElement("span",{className:p("".concat(h,"-data-count"),null==S?void 0:S.count),style:null==$?void 0:$.count},J)));var le=!I&&!b&&!s;return e.createElement(hv,{ref:X,value:B,allowClear:s,handleReset:function(e){F(""),U(),gv(K(),e,c)},suffix:ae,prefixCls:h,classNames:j(j({},S),{},{affixWrapper:p(null==S?void 0:S.affixWrapper,R(R({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),s))}),disabled:E,focused:D,className:p(w,oe&&"".concat(h,"-out-of-range")),style:j(j({},x),W&&!le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof J?J:void 0}},hidden:C,readOnly:P,onClear:O},e.createElement(Yv,m({},_,{autoSize:I,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&N&&N(e),null==M||M(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){L(!0),null==a||a(e)},onBlur:function(e){L(!1),null==l||l(e)},onCompositionStart:function(e){H.current=!0,null==d||d(e)},onCompositionEnd:function(e){H.current=!1,ie(e,e.currentTarget.value),null==f||f(e)},className:p(null==S?void 0:S.textarea),style:j(j({},null==$?void 0:$.textarea),{},{resize:null==x?void 0:x.resize}),disabled:E,prefixCls:h,onResize:function(e){var t;null==k||k(e),null!==(t=K())&&void 0!==t&&t.style.height&&q(!0)},ref:G,readOnly:P})))})),Jv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const eg=e.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:c,status:s,allowClear:u,classNames:d,rootClassName:f,className:m,style:v,styles:g,variant:h}=e,b=Jv(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=dr("TextArea");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:y,direction:w,textArea:x}=r.useContext(_o),E=Wl(l),C=r.useContext(Fo),S=null!=c?c:C,{status:$,hasFeedback:k,feedbackIcon:O}=r.useContext(iu),N=ud($,s),P=r.useRef(null);r.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=P.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=P.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=P.current)||void 0===e?void 0:e.blur()}}}));const I=y("input",i),R=rl(I),[M,j,_]=$m(I,R),[A,T]=dd("textArea",h,a),F=Ev(null!=u?u:null==x?void 0:x.allowClear);return M(r.createElement(Zv,Object.assign({autoComplete:null==x?void 0:x.autoComplete},b,{style:Object.assign(Object.assign({},null==x?void 0:x.style),v),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:S,allowClear:F,className:p(_,R,m,f,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==x?void 0:x.classNames),{textarea:p({[`${I}-sm`]:"small"===E,[`${I}-lg`]:"large"===E},j,null==d?void 0:d.textarea,null===(n=null==x?void 0:x.classNames)||void 0===n?void 0:n.textarea),variant:p({[`${I}-${A}`]:T},sd(I,N)),affixWrapper:p(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:"rtl"===w,[`${I}-affix-wrapper-sm`]:"small"===E,[`${I}-affix-wrapper-lg`]:"large"===E,[`${I}-textarea-show-count`]:e.showCount||(null===(o=e.count)||void 0===o?void 0:o.show)},j)}),prefixCls:I,suffix:k&&r.createElement("span",{className:`${I}-textarea-suffix`},O),ref:P})))})),tg=$v;tg.Group=t=>{const{getPrefixCls:n,direction:o}=e.useContext(_o),{prefixCls:i,className:a}=t,l=n("input-group",i),c=n("input"),[s,u]=$m(c),d=p(l,{[`${l}-lg`]:"large"===t.size,[`${l}-sm`]:"small"===t.size,[`${l}-compact`]:t.compact,[`${l}-rtl`]:"rtl"===o},u,a),f=e.useContext(iu),m=e.useMemo((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);if("production"!==process.env.NODE_ENV){dr("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return s(r.createElement("span",{className:d,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},r.createElement(iu.Provider,{value:m},t.children)))},tg.Search=Wv,tg.TextArea=eg,tg.Password=Hv,tg.OTP=Mv;const ng=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},rg=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:c,headerColor:s,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:p,motionDurationMid:m,motionDurationSlow:v,fontSize:g,borderRadius:h,bodyBg:b,headerBg:y,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:w,transition:`all ${m}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:xt(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${m}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}}}},ng(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:s,lineHeight:xt(l),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:g,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}};var og=ki("Layout",(e=>[rg(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ig=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ag(e){let{suffixCls:t,tagName:n,displayName:o}=e;return e=>{const i=r.forwardRef(((o,i)=>r.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},o))));return"production"!==process.env.NODE_ENV&&(i.displayName=o),i}}const lg=r.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:o,className:i,tagName:a}=e,l=ig(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=r.useContext(_o),s=c("layout",n),[u,d,f]=og(s),m=o?`${s}-${o}`:s;return u(r.createElement(a,Object.assign({className:p(n||m,i,d,f),ref:t},l)))})),cg=r.forwardRef(((e,t)=>{const{direction:n}=r.useContext(_o),[o,i]=r.useState([]),{prefixCls:a,className:l,rootClassName:c,children:s,hasSider:u,tagName:d,style:f}=e,m=Oe(ig(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:v,layout:g}=r.useContext(_o),h=v("layout",a),b=function(e,t,n){return"boolean"==typeof n?n:!!e.length||x(t).some((e=>e.type===Np))}(o,s,u),[y,w,E]=og(h),C=p(h,{[`${h}-has-sider`]:b,[`${h}-rtl`]:"rtl"===n},null==g?void 0:g.className,l,c,w,E),S=r.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Re(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return y(r.createElement(Cp.Provider,{value:S},r.createElement(d,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},null==g?void 0:g.style),f)},m),s)))})),sg=ag({tagName:"div",displayName:"Layout"})(cg),ug=ag({suffixCls:"header",tagName:"header",displayName:"Header"})(lg),dg=ag({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(lg),fg=ag({suffixCls:"content",tagName:"main",displayName:"Content"})(lg),pg=sg;function mg(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}pg.Header=ug,pg.Footer=dg,pg.Content=fg,pg.Sider=Np,pg._InternalSiderContext=kp;mg(".appInput {\n font-size: var(--font-14);\n font-weight: 500;\n color: #1e1f21;\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: 14px;\n text-align: left;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n &:hover {\n .ant-input {\n border-color: #d9d9d9;\n }\n }\n\n &:has(.ant-input-affix-wrapper) {\n .ant-input {\n border: none !important;\n height: unset !important;\n }\n }\n .ant-input-affix-wrapper {\n height: 40px;\n display: flex;\n align-items: center;\n .ant-input-outlined:focus-within {\n box-shadow: unset !important;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n }\n .ant-input-outlined {\n height: 40px;\n &:hover {\n border-color: #d9d9d9;\n }\n &:focus {\n box-shadow: unset;\n }\n &:focus-within {\n box-shadow: unset;\n border-color: #d9d9d9;\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");mg(".appButton {\n width: max-content;\n\n .ant-btn {\n background-color: red;\n padding: 12px;\n &:hover {\n border-color: transparent !important;\n outline: unset !important;\n box-shadow: unset !important;\n }\n }\n}\n");mg('.sideBar {\n height: 100vh;\n .sider {\n height: 100%;\n .ant-layout-sider-children {\n height: 100%;\n display: flex;\n flex-direction: column;\n row-gap: 2.875rem;\n .ant-menu {\n border: none;\n }\n }\n }\n}\n\n.logo {\n height: 64px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px;\n}\n\n.menu {\n border-right: 0;\n}\n\n.footer {\n position: relative;\n &::before {\n content: "";\n height: 1px;\n width: 80%;\n position: absolute;\n top: 0;\n right: 50%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #acacac;\n }\n}\n\n.tag {\n margin-left: 8px;\n}\n');var vg=pg.Sider;mg(".appTextArea {\n .ant-input-outlined {\n border-color: #bfbebe;\n &:hover {\n border-color: #bfbebe;\n }\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");mg(".appTab {\n .tab {\n .ant-tabs-nav {\n &::before {\n border: unset !important;\n }\n .ant-tabs-nav-wrap {\n .ant-tabs-nav-list {\n display: flex;\n gap: 3.5rem;\n align-items: center;\n .ant-tabs-tab {\n margin: 0;\n }\n .ant-tabs-ink-bar {\n display: none;\n }\n }\n }\n }\n }\n}\n");exports.AppButton=function(e){var t=e.type,n=e.size,r=e.className,o=e.handleClick,i=e.icon,a=e.text,l=e.disabled,c=e.iconPosition,s=e.isLoading;return d.jsx("div",{className:"appButton ".concat(r),children:d.jsx(Dc,{disabled:l,type:t,className:["customBtn",i?"btn-icon":"","right"===c?"iconRight":""].join(" "),size:n,onClick:o,icon:i,loading:s,children:a})})},exports.AppInput=function(t){var n=t.className,r=t.label,o=t.name,i=t.value,a=t.dataTestId,l=t.type,c=t.id,s=t.disabled,u=t.handleChange,f=t.onClick,p=t.defaultValue,m=t.onPressEnter,v=t.isAutoFocus,g=t.triggerFocus,h=t.isOptional,b=t.errorMessage,y=t.suffixIcon,w=t.prefixIcon,x=e.useRef(null);e.useEffect((function(){v&&x.current&&x.current.focus()}),[g,v]);var E=h?"".concat(r," (optional)"):r;return d.jsxs("div",{className:"appInput ".concat(n),children:[d.jsx(tg,{type:l,"data-test-id":a,id:c,disabled:s,name:o,className:"input",value:i,onChange:u,onClick:f,defaultValue:p,onPressEnter:m,placeholder:E,ref:x,prefix:w&&w,suffix:y&&y}),b&&d.jsx("div",{className:"error",children:b})]})},exports.AppSidebar=function(e){var t=e.links,n=e.logo,r=e.footerLinks,o=e.className,i=function(e){window.location.href=e},a=t.map((function(e){return{key:e.path,icon:e.icon,label:d.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&d.jsx("span",{className:"tag",children:e.tag})]})}})),l=null==r?void 0:r.map((function(e){return{key:e.path,label:d.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return d.jsx("div",{className:"sideBar ".concat(o),children:d.jsxs(vg,{className:"sider",children:[d.jsx("div",{className:"logo",children:n}),d.jsx(Zp,{mode:"inline",className:"menu",items:a}),r&&d.jsx("div",{className:"footer",children:d.jsx(Zp,{mode:"inline",items:l})})]})})},exports.AppTab=function(e){var t=e.className,n=e.items,r=e.handleChange,o=e.defaultActiveKey;return d.jsx("div",{className:"appTab ".concat(t),children:d.jsx(mv,{defaultActiveKey:o,items:n,onChange:r,className:"tab"})})},exports.AppTextarea=function(e){var t=e.id,n=e.placeholder,r=e.name,o=e.value,i=e.dataTestId,a=e.defaultValue,l=e.onPressEnter,c=e.handleChange,s=e.rows,u=e.cols,f=e.className,p=e.error;return d.jsxs("div",{className:"appTextArea ".concat(f),children:[d.jsx(tg.TextArea,{"data-test-id":i,id:t,name:r,placeholder:n,value:o,className:"textArea",onChange:c,defaultValue:a,onPressEnter:l,rows:s,cols:u}),p&&d.jsx("div",{className:"error",children:p})]})};
26
+ //# sourceMappingURL=index.js.map